diff --git a/.changeset/updated-api-spec.md b/.changeset/updated-api-spec.md new file mode 100644 index 0000000..e1ed3c4 --- /dev/null +++ b/.changeset/updated-api-spec.md @@ -0,0 +1,6 @@ +--- +"@outseta/api-client": patch +"@outseta/react": patch +--- + +Update API spec. diff --git a/packages/api-client/src/generated/models/accountAddPersonActivityData.ts b/packages/api-client/src/generated/models/accountAddPersonActivityData.ts new file mode 100644 index 0000000..da9e963 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonActivityData.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +export interface AccountAddPersonActivityData { + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + PersonUid?: string | null; + /** @nullable */ + Email?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayload.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayload.ts new file mode 100644 index 0000000..dda0812 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadBillingAddress } from './accountAddPersonWebhookPayloadBillingAddress'; +import type { AccountAddPersonWebhookPayloadMailingAddress } from './accountAddPersonWebhookPayloadMailingAddress'; +import type { AccountAddPersonWebhookPayloadAccountStage } from './accountAddPersonWebhookPayloadAccountStage'; +import type { AccountAddPersonWebhookPayloadPaymentInformation } from './accountAddPersonWebhookPayloadPaymentInformation'; +import type { AccountAddPersonWebhookPayloadPersonAccountItem } from './accountAddPersonWebhookPayloadPersonAccountItem'; +import type { AccountAddPersonWebhookPayloadStripeInvoicesItem } from './accountAddPersonWebhookPayloadStripeInvoicesItem'; +import type { AccountAddPersonWebhookPayloadStripePaymentMethodsItem } from './accountAddPersonWebhookPayloadStripePaymentMethodsItem'; +import type { AccountAddPersonWebhookPayloadStripeSubscriptionsItem } from './accountAddPersonWebhookPayloadStripeSubscriptionsItem'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItem } from './accountAddPersonWebhookPayloadSubscriptionsItem'; +import type { AccountAddPersonWebhookPayloadDealsItem } from './accountAddPersonWebhookPayloadDealsItem'; +import type { AccountAddPersonWebhookPayloadTaxIdsItem } from './accountAddPersonWebhookPayloadTaxIdsItem'; +import type { AccountAddPersonWebhookPayloadCurrentSubscription } from './accountAddPersonWebhookPayloadCurrentSubscription'; +import type { AccountAddPersonWebhookPayloadLatestSubscription } from './accountAddPersonWebhookPayloadLatestSubscription'; +import type { AccountAddPersonWebhookPayloadPrimaryContact } from './accountAddPersonWebhookPayloadPrimaryContact'; +import type { AccountAddPersonWebhookPayloadPrimarySubscription } from './accountAddPersonWebhookPayloadPrimarySubscription'; +import type { AccountAddPersonWebhookPayloadPrimaryStripeSubscription } from './accountAddPersonWebhookPayloadPrimaryStripeSubscription'; +import type { AccountAddPersonActivityData } from './accountAddPersonActivityData'; + +export interface AccountAddPersonWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountAddPersonWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountAddPersonWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountAddPersonWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountAddPersonWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountAddPersonWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountAddPersonWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountAddPersonWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountAddPersonWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountAddPersonWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountAddPersonWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountAddPersonWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountAddPersonWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountAddPersonWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountAddPersonWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountAddPersonWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountAddPersonWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountAddPersonActivityData; +} diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..8c2ee12 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountAddPersonWebhookPayloadAccountStage = typeof AccountAddPersonWebhookPayloadAccountStage[keyof typeof AccountAddPersonWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..64bc7fa --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..74b2bed --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionPlan } from './accountAddPersonWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..2df4ce4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..27dbf4e --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..4c9e6a1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..fe9f118 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..b85401c --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..81c696f --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..739a902 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..5674e51 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..8209305 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..ca85e6a --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..9ba1237 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..29e5c14 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..68c9198 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..d149455 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..b78aee2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..6f3afd3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..05a550a --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionPlan } from './accountAddPersonWebhookPayloadLatestSubscriptionPlan'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice } from './accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountAddPersonWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..b19174b --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..368c495 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..b1b0629 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..0661545 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..b0550a1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..c386a25 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..1e81d47 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..9fbb636 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..3d0714d --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..3f9ac12 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..a61dfdf --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..728d6bf --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..a89c141 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..a9f3361 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..73d9eed --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..c922c05 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..c6b5ed5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..a027a4f --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadPersonAccountItemPerson } from './accountAddPersonWebhookPayloadPersonAccountItemPerson'; + +export type AccountAddPersonWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountAddPersonWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..b7ffa52 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..5c64b56 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..2f5ca4d --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..fcd6dd3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..07bd5ec --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..175dcdb --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..8244373 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..337ccac --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..a4b1e35 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..cb06e09 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..9cdcc6f --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemPlan } from './accountAddPersonWebhookPayloadSubscriptionsItemPlan'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice } from './accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountAddPersonWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountAddPersonWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..ecc7c14 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..47da258 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..297bb25 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..1eaccef --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..33f313a --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..25c68bf --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..ad3184f --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..23e6641 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..90d5433 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..e28d590 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..adebc9b --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..1d333a0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..6679dd1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..6686a24 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..e062c84 --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..10025ee --- /dev/null +++ b/packages/api-client/src/generated/models/accountAddPersonWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountAddPersonWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedActivityData.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedActivityData.ts new file mode 100644 index 0000000..2100960 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedActivityData.ts @@ -0,0 +1,6 @@ +// @ts-nocheck + +export interface AccountPaidSubscriptionCreatedActivityData { + /** @nullable */ + SubscriptionUid?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayload.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayload.ts new file mode 100644 index 0000000..fdd5c8d --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadBillingAddress } from './accountPaidSubscriptionCreatedWebhookPayloadBillingAddress'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadMailingAddress } from './accountPaidSubscriptionCreatedWebhookPayloadMailingAddress'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadAccountStage } from './accountPaidSubscriptionCreatedWebhookPayloadAccountStage'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadPaymentInformation } from './accountPaidSubscriptionCreatedWebhookPayloadPaymentInformation'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem } from './accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem } from './accountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem } from './accountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem } from './accountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadDealsItem } from './accountPaidSubscriptionCreatedWebhookPayloadDealsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem } from './accountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscription } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscription'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContact } from './accountPaidSubscriptionCreatedWebhookPayloadPrimaryContact'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription } from './accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription } from './accountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountPaidSubscriptionCreatedActivityData } from './accountPaidSubscriptionCreatedActivityData'; + +export interface AccountPaidSubscriptionCreatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountPaidSubscriptionCreatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountPaidSubscriptionCreatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountPaidSubscriptionCreatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountPaidSubscriptionCreatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountPaidSubscriptionCreatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountPaidSubscriptionCreatedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..f0ebada --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadAccountStage = typeof AccountPaidSubscriptionCreatedWebhookPayloadAccountStage[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..402c6c5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..636b0ef --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..168985e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..b192528 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..6506d7d --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..33e4861 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..893fd4a --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..1f688ca --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..50939c4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..69a6b67 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..1ef87eb --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..e508942 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..adb7c8b --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..a5f0cb1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..6595d8c --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..e236cba --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..9b2c08a --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..4c428b4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..e8edc80 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..1a3aab4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..db13f56 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..8f0074c --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..14d83e1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..acc4378 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..33b9214 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..4982013 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..f0ed629 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..63f724d --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..6ce92e2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..a34e041 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..dd816f9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..9b9c8ed --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..8e3c370 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..d68308f --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..a312ae8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..0256c09 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..2b750c2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson } from './accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..b71b946 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..58383cf --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..a3e073e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..906b832 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..382bd00 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..96c0303 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..a294341 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..c6f33e7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..6713ada --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..3b09f4e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..2b77ebc --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..ebb9421 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..ee01165 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..6b45c33 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..7027106 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..6602d44 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..0ee651e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..48a7bb5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..eebfcc0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..cef2ba2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..9d032da --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..2143fb6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..be46a39 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..ca5e070 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..f11239d --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..3b45c07 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..cd0eb77 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedActivityData.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedActivityData.ts new file mode 100644 index 0000000..ba78c6e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedActivityData.ts @@ -0,0 +1,8 @@ +// @ts-nocheck + +export interface AccountPrimaryPersonUpdatedActivityData { + /** @nullable */ + PreviousPrimaryPersonEmail?: string | null; + /** @nullable */ + CurrentPrimaryPersonEmail?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayload.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayload.ts new file mode 100644 index 0000000..80f3aec --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadBillingAddress } from './accountPrimaryPersonUpdatedWebhookPayloadBillingAddress'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadMailingAddress } from './accountPrimaryPersonUpdatedWebhookPayloadMailingAddress'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadAccountStage } from './accountPrimaryPersonUpdatedWebhookPayloadAccountStage'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadPaymentInformation } from './accountPrimaryPersonUpdatedWebhookPayloadPaymentInformation'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem } from './accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem } from './accountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem } from './accountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem } from './accountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadDealsItem } from './accountPrimaryPersonUpdatedWebhookPayloadDealsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem } from './accountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscription } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscription'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContact } from './accountPrimaryPersonUpdatedWebhookPayloadPrimaryContact'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription } from './accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription } from './accountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountPrimaryPersonUpdatedActivityData } from './accountPrimaryPersonUpdatedActivityData'; + +export interface AccountPrimaryPersonUpdatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountPrimaryPersonUpdatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountPrimaryPersonUpdatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountPrimaryPersonUpdatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountPrimaryPersonUpdatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountPrimaryPersonUpdatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountPrimaryPersonUpdatedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..7834deb --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadAccountStage = typeof AccountPrimaryPersonUpdatedWebhookPayloadAccountStage[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..3197af7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..9588e12 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..41ca9a4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..485a85e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..cd83b0b --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..30f7394 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..a4ca3ec --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..2c97f1a --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..8a239e5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..d4a4dac --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..1db8f78 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..6ac4eff --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..f43df49 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..872bec5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..17190ee --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..e2382df --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..8226037 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..baab609 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..8ee33b9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..0b93a76 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..b8fbd3c --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..4ecb060 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..a6a631e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..34ac737 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..6e95747 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..4ab05a9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..b49b72d --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..53001fc --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..ba7e78f --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..88b32ef --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..d0e8697 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..5c4e7a0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..44c17b8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..93832cf --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..f02839f --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..0d946f1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..1c7e161 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson } from './accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..73c416c --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..05a5d27 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..bb400c4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..0f84e91 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..24243c0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..a3a9b9e --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..41e6e90 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..e99a857 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..5aab545 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..492ffad --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..517c097 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..3187b9a --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..3ce6863 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..ca35aba --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..9e2c0b4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..5d7a528 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..17877ba --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..f815cc8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..701ae02 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..2e3a165 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..72cfebf --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..a48cd2d --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..3aa7044 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..9e2e457 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..4e3747b --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..8f6781c --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..a49b038 --- /dev/null +++ b/packages/api-client/src/generated/models/accountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonActivityData.ts b/packages/api-client/src/generated/models/accountRemovePersonActivityData.ts new file mode 100644 index 0000000..e8468d7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonActivityData.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +export interface AccountRemovePersonActivityData { + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + PersonUid?: string | null; + /** @nullable */ + Email?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayload.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayload.ts new file mode 100644 index 0000000..a5a6450 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadBillingAddress } from './accountRemovePersonWebhookPayloadBillingAddress'; +import type { AccountRemovePersonWebhookPayloadMailingAddress } from './accountRemovePersonWebhookPayloadMailingAddress'; +import type { AccountRemovePersonWebhookPayloadAccountStage } from './accountRemovePersonWebhookPayloadAccountStage'; +import type { AccountRemovePersonWebhookPayloadPaymentInformation } from './accountRemovePersonWebhookPayloadPaymentInformation'; +import type { AccountRemovePersonWebhookPayloadPersonAccountItem } from './accountRemovePersonWebhookPayloadPersonAccountItem'; +import type { AccountRemovePersonWebhookPayloadStripeInvoicesItem } from './accountRemovePersonWebhookPayloadStripeInvoicesItem'; +import type { AccountRemovePersonWebhookPayloadStripePaymentMethodsItem } from './accountRemovePersonWebhookPayloadStripePaymentMethodsItem'; +import type { AccountRemovePersonWebhookPayloadStripeSubscriptionsItem } from './accountRemovePersonWebhookPayloadStripeSubscriptionsItem'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItem } from './accountRemovePersonWebhookPayloadSubscriptionsItem'; +import type { AccountRemovePersonWebhookPayloadDealsItem } from './accountRemovePersonWebhookPayloadDealsItem'; +import type { AccountRemovePersonWebhookPayloadTaxIdsItem } from './accountRemovePersonWebhookPayloadTaxIdsItem'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscription } from './accountRemovePersonWebhookPayloadCurrentSubscription'; +import type { AccountRemovePersonWebhookPayloadLatestSubscription } from './accountRemovePersonWebhookPayloadLatestSubscription'; +import type { AccountRemovePersonWebhookPayloadPrimaryContact } from './accountRemovePersonWebhookPayloadPrimaryContact'; +import type { AccountRemovePersonWebhookPayloadPrimarySubscription } from './accountRemovePersonWebhookPayloadPrimarySubscription'; +import type { AccountRemovePersonWebhookPayloadPrimaryStripeSubscription } from './accountRemovePersonWebhookPayloadPrimaryStripeSubscription'; +import type { AccountRemovePersonActivityData } from './accountRemovePersonActivityData'; + +export interface AccountRemovePersonWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountRemovePersonWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountRemovePersonWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountRemovePersonWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountRemovePersonWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountRemovePersonWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountRemovePersonWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountRemovePersonWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountRemovePersonWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountRemovePersonWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountRemovePersonWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountRemovePersonWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountRemovePersonWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountRemovePersonWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountRemovePersonWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountRemovePersonWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountRemovePersonWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountRemovePersonActivityData; +} diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..62e6270 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountRemovePersonWebhookPayloadAccountStage = typeof AccountRemovePersonWebhookPayloadAccountStage[keyof typeof AccountRemovePersonWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..95c8751 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..66bda86 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionPlan } from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..e776861 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..d57f2dd --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..e1adb61 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..5fc5cfc --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..97d31e6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..2ba23c7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..a0ec3a2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..9b6cbb7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..2ac3e69 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..4d10331 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..43dbb4a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..0e70fab --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..c5fcfe1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..f7e8ef4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..58f7412 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..730dfcd --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..c9b5634 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionPlan } from './accountRemovePersonWebhookPayloadLatestSubscriptionPlan'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice } from './accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..1134552 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..b9c8990 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..0442b97 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..69c8382 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..d6a8f6a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..da37ec1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..968cf31 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..f31926a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..374ecf1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..a71e3c8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..7660473 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..c18d216 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..f0d0b4e --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..b8e6a3f --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..d12625a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..31ade12 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..07958cb --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..f668db5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadPersonAccountItemPerson } from './accountRemovePersonWebhookPayloadPersonAccountItemPerson'; + +export type AccountRemovePersonWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountRemovePersonWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..b22c6eb --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..ae4fe2c --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..008495b --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..521b627 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..1bff4a7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..41d99ed --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..95d1825 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..1147d95 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..986a411 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..6c9623a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..a6d3ab1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemPlan } from './accountRemovePersonWebhookPayloadSubscriptionsItemPlan'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice } from './accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..0b93b50 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..dc5e679 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..b3ecb7c --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..465c53f --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..1c5216d --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..495ab7f --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..aec3ed8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..dd69c62 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..7337da4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..7961e0a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..806ff85 --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..cd38f6b --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..5322ecd --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..11ca95a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..5cc043a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..fc6c86a --- /dev/null +++ b/packages/api-client/src/generated/models/accountRemovePersonWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountRemovePersonWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedActivityData.ts b/packages/api-client/src/generated/models/accountStageUpdatedActivityData.ts new file mode 100644 index 0000000..bfff20f --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedActivityData.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +export interface AccountStageUpdatedActivityData { + /** @nullable */ + PriorAccountStage?: string | null; + /** @nullable */ + CurrentAccountStage?: string | null; + /** @nullable */ + CancelationReason?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayload.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayload.ts new file mode 100644 index 0000000..8990011 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadBillingAddress } from './accountStageUpdatedWebhookPayloadBillingAddress'; +import type { AccountStageUpdatedWebhookPayloadMailingAddress } from './accountStageUpdatedWebhookPayloadMailingAddress'; +import type { AccountStageUpdatedWebhookPayloadAccountStage } from './accountStageUpdatedWebhookPayloadAccountStage'; +import type { AccountStageUpdatedWebhookPayloadPaymentInformation } from './accountStageUpdatedWebhookPayloadPaymentInformation'; +import type { AccountStageUpdatedWebhookPayloadPersonAccountItem } from './accountStageUpdatedWebhookPayloadPersonAccountItem'; +import type { AccountStageUpdatedWebhookPayloadStripeInvoicesItem } from './accountStageUpdatedWebhookPayloadStripeInvoicesItem'; +import type { AccountStageUpdatedWebhookPayloadStripePaymentMethodsItem } from './accountStageUpdatedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountStageUpdatedWebhookPayloadStripeSubscriptionsItem } from './accountStageUpdatedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItem } from './accountStageUpdatedWebhookPayloadSubscriptionsItem'; +import type { AccountStageUpdatedWebhookPayloadDealsItem } from './accountStageUpdatedWebhookPayloadDealsItem'; +import type { AccountStageUpdatedWebhookPayloadTaxIdsItem } from './accountStageUpdatedWebhookPayloadTaxIdsItem'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscription } from './accountStageUpdatedWebhookPayloadCurrentSubscription'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscription } from './accountStageUpdatedWebhookPayloadLatestSubscription'; +import type { AccountStageUpdatedWebhookPayloadPrimaryContact } from './accountStageUpdatedWebhookPayloadPrimaryContact'; +import type { AccountStageUpdatedWebhookPayloadPrimarySubscription } from './accountStageUpdatedWebhookPayloadPrimarySubscription'; +import type { AccountStageUpdatedWebhookPayloadPrimaryStripeSubscription } from './accountStageUpdatedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountStageUpdatedActivityData } from './accountStageUpdatedActivityData'; + +export interface AccountStageUpdatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountStageUpdatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountStageUpdatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountStageUpdatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountStageUpdatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountStageUpdatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountStageUpdatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountStageUpdatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountStageUpdatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountStageUpdatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountStageUpdatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountStageUpdatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountStageUpdatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountStageUpdatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountStageUpdatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountStageUpdatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountStageUpdatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountStageUpdatedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..f7bf7a3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountStageUpdatedWebhookPayloadAccountStage = typeof AccountStageUpdatedWebhookPayloadAccountStage[keyof typeof AccountStageUpdatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..56864f1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..5703fda --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlan } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..0d96ef8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..5339923 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..46772c4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..702b234 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..146f4b9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..6f8846b --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..9ad9928 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..509ea6e --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..c6557f1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..f581304 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..790280c --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..bcae24e --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..5a292e2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..052fd9f --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..c66d6a2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..b06df6e --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..d2038d6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionPlan } from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..dd41737 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..f36d070 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..ffa7df8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..1e7af74 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..f55196f --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..79bf1d3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..1564b05 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..0b0e020 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..3b01d86 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..52fc7c8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..9dae8b1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..4e511eb --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..00dd905 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..3a64033 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..a6d8f51 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..dd928e5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..f43e1de --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..99882e2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadPersonAccountItemPerson } from './accountStageUpdatedWebhookPayloadPersonAccountItemPerson'; + +export type AccountStageUpdatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountStageUpdatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..90e68b1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..8706e49 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..9bbe45f --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..225dfc3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..867f617 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..d70613a --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..cc44cd2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..f82893a --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..7e86c67 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..13d40db --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..f0ba277 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemPlan } from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..1cccf05 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..37b0590 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..a2bc322 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..276ffa7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..a72c7ed --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..6f95c30 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..e9c01ec --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..7b89d04 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..274eb5d --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..1aa50fb --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..93e4e84 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..e4759d8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..d4f9369 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..d6ac9bf --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..27940d7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..0495edb --- /dev/null +++ b/packages/api-client/src/generated/models/accountStageUpdatedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountStageUpdatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnChange.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnChange.ts new file mode 100644 index 0000000..3b12f07 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnChange.ts @@ -0,0 +1,15 @@ +// @ts-nocheck +import type { AddOnChangeType } from './addOnChangeType'; + +export interface AccountSubscriptionAddOnChange { + AddOnChangeType?: AddOnChangeType; + /** @nullable */ + AddOnUid?: string | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + Quantity?: number | null; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayload.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayload.ts new file mode 100644 index 0000000..d805240 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadBillingAddress } from './accountSubscriptionAddOnsChangedWebhookPayloadBillingAddress'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadMailingAddress } from './accountSubscriptionAddOnsChangedWebhookPayloadMailingAddress'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage } from './accountSubscriptionAddOnsChangedWebhookPayloadAccountStage'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation } from './accountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem } from './accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem } from './accountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadDealsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadDealsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact } from './accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription } from './accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription } from './accountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountSubscriptionAddOnChange } from './accountSubscriptionAddOnChange'; + +export interface AccountSubscriptionAddOnsChangedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionAddOnsChangedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionAddOnsChangedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionAddOnsChangedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionAddOnChange[]; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..e7ba754 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage = typeof AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..3d2f157 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..6e76f0e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..49c7f61 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..90dc4d9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..15b15c8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..cce27f9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..7b70f3f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..2308e26 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..e5e6c98 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..98b856a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..3f443d1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..8821233 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..95495d3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..b343457 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..27c910b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..fd2d7fb --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..129a7e4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..2e7f5cd --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..d5ac2ba --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..76ba03d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..8862343 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..f7db5ad --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..342be5e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..c4b5b36 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..d37567b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..1ddbb0a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..3e8dc1e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..f306f33 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..eee72ae --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..0d95bc7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..b2867e5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..82b4ca1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..9e38f81 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..481e187 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..eb8e0fe --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..7c47efc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..6c9160c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson } from './accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..0966343 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..7c38968 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..8a96e82 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..c29f6a9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..527963a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..d4f37d8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..4a771f4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..e4f2304 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..8cf7e28 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..52781de --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..e44baff --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..385762f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..fbce7f8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..177b3a9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..54f3d9c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..5f4ca57 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..f4f000a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..4b412ca --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..b0460ef --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..7c68c67 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..7f0cd1f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..340d8f9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..25c2111 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..f32ef91 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..7ddb3a8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..a3bbb49 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..bae91d0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedActivityData.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedActivityData.ts new file mode 100644 index 0000000..3ea619f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedActivityData.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +export interface AccountSubscriptionCancellationRequestedActivityData { + /** @nullable */ + RequestedByEmail?: string | null; + /** @nullable */ + CancelationReason?: string | null; + /** @nullable */ + Comment?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayload.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayload.ts new file mode 100644 index 0000000..37e210c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadBillingAddress } from './accountSubscriptionCancellationRequestedWebhookPayloadBillingAddress'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadMailingAddress } from './accountSubscriptionCancellationRequestedWebhookPayloadMailingAddress'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage } from './accountSubscriptionCancellationRequestedWebhookPayloadAccountStage'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation } from './accountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem } from './accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem } from './accountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadDealsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadDealsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact } from './accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription } from './accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription } from './accountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountSubscriptionCancellationRequestedActivityData } from './accountSubscriptionCancellationRequestedActivityData'; + +export interface AccountSubscriptionCancellationRequestedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionCancellationRequestedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionCancellationRequestedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionCancellationRequestedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionCancellationRequestedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..1a2e38b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage = typeof AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..02b2119 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..5fc7b0d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..134997c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..aed2d73 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..62c11e2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..8bab11e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..921e453 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..16f2759 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..8ff28f9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..9769ea5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..89ac0c1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..ccba990 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..4b70f85 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..ee0b848 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..badabf4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..5da404e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..7037b96 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..73ddccc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..30c115e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..b0810b9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..a4dd9e4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..756202e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..0b7d731 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..615fa47 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..a38f18a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..18a1c00 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..973d332 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..7b90467 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..1786ced --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..bfd59df --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..ddccdf9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..6d88b4b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..964d578 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..d56292d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..471bade --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..0473c8e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..c19ef75 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson } from './accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..4100d1c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..f506f99 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..fa51b8c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..49c8bdd --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..56a0ab2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..5983e29 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..13e7b22 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..b0df27e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..22064f0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..6329d4a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..ff8dd0d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..00f0f2d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..e99b9bc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..de9fc3f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..209f5c2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..68ad9f6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..bef88a7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..a84624d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..6d73b6f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..d89f554 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..0a9eaf6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..c13ee42 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..517ebd3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..664b2ae --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..9a2f554 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..680abd3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..1386ce9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedActivityData.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedActivityData.ts new file mode 100644 index 0000000..ecde50f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedActivityData.ts @@ -0,0 +1,8 @@ +// @ts-nocheck + +export interface AccountSubscriptionPaymentCollectedActivityData { + /** @nullable */ + InvoiceUid?: string | null; + /** @nullable */ + Amount?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayload.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayload.ts new file mode 100644 index 0000000..7199507 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadBillingAddress } from './accountSubscriptionPaymentCollectedWebhookPayloadBillingAddress'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadMailingAddress } from './accountSubscriptionPaymentCollectedWebhookPayloadMailingAddress'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage } from './accountSubscriptionPaymentCollectedWebhookPayloadAccountStage'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation } from './accountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem } from './accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem } from './accountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadDealsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadDealsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact } from './accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription } from './accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription } from './accountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountSubscriptionPaymentCollectedActivityData } from './accountSubscriptionPaymentCollectedActivityData'; + +export interface AccountSubscriptionPaymentCollectedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionPaymentCollectedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionPaymentCollectedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionPaymentCollectedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionPaymentCollectedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..ab22dfa --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage = typeof AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..6dd17a5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..f9bf2da --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..3a4d40a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..4889bc6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..88f4858 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..a1f2609 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..4c27b16 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..361fd7d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..da7ea74 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..3054c3d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..e2e2f61 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..0eda29f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..b4d1caa --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..d4b6785 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..78be486 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..26ba9ad --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..64a4629 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..75c1528 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..4fdf5d2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..f8ace55 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..114003e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..228f1bf --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..e72ebeb --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..50f2194 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..bb5141c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..cf2d963 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..2e88047 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..5af1c47 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..de4a8c4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..ecbe29d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..8d6b722 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..7fb111e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..b0a1e97 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..adec2c4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..b31c4e9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..23a7811 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..a332f08 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson } from './accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..473f057 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..70f8f22 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..a15c5a2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..8e4b99e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..0c7b062 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..1e55c7b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..4db5c6e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..0e50325 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..44c7598 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..47cafc4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..69eeed7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..05c2c72 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..44d2f75 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..7ae3c3f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..bd97bbc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..181b9fb --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..b335c78 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..91d99d9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..e56021a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..36eb34b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..06ecb8d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..0c377b3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..cd5ea09 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..51e2bd1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..656e915 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..4aa5151 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..b29fb0a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedActivityData.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedActivityData.ts new file mode 100644 index 0000000..432a0f5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedActivityData.ts @@ -0,0 +1,9 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedActivityDataSubscription } from './accountSubscriptionPlanUpdatedActivityDataSubscription'; + +export interface AccountSubscriptionPlanUpdatedActivityData { + /** @nullable */ + Subscription?: AccountSubscriptionPlanUpdatedActivityDataSubscription; + /** @nullable */ + CurrentPrincipal?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedActivityDataSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedActivityDataSubscription.ts new file mode 100644 index 0000000..b20def7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedActivityDataSubscription.ts @@ -0,0 +1,6 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedActivityDataSubscription = unknown | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayload.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayload.ts new file mode 100644 index 0000000..60e5320 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadBillingAddress } from './accountSubscriptionPlanUpdatedWebhookPayloadBillingAddress'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadMailingAddress } from './accountSubscriptionPlanUpdatedWebhookPayloadMailingAddress'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage } from './accountSubscriptionPlanUpdatedWebhookPayloadAccountStage'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation } from './accountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem } from './accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem } from './accountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadDealsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadDealsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact } from './accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription } from './accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription } from './accountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountSubscriptionPlanUpdatedActivityData } from './accountSubscriptionPlanUpdatedActivityData'; + +export interface AccountSubscriptionPlanUpdatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionPlanUpdatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionPlanUpdatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionPlanUpdatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionPlanUpdatedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..8be85aa --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage = typeof AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..95ffb4f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..bd4d507 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..9fa2715 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..fdd053b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..2068220 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..0dff687 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..796b229 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..490c4f7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..aa88e83 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..81afb9d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..e1499a8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..d1f487b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..8d97c4f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..f5037fe --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..716c582 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..8883546 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..ee0300d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..f429134 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..6e8d7fe --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..34963cc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..435068a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..0c81e46 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..0c0072f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..e7db0df --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..b48a1d4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..6851861 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..ce48fc0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..77bf18b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..e204ff6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..75fc3d2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..c4c3c50 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..f2c186e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..ca69f2f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..e6e2e0a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..f8748f2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..b450f03 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..4427a89 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson } from './accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..b3a4143 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..77c816c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..82a442f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..6cd8880 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..3f3311b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..2fe93f8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..ecb54c2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..854cce9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..beb994c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..09fe569 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..b92da65 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..726a964 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..dfe2c8c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..157408b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..f71121a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..5ed21c4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..c565882 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..26ae21c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..d713763 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..3e528b0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..e9cfdf3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..34a5c3a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..32d3724 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..39b6e0a --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..9924b90 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..b5cb770 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..dd47831 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedActivityData.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedActivityData.ts new file mode 100644 index 0000000..1f32d99 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedActivityData.ts @@ -0,0 +1,8 @@ +// @ts-nocheck + +export interface AccountSubscriptionRenewalExtendedActivityData { + /** @nullable */ + PriorRenewalDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayload.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayload.ts new file mode 100644 index 0000000..edb4afc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadBillingAddress } from './accountSubscriptionRenewalExtendedWebhookPayloadBillingAddress'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadMailingAddress } from './accountSubscriptionRenewalExtendedWebhookPayloadMailingAddress'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage } from './accountSubscriptionRenewalExtendedWebhookPayloadAccountStage'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation } from './accountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem } from './accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem } from './accountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadDealsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadDealsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact } from './accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription } from './accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription } from './accountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountSubscriptionRenewalExtendedActivityData } from './accountSubscriptionRenewalExtendedActivityData'; + +export interface AccountSubscriptionRenewalExtendedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionRenewalExtendedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionRenewalExtendedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionRenewalExtendedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionRenewalExtendedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..d1ccf6d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage = typeof AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..f374ae1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..21c27ea --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..700dfc4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..403d323 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..0a0e70f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..b64749e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..85205d7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..51c3b5b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..0f3d5f0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..e443e0e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..6c2b980 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..be74d46 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..015b23f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..cb3be58 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..e593e9b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..2b836af --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..ce11f65 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..f85cfb5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..75f5142 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..c1bfc0c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..8baf3fa --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..0111254 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..4c721d4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..0a1e9c0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..4d2fba4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..c085db4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..0097605 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..9d9a41b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..52273f0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..6a12b12 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..3341d18 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..929985b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..f37faa2 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..eb38435 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..225cdd5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..b4e5ec5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..365796c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson } from './accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..954e0dd --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..5e888d1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..3bae9b0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..c3d54b3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..384f0a1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..bfe0b61 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..33a28ac --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..8b4629f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..ea99684 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..75a946e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..12c9bb3 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..8ab7ce7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..d52b7aa --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..ce05182 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..f035c37 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..2fd43c0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..76234a6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..7d9ff99 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..e02e1c9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..fe73def --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..9400cf6 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..f7e6a93 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..2d6c4a5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..0a909c1 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..766a1a0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..9d8ce8c --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..a553de5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedActivityData.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedActivityData.ts new file mode 100644 index 0000000..ab63047 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedActivityData.ts @@ -0,0 +1,11 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedActivityDataSubscription } from './accountSubscriptionStartedActivityDataSubscription'; + +export interface AccountSubscriptionStartedActivityData { + /** @nullable */ + Subscription?: AccountSubscriptionStartedActivityDataSubscription; + /** @nullable */ + CurrentPrincipal?: string | null; + /** @nullable */ + SubscriptionUid?: string | null; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedActivityDataSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedActivityDataSubscription.ts new file mode 100644 index 0000000..d67e2d8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedActivityDataSubscription.ts @@ -0,0 +1,6 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedActivityDataSubscription = unknown | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayload.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayload.ts new file mode 100644 index 0000000..9411af5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadBillingAddress } from './accountSubscriptionStartedWebhookPayloadBillingAddress'; +import type { AccountSubscriptionStartedWebhookPayloadMailingAddress } from './accountSubscriptionStartedWebhookPayloadMailingAddress'; +import type { AccountSubscriptionStartedWebhookPayloadAccountStage } from './accountSubscriptionStartedWebhookPayloadAccountStage'; +import type { AccountSubscriptionStartedWebhookPayloadPaymentInformation } from './accountSubscriptionStartedWebhookPayloadPaymentInformation'; +import type { AccountSubscriptionStartedWebhookPayloadPersonAccountItem } from './accountSubscriptionStartedWebhookPayloadPersonAccountItem'; +import type { AccountSubscriptionStartedWebhookPayloadStripeInvoicesItem } from './accountSubscriptionStartedWebhookPayloadStripeInvoicesItem'; +import type { AccountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem } from './accountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem'; +import type { AccountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem } from './accountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItem } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItem'; +import type { AccountSubscriptionStartedWebhookPayloadDealsItem } from './accountSubscriptionStartedWebhookPayloadDealsItem'; +import type { AccountSubscriptionStartedWebhookPayloadTaxIdsItem } from './accountSubscriptionStartedWebhookPayloadTaxIdsItem'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscription } from './accountSubscriptionStartedWebhookPayloadCurrentSubscription'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscription } from './accountSubscriptionStartedWebhookPayloadLatestSubscription'; +import type { AccountSubscriptionStartedWebhookPayloadPrimaryContact } from './accountSubscriptionStartedWebhookPayloadPrimaryContact'; +import type { AccountSubscriptionStartedWebhookPayloadPrimarySubscription } from './accountSubscriptionStartedWebhookPayloadPrimarySubscription'; +import type { AccountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription } from './accountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription'; +import type { AccountSubscriptionStartedActivityData } from './accountSubscriptionStartedActivityData'; + +export interface AccountSubscriptionStartedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionStartedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionStartedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionStartedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionStartedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionStartedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionStartedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionStartedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionStartedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionStartedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionStartedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionStartedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionStartedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionStartedActivityData; +} diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..bdf5654 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionStartedWebhookPayloadAccountStage = typeof AccountSubscriptionStartedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionStartedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..cd13a66 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..434c84e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..7123f57 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..6a6995d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..9903546 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..23905a4 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..33927db --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..20195af --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..51d0c65 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..c085b87 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..5cbbd94 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..c27eb06 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..640bcc8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..d515ac8 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..54f2764 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..0f847e7 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..b166b0e --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..1401c38 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..22a311d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..05f2841 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..c1ebddb --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..817e929 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..6443666 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..165d711 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..3e16bf5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..a108667 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..85d2415 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..88e1b00 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..08aa1bd --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..ceffdd0 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..34a5865 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..0cf6d8f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..5d5aaf9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..6f5ff6b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..205a774 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..5ef1d3d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..c8b6f11 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadPersonAccountItemPerson } from './accountSubscriptionStartedWebhookPayloadPersonAccountItemPerson'; + +export type AccountSubscriptionStartedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionStartedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..71ac48b --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './accountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..c2f2f94 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..a02e098 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './accountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..56df250 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..7aa3783 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..435bd15 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..37fb8a5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..9832d69 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..1623886 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..5b1f457 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..c719e3f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..a1cc3b5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..932ae6d --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..a77ad71 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..ef992bd --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..a65b287 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..00729d5 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..3b0faaf --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..51b275f --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..cec60fc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..b040291 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..1899baa --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..98c89bc --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..04049e9 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..a840cbb --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..5b48922 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..87adb05 --- /dev/null +++ b/packages/api-client/src/generated/models/accountSubscriptionStartedWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type AccountSubscriptionStartedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/api-client/src/generated/models/addOnChangeType.ts b/packages/api-client/src/generated/models/addOnChangeType.ts new file mode 100644 index 0000000..fee935c --- /dev/null +++ b/packages/api-client/src/generated/models/addOnChangeType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `AddOnAdded` - AddOnAdded, `AddOnReactivated` - AddOnReactivated, `AddOnQuantityChanged` - AddOnQuantityChanged + */ +export type AddOnChangeType = typeof AddOnChangeType[keyof typeof AddOnChangeType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AddOnChangeType = { + AddOnAdded: 'AddOnAdded', + AddOnReactivated: 'AddOnReactivated', + AddOnQuantityChanged: 'AddOnQuantityChanged', +} as const; diff --git a/packages/api-client/src/generated/models/index.ts b/packages/api-client/src/generated/models/index.ts index 3eae08b..d526b59 100644 --- a/packages/api-client/src/generated/models/index.ts +++ b/packages/api-client/src/generated/models/index.ts @@ -51,7 +51,74 @@ export * from './acceptTermsAndConditionsLocations'; export * from './account'; export * from './accountAddAccountBody'; export * from './accountAddAccountParams'; +export * from './accountAddPersonActivityData'; export * from './accountAddPersonToAccountBody'; +export * from './accountAddPersonWebhookPayload'; +export * from './accountAddPersonWebhookPayloadAccountStage'; +export * from './accountAddPersonWebhookPayloadBillingAddress'; +export * from './accountAddPersonWebhookPayloadCurrentSubscription'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadDealsItem'; +export * from './accountAddPersonWebhookPayloadLatestSubscription'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionPlan'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadMailingAddress'; +export * from './accountAddPersonWebhookPayloadPaymentInformation'; +export * from './accountAddPersonWebhookPayloadPersonAccountItem'; +export * from './accountAddPersonWebhookPayloadPersonAccountItemPerson'; +export * from './accountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountAddPersonWebhookPayloadPrimaryContact'; +export * from './accountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountAddPersonWebhookPayloadPrimaryStripeSubscription'; +export * from './accountAddPersonWebhookPayloadPrimarySubscription'; +export * from './accountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadStripeInvoicesItem'; +export * from './accountAddPersonWebhookPayloadStripePaymentMethodsItem'; +export * from './accountAddPersonWebhookPayloadStripeSubscriptionsItem'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItem'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemPlan'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountAddPersonWebhookPayloadTaxIdsItem'; export * from './accountAllOf'; export * from './accountAllOfBillingAddress'; export * from './accountAllOfCurrentSubscription'; @@ -68,8 +135,680 @@ export * from './accountCancelationAllOfAccount'; export * from './accountCancelationAllOfLastPlan'; export * from './accountExtendTrialBody'; export * from './accountGetAllAccountsParams'; +export * from './accountPaidSubscriptionCreatedActivityData'; +export * from './accountPaidSubscriptionCreatedWebhookPayload'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadAccountStage'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadBillingAddress'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadDealsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscription'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadMailingAddress'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPaymentInformation'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPrimaryContact'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem'; +export * from './accountPrimaryPersonUpdatedActivityData'; +export * from './accountPrimaryPersonUpdatedWebhookPayload'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadAccountStage'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadBillingAddress'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadDealsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscription'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadMailingAddress'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPaymentInformation'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPrimaryContact'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem'; export * from './accountRegistrationMode'; +export * from './accountRemovePersonActivityData'; +export * from './accountRemovePersonWebhookPayload'; +export * from './accountRemovePersonWebhookPayloadAccountStage'; +export * from './accountRemovePersonWebhookPayloadBillingAddress'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscription'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadDealsItem'; +export * from './accountRemovePersonWebhookPayloadLatestSubscription'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionPlan'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadMailingAddress'; +export * from './accountRemovePersonWebhookPayloadPaymentInformation'; +export * from './accountRemovePersonWebhookPayloadPersonAccountItem'; +export * from './accountRemovePersonWebhookPayloadPersonAccountItemPerson'; +export * from './accountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountRemovePersonWebhookPayloadPrimaryContact'; +export * from './accountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountRemovePersonWebhookPayloadPrimaryStripeSubscription'; +export * from './accountRemovePersonWebhookPayloadPrimarySubscription'; +export * from './accountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadStripeInvoicesItem'; +export * from './accountRemovePersonWebhookPayloadStripePaymentMethodsItem'; +export * from './accountRemovePersonWebhookPayloadStripeSubscriptionsItem'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItem'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemPlan'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountRemovePersonWebhookPayloadTaxIdsItem'; export * from './accountStage'; +export * from './accountStageUpdatedActivityData'; +export * from './accountStageUpdatedWebhookPayload'; +export * from './accountStageUpdatedWebhookPayloadAccountStage'; +export * from './accountStageUpdatedWebhookPayloadBillingAddress'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscription'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadDealsItem'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscription'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadMailingAddress'; +export * from './accountStageUpdatedWebhookPayloadPaymentInformation'; +export * from './accountStageUpdatedWebhookPayloadPersonAccountItem'; +export * from './accountStageUpdatedWebhookPayloadPersonAccountItemPerson'; +export * from './accountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountStageUpdatedWebhookPayloadPrimaryContact'; +export * from './accountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountStageUpdatedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountStageUpdatedWebhookPayloadPrimarySubscription'; +export * from './accountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadStripeInvoicesItem'; +export * from './accountStageUpdatedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountStageUpdatedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItem'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountStageUpdatedWebhookPayloadTaxIdsItem'; +export * from './accountSubscriptionAddOnChange'; +export * from './accountSubscriptionAddOnsChangedWebhookPayload'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadAccountStage'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadBillingAddress'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadDealsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadMailingAddress'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem'; +export * from './accountSubscriptionCancellationRequestedActivityData'; +export * from './accountSubscriptionCancellationRequestedWebhookPayload'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadAccountStage'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadBillingAddress'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadDealsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadMailingAddress'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem'; +export * from './accountSubscriptionPaymentCollectedActivityData'; +export * from './accountSubscriptionPaymentCollectedWebhookPayload'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadAccountStage'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadBillingAddress'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadDealsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadMailingAddress'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem'; +export * from './accountSubscriptionPlanUpdatedActivityData'; +export * from './accountSubscriptionPlanUpdatedActivityDataSubscription'; +export * from './accountSubscriptionPlanUpdatedWebhookPayload'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadAccountStage'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadBillingAddress'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadDealsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadMailingAddress'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem'; +export * from './accountSubscriptionRenewalExtendedActivityData'; +export * from './accountSubscriptionRenewalExtendedWebhookPayload'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadAccountStage'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadBillingAddress'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadDealsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadMailingAddress'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem'; +export * from './accountSubscriptionStartedActivityData'; +export * from './accountSubscriptionStartedActivityDataSubscription'; +export * from './accountSubscriptionStartedWebhookPayload'; +export * from './accountSubscriptionStartedWebhookPayloadAccountStage'; +export * from './accountSubscriptionStartedWebhookPayloadBillingAddress'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscription'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadDealsItem'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscription'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadMailingAddress'; +export * from './accountSubscriptionStartedWebhookPayloadPaymentInformation'; +export * from './accountSubscriptionStartedWebhookPayloadPersonAccountItem'; +export * from './accountSubscriptionStartedWebhookPayloadPersonAccountItemPerson'; +export * from './accountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './accountSubscriptionStartedWebhookPayloadPrimaryContact'; +export * from './accountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './accountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription'; +export * from './accountSubscriptionStartedWebhookPayloadPrimarySubscription'; +export * from './accountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadStripeInvoicesItem'; +export * from './accountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem'; +export * from './accountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItem'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './accountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './accountSubscriptionStartedWebhookPayloadTaxIdsItem'; export * from './accountTaxId'; export * from './accountTaxIdAllOf'; export * from './accountTaxIdAllOfAccount'; @@ -89,6 +828,7 @@ export * from './activityNotificationAllOf'; export * from './activityType'; export * from './addOn'; export * from './addOnAllOf'; +export * from './addOnChangeType'; export * from './address'; export * from './addressAllOf'; export * from './apiKey'; @@ -363,6 +1103,73 @@ export * from './personListUnsubscribedWebhookPayloadMailingAddress'; export * from './personListUnsubscribedWebhookPayloadOAuthIntegrationStatus'; export * from './personListUnsubscribedWebhookPayloadPersonAccountItem'; export * from './personListUnsubscribedWebhookPayloadPersonAccountItemAccount'; +export * from './personLoginActivityData'; +export * from './personLoginWebhookPayload'; +export * from './personLoginWebhookPayloadAccountStage'; +export * from './personLoginWebhookPayloadBillingAddress'; +export * from './personLoginWebhookPayloadCurrentSubscription'; +export * from './personLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +export * from './personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +export * from './personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './personLoginWebhookPayloadCurrentSubscriptionLatestInvoice'; +export * from './personLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './personLoginWebhookPayloadCurrentSubscriptionPlan'; +export * from './personLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +export * from './personLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; +export * from './personLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +export * from './personLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +export * from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +export * from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './personLoginWebhookPayloadDealsItem'; +export * from './personLoginWebhookPayloadLatestSubscription'; +export * from './personLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +export * from './personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +export * from './personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './personLoginWebhookPayloadLatestSubscriptionLatestInvoice'; +export * from './personLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; +export * from './personLoginWebhookPayloadLatestSubscriptionPlan'; +export * from './personLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +export * from './personLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; +export * from './personLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +export * from './personLoginWebhookPayloadLatestSubscriptionPlanPlanFamily'; +export * from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +export * from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; +export * from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './personLoginWebhookPayloadMailingAddress'; +export * from './personLoginWebhookPayloadPaymentInformation'; +export * from './personLoginWebhookPayloadPersonAccountItem'; +export * from './personLoginWebhookPayloadPersonAccountItemPerson'; +export * from './personLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; +export * from './personLoginWebhookPayloadPrimaryContact'; +export * from './personLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus'; +export * from './personLoginWebhookPayloadPrimaryStripeSubscription'; +export * from './personLoginWebhookPayloadPrimarySubscription'; +export * from './personLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; +export * from './personLoginWebhookPayloadStripeInvoicesItem'; +export * from './personLoginWebhookPayloadStripePaymentMethodsItem'; +export * from './personLoginWebhookPayloadStripeSubscriptionsItem'; +export * from './personLoginWebhookPayloadSubscriptionsItem'; +export * from './personLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +export * from './personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +export * from './personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; +export * from './personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; +export * from './personLoginWebhookPayloadSubscriptionsItemLatestInvoice'; +export * from './personLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; +export * from './personLoginWebhookPayloadSubscriptionsItemPlan'; +export * from './personLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +export * from './personLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; +export * from './personLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +export * from './personLoginWebhookPayloadSubscriptionsItemPlanPlanFamily'; +export * from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +export * from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; +export * from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; +export * from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +export * from './personLoginWebhookPayloadTaxIdsItem'; export * from './personSegmentAddedActivityData'; export * from './personSegmentAddedWebhookPayload'; export * from './personSegmentAddedWebhookPayloadAccount'; diff --git a/packages/api-client/src/generated/models/personLoginActivityData.ts b/packages/api-client/src/generated/models/personLoginActivityData.ts new file mode 100644 index 0000000..a0822b0 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginActivityData.ts @@ -0,0 +1,10 @@ +// @ts-nocheck + +export interface PersonLoginActivityData { + /** @nullable */ + PersonUid?: string | null; + /** @nullable */ + LoginDateTime?: string | null; + /** @nullable */ + SiteUrl?: string | null; +} diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayload.ts b/packages/api-client/src/generated/models/personLoginWebhookPayload.ts new file mode 100644 index 0000000..bce40b9 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayload.ts @@ -0,0 +1,185 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadBillingAddress } from './personLoginWebhookPayloadBillingAddress'; +import type { PersonLoginWebhookPayloadMailingAddress } from './personLoginWebhookPayloadMailingAddress'; +import type { PersonLoginWebhookPayloadAccountStage } from './personLoginWebhookPayloadAccountStage'; +import type { PersonLoginWebhookPayloadPaymentInformation } from './personLoginWebhookPayloadPaymentInformation'; +import type { PersonLoginWebhookPayloadPersonAccountItem } from './personLoginWebhookPayloadPersonAccountItem'; +import type { PersonLoginWebhookPayloadStripeInvoicesItem } from './personLoginWebhookPayloadStripeInvoicesItem'; +import type { PersonLoginWebhookPayloadStripePaymentMethodsItem } from './personLoginWebhookPayloadStripePaymentMethodsItem'; +import type { PersonLoginWebhookPayloadStripeSubscriptionsItem } from './personLoginWebhookPayloadStripeSubscriptionsItem'; +import type { PersonLoginWebhookPayloadSubscriptionsItem } from './personLoginWebhookPayloadSubscriptionsItem'; +import type { PersonLoginWebhookPayloadDealsItem } from './personLoginWebhookPayloadDealsItem'; +import type { PersonLoginWebhookPayloadTaxIdsItem } from './personLoginWebhookPayloadTaxIdsItem'; +import type { PersonLoginWebhookPayloadCurrentSubscription } from './personLoginWebhookPayloadCurrentSubscription'; +import type { PersonLoginWebhookPayloadLatestSubscription } from './personLoginWebhookPayloadLatestSubscription'; +import type { PersonLoginWebhookPayloadPrimaryContact } from './personLoginWebhookPayloadPrimaryContact'; +import type { PersonLoginWebhookPayloadPrimarySubscription } from './personLoginWebhookPayloadPrimarySubscription'; +import type { PersonLoginWebhookPayloadPrimaryStripeSubscription } from './personLoginWebhookPayloadPrimaryStripeSubscription'; +import type { PersonLoginActivityData } from './personLoginActivityData'; + +export interface PersonLoginWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: PersonLoginWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: PersonLoginWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: PersonLoginWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: PersonLoginWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: PersonLoginWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: PersonLoginWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: PersonLoginWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: PersonLoginWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: PersonLoginWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: PersonLoginWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: PersonLoginWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: PersonLoginWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: PersonLoginWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: PersonLoginWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: PersonLoginWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: PersonLoginWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: PersonLoginActivityData; +} diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadAccountStage.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadAccountStage.ts new file mode 100644 index 0000000..22644b3 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadAccountStage.ts @@ -0,0 +1,20 @@ +// @ts-nocheck + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type PersonLoginWebhookPayloadAccountStage = typeof PersonLoginWebhookPayloadAccountStage[keyof typeof PersonLoginWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadBillingAddress.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadBillingAddress.ts new file mode 100644 index 0000000..2cde3ce --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadBillingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscription.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscription.ts new file mode 100644 index 0000000..0d072e9 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm } from './personLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionPlan } from './personLoginWebhookPayloadCurrentSubscriptionPlan'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem } from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem } from './personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoice } from './personLoginWebhookPayloadCurrentSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: PersonLoginWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..fbaa42e --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..acc24db --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..f6aaea6 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..d059249 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..b7cbc7f --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus } from './personLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..3be78d8 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlan.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlan.ts new file mode 100644 index 0000000..c7897b6 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily } from './personLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode } from './personLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem } from './personLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem } from './personLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: PersonLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..b912148 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..5a20ed8 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..de2da5d --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..aba0e8b --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..79cf948 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn } from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn'; + +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..6c9f841 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..36a94dd --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..15c71c7 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadDealsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadDealsItem.ts new file mode 100644 index 0000000..a95e661 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadDealsItem.ts @@ -0,0 +1,35 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscription.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscription.ts new file mode 100644 index 0000000..6cc5222 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscription.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm } from './personLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm'; +import type { PersonLoginWebhookPayloadLatestSubscriptionPlan } from './personLoginWebhookPayloadLatestSubscriptionPlan'; +import type { PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem } from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem'; +import type { PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem } from './personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem'; +import type { PersonLoginWebhookPayloadLatestSubscriptionLatestInvoice } from './personLoginWebhookPayloadLatestSubscriptionLatestInvoice'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: PersonLoginWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: PersonLoginWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..b050e09 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..e8a8a80 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon } from './personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..36b2d2f --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration } from './personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..dd19168 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionLatestInvoice.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionLatestInvoice.ts new file mode 100644 index 0000000..9a77a88 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus } from './personLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..675c7d9 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlan.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlan.ts new file mode 100644 index 0000000..911e14a --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionPlanPlanFamily } from './personLoginWebhookPayloadLatestSubscriptionPlanPlanFamily'; +import type { PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode } from './personLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode'; +import type { PersonLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem } from './personLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem'; +import type { PersonLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem } from './personLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: PersonLoginWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: PersonLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: PersonLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..ca44669 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts new file mode 100644 index 0000000..38e3d4f --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..d81c5f8 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanPlanFamily.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanPlanFamily.ts new file mode 100644 index 0000000..57bd0bc --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..5e0842d --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm } from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm'; +import type { PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn } from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn'; + +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..7e0d61a --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType } from './personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..67519e1 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..99ba7c0 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadMailingAddress.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadMailingAddress.ts new file mode 100644 index 0000000..e12207a --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadMailingAddress.ts @@ -0,0 +1,58 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPaymentInformation.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPaymentInformation.ts new file mode 100644 index 0000000..b669a8e --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPaymentInformation.ts @@ -0,0 +1,75 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItem.ts new file mode 100644 index 0000000..75df20b --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItem.ts @@ -0,0 +1,20 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadPersonAccountItemPerson } from './personLoginWebhookPayloadPersonAccountItemPerson'; + +export type PersonLoginWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: PersonLoginWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItemPerson.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItemPerson.ts new file mode 100644 index 0000000..1f5c5f2 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItemPerson.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus } from './personLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts new file mode 100644 index 0000000..346524d --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryContact.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryContact.ts new file mode 100644 index 0000000..f135460 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryContact.ts @@ -0,0 +1,103 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus } from './personLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts new file mode 100644 index 0000000..339b287 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `0` - None, `1` - Gmail + */ +export type PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryStripeSubscription.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryStripeSubscription.ts new file mode 100644 index 0000000..19dceac --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimaryStripeSubscription.ts @@ -0,0 +1,66 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimarySubscription.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimarySubscription.ts new file mode 100644 index 0000000..34645e6 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimarySubscription.ts @@ -0,0 +1,41 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './personLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts new file mode 100644 index 0000000..48ab52d --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadStripeInvoicesItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadStripeInvoicesItem.ts new file mode 100644 index 0000000..94d480a --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadStripeInvoicesItem.ts @@ -0,0 +1,92 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadStripePaymentMethodsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadStripePaymentMethodsItem.ts new file mode 100644 index 0000000..68010c2 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadStripePaymentMethodsItem.ts @@ -0,0 +1,37 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadStripeSubscriptionsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadStripeSubscriptionsItem.ts new file mode 100644 index 0000000..b020874 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadStripeSubscriptionsItem.ts @@ -0,0 +1,63 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItem.ts new file mode 100644 index 0000000..115f827 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItem.ts @@ -0,0 +1,50 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './personLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm'; +import type { PersonLoginWebhookPayloadSubscriptionsItemPlan } from './personLoginWebhookPayloadSubscriptionsItemPlan'; +import type { PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem'; +import type { PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem'; +import type { PersonLoginWebhookPayloadSubscriptionsItemLatestInvoice } from './personLoginWebhookPayloadSubscriptionsItemLatestInvoice'; + +export type PersonLoginWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: PersonLoginWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: PersonLoginWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..b4f6f16 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts new file mode 100644 index 0000000..5e535e3 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts @@ -0,0 +1,22 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon'; + +export type PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts new file mode 100644 index 0000000..451c5fa --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts @@ -0,0 +1,40 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts new file mode 100644 index 0000000..3adb40e --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemLatestInvoice.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemLatestInvoice.ts new file mode 100644 index 0000000..73e7f8f --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemLatestInvoice.ts @@ -0,0 +1,53 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './personLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts new file mode 100644 index 0000000..e78db17 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts @@ -0,0 +1,18 @@ +// @ts-nocheck + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlan.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlan.ts new file mode 100644 index 0000000..d98a495 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlan.ts @@ -0,0 +1,74 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemPlanPlanFamily } from './personLoginWebhookPayloadSubscriptionsItemPlanPlanFamily'; +import type { PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './personLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode'; +import type { PersonLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './personLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem'; +import type { PersonLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './personLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: PersonLoginWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: PersonLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: PersonLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts new file mode 100644 index 0000000..488317e --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts @@ -0,0 +1,13 @@ +// @ts-nocheck + +/** + * `1` - Individual, `2` - Team + */ +export type PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts new file mode 100644 index 0000000..dd62f3d --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts new file mode 100644 index 0000000..002dc4c --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts @@ -0,0 +1,16 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanPlanFamily.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanPlanFamily.ts new file mode 100644 index 0000000..472621e --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemPlanPlanFamily.ts @@ -0,0 +1,25 @@ +// @ts-nocheck + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts new file mode 100644 index 0000000..5537c45 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts @@ -0,0 +1,34 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm } from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm'; +import type { PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn } from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn'; + +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts new file mode 100644 index 0000000..6266106 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts @@ -0,0 +1,51 @@ +// @ts-nocheck +import type { PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType } from './personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType'; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts new file mode 100644 index 0000000..be2e143 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts @@ -0,0 +1,14 @@ +// @ts-nocheck + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts new file mode 100644 index 0000000..77dd6d2 --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts @@ -0,0 +1,15 @@ +// @ts-nocheck + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; diff --git a/packages/api-client/src/generated/models/personLoginWebhookPayloadTaxIdsItem.ts b/packages/api-client/src/generated/models/personLoginWebhookPayloadTaxIdsItem.ts new file mode 100644 index 0000000..6bef69b --- /dev/null +++ b/packages/api-client/src/generated/models/personLoginWebhookPayloadTaxIdsItem.ts @@ -0,0 +1,32 @@ +// @ts-nocheck + +export type PersonLoginWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; diff --git a/packages/react/src/generated/outsetaAPI.schemas.ts b/packages/react/src/generated/outsetaAPI.schemas.ts index 8eefbb6..b5ad1f7 100644 --- a/packages/react/src/generated/outsetaAPI.schemas.ts +++ b/packages/react/src/generated/outsetaAPI.schemas.ts @@ -4844,6 +4844,28209 @@ export interface ActivityCriteria { ActivityTypes?: string[] | null; } +export interface AccountAddPersonActivityData { + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + PersonUid?: string | null; + /** @nullable */ + Email?: string | null; +} + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountAddPersonWebhookPayloadAccountStage = typeof AccountAddPersonWebhookPayloadAccountStage[keyof typeof AccountAddPersonWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountAddPersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountAddPersonWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountAddPersonWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountAddPersonWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountAddPersonWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountAddPersonWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountAddPersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountAddPersonWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountAddPersonWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountAddPersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountAddPersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountAddPersonWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountAddPersonWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountAddPersonWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountAddPersonWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountAddPersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountAddPersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountAddPersonWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountAddPersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountAddPersonWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountAddPersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountAddPersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountAddPersonWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountAddPersonWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountAddPersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountAddPersonWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountAddPersonWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountAddPersonWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountAddPersonWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountAddPersonWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountAddPersonWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountAddPersonWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountAddPersonWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountAddPersonWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountAddPersonWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountAddPersonWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountAddPersonWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountAddPersonWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountAddPersonWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountAddPersonWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountAddPersonWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountAddPersonWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountAddPersonWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountAddPersonActivityData; +} + +export interface AccountStageUpdatedActivityData { + /** @nullable */ + PriorAccountStage?: string | null; + /** @nullable */ + CurrentAccountStage?: string | null; + /** @nullable */ + CancelationReason?: string | null; +} + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountStageUpdatedWebhookPayloadAccountStage = typeof AccountStageUpdatedWebhookPayloadAccountStage[keyof typeof AccountStageUpdatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountStageUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountStageUpdatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountStageUpdatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountStageUpdatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountStageUpdatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountStageUpdatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountStageUpdatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountStageUpdatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountStageUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountStageUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountStageUpdatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountStageUpdatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountStageUpdatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountStageUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountStageUpdatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountStageUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountStageUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountStageUpdatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountStageUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountStageUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountStageUpdatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountStageUpdatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountStageUpdatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountStageUpdatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountStageUpdatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountStageUpdatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountStageUpdatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountStageUpdatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountStageUpdatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountStageUpdatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountStageUpdatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountStageUpdatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountStageUpdatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountStageUpdatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountStageUpdatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountStageUpdatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountStageUpdatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountStageUpdatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountStageUpdatedActivityData; +} + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedActivityDataSubscription = unknown | null; + +export interface AccountSubscriptionPlanUpdatedActivityData { + /** @nullable */ + Subscription?: AccountSubscriptionPlanUpdatedActivityDataSubscription; + /** @nullable */ + CurrentPrincipal?: string | null; +} + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage = typeof AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountSubscriptionPlanUpdatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionPlanUpdatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionPlanUpdatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionPlanUpdatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionPlanUpdatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionPlanUpdatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionPlanUpdatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionPlanUpdatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionPlanUpdatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionPlanUpdatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionPlanUpdatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionPlanUpdatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionPlanUpdatedActivityData; +} + +export interface AccountSubscriptionPaymentCollectedActivityData { + /** @nullable */ + InvoiceUid?: string | null; + /** @nullable */ + Amount?: string | null; +} + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage = typeof AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountSubscriptionPaymentCollectedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionPaymentCollectedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionPaymentCollectedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionPaymentCollectedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionPaymentCollectedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionPaymentCollectedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionPaymentCollectedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionPaymentCollectedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionPaymentCollectedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionPaymentCollectedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionPaymentCollectedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionPaymentCollectedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionPaymentCollectedActivityData; +} + +export interface AccountRemovePersonActivityData { + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + PersonUid?: string | null; + /** @nullable */ + Email?: string | null; +} + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountRemovePersonWebhookPayloadAccountStage = typeof AccountRemovePersonWebhookPayloadAccountStage[keyof typeof AccountRemovePersonWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountRemovePersonWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountRemovePersonWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountRemovePersonWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountRemovePersonWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountRemovePersonWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountRemovePersonWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountRemovePersonWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountRemovePersonWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountRemovePersonWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountRemovePersonWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountRemovePersonWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountRemovePersonWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountRemovePersonWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountRemovePersonWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountRemovePersonWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountRemovePersonWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountRemovePersonWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountRemovePersonWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountRemovePersonWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountRemovePersonWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountRemovePersonWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountRemovePersonWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountRemovePersonWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountRemovePersonWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountRemovePersonWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountRemovePersonWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountRemovePersonWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountRemovePersonWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountRemovePersonWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountRemovePersonWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountRemovePersonWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountRemovePersonWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountRemovePersonWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountRemovePersonWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountRemovePersonWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountRemovePersonWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountRemovePersonWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountRemovePersonWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountRemovePersonWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountRemovePersonWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountRemovePersonWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountRemovePersonActivityData; +} + +export interface AccountPaidSubscriptionCreatedActivityData { + /** @nullable */ + SubscriptionUid?: string | null; +} + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadAccountStage = typeof AccountPaidSubscriptionCreatedWebhookPayloadAccountStage[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountPaidSubscriptionCreatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountPaidSubscriptionCreatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountPaidSubscriptionCreatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountPaidSubscriptionCreatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountPaidSubscriptionCreatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountPaidSubscriptionCreatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountPaidSubscriptionCreatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountPaidSubscriptionCreatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountPaidSubscriptionCreatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountPaidSubscriptionCreatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountPaidSubscriptionCreatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountPaidSubscriptionCreatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountPaidSubscriptionCreatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountPaidSubscriptionCreatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountPaidSubscriptionCreatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountPaidSubscriptionCreatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountPaidSubscriptionCreatedActivityData; +} + +export interface AccountPrimaryPersonUpdatedActivityData { + /** @nullable */ + PreviousPrimaryPersonEmail?: string | null; + /** @nullable */ + CurrentPrimaryPersonEmail?: string | null; +} + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadAccountStage = typeof AccountPrimaryPersonUpdatedWebhookPayloadAccountStage[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountPrimaryPersonUpdatedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountPrimaryPersonUpdatedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountPrimaryPersonUpdatedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountPrimaryPersonUpdatedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountPrimaryPersonUpdatedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountPrimaryPersonUpdatedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountPrimaryPersonUpdatedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountPrimaryPersonUpdatedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountPrimaryPersonUpdatedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountPrimaryPersonUpdatedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountPrimaryPersonUpdatedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountPrimaryPersonUpdatedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountPrimaryPersonUpdatedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountPrimaryPersonUpdatedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountPrimaryPersonUpdatedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountPrimaryPersonUpdatedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountPrimaryPersonUpdatedActivityData; +} + +/** + * @nullable + */ +export type AccountSubscriptionStartedActivityDataSubscription = unknown | null; + +export interface AccountSubscriptionStartedActivityData { + /** @nullable */ + Subscription?: AccountSubscriptionStartedActivityDataSubscription; + /** @nullable */ + CurrentPrincipal?: string | null; + /** @nullable */ + SubscriptionUid?: string | null; +} + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionStartedWebhookPayloadAccountStage = typeof AccountSubscriptionStartedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionStartedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionStartedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionStartedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountSubscriptionStartedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountSubscriptionStartedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountSubscriptionStartedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionStartedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionStartedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionStartedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionStartedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountSubscriptionStartedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionStartedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionStartedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionStartedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionStartedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionStartedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionStartedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionStartedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionStartedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionStartedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionStartedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionStartedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionStartedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionStartedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionStartedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionStartedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionStartedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionStartedActivityData; +} + +export interface AccountSubscriptionRenewalExtendedActivityData { + /** @nullable */ + PriorRenewalDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; +} + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage = typeof AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountSubscriptionRenewalExtendedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionRenewalExtendedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionRenewalExtendedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionRenewalExtendedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionRenewalExtendedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionRenewalExtendedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionRenewalExtendedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionRenewalExtendedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionRenewalExtendedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionRenewalExtendedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionRenewalExtendedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionRenewalExtendedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionRenewalExtendedActivityData; +} + +export interface AccountSubscriptionAddOnChange { + AddOnChangeType?: AddOnChangeType; + /** @nullable */ + AddOnUid?: string | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + Quantity?: number | null; +} + +/** + * `AddOnAdded` - AddOnAdded, `AddOnReactivated` - AddOnReactivated, `AddOnQuantityChanged` - AddOnQuantityChanged + */ +export type AddOnChangeType = typeof AddOnChangeType[keyof typeof AddOnChangeType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AddOnChangeType = { + AddOnAdded: 'AddOnAdded', + AddOnReactivated: 'AddOnReactivated', + AddOnQuantityChanged: 'AddOnQuantityChanged', +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage = typeof AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountSubscriptionAddOnsChangedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionAddOnsChangedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionAddOnsChangedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionAddOnsChangedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionAddOnsChangedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionAddOnsChangedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionAddOnsChangedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionAddOnsChangedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionAddOnsChangedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionAddOnsChangedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionAddOnsChangedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionAddOnsChangedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionAddOnChange[]; +} + +export interface AccountSubscriptionCancellationRequestedActivityData { + /** @nullable */ + RequestedByEmail?: string | null; + /** @nullable */ + CancelationReason?: string | null; + /** @nullable */ + Comment?: string | null; +} + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage = typeof AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface AccountSubscriptionCancellationRequestedWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: AccountSubscriptionCancellationRequestedWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: AccountSubscriptionCancellationRequestedWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: AccountSubscriptionCancellationRequestedWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: AccountSubscriptionCancellationRequestedWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: AccountSubscriptionCancellationRequestedWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: AccountSubscriptionCancellationRequestedWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: AccountSubscriptionCancellationRequestedWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: AccountSubscriptionCancellationRequestedWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: AccountSubscriptionCancellationRequestedWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: AccountSubscriptionCancellationRequestedWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: AccountSubscriptionCancellationRequestedWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: AccountSubscriptionCancellationRequestedActivityData; +} + +export interface PersonLoginActivityData { + /** @nullable */ + PersonUid?: string | null; + /** @nullable */ + LoginDateTime?: string | null; + /** @nullable */ + SiteUrl?: string | null; +} + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadBillingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadMailingAddress = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + AddressLine1?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine2?: string | null; + /** + * @maxLength 250 + * @nullable + */ + AddressLine3?: string | null; + /** + * @maxLength 250 + * @nullable + */ + City?: string | null; + /** + * @maxLength 250 + * @nullable + */ + State?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostalCode?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Country?: string | null; + /** + * @maxLength 250 + * @nullable + */ + GeoLocation?: string | null; +} | null; + +/** + * `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created + */ +export type PersonLoginWebhookPayloadAccountStage = typeof PersonLoginWebhookPayloadAccountStage[keyof typeof PersonLoginWebhookPayloadAccountStage]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadAccountStage = { + Trialing: 2, + Subscribing: 3, + Cancelling: 4, + Expired: 5, + TrialExpired: 6, + PastDue: 7, + CancellingTrial: 8, + Paused: 9, + Created: 10, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPaymentInformation = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + CustomerToken?: string | null; + /** @nullable */ + LastFourDigits?: string | null; + /** @nullable */ + LatestFailureDateTime?: string | null; + /** @nullable */ + LatestFailureDescription?: string | null; + /** @nullable */ + LatestSuccessDateTime?: string | null; + NumberOfFailures?: number; + /** @nullable */ + PaymentClientSecret?: string | null; + /** + * @maxLength 50 + * @nullable + */ + PaymentMethodType?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PaymentToken?: string | null; + /** + * @maxLength 100 + * @nullable + */ + BankName?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountType?: string | null; + /** + * @maxLength 50 + * @nullable + */ + BankAccountHolderType?: string | null; + /** @nullable */ + NameOnCard?: string | null; + /** @nullable */ + CardType?: string | null; + /** @nullable */ + ExpirationMonth?: string | null; + /** @nullable */ + ExpirationYear?: string | null; + /** @nullable */ + Mode?: string | null; + /** @nullable */ + OneTimeToken?: string | null; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + SetupIntent?: string | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = typeof PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus[keyof typeof PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPersonAccountItemPerson = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: PersonLoginWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +export type PersonLoginWebhookPayloadPersonAccountItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + Person?: PersonLoginWebhookPayloadPersonAccountItemPerson; + IsPrimary?: boolean; + ReceiveInvoices?: boolean; +}; + +export type PersonLoginWebhookPayloadStripeInvoicesItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + AmountDue?: number; + AmountPaid?: number; + AmountShipping?: number; + AttemptCount?: number; + Attempted?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + FinalizedAt?: string | null; + /** + * @maxLength 500 + * @nullable + */ + HostedInvoiceUrl?: string | null; + /** + * @maxLength 500 + * @nullable + */ + InvoicePdf?: string | null; + /** @nullable */ + NextPaymentAttempt?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Number?: string | null; + PeriodEnd?: string; + PeriodStart?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + SubTotal?: number; + /** @nullable */ + SubTotalExcludingTax?: number | null; + /** + * @maxLength 255 + * @nullable + */ + SubscriptionId?: string | null; + /** @nullable */ + Tax?: number | null; + Total?: number; + /** @nullable */ + TotalExcludingTax?: number | null; + IsRefunded?: boolean; + CurrencyAmountCreditedPostPayment?: number; + CurrencyAmountCreditedPrePayment?: number; + CurrencyAmountDue?: number; + CurrencyAmountPaid?: number; + /** @nullable */ + CurrencySymbol?: string | null; + CurrencyTotal?: number; + CurrencyTotalExcludingTax?: number; + CurrencySubTotal?: number; + CurrencySubTotalExcludingTax?: number; + CurrencyTax?: number; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + PaymentStatus?: string | null; + /** @nullable */ + StripePaymentMethodId?: string | null; +}; + +export type PersonLoginWebhookPayloadStripePaymentMethodsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + Card_Brand?: string | null; + /** @nullable */ + Card_ExpMonth?: number | null; + /** @nullable */ + Card_ExpYear?: number | null; + /** @nullable */ + Card_Wallet_Type?: string | null; + /** @nullable */ + BankName?: string | null; + /** @nullable */ + Last4?: string | null; + /** @nullable */ + Type?: string | null; + /** @nullable */ + Label?: string | null; +}; + +export type PersonLoginWebhookPayloadStripeSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type PersonLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type PersonLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: PersonLoginWebhookPayloadSubscriptionsItemPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: PersonLoginWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: PersonLoginWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: PersonLoginWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadSubscriptionsItemLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: PersonLoginWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +export type PersonLoginWebhookPayloadSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadSubscriptionsItemBillingRenewalTerm; + /** @nullable */ + Plan?: PersonLoginWebhookPayloadSubscriptionsItemPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: PersonLoginWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: PersonLoginWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: PersonLoginWebhookPayloadSubscriptionsItemLatestInvoice; + /** @nullable */ + Rate?: number | null; +}; + +export type PersonLoginWebhookPayloadDealsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** @nullable */ + Amount?: number | null; + /** @nullable */ + DueDate?: string | null; + /** + * @maxLength 50 + * @nullable + */ + AssignedToPersonClientIdentifier?: string | null; + Weight?: number; + /** @nullable */ + Contacts?: string | null; + AccountId?: number; + /** @nullable */ + PipelineUid?: string | null; +}; + +export type PersonLoginWebhookPayloadTaxIdsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @maxLength 50 + * @nullable + */ + TaxId?: string | null; + /** + * @maxLength 20 + * @nullable + */ + TaxIdType?: string | null; + IsInvalid?: boolean; +}; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm = typeof PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = typeof PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type PersonLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: PersonLoginWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: PersonLoginWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: PersonLoginWebhookPayloadCurrentSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = typeof PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadCurrentSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadCurrentSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: PersonLoginWebhookPayloadCurrentSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: PersonLoginWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: PersonLoginWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: PersonLoginWebhookPayloadCurrentSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm = typeof PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionPlanPlanFamily = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + IsActive?: boolean; + IsDefault?: boolean; +} | null; + +/** + * `1` - Individual, `2` - Team + */ +export type PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = typeof PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode = { + Individual: 1, + Team: 2, +} as const; + +export type PersonLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + IsUserSelectable: boolean; +}; + +export type PersonLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @minLength 1 + * @maxLength 50 + */ + Name: string; + /** + * @maxLength 1024 + * @nullable + */ + AccessDeniedPath?: string | null; +}; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionPlan = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** @nullable */ + Description?: string | null; + /** @nullable */ + PlanFamily?: PersonLoginWebhookPayloadLatestSubscriptionPlanPlanFamily; + /** `1` - Individual, `2` - Team */ + AccountRegistrationMode?: PersonLoginWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + /** @nullable */ + MaximumPeople?: number | null; + MonthlyRate?: number; + AnnualRate?: number; + QuarterlyRate?: number; + OneTimeRate?: number; + SetupFee?: number; + SkipSetupFeeOnPlanChange?: boolean; + IsTaxable?: boolean; + IsActive?: boolean; + IsPerUser?: boolean; + RequirePaymentInformation?: boolean; + TrialPeriodDays?: number; + /** @nullable */ + TrialUntilDate?: string | null; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PostLoginPath?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + /** @nullable */ + PlanAddOns?: PersonLoginWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem[] | null; + /** @nullable */ + ContentGroups?: PersonLoginWebhookPayloadLatestSubscriptionPlanContentGroupsItem[] | null; + /** @nullable */ + NumberOfSubscriptions?: number | null; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * `1` - Recurring, `2` - Usage, `3` - OneTime + */ +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType = { + Recurring: 1, + Usage: 2, + OneTime: 3, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Name?: string | null; + /** `1` - Recurring, `2` - Usage, `3` - OneTime */ + BillingAddOnType?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType; + IsQuantityEditable?: boolean; + MinimumQuantity?: number; + MonthlyRate?: number; + AnnualRate?: number; + SetupFee?: number; + /** + * @maxLength 250 + * @nullable + */ + UnitOfMeasure?: string | null; + IsTaxable?: boolean; + IsBilledDuringTrial?: boolean; + ExpiresAfterMonths?: number; + /** @nullable */ + ExpirationDate?: string | null; + /** + * @maxLength 15 + * @nullable + */ + StripeTaxCodeId?: string | null; + IsPerUser?: boolean; + QuarterlyRate?: number; + OneTimeRate?: number; + SubscriptionCount?: number; + Quantity?: number; +} | null; + +export type PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm; + /** @nullable */ + AddOn?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + /** @nullable */ + Rate?: number | null; +}; + +/** + * `1` - Forever, `2` - Once, `3` - Repeating + */ +export type PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration = { + Forever: 1, + Once: 2, + Repeating: 3, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** @nullable */ + UniqueIdentifier?: string | null; + /** @nullable */ + Name?: string | null; + IsActive?: boolean; + /** @nullable */ + AmountOff?: number | null; + /** @nullable */ + PercentOff?: number | null; + /** @nullable */ + RedeemBy?: string | null; + /** `1` - Forever, `2` - Once, `3` - Repeating */ + Duration?: PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration; + /** @nullable */ + DurationInMonths?: number | null; + TimesRedeemed?: number; + /** @nullable */ + MaxRedemptions?: number | null; + ApplyToAddOns?: boolean; + /** @nullable */ + PlanUids?: string | null; +} | null; + +export type PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** @nullable */ + RedeemedDate?: string | null; + /** @nullable */ + ExpireDate?: string | null; + /** @nullable */ + DiscountCoupon?: PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon; +}; + +/** + * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing + */ +export type PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = typeof PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus[keyof typeof PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus = { + Unpaid: 1, + Paid: 2, + Partial: 3, + Uncollected: 4, + Refunded: 5, + Uncollectible: 6, + Processing: 7, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscriptionLatestInvoice = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + InvoiceDate?: string; + /** @nullable */ + PaymentReminderSentDate?: string | null; + Number?: number; + /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */ + BillingInvoiceStatus?: PersonLoginWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus; + Amount?: number; + AmountOutstanding?: number; + IsUserGenerated?: boolean; + /** + * @maxLength 50 + * @nullable + */ + StripeTaxCalculationId?: string | null; + /** + * @maxLength 10 + * @nullable + */ + StripeTaxBehavior?: string | null; + AmountCredit?: number; + AmountDiscount?: number; + AmountPaid?: number; + AmountRefunded?: number; + AmountSubtotal?: number; + AmountTax?: number; + AmountTaxRefunded?: number; + IsTaxable?: boolean; + HasPaymentGatewayTransactions?: boolean; + /** @nullable */ + StripePaymentTransactionIds?: string | null; + /** @nullable */ + StripeRefundTransactionIds?: string | null; + /** @nullable */ + StripeTaxRefundTransactionIds?: string | null; +} | null; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadLatestSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadLatestSubscriptionBillingRenewalTerm; + /** @nullable */ + Plan?: PersonLoginWebhookPayloadLatestSubscriptionPlan; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + SubscriptionAddOns?: PersonLoginWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem[] | null; + /** @nullable */ + DiscountCouponSubscriptions?: PersonLoginWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem[] | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + LatestInvoice?: PersonLoginWebhookPayloadLatestSubscriptionLatestInvoice; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * `0` - None, `1` - Gmail + */ +export type PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus = typeof PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus[keyof typeof PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus = { + None: 0, + Gmail: 1, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPrimaryContact = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 250 + * @nullable + */ + Email?: string | null; + /** + * @maxLength 250 + * @nullable + */ + FirstName?: string | null; + /** + * @maxLength 250 + * @nullable + */ + LastName?: string | null; + /** @nullable */ + PasswordLastUpdated?: string | null; + PasswordMustChange?: boolean; + /** + * @maxLength 250 + * @nullable + */ + PhoneMobile?: string | null; + /** + * @maxLength 250 + * @nullable + */ + PhoneWork?: string | null; + /** + * @maxLength 250 + * @nullable + */ + ProfileImageS3Url?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Title?: string | null; + /** + * @maxLength 100 + * @nullable + */ + Timezone?: string | null; + /** + * @maxLength 50 + * @nullable + */ + Language?: string | null; + /** + * @maxLength 250 + * @nullable + */ + IPAddress?: string | null; + /** + * @maxLength 250 + * @nullable + */ + Referer?: string | null; + /** + * @maxLength 1000 + * @nullable + */ + UserAgent?: string | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 50 + * @nullable + */ + OAuthGoogleProfileId?: string | null; + /** @nullable */ + AccountUids?: string | null; + /** @nullable */ + FullName?: string | null; + HasLoggedIn?: boolean; + /** `0` - None, `1` - Gmail */ + OAuthIntegrationStatus?: PersonLoginWebhookPayloadPrimaryContactOAuthIntegrationStatus; + OptInToEmailList?: boolean; + /** @nullable */ + Password?: string | null; + /** @nullable */ + UserAgentPlatformBrowser?: string | null; + HasUnsubscribed?: boolean; + IsConnectedToDiscord?: boolean; +} | null; + +/** + * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time + */ +export type PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm]; + + +// eslint-disable-next-line @typescript-eslint/no-redeclare +export const PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm = { + Monthly: 1, + Yearly: 2, + Quarterly: 3, + OneTime: 4, +} as const; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPrimarySubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */ + BillingRenewalTerm?: PersonLoginWebhookPayloadPrimarySubscriptionBillingRenewalTerm; + /** @nullable */ + Quantity?: number | null; + StartDate?: string; + /** @nullable */ + EndDate?: string | null; + /** @nullable */ + ExpirationDate?: string | null; + /** @nullable */ + RenewalDate?: string | null; + /** @nullable */ + NewRequiredQuantity?: number | null; + IsPlanUpgradeRequired?: boolean; + /** @nullable */ + PlanUpgradeRequiredMessage?: string | null; + /** @nullable */ + DiscountCode?: string | null; + /** @nullable */ + DiscountCouponExpirationDate?: string | null; + /** @nullable */ + Rate?: number | null; +} | null; + +/** + * @nullable + */ +export type PersonLoginWebhookPayloadPrimaryStripeSubscription = { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created?: string; + /** @minLength 1 */ + Updated?: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** @nullable */ + CancelAt?: string | null; + CancelAtPeriodEnd?: boolean; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + EndedAt?: string | null; + /** + * @maxLength 30 + * @nullable + */ + PauseCollection_Behavior?: string | null; + /** @nullable */ + PauseCollection_ResumesAt?: string | null; + StartDate?: string; + /** + * @maxLength 30 + * @nullable + */ + Status?: string | null; + /** @nullable */ + TrialEnd?: string | null; + /** @nullable */ + AccountUid?: string | null; + /** @nullable */ + BillingCycleAnchor?: string | null; + /** @nullable */ + CollectionMethod?: string | null; + /** @nullable */ + CustomerId?: string | null; + /** @nullable */ + DaysUntilDue?: number | null; + /** @nullable */ + ScheduleId?: string | null; + /** @nullable */ + StripeDiscountIds?: string[] | null; + /** @nullable */ + StripePriceIds?: string | null; + TrialPeriodDays?: number; +} | null; + +export interface PersonLoginWebhookPayload { + /** + * @maxLength 10 + * @nullable + */ + Uid?: string | null; + /** @nullable */ + _objectType?: string | null; + /** @minLength 1 */ + Created: string; + /** @minLength 1 */ + Updated: string; + /** + * @maxLength 255 + * @nullable + */ + StripeId?: string | null; + IsLivemode?: boolean; + /** + * @minLength 1 + * @maxLength 250 + */ + Name: string; + /** + * @maxLength 250 + * @nullable + */ + ClientIdentifier?: string | null; + /** + * @maxLength 3 + * @nullable + */ + Currency?: string | null; + /** @nullable */ + InvoiceNotes?: string | null; + IsDemo?: boolean; + /** @nullable */ + BillingAddress?: PersonLoginWebhookPayloadBillingAddress; + /** @nullable */ + MailingAddress?: PersonLoginWebhookPayloadMailingAddress; + /** `2` - Trialing, `3` - Subscribing, `4` - Cancelling, `5` - Expired, `6` - Trial Expired, `7` - Past Due, `8` - Cancelling Trial, `9` - Paused, `10` - Created */ + AccountStage?: PersonLoginWebhookPayloadAccountStage; + /** @nullable */ + PaymentInformation?: PersonLoginWebhookPayloadPaymentInformation; + /** @nullable */ + PersonAccount?: PersonLoginWebhookPayloadPersonAccountItem[] | null; + /** + * @maxLength 50 + * @nullable + */ + StripeDefaultPaymentMethodId?: string | null; + /** @nullable */ + StripeInvoices?: PersonLoginWebhookPayloadStripeInvoicesItem[] | null; + /** @nullable */ + StripePaymentMethods?: PersonLoginWebhookPayloadStripePaymentMethodsItem[] | null; + /** @nullable */ + StripeSubscriptions?: PersonLoginWebhookPayloadStripeSubscriptionsItem[] | null; + /** @nullable */ + Subscriptions?: PersonLoginWebhookPayloadSubscriptionsItem[] | null; + /** @nullable */ + Deals?: PersonLoginWebhookPayloadDealsItem[] | null; + /** @nullable */ + LastLoginDateTime?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl1?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl2?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl3?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl4?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl5?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl6?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl7?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl8?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl9?: string | null; + /** + * @maxLength 255 + * @nullable + */ + AccountSpecificPageUrl10?: string | null; + /** @nullable */ + RewardFulReferralId?: string | null; + /** + * @maxLength 36 + * @nullable + */ + ToltReferralId?: string | null; + /** @nullable */ + TaxIds?: PersonLoginWebhookPayloadTaxIdsItem[] | null; + /** + * @maxLength 20 + * @nullable + */ + TaxStatus?: string | null; + /** @nullable */ + AccountStageLabel?: string | null; + /** @nullable */ + CurrentStripeProducts?: string | null; + /** @nullable */ + CurrentSubscription?: PersonLoginWebhookPayloadCurrentSubscription; + /** @nullable */ + DomainName?: string | null; + HasLoggedIn?: boolean; + /** @nullable */ + LatestSubscription?: PersonLoginWebhookPayloadLatestSubscription; + LifetimeRevenue?: number; + /** @nullable */ + NextStripeInvoiceDate?: string | null; + /** @nullable */ + Nonce?: string | null; + /** @nullable */ + PrimaryContact?: PersonLoginWebhookPayloadPrimaryContact; + /** @nullable */ + PrimarySubscription?: PersonLoginWebhookPayloadPrimarySubscription; + /** @nullable */ + PrimaryStripeSubscription?: PersonLoginWebhookPayloadPrimaryStripeSubscription; + /** @nullable */ + RecaptchaToken?: string | null; + /** @nullable */ + StripeNextInvoiceSequence?: number | null; + /** @nullable */ + StripePrice?: string[] | null; + /** @nullable */ + StripePromotionCode?: string | null; + /** @nullable */ + TaxId?: string | null; + TaxIdIsInvalid?: boolean; + /** @nullable */ + TaxIdType?: string | null; + /** @nullable */ + WebflowSlug?: string | null; + ActivityEventData?: PersonLoginActivityData; +} + export interface PersonListSubscribedActivityData { /** @nullable */ EmailListUid?: string | null;