@outseta/api-client 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/index.js +174 -0
  2. package/package.json +1 -1
  3. package/src/generated/models/accountBillingInvoiceDeletedActivityData.ts +11 -0
  4. package/src/generated/models/accountBillingInvoiceDeletedActivityDataInvoice.ts +6 -0
  5. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayload.ts +185 -0
  6. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadAccountStage.ts +20 -0
  7. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadBillingAddress.ts +58 -0
  8. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscription.ts +53 -0
  9. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionBillingRenewalTerm.ts +15 -0
  10. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItem.ts +22 -0
  11. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts +40 -0
  12. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts +14 -0
  13. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionLatestInvoice.ts +53 -0
  14. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionLatestInvoiceBillingInvoiceStatus.ts +18 -0
  15. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionPlan.ts +74 -0
  16. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionPlanAccountRegistrationMode.ts +13 -0
  17. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionPlanContentGroupsItem.ts +25 -0
  18. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionPlanPlanAddOnsItem.ts +16 -0
  19. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionPlanPlanFamily.ts +25 -0
  20. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItem.ts +34 -0
  21. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOn.ts +51 -0
  22. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts +14 -0
  23. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadCurrentSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts +15 -0
  24. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadDealsItem.ts +35 -0
  25. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscription.ts +53 -0
  26. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionBillingRenewalTerm.ts +15 -0
  27. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItem.ts +22 -0
  28. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCoupon.ts +40 -0
  29. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionDiscountCouponSubscriptionsItemDiscountCouponDuration.ts +14 -0
  30. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionLatestInvoice.ts +53 -0
  31. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionLatestInvoiceBillingInvoiceStatus.ts +18 -0
  32. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionPlan.ts +74 -0
  33. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionPlanAccountRegistrationMode.ts +13 -0
  34. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionPlanContentGroupsItem.ts +25 -0
  35. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionPlanPlanAddOnsItem.ts +16 -0
  36. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionPlanPlanFamily.ts +25 -0
  37. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItem.ts +34 -0
  38. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOn.ts +51 -0
  39. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemAddOnBillingAddOnType.ts +14 -0
  40. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadLatestSubscriptionSubscriptionAddOnsItemBillingRenewalTerm.ts +15 -0
  41. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadMailingAddress.ts +58 -0
  42. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPaymentInformation.ts +75 -0
  43. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPersonAccountItem.ts +20 -0
  44. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPersonAccountItemPerson.ts +103 -0
  45. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPersonAccountItemPersonOAuthIntegrationStatus.ts +13 -0
  46. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPrimaryContact.ts +103 -0
  47. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPrimaryContactOAuthIntegrationStatus.ts +13 -0
  48. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPrimaryStripeSubscription.ts +66 -0
  49. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPrimarySubscription.ts +41 -0
  50. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm.ts +15 -0
  51. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadStripeInvoicesItem.ts +92 -0
  52. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadStripePaymentMethodsItem.ts +37 -0
  53. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadStripeSubscriptionsItem.ts +63 -0
  54. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItem.ts +50 -0
  55. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm.ts +15 -0
  56. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem.ts +22 -0
  57. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon.ts +40 -0
  58. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration.ts +14 -0
  59. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoice.ts +53 -0
  60. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus.ts +18 -0
  61. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlan.ts +74 -0
  62. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode.ts +13 -0
  63. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanContentGroupsItem.ts +25 -0
  64. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem.ts +16 -0
  65. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanFamily.ts +25 -0
  66. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem.ts +34 -0
  67. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOn.ts +51 -0
  68. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemAddOnBillingAddOnType.ts +14 -0
  69. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItemBillingRenewalTerm.ts +15 -0
  70. package/src/generated/models/accountBillingInvoiceDeletedWebhookPayloadTaxIdsItem.ts +32 -0
  71. package/src/generated/models/index.ts +68 -0
@@ -0,0 +1,66 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * @nullable
5
+ */
6
+ export type AccountBillingInvoiceDeletedWebhookPayloadPrimaryStripeSubscription = {
7
+ /**
8
+ * @maxLength 10
9
+ * @nullable
10
+ */
11
+ Uid?: string | null;
12
+ /** @nullable */
13
+ _objectType?: string | null;
14
+ /** @minLength 1 */
15
+ Created?: string;
16
+ /** @minLength 1 */
17
+ Updated?: string;
18
+ /**
19
+ * @maxLength 255
20
+ * @nullable
21
+ */
22
+ StripeId?: string | null;
23
+ IsLivemode?: boolean;
24
+ /** @nullable */
25
+ CancelAt?: string | null;
26
+ CancelAtPeriodEnd?: boolean;
27
+ /**
28
+ * @maxLength 3
29
+ * @nullable
30
+ */
31
+ Currency?: string | null;
32
+ /** @nullable */
33
+ EndedAt?: string | null;
34
+ /**
35
+ * @maxLength 30
36
+ * @nullable
37
+ */
38
+ PauseCollection_Behavior?: string | null;
39
+ /** @nullable */
40
+ PauseCollection_ResumesAt?: string | null;
41
+ StartDate?: string;
42
+ /**
43
+ * @maxLength 30
44
+ * @nullable
45
+ */
46
+ Status?: string | null;
47
+ /** @nullable */
48
+ TrialEnd?: string | null;
49
+ /** @nullable */
50
+ AccountUid?: string | null;
51
+ /** @nullable */
52
+ BillingCycleAnchor?: string | null;
53
+ /** @nullable */
54
+ CollectionMethod?: string | null;
55
+ /** @nullable */
56
+ CustomerId?: string | null;
57
+ /** @nullable */
58
+ DaysUntilDue?: number | null;
59
+ /** @nullable */
60
+ ScheduleId?: string | null;
61
+ /** @nullable */
62
+ StripeDiscountIds?: string[] | null;
63
+ /** @nullable */
64
+ StripePriceIds?: string | null;
65
+ TrialPeriodDays?: number;
66
+ } | null;
@@ -0,0 +1,41 @@
1
+ // @ts-nocheck
2
+ import type { AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm } from './accountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscription = {
8
+ /**
9
+ * @maxLength 10
10
+ * @nullable
11
+ */
12
+ Uid?: string | null;
13
+ /** @nullable */
14
+ _objectType?: string | null;
15
+ /** @minLength 1 */
16
+ Created?: string;
17
+ /** @minLength 1 */
18
+ Updated?: string;
19
+ /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */
20
+ BillingRenewalTerm?: AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm;
21
+ /** @nullable */
22
+ Quantity?: number | null;
23
+ StartDate?: string;
24
+ /** @nullable */
25
+ EndDate?: string | null;
26
+ /** @nullable */
27
+ ExpirationDate?: string | null;
28
+ /** @nullable */
29
+ RenewalDate?: string | null;
30
+ /** @nullable */
31
+ NewRequiredQuantity?: number | null;
32
+ IsPlanUpgradeRequired?: boolean;
33
+ /** @nullable */
34
+ PlanUpgradeRequiredMessage?: string | null;
35
+ /** @nullable */
36
+ DiscountCode?: string | null;
37
+ /** @nullable */
38
+ DiscountCouponExpirationDate?: string | null;
39
+ /** @nullable */
40
+ Rate?: number | null;
41
+ } | null;
@@ -0,0 +1,15 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time
5
+ */
6
+ export type AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = typeof AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm[keyof typeof AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm];
7
+
8
+
9
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
10
+ export const AccountBillingInvoiceDeletedWebhookPayloadPrimarySubscriptionBillingRenewalTerm = {
11
+ Monthly: 1,
12
+ Yearly: 2,
13
+ Quarterly: 3,
14
+ OneTime: 4,
15
+ } as const;
@@ -0,0 +1,92 @@
1
+ // @ts-nocheck
2
+
3
+ export type AccountBillingInvoiceDeletedWebhookPayloadStripeInvoicesItem = {
4
+ /**
5
+ * @maxLength 10
6
+ * @nullable
7
+ */
8
+ Uid?: string | null;
9
+ /** @nullable */
10
+ _objectType?: string | null;
11
+ /** @minLength 1 */
12
+ Created: string;
13
+ /** @minLength 1 */
14
+ Updated: string;
15
+ /**
16
+ * @maxLength 255
17
+ * @nullable
18
+ */
19
+ StripeId?: string | null;
20
+ IsLivemode?: boolean;
21
+ AmountDue?: number;
22
+ AmountPaid?: number;
23
+ AmountShipping?: number;
24
+ AttemptCount?: number;
25
+ Attempted?: boolean;
26
+ /**
27
+ * @maxLength 3
28
+ * @nullable
29
+ */
30
+ Currency?: string | null;
31
+ /** @nullable */
32
+ Description?: string | null;
33
+ /** @nullable */
34
+ FinalizedAt?: string | null;
35
+ /**
36
+ * @maxLength 500
37
+ * @nullable
38
+ */
39
+ HostedInvoiceUrl?: string | null;
40
+ /**
41
+ * @maxLength 500
42
+ * @nullable
43
+ */
44
+ InvoicePdf?: string | null;
45
+ /** @nullable */
46
+ NextPaymentAttempt?: string | null;
47
+ /**
48
+ * @maxLength 50
49
+ * @nullable
50
+ */
51
+ Number?: string | null;
52
+ PeriodEnd?: string;
53
+ PeriodStart?: string;
54
+ /**
55
+ * @maxLength 30
56
+ * @nullable
57
+ */
58
+ Status?: string | null;
59
+ SubTotal?: number;
60
+ /** @nullable */
61
+ SubTotalExcludingTax?: number | null;
62
+ /**
63
+ * @maxLength 255
64
+ * @nullable
65
+ */
66
+ SubscriptionId?: string | null;
67
+ /** @nullable */
68
+ Tax?: number | null;
69
+ Total?: number;
70
+ /** @nullable */
71
+ TotalExcludingTax?: number | null;
72
+ IsRefunded?: boolean;
73
+ CurrencyAmountCreditedPostPayment?: number;
74
+ CurrencyAmountCreditedPrePayment?: number;
75
+ CurrencyAmountDue?: number;
76
+ CurrencyAmountPaid?: number;
77
+ /** @nullable */
78
+ CurrencySymbol?: string | null;
79
+ CurrencyTotal?: number;
80
+ CurrencyTotalExcludingTax?: number;
81
+ CurrencySubTotal?: number;
82
+ CurrencySubTotalExcludingTax?: number;
83
+ CurrencyTax?: number;
84
+ /** @nullable */
85
+ DaysUntilDue?: number | null;
86
+ /** @nullable */
87
+ CustomerId?: string | null;
88
+ /** @nullable */
89
+ PaymentStatus?: string | null;
90
+ /** @nullable */
91
+ StripePaymentMethodId?: string | null;
92
+ };
@@ -0,0 +1,37 @@
1
+ // @ts-nocheck
2
+
3
+ export type AccountBillingInvoiceDeletedWebhookPayloadStripePaymentMethodsItem = {
4
+ /**
5
+ * @maxLength 10
6
+ * @nullable
7
+ */
8
+ Uid?: string | null;
9
+ /** @nullable */
10
+ _objectType?: string | null;
11
+ /** @minLength 1 */
12
+ Created: string;
13
+ /** @minLength 1 */
14
+ Updated: string;
15
+ /**
16
+ * @maxLength 255
17
+ * @nullable
18
+ */
19
+ StripeId?: string | null;
20
+ IsLivemode?: boolean;
21
+ /** @nullable */
22
+ Card_Brand?: string | null;
23
+ /** @nullable */
24
+ Card_ExpMonth?: number | null;
25
+ /** @nullable */
26
+ Card_ExpYear?: number | null;
27
+ /** @nullable */
28
+ Card_Wallet_Type?: string | null;
29
+ /** @nullable */
30
+ BankName?: string | null;
31
+ /** @nullable */
32
+ Last4?: string | null;
33
+ /** @nullable */
34
+ Type?: string | null;
35
+ /** @nullable */
36
+ Label?: string | null;
37
+ };
@@ -0,0 +1,63 @@
1
+ // @ts-nocheck
2
+
3
+ export type AccountBillingInvoiceDeletedWebhookPayloadStripeSubscriptionsItem = {
4
+ /**
5
+ * @maxLength 10
6
+ * @nullable
7
+ */
8
+ Uid?: string | null;
9
+ /** @nullable */
10
+ _objectType?: string | null;
11
+ /** @minLength 1 */
12
+ Created: string;
13
+ /** @minLength 1 */
14
+ Updated: string;
15
+ /**
16
+ * @maxLength 255
17
+ * @nullable
18
+ */
19
+ StripeId?: string | null;
20
+ IsLivemode?: boolean;
21
+ /** @nullable */
22
+ CancelAt?: string | null;
23
+ CancelAtPeriodEnd?: boolean;
24
+ /**
25
+ * @maxLength 3
26
+ * @nullable
27
+ */
28
+ Currency?: string | null;
29
+ /** @nullable */
30
+ EndedAt?: string | null;
31
+ /**
32
+ * @maxLength 30
33
+ * @nullable
34
+ */
35
+ PauseCollection_Behavior?: string | null;
36
+ /** @nullable */
37
+ PauseCollection_ResumesAt?: string | null;
38
+ StartDate?: string;
39
+ /**
40
+ * @maxLength 30
41
+ * @nullable
42
+ */
43
+ Status?: string | null;
44
+ /** @nullable */
45
+ TrialEnd?: string | null;
46
+ /** @nullable */
47
+ AccountUid?: string | null;
48
+ /** @nullable */
49
+ BillingCycleAnchor?: string | null;
50
+ /** @nullable */
51
+ CollectionMethod?: string | null;
52
+ /** @nullable */
53
+ CustomerId?: string | null;
54
+ /** @nullable */
55
+ DaysUntilDue?: number | null;
56
+ /** @nullable */
57
+ ScheduleId?: string | null;
58
+ /** @nullable */
59
+ StripeDiscountIds?: string[] | null;
60
+ /** @nullable */
61
+ StripePriceIds?: string | null;
62
+ TrialPeriodDays?: number;
63
+ };
@@ -0,0 +1,50 @@
1
+ // @ts-nocheck
2
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm';
3
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlan } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlan';
4
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem';
5
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem';
6
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoice } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoice';
7
+
8
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItem = {
9
+ /**
10
+ * @maxLength 10
11
+ * @nullable
12
+ */
13
+ Uid?: string | null;
14
+ /** @nullable */
15
+ _objectType?: string | null;
16
+ /** @minLength 1 */
17
+ Created: string;
18
+ /** @minLength 1 */
19
+ Updated: string;
20
+ /** `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time */
21
+ BillingRenewalTerm?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm;
22
+ /** @nullable */
23
+ Plan?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlan;
24
+ /** @nullable */
25
+ Quantity?: number | null;
26
+ StartDate?: string;
27
+ /** @nullable */
28
+ EndDate?: string | null;
29
+ /** @nullable */
30
+ ExpirationDate?: string | null;
31
+ /** @nullable */
32
+ RenewalDate?: string | null;
33
+ /** @nullable */
34
+ NewRequiredQuantity?: number | null;
35
+ IsPlanUpgradeRequired?: boolean;
36
+ /** @nullable */
37
+ PlanUpgradeRequiredMessage?: string | null;
38
+ /** @nullable */
39
+ SubscriptionAddOns?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemSubscriptionAddOnsItem[] | null;
40
+ /** @nullable */
41
+ DiscountCouponSubscriptions?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem[] | null;
42
+ /** @nullable */
43
+ DiscountCode?: string | null;
44
+ /** @nullable */
45
+ DiscountCouponExpirationDate?: string | null;
46
+ /** @nullable */
47
+ LatestInvoice?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoice;
48
+ /** @nullable */
49
+ Rate?: number | null;
50
+ };
@@ -0,0 +1,15 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * `1` - Monthly, `2` - Yearly, `3` - Quarterly, `4` - One Time
5
+ */
6
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm = typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm[keyof typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm];
7
+
8
+
9
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
10
+ export const AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemBillingRenewalTerm = {
11
+ Monthly: 1,
12
+ Yearly: 2,
13
+ Quarterly: 3,
14
+ OneTime: 4,
15
+ } as const;
@@ -0,0 +1,22 @@
1
+ // @ts-nocheck
2
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon';
3
+
4
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItem = {
5
+ /**
6
+ * @maxLength 10
7
+ * @nullable
8
+ */
9
+ Uid?: string | null;
10
+ /** @nullable */
11
+ _objectType?: string | null;
12
+ /** @minLength 1 */
13
+ Created: string;
14
+ /** @minLength 1 */
15
+ Updated: string;
16
+ /** @nullable */
17
+ RedeemedDate?: string | null;
18
+ /** @nullable */
19
+ ExpireDate?: string | null;
20
+ /** @nullable */
21
+ DiscountCoupon?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon;
22
+ };
@@ -0,0 +1,40 @@
1
+ // @ts-nocheck
2
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCoupon = {
8
+ /**
9
+ * @maxLength 10
10
+ * @nullable
11
+ */
12
+ Uid?: string | null;
13
+ /** @nullable */
14
+ _objectType?: string | null;
15
+ /** @minLength 1 */
16
+ Created?: string;
17
+ /** @minLength 1 */
18
+ Updated?: string;
19
+ /** @nullable */
20
+ UniqueIdentifier?: string | null;
21
+ /** @nullable */
22
+ Name?: string | null;
23
+ IsActive?: boolean;
24
+ /** @nullable */
25
+ AmountOff?: number | null;
26
+ /** @nullable */
27
+ PercentOff?: number | null;
28
+ /** @nullable */
29
+ RedeemBy?: string | null;
30
+ /** `1` - Forever, `2` - Once, `3` - Repeating */
31
+ Duration?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration;
32
+ /** @nullable */
33
+ DurationInMonths?: number | null;
34
+ TimesRedeemed?: number;
35
+ /** @nullable */
36
+ MaxRedemptions?: number | null;
37
+ ApplyToAddOns?: boolean;
38
+ /** @nullable */
39
+ PlanUids?: string | null;
40
+ } | null;
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * `1` - Forever, `2` - Once, `3` - Repeating
5
+ */
6
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration[keyof typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration];
7
+
8
+
9
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
10
+ export const AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemDiscountCouponSubscriptionsItemDiscountCouponDuration = {
11
+ Forever: 1,
12
+ Once: 2,
13
+ Repeating: 3,
14
+ } as const;
@@ -0,0 +1,53 @@
1
+ // @ts-nocheck
2
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoice = {
8
+ /**
9
+ * @maxLength 10
10
+ * @nullable
11
+ */
12
+ Uid?: string | null;
13
+ /** @nullable */
14
+ _objectType?: string | null;
15
+ /** @minLength 1 */
16
+ Created?: string;
17
+ /** @minLength 1 */
18
+ Updated?: string;
19
+ InvoiceDate?: string;
20
+ /** @nullable */
21
+ PaymentReminderSentDate?: string | null;
22
+ Number?: number;
23
+ /** `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing */
24
+ BillingInvoiceStatus?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus;
25
+ Amount?: number;
26
+ AmountOutstanding?: number;
27
+ IsUserGenerated?: boolean;
28
+ /**
29
+ * @maxLength 50
30
+ * @nullable
31
+ */
32
+ StripeTaxCalculationId?: string | null;
33
+ /**
34
+ * @maxLength 10
35
+ * @nullable
36
+ */
37
+ StripeTaxBehavior?: string | null;
38
+ AmountCredit?: number;
39
+ AmountDiscount?: number;
40
+ AmountPaid?: number;
41
+ AmountRefunded?: number;
42
+ AmountSubtotal?: number;
43
+ AmountTax?: number;
44
+ AmountTaxRefunded?: number;
45
+ IsTaxable?: boolean;
46
+ HasPaymentGatewayTransactions?: boolean;
47
+ /** @nullable */
48
+ StripePaymentTransactionIds?: string | null;
49
+ /** @nullable */
50
+ StripeRefundTransactionIds?: string | null;
51
+ /** @nullable */
52
+ StripeTaxRefundTransactionIds?: string | null;
53
+ } | null;
@@ -0,0 +1,18 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * `1` - Unpaid, `2` - Paid, `3` - Partial, `4` - Uncollected, `5` - Refunded, `6` - Uncollectible, `7` - Processing
5
+ */
6
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus[keyof typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus];
7
+
8
+
9
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
10
+ export const AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemLatestInvoiceBillingInvoiceStatus = {
11
+ Unpaid: 1,
12
+ Paid: 2,
13
+ Partial: 3,
14
+ Uncollected: 4,
15
+ Refunded: 5,
16
+ Uncollectible: 6,
17
+ Processing: 7,
18
+ } as const;
@@ -0,0 +1,74 @@
1
+ // @ts-nocheck
2
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanFamily } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanFamily';
3
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode';
4
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem';
5
+ import type { AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanContentGroupsItem } from './accountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanContentGroupsItem';
6
+
7
+ /**
8
+ * @nullable
9
+ */
10
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlan = {
11
+ /**
12
+ * @maxLength 10
13
+ * @nullable
14
+ */
15
+ Uid?: string | null;
16
+ /** @nullable */
17
+ _objectType?: string | null;
18
+ /** @minLength 1 */
19
+ Created?: string;
20
+ /** @minLength 1 */
21
+ Updated?: string;
22
+ /**
23
+ * @maxLength 250
24
+ * @nullable
25
+ */
26
+ Name?: string | null;
27
+ /** @nullable */
28
+ Description?: string | null;
29
+ /** @nullable */
30
+ PlanFamily?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanFamily;
31
+ /** `1` - Individual, `2` - Team */
32
+ AccountRegistrationMode?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode;
33
+ IsQuantityEditable?: boolean;
34
+ MinimumQuantity?: number;
35
+ /** @nullable */
36
+ MaximumPeople?: number | null;
37
+ MonthlyRate?: number;
38
+ AnnualRate?: number;
39
+ QuarterlyRate?: number;
40
+ OneTimeRate?: number;
41
+ SetupFee?: number;
42
+ SkipSetupFeeOnPlanChange?: boolean;
43
+ IsTaxable?: boolean;
44
+ IsActive?: boolean;
45
+ IsPerUser?: boolean;
46
+ RequirePaymentInformation?: boolean;
47
+ TrialPeriodDays?: number;
48
+ /** @nullable */
49
+ TrialUntilDate?: string | null;
50
+ ExpiresAfterMonths?: number;
51
+ /** @nullable */
52
+ ExpirationDate?: string | null;
53
+ /**
54
+ * @maxLength 250
55
+ * @nullable
56
+ */
57
+ PostLoginPath?: string | null;
58
+ /**
59
+ * @maxLength 15
60
+ * @nullable
61
+ */
62
+ StripeTaxCodeId?: string | null;
63
+ /**
64
+ * @maxLength 250
65
+ * @nullable
66
+ */
67
+ UnitOfMeasure?: string | null;
68
+ /** @nullable */
69
+ PlanAddOns?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem[] | null;
70
+ /** @nullable */
71
+ ContentGroups?: AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanContentGroupsItem[] | null;
72
+ /** @nullable */
73
+ NumberOfSubscriptions?: number | null;
74
+ } | null;
@@ -0,0 +1,13 @@
1
+ // @ts-nocheck
2
+
3
+ /**
4
+ * `1` - Individual, `2` - Team
5
+ */
6
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode[keyof typeof AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode];
7
+
8
+
9
+ // eslint-disable-next-line @typescript-eslint/no-redeclare
10
+ export const AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanAccountRegistrationMode = {
11
+ Individual: 1,
12
+ Team: 2,
13
+ } as const;
@@ -0,0 +1,25 @@
1
+ // @ts-nocheck
2
+
3
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanContentGroupsItem = {
4
+ /**
5
+ * @maxLength 10
6
+ * @nullable
7
+ */
8
+ Uid?: string | null;
9
+ /** @nullable */
10
+ _objectType?: string | null;
11
+ /** @minLength 1 */
12
+ Created: string;
13
+ /** @minLength 1 */
14
+ Updated: string;
15
+ /**
16
+ * @minLength 1
17
+ * @maxLength 50
18
+ */
19
+ Name: string;
20
+ /**
21
+ * @maxLength 1024
22
+ * @nullable
23
+ */
24
+ AccessDeniedPath?: string | null;
25
+ };
@@ -0,0 +1,16 @@
1
+ // @ts-nocheck
2
+
3
+ export type AccountBillingInvoiceDeletedWebhookPayloadSubscriptionsItemPlanPlanAddOnsItem = {
4
+ /**
5
+ * @maxLength 10
6
+ * @nullable
7
+ */
8
+ Uid?: string | null;
9
+ /** @nullable */
10
+ _objectType?: string | null;
11
+ /** @minLength 1 */
12
+ Created: string;
13
+ /** @minLength 1 */
14
+ Updated: string;
15
+ IsUserSelectable: boolean;
16
+ };