@outseta/api-client 0.3.53 → 0.4.0

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 (49) hide show
  1. package/dist/index.js +667 -1
  2. package/package.json +1 -1
  3. package/src/generated/{billing/billing.ts → billing-v2/billing-v2.ts} +54 -4
  4. package/src/generated/billing-v3/billing-v3.ts +2485 -0
  5. package/src/generated/crm/crm.ts +148 -0
  6. package/src/generated/models/accountExpireCurrentSubscriptionBody.ts +7 -0
  7. package/src/generated/models/accountExtendRenewalBody.ts +7 -0
  8. package/src/generated/models/accountWebhookEntityCurrentStripeProductInstancesItem.ts +0 -11
  9. package/src/generated/models/extendRenewalParams.ts +10 -2
  10. package/src/generated/models/importResult.ts +9 -0
  11. package/src/generated/models/index.ts +38 -0
  12. package/src/generated/models/stripeCouponsCreateBody.ts +7 -0
  13. package/src/generated/models/stripeCouponsGetAll200.ts +8 -0
  14. package/src/generated/models/stripeCouponsGetAllParams.ts +14 -0
  15. package/src/generated/models/stripeCouponsGetRedemptions200.ts +8 -0
  16. package/src/generated/models/stripeCouponsGetRedemptionsParams.ts +14 -0
  17. package/src/generated/models/stripeInvoiceLineItemsGetAll200.ts +8 -0
  18. package/src/generated/models/stripeInvoiceLineItemsGetAllParams.ts +14 -0
  19. package/src/generated/models/stripeInvoicesChangeInvoiceStatusBody.ts +7 -0
  20. package/src/generated/models/stripeInvoicesGetAll200.ts +8 -0
  21. package/src/generated/models/stripeInvoicesGetAllParams.ts +14 -0
  22. package/src/generated/models/stripeInvoicesIssueInvoiceCreditBody.ts +7 -0
  23. package/src/generated/models/stripeInvoicesPostBody.ts +7 -0
  24. package/src/generated/models/stripePaymentMethodsGetAll200.ts +8 -0
  25. package/src/generated/models/stripePaymentMethodsGetAllParams.ts +14 -0
  26. package/src/generated/models/stripePricesGetAll200.ts +8 -0
  27. package/src/generated/models/stripePricesGetAllParams.ts +14 -0
  28. package/src/generated/models/stripeProductAllOf.ts +0 -11
  29. package/src/generated/models/stripeProductFamiliesGetAll200.ts +8 -0
  30. package/src/generated/models/stripeProductFamiliesGetAllParams.ts +14 -0
  31. package/src/generated/models/stripeProductFamiliesPostBody.ts +7 -0
  32. package/src/generated/models/stripeProductFamiliesPutBody.ts +7 -0
  33. package/src/generated/models/stripeProductsGetAll200.ts +8 -0
  34. package/src/generated/models/stripeProductsGetAllParams.ts +14 -0
  35. package/src/generated/models/stripeProductsPostBody.ts +7 -0
  36. package/src/generated/models/stripeProductsPutBody.ts +7 -0
  37. package/src/generated/models/stripePromotionCodesCreateBody.ts +7 -0
  38. package/src/generated/models/stripePromotionCodesGetAll200.ts +8 -0
  39. package/src/generated/models/stripePromotionCodesGetAllParams.ts +14 -0
  40. package/src/generated/models/stripePromotionCodesUpdateBody.ts +7 -0
  41. package/src/generated/models/stripeSubscriptionsChangeBody.ts +7 -0
  42. package/src/generated/models/stripeSubscriptionsCreateBody.ts +7 -0
  43. package/src/generated/models/stripeSubscriptionsExtendTrialBody.ts +7 -0
  44. package/src/generated/models/stripeSubscriptionsGetAll200.ts +8 -0
  45. package/src/generated/models/stripeSubscriptionsGetAllParams.ts +14 -0
  46. package/src/generated/models/stripeSubscriptionsPauseCollectionBody.ts +7 -0
  47. package/src/generated/models/stripeSubscriptionsPreviewChangeBody.ts +7 -0
  48. package/src/generated/public/public.ts +26 -0
  49. package/src/index.ts +4 -1
@@ -5,6 +5,8 @@ import type {
5
5
  AccountAddAccountParams,
6
6
  AccountAddPersonToAccountBody,
7
7
  AccountCancelAccountBody,
8
+ AccountExpireCurrentSubscriptionBody,
9
+ AccountExtendRenewalBody,
8
10
  AccountExtendTrialBody,
9
11
  AccountGetAllAccounts200,
10
12
  AccountGetAllAccountsParams,
@@ -1193,6 +1195,83 @@ export const accountExtendTrial = async (accountUid: string | null,
1193
1195
  );}
1194
1196
 
1195
1197
 
1198
+ /**
1199
+ * Acts on the account's current subscription. The account must be in the Subscribing,
1200
+ Cancelling, Trialing, CancellingTrial or PastDue stage, and the request is rejected when
1201
+ a future subscription (a scheduled plan change) is waiting to start on the account.
1202
+
1203
+ ToDate is the new renewal date. It must be after the subscription's start date, on or
1204
+ after the date of the subscription's latest invoice, and not later than ExpirationDate.
1205
+ Moving the renewal date earlier gives no credit for the rest of the current term.
1206
+
1207
+ ExpirationDate is the date the subscription ends. Outseta ends the subscription when it
1208
+ reaches this date and sets its EndDate to it. When only ExpirationDate is sent and it is
1209
+ before the current renewal date, the renewal date moves to the expiration date.
1210
+
1211
+ Every request sets the expiration date. If ExpirationDate is omitted, the subscription's
1212
+ existing expiration date is removed, except when ToDate is later than it: then the
1213
+ expiration date moves to ToDate. To remove the expiration date, send an empty body ({}).
1214
+ To keep an expiration date while changing the renewal date, send both.
1215
+
1216
+ Times of day: ExpirationDate is first set to the time of day of the subscription's start
1217
+ date, and the checks above compare ToDate with the time of day you send. For example, with
1218
+ a subscription that started at 12:00 UTC, ToDate 2027-03-31T18:00:00Z is later than
1219
+ ExpirationDate 2027-03-31T00:00:00Z and is rejected. Send ToDate with the time of day of the
1220
+ current RenewalDate to avoid this. The saved renewal date keeps the time of day of the
1221
+ current RenewalDate.
1222
+ * @summary Set the renewal date or expiration date of the current subscription.
1223
+ */
1224
+ export type accountExtendRenewalResponse200 = {
1225
+ data: Blob
1226
+ status: 200
1227
+ }
1228
+
1229
+ export type accountExtendRenewalResponse400 = {
1230
+ data: void
1231
+ status: 400
1232
+ }
1233
+
1234
+ export type accountExtendRenewalResponse401 = {
1235
+ data: void
1236
+ status: 401
1237
+ }
1238
+
1239
+ export type accountExtendRenewalResponse404 = {
1240
+ data: void
1241
+ status: 404
1242
+ }
1243
+
1244
+ export type accountExtendRenewalResponseSuccess = (accountExtendRenewalResponse200) & {
1245
+ headers: Headers;
1246
+ };
1247
+ export type accountExtendRenewalResponseError = (accountExtendRenewalResponse400 | accountExtendRenewalResponse401 | accountExtendRenewalResponse404) & {
1248
+ headers: Headers;
1249
+ };
1250
+
1251
+ export type accountExtendRenewalResponse = (accountExtendRenewalResponseSuccess | accountExtendRenewalResponseError)
1252
+
1253
+ export const getAccountExtendRenewalUrl = (accountUid: string | null,) => {
1254
+
1255
+
1256
+
1257
+
1258
+ return `/api/v1/crm/accounts/${accountUid}/extend-renewal`
1259
+ }
1260
+
1261
+ export const accountExtendRenewal = async (accountUid: string | null,
1262
+ accountExtendRenewalBody: AccountExtendRenewalBody, options?: RequestInit): Promise<accountExtendRenewalResponse> => {
1263
+
1264
+ return customFetch<accountExtendRenewalResponse>(getAccountExtendRenewalUrl(accountUid),
1265
+ {
1266
+ ...options,
1267
+ method: 'PUT',
1268
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
1269
+ body: JSON.stringify(
1270
+ accountExtendRenewalBody,)
1271
+ }
1272
+ );}
1273
+
1274
+
1196
1275
  /**
1197
1276
  * Pass personUid as a query parameter to send to a specific person, or personUid=* to send
1198
1277
  to all people on the account. If no personUid is provided, the email is sent to the
@@ -1248,6 +1327,75 @@ export const accountSendConfirmationEmail = async (accountUid: string | null, op
1248
1327
  );}
1249
1328
 
1250
1329
 
1330
+ /**
1331
+ * Applies to Outseta billing (v2) only. With Stripe Billing (v3), cancel the Stripe
1332
+ subscription instead: POST /billing/stripe/subscriptions/{subscriptionUid}/cancel with
1333
+ cancelImmediately=true.
1334
+
1335
+ The subscription and its add-ons end now, and the account moves to the Expired stage
1336
+ (TrialExpired if it was in the Trialing stage). Any future subscription (a scheduled plan
1337
+ change) is deleted. Unpaid invoices on the subscription are marked uncollectible, so no
1338
+ more automatic payment attempts are made on them. You can still record a payment against
1339
+ them. No call is made to Stripe, and the payment method is not changed.
1340
+
1341
+ The request is rejected when the account is already in the Expired or TrialExpired stage,
1342
+ or when the subscription's renewal date is in the past.
1343
+
1344
+ The body is optional. Send CancelationReason and Comment to record why the account was
1345
+ cancelled. Without a body, the reason records who made the request.
1346
+ * @summary Cancel an account's current subscription immediately.
1347
+ */
1348
+ export type accountExpireCurrentSubscriptionResponse200 = {
1349
+ data: Blob
1350
+ status: 200
1351
+ }
1352
+
1353
+ export type accountExpireCurrentSubscriptionResponse400 = {
1354
+ data: void
1355
+ status: 400
1356
+ }
1357
+
1358
+ export type accountExpireCurrentSubscriptionResponse401 = {
1359
+ data: void
1360
+ status: 401
1361
+ }
1362
+
1363
+ export type accountExpireCurrentSubscriptionResponse404 = {
1364
+ data: void
1365
+ status: 404
1366
+ }
1367
+
1368
+ export type accountExpireCurrentSubscriptionResponseSuccess = (accountExpireCurrentSubscriptionResponse200) & {
1369
+ headers: Headers;
1370
+ };
1371
+ export type accountExpireCurrentSubscriptionResponseError = (accountExpireCurrentSubscriptionResponse400 | accountExpireCurrentSubscriptionResponse401 | accountExpireCurrentSubscriptionResponse404) & {
1372
+ headers: Headers;
1373
+ };
1374
+
1375
+ export type accountExpireCurrentSubscriptionResponse = (accountExpireCurrentSubscriptionResponseSuccess | accountExpireCurrentSubscriptionResponseError)
1376
+
1377
+ export const getAccountExpireCurrentSubscriptionUrl = (accountUid: string | null,) => {
1378
+
1379
+
1380
+
1381
+
1382
+ return `/api/v1/crm/accounts/${accountUid}/expire-current-subscription`
1383
+ }
1384
+
1385
+ export const accountExpireCurrentSubscription = async (accountUid: string | null,
1386
+ accountExpireCurrentSubscriptionBody: NonReadonly<AccountExpireCurrentSubscriptionBody>, options?: RequestInit): Promise<accountExpireCurrentSubscriptionResponse> => {
1387
+
1388
+ return customFetch<accountExpireCurrentSubscriptionResponse>(getAccountExpireCurrentSubscriptionUrl(accountUid),
1389
+ {
1390
+ ...options,
1391
+ method: 'PUT',
1392
+ headers: { 'Content-Type': 'application/json', ...options?.headers },
1393
+ body: JSON.stringify(
1394
+ accountExpireCurrentSubscriptionBody,)
1395
+ }
1396
+ );}
1397
+
1398
+
1251
1399
  /**
1252
1400
  * Returns the people associated with your account.
1253
1401
  * @summary Retrieve all people.
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { AccountCancelation } from './accountCancelation';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type AccountExpireCurrentSubscriptionBody = AccountCancelation | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { ExtendRenewalParams } from './extendRenewalParams';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type AccountExtendRenewalBody = ExtendRenewalParams | null;
@@ -51,16 +51,6 @@ export type AccountWebhookEntityCurrentStripeProductInstancesItem = {
51
51
  IsQuantityEditable?: boolean;
52
52
  /** @nullable */
53
53
  MaximumPeople?: number | null;
54
- /**
55
- * @maxLength 8
56
- * @nullable
57
- */
58
- MigratedAddOnUid?: string | null;
59
- /**
60
- * @maxLength 8
61
- * @nullable
62
- */
63
- MigratedPlanUid?: string | null;
64
54
  /** @nullable */
65
55
  MinimumQuantity?: number | null;
66
56
  /**
@@ -77,7 +67,6 @@ export type AccountWebhookEntityCurrentStripeProductInstancesItem = {
77
67
  TrialPeriodDays?: number;
78
68
  /** @nullable */
79
69
  TrialUntilDate?: string | null;
80
- CanDelete?: boolean;
81
70
  NumberOfPurchases?: number;
82
71
  NumberOfSubscriptions?: number;
83
72
  /** @nullable */
@@ -1,8 +1,16 @@
1
1
  // @ts-nocheck
2
2
 
3
3
  export interface ExtendRenewalParams {
4
- /** @nullable */
4
+ /**
5
+ * The new renewal date of the subscription. Omit it to keep the current renewal date, unless
6
+ ExpirationDate is earlier than it: then the renewal date moves to ExpirationDate.
7
+ * @nullable
8
+ */
5
9
  ToDate?: string | null;
6
- /** @nullable */
10
+ /**
11
+ * The date the subscription ends. Omit it to remove the subscription's expiration date, unless
12
+ ToDate is later than the existing expiration date: then the expiration date moves to ToDate.
13
+ * @nullable
14
+ */
7
15
  ExpirationDate?: string | null;
8
16
  }
@@ -0,0 +1,9 @@
1
+ // @ts-nocheck
2
+
3
+ export interface ImportResult {
4
+ CountImported?: number;
5
+ CountError?: number;
6
+ CountTotal?: number;
7
+ /** @nullable */
8
+ ErrorMessages?: string[] | null;
9
+ }
@@ -82,6 +82,8 @@ export * from './accountCancelationAllOfAccount';
82
82
  export * from './accountCancelationAllOfLastPlan';
83
83
  export * from './accountCreatedWebhookPayload';
84
84
  export * from './accountDeletedWebhookPayload';
85
+ export * from './accountExpireCurrentSubscriptionBody';
86
+ export * from './accountExtendRenewalBody';
85
87
  export * from './accountExtendTrialBody';
86
88
  export * from './accountGetAllAccounts200';
87
89
  export * from './accountGetAllAccountsParams';
@@ -430,6 +432,7 @@ export * from './extendSubscriptionOptions';
430
432
  export * from './extendTrialParams';
431
433
  export * from './flatfileImportData';
432
434
  export * from './flatfileImportDataSchemalessData';
435
+ export * from './importResult';
433
436
  export * from './invoice';
434
437
  export * from './invoiceAddInvoiceBody';
435
438
  export * from './invoiceAllOf';
@@ -643,6 +646,11 @@ export * from './stripeChargeAllOfStripePaymentMethod';
643
646
  export * from './stripeCheckoutParams';
644
647
  export * from './stripeCoupon';
645
648
  export * from './stripeCouponAllOf';
649
+ export * from './stripeCouponsCreateBody';
650
+ export * from './stripeCouponsGetAll200';
651
+ export * from './stripeCouponsGetAllParams';
652
+ export * from './stripeCouponsGetRedemptions200';
653
+ export * from './stripeCouponsGetRedemptionsParams';
646
654
  export * from './stripeCreditNote';
647
655
  export * from './stripeCreditNoteAllOf';
648
656
  export * from './stripeDiscount';
@@ -663,18 +671,29 @@ export * from './stripeInvoiceLineItem';
663
671
  export * from './stripeInvoiceLineItemAllOf';
664
672
  export * from './stripeInvoiceLineItemAllOfStripeInvoice';
665
673
  export * from './stripeInvoiceLineItemAllOfStripePrice';
674
+ export * from './stripeInvoiceLineItemsGetAll200';
675
+ export * from './stripeInvoiceLineItemsGetAllParams';
666
676
  export * from './stripeInvoicePayment';
667
677
  export * from './stripeInvoicePaymentAllOf';
668
678
  export * from './stripeInvoicePaymentAllOfStripeInvoice';
679
+ export * from './stripeInvoicesChangeInvoiceStatusBody';
680
+ export * from './stripeInvoicesGetAll200';
681
+ export * from './stripeInvoicesGetAllParams';
682
+ export * from './stripeInvoicesIssueInvoiceCreditBody';
683
+ export * from './stripeInvoicesPostBody';
669
684
  export * from './stripeMeter';
670
685
  export * from './stripeMeterAllOf';
671
686
  export * from './stripePaymentMethod';
672
687
  export * from './stripePaymentMethodAllOf';
673
688
  export * from './stripePaymentMethodAllOfAccount';
689
+ export * from './stripePaymentMethodsGetAll200';
690
+ export * from './stripePaymentMethodsGetAllParams';
674
691
  export * from './stripePrice';
675
692
  export * from './stripePriceAllOf';
676
693
  export * from './stripePriceAllOfRecurringStripeMeter';
677
694
  export * from './stripePriceAllOfStripeProduct';
695
+ export * from './stripePricesGetAll200';
696
+ export * from './stripePricesGetAllParams';
678
697
  export * from './stripeProduct';
679
698
  export * from './stripeProductAllOf';
680
699
  export * from './stripeProductAllOfStripeProductFamily';
@@ -682,12 +701,24 @@ export * from './stripeProductCrossSell';
682
701
  export * from './stripeProductCrossSellAllOf';
683
702
  export * from './stripeProductCrossSellAllOfCrossSellProduct';
684
703
  export * from './stripeProductCrossSellAllOfStripeProduct';
704
+ export * from './stripeProductFamiliesGetAll200';
705
+ export * from './stripeProductFamiliesGetAllParams';
706
+ export * from './stripeProductFamiliesPostBody';
707
+ export * from './stripeProductFamiliesPutBody';
685
708
  export * from './stripeProductFamily';
686
709
  export * from './stripeProductFamilyAllOf';
710
+ export * from './stripeProductsGetAll200';
711
+ export * from './stripeProductsGetAllParams';
712
+ export * from './stripeProductsPostBody';
713
+ export * from './stripeProductsPutBody';
687
714
  export * from './stripePromotionCode';
688
715
  export * from './stripePromotionCodeAllOf';
689
716
  export * from './stripePromotionCodeAllOfAccount';
690
717
  export * from './stripePromotionCodeAllOfStripeCoupon';
718
+ export * from './stripePromotionCodesCreateBody';
719
+ export * from './stripePromotionCodesGetAll200';
720
+ export * from './stripePromotionCodesGetAllParams';
721
+ export * from './stripePromotionCodesUpdateBody';
691
722
  export * from './stripeRefund';
692
723
  export * from './stripeRefundAllOf';
693
724
  export * from './stripeRefundAllOfStripeCharge';
@@ -713,6 +744,13 @@ export * from './stripeSubscriptionSchedulePhaseAllOfStripeSubscriptionSchedule'
713
744
  export * from './stripeSubscriptionSchedulePhaseItem';
714
745
  export * from './stripeSubscriptionSchedulePhaseItemAllOf';
715
746
  export * from './stripeSubscriptionSchedulePhaseItemAllOfStripePrice';
747
+ export * from './stripeSubscriptionsChangeBody';
748
+ export * from './stripeSubscriptionsCreateBody';
749
+ export * from './stripeSubscriptionsExtendTrialBody';
750
+ export * from './stripeSubscriptionsGetAll200';
751
+ export * from './stripeSubscriptionsGetAllParams';
752
+ export * from './stripeSubscriptionsPauseCollectionBody';
753
+ export * from './stripeSubscriptionsPreviewChangeBody';
716
754
  export * from './subscription';
717
755
  export * from './subscriptionAddOn';
718
756
  export * from './subscriptionAddOnAddSubscriptionAddOnBody';
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeCoupon } from './stripeCoupon';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeCouponsCreateBody = StripeCoupon | null;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeCoupon } from './stripeCoupon';
4
+
5
+ export type StripeCouponsGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeCoupon[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeCouponsGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeDiscount } from './stripeDiscount';
4
+
5
+ export type StripeCouponsGetRedemptions200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeDiscount[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeCouponsGetRedemptionsParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeInvoiceLineItem } from './stripeInvoiceLineItem';
4
+
5
+ export type StripeInvoiceLineItemsGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeInvoiceLineItem[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeInvoiceLineItemsGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { InvoiceStatusChangeOptions } from './invoiceStatusChangeOptions';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeInvoicesChangeInvoiceStatusBody = InvoiceStatusChangeOptions | null;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeInvoice } from './stripeInvoice';
4
+
5
+ export type StripeInvoicesGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeInvoice[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeInvoicesGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { InvoiceCreditOptions } from './invoiceCreditOptions';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeInvoicesIssueInvoiceCreditBody = InvoiceCreditOptions | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeInvoice } from './stripeInvoice';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeInvoicesPostBody = StripeInvoice | null;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripePaymentMethod } from './stripePaymentMethod';
4
+
5
+ export type StripePaymentMethodsGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripePaymentMethod[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripePaymentMethodsGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripePrice } from './stripePrice';
4
+
5
+ export type StripePricesGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripePrice[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripePricesGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -41,16 +41,6 @@ export type StripeProductAllOf = {
41
41
  IsQuantityEditable?: boolean;
42
42
  /** @nullable */
43
43
  MaximumPeople?: number | null;
44
- /**
45
- * @maxLength 8
46
- * @nullable
47
- */
48
- MigratedAddOnUid?: string | null;
49
- /**
50
- * @maxLength 8
51
- * @nullable
52
- */
53
- MigratedPlanUid?: string | null;
54
44
  /** @nullable */
55
45
  MinimumQuantity?: number | null;
56
46
  /**
@@ -69,7 +59,6 @@ export type StripeProductAllOf = {
69
59
  TrialPeriodDays?: number;
70
60
  /** @nullable */
71
61
  TrialUntilDate?: string | null;
72
- CanDelete?: boolean;
73
62
  NumberOfPurchases?: number;
74
63
  NumberOfSubscriptions?: number;
75
64
  /** @nullable */
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeProductFamily } from './stripeProductFamily';
4
+
5
+ export type StripeProductFamiliesGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeProductFamily[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeProductFamiliesGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeProductFamily } from './stripeProductFamily';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeProductFamiliesPostBody = StripeProductFamily | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeProductFamily } from './stripeProductFamily';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeProductFamiliesPutBody = StripeProductFamily | null;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripeProduct } from './stripeProduct';
4
+
5
+ export type StripeProductsGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripeProduct[];
8
+ };
@@ -0,0 +1,14 @@
1
+ // @ts-nocheck
2
+ import type { LimitParameter } from './limitParameter';
3
+ import type { OffsetParameter } from './offsetParameter';
4
+
5
+ export type StripeProductsGetAllParams = {
6
+ /**
7
+ * Requested page size. The server caps it at 100, or 25 when requested fields expand child objects or require additional queries; metadata.limit reports the applied value. Use offset=1 for the second page.
8
+ */
9
+ limit?: LimitParameter;
10
+ /**
11
+ * Zero-based page number, not a record offset. With limit=50, the second page is offset=1; offset=50 is page index 50 (records 2501-2550).
12
+ */
13
+ offset?: OffsetParameter;
14
+ };
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeProduct } from './stripeProduct';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeProductsPostBody = StripeProduct | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripeProduct } from './stripeProduct';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripeProductsPutBody = StripeProduct | null;
@@ -0,0 +1,7 @@
1
+ // @ts-nocheck
2
+ import type { StripePromotionCode } from './stripePromotionCode';
3
+
4
+ /**
5
+ * @nullable
6
+ */
7
+ export type StripePromotionCodesCreateBody = StripePromotionCode | null;
@@ -0,0 +1,8 @@
1
+ // @ts-nocheck
2
+ import type { CollectionMetadata } from './collectionMetadata';
3
+ import type { StripePromotionCode } from './stripePromotionCode';
4
+
5
+ export type StripePromotionCodesGetAll200 = {
6
+ metadata?: CollectionMetadata;
7
+ items?: StripePromotionCode[];
8
+ };