@openmeter/sdk 1.0.0-beta-253cc22d1efb → 1.0.0-beta-c19dca6a9462
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.
- package/dist/cjs/src/client/schemas.d.cts +11 -0
- package/dist/cjs/src/zod/index.cjs +167 -28
- package/dist/cjs/src/zod/index.cjs.map +1 -1
- package/dist/cjs/src/zod/index.d.cts +46 -0
- package/dist/src/client/schemas.d.ts +11 -0
- package/dist/src/zod/index.d.ts +46 -0
- package/dist/src/zod/index.js +138 -0
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/src/zod/index.js
CHANGED
|
@@ -107,6 +107,7 @@ export const createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterR
|
|
|
107
107
|
export const createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
108
108
|
export const createAddonBodyRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
109
109
|
export const createAddonBodyRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
110
|
+
export const createAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
110
111
|
export const createAddonBodyRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
111
112
|
export const createAddonBodyRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
112
113
|
export const createAddonBodyRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -122,6 +123,7 @@ export const createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterR
|
|
|
122
123
|
export const createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
123
124
|
export const createAddonBodyRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
124
125
|
export const createAddonBodyRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
126
|
+
export const createAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
125
127
|
export const createAddonBodyRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
126
128
|
export const createAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
127
129
|
export const createAddonBodyRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -345,6 +347,11 @@ export const CreateAddonBody = zod
|
|
|
345
347
|
.describe('The tax config for Stripe.')
|
|
346
348
|
.optional()
|
|
347
349
|
.describe('Stripe tax config.'),
|
|
350
|
+
taxCodeId: zod.coerce
|
|
351
|
+
.string()
|
|
352
|
+
.regex(createAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
353
|
+
.optional()
|
|
354
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
348
355
|
})
|
|
349
356
|
.describe('Set of provider specific tax configs.')
|
|
350
357
|
.optional()
|
|
@@ -667,6 +674,11 @@ export const CreateAddonBody = zod
|
|
|
667
674
|
.describe('The tax config for Stripe.')
|
|
668
675
|
.optional()
|
|
669
676
|
.describe('Stripe tax config.'),
|
|
677
|
+
taxCodeId: zod.coerce
|
|
678
|
+
.string()
|
|
679
|
+
.regex(createAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
680
|
+
.optional()
|
|
681
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
670
682
|
})
|
|
671
683
|
.describe('Set of provider specific tax configs.')
|
|
672
684
|
.optional()
|
|
@@ -703,6 +715,7 @@ export const updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterR
|
|
|
703
715
|
export const updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
704
716
|
export const updateAddonBodyRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
705
717
|
export const updateAddonBodyRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
718
|
+
export const updateAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
706
719
|
export const updateAddonBodyRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
707
720
|
export const updateAddonBodyRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
708
721
|
export const updateAddonBodyRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -718,6 +731,7 @@ export const updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterR
|
|
|
718
731
|
export const updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
719
732
|
export const updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
720
733
|
export const updateAddonBodyRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
734
|
+
export const updateAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
721
735
|
export const updateAddonBodyRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
722
736
|
export const updateAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
723
737
|
export const updateAddonBodyRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -927,6 +941,11 @@ export const UpdateAddonBody = zod
|
|
|
927
941
|
.describe('The tax config for Stripe.')
|
|
928
942
|
.optional()
|
|
929
943
|
.describe('Stripe tax config.'),
|
|
944
|
+
taxCodeId: zod.coerce
|
|
945
|
+
.string()
|
|
946
|
+
.regex(updateAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
947
|
+
.optional()
|
|
948
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
930
949
|
})
|
|
931
950
|
.describe('Set of provider specific tax configs.')
|
|
932
951
|
.optional()
|
|
@@ -1249,6 +1268,11 @@ export const UpdateAddonBody = zod
|
|
|
1249
1268
|
.describe('The tax config for Stripe.')
|
|
1250
1269
|
.optional()
|
|
1251
1270
|
.describe('Stripe tax config.'),
|
|
1271
|
+
taxCodeId: zod.coerce
|
|
1272
|
+
.string()
|
|
1273
|
+
.regex(updateAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
1274
|
+
.optional()
|
|
1275
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
1252
1276
|
})
|
|
1253
1277
|
.describe('Set of provider specific tax configs.')
|
|
1254
1278
|
.optional()
|
|
@@ -1765,6 +1789,7 @@ export const createPendingInvoiceLineBodyCurrencyOneRegExp = /^[A-Z]{3}$/;
|
|
|
1765
1789
|
export const createPendingInvoiceLineBodyLinesItemNameMax = 256;
|
|
1766
1790
|
export const createPendingInvoiceLineBodyLinesItemDescriptionMax = 1024;
|
|
1767
1791
|
export const createPendingInvoiceLineBodyLinesItemTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
1792
|
+
export const createPendingInvoiceLineBodyLinesItemTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1768
1793
|
export const createPendingInvoiceLineBodyLinesItemPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1769
1794
|
export const createPendingInvoiceLineBodyLinesItemPriceOneOnePaymentTermDefault = 'in_advance';
|
|
1770
1795
|
export const createPendingInvoiceLineBodyLinesItemPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -1788,6 +1813,7 @@ export const createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+
|
|
|
1788
1813
|
export const createPendingInvoiceLineBodyLinesItemRateCardOneFeatureKeyMax = 64;
|
|
1789
1814
|
export const createPendingInvoiceLineBodyLinesItemRateCardOneFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
1790
1815
|
export const createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
1816
|
+
export const createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1791
1817
|
export const createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1792
1818
|
export const createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = 'in_advance';
|
|
1793
1819
|
export const createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -2251,6 +2277,11 @@ export const CreatePendingInvoiceLineBody = zod
|
|
|
2251
2277
|
.describe('The tax config for Stripe.')
|
|
2252
2278
|
.optional()
|
|
2253
2279
|
.describe('Stripe tax config.'),
|
|
2280
|
+
taxCodeId: zod.coerce
|
|
2281
|
+
.string()
|
|
2282
|
+
.regex(createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
2283
|
+
.optional()
|
|
2284
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
2254
2285
|
})
|
|
2255
2286
|
.describe('Set of provider specific tax configs.')
|
|
2256
2287
|
.optional()
|
|
@@ -2285,6 +2316,11 @@ export const CreatePendingInvoiceLineBody = zod
|
|
|
2285
2316
|
.describe('The tax config for Stripe.')
|
|
2286
2317
|
.optional()
|
|
2287
2318
|
.describe('Stripe tax config.'),
|
|
2319
|
+
taxCodeId: zod.coerce
|
|
2320
|
+
.string()
|
|
2321
|
+
.regex(createPendingInvoiceLineBodyLinesItemTaxConfigOneTaxCodeIdRegExp)
|
|
2322
|
+
.optional()
|
|
2323
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
2288
2324
|
})
|
|
2289
2325
|
.describe('Set of provider specific tax configs.')
|
|
2290
2326
|
.optional()
|
|
@@ -2314,6 +2350,7 @@ export const simulateInvoiceBodyCurrencyOneRegExp = /^[A-Z]{3}$/;
|
|
|
2314
2350
|
export const simulateInvoiceBodyLinesItemNameMax = 256;
|
|
2315
2351
|
export const simulateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
2316
2352
|
export const simulateInvoiceBodyLinesItemTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
2353
|
+
export const simulateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2317
2354
|
export const simulateInvoiceBodyLinesItemPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2318
2355
|
export const simulateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault = 'in_advance';
|
|
2319
2356
|
export const simulateInvoiceBodyLinesItemPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -2337,6 +2374,7 @@ export const simulateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0
|
|
|
2337
2374
|
export const simulateInvoiceBodyLinesItemRateCardOneFeatureKeyMax = 64;
|
|
2338
2375
|
export const simulateInvoiceBodyLinesItemRateCardOneFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
2339
2376
|
export const simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
2377
|
+
export const simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2340
2378
|
export const simulateInvoiceBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2341
2379
|
export const simulateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = 'in_advance';
|
|
2342
2380
|
export const simulateInvoiceBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -2819,6 +2857,11 @@ export const SimulateInvoiceBody = zod
|
|
|
2819
2857
|
.describe('The tax config for Stripe.')
|
|
2820
2858
|
.optional()
|
|
2821
2859
|
.describe('Stripe tax config.'),
|
|
2860
|
+
taxCodeId: zod.coerce
|
|
2861
|
+
.string()
|
|
2862
|
+
.regex(simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
2863
|
+
.optional()
|
|
2864
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
2822
2865
|
})
|
|
2823
2866
|
.describe('Set of provider specific tax configs.')
|
|
2824
2867
|
.optional()
|
|
@@ -2853,6 +2896,11 @@ export const SimulateInvoiceBody = zod
|
|
|
2853
2896
|
.describe('The tax config for Stripe.')
|
|
2854
2897
|
.optional()
|
|
2855
2898
|
.describe('Stripe tax config.'),
|
|
2899
|
+
taxCodeId: zod.coerce
|
|
2900
|
+
.string()
|
|
2901
|
+
.regex(simulateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp)
|
|
2902
|
+
.optional()
|
|
2903
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
2856
2904
|
})
|
|
2857
2905
|
.describe('Set of provider specific tax configs.')
|
|
2858
2906
|
.optional()
|
|
@@ -3075,6 +3123,7 @@ export const updateInvoiceBodyCustomerOneAddressesMax = 1;
|
|
|
3075
3123
|
export const updateInvoiceBodyLinesItemNameMax = 256;
|
|
3076
3124
|
export const updateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
3077
3125
|
export const updateInvoiceBodyLinesItemTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
3126
|
+
export const updateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3078
3127
|
export const updateInvoiceBodyLinesItemPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3079
3128
|
export const updateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault = 'in_advance';
|
|
3080
3129
|
export const updateInvoiceBodyLinesItemPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -3098,6 +3147,7 @@ export const updateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9
|
|
|
3098
3147
|
export const updateInvoiceBodyLinesItemRateCardOneFeatureKeyMax = 64;
|
|
3099
3148
|
export const updateInvoiceBodyLinesItemRateCardOneFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
3100
3149
|
export const updateInvoiceBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
3150
|
+
export const updateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3101
3151
|
export const updateInvoiceBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3102
3152
|
export const updateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = 'in_advance';
|
|
3103
3153
|
export const updateInvoiceBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -3124,6 +3174,7 @@ export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneAutoAdvanceDefau
|
|
|
3124
3174
|
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDraftPeriodDefault = 'P0D';
|
|
3125
3175
|
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDueAfterDefault = 'P30D';
|
|
3126
3176
|
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
3177
|
+
export const updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3127
3178
|
export const updateInvoiceBodyWorkflowOneWorkflowOnePaymentOneCollectionMethodDefault = 'charge_automatically';
|
|
3128
3179
|
export const UpdateInvoiceBody = zod
|
|
3129
3180
|
.object({
|
|
@@ -3635,6 +3686,11 @@ export const UpdateInvoiceBody = zod
|
|
|
3635
3686
|
.describe('The tax config for Stripe.')
|
|
3636
3687
|
.optional()
|
|
3637
3688
|
.describe('Stripe tax config.'),
|
|
3689
|
+
taxCodeId: zod.coerce
|
|
3690
|
+
.string()
|
|
3691
|
+
.regex(updateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
3692
|
+
.optional()
|
|
3693
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
3638
3694
|
})
|
|
3639
3695
|
.describe('Set of provider specific tax configs.')
|
|
3640
3696
|
.optional()
|
|
@@ -3669,6 +3725,11 @@ export const UpdateInvoiceBody = zod
|
|
|
3669
3725
|
.describe('The tax config for Stripe.')
|
|
3670
3726
|
.optional()
|
|
3671
3727
|
.describe('Stripe tax config.'),
|
|
3728
|
+
taxCodeId: zod.coerce
|
|
3729
|
+
.string()
|
|
3730
|
+
.regex(updateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp)
|
|
3731
|
+
.optional()
|
|
3732
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
3672
3733
|
})
|
|
3673
3734
|
.describe('Set of provider specific tax configs.')
|
|
3674
3735
|
.optional()
|
|
@@ -3782,6 +3843,11 @@ export const UpdateInvoiceBody = zod
|
|
|
3782
3843
|
.describe('The tax config for Stripe.')
|
|
3783
3844
|
.optional()
|
|
3784
3845
|
.describe('Stripe tax config.'),
|
|
3846
|
+
taxCodeId: zod.coerce
|
|
3847
|
+
.string()
|
|
3848
|
+
.regex(updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp)
|
|
3849
|
+
.optional()
|
|
3850
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
3785
3851
|
})
|
|
3786
3852
|
.describe('Set of provider specific tax configs.')
|
|
3787
3853
|
.optional()
|
|
@@ -4037,6 +4103,7 @@ export const createBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault =
|
|
|
4037
4103
|
export const createBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault = 'P30D';
|
|
4038
4104
|
export const createBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = true;
|
|
4039
4105
|
export const createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
4106
|
+
export const createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4040
4107
|
export const createBillingProfileBodyWorkflowOnePaymentOneCollectionMethodDefault = 'charge_automatically';
|
|
4041
4108
|
export const createBillingProfileBodyWorkflowOneTaxOneEnabledDefault = true;
|
|
4042
4109
|
export const createBillingProfileBodyWorkflowOneTaxOneEnforcedDefault = false;
|
|
@@ -4230,6 +4297,11 @@ export const CreateBillingProfileBody = zod
|
|
|
4230
4297
|
.describe('The tax config for Stripe.')
|
|
4231
4298
|
.optional()
|
|
4232
4299
|
.describe('Stripe tax config.'),
|
|
4300
|
+
taxCodeId: zod.coerce
|
|
4301
|
+
.string()
|
|
4302
|
+
.regex(createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp)
|
|
4303
|
+
.optional()
|
|
4304
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
4233
4305
|
})
|
|
4234
4306
|
.describe('Set of provider specific tax configs.')
|
|
4235
4307
|
.optional()
|
|
@@ -4339,6 +4411,7 @@ export const updateBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault =
|
|
|
4339
4411
|
export const updateBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault = 'P30D';
|
|
4340
4412
|
export const updateBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = true;
|
|
4341
4413
|
export const updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
4414
|
+
export const updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4342
4415
|
export const updateBillingProfileBodyWorkflowOnePaymentOneCollectionMethodDefault = 'charge_automatically';
|
|
4343
4416
|
export const updateBillingProfileBodyWorkflowOneTaxOneEnabledDefault = true;
|
|
4344
4417
|
export const updateBillingProfileBodyWorkflowOneTaxOneEnforcedDefault = false;
|
|
@@ -4512,6 +4585,11 @@ export const UpdateBillingProfileBody = zod
|
|
|
4512
4585
|
.describe('The tax config for Stripe.')
|
|
4513
4586
|
.optional()
|
|
4514
4587
|
.describe('Stripe tax config.'),
|
|
4588
|
+
taxCodeId: zod.coerce
|
|
4589
|
+
.string()
|
|
4590
|
+
.regex(updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp)
|
|
4591
|
+
.optional()
|
|
4592
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
4515
4593
|
})
|
|
4516
4594
|
.describe('Set of provider specific tax configs.')
|
|
4517
4595
|
.optional()
|
|
@@ -7220,6 +7298,7 @@ export const createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIs
|
|
|
7220
7298
|
export const createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7221
7299
|
export const createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7222
7300
|
export const createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
7301
|
+
export const createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7223
7302
|
export const createPlanBodyPhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7224
7303
|
export const createPlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
7225
7304
|
export const createPlanBodyPhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7235,6 +7314,7 @@ export const createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIs
|
|
|
7235
7314
|
export const createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7236
7315
|
export const createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7237
7316
|
export const createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
7317
|
+
export const createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7238
7318
|
export const createPlanBodyPhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7239
7319
|
export const createPlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
7240
7320
|
export const createPlanBodyPhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7497,6 +7577,11 @@ export const CreatePlanBody = zod
|
|
|
7497
7577
|
.describe('The tax config for Stripe.')
|
|
7498
7578
|
.optional()
|
|
7499
7579
|
.describe('Stripe tax config.'),
|
|
7580
|
+
taxCodeId: zod.coerce
|
|
7581
|
+
.string()
|
|
7582
|
+
.regex(createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
7583
|
+
.optional()
|
|
7584
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
7500
7585
|
})
|
|
7501
7586
|
.describe('Set of provider specific tax configs.')
|
|
7502
7587
|
.optional()
|
|
@@ -7819,6 +7904,11 @@ export const CreatePlanBody = zod
|
|
|
7819
7904
|
.describe('The tax config for Stripe.')
|
|
7820
7905
|
.optional()
|
|
7821
7906
|
.describe('Stripe tax config.'),
|
|
7907
|
+
taxCodeId: zod.coerce
|
|
7908
|
+
.string()
|
|
7909
|
+
.regex(createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
7910
|
+
.optional()
|
|
7911
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
7822
7912
|
})
|
|
7823
7913
|
.describe('Set of provider specific tax configs.')
|
|
7824
7914
|
.optional()
|
|
@@ -7905,6 +7995,7 @@ export const updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIs
|
|
|
7905
7995
|
export const updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7906
7996
|
export const updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7907
7997
|
export const updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
7998
|
+
export const updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7908
7999
|
export const updatePlanBodyPhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7909
8000
|
export const updatePlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
7910
8001
|
export const updatePlanBodyPhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7920,6 +8011,7 @@ export const updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIs
|
|
|
7920
8011
|
export const updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7921
8012
|
export const updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7922
8013
|
export const updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
8014
|
+
export const updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7923
8015
|
export const updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7924
8016
|
export const updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
7925
8017
|
export const updatePlanBodyPhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -8168,6 +8260,11 @@ export const UpdatePlanBody = zod
|
|
|
8168
8260
|
.describe('The tax config for Stripe.')
|
|
8169
8261
|
.optional()
|
|
8170
8262
|
.describe('Stripe tax config.'),
|
|
8263
|
+
taxCodeId: zod.coerce
|
|
8264
|
+
.string()
|
|
8265
|
+
.regex(updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
8266
|
+
.optional()
|
|
8267
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
8171
8268
|
})
|
|
8172
8269
|
.describe('Set of provider specific tax configs.')
|
|
8173
8270
|
.optional()
|
|
@@ -8490,6 +8587,11 @@ export const UpdatePlanBody = zod
|
|
|
8490
8587
|
.describe('The tax config for Stripe.')
|
|
8491
8588
|
.optional()
|
|
8492
8589
|
.describe('Stripe tax config.'),
|
|
8590
|
+
taxCodeId: zod.coerce
|
|
8591
|
+
.string()
|
|
8592
|
+
.regex(updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
8593
|
+
.optional()
|
|
8594
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
8493
8595
|
})
|
|
8494
8596
|
.describe('Set of provider specific tax configs.')
|
|
8495
8597
|
.optional()
|
|
@@ -9852,6 +9954,7 @@ export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOne
|
|
|
9852
9954
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
9853
9955
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
9854
9956
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
9957
|
+
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9855
9958
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9856
9959
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
9857
9960
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -9867,6 +9970,7 @@ export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwo
|
|
|
9867
9970
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
9868
9971
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
9869
9972
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
9973
|
+
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9870
9974
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9871
9975
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
9872
9976
|
export const createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -10224,6 +10328,11 @@ export const CreateSubscriptionBody = zod
|
|
|
10224
10328
|
.describe('The tax config for Stripe.')
|
|
10225
10329
|
.optional()
|
|
10226
10330
|
.describe('Stripe tax config.'),
|
|
10331
|
+
taxCodeId: zod.coerce
|
|
10332
|
+
.string()
|
|
10333
|
+
.regex(createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
10334
|
+
.optional()
|
|
10335
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
10227
10336
|
})
|
|
10228
10337
|
.describe('Set of provider specific tax configs.')
|
|
10229
10338
|
.optional()
|
|
@@ -10546,6 +10655,11 @@ export const CreateSubscriptionBody = zod
|
|
|
10546
10655
|
.describe('The tax config for Stripe.')
|
|
10547
10656
|
.optional()
|
|
10548
10657
|
.describe('Stripe tax config.'),
|
|
10658
|
+
taxCodeId: zod.coerce
|
|
10659
|
+
.string()
|
|
10660
|
+
.regex(createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
10661
|
+
.optional()
|
|
10662
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
10549
10663
|
})
|
|
10550
10664
|
.describe('Set of provider specific tax configs.')
|
|
10551
10665
|
.optional()
|
|
@@ -10640,6 +10754,7 @@ export const editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemp
|
|
|
10640
10754
|
export const editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
10641
10755
|
export const editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
10642
10756
|
export const editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
10757
|
+
export const editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10643
10758
|
export const editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10644
10759
|
export const editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOnePaymentTermDefault = 'in_advance';
|
|
10645
10760
|
export const editSubscriptionBodyCustomizationsItemOneRateCardOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -10655,6 +10770,7 @@ export const editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemp
|
|
|
10655
10770
|
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
10656
10771
|
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
10657
10772
|
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
10773
|
+
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10658
10774
|
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10659
10775
|
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
10660
10776
|
export const editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -10857,6 +10973,11 @@ export const EditSubscriptionBody = zod
|
|
|
10857
10973
|
.describe('The tax config for Stripe.')
|
|
10858
10974
|
.optional()
|
|
10859
10975
|
.describe('Stripe tax config.'),
|
|
10976
|
+
taxCodeId: zod.coerce
|
|
10977
|
+
.string()
|
|
10978
|
+
.regex(editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
10979
|
+
.optional()
|
|
10980
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
10860
10981
|
})
|
|
10861
10982
|
.describe('Set of provider specific tax configs.')
|
|
10862
10983
|
.optional()
|
|
@@ -11179,6 +11300,11 @@ export const EditSubscriptionBody = zod
|
|
|
11179
11300
|
.describe('The tax config for Stripe.')
|
|
11180
11301
|
.optional()
|
|
11181
11302
|
.describe('Stripe tax config.'),
|
|
11303
|
+
taxCodeId: zod.coerce
|
|
11304
|
+
.string()
|
|
11305
|
+
.regex(editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneTaxCodeIdRegExp)
|
|
11306
|
+
.optional()
|
|
11307
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
11182
11308
|
})
|
|
11183
11309
|
.describe('Set of provider specific tax configs.')
|
|
11184
11310
|
.optional()
|
|
@@ -11506,6 +11632,7 @@ export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOne
|
|
|
11506
11632
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
11507
11633
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
11508
11634
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
11635
|
+
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11509
11636
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
11510
11637
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
11511
11638
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -11521,6 +11648,7 @@ export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwo
|
|
|
11521
11648
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
11522
11649
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
11523
11650
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
11651
|
+
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11524
11652
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
11525
11653
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
11526
11654
|
export const changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -11847,6 +11975,11 @@ export const ChangeSubscriptionBody = zod
|
|
|
11847
11975
|
.describe('The tax config for Stripe.')
|
|
11848
11976
|
.optional()
|
|
11849
11977
|
.describe('Stripe tax config.'),
|
|
11978
|
+
taxCodeId: zod.coerce
|
|
11979
|
+
.string()
|
|
11980
|
+
.regex(changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
11981
|
+
.optional()
|
|
11982
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
11850
11983
|
})
|
|
11851
11984
|
.describe('Set of provider specific tax configs.')
|
|
11852
11985
|
.optional()
|
|
@@ -12169,6 +12302,11 @@ export const ChangeSubscriptionBody = zod
|
|
|
12169
12302
|
.describe('The tax config for Stripe.')
|
|
12170
12303
|
.optional()
|
|
12171
12304
|
.describe('Stripe tax config.'),
|
|
12305
|
+
taxCodeId: zod.coerce
|
|
12306
|
+
.string()
|
|
12307
|
+
.regex(changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
12308
|
+
.optional()
|
|
12309
|
+
.describe('Tax code reference.\n\nWhen both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:\nthe referenced tax code entity is used and `stripe.code` is ignored.'),
|
|
12172
12310
|
})
|
|
12173
12311
|
.describe('Set of provider specific tax configs.')
|
|
12174
12312
|
.optional()
|