MonetizationOS Docs
Workflows ReferenceType Definitions

WorkflowStripeSubscription

type WorkflowStripeSubscription = {
  cancelAt: number | null;
  cancelAtPeriodEnd: boolean;
  currentPeriodEnd: number | null;
  productIds: string[];
  provider: "stripe";
  providerId: string;
  status: string | null;
};

A Stripe subscription stored for a user. Cancellation times are epoch milliseconds. Older stored subscriptions have null dates and cancelAtPeriodEnd false.

Properties

cancelAt

cancelAt: number | null;

cancelAtPeriodEnd

cancelAtPeriodEnd: boolean;

currentPeriodEnd

currentPeriodEnd: number | null;

productIds

productIds: string[];

provider

provider: "stripe";

providerId

providerId: string;

status

status: string | null;

On this page