@openmeter/sdk 1.0.0-beta.227 → 1.0.0-beta.228
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/Makefile +0 -1
- package/dist/cjs/src/client/customers.d.cts +3 -0
- package/dist/cjs/src/client/features.d.cts +3 -0
- package/dist/cjs/src/client/meters.cjs +10 -10
- package/dist/cjs/src/client/meters.d.cts +83 -14
- package/dist/cjs/src/client/plans.d.cts +5 -0
- package/dist/cjs/src/client/schemas.d.cts +283 -3
- package/dist/cjs/src/client/subscriptions.d.cts +5 -0
- package/dist/cjs/src/zod/index.cjs +714 -159
- package/dist/cjs/src/zod/index.cjs.map +1 -1
- package/dist/cjs/src/zod/index.d.cts +769 -648
- package/dist/src/client/customers.d.ts +3 -0
- package/dist/src/client/features.d.ts +3 -0
- package/dist/src/client/meters.d.ts +83 -14
- package/dist/src/client/meters.js +11 -11
- package/dist/src/client/meters.js.map +1 -1
- package/dist/src/client/plans.d.ts +5 -0
- package/dist/src/client/schemas.d.ts +283 -3
- package/dist/src/client/subscriptions.d.ts +5 -0
- package/dist/src/zod/index.d.ts +769 -648
- package/dist/src/zod/index.js +686 -132
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/orval.config.ts +1 -1
- package/package.json +13 -14
- package/patches/openapi-typescript.patch +901 -828
- package/pnpm-workspace.yaml +3 -0
|
@@ -33,36 +33,37 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
36
|
+
exports.createAddonBodyRateCardsItemTwoPriceOneOneAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = exports.createAddonBodyRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.createAddonBodyRateCardsItemTwoFeatureKeyRegExp = exports.createAddonBodyRateCardsItemTwoFeatureKeyMax = exports.createAddonBodyRateCardsItemTwoDescriptionMax = exports.createAddonBodyRateCardsItemTwoNameMax = exports.createAddonBodyRateCardsItemTwoKeyRegExp = exports.createAddonBodyRateCardsItemTwoKeyMax = exports.createAddonBodyRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = exports.createAddonBodyRateCardsItemOnePriceOnePaymentTermDefault = exports.createAddonBodyRateCardsItemOnePriceOneAmountOneRegExp = exports.createAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = exports.createAddonBodyRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetMin = exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.createAddonBodyRateCardsItemOneFeatureKeyRegExp = exports.createAddonBodyRateCardsItemOneFeatureKeyMax = exports.createAddonBodyRateCardsItemOneDescriptionMax = exports.createAddonBodyRateCardsItemOneNameMax = exports.createAddonBodyRateCardsItemOneKeyRegExp = exports.createAddonBodyRateCardsItemOneKeyMax = exports.createAddonBodyCurrencyDefault = exports.createAddonBodyCurrencyOneRegExp = exports.createAddonBodyCurrencyOneMax = exports.createAddonBodyCurrencyOneMin = exports.createAddonBodyKeyRegExp = exports.createAddonBodyKeyMax = exports.createAddonBodyDescriptionMax = exports.createAddonBodyNameMax = exports.ListAddonsQueryParams = exports.listAddonsQueryOrderDefault = exports.listAddonsQueryPageSizeMax = exports.listAddonsQueryPageSizeDefault = exports.listAddonsQueryPageDefault = exports.listAddonsQueryCurrencyItemRegExp = exports.listAddonsQueryCurrencyItemMax = exports.listAddonsQueryCurrencyItemMin = exports.listAddonsQueryKeyItemRegExp = exports.listAddonsQueryKeyItemMax = exports.listAddonsQueryIdItemRegExp = exports.listAddonsQueryIncludeDeletedDefault = void 0;
|
|
37
|
+
exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.updateAddonBodyRateCardsItemTwoFeatureKeyRegExp = exports.updateAddonBodyRateCardsItemTwoFeatureKeyMax = exports.updateAddonBodyRateCardsItemTwoDescriptionMax = exports.updateAddonBodyRateCardsItemTwoNameMax = exports.updateAddonBodyRateCardsItemTwoKeyRegExp = exports.updateAddonBodyRateCardsItemTwoKeyMax = exports.updateAddonBodyRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = exports.updateAddonBodyRateCardsItemOnePriceOnePaymentTermDefault = exports.updateAddonBodyRateCardsItemOnePriceOneAmountOneRegExp = exports.updateAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = exports.updateAddonBodyRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetMin = exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.updateAddonBodyRateCardsItemOneFeatureKeyRegExp = exports.updateAddonBodyRateCardsItemOneFeatureKeyMax = exports.updateAddonBodyRateCardsItemOneDescriptionMax = exports.updateAddonBodyRateCardsItemOneNameMax = exports.updateAddonBodyRateCardsItemOneKeyRegExp = exports.updateAddonBodyRateCardsItemOneKeyMax = exports.updateAddonBodyDescriptionMax = exports.updateAddonBodyNameMax = exports.UpdateAddonParams = exports.updateAddonPathAddonIdRegExp = exports.CreateAddonBody = exports.createAddonBodyRateCardsItemTwoDiscountsOneUsageOneQuantityOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFiveMaximumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFiveMinimumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFiveAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFourMaximumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFourMinimumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneFourMultiplierDefault = exports.createAddonBodyRateCardsItemTwoPriceOneFourMultiplierOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneThreeMaximumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneThreeMinimumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneTwoMaximumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneTwoMinimumAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneTwoAmountOneRegExp = exports.createAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault = void 0;
|
|
38
|
+
exports.AppCustomInvoicingUpdatePaymentStatusBody = exports.AppCustomInvoicingUpdatePaymentStatusParams = exports.appCustomInvoicingUpdatePaymentStatusPathInvoiceIdRegExp = exports.AppCustomInvoicingIssuingSynchronizedBody = exports.appCustomInvoicingIssuingSynchronizedBodyInvoicingOneInvoiceNumberOneMax = exports.AppCustomInvoicingIssuingSynchronizedParams = exports.appCustomInvoicingIssuingSynchronizedPathInvoiceIdRegExp = exports.AppCustomInvoicingDraftSynchronizedBody = exports.appCustomInvoicingDraftSynchronizedBodyInvoicingOneLineDiscountExternalIdsItemLineDiscountIdRegExp = exports.appCustomInvoicingDraftSynchronizedBodyInvoicingOneLineExternalIdsItemLineIdRegExp = exports.appCustomInvoicingDraftSynchronizedBodyInvoicingOneInvoiceNumberOneMax = exports.AppCustomInvoicingDraftSynchronizedParams = exports.appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp = exports.ListAppsQueryParams = exports.listAppsQueryPageSizeMax = exports.listAppsQueryPageSizeDefault = exports.listAppsQueryPageDefault = exports.PublishAddonParams = exports.publishAddonPathAddonIdRegExp = exports.ArchiveAddonParams = exports.archiveAddonPathAddonIdRegExp = exports.DeleteAddonParams = exports.deleteAddonPathAddonIdRegExp = exports.GetAddonQueryParams = exports.getAddonQueryIncludeLatestDefault = exports.GetAddonParams = exports.getAddonPathAddonIdRegExp = exports.getAddonPathAddonIdMax = exports.UpdateAddonBody = exports.updateAddonBodyRateCardsItemTwoDiscountsOneUsageOneQuantityOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFiveMaximumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFiveMinimumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFiveAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFourMaximumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFourMinimumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneFourMultiplierDefault = exports.updateAddonBodyRateCardsItemTwoPriceOneFourMultiplierOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneThreeMaximumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneThreeMinimumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneTwoMaximumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneTwoMinimumAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneTwoAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault = exports.updateAddonBodyRateCardsItemTwoPriceOneOneAmountOneRegExp = exports.updateAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = exports.updateAddonBodyRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = void 0;
|
|
39
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceOneTwoMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneTwoMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneTwoAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneOnePaymentTermDefault = exports.createPendingInvoiceLineBodyLinesItemPriceOneOneAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemTaxConfigOneTaxCodeIdRegExp = exports.createPendingInvoiceLineBodyLinesItemTaxConfigOneStripeOneCodeRegExp = exports.createPendingInvoiceLineBodyLinesItemDescriptionMax = exports.createPendingInvoiceLineBodyLinesItemNameMax = exports.createPendingInvoiceLineBodyCurrencyOneRegExp = exports.createPendingInvoiceLineBodyCurrencyOneMax = exports.createPendingInvoiceLineBodyCurrencyOneMin = exports.CreatePendingInvoiceLineParams = exports.createPendingInvoiceLinePathCustomerIdRegExp = exports.DeleteBillingProfileCustomerOverrideParams = exports.deleteBillingProfileCustomerOverridePathCustomerIdRegExp = exports.GetBillingProfileCustomerOverrideQueryParams = exports.GetBillingProfileCustomerOverrideParams = exports.getBillingProfileCustomerOverridePathCustomerIdRegExp = exports.UpsertBillingProfileCustomerOverrideBody = exports.upsertBillingProfileCustomerOverrideBodyBillingProfileIdRegExp = exports.UpsertBillingProfileCustomerOverrideParams = exports.upsertBillingProfileCustomerOverridePathCustomerIdRegExp = exports.ListBillingProfileCustomerOverridesQueryParams = exports.listBillingProfileCustomerOverridesQueryPageSizeMax = exports.listBillingProfileCustomerOverridesQueryPageSizeDefault = exports.listBillingProfileCustomerOverridesQueryPageDefault = exports.listBillingProfileCustomerOverridesQueryOrderDefault = exports.listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp = exports.listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault = exports.listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp = exports.AppStripeWebhookBody = exports.AppStripeWebhookParams = exports.appStripeWebhookPathIdRegExp = exports.UpdateStripeAPIKeyBody = exports.UpdateStripeAPIKeyParams = exports.updateStripeAPIKeyPathIdRegExp = exports.UninstallAppParams = exports.uninstallAppPathIdRegExp = exports.UpdateAppBody = exports.updateAppBodyThreeDescriptionMax = exports.updateAppBodyThreeNameMax = exports.updateAppBodyTwoDescriptionMax = exports.updateAppBodyTwoNameMax = exports.updateAppBodyOneDescriptionMax = exports.updateAppBodyOneNameMax = exports.UpdateAppParams = exports.updateAppPathIdRegExp = exports.GetAppParams = exports.getAppPathIdRegExp = void 0;
|
|
40
|
+
exports.simulateInvoiceBodyLinesItemTaxConfigOneStripeOneCodeRegExp = exports.simulateInvoiceBodyLinesItemDescriptionMax = exports.simulateInvoiceBodyLinesItemNameMax = exports.simulateInvoiceBodyCurrencyOneRegExp = exports.simulateInvoiceBodyCurrencyOneMax = exports.simulateInvoiceBodyCurrencyOneMin = exports.simulateInvoiceBodyNumberOneMax = exports.SimulateInvoiceParams = exports.simulateInvoicePathCustomerIdRegExp = exports.CreatePendingInvoiceLineBody = exports.createPendingInvoiceLineBodyLinesItemRateCardOneDiscountsOneUsageOneCorrelationIdRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOneDiscountsOneUsageOneQuantityOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOneDiscountsOnePercentageOneCorrelationIdRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFiveMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFiveMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFiveAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFourMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFourMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFourMultiplierDefault = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFourMultiplierOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneThreeMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneThreeMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneThreeTiersItemUpToAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneTwoMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneTwoMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOneFeatureKeyRegExp = exports.createPendingInvoiceLineBodyLinesItemRateCardOneFeatureKeyMax = exports.createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp = exports.createPendingInvoiceLineBodyLinesItemFeatureKeyMax = exports.createPendingInvoiceLineBodyLinesItemPriceOneFiveMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneFiveMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneFiveAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneFourMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneFourMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneFourMultiplierDefault = exports.createPendingInvoiceLineBodyLinesItemPriceOneFourMultiplierOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneThreeMaximumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneThreeMinimumAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.createPendingInvoiceLineBodyLinesItemPriceOneThreeTiersItemUpToAmountOneRegExp = void 0;
|
|
41
|
+
exports.SimulateInvoiceBody = exports.simulateInvoiceBodyLinesItemIdRegExp = exports.simulateInvoiceBodyLinesItemPreLinePeriodQuantityOneRegExp = exports.simulateInvoiceBodyLinesItemQuantityOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneDiscountsOneUsageOneCorrelationIdRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneDiscountsOneUsageOneQuantityOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneDiscountsOnePercentageOneCorrelationIdRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFiveMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFiveMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFiveAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFourMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFourMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierDefault = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneThreeMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneThreeMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneThreeTiersItemUpToAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneTwoMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneTwoMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneFeatureKeyRegExp = exports.simulateInvoiceBodyLinesItemRateCardOneFeatureKeyMax = exports.simulateInvoiceBodyLinesItemFeatureKeyRegExp = exports.simulateInvoiceBodyLinesItemFeatureKeyMax = exports.simulateInvoiceBodyLinesItemPriceOneFiveMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneFiveMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneFiveAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneFourMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneFourMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneFourMultiplierDefault = exports.simulateInvoiceBodyLinesItemPriceOneFourMultiplierOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneThreeMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneThreeMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneThreeTiersItemUpToAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneTwoMaximumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneTwoMinimumAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneTwoAmountOneRegExp = exports.simulateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault = exports.simulateInvoiceBodyLinesItemPriceOneOneAmountOneRegExp = exports.simulateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp = void 0;
|
|
42
|
+
exports.updateInvoiceBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneFiveAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneFourMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneFourMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneFourMultiplierDefault = exports.updateInvoiceBodyLinesItemPriceOneFourMultiplierOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneThreeMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneThreeMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneThreeTiersItemUpToAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneTwoMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneTwoMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneTwoAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault = exports.updateInvoiceBodyLinesItemPriceOneOneAmountOneRegExp = exports.updateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp = exports.updateInvoiceBodyLinesItemTaxConfigOneStripeOneCodeRegExp = exports.updateInvoiceBodyLinesItemDescriptionMax = exports.updateInvoiceBodyLinesItemNameMax = exports.updateInvoiceBodyCustomerOneAddressesMax = exports.updateInvoiceBodyCustomerOneAddressesItemCountryOneRegExp = exports.updateInvoiceBodyCustomerOneAddressesItemCountryOneMax = exports.updateInvoiceBodyCustomerOneAddressesItemCountryOneMin = exports.updateInvoiceBodyCustomerOneTaxIdOneCodeOneMax = exports.updateInvoiceBodyCustomerOneKeyMax = exports.updateInvoiceBodySupplierOneAddressesMax = exports.updateInvoiceBodySupplierOneAddressesItemCountryOneRegExp = exports.updateInvoiceBodySupplierOneAddressesItemCountryOneMax = exports.updateInvoiceBodySupplierOneAddressesItemCountryOneMin = exports.updateInvoiceBodySupplierOneTaxIdOneCodeOneMax = exports.updateInvoiceBodySupplierOneKeyMax = exports.updateInvoiceBodyDescriptionMax = exports.UpdateInvoiceParams = exports.updateInvoicePathInvoiceIdRegExp = exports.DeleteInvoiceParams = exports.deleteInvoicePathInvoiceIdRegExp = exports.GetInvoiceQueryParams = exports.getInvoiceQueryIncludeDeletedLinesDefault = exports.GetInvoiceParams = exports.getInvoicePathInvoiceIdRegExp = exports.InvoicePendingLinesActionBody = exports.invoicePendingLinesActionBodyCustomerIdRegExp = exports.invoicePendingLinesActionBodyFiltersOneLineIdsItemRegExp = exports.ListInvoicesQueryParams = exports.listInvoicesQueryOrderDefault = exports.listInvoicesQueryPageSizeMax = exports.listInvoicesQueryPageSizeDefault = exports.listInvoicesQueryPageDefault = exports.listInvoicesQueryCustomersItemRegExp = void 0;
|
|
43
|
+
exports.voidInvoiceActionBodyOverridesItemLineIdRegExp = exports.VoidInvoiceActionParams = exports.voidInvoiceActionPathInvoiceIdRegExp = exports.RecalculateInvoiceTaxActionParams = exports.recalculateInvoiceTaxActionPathInvoiceIdRegExp = exports.SnapshotQuantitiesInvoiceActionParams = exports.snapshotQuantitiesInvoiceActionPathInvoiceIdRegExp = exports.RetryInvoiceActionParams = exports.retryInvoiceActionPathInvoiceIdRegExp = exports.ApproveInvoiceActionParams = exports.approveInvoiceActionPathInvoiceIdRegExp = exports.AdvanceInvoiceActionParams = exports.advanceInvoiceActionPathInvoiceIdRegExp = exports.UpdateInvoiceBody = exports.updateInvoiceBodyWorkflowOneWorkflowOnePaymentOneCollectionMethodDefault = exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDueAfterDefault = exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDraftPeriodDefault = exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneAutoAdvanceDefault = exports.updateInvoiceBodyLinesItemIdRegExp = exports.updateInvoiceBodyLinesItemRateCardOneDiscountsOneUsageOneCorrelationIdRegExp = exports.updateInvoiceBodyLinesItemRateCardOneDiscountsOneUsageOneQuantityOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOneDiscountsOnePercentageOneCorrelationIdRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFiveMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFiveMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFiveAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFourMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFourMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierDefault = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneThreeMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneThreeMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneThreeTiersItemUpToAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneTwoMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneTwoMinimumAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = exports.updateInvoiceBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = exports.updateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = exports.updateInvoiceBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = exports.updateInvoiceBodyLinesItemRateCardOneFeatureKeyRegExp = exports.updateInvoiceBodyLinesItemRateCardOneFeatureKeyMax = exports.updateInvoiceBodyLinesItemFeatureKeyRegExp = exports.updateInvoiceBodyLinesItemFeatureKeyMax = exports.updateInvoiceBodyLinesItemPriceOneFiveMaximumAmountOneRegExp = exports.updateInvoiceBodyLinesItemPriceOneFiveMinimumAmountOneRegExp = void 0;
|
|
44
|
+
exports.updateBillingProfileBodyWorkflowOneInvoicingOneAutoAdvanceDefault = exports.updateBillingProfileBodyWorkflowOneCollectionOneIntervalDefault = exports.updateBillingProfileBodyWorkflowOneCollectionOneAlignmentDefault = exports.updateBillingProfileBodyWorkflowOneCollectionOneAlignmentOneTwoRecurringPeriodOneIntervalOneOneRegExp = exports.updateBillingProfileBodySupplierOneAddressesMax = exports.updateBillingProfileBodySupplierOneAddressesItemCountryOneRegExp = exports.updateBillingProfileBodySupplierOneAddressesItemCountryOneMax = exports.updateBillingProfileBodySupplierOneAddressesItemCountryOneMin = exports.updateBillingProfileBodySupplierOneTaxIdOneCodeOneMax = exports.updateBillingProfileBodySupplierOneKeyMax = exports.updateBillingProfileBodyDescriptionMax = exports.updateBillingProfileBodyNameMax = exports.UpdateBillingProfileParams = exports.updateBillingProfilePathIdRegExp = exports.GetBillingProfileQueryParams = exports.GetBillingProfileParams = exports.getBillingProfilePathIdRegExp = exports.DeleteBillingProfileParams = exports.deleteBillingProfilePathIdRegExp = exports.CreateBillingProfileBody = exports.createBillingProfileBodyAppsOnePaymentRegExp = exports.createBillingProfileBodyAppsOneInvoicingRegExp = exports.createBillingProfileBodyAppsOneTaxRegExp = exports.createBillingProfileBodyWorkflowOneTaxOneEnforcedDefault = exports.createBillingProfileBodyWorkflowOneTaxOneEnabledDefault = exports.createBillingProfileBodyWorkflowOnePaymentOneCollectionMethodDefault = exports.createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = exports.createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = exports.createBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = exports.createBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault = exports.createBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault = exports.createBillingProfileBodyWorkflowOneInvoicingOneAutoAdvanceDefault = exports.createBillingProfileBodyWorkflowOneCollectionOneIntervalDefault = exports.createBillingProfileBodyWorkflowOneCollectionOneAlignmentDefault = exports.createBillingProfileBodyWorkflowOneCollectionOneAlignmentOneTwoRecurringPeriodOneIntervalOneOneRegExp = exports.createBillingProfileBodySupplierOneAddressesMax = exports.createBillingProfileBodySupplierOneAddressesItemCountryOneRegExp = exports.createBillingProfileBodySupplierOneAddressesItemCountryOneMax = exports.createBillingProfileBodySupplierOneAddressesItemCountryOneMin = exports.createBillingProfileBodySupplierOneTaxIdOneCodeOneMax = exports.createBillingProfileBodySupplierOneKeyMax = exports.createBillingProfileBodyDescriptionMax = exports.createBillingProfileBodyNameMax = exports.ListBillingProfilesQueryParams = exports.listBillingProfilesQueryOrderDefault = exports.listBillingProfilesQueryPageSizeMax = exports.listBillingProfilesQueryPageSizeDefault = exports.listBillingProfilesQueryPageDefault = exports.listBillingProfilesQueryIncludeArchivedDefault = exports.VoidInvoiceActionBody = void 0;
|
|
45
|
+
exports.GetCustomerAccessParams = exports.getCustomerAccessPathCustomerIdOrKeyTwoMax = exports.getCustomerAccessPathCustomerIdOrKeyOneRegExp = exports.DeleteCustomerParams = exports.deleteCustomerPathCustomerIdOrKeyTwoMax = exports.deleteCustomerPathCustomerIdOrKeyOneRegExp = exports.UpdateCustomerBody = exports.updateCustomerBodyBillingAddressOneCountryOneRegExp = exports.updateCustomerBodyBillingAddressOneCountryOneMax = exports.updateCustomerBodyBillingAddressOneCountryOneMin = exports.updateCustomerBodyCurrencyOneRegExp = exports.updateCustomerBodyCurrencyOneMax = exports.updateCustomerBodyCurrencyOneMin = exports.updateCustomerBodyUsageAttributionOneSubjectKeysMin = exports.updateCustomerBodyKeyMax = exports.updateCustomerBodyDescriptionMax = exports.updateCustomerBodyNameMax = exports.UpdateCustomerParams = exports.updateCustomerPathCustomerIdOrKeyTwoMax = exports.updateCustomerPathCustomerIdOrKeyOneRegExp = exports.GetCustomerQueryParams = exports.GetCustomerParams = exports.getCustomerPathCustomerIdOrKeyTwoMax = exports.getCustomerPathCustomerIdOrKeyOneRegExp = exports.ListCustomersQueryParams = exports.listCustomersQueryIncludeDeletedDefault = exports.listCustomersQueryOrderDefault = exports.listCustomersQueryPageSizeMax = exports.listCustomersQueryPageSizeDefault = exports.listCustomersQueryPageDefault = exports.CreateCustomerBody = exports.createCustomerBodyBillingAddressOneCountryOneRegExp = exports.createCustomerBodyBillingAddressOneCountryOneMax = exports.createCustomerBodyBillingAddressOneCountryOneMin = exports.createCustomerBodyCurrencyOneRegExp = exports.createCustomerBodyCurrencyOneMax = exports.createCustomerBodyCurrencyOneMin = exports.createCustomerBodyUsageAttributionOneSubjectKeysMin = exports.createCustomerBodyKeyMax = exports.createCustomerBodyDescriptionMax = exports.createCustomerBodyNameMax = exports.UpdateBillingProfileBody = exports.updateBillingProfileBodyWorkflowOneTaxOneEnforcedDefault = exports.updateBillingProfileBodyWorkflowOneTaxOneEnabledDefault = exports.updateBillingProfileBodyWorkflowOnePaymentOneCollectionMethodDefault = exports.updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = exports.updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = exports.updateBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = exports.updateBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault = exports.updateBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault = void 0;
|
|
46
|
+
exports.listCustomerSubscriptionsQueryOrderDefault = exports.ListCustomerSubscriptionsParams = exports.listCustomerSubscriptionsPathCustomerIdOrKeyTwoMax = exports.listCustomerSubscriptionsPathCustomerIdOrKeyOneRegExp = exports.CreateCustomerStripePortalSessionBody = exports.CreateCustomerStripePortalSessionParams = exports.createCustomerStripePortalSessionPathCustomerIdOrKeyTwoMax = exports.createCustomerStripePortalSessionPathCustomerIdOrKeyOneRegExp = exports.UpsertCustomerStripeAppDataBody = exports.UpsertCustomerStripeAppDataParams = exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyTwoMax = exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyOneRegExp = exports.GetCustomerStripeAppDataParams = exports.getCustomerStripeAppDataPathCustomerIdOrKeyTwoMax = exports.getCustomerStripeAppDataPathCustomerIdOrKeyOneRegExp = exports.GetCustomerEntitlementValueQueryParams = exports.GetCustomerEntitlementValueParams = exports.getCustomerEntitlementValuePathFeatureKeyRegExp = exports.getCustomerEntitlementValuePathFeatureKeyMax = exports.getCustomerEntitlementValuePathCustomerIdOrKeyTwoMax = exports.getCustomerEntitlementValuePathCustomerIdOrKeyOneRegExp = exports.DeleteCustomerAppDataParams = exports.deleteCustomerAppDataPathAppIdRegExp = exports.deleteCustomerAppDataPathCustomerIdOrKeyTwoMax = exports.deleteCustomerAppDataPathCustomerIdOrKeyOneRegExp = exports.UpsertCustomerAppDataBody = exports.UpsertCustomerAppDataBodyItem = exports.upsertCustomerAppDataBodyThreeIdRegExp = exports.upsertCustomerAppDataBodyThreeAppOneListingOneCapabilitiesItemKeyRegExp = exports.upsertCustomerAppDataBodyThreeAppOneListingOneCapabilitiesItemKeyMax = exports.upsertCustomerAppDataBodyThreeAppOneDescriptionMax = exports.upsertCustomerAppDataBodyThreeAppOneNameMax = exports.upsertCustomerAppDataBodyThreeAppOneIdRegExp = exports.upsertCustomerAppDataBodyTwoIdRegExp = exports.upsertCustomerAppDataBodyTwoAppOneListingOneCapabilitiesItemKeyRegExp = exports.upsertCustomerAppDataBodyTwoAppOneListingOneCapabilitiesItemKeyMax = exports.upsertCustomerAppDataBodyTwoAppOneDescriptionMax = exports.upsertCustomerAppDataBodyTwoAppOneNameMax = exports.upsertCustomerAppDataBodyTwoAppOneIdRegExp = exports.upsertCustomerAppDataBodyOneIdRegExp = exports.UpsertCustomerAppDataParams = exports.upsertCustomerAppDataPathCustomerIdOrKeyTwoMax = exports.upsertCustomerAppDataPathCustomerIdOrKeyOneRegExp = exports.ListCustomerAppDataQueryParams = exports.listCustomerAppDataQueryPageSizeMax = exports.listCustomerAppDataQueryPageSizeDefault = exports.listCustomerAppDataQueryPageDefault = exports.ListCustomerAppDataParams = exports.listCustomerAppDataPathCustomerIdOrKeyTwoMax = exports.listCustomerAppDataPathCustomerIdOrKeyOneRegExp = void 0;
|
|
47
|
+
exports.listGrantsQueryPageSizeDefault = exports.listGrantsQueryPageDefault = exports.listGrantsQueryIncludeDeletedDefault = exports.DeleteFeatureParams = exports.GetFeatureParams = exports.CreateFeatureBody = exports.createFeatureBodyUnitCostOneTwoPricingOneCacheWritePerTokenOneRegExp = exports.createFeatureBodyUnitCostOneTwoPricingOneReasoningPerTokenOneRegExp = exports.createFeatureBodyUnitCostOneTwoPricingOneCacheReadPerTokenOneRegExp = exports.createFeatureBodyUnitCostOneTwoPricingOneOutputPerTokenOneRegExp = exports.createFeatureBodyUnitCostOneTwoPricingOneInputPerTokenOneRegExp = exports.createFeatureBodyUnitCostOneOneAmountOneRegExp = exports.createFeatureBodyMeterSlugRegExp = exports.createFeatureBodyMeterSlugMax = exports.createFeatureBodyKeyRegExp = exports.createFeatureBodyKeyMax = exports.ListFeaturesQueryParams = exports.listFeaturesQueryOrderDefault = exports.listFeaturesQueryLimitMax = exports.listFeaturesQueryLimitDefault = exports.listFeaturesQueryOffsetMin = exports.listFeaturesQueryOffsetDefault = exports.listFeaturesQueryPageSizeMax = exports.listFeaturesQueryPageSizeDefault = exports.listFeaturesQueryPageDefault = exports.listFeaturesQueryIncludeArchivedDefault = exports.IngestEventsBody = exports.ingestEventsBodyTwoItemSpecversionDefault = exports.ingestEventsBodyOneSpecversionDefault = exports.ListEventsQueryParams = exports.listEventsQueryLimitMax = exports.listEventsQueryLimitDefault = exports.listEventsQueryCustomerIdItemRegExp = exports.listEventsQueryClientIdMax = exports.GetEntitlementByIdParams = exports.getEntitlementByIdPathEntitlementIdRegExp = exports.ListEntitlementsQueryParams = exports.listEntitlementsQueryOrderDefault = exports.listEntitlementsQueryLimitMax = exports.listEntitlementsQueryLimitDefault = exports.listEntitlementsQueryOffsetMin = exports.listEntitlementsQueryOffsetDefault = exports.listEntitlementsQueryPageSizeMax = exports.listEntitlementsQueryPageSizeDefault = exports.listEntitlementsQueryPageDefault = exports.listEntitlementsQueryExcludeInactiveDefault = exports.ListCustomerSubscriptionsQueryParams = exports.listCustomerSubscriptionsQueryPageSizeMax = exports.listCustomerSubscriptionsQueryPageSizeDefault = exports.listCustomerSubscriptionsQueryPageDefault = void 0;
|
|
48
|
+
exports.ListMeterGroupByValuesParams = exports.listMeterGroupByValuesPathMeterIdOrSlugRegExp = exports.listMeterGroupByValuesPathMeterIdOrSlugMax = exports.DeleteMeterParams = exports.deleteMeterPathMeterIdOrSlugRegExp = exports.deleteMeterPathMeterIdOrSlugMax = exports.UpdateMeterBody = exports.updateMeterBodyNameMax = exports.updateMeterBodyDescriptionMax = exports.UpdateMeterParams = exports.updateMeterPathMeterIdOrSlugRegExp = exports.updateMeterPathMeterIdOrSlugMax = exports.GetMeterParams = exports.getMeterPathMeterIdOrSlugRegExp = exports.getMeterPathMeterIdOrSlugMax = exports.CreateMeterBody = exports.createMeterBodySlugRegExp = exports.createMeterBodySlugMax = exports.createMeterBodyNameMax = exports.createMeterBodyDescriptionMax = exports.ListMetersQueryParams = exports.listMetersQueryIncludeDeletedDefault = exports.listMetersQueryOrderDefault = exports.listMetersQueryPageSizeMax = exports.listMetersQueryPageSizeDefault = exports.listMetersQueryPageDefault = exports.MarketplaceOAuth2InstallAuthorizeQueryParams = exports.MarketplaceOAuth2InstallAuthorizeParams = exports.MarketplaceOAuth2InstallGetURLParams = exports.MarketplaceAppAPIKeyInstallBody = exports.marketplaceAppAPIKeyInstallBodyCreateBillingProfileDefault = exports.MarketplaceAppAPIKeyInstallParams = exports.MarketplaceAppInstallBody = exports.marketplaceAppInstallBodyCreateBillingProfileDefault = exports.MarketplaceAppInstallParams = exports.GetMarketplaceListingParams = exports.ListMarketplaceListingsQueryParams = exports.listMarketplaceListingsQueryPageSizeMax = exports.listMarketplaceListingsQueryPageSizeDefault = exports.listMarketplaceListingsQueryPageDefault = exports.GetProgressParams = exports.VoidGrantQueryParams = exports.VoidGrantParams = exports.ListGrantsQueryParams = exports.listGrantsQueryOrderDefault = exports.listGrantsQueryLimitMax = exports.listGrantsQueryLimitDefault = exports.listGrantsQueryOffsetMin = exports.listGrantsQueryOffsetDefault = exports.listGrantsQueryPageSizeMax = void 0;
|
|
49
|
+
exports.GetNotificationEventParams = exports.ListNotificationEventsQueryParams = exports.listNotificationEventsQueryOrderDefault = exports.listNotificationEventsQueryPageSizeMax = exports.listNotificationEventsQueryPageSizeDefault = exports.listNotificationEventsQueryPageDefault = exports.listNotificationEventsQueryChannelItemRegExp = exports.listNotificationEventsQueryRuleItemRegExp = exports.DeleteNotificationChannelParams = exports.deleteNotificationChannelPathChannelIdRegExp = exports.GetNotificationChannelParams = exports.getNotificationChannelPathChannelIdRegExp = exports.UpdateNotificationChannelBody = exports.updateNotificationChannelBodyOneSigningSecretRegExp = exports.updateNotificationChannelBodyOneDisabledDefault = exports.updateNotificationChannelBodyOneNameMax = exports.UpdateNotificationChannelParams = exports.updateNotificationChannelPathChannelIdRegExp = exports.CreateNotificationChannelBody = exports.createNotificationChannelBodyOneSigningSecretRegExp = exports.createNotificationChannelBodyOneDisabledDefault = exports.createNotificationChannelBodyOneNameMax = exports.ListNotificationChannelsQueryParams = exports.listNotificationChannelsQueryOrderDefault = exports.listNotificationChannelsQueryPageSizeMax = exports.listNotificationChannelsQueryPageSizeDefault = exports.listNotificationChannelsQueryPageDefault = exports.listNotificationChannelsQueryIncludeDisabledDefault = exports.listNotificationChannelsQueryIncludeDeletedDefault = exports.ListMeterSubjectsQueryParams = exports.ListMeterSubjectsParams = exports.listMeterSubjectsPathMeterIdOrSlugRegExp = exports.listMeterSubjectsPathMeterIdOrSlugMax = exports.QueryMeterPostBody = exports.queryMeterPostBodyGroupByMax = exports.queryMeterPostBodyFilterCustomerIdMax = exports.queryMeterPostBodySubjectMax = exports.queryMeterPostBodyWindowTimeZoneDefault = exports.queryMeterPostBodyClientIdMax = exports.QueryMeterPostParams = exports.queryMeterPostPathMeterIdOrSlugRegExp = exports.queryMeterPostPathMeterIdOrSlugMax = exports.QueryMeterQueryParams = exports.queryMeterQueryFilterCustomerIdMax = exports.queryMeterQueryWindowTimeZoneDefault = exports.queryMeterQueryClientIdMax = exports.QueryMeterParams = exports.queryMeterPathMeterIdOrSlugRegExp = exports.queryMeterPathMeterIdOrSlugMax = exports.ListMeterGroupByValuesQueryParams = void 0;
|
|
50
|
+
exports.updateNotificationRuleBodyFourChannelsItemRegExp = exports.updateNotificationRuleBodyFourDisabledDefault = exports.updateNotificationRuleBodyFourNameMax = exports.updateNotificationRuleBodyThreeChannelsItemRegExp = exports.updateNotificationRuleBodyThreeDisabledDefault = exports.updateNotificationRuleBodyThreeNameMax = exports.updateNotificationRuleBodyTwoFeaturesItemRegExp = exports.updateNotificationRuleBodyTwoFeaturesItemMax = exports.updateNotificationRuleBodyTwoChannelsItemRegExp = exports.updateNotificationRuleBodyTwoDisabledDefault = exports.updateNotificationRuleBodyTwoNameMax = exports.updateNotificationRuleBodyOneFeaturesItemRegExp = exports.updateNotificationRuleBodyOneFeaturesItemMax = exports.updateNotificationRuleBodyOneChannelsItemRegExp = exports.updateNotificationRuleBodyOneThresholdsMax = exports.updateNotificationRuleBodyOneDisabledDefault = exports.updateNotificationRuleBodyOneNameMax = exports.UpdateNotificationRuleParams = exports.updateNotificationRulePathRuleIdRegExp = exports.CreateNotificationRuleBody = exports.createNotificationRuleBodyFourChannelsItemRegExp = exports.createNotificationRuleBodyFourDisabledDefault = exports.createNotificationRuleBodyFourNameMax = exports.createNotificationRuleBodyThreeChannelsItemRegExp = exports.createNotificationRuleBodyThreeDisabledDefault = exports.createNotificationRuleBodyThreeNameMax = exports.createNotificationRuleBodyTwoFeaturesItemRegExp = exports.createNotificationRuleBodyTwoFeaturesItemMax = exports.createNotificationRuleBodyTwoChannelsItemRegExp = exports.createNotificationRuleBodyTwoDisabledDefault = exports.createNotificationRuleBodyTwoNameMax = exports.createNotificationRuleBodyOneFeaturesItemRegExp = exports.createNotificationRuleBodyOneFeaturesItemMax = exports.createNotificationRuleBodyOneChannelsItemRegExp = exports.createNotificationRuleBodyOneThresholdsMax = exports.createNotificationRuleBodyOneDisabledDefault = exports.createNotificationRuleBodyOneNameMax = exports.ListNotificationRulesQueryParams = exports.listNotificationRulesQueryOrderDefault = exports.listNotificationRulesQueryPageSizeMax = exports.listNotificationRulesQueryPageSizeDefault = exports.listNotificationRulesQueryPageDefault = exports.listNotificationRulesQueryFeatureItemRegExp = exports.listNotificationRulesQueryFeatureItemMax = exports.listNotificationRulesQueryIncludeDisabledDefault = exports.listNotificationRulesQueryIncludeDeletedDefault = exports.ResendNotificationEventBody = exports.resendNotificationEventBodyChannelsItemRegExp = exports.ResendNotificationEventParams = exports.resendNotificationEventPathEventIdRegExp = void 0;
|
|
51
|
+
exports.createPlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault = exports.createPlanBodyPhasesItemRateCardsItemOnePriceOneAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = exports.createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetMin = exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.createPlanBodyPhasesItemRateCardsItemOneFeatureKeyRegExp = exports.createPlanBodyPhasesItemRateCardsItemOneFeatureKeyMax = exports.createPlanBodyPhasesItemRateCardsItemOneDescriptionMax = exports.createPlanBodyPhasesItemRateCardsItemOneNameMax = exports.createPlanBodyPhasesItemRateCardsItemOneKeyRegExp = exports.createPlanBodyPhasesItemRateCardsItemOneKeyMax = exports.createPlanBodyPhasesItemDescriptionMax = exports.createPlanBodyPhasesItemNameMax = exports.createPlanBodyPhasesItemKeyRegExp = exports.createPlanBodyPhasesItemKeyMax = exports.createPlanBodySettlementModeDefault = exports.createPlanBodyProRatingConfigDefault = exports.createPlanBodyProRatingConfigOneModeDefault = exports.createPlanBodyProRatingConfigOneEnabledDefault = exports.createPlanBodyCurrencyDefault = exports.createPlanBodyCurrencyOneRegExp = exports.createPlanBodyCurrencyOneMax = exports.createPlanBodyCurrencyOneMin = exports.createPlanBodyKeyRegExp = exports.createPlanBodyKeyMax = exports.createPlanBodyDescriptionMax = exports.createPlanBodyNameMax = exports.ListPlansQueryParams = exports.listPlansQueryOrderDefault = exports.listPlansQueryPageSizeMax = exports.listPlansQueryPageSizeDefault = exports.listPlansQueryPageDefault = exports.listPlansQueryCurrencyItemRegExp = exports.listPlansQueryCurrencyItemMax = exports.listPlansQueryCurrencyItemMin = exports.listPlansQueryKeyItemRegExp = exports.listPlansQueryKeyItemMax = exports.listPlansQueryIdItemRegExp = exports.listPlansQueryIncludeDeletedDefault = exports.TestNotificationRuleParams = exports.testNotificationRulePathRuleIdRegExp = exports.DeleteNotificationRuleParams = exports.deleteNotificationRulePathRuleIdRegExp = exports.GetNotificationRuleParams = exports.getNotificationRulePathRuleIdRegExp = exports.UpdateNotificationRuleBody = void 0;
|
|
52
|
+
exports.updatePlanBodyPhasesItemRateCardsItemOneKeyMax = exports.updatePlanBodyPhasesItemDescriptionMax = exports.updatePlanBodyPhasesItemNameMax = exports.updatePlanBodyPhasesItemKeyRegExp = exports.updatePlanBodyPhasesItemKeyMax = exports.updatePlanBodySettlementModeDefault = exports.updatePlanBodyProRatingConfigDefault = exports.updatePlanBodyProRatingConfigOneModeDefault = exports.updatePlanBodyProRatingConfigOneEnabledDefault = exports.updatePlanBodyDescriptionMax = exports.updatePlanBodyNameMax = exports.UpdatePlanParams = exports.updatePlanPathPlanIdRegExp = exports.NextPlanParams = exports.nextPlanPathPlanIdOrKeyRegExp = exports.nextPlanPathPlanIdOrKeyMax = exports.CreatePlanBody = exports.createPlanBodyPhasesItemRateCardsItemTwoDiscountsOneUsageOneQuantityOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFiveMaximumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFiveMinimumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFiveAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFourMaximumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFourMinimumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneThreeMaximumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneThreeMinimumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneTwoMaximumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneTwoMinimumAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.createPlanBodyPhasesItemRateCardsItemTwoFeatureKeyRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoFeatureKeyMax = exports.createPlanBodyPhasesItemRateCardsItemTwoDescriptionMax = exports.createPlanBodyPhasesItemRateCardsItemTwoNameMax = exports.createPlanBodyPhasesItemRateCardsItemTwoKeyRegExp = exports.createPlanBodyPhasesItemRateCardsItemTwoKeyMax = exports.createPlanBodyPhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = void 0;
|
|
53
|
+
exports.getPlanPathPlanIdRegExp = exports.getPlanPathPlanIdMax = exports.UpdatePlanBody = exports.updatePlanBodyPhasesItemRateCardsItemTwoDiscountsOneUsageOneQuantityOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFiveMaximumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFiveMinimumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFiveAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFourMaximumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFourMinimumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneThreeMaximumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneThreeMinimumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneTwoMaximumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneTwoMinimumAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.updatePlanBodyPhasesItemRateCardsItemTwoFeatureKeyRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoFeatureKeyMax = exports.updatePlanBodyPhasesItemRateCardsItemTwoDescriptionMax = exports.updatePlanBodyPhasesItemRateCardsItemTwoNameMax = exports.updatePlanBodyPhasesItemRateCardsItemTwoKeyRegExp = exports.updatePlanBodyPhasesItemRateCardsItemTwoKeyMax = exports.updatePlanBodyPhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault = exports.updatePlanBodyPhasesItemRateCardsItemOnePriceOneAmountOneRegExp = exports.updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = exports.updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetMin = exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.updatePlanBodyPhasesItemRateCardsItemOneFeatureKeyRegExp = exports.updatePlanBodyPhasesItemRateCardsItemOneFeatureKeyMax = exports.updatePlanBodyPhasesItemRateCardsItemOneDescriptionMax = exports.updatePlanBodyPhasesItemRateCardsItemOneNameMax = exports.updatePlanBodyPhasesItemRateCardsItemOneKeyRegExp = void 0;
|
|
54
|
+
exports.createStripeCheckoutSessionBodyAppIdRegExp = exports.InvalidatePortalTokensBody = exports.ListPortalTokensQueryParams = exports.listPortalTokensQueryLimitMax = exports.listPortalTokensQueryLimitDefault = exports.CreatePortalTokenBody = exports.QueryPortalMeterQueryParams = exports.queryPortalMeterQueryFilterCustomerIdMax = exports.queryPortalMeterQueryWindowTimeZoneDefault = exports.queryPortalMeterQueryClientIdMax = exports.QueryPortalMeterParams = exports.queryPortalMeterPathMeterSlugRegExp = exports.queryPortalMeterPathMeterSlugMax = exports.PublishPlanParams = exports.publishPlanPathPlanIdRegExp = exports.ArchivePlanParams = exports.archivePlanPathPlanIdRegExp = exports.DeletePlanAddonParams = exports.deletePlanAddonPathPlanAddonIdRegExp = exports.deletePlanAddonPathPlanIdRegExp = exports.GetPlanAddonParams = exports.getPlanAddonPathPlanAddonIdRegExp = exports.getPlanAddonPathPlanAddonIdMax = exports.getPlanAddonPathPlanIdRegExp = exports.getPlanAddonPathPlanIdMax = exports.UpdatePlanAddonBody = exports.UpdatePlanAddonParams = exports.updatePlanAddonPathPlanAddonIdRegExp = exports.updatePlanAddonPathPlanIdRegExp = exports.CreatePlanAddonBody = exports.createPlanAddonBodyAddonIdRegExp = exports.CreatePlanAddonParams = exports.createPlanAddonPathPlanIdRegExp = exports.ListPlanAddonsQueryParams = exports.listPlanAddonsQueryOrderDefault = exports.listPlanAddonsQueryPageSizeMax = exports.listPlanAddonsQueryPageSizeDefault = exports.listPlanAddonsQueryPageDefault = exports.listPlanAddonsQueryKeyItemRegExp = exports.listPlanAddonsQueryKeyItemMax = exports.listPlanAddonsQueryIdItemRegExp = exports.listPlanAddonsQueryIncludeDeletedDefault = exports.ListPlanAddonsParams = exports.listPlanAddonsPathPlanIdRegExp = exports.listPlanAddonsPathPlanIdMax = exports.DeletePlanParams = exports.deletePlanPathPlanIdRegExp = exports.GetPlanQueryParams = exports.getPlanQueryIncludeLatestDefault = exports.GetPlanParams = void 0;
|
|
55
|
+
exports.ListEntitlementGrantsQueryParams = exports.listEntitlementGrantsQueryOrderByDefault = exports.listEntitlementGrantsQueryIncludeDeletedDefault = exports.ListEntitlementGrantsParams = exports.ListSubjectEntitlementsQueryParams = exports.listSubjectEntitlementsQueryIncludeDeletedDefault = exports.ListSubjectEntitlementsParams = exports.CreateEntitlementBody = exports.createEntitlementBodyThreeUsagePeriodOneIntervalOneOneRegExp = exports.createEntitlementBodyThreeFeatureIdRegExp = exports.createEntitlementBodyThreeFeatureKeyRegExp = exports.createEntitlementBodyThreeFeatureKeyMax = exports.createEntitlementBodyTwoUsagePeriodOneIntervalOneOneRegExp = exports.createEntitlementBodyTwoFeatureIdRegExp = exports.createEntitlementBodyTwoFeatureKeyRegExp = exports.createEntitlementBodyTwoFeatureKeyMax = exports.createEntitlementBodyOnePreserveOverageAtResetDefault = exports.createEntitlementBodyOneIssueAfterResetPriorityMax = exports.createEntitlementBodyOneIssueAfterResetPriorityDefault = exports.createEntitlementBodyOneIssueAfterResetMin = exports.createEntitlementBodyOneUsagePeriodOneIntervalOneOneRegExp = exports.createEntitlementBodyOneIsUnlimitedDefault = exports.createEntitlementBodyOneIsSoftLimitDefault = exports.createEntitlementBodyOneFeatureIdRegExp = exports.createEntitlementBodyOneFeatureKeyRegExp = exports.createEntitlementBodyOneFeatureKeyMax = exports.CreateEntitlementParams = exports.DeleteSubjectParams = exports.GetSubjectParams = exports.UpsertSubjectBody = exports.UpsertSubjectBodyItem = exports.CreateStripeCheckoutSessionBody = exports.createStripeCheckoutSessionBodyOptionsOneCustomTextOneTermsOfServiceAcceptanceMessageMax = exports.createStripeCheckoutSessionBodyOptionsOneCustomTextOneSubmitMessageMax = exports.createStripeCheckoutSessionBodyOptionsOneCustomTextOneShippingAddressMessageMax = exports.createStripeCheckoutSessionBodyOptionsOneCustomTextOneAfterSubmitMessageMax = exports.createStripeCheckoutSessionBodyOptionsOneCurrencyOneRegExp = exports.createStripeCheckoutSessionBodyOptionsOneCurrencyOneMax = exports.createStripeCheckoutSessionBodyOptionsOneCurrencyOneMin = exports.createStripeCheckoutSessionBodyCustomerThreeBillingAddressOneCountryOneRegExp = exports.createStripeCheckoutSessionBodyCustomerThreeBillingAddressOneCountryOneMax = exports.createStripeCheckoutSessionBodyCustomerThreeBillingAddressOneCountryOneMin = exports.createStripeCheckoutSessionBodyCustomerThreeCurrencyOneRegExp = exports.createStripeCheckoutSessionBodyCustomerThreeCurrencyOneMax = exports.createStripeCheckoutSessionBodyCustomerThreeCurrencyOneMin = exports.createStripeCheckoutSessionBodyCustomerThreeUsageAttributionOneSubjectKeysMin = exports.createStripeCheckoutSessionBodyCustomerThreeKeyMax = exports.createStripeCheckoutSessionBodyCustomerThreeDescriptionMax = exports.createStripeCheckoutSessionBodyCustomerThreeNameMax = exports.createStripeCheckoutSessionBodyCustomerOneIdRegExp = void 0;
|
|
56
|
+
exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneModeDefault = exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneEnabledDefault = exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyDefault = exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMax = exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMin = exports.createSubscriptionBodyTwoCustomPlanOneOneDescriptionMax = exports.createSubscriptionBodyTwoCustomPlanOneOneNameMax = exports.createSubscriptionBodyOneCustomerKeyMax = exports.createSubscriptionBodyOneCustomerIdRegExp = exports.createSubscriptionBodyOneTimingDefault = exports.createSubscriptionBodyOnePlanOneKeyRegExp = exports.createSubscriptionBodyOnePlanOneKeyMax = exports.ResetEntitlementUsageBody = exports.ResetEntitlementUsageParams = exports.GetEntitlementHistoryQueryParams = exports.getEntitlementHistoryQueryWindowTimeZoneDefault = exports.GetEntitlementHistoryParams = exports.DeleteEntitlementParams = exports.GetEntitlementParams = exports.GetEntitlementValueQueryParams = exports.GetEntitlementValueParams = exports.OverrideEntitlementBody = exports.overrideEntitlementBodyThreeUsagePeriodOneIntervalOneOneRegExp = exports.overrideEntitlementBodyThreeFeatureIdRegExp = exports.overrideEntitlementBodyThreeFeatureKeyRegExp = exports.overrideEntitlementBodyThreeFeatureKeyMax = exports.overrideEntitlementBodyTwoUsagePeriodOneIntervalOneOneRegExp = exports.overrideEntitlementBodyTwoFeatureIdRegExp = exports.overrideEntitlementBodyTwoFeatureKeyRegExp = exports.overrideEntitlementBodyTwoFeatureKeyMax = exports.overrideEntitlementBodyOnePreserveOverageAtResetDefault = exports.overrideEntitlementBodyOneIssueAfterResetPriorityMax = exports.overrideEntitlementBodyOneIssueAfterResetPriorityDefault = exports.overrideEntitlementBodyOneIssueAfterResetMin = exports.overrideEntitlementBodyOneUsagePeriodOneIntervalOneOneRegExp = exports.overrideEntitlementBodyOneIsUnlimitedDefault = exports.overrideEntitlementBodyOneIsSoftLimitDefault = exports.overrideEntitlementBodyOneFeatureIdRegExp = exports.overrideEntitlementBodyOneFeatureKeyRegExp = exports.overrideEntitlementBodyOneFeatureKeyMax = exports.OverrideEntitlementParams = exports.CreateGrantBody = exports.createGrantBodyRecurrenceOneIntervalOneOneRegExp = exports.createGrantBodyMinRolloverAmountDefault = exports.createGrantBodyMaxRolloverAmountDefault = exports.createGrantBodyExpirationOneCountMax = exports.createGrantBodyPriorityMax = exports.createGrantBodyAmountMin = exports.CreateGrantParams = void 0;
|
|
57
|
+
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMaximumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMinimumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeMaximumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeMinimumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoMaximumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoMinimumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoFeatureKeyRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoFeatureKeyMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoDescriptionMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoNameMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoKeyRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoKeyMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOneAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetMin = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneFeatureKeyRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneFeatureKeyMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDescriptionMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneNameMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneKeyRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneKeyMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemDescriptionMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemNameMax = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyMax = exports.createSubscriptionBodyTwoCustomPlanOneOneSettlementModeDefault = exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigDefault = void 0;
|
|
58
|
+
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneTwoMaximumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneTwoMinimumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneTwoAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOnePaymentTermDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOneAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneTaxCodeIdRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneStripeOneCodeRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoFeatureKeyRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoFeatureKeyMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoDescriptionMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoNameMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoKeyRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoKeyMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneDiscountsOneUsageOneQuantityOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOnePaymentTermDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOneAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneTaxCodeIdRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneStripeOneCodeRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOneIssueAfterResetMin = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneFeatureKeyRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneFeatureKeyMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneDescriptionMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneNameMax = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneKeyRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardOneKeyMax = exports.EditSubscriptionParams = exports.editSubscriptionPathSubscriptionIdRegExp = exports.GetSubscriptionQueryParams = exports.GetSubscriptionParams = exports.getSubscriptionPathSubscriptionIdRegExp = exports.CreateSubscriptionBody = exports.createSubscriptionBodyTwoCustomerKeyMax = exports.createSubscriptionBodyTwoCustomerIdRegExp = exports.createSubscriptionBodyTwoTimingDefault = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoDiscountsOneUsageOneQuantityOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveMaximumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveMinimumAmountOneRegExp = exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp = void 0;
|
|
59
|
+
exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMax = exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMin = exports.changeSubscriptionBodyTwoCustomPlanOneOneDescriptionMax = exports.changeSubscriptionBodyTwoCustomPlanOneOneNameMax = exports.changeSubscriptionBodyOnePlanOneKeyRegExp = exports.changeSubscriptionBodyOnePlanOneKeyMax = exports.ChangeSubscriptionParams = exports.changeSubscriptionPathSubscriptionIdRegExp = exports.CancelSubscriptionBody = exports.CancelSubscriptionParams = exports.cancelSubscriptionPathSubscriptionIdRegExp = exports.UpdateSubscriptionAddonBody = exports.updateSubscriptionAddonBodyQuantityMin = exports.updateSubscriptionAddonBodyDescriptionMax = exports.updateSubscriptionAddonBodyNameMax = exports.UpdateSubscriptionAddonParams = exports.updateSubscriptionAddonPathSubscriptionAddonIdRegExp = exports.updateSubscriptionAddonPathSubscriptionIdRegExp = exports.GetSubscriptionAddonParams = exports.getSubscriptionAddonPathSubscriptionAddonIdRegExp = exports.getSubscriptionAddonPathSubscriptionIdRegExp = exports.ListSubscriptionAddonsParams = exports.listSubscriptionAddonsPathSubscriptionIdRegExp = exports.CreateSubscriptionAddonBody = exports.createSubscriptionAddonBodyAddonIdRegExp = exports.createSubscriptionAddonBodyQuantityMin = exports.createSubscriptionAddonBodyDescriptionMax = exports.createSubscriptionAddonBodyNameMax = exports.CreateSubscriptionAddonParams = exports.createSubscriptionAddonPathSubscriptionIdRegExp = exports.DeleteSubscriptionParams = exports.deleteSubscriptionPathSubscriptionIdRegExp = exports.EditSubscriptionBody = exports.editSubscriptionBodyCustomizationsMax = exports.editSubscriptionBodyCustomizationsItemThreePhaseKeyRegExp = exports.editSubscriptionBodyCustomizationsItemThreePhaseKeyMax = exports.editSubscriptionBodyCustomizationsItemThreePhaseDiscountsOneUsageOneQuantityOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoDiscountsOneUsageOneQuantityOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFiveMaximumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFiveMinimumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFiveQuantityPerPackageOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFiveAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFourMaximumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFourMinimumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFourMultiplierDefault = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFourMultiplierOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneThreeMaximumAmountOneRegExp = exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneThreeMinimumAmountOneRegExp = void 0;
|
|
60
|
+
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMinimumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeMaximumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeMinimumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeTiersItemUnitPriceOneAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeTiersItemFlatPriceOneAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneThreeTiersItemUpToAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoMaximumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoMinimumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetMin = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIsSoftLimitDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoFeatureKeyRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoFeatureKeyMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoDescriptionMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoNameMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoKeyRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoKeyMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOneAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetMin = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIsSoftLimitDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneFeatureKeyRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneFeatureKeyMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDescriptionMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneNameMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneKeyRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneKeyMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemDescriptionMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemNameMax = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyMax = exports.changeSubscriptionBodyTwoCustomPlanOneOneSettlementModeDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneModeDefault = exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneEnabledDefault = void 0;
|
|
60
61
|
exports.listCustomerEntitlementsV2QueryPageSizeDefault = exports.listCustomerEntitlementsV2QueryPageDefault = exports.listCustomerEntitlementsV2QueryIncludeDeletedDefault = exports.ListCustomerEntitlementsV2Params = exports.listCustomerEntitlementsV2PathCustomerIdOrKeyTwoMax = exports.listCustomerEntitlementsV2PathCustomerIdOrKeyOneRegExp = exports.CreateCustomerEntitlementV2Body = exports.createCustomerEntitlementV2BodyThreeUsagePeriodOneIntervalOneOneRegExp = exports.createCustomerEntitlementV2BodyThreeFeatureIdRegExp = exports.createCustomerEntitlementV2BodyThreeFeatureKeyRegExp = exports.createCustomerEntitlementV2BodyThreeFeatureKeyMax = exports.createCustomerEntitlementV2BodyTwoUsagePeriodOneIntervalOneOneRegExp = exports.createCustomerEntitlementV2BodyTwoFeatureIdRegExp = exports.createCustomerEntitlementV2BodyTwoFeatureKeyRegExp = exports.createCustomerEntitlementV2BodyTwoFeatureKeyMax = exports.createCustomerEntitlementV2BodyOneGrantsItemExpirationOneCountMax = exports.createCustomerEntitlementV2BodyOneGrantsItemRecurrenceOneIntervalOneOneRegExp = exports.createCustomerEntitlementV2BodyOneGrantsItemMinRolloverAmountDefault = exports.createCustomerEntitlementV2BodyOneGrantsItemPriorityMax = exports.createCustomerEntitlementV2BodyOneGrantsItemAmountMin = exports.createCustomerEntitlementV2BodyOneIssueOnePriorityMax = exports.createCustomerEntitlementV2BodyOneIssueOnePriorityDefault = exports.createCustomerEntitlementV2BodyOneIssueOneAmountMin = exports.createCustomerEntitlementV2BodyOneIssueAfterResetPriorityMax = exports.createCustomerEntitlementV2BodyOneIssueAfterResetPriorityDefault = exports.createCustomerEntitlementV2BodyOneIssueAfterResetMin = exports.createCustomerEntitlementV2BodyOnePreserveOverageAtResetDefault = exports.createCustomerEntitlementV2BodyOneUsagePeriodOneIntervalOneOneRegExp = exports.createCustomerEntitlementV2BodyOneIsSoftLimitDefault = exports.createCustomerEntitlementV2BodyOneFeatureIdRegExp = exports.createCustomerEntitlementV2BodyOneFeatureKeyRegExp = exports.createCustomerEntitlementV2BodyOneFeatureKeyMax = exports.CreateCustomerEntitlementV2Params = exports.createCustomerEntitlementV2PathCustomerIdOrKeyTwoMax = exports.createCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp = exports.UnscheduleCancelationParams = exports.unscheduleCancelationPathSubscriptionIdRegExp = exports.RestoreSubscriptionParams = exports.restoreSubscriptionPathSubscriptionIdRegExp = exports.MigrateSubscriptionBody = exports.migrateSubscriptionBodyTimingDefault = exports.MigrateSubscriptionParams = exports.migrateSubscriptionPathSubscriptionIdRegExp = exports.ChangeSubscriptionBody = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoDiscountsOneUsageOneQuantityOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveMaximumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveMinimumAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveAmountOneRegExp = exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMaximumAmountOneRegExp = void 0;
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.ListGrantsV2QueryParams = exports.listGrantsV2QueryLimitMax = exports.listGrantsV2QueryLimitDefault = exports.listGrantsV2QueryOffsetMin = exports.listGrantsV2QueryOffsetDefault = exports.listGrantsV2QueryPageSizeMax = exports.listGrantsV2QueryPageSizeDefault = exports.listGrantsV2QueryPageDefault = exports.listGrantsV2QueryIncludeDeletedDefault = exports.listGrantsV2QueryCustomerItemTwoMax = exports.listGrantsV2QueryCustomerItemOneRegExp = exports.ListEventsV2QueryParams = exports.listEventsV2QueryClientIdMax = void 0;
|
|
62
|
+
exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyTwoMax = exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyOneRegExp = exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyTwoMax = exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp = exports.GetCustomerEntitlementHistoryV2QueryParams = exports.getCustomerEntitlementHistoryV2QueryWindowTimeZoneDefault = exports.GetCustomerEntitlementHistoryV2Params = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyTwoMax = exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyOneRegExp = exports.CreateCustomerEntitlementGrantV2Body = exports.createCustomerEntitlementGrantV2BodyExpirationOneCountMax = exports.createCustomerEntitlementGrantV2BodyRecurrenceOneIntervalOneOneRegExp = exports.createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = exports.createCustomerEntitlementGrantV2BodyPriorityMax = exports.createCustomerEntitlementGrantV2BodyAmountMin = exports.CreateCustomerEntitlementGrantV2Params = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyMax = exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyTwoMax = exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyOneRegExp = exports.ListCustomerEntitlementGrantsV2QueryParams = exports.listCustomerEntitlementGrantsV2QueryOrderDefault = exports.listCustomerEntitlementGrantsV2QueryLimitMax = exports.listCustomerEntitlementGrantsV2QueryLimitDefault = exports.listCustomerEntitlementGrantsV2QueryOffsetMin = exports.listCustomerEntitlementGrantsV2QueryOffsetDefault = exports.listCustomerEntitlementGrantsV2QueryPageSizeMax = exports.listCustomerEntitlementGrantsV2QueryPageSizeDefault = exports.listCustomerEntitlementGrantsV2QueryPageDefault = exports.listCustomerEntitlementGrantsV2QueryIncludeDeletedDefault = exports.ListCustomerEntitlementGrantsV2Params = exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyMax = exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyTwoMax = exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyOneRegExp = exports.DeleteCustomerEntitlementV2Params = exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyTwoMax = exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp = exports.GetCustomerEntitlementV2Params = exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementV2PathCustomerIdOrKeyTwoMax = exports.getCustomerEntitlementV2PathCustomerIdOrKeyOneRegExp = exports.ListCustomerEntitlementsV2QueryParams = exports.listCustomerEntitlementsV2QueryOrderDefault = exports.listCustomerEntitlementsV2QueryPageSizeMax = void 0;
|
|
63
|
+
exports.getEntitlementByIdV2PathEntitlementIdRegExp = exports.ListEntitlementsV2QueryParams = exports.listEntitlementsV2QueryOrderDefault = exports.listEntitlementsV2QueryLimitMax = exports.listEntitlementsV2QueryLimitDefault = exports.listEntitlementsV2QueryOffsetMin = exports.listEntitlementsV2QueryOffsetDefault = exports.listEntitlementsV2QueryPageSizeMax = exports.listEntitlementsV2QueryPageSizeDefault = exports.listEntitlementsV2QueryPageDefault = exports.listEntitlementsV2QueryExcludeInactiveDefault = exports.GetCustomerEntitlementValueV2QueryParams = exports.GetCustomerEntitlementValueV2Params = exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyTwoMax = exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyOneRegExp = exports.ResetCustomerEntitlementUsageV2Body = exports.ResetCustomerEntitlementUsageV2Params = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyMax = exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyTwoMax = exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyOneRegExp = exports.OverrideCustomerEntitlementV2Body = exports.overrideCustomerEntitlementV2BodyThreeUsagePeriodOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyThreeFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyThreeFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyThreeFeatureKeyMax = exports.overrideCustomerEntitlementV2BodyTwoUsagePeriodOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyTwoFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyTwoFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyTwoFeatureKeyMax = exports.overrideCustomerEntitlementV2BodyOneGrantsItemExpirationOneCountMax = exports.overrideCustomerEntitlementV2BodyOneGrantsItemRecurrenceOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyOneGrantsItemMinRolloverAmountDefault = exports.overrideCustomerEntitlementV2BodyOneGrantsItemPriorityMax = exports.overrideCustomerEntitlementV2BodyOneGrantsItemAmountMin = exports.overrideCustomerEntitlementV2BodyOneIssueOnePriorityMax = exports.overrideCustomerEntitlementV2BodyOneIssueOnePriorityDefault = exports.overrideCustomerEntitlementV2BodyOneIssueOneAmountMin = exports.overrideCustomerEntitlementV2BodyOneIssueAfterResetPriorityMax = exports.overrideCustomerEntitlementV2BodyOneIssueAfterResetPriorityDefault = exports.overrideCustomerEntitlementV2BodyOneIssueAfterResetMin = exports.overrideCustomerEntitlementV2BodyOnePreserveOverageAtResetDefault = exports.overrideCustomerEntitlementV2BodyOneUsagePeriodOneIntervalOneOneRegExp = exports.overrideCustomerEntitlementV2BodyOneIsSoftLimitDefault = exports.overrideCustomerEntitlementV2BodyOneFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyOneFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyOneFeatureKeyMax = exports.OverrideCustomerEntitlementV2Params = void 0;
|
|
64
|
+
exports.ListGrantsV2QueryParams = exports.listGrantsV2QueryOrderDefault = exports.listGrantsV2QueryLimitMax = exports.listGrantsV2QueryLimitDefault = exports.listGrantsV2QueryOffsetMin = exports.listGrantsV2QueryOffsetDefault = exports.listGrantsV2QueryPageSizeMax = exports.listGrantsV2QueryPageSizeDefault = exports.listGrantsV2QueryPageDefault = exports.listGrantsV2QueryIncludeDeletedDefault = exports.listGrantsV2QueryCustomerItemTwoMax = exports.listGrantsV2QueryCustomerItemOneRegExp = exports.ListEventsV2QueryParams = exports.listEventsV2QueryClientIdMax = exports.listEventsV2QueryLimitMax = exports.listEventsV2QueryLimitDefault = exports.GetEntitlementByIdV2Params = void 0;
|
|
64
65
|
/**
|
|
65
|
-
* Generated by orval v8.
|
|
66
|
+
* Generated by orval v8.7.0 🍺
|
|
66
67
|
* Do not edit manually.
|
|
67
68
|
* OpenMeter Cloud API
|
|
68
69
|
* OpenMeter is a cloud native usage metering service.
|
|
@@ -84,6 +85,7 @@ exports.listAddonsQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
|
|
|
84
85
|
exports.listAddonsQueryPageDefault = 1;
|
|
85
86
|
exports.listAddonsQueryPageSizeDefault = 100;
|
|
86
87
|
exports.listAddonsQueryPageSizeMax = 1000;
|
|
88
|
+
exports.listAddonsQueryOrderDefault = 'ASC';
|
|
87
89
|
exports.ListAddonsQueryParams = zod.object({
|
|
88
90
|
currency: zod
|
|
89
91
|
.array(zod.coerce
|
|
@@ -118,7 +120,11 @@ exports.ListAddonsQueryParams = zod.object({
|
|
|
118
120
|
.record(zod.string(), zod.array(zod.coerce.number()))
|
|
119
121
|
.optional()
|
|
120
122
|
.describe('Filter by addon.key and addon.version attributes'),
|
|
121
|
-
order: zod
|
|
123
|
+
order: zod
|
|
124
|
+
.enum(['ASC', 'DESC'])
|
|
125
|
+
.describe('The order direction.')
|
|
126
|
+
.default(exports.listAddonsQueryOrderDefault)
|
|
127
|
+
.describe('The order direction.'),
|
|
122
128
|
orderBy: zod
|
|
123
129
|
.enum(['id', 'key', 'version', 'created_at', 'updated_at'])
|
|
124
130
|
.optional()
|
|
@@ -165,6 +171,7 @@ exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetP
|
|
|
165
171
|
exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
166
172
|
exports.createAddonBodyRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
167
173
|
exports.createAddonBodyRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
174
|
+
exports.createAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
168
175
|
exports.createAddonBodyRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
169
176
|
exports.createAddonBodyRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
170
177
|
exports.createAddonBodyRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -180,6 +187,7 @@ exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetP
|
|
|
180
187
|
exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
181
188
|
exports.createAddonBodyRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
182
189
|
exports.createAddonBodyRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
190
|
+
exports.createAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
183
191
|
exports.createAddonBodyRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
184
192
|
exports.createAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
185
193
|
exports.createAddonBodyRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -207,6 +215,7 @@ exports.CreateAddonBody = zod
|
|
|
207
215
|
.max(exports.createAddonBodyCurrencyOneMax)
|
|
208
216
|
.regex(exports.createAddonBodyCurrencyOneRegExp)
|
|
209
217
|
.describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
|
|
218
|
+
.default(exports.createAddonBodyCurrencyDefault)
|
|
210
219
|
.describe('The currency code of the add-on.'),
|
|
211
220
|
description: zod.coerce
|
|
212
221
|
.string()
|
|
@@ -371,7 +380,7 @@ exports.CreateAddonBody = zod
|
|
|
371
380
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
372
381
|
.default(exports.createAddonBodyRateCardsItemOnePriceOnePaymentTermDefault)
|
|
373
382
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
374
|
-
type: zod.enum(['flat']),
|
|
383
|
+
type: zod.enum(['flat']).describe('The type of the price.'),
|
|
375
384
|
})
|
|
376
385
|
.describe('Flat price with payment term.')
|
|
377
386
|
.nullable()
|
|
@@ -402,11 +411,18 @@ exports.CreateAddonBody = zod
|
|
|
402
411
|
.describe('The tax config for Stripe.')
|
|
403
412
|
.optional()
|
|
404
413
|
.describe('Stripe tax config.'),
|
|
414
|
+
taxCodeId: zod.coerce
|
|
415
|
+
.string()
|
|
416
|
+
.regex(exports.createAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
417
|
+
.optional()
|
|
418
|
+
.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.'),
|
|
405
419
|
})
|
|
406
420
|
.describe('Set of provider specific tax configs.')
|
|
407
421
|
.optional()
|
|
408
422
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
409
|
-
type: zod
|
|
423
|
+
type: zod
|
|
424
|
+
.enum(['flat_fee'])
|
|
425
|
+
.describe('The type of the RateCard.'),
|
|
410
426
|
})
|
|
411
427
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
412
428
|
zod
|
|
@@ -545,7 +561,9 @@ exports.CreateAddonBody = zod
|
|
|
545
561
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
546
562
|
.default(exports.createAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault)
|
|
547
563
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
548
|
-
type: zod
|
|
564
|
+
type: zod
|
|
565
|
+
.enum(['flat'])
|
|
566
|
+
.describe('The type of the price.'),
|
|
549
567
|
})
|
|
550
568
|
.describe('Flat price with payment term.'),
|
|
551
569
|
zod
|
|
@@ -567,7 +585,9 @@ exports.CreateAddonBody = zod
|
|
|
567
585
|
.describe('Numeric represents an arbitrary precision number.')
|
|
568
586
|
.optional()
|
|
569
587
|
.describe('The customer is committed to spend at least the amount.'),
|
|
570
|
-
type: zod
|
|
588
|
+
type: zod
|
|
589
|
+
.enum(['unit'])
|
|
590
|
+
.describe('The type of the price.'),
|
|
571
591
|
})
|
|
572
592
|
.describe('Unit price with spend commitments.'),
|
|
573
593
|
zod
|
|
@@ -629,7 +649,9 @@ exports.CreateAddonBody = zod
|
|
|
629
649
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
630
650
|
.min(1)
|
|
631
651
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
632
|
-
type: zod
|
|
652
|
+
type: zod
|
|
653
|
+
.enum(['tiered'])
|
|
654
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
633
655
|
})
|
|
634
656
|
.describe('Tiered price with spend commitments.'),
|
|
635
657
|
zod
|
|
@@ -652,7 +674,9 @@ exports.CreateAddonBody = zod
|
|
|
652
674
|
.describe('Numeric represents an arbitrary precision number.')
|
|
653
675
|
.default(exports.createAddonBodyRateCardsItemTwoPriceOneFourMultiplierDefault)
|
|
654
676
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
655
|
-
type: zod
|
|
677
|
+
type: zod
|
|
678
|
+
.enum(['dynamic'])
|
|
679
|
+
.describe('The type of the price.'),
|
|
656
680
|
})
|
|
657
681
|
.describe('Dynamic price with spend commitments.'),
|
|
658
682
|
zod
|
|
@@ -679,7 +703,9 @@ exports.CreateAddonBody = zod
|
|
|
679
703
|
.regex(exports.createAddonBodyRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
680
704
|
.describe('Numeric represents an arbitrary precision number.')
|
|
681
705
|
.describe('The quantity per package.'),
|
|
682
|
-
type: zod
|
|
706
|
+
type: zod
|
|
707
|
+
.enum(['package'])
|
|
708
|
+
.describe('The type of the price.'),
|
|
683
709
|
})
|
|
684
710
|
.describe('Package price with spend commitments.'),
|
|
685
711
|
])
|
|
@@ -712,11 +738,18 @@ exports.CreateAddonBody = zod
|
|
|
712
738
|
.describe('The tax config for Stripe.')
|
|
713
739
|
.optional()
|
|
714
740
|
.describe('Stripe tax config.'),
|
|
741
|
+
taxCodeId: zod.coerce
|
|
742
|
+
.string()
|
|
743
|
+
.regex(exports.createAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
744
|
+
.optional()
|
|
745
|
+
.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.'),
|
|
715
746
|
})
|
|
716
747
|
.describe('Set of provider specific tax configs.')
|
|
717
748
|
.optional()
|
|
718
749
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
719
|
-
type: zod
|
|
750
|
+
type: zod
|
|
751
|
+
.enum(['usage_based'])
|
|
752
|
+
.describe('The type of the RateCard.'),
|
|
720
753
|
})
|
|
721
754
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
722
755
|
])
|
|
@@ -746,6 +779,7 @@ exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetP
|
|
|
746
779
|
exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
747
780
|
exports.updateAddonBodyRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
748
781
|
exports.updateAddonBodyRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
782
|
+
exports.updateAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
749
783
|
exports.updateAddonBodyRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
750
784
|
exports.updateAddonBodyRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
751
785
|
exports.updateAddonBodyRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -761,6 +795,7 @@ exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetP
|
|
|
761
795
|
exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
762
796
|
exports.updateAddonBodyRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
763
797
|
exports.updateAddonBodyRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
798
|
+
exports.updateAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
764
799
|
exports.updateAddonBodyRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
765
800
|
exports.updateAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
766
801
|
exports.updateAddonBodyRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -939,7 +974,7 @@ exports.UpdateAddonBody = zod
|
|
|
939
974
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
940
975
|
.default(exports.updateAddonBodyRateCardsItemOnePriceOnePaymentTermDefault)
|
|
941
976
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
942
|
-
type: zod.enum(['flat']),
|
|
977
|
+
type: zod.enum(['flat']).describe('The type of the price.'),
|
|
943
978
|
})
|
|
944
979
|
.describe('Flat price with payment term.')
|
|
945
980
|
.nullable()
|
|
@@ -970,11 +1005,18 @@ exports.UpdateAddonBody = zod
|
|
|
970
1005
|
.describe('The tax config for Stripe.')
|
|
971
1006
|
.optional()
|
|
972
1007
|
.describe('Stripe tax config.'),
|
|
1008
|
+
taxCodeId: zod.coerce
|
|
1009
|
+
.string()
|
|
1010
|
+
.regex(exports.updateAddonBodyRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
1011
|
+
.optional()
|
|
1012
|
+
.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.'),
|
|
973
1013
|
})
|
|
974
1014
|
.describe('Set of provider specific tax configs.')
|
|
975
1015
|
.optional()
|
|
976
1016
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
977
|
-
type: zod
|
|
1017
|
+
type: zod
|
|
1018
|
+
.enum(['flat_fee'])
|
|
1019
|
+
.describe('The type of the RateCard.'),
|
|
978
1020
|
})
|
|
979
1021
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
980
1022
|
zod
|
|
@@ -1113,7 +1155,9 @@ exports.UpdateAddonBody = zod
|
|
|
1113
1155
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
1114
1156
|
.default(exports.updateAddonBodyRateCardsItemTwoPriceOneOnePaymentTermDefault)
|
|
1115
1157
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
1116
|
-
type: zod
|
|
1158
|
+
type: zod
|
|
1159
|
+
.enum(['flat'])
|
|
1160
|
+
.describe('The type of the price.'),
|
|
1117
1161
|
})
|
|
1118
1162
|
.describe('Flat price with payment term.'),
|
|
1119
1163
|
zod
|
|
@@ -1135,7 +1179,9 @@ exports.UpdateAddonBody = zod
|
|
|
1135
1179
|
.describe('Numeric represents an arbitrary precision number.')
|
|
1136
1180
|
.optional()
|
|
1137
1181
|
.describe('The customer is committed to spend at least the amount.'),
|
|
1138
|
-
type: zod
|
|
1182
|
+
type: zod
|
|
1183
|
+
.enum(['unit'])
|
|
1184
|
+
.describe('The type of the price.'),
|
|
1139
1185
|
})
|
|
1140
1186
|
.describe('Unit price with spend commitments.'),
|
|
1141
1187
|
zod
|
|
@@ -1197,7 +1243,9 @@ exports.UpdateAddonBody = zod
|
|
|
1197
1243
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
1198
1244
|
.min(1)
|
|
1199
1245
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
1200
|
-
type: zod
|
|
1246
|
+
type: zod
|
|
1247
|
+
.enum(['tiered'])
|
|
1248
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
1201
1249
|
})
|
|
1202
1250
|
.describe('Tiered price with spend commitments.'),
|
|
1203
1251
|
zod
|
|
@@ -1220,7 +1268,9 @@ exports.UpdateAddonBody = zod
|
|
|
1220
1268
|
.describe('Numeric represents an arbitrary precision number.')
|
|
1221
1269
|
.default(exports.updateAddonBodyRateCardsItemTwoPriceOneFourMultiplierDefault)
|
|
1222
1270
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
1223
|
-
type: zod
|
|
1271
|
+
type: zod
|
|
1272
|
+
.enum(['dynamic'])
|
|
1273
|
+
.describe('The type of the price.'),
|
|
1224
1274
|
})
|
|
1225
1275
|
.describe('Dynamic price with spend commitments.'),
|
|
1226
1276
|
zod
|
|
@@ -1247,7 +1297,9 @@ exports.UpdateAddonBody = zod
|
|
|
1247
1297
|
.regex(exports.updateAddonBodyRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
1248
1298
|
.describe('Numeric represents an arbitrary precision number.')
|
|
1249
1299
|
.describe('The quantity per package.'),
|
|
1250
|
-
type: zod
|
|
1300
|
+
type: zod
|
|
1301
|
+
.enum(['package'])
|
|
1302
|
+
.describe('The type of the price.'),
|
|
1251
1303
|
})
|
|
1252
1304
|
.describe('Package price with spend commitments.'),
|
|
1253
1305
|
])
|
|
@@ -1280,11 +1332,18 @@ exports.UpdateAddonBody = zod
|
|
|
1280
1332
|
.describe('The tax config for Stripe.')
|
|
1281
1333
|
.optional()
|
|
1282
1334
|
.describe('Stripe tax config.'),
|
|
1335
|
+
taxCodeId: zod.coerce
|
|
1336
|
+
.string()
|
|
1337
|
+
.regex(exports.updateAddonBodyRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
1338
|
+
.optional()
|
|
1339
|
+
.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.'),
|
|
1283
1340
|
})
|
|
1284
1341
|
.describe('Set of provider specific tax configs.')
|
|
1285
1342
|
.optional()
|
|
1286
1343
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
1287
|
-
type: zod
|
|
1344
|
+
type: zod
|
|
1345
|
+
.enum(['usage_based'])
|
|
1346
|
+
.describe('The type of the RateCard.'),
|
|
1288
1347
|
})
|
|
1289
1348
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
1290
1349
|
])
|
|
@@ -1529,7 +1588,7 @@ exports.UpdateAppBody = zod
|
|
|
1529
1588
|
.string()
|
|
1530
1589
|
.optional()
|
|
1531
1590
|
.describe('The Stripe API key.'),
|
|
1532
|
-
type: zod.enum(['stripe']),
|
|
1591
|
+
type: zod.enum(['stripe']).describe("The app's type is Stripe."),
|
|
1533
1592
|
})
|
|
1534
1593
|
.describe('Resource update operation model.'),
|
|
1535
1594
|
zod
|
|
@@ -1549,7 +1608,7 @@ exports.UpdateAppBody = zod
|
|
|
1549
1608
|
.min(1)
|
|
1550
1609
|
.max(exports.updateAppBodyTwoNameMax)
|
|
1551
1610
|
.describe('Human-readable name for the resource. Between 1 and 256 characters.'),
|
|
1552
|
-
type: zod.enum(['sandbox']),
|
|
1611
|
+
type: zod.enum(['sandbox']).describe("The app's type is Sandbox."),
|
|
1553
1612
|
})
|
|
1554
1613
|
.describe('Resource update operation model.'),
|
|
1555
1614
|
zod
|
|
@@ -1575,7 +1634,9 @@ exports.UpdateAppBody = zod
|
|
|
1575
1634
|
.min(1)
|
|
1576
1635
|
.max(exports.updateAppBodyThreeNameMax)
|
|
1577
1636
|
.describe('Human-readable name for the resource. Between 1 and 256 characters.'),
|
|
1578
|
-
type: zod
|
|
1637
|
+
type: zod
|
|
1638
|
+
.enum(['custom_invoicing'])
|
|
1639
|
+
.describe("The app's type is CustomInvoicing."),
|
|
1579
1640
|
})
|
|
1580
1641
|
.describe('Resource update operation model.'),
|
|
1581
1642
|
])
|
|
@@ -1638,6 +1699,7 @@ if they have customer orverrides or not.
|
|
|
1638
1699
|
exports.listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1639
1700
|
exports.listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault = true;
|
|
1640
1701
|
exports.listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1702
|
+
exports.listBillingProfileCustomerOverridesQueryOrderDefault = 'ASC';
|
|
1641
1703
|
exports.listBillingProfileCustomerOverridesQueryPageDefault = 1;
|
|
1642
1704
|
exports.listBillingProfileCustomerOverridesQueryPageSizeDefault = 100;
|
|
1643
1705
|
exports.listBillingProfileCustomerOverridesQueryPageSizeMax = 1000;
|
|
@@ -1682,7 +1744,11 @@ exports.ListBillingProfileCustomerOverridesQueryParams = zod.object({
|
|
|
1682
1744
|
.boolean()
|
|
1683
1745
|
.default(exports.listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault)
|
|
1684
1746
|
.describe('Include customers without customer overrides.\n\nIf set to false only the customers specifically associated with a billing profile will be returned.\n\nIf set to true, in case of the default billing profile, all customers will be returned.'),
|
|
1685
|
-
order: zod
|
|
1747
|
+
order: zod
|
|
1748
|
+
.enum(['ASC', 'DESC'])
|
|
1749
|
+
.describe('The order direction.')
|
|
1750
|
+
.default(exports.listBillingProfileCustomerOverridesQueryOrderDefault)
|
|
1751
|
+
.describe('The order direction.'),
|
|
1686
1752
|
orderBy: zod
|
|
1687
1753
|
.enum([
|
|
1688
1754
|
'customerId',
|
|
@@ -1787,6 +1853,7 @@ exports.createPendingInvoiceLineBodyCurrencyOneRegExp = /^[A-Z]{3}$/;
|
|
|
1787
1853
|
exports.createPendingInvoiceLineBodyLinesItemNameMax = 256;
|
|
1788
1854
|
exports.createPendingInvoiceLineBodyLinesItemDescriptionMax = 1024;
|
|
1789
1855
|
exports.createPendingInvoiceLineBodyLinesItemTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
1856
|
+
exports.createPendingInvoiceLineBodyLinesItemTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1790
1857
|
exports.createPendingInvoiceLineBodyLinesItemPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1791
1858
|
exports.createPendingInvoiceLineBodyLinesItemPriceOneOnePaymentTermDefault = 'in_advance';
|
|
1792
1859
|
exports.createPendingInvoiceLineBodyLinesItemPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -1810,6 +1877,7 @@ exports.createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[
|
|
|
1810
1877
|
exports.createPendingInvoiceLineBodyLinesItemRateCardOneFeatureKeyMax = 64;
|
|
1811
1878
|
exports.createPendingInvoiceLineBodyLinesItemRateCardOneFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
1812
1879
|
exports.createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
1880
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1813
1881
|
exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1814
1882
|
exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = 'in_advance';
|
|
1815
1883
|
exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -1889,7 +1957,7 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
1889
1957
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
1890
1958
|
.default(exports.createPendingInvoiceLineBodyLinesItemPriceOneOnePaymentTermDefault)
|
|
1891
1959
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
1892
|
-
type: zod.enum(['flat']),
|
|
1960
|
+
type: zod.enum(['flat']).describe('The type of the price.'),
|
|
1893
1961
|
})
|
|
1894
1962
|
.describe('Flat price with payment term.'),
|
|
1895
1963
|
zod
|
|
@@ -1911,7 +1979,7 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
1911
1979
|
.describe('Numeric represents an arbitrary precision number.')
|
|
1912
1980
|
.optional()
|
|
1913
1981
|
.describe('The customer is committed to spend at least the amount.'),
|
|
1914
|
-
type: zod.enum(['unit']),
|
|
1982
|
+
type: zod.enum(['unit']).describe('The type of the price.'),
|
|
1915
1983
|
})
|
|
1916
1984
|
.describe('Unit price with spend commitments.'),
|
|
1917
1985
|
zod
|
|
@@ -1973,7 +2041,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
1973
2041
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
1974
2042
|
.min(1)
|
|
1975
2043
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
1976
|
-
type: zod
|
|
2044
|
+
type: zod
|
|
2045
|
+
.enum(['tiered'])
|
|
2046
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
1977
2047
|
})
|
|
1978
2048
|
.describe('Tiered price with spend commitments.'),
|
|
1979
2049
|
zod
|
|
@@ -1996,7 +2066,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
1996
2066
|
.describe('Numeric represents an arbitrary precision number.')
|
|
1997
2067
|
.default(exports.createPendingInvoiceLineBodyLinesItemPriceOneFourMultiplierDefault)
|
|
1998
2068
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
1999
|
-
type: zod
|
|
2069
|
+
type: zod
|
|
2070
|
+
.enum(['dynamic'])
|
|
2071
|
+
.describe('The type of the price.'),
|
|
2000
2072
|
})
|
|
2001
2073
|
.describe('Dynamic price with spend commitments.'),
|
|
2002
2074
|
zod
|
|
@@ -2023,7 +2095,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2023
2095
|
.regex(exports.createPendingInvoiceLineBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp)
|
|
2024
2096
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2025
2097
|
.describe('The quantity per package.'),
|
|
2026
|
-
type: zod
|
|
2098
|
+
type: zod
|
|
2099
|
+
.enum(['package'])
|
|
2100
|
+
.describe('The type of the price.'),
|
|
2027
2101
|
})
|
|
2028
2102
|
.describe('Package price with spend commitments.'),
|
|
2029
2103
|
])
|
|
@@ -2090,7 +2164,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2090
2164
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
2091
2165
|
.default(exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault)
|
|
2092
2166
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
2093
|
-
type: zod
|
|
2167
|
+
type: zod
|
|
2168
|
+
.enum(['flat'])
|
|
2169
|
+
.describe('The type of the price.'),
|
|
2094
2170
|
})
|
|
2095
2171
|
.describe('Flat price with payment term.'),
|
|
2096
2172
|
zod
|
|
@@ -2112,7 +2188,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2112
2188
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2113
2189
|
.optional()
|
|
2114
2190
|
.describe('The customer is committed to spend at least the amount.'),
|
|
2115
|
-
type: zod
|
|
2191
|
+
type: zod
|
|
2192
|
+
.enum(['unit'])
|
|
2193
|
+
.describe('The type of the price.'),
|
|
2116
2194
|
})
|
|
2117
2195
|
.describe('Unit price with spend commitments.'),
|
|
2118
2196
|
zod
|
|
@@ -2174,7 +2252,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2174
2252
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
2175
2253
|
.min(1)
|
|
2176
2254
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
2177
|
-
type: zod
|
|
2255
|
+
type: zod
|
|
2256
|
+
.enum(['tiered'])
|
|
2257
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
2178
2258
|
})
|
|
2179
2259
|
.describe('Tiered price with spend commitments.'),
|
|
2180
2260
|
zod
|
|
@@ -2197,7 +2277,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2197
2277
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2198
2278
|
.default(exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFourMultiplierDefault)
|
|
2199
2279
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
2200
|
-
type: zod
|
|
2280
|
+
type: zod
|
|
2281
|
+
.enum(['dynamic'])
|
|
2282
|
+
.describe('The type of the price.'),
|
|
2201
2283
|
})
|
|
2202
2284
|
.describe('Dynamic price with spend commitments.'),
|
|
2203
2285
|
zod
|
|
@@ -2224,7 +2306,9 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2224
2306
|
.regex(exports.createPendingInvoiceLineBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp)
|
|
2225
2307
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2226
2308
|
.describe('The quantity per package.'),
|
|
2227
|
-
type: zod
|
|
2309
|
+
type: zod
|
|
2310
|
+
.enum(['package'])
|
|
2311
|
+
.describe('The type of the price.'),
|
|
2228
2312
|
})
|
|
2229
2313
|
.describe('Package price with spend commitments.'),
|
|
2230
2314
|
])
|
|
@@ -2257,6 +2341,11 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2257
2341
|
.describe('The tax config for Stripe.')
|
|
2258
2342
|
.optional()
|
|
2259
2343
|
.describe('Stripe tax config.'),
|
|
2344
|
+
taxCodeId: zod.coerce
|
|
2345
|
+
.string()
|
|
2346
|
+
.regex(exports.createPendingInvoiceLineBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
2347
|
+
.optional()
|
|
2348
|
+
.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.'),
|
|
2260
2349
|
})
|
|
2261
2350
|
.describe('Set of provider specific tax configs.')
|
|
2262
2351
|
.optional()
|
|
@@ -2291,6 +2380,11 @@ exports.CreatePendingInvoiceLineBody = zod
|
|
|
2291
2380
|
.describe('The tax config for Stripe.')
|
|
2292
2381
|
.optional()
|
|
2293
2382
|
.describe('Stripe tax config.'),
|
|
2383
|
+
taxCodeId: zod.coerce
|
|
2384
|
+
.string()
|
|
2385
|
+
.regex(exports.createPendingInvoiceLineBodyLinesItemTaxConfigOneTaxCodeIdRegExp)
|
|
2386
|
+
.optional()
|
|
2387
|
+
.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.'),
|
|
2294
2388
|
})
|
|
2295
2389
|
.describe('Set of provider specific tax configs.')
|
|
2296
2390
|
.optional()
|
|
@@ -2320,6 +2414,7 @@ exports.simulateInvoiceBodyCurrencyOneRegExp = /^[A-Z]{3}$/;
|
|
|
2320
2414
|
exports.simulateInvoiceBodyLinesItemNameMax = 256;
|
|
2321
2415
|
exports.simulateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
2322
2416
|
exports.simulateInvoiceBodyLinesItemTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
2417
|
+
exports.simulateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2323
2418
|
exports.simulateInvoiceBodyLinesItemPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2324
2419
|
exports.simulateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault = 'in_advance';
|
|
2325
2420
|
exports.simulateInvoiceBodyLinesItemPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -2343,6 +2438,7 @@ exports.simulateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)
|
|
|
2343
2438
|
exports.simulateInvoiceBodyLinesItemRateCardOneFeatureKeyMax = 64;
|
|
2344
2439
|
exports.simulateInvoiceBodyLinesItemRateCardOneFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
2345
2440
|
exports.simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
2441
|
+
exports.simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2346
2442
|
exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2347
2443
|
exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = 'in_advance';
|
|
2348
2444
|
exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -2436,7 +2532,7 @@ exports.SimulateInvoiceBody = zod
|
|
|
2436
2532
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
2437
2533
|
.default(exports.simulateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault)
|
|
2438
2534
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
2439
|
-
type: zod.enum(['flat']),
|
|
2535
|
+
type: zod.enum(['flat']).describe('The type of the price.'),
|
|
2440
2536
|
})
|
|
2441
2537
|
.describe('Flat price with payment term.'),
|
|
2442
2538
|
zod
|
|
@@ -2458,7 +2554,7 @@ exports.SimulateInvoiceBody = zod
|
|
|
2458
2554
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2459
2555
|
.optional()
|
|
2460
2556
|
.describe('The customer is committed to spend at least the amount.'),
|
|
2461
|
-
type: zod.enum(['unit']),
|
|
2557
|
+
type: zod.enum(['unit']).describe('The type of the price.'),
|
|
2462
2558
|
})
|
|
2463
2559
|
.describe('Unit price with spend commitments.'),
|
|
2464
2560
|
zod
|
|
@@ -2520,7 +2616,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2520
2616
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
2521
2617
|
.min(1)
|
|
2522
2618
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
2523
|
-
type: zod
|
|
2619
|
+
type: zod
|
|
2620
|
+
.enum(['tiered'])
|
|
2621
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
2524
2622
|
})
|
|
2525
2623
|
.describe('Tiered price with spend commitments.'),
|
|
2526
2624
|
zod
|
|
@@ -2543,7 +2641,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2543
2641
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2544
2642
|
.default(exports.simulateInvoiceBodyLinesItemPriceOneFourMultiplierDefault)
|
|
2545
2643
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
2546
|
-
type: zod
|
|
2644
|
+
type: zod
|
|
2645
|
+
.enum(['dynamic'])
|
|
2646
|
+
.describe('The type of the price.'),
|
|
2547
2647
|
})
|
|
2548
2648
|
.describe('Dynamic price with spend commitments.'),
|
|
2549
2649
|
zod
|
|
@@ -2570,7 +2670,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2570
2670
|
.regex(exports.simulateInvoiceBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp)
|
|
2571
2671
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2572
2672
|
.describe('The quantity per package.'),
|
|
2573
|
-
type: zod
|
|
2673
|
+
type: zod
|
|
2674
|
+
.enum(['package'])
|
|
2675
|
+
.describe('The type of the price.'),
|
|
2574
2676
|
})
|
|
2575
2677
|
.describe('Package price with spend commitments.'),
|
|
2576
2678
|
])
|
|
@@ -2642,7 +2744,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2642
2744
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
2643
2745
|
.default(exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault)
|
|
2644
2746
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
2645
|
-
type: zod
|
|
2747
|
+
type: zod
|
|
2748
|
+
.enum(['flat'])
|
|
2749
|
+
.describe('The type of the price.'),
|
|
2646
2750
|
})
|
|
2647
2751
|
.describe('Flat price with payment term.'),
|
|
2648
2752
|
zod
|
|
@@ -2664,7 +2768,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2664
2768
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2665
2769
|
.optional()
|
|
2666
2770
|
.describe('The customer is committed to spend at least the amount.'),
|
|
2667
|
-
type: zod
|
|
2771
|
+
type: zod
|
|
2772
|
+
.enum(['unit'])
|
|
2773
|
+
.describe('The type of the price.'),
|
|
2668
2774
|
})
|
|
2669
2775
|
.describe('Unit price with spend commitments.'),
|
|
2670
2776
|
zod
|
|
@@ -2726,7 +2832,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2726
2832
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
2727
2833
|
.min(1)
|
|
2728
2834
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
2729
|
-
type: zod
|
|
2835
|
+
type: zod
|
|
2836
|
+
.enum(['tiered'])
|
|
2837
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
2730
2838
|
})
|
|
2731
2839
|
.describe('Tiered price with spend commitments.'),
|
|
2732
2840
|
zod
|
|
@@ -2749,7 +2857,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2749
2857
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2750
2858
|
.default(exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierDefault)
|
|
2751
2859
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
2752
|
-
type: zod
|
|
2860
|
+
type: zod
|
|
2861
|
+
.enum(['dynamic'])
|
|
2862
|
+
.describe('The type of the price.'),
|
|
2753
2863
|
})
|
|
2754
2864
|
.describe('Dynamic price with spend commitments.'),
|
|
2755
2865
|
zod
|
|
@@ -2776,7 +2886,9 @@ exports.SimulateInvoiceBody = zod
|
|
|
2776
2886
|
.regex(exports.simulateInvoiceBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp)
|
|
2777
2887
|
.describe('Numeric represents an arbitrary precision number.')
|
|
2778
2888
|
.describe('The quantity per package.'),
|
|
2779
|
-
type: zod
|
|
2889
|
+
type: zod
|
|
2890
|
+
.enum(['package'])
|
|
2891
|
+
.describe('The type of the price.'),
|
|
2780
2892
|
})
|
|
2781
2893
|
.describe('Package price with spend commitments.'),
|
|
2782
2894
|
])
|
|
@@ -2809,6 +2921,11 @@ exports.SimulateInvoiceBody = zod
|
|
|
2809
2921
|
.describe('The tax config for Stripe.')
|
|
2810
2922
|
.optional()
|
|
2811
2923
|
.describe('Stripe tax config.'),
|
|
2924
|
+
taxCodeId: zod.coerce
|
|
2925
|
+
.string()
|
|
2926
|
+
.regex(exports.simulateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
2927
|
+
.optional()
|
|
2928
|
+
.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.'),
|
|
2812
2929
|
})
|
|
2813
2930
|
.describe('Set of provider specific tax configs.')
|
|
2814
2931
|
.optional()
|
|
@@ -2843,6 +2960,11 @@ exports.SimulateInvoiceBody = zod
|
|
|
2843
2960
|
.describe('The tax config for Stripe.')
|
|
2844
2961
|
.optional()
|
|
2845
2962
|
.describe('Stripe tax config.'),
|
|
2963
|
+
taxCodeId: zod.coerce
|
|
2964
|
+
.string()
|
|
2965
|
+
.regex(exports.simulateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp)
|
|
2966
|
+
.optional()
|
|
2967
|
+
.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.'),
|
|
2846
2968
|
})
|
|
2847
2969
|
.describe('Set of provider specific tax configs.')
|
|
2848
2970
|
.optional()
|
|
@@ -2872,6 +2994,7 @@ exports.listInvoicesQueryCustomersItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-
|
|
|
2872
2994
|
exports.listInvoicesQueryPageDefault = 1;
|
|
2873
2995
|
exports.listInvoicesQueryPageSizeDefault = 100;
|
|
2874
2996
|
exports.listInvoicesQueryPageSizeMax = 1000;
|
|
2997
|
+
exports.listInvoicesQueryOrderDefault = 'ASC';
|
|
2875
2998
|
exports.ListInvoicesQueryParams = zod.object({
|
|
2876
2999
|
createdAfter: zod.coerce
|
|
2877
3000
|
.date()
|
|
@@ -2910,7 +3033,11 @@ exports.ListInvoicesQueryParams = zod.object({
|
|
|
2910
3033
|
.date()
|
|
2911
3034
|
.optional()
|
|
2912
3035
|
.describe('Filter by invoice issued time.\nInclusive.'),
|
|
2913
|
-
order: zod
|
|
3036
|
+
order: zod
|
|
3037
|
+
.enum(['ASC', 'DESC'])
|
|
3038
|
+
.describe('The order direction.')
|
|
3039
|
+
.default(exports.listInvoicesQueryOrderDefault)
|
|
3040
|
+
.describe('The order direction.'),
|
|
2914
3041
|
orderBy: zod
|
|
2915
3042
|
.enum([
|
|
2916
3043
|
'customer.name',
|
|
@@ -3060,6 +3187,7 @@ exports.updateInvoiceBodyCustomerOneAddressesMax = 1;
|
|
|
3060
3187
|
exports.updateInvoiceBodyLinesItemNameMax = 256;
|
|
3061
3188
|
exports.updateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
3062
3189
|
exports.updateInvoiceBodyLinesItemTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
3190
|
+
exports.updateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3063
3191
|
exports.updateInvoiceBodyLinesItemPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3064
3192
|
exports.updateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault = 'in_advance';
|
|
3065
3193
|
exports.updateInvoiceBodyLinesItemPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -3083,6 +3211,7 @@ exports.updateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$
|
|
|
3083
3211
|
exports.updateInvoiceBodyLinesItemRateCardOneFeatureKeyMax = 64;
|
|
3084
3212
|
exports.updateInvoiceBodyLinesItemRateCardOneFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
3085
3213
|
exports.updateInvoiceBodyLinesItemRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
3214
|
+
exports.updateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3086
3215
|
exports.updateInvoiceBodyLinesItemRateCardOnePriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3087
3216
|
exports.updateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault = 'in_advance';
|
|
3088
3217
|
exports.updateInvoiceBodyLinesItemRateCardOnePriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -3109,6 +3238,7 @@ exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneAutoAdvanceDefault =
|
|
|
3109
3238
|
exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDraftPeriodDefault = 'P0D';
|
|
3110
3239
|
exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDueAfterDefault = 'P30D';
|
|
3111
3240
|
exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
3241
|
+
exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3112
3242
|
exports.updateInvoiceBodyWorkflowOneWorkflowOnePaymentOneCollectionMethodDefault = 'charge_automatically';
|
|
3113
3243
|
exports.UpdateInvoiceBody = zod
|
|
3114
3244
|
.object({
|
|
@@ -3236,7 +3366,7 @@ exports.UpdateInvoiceBody = zod
|
|
|
3236
3366
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
3237
3367
|
.default(exports.updateInvoiceBodyLinesItemPriceOneOnePaymentTermDefault)
|
|
3238
3368
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
3239
|
-
type: zod.enum(['flat']),
|
|
3369
|
+
type: zod.enum(['flat']).describe('The type of the price.'),
|
|
3240
3370
|
})
|
|
3241
3371
|
.describe('Flat price with payment term.'),
|
|
3242
3372
|
zod
|
|
@@ -3258,7 +3388,7 @@ exports.UpdateInvoiceBody = zod
|
|
|
3258
3388
|
.describe('Numeric represents an arbitrary precision number.')
|
|
3259
3389
|
.optional()
|
|
3260
3390
|
.describe('The customer is committed to spend at least the amount.'),
|
|
3261
|
-
type: zod.enum(['unit']),
|
|
3391
|
+
type: zod.enum(['unit']).describe('The type of the price.'),
|
|
3262
3392
|
})
|
|
3263
3393
|
.describe('Unit price with spend commitments.'),
|
|
3264
3394
|
zod
|
|
@@ -3320,7 +3450,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3320
3450
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
3321
3451
|
.min(1)
|
|
3322
3452
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
3323
|
-
type: zod
|
|
3453
|
+
type: zod
|
|
3454
|
+
.enum(['tiered'])
|
|
3455
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
3324
3456
|
})
|
|
3325
3457
|
.describe('Tiered price with spend commitments.'),
|
|
3326
3458
|
zod
|
|
@@ -3343,7 +3475,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3343
3475
|
.describe('Numeric represents an arbitrary precision number.')
|
|
3344
3476
|
.default(exports.updateInvoiceBodyLinesItemPriceOneFourMultiplierDefault)
|
|
3345
3477
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
3346
|
-
type: zod
|
|
3478
|
+
type: zod
|
|
3479
|
+
.enum(['dynamic'])
|
|
3480
|
+
.describe('The type of the price.'),
|
|
3347
3481
|
})
|
|
3348
3482
|
.describe('Dynamic price with spend commitments.'),
|
|
3349
3483
|
zod
|
|
@@ -3370,7 +3504,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3370
3504
|
.regex(exports.updateInvoiceBodyLinesItemPriceOneFiveQuantityPerPackageOneRegExp)
|
|
3371
3505
|
.describe('Numeric represents an arbitrary precision number.')
|
|
3372
3506
|
.describe('The quantity per package.'),
|
|
3373
|
-
type: zod
|
|
3507
|
+
type: zod
|
|
3508
|
+
.enum(['package'])
|
|
3509
|
+
.describe('The type of the price.'),
|
|
3374
3510
|
})
|
|
3375
3511
|
.describe('Package price with spend commitments.'),
|
|
3376
3512
|
])
|
|
@@ -3437,7 +3573,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3437
3573
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
3438
3574
|
.default(exports.updateInvoiceBodyLinesItemRateCardOnePriceOneOnePaymentTermDefault)
|
|
3439
3575
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
3440
|
-
type: zod
|
|
3576
|
+
type: zod
|
|
3577
|
+
.enum(['flat'])
|
|
3578
|
+
.describe('The type of the price.'),
|
|
3441
3579
|
})
|
|
3442
3580
|
.describe('Flat price with payment term.'),
|
|
3443
3581
|
zod
|
|
@@ -3459,7 +3597,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3459
3597
|
.describe('Numeric represents an arbitrary precision number.')
|
|
3460
3598
|
.optional()
|
|
3461
3599
|
.describe('The customer is committed to spend at least the amount.'),
|
|
3462
|
-
type: zod
|
|
3600
|
+
type: zod
|
|
3601
|
+
.enum(['unit'])
|
|
3602
|
+
.describe('The type of the price.'),
|
|
3463
3603
|
})
|
|
3464
3604
|
.describe('Unit price with spend commitments.'),
|
|
3465
3605
|
zod
|
|
@@ -3521,7 +3661,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3521
3661
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
3522
3662
|
.min(1)
|
|
3523
3663
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
3524
|
-
type: zod
|
|
3664
|
+
type: zod
|
|
3665
|
+
.enum(['tiered'])
|
|
3666
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
3525
3667
|
})
|
|
3526
3668
|
.describe('Tiered price with spend commitments.'),
|
|
3527
3669
|
zod
|
|
@@ -3544,7 +3686,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3544
3686
|
.describe('Numeric represents an arbitrary precision number.')
|
|
3545
3687
|
.default(exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFourMultiplierDefault)
|
|
3546
3688
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
3547
|
-
type: zod
|
|
3689
|
+
type: zod
|
|
3690
|
+
.enum(['dynamic'])
|
|
3691
|
+
.describe('The type of the price.'),
|
|
3548
3692
|
})
|
|
3549
3693
|
.describe('Dynamic price with spend commitments.'),
|
|
3550
3694
|
zod
|
|
@@ -3571,7 +3715,9 @@ exports.UpdateInvoiceBody = zod
|
|
|
3571
3715
|
.regex(exports.updateInvoiceBodyLinesItemRateCardOnePriceOneFiveQuantityPerPackageOneRegExp)
|
|
3572
3716
|
.describe('Numeric represents an arbitrary precision number.')
|
|
3573
3717
|
.describe('The quantity per package.'),
|
|
3574
|
-
type: zod
|
|
3718
|
+
type: zod
|
|
3719
|
+
.enum(['package'])
|
|
3720
|
+
.describe('The type of the price.'),
|
|
3575
3721
|
})
|
|
3576
3722
|
.describe('Package price with spend commitments.'),
|
|
3577
3723
|
])
|
|
@@ -3604,6 +3750,11 @@ exports.UpdateInvoiceBody = zod
|
|
|
3604
3750
|
.describe('The tax config for Stripe.')
|
|
3605
3751
|
.optional()
|
|
3606
3752
|
.describe('Stripe tax config.'),
|
|
3753
|
+
taxCodeId: zod.coerce
|
|
3754
|
+
.string()
|
|
3755
|
+
.regex(exports.updateInvoiceBodyLinesItemRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
3756
|
+
.optional()
|
|
3757
|
+
.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.'),
|
|
3607
3758
|
})
|
|
3608
3759
|
.describe('Set of provider specific tax configs.')
|
|
3609
3760
|
.optional()
|
|
@@ -3638,6 +3789,11 @@ exports.UpdateInvoiceBody = zod
|
|
|
3638
3789
|
.describe('The tax config for Stripe.')
|
|
3639
3790
|
.optional()
|
|
3640
3791
|
.describe('Stripe tax config.'),
|
|
3792
|
+
taxCodeId: zod.coerce
|
|
3793
|
+
.string()
|
|
3794
|
+
.regex(exports.updateInvoiceBodyLinesItemTaxConfigOneTaxCodeIdRegExp)
|
|
3795
|
+
.optional()
|
|
3796
|
+
.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.'),
|
|
3641
3797
|
})
|
|
3642
3798
|
.describe('Set of provider specific tax configs.')
|
|
3643
3799
|
.optional()
|
|
@@ -3751,6 +3907,11 @@ exports.UpdateInvoiceBody = zod
|
|
|
3751
3907
|
.describe('The tax config for Stripe.')
|
|
3752
3908
|
.optional()
|
|
3753
3909
|
.describe('Stripe tax config.'),
|
|
3910
|
+
taxCodeId: zod.coerce
|
|
3911
|
+
.string()
|
|
3912
|
+
.regex(exports.updateInvoiceBodyWorkflowOneWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp)
|
|
3913
|
+
.optional()
|
|
3914
|
+
.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.'),
|
|
3754
3915
|
})
|
|
3755
3916
|
.describe('Set of provider specific tax configs.')
|
|
3756
3917
|
.optional()
|
|
@@ -3868,7 +4029,9 @@ exports.VoidInvoiceActionBody = zod
|
|
|
3868
4029
|
.union([
|
|
3869
4030
|
zod
|
|
3870
4031
|
.object({
|
|
3871
|
-
type: zod
|
|
4032
|
+
type: zod
|
|
4033
|
+
.enum(['discard'])
|
|
4034
|
+
.describe('The action to take on the line item.'),
|
|
3872
4035
|
})
|
|
3873
4036
|
.describe('VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice.'),
|
|
3874
4037
|
zod
|
|
@@ -3877,7 +4040,9 @@ exports.VoidInvoiceActionBody = zod
|
|
|
3877
4040
|
.date()
|
|
3878
4041
|
.optional()
|
|
3879
4042
|
.describe('The time at which the line item should be invoiced again.\n\nIf not provided, the line item will be re-invoiced now.'),
|
|
3880
|
-
type: zod
|
|
4043
|
+
type: zod
|
|
4044
|
+
.enum(['pending'])
|
|
4045
|
+
.describe('The action to take on the line item.'),
|
|
3881
4046
|
})
|
|
3882
4047
|
.describe('VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice.'),
|
|
3883
4048
|
])
|
|
@@ -3899,7 +4064,9 @@ exports.VoidInvoiceActionBody = zod
|
|
|
3899
4064
|
.union([
|
|
3900
4065
|
zod
|
|
3901
4066
|
.object({
|
|
3902
|
-
type: zod
|
|
4067
|
+
type: zod
|
|
4068
|
+
.enum(['discard'])
|
|
4069
|
+
.describe('The action to take on the line item.'),
|
|
3903
4070
|
})
|
|
3904
4071
|
.describe('VoidInvoiceLineDiscardAction describes how to handle the voidied line item in the invoice.'),
|
|
3905
4072
|
zod
|
|
@@ -3908,7 +4075,9 @@ exports.VoidInvoiceActionBody = zod
|
|
|
3908
4075
|
.date()
|
|
3909
4076
|
.optional()
|
|
3910
4077
|
.describe('The time at which the line item should be invoiced again.\n\nIf not provided, the line item will be re-invoiced now.'),
|
|
3911
|
-
type: zod
|
|
4078
|
+
type: zod
|
|
4079
|
+
.enum(['pending'])
|
|
4080
|
+
.describe('The action to take on the line item.'),
|
|
3912
4081
|
})
|
|
3913
4082
|
.describe('VoidInvoiceLinePendingAction describes how to handle the voidied line item in the invoice.'),
|
|
3914
4083
|
])
|
|
@@ -3944,6 +4113,7 @@ exports.listBillingProfilesQueryIncludeArchivedDefault = false;
|
|
|
3944
4113
|
exports.listBillingProfilesQueryPageDefault = 1;
|
|
3945
4114
|
exports.listBillingProfilesQueryPageSizeDefault = 100;
|
|
3946
4115
|
exports.listBillingProfilesQueryPageSizeMax = 1000;
|
|
4116
|
+
exports.listBillingProfilesQueryOrderDefault = 'ASC';
|
|
3947
4117
|
exports.ListBillingProfilesQueryParams = zod.object({
|
|
3948
4118
|
expand: zod
|
|
3949
4119
|
.array(zod
|
|
@@ -3953,7 +4123,11 @@ exports.ListBillingProfilesQueryParams = zod.object({
|
|
|
3953
4123
|
includeArchived: zod.coerce
|
|
3954
4124
|
.boolean()
|
|
3955
4125
|
.default(exports.listBillingProfilesQueryIncludeArchivedDefault),
|
|
3956
|
-
order: zod
|
|
4126
|
+
order: zod
|
|
4127
|
+
.enum(['ASC', 'DESC'])
|
|
4128
|
+
.describe('The order direction.')
|
|
4129
|
+
.default(exports.listBillingProfilesQueryOrderDefault)
|
|
4130
|
+
.describe('The order direction.'),
|
|
3957
4131
|
orderBy: zod
|
|
3958
4132
|
.enum(['createdAt', 'updatedAt', 'default', 'name'])
|
|
3959
4133
|
.optional()
|
|
@@ -3993,6 +4167,7 @@ exports.createBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault = 'P0D
|
|
|
3993
4167
|
exports.createBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault = 'P30D';
|
|
3994
4168
|
exports.createBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = true;
|
|
3995
4169
|
exports.createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
4170
|
+
exports.createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3996
4171
|
exports.createBillingProfileBodyWorkflowOnePaymentOneCollectionMethodDefault = 'charge_automatically';
|
|
3997
4172
|
exports.createBillingProfileBodyWorkflowOneTaxOneEnabledDefault = true;
|
|
3998
4173
|
exports.createBillingProfileBodyWorkflowOneTaxOneEnforcedDefault = false;
|
|
@@ -4111,7 +4286,9 @@ exports.CreateBillingProfileBody = zod
|
|
|
4111
4286
|
.union([
|
|
4112
4287
|
zod
|
|
4113
4288
|
.object({
|
|
4114
|
-
type: zod
|
|
4289
|
+
type: zod
|
|
4290
|
+
.enum(['subscription'])
|
|
4291
|
+
.describe('The type of alignment.'),
|
|
4115
4292
|
})
|
|
4116
4293
|
.describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.'),
|
|
4117
4294
|
zod
|
|
@@ -4135,7 +4312,9 @@ exports.CreateBillingProfileBody = zod
|
|
|
4135
4312
|
})
|
|
4136
4313
|
.describe('Recurring period with an interval and an anchor.')
|
|
4137
4314
|
.describe('The recurring period for the alignment.'),
|
|
4138
|
-
type: zod
|
|
4315
|
+
type: zod
|
|
4316
|
+
.enum(['anchored'])
|
|
4317
|
+
.describe('The type of alignment.'),
|
|
4139
4318
|
})
|
|
4140
4319
|
.describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.'),
|
|
4141
4320
|
])
|
|
@@ -4182,6 +4361,11 @@ exports.CreateBillingProfileBody = zod
|
|
|
4182
4361
|
.describe('The tax config for Stripe.')
|
|
4183
4362
|
.optional()
|
|
4184
4363
|
.describe('Stripe tax config.'),
|
|
4364
|
+
taxCodeId: zod.coerce
|
|
4365
|
+
.string()
|
|
4366
|
+
.regex(exports.createBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp)
|
|
4367
|
+
.optional()
|
|
4368
|
+
.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.'),
|
|
4185
4369
|
})
|
|
4186
4370
|
.describe('Set of provider specific tax configs.')
|
|
4187
4371
|
.optional()
|
|
@@ -4291,6 +4475,7 @@ exports.updateBillingProfileBodyWorkflowOneInvoicingOneDraftPeriodDefault = 'P0D
|
|
|
4291
4475
|
exports.updateBillingProfileBodyWorkflowOneInvoicingOneDueAfterDefault = 'P30D';
|
|
4292
4476
|
exports.updateBillingProfileBodyWorkflowOneInvoicingOneProgressiveBillingDefault = true;
|
|
4293
4477
|
exports.updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
4478
|
+
exports.updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4294
4479
|
exports.updateBillingProfileBodyWorkflowOnePaymentOneCollectionMethodDefault = 'charge_automatically';
|
|
4295
4480
|
exports.updateBillingProfileBodyWorkflowOneTaxOneEnabledDefault = true;
|
|
4296
4481
|
exports.updateBillingProfileBodyWorkflowOneTaxOneEnforcedDefault = false;
|
|
@@ -4389,7 +4574,9 @@ exports.UpdateBillingProfileBody = zod
|
|
|
4389
4574
|
.union([
|
|
4390
4575
|
zod
|
|
4391
4576
|
.object({
|
|
4392
|
-
type: zod
|
|
4577
|
+
type: zod
|
|
4578
|
+
.enum(['subscription'])
|
|
4579
|
+
.describe('The type of alignment.'),
|
|
4393
4580
|
})
|
|
4394
4581
|
.describe('BillingWorkflowCollectionAlignmentSubscription specifies the alignment for collecting the pending line items\ninto an invoice.'),
|
|
4395
4582
|
zod
|
|
@@ -4413,7 +4600,9 @@ exports.UpdateBillingProfileBody = zod
|
|
|
4413
4600
|
})
|
|
4414
4601
|
.describe('Recurring period with an interval and an anchor.')
|
|
4415
4602
|
.describe('The recurring period for the alignment.'),
|
|
4416
|
-
type: zod
|
|
4603
|
+
type: zod
|
|
4604
|
+
.enum(['anchored'])
|
|
4605
|
+
.describe('The type of alignment.'),
|
|
4417
4606
|
})
|
|
4418
4607
|
.describe('BillingWorkflowCollectionAlignmentAnchored specifies the alignment for collecting the pending line items\ninto an invoice.'),
|
|
4419
4608
|
])
|
|
@@ -4460,6 +4649,11 @@ exports.UpdateBillingProfileBody = zod
|
|
|
4460
4649
|
.describe('The tax config for Stripe.')
|
|
4461
4650
|
.optional()
|
|
4462
4651
|
.describe('Stripe tax config.'),
|
|
4652
|
+
taxCodeId: zod.coerce
|
|
4653
|
+
.string()
|
|
4654
|
+
.regex(exports.updateBillingProfileBodyWorkflowOneInvoicingOneDefaultTaxConfigOneTaxCodeIdRegExp)
|
|
4655
|
+
.optional()
|
|
4656
|
+
.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.'),
|
|
4463
4657
|
})
|
|
4464
4658
|
.describe('Set of provider specific tax configs.')
|
|
4465
4659
|
.optional()
|
|
@@ -4607,6 +4801,7 @@ exports.CreateCustomerBody = zod
|
|
|
4607
4801
|
exports.listCustomersQueryPageDefault = 1;
|
|
4608
4802
|
exports.listCustomersQueryPageSizeDefault = 100;
|
|
4609
4803
|
exports.listCustomersQueryPageSizeMax = 1000;
|
|
4804
|
+
exports.listCustomersQueryOrderDefault = 'ASC';
|
|
4610
4805
|
exports.listCustomersQueryIncludeDeletedDefault = false;
|
|
4611
4806
|
exports.ListCustomersQueryParams = zod.object({
|
|
4612
4807
|
expand: zod
|
|
@@ -4627,7 +4822,11 @@ exports.ListCustomersQueryParams = zod.object({
|
|
|
4627
4822
|
.string()
|
|
4628
4823
|
.optional()
|
|
4629
4824
|
.describe('Filter customers by name.\nCase-insensitive partial match.'),
|
|
4630
|
-
order: zod
|
|
4825
|
+
order: zod
|
|
4826
|
+
.enum(['ASC', 'DESC'])
|
|
4827
|
+
.describe('The order direction.')
|
|
4828
|
+
.default(exports.listCustomersQueryOrderDefault)
|
|
4829
|
+
.describe('The order direction.'),
|
|
4631
4830
|
orderBy: zod
|
|
4632
4831
|
.enum(['id', 'name', 'createdAt'])
|
|
4633
4832
|
.optional()
|
|
@@ -4913,7 +5112,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
|
|
|
4913
5112
|
.string()
|
|
4914
5113
|
.optional()
|
|
4915
5114
|
.describe('The Stripe default payment method ID.'),
|
|
4916
|
-
type: zod.enum(['stripe']),
|
|
5115
|
+
type: zod.enum(['stripe']).describe('The app name.'),
|
|
4917
5116
|
})
|
|
4918
5117
|
.describe('Stripe Customer App Data.'),
|
|
4919
5118
|
zod
|
|
@@ -5000,7 +5199,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
|
|
|
5000
5199
|
.enum(['ready', 'unauthorized'])
|
|
5001
5200
|
.describe('App installed status.')
|
|
5002
5201
|
.describe('Status of the app connection.'),
|
|
5003
|
-
type: zod.enum(['sandbox']),
|
|
5202
|
+
type: zod.enum(['sandbox']).describe("The app's type is Sandbox."),
|
|
5004
5203
|
updatedAt: zod.coerce
|
|
5005
5204
|
.date()
|
|
5006
5205
|
.describe('Timestamp of when the resource was last updated.'),
|
|
@@ -5013,7 +5212,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
|
|
|
5013
5212
|
.regex(exports.upsertCustomerAppDataBodyTwoIdRegExp)
|
|
5014
5213
|
.optional()
|
|
5015
5214
|
.describe('The app ID.\nIf not provided, it will use the global default for the app type.'),
|
|
5016
|
-
type: zod.enum(['sandbox']),
|
|
5215
|
+
type: zod.enum(['sandbox']).describe('The app name.'),
|
|
5017
5216
|
})
|
|
5018
5217
|
.describe('Sandbox Customer App Data.'),
|
|
5019
5218
|
zod
|
|
@@ -5106,7 +5305,9 @@ exports.UpsertCustomerAppDataBodyItem = zod
|
|
|
5106
5305
|
.enum(['ready', 'unauthorized'])
|
|
5107
5306
|
.describe('App installed status.')
|
|
5108
5307
|
.describe('Status of the app connection.'),
|
|
5109
|
-
type: zod
|
|
5308
|
+
type: zod
|
|
5309
|
+
.enum(['custom_invoicing'])
|
|
5310
|
+
.describe("The app's type is CustomInvoicing."),
|
|
5110
5311
|
updatedAt: zod.coerce
|
|
5111
5312
|
.date()
|
|
5112
5313
|
.describe('Timestamp of when the resource was last updated.'),
|
|
@@ -5124,7 +5325,7 @@ exports.UpsertCustomerAppDataBodyItem = zod
|
|
|
5124
5325
|
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
5125
5326
|
.optional()
|
|
5126
5327
|
.describe('Metadata to be used by the custom invoicing provider.'),
|
|
5127
|
-
type: zod.enum(['custom_invoicing']),
|
|
5328
|
+
type: zod.enum(['custom_invoicing']).describe('The app name.'),
|
|
5128
5329
|
})
|
|
5129
5330
|
.describe('Custom Invoicing Customer App Data.'),
|
|
5130
5331
|
])
|
|
@@ -5287,11 +5488,16 @@ exports.ListCustomerSubscriptionsParams = zod.object({
|
|
|
5287
5488
|
.describe('ExternalKey is a looser version of key.'),
|
|
5288
5489
|
]),
|
|
5289
5490
|
});
|
|
5491
|
+
exports.listCustomerSubscriptionsQueryOrderDefault = 'ASC';
|
|
5290
5492
|
exports.listCustomerSubscriptionsQueryPageDefault = 1;
|
|
5291
5493
|
exports.listCustomerSubscriptionsQueryPageSizeDefault = 100;
|
|
5292
5494
|
exports.listCustomerSubscriptionsQueryPageSizeMax = 1000;
|
|
5293
5495
|
exports.ListCustomerSubscriptionsQueryParams = zod.object({
|
|
5294
|
-
order: zod
|
|
5496
|
+
order: zod
|
|
5497
|
+
.enum(['ASC', 'DESC'])
|
|
5498
|
+
.describe('The order direction.')
|
|
5499
|
+
.default(exports.listCustomerSubscriptionsQueryOrderDefault)
|
|
5500
|
+
.describe('The order direction.'),
|
|
5295
5501
|
orderBy: zod
|
|
5296
5502
|
.enum(['activeFrom', 'activeTo'])
|
|
5297
5503
|
.optional()
|
|
@@ -5330,6 +5536,7 @@ exports.listEntitlementsQueryOffsetDefault = 0;
|
|
|
5330
5536
|
exports.listEntitlementsQueryOffsetMin = 0;
|
|
5331
5537
|
exports.listEntitlementsQueryLimitDefault = 100;
|
|
5332
5538
|
exports.listEntitlementsQueryLimitMax = 1000;
|
|
5539
|
+
exports.listEntitlementsQueryOrderDefault = 'ASC';
|
|
5333
5540
|
exports.ListEntitlementsQueryParams = zod.object({
|
|
5334
5541
|
entitlementType: zod
|
|
5335
5542
|
.array(zod
|
|
@@ -5356,7 +5563,11 @@ exports.ListEntitlementsQueryParams = zod.object({
|
|
|
5356
5563
|
.min(exports.listEntitlementsQueryOffsetMin)
|
|
5357
5564
|
.default(exports.listEntitlementsQueryOffsetDefault)
|
|
5358
5565
|
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
5359
|
-
order: zod
|
|
5566
|
+
order: zod
|
|
5567
|
+
.enum(['ASC', 'DESC'])
|
|
5568
|
+
.describe('The order direction.')
|
|
5569
|
+
.default(exports.listEntitlementsQueryOrderDefault)
|
|
5570
|
+
.describe('The order direction.'),
|
|
5360
5571
|
orderBy: zod
|
|
5361
5572
|
.enum(['createdAt', 'updatedAt'])
|
|
5362
5573
|
.optional()
|
|
@@ -5476,6 +5687,7 @@ exports.IngestEventsBody = zod
|
|
|
5476
5687
|
specversion: zod.coerce
|
|
5477
5688
|
.string()
|
|
5478
5689
|
.min(1)
|
|
5690
|
+
.default(exports.ingestEventsBodyOneSpecversionDefault)
|
|
5479
5691
|
.describe('The version of the CloudEvents specification which the event uses.'),
|
|
5480
5692
|
subject: zod.coerce
|
|
5481
5693
|
.string()
|
|
@@ -5514,6 +5726,7 @@ exports.IngestEventsBody = zod
|
|
|
5514
5726
|
specversion: zod.coerce
|
|
5515
5727
|
.string()
|
|
5516
5728
|
.min(1)
|
|
5729
|
+
.default(exports.ingestEventsBodyTwoItemSpecversionDefault)
|
|
5517
5730
|
.describe('The version of the CloudEvents specification which the event uses.'),
|
|
5518
5731
|
subject: zod.coerce
|
|
5519
5732
|
.string()
|
|
@@ -5543,6 +5756,7 @@ exports.listFeaturesQueryOffsetDefault = 0;
|
|
|
5543
5756
|
exports.listFeaturesQueryOffsetMin = 0;
|
|
5544
5757
|
exports.listFeaturesQueryLimitDefault = 100;
|
|
5545
5758
|
exports.listFeaturesQueryLimitMax = 1000;
|
|
5759
|
+
exports.listFeaturesQueryOrderDefault = 'ASC';
|
|
5546
5760
|
exports.ListFeaturesQueryParams = zod.object({
|
|
5547
5761
|
includeArchived: zod.coerce
|
|
5548
5762
|
.boolean()
|
|
@@ -5563,7 +5777,11 @@ exports.ListFeaturesQueryParams = zod.object({
|
|
|
5563
5777
|
.min(exports.listFeaturesQueryOffsetMin)
|
|
5564
5778
|
.default(exports.listFeaturesQueryOffsetDefault)
|
|
5565
5779
|
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
5566
|
-
order: zod
|
|
5780
|
+
order: zod
|
|
5781
|
+
.enum(['ASC', 'DESC'])
|
|
5782
|
+
.describe('The order direction.')
|
|
5783
|
+
.default(exports.listFeaturesQueryOrderDefault)
|
|
5784
|
+
.describe('The order direction.'),
|
|
5567
5785
|
orderBy: zod
|
|
5568
5786
|
.enum(['id', 'key', 'name', 'createdAt', 'updatedAt'])
|
|
5569
5787
|
.optional()
|
|
@@ -5584,13 +5802,18 @@ exports.ListFeaturesQueryParams = zod.object({
|
|
|
5584
5802
|
* Features are either metered or static. A feature is metered if meterSlug is provided at creation.
|
|
5585
5803
|
For metered features you can pass additional filters that will be applied when calculating feature usage, based on the meter's groupBy fields.
|
|
5586
5804
|
Meters with SUM, COUNT, UNIQUE_COUNT and LATEST aggregations are supported for features.
|
|
5587
|
-
Features cannot be updated later, only archived.
|
|
5588
5805
|
* @summary Create feature
|
|
5589
5806
|
*/
|
|
5590
5807
|
exports.createFeatureBodyKeyMax = 64;
|
|
5591
5808
|
exports.createFeatureBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5592
5809
|
exports.createFeatureBodyMeterSlugMax = 64;
|
|
5593
5810
|
exports.createFeatureBodyMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5811
|
+
exports.createFeatureBodyUnitCostOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
5812
|
+
exports.createFeatureBodyUnitCostOneTwoPricingOneInputPerTokenOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
5813
|
+
exports.createFeatureBodyUnitCostOneTwoPricingOneOutputPerTokenOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
5814
|
+
exports.createFeatureBodyUnitCostOneTwoPricingOneCacheReadPerTokenOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
5815
|
+
exports.createFeatureBodyUnitCostOneTwoPricingOneReasoningPerTokenOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
5816
|
+
exports.createFeatureBodyUnitCostOneTwoPricingOneCacheWritePerTokenOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
5594
5817
|
exports.CreateFeatureBody = zod
|
|
5595
5818
|
.object({
|
|
5596
5819
|
advancedMeterGroupByFilters: zod
|
|
@@ -5678,6 +5901,85 @@ exports.CreateFeatureBody = zod
|
|
|
5678
5901
|
.optional()
|
|
5679
5902
|
.describe('A key is a unique string that is used to identify a resource.'),
|
|
5680
5903
|
name: zod.coerce.string(),
|
|
5904
|
+
unitCost: zod
|
|
5905
|
+
.union([
|
|
5906
|
+
zod
|
|
5907
|
+
.object({
|
|
5908
|
+
amount: zod.coerce
|
|
5909
|
+
.string()
|
|
5910
|
+
.regex(exports.createFeatureBodyUnitCostOneOneAmountOneRegExp)
|
|
5911
|
+
.describe('Numeric represents an arbitrary precision number.')
|
|
5912
|
+
.describe('Fixed per-unit cost amount in USD.'),
|
|
5913
|
+
type: zod.enum(['manual']),
|
|
5914
|
+
})
|
|
5915
|
+
.describe('A fixed per-unit cost amount.'),
|
|
5916
|
+
zod
|
|
5917
|
+
.object({
|
|
5918
|
+
model: zod.coerce
|
|
5919
|
+
.string()
|
|
5920
|
+
.optional()
|
|
5921
|
+
.describe('Static model ID value (e.g., "gpt-4", "claude-3-5-sonnet").\nUse this when the feature tracks a single model.\nMutually exclusive with `modelProperty`.'),
|
|
5922
|
+
modelProperty: zod.coerce
|
|
5923
|
+
.string()
|
|
5924
|
+
.optional()
|
|
5925
|
+
.describe('Meter group-by property that holds the model ID.\nUse this when the meter has a group-by dimension for model.\nMutually exclusive with `model`.'),
|
|
5926
|
+
pricing: zod
|
|
5927
|
+
.object({
|
|
5928
|
+
cacheReadPerToken: zod.coerce
|
|
5929
|
+
.string()
|
|
5930
|
+
.regex(exports.createFeatureBodyUnitCostOneTwoPricingOneCacheReadPerTokenOneRegExp)
|
|
5931
|
+
.describe('Numeric represents an arbitrary precision number.')
|
|
5932
|
+
.optional()
|
|
5933
|
+
.describe('Cost per cache read token in USD.'),
|
|
5934
|
+
cacheWritePerToken: zod.coerce
|
|
5935
|
+
.string()
|
|
5936
|
+
.regex(exports.createFeatureBodyUnitCostOneTwoPricingOneCacheWritePerTokenOneRegExp)
|
|
5937
|
+
.describe('Numeric represents an arbitrary precision number.')
|
|
5938
|
+
.optional()
|
|
5939
|
+
.describe('Cost per cache write token in USD.'),
|
|
5940
|
+
inputPerToken: zod.coerce
|
|
5941
|
+
.string()
|
|
5942
|
+
.regex(exports.createFeatureBodyUnitCostOneTwoPricingOneInputPerTokenOneRegExp)
|
|
5943
|
+
.describe('Numeric represents an arbitrary precision number.')
|
|
5944
|
+
.describe('Cost per input token in USD.'),
|
|
5945
|
+
outputPerToken: zod.coerce
|
|
5946
|
+
.string()
|
|
5947
|
+
.regex(exports.createFeatureBodyUnitCostOneTwoPricingOneOutputPerTokenOneRegExp)
|
|
5948
|
+
.describe('Numeric represents an arbitrary precision number.')
|
|
5949
|
+
.describe('Cost per output token in USD.'),
|
|
5950
|
+
reasoningPerToken: zod.coerce
|
|
5951
|
+
.string()
|
|
5952
|
+
.regex(exports.createFeatureBodyUnitCostOneTwoPricingOneReasoningPerTokenOneRegExp)
|
|
5953
|
+
.describe('Numeric represents an arbitrary precision number.')
|
|
5954
|
+
.optional()
|
|
5955
|
+
.describe('Cost per reasoning token in USD.'),
|
|
5956
|
+
})
|
|
5957
|
+
.describe('Resolved per-token pricing from the LLM cost database.')
|
|
5958
|
+
.optional()
|
|
5959
|
+
.describe("Resolved per-token pricing from the LLM cost database.\nOnly populated in responses when the feature's meter group-by filters\nspecify exact provider and model values."),
|
|
5960
|
+
provider: zod.coerce
|
|
5961
|
+
.string()
|
|
5962
|
+
.optional()
|
|
5963
|
+
.describe('Static LLM provider value (e.g., "openai", "anthropic").\nUse this when the feature tracks a single provider.\nMutually exclusive with `providerProperty`.'),
|
|
5964
|
+
providerProperty: zod.coerce
|
|
5965
|
+
.string()
|
|
5966
|
+
.optional()
|
|
5967
|
+
.describe('Meter group-by property that holds the LLM provider.\nUse this when the meter has a group-by dimension for provider.\nMutually exclusive with `provider`.'),
|
|
5968
|
+
tokenType: zod.coerce
|
|
5969
|
+
.string()
|
|
5970
|
+
.optional()
|
|
5971
|
+
.describe('Static token type value.\nUse this when the feature tracks a single token type (e.g., only input tokens).\nExpected values: input, output, cache_read, reasoning, cache_write, request, response.\n`request` is an alias for `input`, `response` is an alias for `output`.\nMutually exclusive with `tokenTypeProperty`.'),
|
|
5972
|
+
tokenTypeProperty: zod.coerce
|
|
5973
|
+
.string()
|
|
5974
|
+
.optional()
|
|
5975
|
+
.describe('Meter group-by property that holds the token type.\nUse this when the meter has a group-by dimension for token type.\nMutually exclusive with `tokenType`.'),
|
|
5976
|
+
type: zod.enum(['llm']),
|
|
5977
|
+
})
|
|
5978
|
+
.describe('LLM cost lookup configuration.\nMaps meter group-by dimensions to LLM cost database fields.'),
|
|
5979
|
+
])
|
|
5980
|
+
.describe('Per-unit cost configuration for a feature.\nEither a fixed manual amount or a dynamic LLM cost lookup.')
|
|
5981
|
+
.optional()
|
|
5982
|
+
.describe('Optional per-unit cost configuration.\nUse "manual" for a fixed per-unit cost, or "llm" to look up cost\nfrom the LLM cost database based on meter group-by properties.'),
|
|
5681
5983
|
})
|
|
5682
5984
|
.describe('Represents a feature that can be enabled or disabled for a plan.\nUsed both for product catalog and entitlements.');
|
|
5683
5985
|
/**
|
|
@@ -5714,6 +6016,7 @@ exports.listGrantsQueryOffsetDefault = 0;
|
|
|
5714
6016
|
exports.listGrantsQueryOffsetMin = 0;
|
|
5715
6017
|
exports.listGrantsQueryLimitDefault = 100;
|
|
5716
6018
|
exports.listGrantsQueryLimitMax = 1000;
|
|
6019
|
+
exports.listGrantsQueryOrderDefault = 'ASC';
|
|
5717
6020
|
exports.ListGrantsQueryParams = zod.object({
|
|
5718
6021
|
feature: zod
|
|
5719
6022
|
.array(zod.coerce.string())
|
|
@@ -5734,7 +6037,11 @@ exports.ListGrantsQueryParams = zod.object({
|
|
|
5734
6037
|
.min(exports.listGrantsQueryOffsetMin)
|
|
5735
6038
|
.default(exports.listGrantsQueryOffsetDefault)
|
|
5736
6039
|
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
5737
|
-
order: zod
|
|
6040
|
+
order: zod
|
|
6041
|
+
.enum(['ASC', 'DESC'])
|
|
6042
|
+
.describe('The order direction.')
|
|
6043
|
+
.default(exports.listGrantsQueryOrderDefault)
|
|
6044
|
+
.describe('The order direction.'),
|
|
5738
6045
|
orderBy: zod
|
|
5739
6046
|
.enum(['id', 'createdAt', 'updatedAt'])
|
|
5740
6047
|
.optional()
|
|
@@ -5763,6 +6070,12 @@ For example, if you have a single grant for your metered entitlement with an ini
|
|
|
5763
6070
|
exports.VoidGrantParams = zod.object({
|
|
5764
6071
|
grantId: zod.coerce.string(),
|
|
5765
6072
|
});
|
|
6073
|
+
exports.VoidGrantQueryParams = zod.object({
|
|
6074
|
+
at: zod.coerce
|
|
6075
|
+
.date()
|
|
6076
|
+
.optional()
|
|
6077
|
+
.describe('The time at which the grant should be voided.\nMust not be in the future and must be within the current usage period of the entitlement.\nDefaults to the current time if not specified.'),
|
|
6078
|
+
});
|
|
5766
6079
|
/**
|
|
5767
6080
|
* Get progress
|
|
5768
6081
|
* @summary Get progress
|
|
@@ -5897,13 +6210,18 @@ exports.MarketplaceOAuth2InstallAuthorizeQueryParams = zod.object({
|
|
|
5897
6210
|
exports.listMetersQueryPageDefault = 1;
|
|
5898
6211
|
exports.listMetersQueryPageSizeDefault = 100;
|
|
5899
6212
|
exports.listMetersQueryPageSizeMax = 1000;
|
|
6213
|
+
exports.listMetersQueryOrderDefault = 'ASC';
|
|
5900
6214
|
exports.listMetersQueryIncludeDeletedDefault = false;
|
|
5901
6215
|
exports.ListMetersQueryParams = zod.object({
|
|
5902
6216
|
includeDeleted: zod.coerce
|
|
5903
6217
|
.boolean()
|
|
5904
6218
|
.default(exports.listMetersQueryIncludeDeletedDefault)
|
|
5905
6219
|
.describe('Include deleted meters.'),
|
|
5906
|
-
order: zod
|
|
6220
|
+
order: zod
|
|
6221
|
+
.enum(['ASC', 'DESC'])
|
|
6222
|
+
.describe('The order direction.')
|
|
6223
|
+
.default(exports.listMetersQueryOrderDefault)
|
|
6224
|
+
.describe('The order direction.'),
|
|
5907
6225
|
orderBy: zod
|
|
5908
6226
|
.enum(['key', 'name', 'aggregation', 'createdAt', 'updatedAt'])
|
|
5909
6227
|
.optional()
|
|
@@ -6279,6 +6597,7 @@ exports.listNotificationChannelsQueryIncludeDisabledDefault = false;
|
|
|
6279
6597
|
exports.listNotificationChannelsQueryPageDefault = 1;
|
|
6280
6598
|
exports.listNotificationChannelsQueryPageSizeDefault = 100;
|
|
6281
6599
|
exports.listNotificationChannelsQueryPageSizeMax = 1000;
|
|
6600
|
+
exports.listNotificationChannelsQueryOrderDefault = 'ASC';
|
|
6282
6601
|
exports.ListNotificationChannelsQueryParams = zod.object({
|
|
6283
6602
|
includeDeleted: zod.coerce
|
|
6284
6603
|
.boolean()
|
|
@@ -6288,7 +6607,11 @@ exports.ListNotificationChannelsQueryParams = zod.object({
|
|
|
6288
6607
|
.boolean()
|
|
6289
6608
|
.default(exports.listNotificationChannelsQueryIncludeDisabledDefault)
|
|
6290
6609
|
.describe('Include disabled notification channels in response.\n\nUsage: `?includeDisabled=false`'),
|
|
6291
|
-
order: zod
|
|
6610
|
+
order: zod
|
|
6611
|
+
.enum(['ASC', 'DESC'])
|
|
6612
|
+
.describe('The order direction.')
|
|
6613
|
+
.default(exports.listNotificationChannelsQueryOrderDefault)
|
|
6614
|
+
.describe('The order direction.'),
|
|
6292
6615
|
orderBy: zod
|
|
6293
6616
|
.enum(['id', 'type', 'createdAt', 'updatedAt'])
|
|
6294
6617
|
.optional()
|
|
@@ -6420,6 +6743,7 @@ exports.listNotificationEventsQueryChannelItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za
|
|
|
6420
6743
|
exports.listNotificationEventsQueryPageDefault = 1;
|
|
6421
6744
|
exports.listNotificationEventsQueryPageSizeDefault = 100;
|
|
6422
6745
|
exports.listNotificationEventsQueryPageSizeMax = 1000;
|
|
6746
|
+
exports.listNotificationEventsQueryOrderDefault = 'ASC';
|
|
6423
6747
|
exports.ListNotificationEventsQueryParams = zod.object({
|
|
6424
6748
|
channel: zod
|
|
6425
6749
|
.array(zod.coerce
|
|
@@ -6436,7 +6760,11 @@ exports.ListNotificationEventsQueryParams = zod.object({
|
|
|
6436
6760
|
.date()
|
|
6437
6761
|
.optional()
|
|
6438
6762
|
.describe('Start date-time in RFC 3339 format.\nInclusive.'),
|
|
6439
|
-
order: zod
|
|
6763
|
+
order: zod
|
|
6764
|
+
.enum(['ASC', 'DESC'])
|
|
6765
|
+
.describe('The order direction.')
|
|
6766
|
+
.default(exports.listNotificationEventsQueryOrderDefault)
|
|
6767
|
+
.describe('The order direction.'),
|
|
6440
6768
|
orderBy: zod
|
|
6441
6769
|
.enum(['id', 'createdAt'])
|
|
6442
6770
|
.optional()
|
|
@@ -6505,6 +6833,7 @@ exports.listNotificationRulesQueryFeatureItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*
|
|
|
6505
6833
|
exports.listNotificationRulesQueryPageDefault = 1;
|
|
6506
6834
|
exports.listNotificationRulesQueryPageSizeDefault = 100;
|
|
6507
6835
|
exports.listNotificationRulesQueryPageSizeMax = 1000;
|
|
6836
|
+
exports.listNotificationRulesQueryOrderDefault = 'ASC';
|
|
6508
6837
|
exports.ListNotificationRulesQueryParams = zod.object({
|
|
6509
6838
|
channel: zod
|
|
6510
6839
|
.array(zod.coerce.string())
|
|
@@ -6527,7 +6856,11 @@ exports.ListNotificationRulesQueryParams = zod.object({
|
|
|
6527
6856
|
.boolean()
|
|
6528
6857
|
.default(exports.listNotificationRulesQueryIncludeDisabledDefault)
|
|
6529
6858
|
.describe('Include disabled notification rules in response.\n\nUsage: `?includeDisabled=false`'),
|
|
6530
|
-
order: zod
|
|
6859
|
+
order: zod
|
|
6860
|
+
.enum(['ASC', 'DESC'])
|
|
6861
|
+
.describe('The order direction.')
|
|
6862
|
+
.default(exports.listNotificationRulesQueryOrderDefault)
|
|
6863
|
+
.describe('The order direction.'),
|
|
6531
6864
|
orderBy: zod
|
|
6532
6865
|
.enum(['id', 'type', 'createdAt', 'updatedAt'])
|
|
6533
6866
|
.optional()
|
|
@@ -6619,7 +6952,9 @@ exports.CreateNotificationRuleBody = zod
|
|
|
6619
6952
|
.min(1)
|
|
6620
6953
|
.max(exports.createNotificationRuleBodyOneThresholdsMax)
|
|
6621
6954
|
.describe('List of thresholds the rule suppose to be triggered.'),
|
|
6622
|
-
type: zod
|
|
6955
|
+
type: zod
|
|
6956
|
+
.enum(['entitlements.balance.threshold'])
|
|
6957
|
+
.describe('Notification rule type.'),
|
|
6623
6958
|
})
|
|
6624
6959
|
.describe('Request with input parameters for creating new notification rule with entitlements.balance.threshold type.'),
|
|
6625
6960
|
zod
|
|
@@ -6655,7 +6990,9 @@ exports.CreateNotificationRuleBody = zod
|
|
|
6655
6990
|
.min(1)
|
|
6656
6991
|
.max(exports.createNotificationRuleBodyTwoNameMax)
|
|
6657
6992
|
.describe('The user friendly name of the notification rule.'),
|
|
6658
|
-
type: zod
|
|
6993
|
+
type: zod
|
|
6994
|
+
.enum(['entitlements.reset'])
|
|
6995
|
+
.describe('Notification rule type.'),
|
|
6659
6996
|
})
|
|
6660
6997
|
.describe('Request with input parameters for creating new notification rule with entitlements.reset type.'),
|
|
6661
6998
|
zod
|
|
@@ -6681,7 +7018,7 @@ exports.CreateNotificationRuleBody = zod
|
|
|
6681
7018
|
.min(1)
|
|
6682
7019
|
.max(exports.createNotificationRuleBodyThreeNameMax)
|
|
6683
7020
|
.describe('The user friendly name of the notification rule.'),
|
|
6684
|
-
type: zod.enum(['invoice.created']),
|
|
7021
|
+
type: zod.enum(['invoice.created']).describe('Notification rule type.'),
|
|
6685
7022
|
})
|
|
6686
7023
|
.describe('Request with input parameters for creating new notification rule with invoice.created type.'),
|
|
6687
7024
|
zod
|
|
@@ -6707,7 +7044,7 @@ exports.CreateNotificationRuleBody = zod
|
|
|
6707
7044
|
.min(1)
|
|
6708
7045
|
.max(exports.createNotificationRuleBodyFourNameMax)
|
|
6709
7046
|
.describe('The user friendly name of the notification rule.'),
|
|
6710
|
-
type: zod.enum(['invoice.updated']),
|
|
7047
|
+
type: zod.enum(['invoice.updated']).describe('Notification rule type.'),
|
|
6711
7048
|
})
|
|
6712
7049
|
.describe('Request with input parameters for creating new notification rule with invoice.updated type.'),
|
|
6713
7050
|
])
|
|
@@ -6791,7 +7128,9 @@ exports.UpdateNotificationRuleBody = zod
|
|
|
6791
7128
|
.min(1)
|
|
6792
7129
|
.max(exports.updateNotificationRuleBodyOneThresholdsMax)
|
|
6793
7130
|
.describe('List of thresholds the rule suppose to be triggered.'),
|
|
6794
|
-
type: zod
|
|
7131
|
+
type: zod
|
|
7132
|
+
.enum(['entitlements.balance.threshold'])
|
|
7133
|
+
.describe('Notification rule type.'),
|
|
6795
7134
|
})
|
|
6796
7135
|
.describe('Request with input parameters for creating new notification rule with entitlements.balance.threshold type.'),
|
|
6797
7136
|
zod
|
|
@@ -6827,7 +7166,9 @@ exports.UpdateNotificationRuleBody = zod
|
|
|
6827
7166
|
.min(1)
|
|
6828
7167
|
.max(exports.updateNotificationRuleBodyTwoNameMax)
|
|
6829
7168
|
.describe('The user friendly name of the notification rule.'),
|
|
6830
|
-
type: zod
|
|
7169
|
+
type: zod
|
|
7170
|
+
.enum(['entitlements.reset'])
|
|
7171
|
+
.describe('Notification rule type.'),
|
|
6831
7172
|
})
|
|
6832
7173
|
.describe('Request with input parameters for creating new notification rule with entitlements.reset type.'),
|
|
6833
7174
|
zod
|
|
@@ -6853,7 +7194,7 @@ exports.UpdateNotificationRuleBody = zod
|
|
|
6853
7194
|
.min(1)
|
|
6854
7195
|
.max(exports.updateNotificationRuleBodyThreeNameMax)
|
|
6855
7196
|
.describe('The user friendly name of the notification rule.'),
|
|
6856
|
-
type: zod.enum(['invoice.created']),
|
|
7197
|
+
type: zod.enum(['invoice.created']).describe('Notification rule type.'),
|
|
6857
7198
|
})
|
|
6858
7199
|
.describe('Request with input parameters for creating new notification rule with invoice.created type.'),
|
|
6859
7200
|
zod
|
|
@@ -6879,7 +7220,7 @@ exports.UpdateNotificationRuleBody = zod
|
|
|
6879
7220
|
.min(1)
|
|
6880
7221
|
.max(exports.updateNotificationRuleBodyFourNameMax)
|
|
6881
7222
|
.describe('The user friendly name of the notification rule.'),
|
|
6882
|
-
type: zod.enum(['invoice.updated']),
|
|
7223
|
+
type: zod.enum(['invoice.updated']).describe('Notification rule type.'),
|
|
6883
7224
|
})
|
|
6884
7225
|
.describe('Request with input parameters for creating new notification rule with invoice.updated type.'),
|
|
6885
7226
|
])
|
|
@@ -6924,6 +7265,7 @@ exports.listPlansQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
|
|
|
6924
7265
|
exports.listPlansQueryPageDefault = 1;
|
|
6925
7266
|
exports.listPlansQueryPageSizeDefault = 100;
|
|
6926
7267
|
exports.listPlansQueryPageSizeMax = 1000;
|
|
7268
|
+
exports.listPlansQueryOrderDefault = 'ASC';
|
|
6927
7269
|
exports.ListPlansQueryParams = zod.object({
|
|
6928
7270
|
currency: zod
|
|
6929
7271
|
.array(zod.coerce
|
|
@@ -6958,7 +7300,11 @@ exports.ListPlansQueryParams = zod.object({
|
|
|
6958
7300
|
.record(zod.string(), zod.array(zod.coerce.number()))
|
|
6959
7301
|
.optional()
|
|
6960
7302
|
.describe('Filter by plan.key and plan.version attributes'),
|
|
6961
|
-
order: zod
|
|
7303
|
+
order: zod
|
|
7304
|
+
.enum(['ASC', 'DESC'])
|
|
7305
|
+
.describe('The order direction.')
|
|
7306
|
+
.default(exports.listPlansQueryOrderDefault)
|
|
7307
|
+
.describe('The order direction.'),
|
|
6962
7308
|
orderBy: zod
|
|
6963
7309
|
.enum(['id', 'key', 'version', 'created_at', 'updated_at'])
|
|
6964
7310
|
.optional()
|
|
@@ -6999,6 +7345,7 @@ exports.createPlanBodyProRatingConfigDefault = {
|
|
|
6999
7345
|
enabled: true,
|
|
7000
7346
|
mode: 'prorate_prices',
|
|
7001
7347
|
};
|
|
7348
|
+
exports.createPlanBodySettlementModeDefault = 'credit_then_invoice';
|
|
7002
7349
|
exports.createPlanBodyPhasesItemKeyMax = 64;
|
|
7003
7350
|
exports.createPlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7004
7351
|
exports.createPlanBodyPhasesItemNameMax = 256;
|
|
@@ -7015,6 +7362,7 @@ exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAf
|
|
|
7015
7362
|
exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7016
7363
|
exports.createPlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7017
7364
|
exports.createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
7365
|
+
exports.createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7018
7366
|
exports.createPlanBodyPhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7019
7367
|
exports.createPlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
7020
7368
|
exports.createPlanBodyPhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7030,6 +7378,7 @@ exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAf
|
|
|
7030
7378
|
exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7031
7379
|
exports.createPlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7032
7380
|
exports.createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
7381
|
+
exports.createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7033
7382
|
exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7034
7383
|
exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
7035
7384
|
exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7070,6 +7419,7 @@ exports.CreatePlanBody = zod
|
|
|
7070
7419
|
.max(exports.createPlanBodyCurrencyOneMax)
|
|
7071
7420
|
.regex(exports.createPlanBodyCurrencyOneRegExp)
|
|
7072
7421
|
.describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
|
|
7422
|
+
.default(exports.createPlanBodyCurrencyDefault)
|
|
7073
7423
|
.describe('The currency code of the plan.'),
|
|
7074
7424
|
description: zod.coerce
|
|
7075
7425
|
.string()
|
|
@@ -7258,7 +7608,9 @@ exports.CreatePlanBody = zod
|
|
|
7258
7608
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
7259
7609
|
.default(exports.createPlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
|
|
7260
7610
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
7261
|
-
type: zod
|
|
7611
|
+
type: zod
|
|
7612
|
+
.enum(['flat'])
|
|
7613
|
+
.describe('The type of the price.'),
|
|
7262
7614
|
})
|
|
7263
7615
|
.describe('Flat price with payment term.')
|
|
7264
7616
|
.nullable()
|
|
@@ -7289,11 +7641,18 @@ exports.CreatePlanBody = zod
|
|
|
7289
7641
|
.describe('The tax config for Stripe.')
|
|
7290
7642
|
.optional()
|
|
7291
7643
|
.describe('Stripe tax config.'),
|
|
7644
|
+
taxCodeId: zod.coerce
|
|
7645
|
+
.string()
|
|
7646
|
+
.regex(exports.createPlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
7647
|
+
.optional()
|
|
7648
|
+
.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.'),
|
|
7292
7649
|
})
|
|
7293
7650
|
.describe('Set of provider specific tax configs.')
|
|
7294
7651
|
.optional()
|
|
7295
7652
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
7296
|
-
type: zod
|
|
7653
|
+
type: zod
|
|
7654
|
+
.enum(['flat_fee'])
|
|
7655
|
+
.describe('The type of the RateCard.'),
|
|
7297
7656
|
})
|
|
7298
7657
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
7299
7658
|
zod
|
|
@@ -7432,7 +7791,9 @@ exports.CreatePlanBody = zod
|
|
|
7432
7791
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
7433
7792
|
.default(exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
|
|
7434
7793
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
7435
|
-
type: zod
|
|
7794
|
+
type: zod
|
|
7795
|
+
.enum(['flat'])
|
|
7796
|
+
.describe('The type of the price.'),
|
|
7436
7797
|
})
|
|
7437
7798
|
.describe('Flat price with payment term.'),
|
|
7438
7799
|
zod
|
|
@@ -7454,7 +7815,9 @@ exports.CreatePlanBody = zod
|
|
|
7454
7815
|
.describe('Numeric represents an arbitrary precision number.')
|
|
7455
7816
|
.optional()
|
|
7456
7817
|
.describe('The customer is committed to spend at least the amount.'),
|
|
7457
|
-
type: zod
|
|
7818
|
+
type: zod
|
|
7819
|
+
.enum(['unit'])
|
|
7820
|
+
.describe('The type of the price.'),
|
|
7458
7821
|
})
|
|
7459
7822
|
.describe('Unit price with spend commitments.'),
|
|
7460
7823
|
zod
|
|
@@ -7516,7 +7879,9 @@ exports.CreatePlanBody = zod
|
|
|
7516
7879
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
7517
7880
|
.min(1)
|
|
7518
7881
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
7519
|
-
type: zod
|
|
7882
|
+
type: zod
|
|
7883
|
+
.enum(['tiered'])
|
|
7884
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
7520
7885
|
})
|
|
7521
7886
|
.describe('Tiered price with spend commitments.'),
|
|
7522
7887
|
zod
|
|
@@ -7539,7 +7904,9 @@ exports.CreatePlanBody = zod
|
|
|
7539
7904
|
.describe('Numeric represents an arbitrary precision number.')
|
|
7540
7905
|
.default(exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
|
|
7541
7906
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
7542
|
-
type: zod
|
|
7907
|
+
type: zod
|
|
7908
|
+
.enum(['dynamic'])
|
|
7909
|
+
.describe('The type of the price.'),
|
|
7543
7910
|
})
|
|
7544
7911
|
.describe('Dynamic price with spend commitments.'),
|
|
7545
7912
|
zod
|
|
@@ -7566,7 +7933,9 @@ exports.CreatePlanBody = zod
|
|
|
7566
7933
|
.regex(exports.createPlanBodyPhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
7567
7934
|
.describe('Numeric represents an arbitrary precision number.')
|
|
7568
7935
|
.describe('The quantity per package.'),
|
|
7569
|
-
type: zod
|
|
7936
|
+
type: zod
|
|
7937
|
+
.enum(['package'])
|
|
7938
|
+
.describe('The type of the price.'),
|
|
7570
7939
|
})
|
|
7571
7940
|
.describe('Package price with spend commitments.'),
|
|
7572
7941
|
])
|
|
@@ -7599,11 +7968,18 @@ exports.CreatePlanBody = zod
|
|
|
7599
7968
|
.describe('The tax config for Stripe.')
|
|
7600
7969
|
.optional()
|
|
7601
7970
|
.describe('Stripe tax config.'),
|
|
7971
|
+
taxCodeId: zod.coerce
|
|
7972
|
+
.string()
|
|
7973
|
+
.regex(exports.createPlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
7974
|
+
.optional()
|
|
7975
|
+
.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.'),
|
|
7602
7976
|
})
|
|
7603
7977
|
.describe('Set of provider specific tax configs.')
|
|
7604
7978
|
.optional()
|
|
7605
7979
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
7606
|
-
type: zod
|
|
7980
|
+
type: zod
|
|
7981
|
+
.enum(['usage_based'])
|
|
7982
|
+
.describe('The type of the RateCard.'),
|
|
7607
7983
|
})
|
|
7608
7984
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
7609
7985
|
])
|
|
@@ -7617,15 +7993,22 @@ exports.CreatePlanBody = zod
|
|
|
7617
7993
|
.object({
|
|
7618
7994
|
enabled: zod.coerce
|
|
7619
7995
|
.boolean()
|
|
7996
|
+
.default(exports.createPlanBodyProRatingConfigOneEnabledDefault)
|
|
7620
7997
|
.describe('Whether pro-rating is enabled for this plan.'),
|
|
7621
7998
|
mode: zod
|
|
7622
7999
|
.enum(['prorate_prices'])
|
|
7623
8000
|
.describe('Pro-rating mode options for handling billing period changes.')
|
|
8001
|
+
.default(exports.createPlanBodyProRatingConfigOneModeDefault)
|
|
7624
8002
|
.describe('How to handle pro-rating for billing period changes.'),
|
|
7625
8003
|
})
|
|
7626
8004
|
.describe('Configuration for pro-rating behavior.')
|
|
7627
8005
|
.default(exports.createPlanBodyProRatingConfigDefault)
|
|
7628
8006
|
.describe('Default pro-rating configuration for subscriptions using this plan.'),
|
|
8007
|
+
settlementMode: zod
|
|
8008
|
+
.enum(['credit_then_invoice', 'credit_only'])
|
|
8009
|
+
.describe('The settlement mode of a plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.')
|
|
8010
|
+
.default(exports.createPlanBodySettlementModeDefault)
|
|
8011
|
+
.describe('The settlement mode of the plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.\nThis is the default and most common settlement mode.'),
|
|
7629
8012
|
})
|
|
7630
8013
|
.describe('Resource create operation model.');
|
|
7631
8014
|
/**
|
|
@@ -7659,6 +8042,7 @@ exports.updatePlanBodyProRatingConfigDefault = {
|
|
|
7659
8042
|
enabled: true,
|
|
7660
8043
|
mode: 'prorate_prices',
|
|
7661
8044
|
};
|
|
8045
|
+
exports.updatePlanBodySettlementModeDefault = 'credit_then_invoice';
|
|
7662
8046
|
exports.updatePlanBodyPhasesItemKeyMax = 64;
|
|
7663
8047
|
exports.updatePlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7664
8048
|
exports.updatePlanBodyPhasesItemNameMax = 256;
|
|
@@ -7675,6 +8059,7 @@ exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAf
|
|
|
7675
8059
|
exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7676
8060
|
exports.updatePlanBodyPhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7677
8061
|
exports.updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
8062
|
+
exports.updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7678
8063
|
exports.updatePlanBodyPhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7679
8064
|
exports.updatePlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
7680
8065
|
exports.updatePlanBodyPhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7690,6 +8075,7 @@ exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAf
|
|
|
7690
8075
|
exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
7691
8076
|
exports.updatePlanBodyPhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
7692
8077
|
exports.updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
8078
|
+
exports.updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7693
8079
|
exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7694
8080
|
exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
7695
8081
|
exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -7905,7 +8291,9 @@ exports.UpdatePlanBody = zod
|
|
|
7905
8291
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
7906
8292
|
.default(exports.updatePlanBodyPhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
|
|
7907
8293
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
7908
|
-
type: zod
|
|
8294
|
+
type: zod
|
|
8295
|
+
.enum(['flat'])
|
|
8296
|
+
.describe('The type of the price.'),
|
|
7909
8297
|
})
|
|
7910
8298
|
.describe('Flat price with payment term.')
|
|
7911
8299
|
.nullable()
|
|
@@ -7936,11 +8324,18 @@ exports.UpdatePlanBody = zod
|
|
|
7936
8324
|
.describe('The tax config for Stripe.')
|
|
7937
8325
|
.optional()
|
|
7938
8326
|
.describe('Stripe tax config.'),
|
|
8327
|
+
taxCodeId: zod.coerce
|
|
8328
|
+
.string()
|
|
8329
|
+
.regex(exports.updatePlanBodyPhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
8330
|
+
.optional()
|
|
8331
|
+
.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.'),
|
|
7939
8332
|
})
|
|
7940
8333
|
.describe('Set of provider specific tax configs.')
|
|
7941
8334
|
.optional()
|
|
7942
8335
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
7943
|
-
type: zod
|
|
8336
|
+
type: zod
|
|
8337
|
+
.enum(['flat_fee'])
|
|
8338
|
+
.describe('The type of the RateCard.'),
|
|
7944
8339
|
})
|
|
7945
8340
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
7946
8341
|
zod
|
|
@@ -8079,7 +8474,9 @@ exports.UpdatePlanBody = zod
|
|
|
8079
8474
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
8080
8475
|
.default(exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
|
|
8081
8476
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
8082
|
-
type: zod
|
|
8477
|
+
type: zod
|
|
8478
|
+
.enum(['flat'])
|
|
8479
|
+
.describe('The type of the price.'),
|
|
8083
8480
|
})
|
|
8084
8481
|
.describe('Flat price with payment term.'),
|
|
8085
8482
|
zod
|
|
@@ -8101,7 +8498,9 @@ exports.UpdatePlanBody = zod
|
|
|
8101
8498
|
.describe('Numeric represents an arbitrary precision number.')
|
|
8102
8499
|
.optional()
|
|
8103
8500
|
.describe('The customer is committed to spend at least the amount.'),
|
|
8104
|
-
type: zod
|
|
8501
|
+
type: zod
|
|
8502
|
+
.enum(['unit'])
|
|
8503
|
+
.describe('The type of the price.'),
|
|
8105
8504
|
})
|
|
8106
8505
|
.describe('Unit price with spend commitments.'),
|
|
8107
8506
|
zod
|
|
@@ -8163,7 +8562,9 @@ exports.UpdatePlanBody = zod
|
|
|
8163
8562
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
8164
8563
|
.min(1)
|
|
8165
8564
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
8166
|
-
type: zod
|
|
8565
|
+
type: zod
|
|
8566
|
+
.enum(['tiered'])
|
|
8567
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
8167
8568
|
})
|
|
8168
8569
|
.describe('Tiered price with spend commitments.'),
|
|
8169
8570
|
zod
|
|
@@ -8186,7 +8587,9 @@ exports.UpdatePlanBody = zod
|
|
|
8186
8587
|
.describe('Numeric represents an arbitrary precision number.')
|
|
8187
8588
|
.default(exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
|
|
8188
8589
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
8189
|
-
type: zod
|
|
8590
|
+
type: zod
|
|
8591
|
+
.enum(['dynamic'])
|
|
8592
|
+
.describe('The type of the price.'),
|
|
8190
8593
|
})
|
|
8191
8594
|
.describe('Dynamic price with spend commitments.'),
|
|
8192
8595
|
zod
|
|
@@ -8213,7 +8616,9 @@ exports.UpdatePlanBody = zod
|
|
|
8213
8616
|
.regex(exports.updatePlanBodyPhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
8214
8617
|
.describe('Numeric represents an arbitrary precision number.')
|
|
8215
8618
|
.describe('The quantity per package.'),
|
|
8216
|
-
type: zod
|
|
8619
|
+
type: zod
|
|
8620
|
+
.enum(['package'])
|
|
8621
|
+
.describe('The type of the price.'),
|
|
8217
8622
|
})
|
|
8218
8623
|
.describe('Package price with spend commitments.'),
|
|
8219
8624
|
])
|
|
@@ -8246,11 +8651,18 @@ exports.UpdatePlanBody = zod
|
|
|
8246
8651
|
.describe('The tax config for Stripe.')
|
|
8247
8652
|
.optional()
|
|
8248
8653
|
.describe('Stripe tax config.'),
|
|
8654
|
+
taxCodeId: zod.coerce
|
|
8655
|
+
.string()
|
|
8656
|
+
.regex(exports.updatePlanBodyPhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
8657
|
+
.optional()
|
|
8658
|
+
.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.'),
|
|
8249
8659
|
})
|
|
8250
8660
|
.describe('Set of provider specific tax configs.')
|
|
8251
8661
|
.optional()
|
|
8252
8662
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
8253
|
-
type: zod
|
|
8663
|
+
type: zod
|
|
8664
|
+
.enum(['usage_based'])
|
|
8665
|
+
.describe('The type of the RateCard.'),
|
|
8254
8666
|
})
|
|
8255
8667
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
8256
8668
|
])
|
|
@@ -8264,15 +8676,22 @@ exports.UpdatePlanBody = zod
|
|
|
8264
8676
|
.object({
|
|
8265
8677
|
enabled: zod.coerce
|
|
8266
8678
|
.boolean()
|
|
8679
|
+
.default(exports.updatePlanBodyProRatingConfigOneEnabledDefault)
|
|
8267
8680
|
.describe('Whether pro-rating is enabled for this plan.'),
|
|
8268
8681
|
mode: zod
|
|
8269
8682
|
.enum(['prorate_prices'])
|
|
8270
8683
|
.describe('Pro-rating mode options for handling billing period changes.')
|
|
8684
|
+
.default(exports.updatePlanBodyProRatingConfigOneModeDefault)
|
|
8271
8685
|
.describe('How to handle pro-rating for billing period changes.'),
|
|
8272
8686
|
})
|
|
8273
8687
|
.describe('Configuration for pro-rating behavior.')
|
|
8274
8688
|
.default(exports.updatePlanBodyProRatingConfigDefault)
|
|
8275
8689
|
.describe('Default pro-rating configuration for subscriptions using this plan.'),
|
|
8690
|
+
settlementMode: zod
|
|
8691
|
+
.enum(['credit_then_invoice', 'credit_only'])
|
|
8692
|
+
.describe('The settlement mode of a plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.')
|
|
8693
|
+
.default(exports.updatePlanBodySettlementModeDefault)
|
|
8694
|
+
.describe('The settlement mode of the plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.\nThis is the default and most common settlement mode.'),
|
|
8276
8695
|
})
|
|
8277
8696
|
.describe('Resource update operation model.');
|
|
8278
8697
|
/**
|
|
@@ -8325,6 +8744,7 @@ exports.listPlanAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
|
8325
8744
|
exports.listPlanAddonsQueryPageDefault = 1;
|
|
8326
8745
|
exports.listPlanAddonsQueryPageSizeDefault = 100;
|
|
8327
8746
|
exports.listPlanAddonsQueryPageSizeMax = 1000;
|
|
8747
|
+
exports.listPlanAddonsQueryOrderDefault = 'ASC';
|
|
8328
8748
|
exports.ListPlanAddonsQueryParams = zod.object({
|
|
8329
8749
|
id: zod
|
|
8330
8750
|
.array(zod.coerce
|
|
@@ -8350,7 +8770,11 @@ exports.ListPlanAddonsQueryParams = zod.object({
|
|
|
8350
8770
|
.record(zod.string(), zod.array(zod.coerce.number()))
|
|
8351
8771
|
.optional()
|
|
8352
8772
|
.describe('Filter by addon.key and addon.version attributes.'),
|
|
8353
|
-
order: zod
|
|
8773
|
+
order: zod
|
|
8774
|
+
.enum(['ASC', 'DESC'])
|
|
8775
|
+
.describe('The order direction.')
|
|
8776
|
+
.default(exports.listPlanAddonsQueryOrderDefault)
|
|
8777
|
+
.describe('The order direction.'),
|
|
8354
8778
|
orderBy: zod
|
|
8355
8779
|
.enum(['id', 'key', 'version', 'created_at', 'updated_at'])
|
|
8356
8780
|
.optional()
|
|
@@ -9153,11 +9577,15 @@ exports.ListEntitlementGrantsParams = zod.object({
|
|
|
9153
9577
|
subjectIdOrKey: zod.coerce.string(),
|
|
9154
9578
|
});
|
|
9155
9579
|
exports.listEntitlementGrantsQueryIncludeDeletedDefault = false;
|
|
9580
|
+
exports.listEntitlementGrantsQueryOrderByDefault = 'updatedAt';
|
|
9156
9581
|
exports.ListEntitlementGrantsQueryParams = zod.object({
|
|
9157
9582
|
includeDeleted: zod.coerce
|
|
9158
9583
|
.boolean()
|
|
9159
9584
|
.default(exports.listEntitlementGrantsQueryIncludeDeletedDefault),
|
|
9160
|
-
orderBy: zod
|
|
9585
|
+
orderBy: zod
|
|
9586
|
+
.enum(['id', 'createdAt', 'updatedAt'])
|
|
9587
|
+
.describe('Order by options for grants.')
|
|
9588
|
+
.default(exports.listEntitlementGrantsQueryOrderByDefault),
|
|
9161
9589
|
});
|
|
9162
9590
|
/**
|
|
9163
9591
|
* Grants define a behavior of granting usage for a metered entitlement. They can have complicated recurrence and rollover rules, thanks to which you can define a wide range of access patterns with a single grant, in most cases you don't have to periodically create new grants. You can only issue grants for active metered entitlements.
|
|
@@ -9573,6 +10001,7 @@ exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigDefault = {
|
|
|
9573
10001
|
enabled: true,
|
|
9574
10002
|
mode: 'prorate_prices',
|
|
9575
10003
|
};
|
|
10004
|
+
exports.createSubscriptionBodyTwoCustomPlanOneOneSettlementModeDefault = 'credit_then_invoice';
|
|
9576
10005
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyMax = 64;
|
|
9577
10006
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9578
10007
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemNameMax = 256;
|
|
@@ -9589,6 +10018,7 @@ exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntit
|
|
|
9589
10018
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
9590
10019
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
9591
10020
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
10021
|
+
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9592
10022
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9593
10023
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
9594
10024
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -9604,6 +10034,7 @@ exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntit
|
|
|
9604
10034
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
9605
10035
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
9606
10036
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
10037
|
+
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9607
10038
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9608
10039
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
9609
10040
|
exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -9683,6 +10114,11 @@ exports.CreateSubscriptionBody = zod
|
|
|
9683
10114
|
})
|
|
9684
10115
|
.describe('References an exact plan defaulting to the current active version.')
|
|
9685
10116
|
.describe('The plan reference to change to.'),
|
|
10117
|
+
settlementMode: zod
|
|
10118
|
+
.enum(['credit_then_invoice', 'credit_only'])
|
|
10119
|
+
.describe('The settlement mode of a plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.')
|
|
10120
|
+
.optional()
|
|
10121
|
+
.describe('The settlement mode of the subscription.'),
|
|
9686
10122
|
startingPhase: zod.coerce
|
|
9687
10123
|
.string()
|
|
9688
10124
|
.min(1)
|
|
@@ -9740,6 +10176,7 @@ exports.CreateSubscriptionBody = zod
|
|
|
9740
10176
|
.max(exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMax)
|
|
9741
10177
|
.regex(exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyOneRegExp)
|
|
9742
10178
|
.describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
|
|
10179
|
+
.default(exports.createSubscriptionBodyTwoCustomPlanOneOneCurrencyDefault)
|
|
9743
10180
|
.describe('The currency code of the plan.'),
|
|
9744
10181
|
description: zod.coerce
|
|
9745
10182
|
.string()
|
|
@@ -9922,7 +10359,9 @@ exports.CreateSubscriptionBody = zod
|
|
|
9922
10359
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
9923
10360
|
.default(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
|
|
9924
10361
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
9925
|
-
type: zod
|
|
10362
|
+
type: zod
|
|
10363
|
+
.enum(['flat'])
|
|
10364
|
+
.describe('The type of the price.'),
|
|
9926
10365
|
})
|
|
9927
10366
|
.describe('Flat price with payment term.')
|
|
9928
10367
|
.nullable()
|
|
@@ -9953,11 +10392,18 @@ exports.CreateSubscriptionBody = zod
|
|
|
9953
10392
|
.describe('The tax config for Stripe.')
|
|
9954
10393
|
.optional()
|
|
9955
10394
|
.describe('Stripe tax config.'),
|
|
10395
|
+
taxCodeId: zod.coerce
|
|
10396
|
+
.string()
|
|
10397
|
+
.regex(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
10398
|
+
.optional()
|
|
10399
|
+
.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.'),
|
|
9956
10400
|
})
|
|
9957
10401
|
.describe('Set of provider specific tax configs.')
|
|
9958
10402
|
.optional()
|
|
9959
10403
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
9960
|
-
type: zod
|
|
10404
|
+
type: zod
|
|
10405
|
+
.enum(['flat_fee'])
|
|
10406
|
+
.describe('The type of the RateCard.'),
|
|
9961
10407
|
})
|
|
9962
10408
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
9963
10409
|
zod
|
|
@@ -10096,7 +10542,9 @@ exports.CreateSubscriptionBody = zod
|
|
|
10096
10542
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
10097
10543
|
.default(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
|
|
10098
10544
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
10099
|
-
type: zod
|
|
10545
|
+
type: zod
|
|
10546
|
+
.enum(['flat'])
|
|
10547
|
+
.describe('The type of the price.'),
|
|
10100
10548
|
})
|
|
10101
10549
|
.describe('Flat price with payment term.'),
|
|
10102
10550
|
zod
|
|
@@ -10118,7 +10566,9 @@ exports.CreateSubscriptionBody = zod
|
|
|
10118
10566
|
.describe('Numeric represents an arbitrary precision number.')
|
|
10119
10567
|
.optional()
|
|
10120
10568
|
.describe('The customer is committed to spend at least the amount.'),
|
|
10121
|
-
type: zod
|
|
10569
|
+
type: zod
|
|
10570
|
+
.enum(['unit'])
|
|
10571
|
+
.describe('The type of the price.'),
|
|
10122
10572
|
})
|
|
10123
10573
|
.describe('Unit price with spend commitments.'),
|
|
10124
10574
|
zod
|
|
@@ -10180,7 +10630,9 @@ exports.CreateSubscriptionBody = zod
|
|
|
10180
10630
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
10181
10631
|
.min(1)
|
|
10182
10632
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
10183
|
-
type: zod
|
|
10633
|
+
type: zod
|
|
10634
|
+
.enum(['tiered'])
|
|
10635
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
10184
10636
|
})
|
|
10185
10637
|
.describe('Tiered price with spend commitments.'),
|
|
10186
10638
|
zod
|
|
@@ -10203,7 +10655,9 @@ exports.CreateSubscriptionBody = zod
|
|
|
10203
10655
|
.describe('Numeric represents an arbitrary precision number.')
|
|
10204
10656
|
.default(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
|
|
10205
10657
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
10206
|
-
type: zod
|
|
10658
|
+
type: zod
|
|
10659
|
+
.enum(['dynamic'])
|
|
10660
|
+
.describe('The type of the price.'),
|
|
10207
10661
|
})
|
|
10208
10662
|
.describe('Dynamic price with spend commitments.'),
|
|
10209
10663
|
zod
|
|
@@ -10230,7 +10684,9 @@ exports.CreateSubscriptionBody = zod
|
|
|
10230
10684
|
.regex(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
10231
10685
|
.describe('Numeric represents an arbitrary precision number.')
|
|
10232
10686
|
.describe('The quantity per package.'),
|
|
10233
|
-
type: zod
|
|
10687
|
+
type: zod
|
|
10688
|
+
.enum(['package'])
|
|
10689
|
+
.describe('The type of the price.'),
|
|
10234
10690
|
})
|
|
10235
10691
|
.describe('Package price with spend commitments.'),
|
|
10236
10692
|
])
|
|
@@ -10263,11 +10719,18 @@ exports.CreateSubscriptionBody = zod
|
|
|
10263
10719
|
.describe('The tax config for Stripe.')
|
|
10264
10720
|
.optional()
|
|
10265
10721
|
.describe('Stripe tax config.'),
|
|
10722
|
+
taxCodeId: zod.coerce
|
|
10723
|
+
.string()
|
|
10724
|
+
.regex(exports.createSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
10725
|
+
.optional()
|
|
10726
|
+
.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.'),
|
|
10266
10727
|
})
|
|
10267
10728
|
.describe('Set of provider specific tax configs.')
|
|
10268
10729
|
.optional()
|
|
10269
10730
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
10270
|
-
type: zod
|
|
10731
|
+
type: zod
|
|
10732
|
+
.enum(['usage_based'])
|
|
10733
|
+
.describe('The type of the RateCard.'),
|
|
10271
10734
|
})
|
|
10272
10735
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
10273
10736
|
])
|
|
@@ -10281,15 +10744,22 @@ exports.CreateSubscriptionBody = zod
|
|
|
10281
10744
|
.object({
|
|
10282
10745
|
enabled: zod.coerce
|
|
10283
10746
|
.boolean()
|
|
10747
|
+
.default(exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneEnabledDefault)
|
|
10284
10748
|
.describe('Whether pro-rating is enabled for this plan.'),
|
|
10285
10749
|
mode: zod
|
|
10286
10750
|
.enum(['prorate_prices'])
|
|
10287
10751
|
.describe('Pro-rating mode options for handling billing period changes.')
|
|
10752
|
+
.default(exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneModeDefault)
|
|
10288
10753
|
.describe('How to handle pro-rating for billing period changes.'),
|
|
10289
10754
|
})
|
|
10290
10755
|
.describe('Configuration for pro-rating behavior.')
|
|
10291
10756
|
.default(exports.createSubscriptionBodyTwoCustomPlanOneOneProRatingConfigDefault)
|
|
10292
10757
|
.describe('Default pro-rating configuration for subscriptions using this plan.'),
|
|
10758
|
+
settlementMode: zod
|
|
10759
|
+
.enum(['credit_then_invoice', 'credit_only'])
|
|
10760
|
+
.describe('The settlement mode of a plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.')
|
|
10761
|
+
.default(exports.createSubscriptionBodyTwoCustomPlanOneOneSettlementModeDefault)
|
|
10762
|
+
.describe('The settlement mode of the plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.\nThis is the default and most common settlement mode.'),
|
|
10293
10763
|
})
|
|
10294
10764
|
.describe('The template for omitting properties.')
|
|
10295
10765
|
.describe('Plan input for custom subscription creation (without key and version).')
|
|
@@ -10348,6 +10818,7 @@ exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateO
|
|
|
10348
10818
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
10349
10819
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
10350
10820
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
10821
|
+
exports.editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10351
10822
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10352
10823
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOnePaymentTermDefault = 'in_advance';
|
|
10353
10824
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -10363,6 +10834,7 @@ exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateO
|
|
|
10363
10834
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
10364
10835
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
10365
10836
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
10837
|
+
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10366
10838
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10367
10839
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
10368
10840
|
exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -10532,7 +11004,9 @@ exports.EditSubscriptionBody = zod
|
|
|
10532
11004
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
10533
11005
|
.default(exports.editSubscriptionBodyCustomizationsItemOneRateCardOnePriceOnePaymentTermDefault)
|
|
10534
11006
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
10535
|
-
type: zod
|
|
11007
|
+
type: zod
|
|
11008
|
+
.enum(['flat'])
|
|
11009
|
+
.describe('The type of the price.'),
|
|
10536
11010
|
})
|
|
10537
11011
|
.describe('Flat price with payment term.')
|
|
10538
11012
|
.nullable()
|
|
@@ -10563,11 +11037,18 @@ exports.EditSubscriptionBody = zod
|
|
|
10563
11037
|
.describe('The tax config for Stripe.')
|
|
10564
11038
|
.optional()
|
|
10565
11039
|
.describe('Stripe tax config.'),
|
|
11040
|
+
taxCodeId: zod.coerce
|
|
11041
|
+
.string()
|
|
11042
|
+
.regex(exports.editSubscriptionBodyCustomizationsItemOneRateCardOneTaxConfigOneTaxCodeIdRegExp)
|
|
11043
|
+
.optional()
|
|
11044
|
+
.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.'),
|
|
10566
11045
|
})
|
|
10567
11046
|
.describe('Set of provider specific tax configs.')
|
|
10568
11047
|
.optional()
|
|
10569
11048
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
10570
|
-
type: zod
|
|
11049
|
+
type: zod
|
|
11050
|
+
.enum(['flat_fee'])
|
|
11051
|
+
.describe('The type of the RateCard.'),
|
|
10571
11052
|
})
|
|
10572
11053
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
10573
11054
|
zod
|
|
@@ -10706,7 +11187,9 @@ exports.EditSubscriptionBody = zod
|
|
|
10706
11187
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
10707
11188
|
.default(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneOnePaymentTermDefault)
|
|
10708
11189
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
10709
|
-
type: zod
|
|
11190
|
+
type: zod
|
|
11191
|
+
.enum(['flat'])
|
|
11192
|
+
.describe('The type of the price.'),
|
|
10710
11193
|
})
|
|
10711
11194
|
.describe('Flat price with payment term.'),
|
|
10712
11195
|
zod
|
|
@@ -10728,7 +11211,9 @@ exports.EditSubscriptionBody = zod
|
|
|
10728
11211
|
.describe('Numeric represents an arbitrary precision number.')
|
|
10729
11212
|
.optional()
|
|
10730
11213
|
.describe('The customer is committed to spend at least the amount.'),
|
|
10731
|
-
type: zod
|
|
11214
|
+
type: zod
|
|
11215
|
+
.enum(['unit'])
|
|
11216
|
+
.describe('The type of the price.'),
|
|
10732
11217
|
})
|
|
10733
11218
|
.describe('Unit price with spend commitments.'),
|
|
10734
11219
|
zod
|
|
@@ -10790,7 +11275,9 @@ exports.EditSubscriptionBody = zod
|
|
|
10790
11275
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
10791
11276
|
.min(1)
|
|
10792
11277
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
10793
|
-
type: zod
|
|
11278
|
+
type: zod
|
|
11279
|
+
.enum(['tiered'])
|
|
11280
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
10794
11281
|
})
|
|
10795
11282
|
.describe('Tiered price with spend commitments.'),
|
|
10796
11283
|
zod
|
|
@@ -10813,7 +11300,9 @@ exports.EditSubscriptionBody = zod
|
|
|
10813
11300
|
.describe('Numeric represents an arbitrary precision number.')
|
|
10814
11301
|
.default(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFourMultiplierDefault)
|
|
10815
11302
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
10816
|
-
type: zod
|
|
11303
|
+
type: zod
|
|
11304
|
+
.enum(['dynamic'])
|
|
11305
|
+
.describe('The type of the price.'),
|
|
10817
11306
|
})
|
|
10818
11307
|
.describe('Dynamic price with spend commitments.'),
|
|
10819
11308
|
zod
|
|
@@ -10840,7 +11329,9 @@ exports.EditSubscriptionBody = zod
|
|
|
10840
11329
|
.regex(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
10841
11330
|
.describe('Numeric represents an arbitrary precision number.')
|
|
10842
11331
|
.describe('The quantity per package.'),
|
|
10843
|
-
type: zod
|
|
11332
|
+
type: zod
|
|
11333
|
+
.enum(['package'])
|
|
11334
|
+
.describe('The type of the price.'),
|
|
10844
11335
|
})
|
|
10845
11336
|
.describe('Package price with spend commitments.'),
|
|
10846
11337
|
])
|
|
@@ -10873,11 +11364,18 @@ exports.EditSubscriptionBody = zod
|
|
|
10873
11364
|
.describe('The tax config for Stripe.')
|
|
10874
11365
|
.optional()
|
|
10875
11366
|
.describe('Stripe tax config.'),
|
|
11367
|
+
taxCodeId: zod.coerce
|
|
11368
|
+
.string()
|
|
11369
|
+
.regex(exports.editSubscriptionBodyCustomizationsItemOneRateCardTwoTaxConfigOneTaxCodeIdRegExp)
|
|
11370
|
+
.optional()
|
|
11371
|
+
.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.'),
|
|
10876
11372
|
})
|
|
10877
11373
|
.describe('Set of provider specific tax configs.')
|
|
10878
11374
|
.optional()
|
|
10879
11375
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
10880
|
-
type: zod
|
|
11376
|
+
type: zod
|
|
11377
|
+
.enum(['usage_based'])
|
|
11378
|
+
.describe('The type of the RateCard.'),
|
|
10881
11379
|
})
|
|
10882
11380
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
10883
11381
|
])
|
|
@@ -11181,6 +11679,7 @@ exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigDefault = {
|
|
|
11181
11679
|
enabled: true,
|
|
11182
11680
|
mode: 'prorate_prices',
|
|
11183
11681
|
};
|
|
11682
|
+
exports.changeSubscriptionBodyTwoCustomPlanOneOneSettlementModeDefault = 'credit_then_invoice';
|
|
11184
11683
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyMax = 64;
|
|
11185
11684
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
11186
11685
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemNameMax = 256;
|
|
@@ -11197,6 +11696,7 @@ exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntit
|
|
|
11197
11696
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
11198
11697
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
11199
11698
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
11699
|
+
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11200
11700
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
11201
11701
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault = 'in_advance';
|
|
11202
11702
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneDiscountsOneUsageOneQuantityOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -11212,6 +11712,7 @@ exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntit
|
|
|
11212
11712
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOneIssueAfterResetPriorityMax = 255;
|
|
11213
11713
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoEntitlementTemplateOneOnePreserveOverageAtResetDefault = false;
|
|
11214
11714
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneStripeOneCodeRegExp = /^txcd_\d{8}$/;
|
|
11715
|
+
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11215
11716
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOneAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
11216
11717
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault = 'in_advance';
|
|
11217
11718
|
exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneTwoAmountOneRegExp = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
@@ -11322,6 +11823,7 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11322
11823
|
.max(exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneMax)
|
|
11323
11824
|
.regex(exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyOneRegExp)
|
|
11324
11825
|
.describe('Three-letter [ISO4217](https://www.iso.org/iso-4217-currency-codes.html) currency code.\nCustom three-letter currency codes are also supported for convenience.')
|
|
11826
|
+
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOneCurrencyDefault)
|
|
11325
11827
|
.describe('The currency code of the plan.'),
|
|
11326
11828
|
description: zod.coerce
|
|
11327
11829
|
.string()
|
|
@@ -11504,7 +12006,9 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11504
12006
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
11505
12007
|
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOnePriceOnePaymentTermDefault)
|
|
11506
12008
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
11507
|
-
type: zod
|
|
12009
|
+
type: zod
|
|
12010
|
+
.enum(['flat'])
|
|
12011
|
+
.describe('The type of the price.'),
|
|
11508
12012
|
})
|
|
11509
12013
|
.describe('Flat price with payment term.')
|
|
11510
12014
|
.nullable()
|
|
@@ -11535,11 +12039,18 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11535
12039
|
.describe('The tax config for Stripe.')
|
|
11536
12040
|
.optional()
|
|
11537
12041
|
.describe('Stripe tax config.'),
|
|
12042
|
+
taxCodeId: zod.coerce
|
|
12043
|
+
.string()
|
|
12044
|
+
.regex(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemOneTaxConfigOneTaxCodeIdRegExp)
|
|
12045
|
+
.optional()
|
|
12046
|
+
.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.'),
|
|
11538
12047
|
})
|
|
11539
12048
|
.describe('Set of provider specific tax configs.')
|
|
11540
12049
|
.optional()
|
|
11541
12050
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
11542
|
-
type: zod
|
|
12051
|
+
type: zod
|
|
12052
|
+
.enum(['flat_fee'])
|
|
12053
|
+
.describe('The type of the RateCard.'),
|
|
11543
12054
|
})
|
|
11544
12055
|
.describe('A flat fee rate card defines a one-time purchase or a recurring fee.'),
|
|
11545
12056
|
zod
|
|
@@ -11678,7 +12189,9 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11678
12189
|
.describe('The payment term of a flat price.\nOne of: in_advance or in_arrears.')
|
|
11679
12190
|
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneOnePaymentTermDefault)
|
|
11680
12191
|
.describe('The payment term of the flat price.\nDefaults to in advance.'),
|
|
11681
|
-
type: zod
|
|
12192
|
+
type: zod
|
|
12193
|
+
.enum(['flat'])
|
|
12194
|
+
.describe('The type of the price.'),
|
|
11682
12195
|
})
|
|
11683
12196
|
.describe('Flat price with payment term.'),
|
|
11684
12197
|
zod
|
|
@@ -11700,7 +12213,9 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11700
12213
|
.describe('Numeric represents an arbitrary precision number.')
|
|
11701
12214
|
.optional()
|
|
11702
12215
|
.describe('The customer is committed to spend at least the amount.'),
|
|
11703
|
-
type: zod
|
|
12216
|
+
type: zod
|
|
12217
|
+
.enum(['unit'])
|
|
12218
|
+
.describe('The type of the price.'),
|
|
11704
12219
|
})
|
|
11705
12220
|
.describe('Unit price with spend commitments.'),
|
|
11706
12221
|
zod
|
|
@@ -11762,7 +12277,9 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11762
12277
|
.describe('A price tier.\nAt least one price component is required in each tier.'))
|
|
11763
12278
|
.min(1)
|
|
11764
12279
|
.describe('The tiers of the tiered price.\nAt least one price component is required in each tier.'),
|
|
11765
|
-
type: zod
|
|
12280
|
+
type: zod
|
|
12281
|
+
.enum(['tiered'])
|
|
12282
|
+
.describe('The type of the price.\n\nOne of: flat, unit, or tiered.'),
|
|
11766
12283
|
})
|
|
11767
12284
|
.describe('Tiered price with spend commitments.'),
|
|
11768
12285
|
zod
|
|
@@ -11785,7 +12302,9 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11785
12302
|
.describe('Numeric represents an arbitrary precision number.')
|
|
11786
12303
|
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFourMultiplierDefault)
|
|
11787
12304
|
.describe('The multiplier to apply to the base price to get the dynamic price.\n\nExamples:\n- 0.0: the price is zero\n- 0.5: the price is 50% of the base price\n- 1.0: the price is the same as the base price\n- 1.5: the price is 150% of the base price'),
|
|
11788
|
-
type: zod
|
|
12305
|
+
type: zod
|
|
12306
|
+
.enum(['dynamic'])
|
|
12307
|
+
.describe('The type of the price.'),
|
|
11789
12308
|
})
|
|
11790
12309
|
.describe('Dynamic price with spend commitments.'),
|
|
11791
12310
|
zod
|
|
@@ -11812,7 +12331,9 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11812
12331
|
.regex(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoPriceOneFiveQuantityPerPackageOneRegExp)
|
|
11813
12332
|
.describe('Numeric represents an arbitrary precision number.')
|
|
11814
12333
|
.describe('The quantity per package.'),
|
|
11815
|
-
type: zod
|
|
12334
|
+
type: zod
|
|
12335
|
+
.enum(['package'])
|
|
12336
|
+
.describe('The type of the price.'),
|
|
11816
12337
|
})
|
|
11817
12338
|
.describe('Package price with spend commitments.'),
|
|
11818
12339
|
])
|
|
@@ -11845,11 +12366,18 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11845
12366
|
.describe('The tax config for Stripe.')
|
|
11846
12367
|
.optional()
|
|
11847
12368
|
.describe('Stripe tax config.'),
|
|
12369
|
+
taxCodeId: zod.coerce
|
|
12370
|
+
.string()
|
|
12371
|
+
.regex(exports.changeSubscriptionBodyTwoCustomPlanOneOnePhasesItemRateCardsItemTwoTaxConfigOneTaxCodeIdRegExp)
|
|
12372
|
+
.optional()
|
|
12373
|
+
.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.'),
|
|
11848
12374
|
})
|
|
11849
12375
|
.describe('Set of provider specific tax configs.')
|
|
11850
12376
|
.optional()
|
|
11851
12377
|
.describe('The tax config of the rate card.\nWhen undefined, the tax config of the feature or the default tax config of the plan is used.'),
|
|
11852
|
-
type: zod
|
|
12378
|
+
type: zod
|
|
12379
|
+
.enum(['usage_based'])
|
|
12380
|
+
.describe('The type of the RateCard.'),
|
|
11853
12381
|
})
|
|
11854
12382
|
.describe('A usage-based rate card defines a price based on usage.'),
|
|
11855
12383
|
])
|
|
@@ -11863,15 +12391,22 @@ exports.ChangeSubscriptionBody = zod
|
|
|
11863
12391
|
.object({
|
|
11864
12392
|
enabled: zod.coerce
|
|
11865
12393
|
.boolean()
|
|
12394
|
+
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneEnabledDefault)
|
|
11866
12395
|
.describe('Whether pro-rating is enabled for this plan.'),
|
|
11867
12396
|
mode: zod
|
|
11868
12397
|
.enum(['prorate_prices'])
|
|
11869
12398
|
.describe('Pro-rating mode options for handling billing period changes.')
|
|
12399
|
+
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigOneModeDefault)
|
|
11870
12400
|
.describe('How to handle pro-rating for billing period changes.'),
|
|
11871
12401
|
})
|
|
11872
12402
|
.describe('Configuration for pro-rating behavior.')
|
|
11873
12403
|
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOneProRatingConfigDefault)
|
|
11874
12404
|
.describe('Default pro-rating configuration for subscriptions using this plan.'),
|
|
12405
|
+
settlementMode: zod
|
|
12406
|
+
.enum(['credit_then_invoice', 'credit_only'])
|
|
12407
|
+
.describe('The settlement mode of a plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.')
|
|
12408
|
+
.default(exports.changeSubscriptionBodyTwoCustomPlanOneOneSettlementModeDefault)
|
|
12409
|
+
.describe('The settlement mode of the plan.\nIt determines how the billing system generates invoices and credits for the subscriptions using this plan.\n- credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.\n- credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.\nThis is the default and most common settlement mode.'),
|
|
11875
12410
|
})
|
|
11876
12411
|
.describe('The template for omitting properties.')
|
|
11877
12412
|
.describe('Plan input for custom subscription creation (without key and version).')
|
|
@@ -12285,11 +12820,16 @@ exports.listCustomerEntitlementsV2QueryIncludeDeletedDefault = false;
|
|
|
12285
12820
|
exports.listCustomerEntitlementsV2QueryPageDefault = 1;
|
|
12286
12821
|
exports.listCustomerEntitlementsV2QueryPageSizeDefault = 100;
|
|
12287
12822
|
exports.listCustomerEntitlementsV2QueryPageSizeMax = 1000;
|
|
12823
|
+
exports.listCustomerEntitlementsV2QueryOrderDefault = 'ASC';
|
|
12288
12824
|
exports.ListCustomerEntitlementsV2QueryParams = zod.object({
|
|
12289
12825
|
includeDeleted: zod.coerce
|
|
12290
12826
|
.boolean()
|
|
12291
12827
|
.default(exports.listCustomerEntitlementsV2QueryIncludeDeletedDefault),
|
|
12292
|
-
order: zod
|
|
12828
|
+
order: zod
|
|
12829
|
+
.enum(['ASC', 'DESC'])
|
|
12830
|
+
.describe('The order direction.')
|
|
12831
|
+
.default(exports.listCustomerEntitlementsV2QueryOrderDefault)
|
|
12832
|
+
.describe('The order direction.'),
|
|
12293
12833
|
orderBy: zod
|
|
12294
12834
|
.enum(['createdAt', 'updatedAt'])
|
|
12295
12835
|
.optional()
|
|
@@ -12394,6 +12934,7 @@ exports.listCustomerEntitlementGrantsV2QueryOffsetDefault = 0;
|
|
|
12394
12934
|
exports.listCustomerEntitlementGrantsV2QueryOffsetMin = 0;
|
|
12395
12935
|
exports.listCustomerEntitlementGrantsV2QueryLimitDefault = 100;
|
|
12396
12936
|
exports.listCustomerEntitlementGrantsV2QueryLimitMax = 1000;
|
|
12937
|
+
exports.listCustomerEntitlementGrantsV2QueryOrderDefault = 'ASC';
|
|
12397
12938
|
exports.ListCustomerEntitlementGrantsV2QueryParams = zod.object({
|
|
12398
12939
|
includeDeleted: zod.coerce
|
|
12399
12940
|
.boolean()
|
|
@@ -12409,7 +12950,11 @@ exports.ListCustomerEntitlementGrantsV2QueryParams = zod.object({
|
|
|
12409
12950
|
.min(exports.listCustomerEntitlementGrantsV2QueryOffsetMin)
|
|
12410
12951
|
.default(exports.listCustomerEntitlementGrantsV2QueryOffsetDefault)
|
|
12411
12952
|
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
12412
|
-
order: zod
|
|
12953
|
+
order: zod
|
|
12954
|
+
.enum(['ASC', 'DESC'])
|
|
12955
|
+
.describe('The order direction.')
|
|
12956
|
+
.default(exports.listCustomerEntitlementGrantsV2QueryOrderDefault)
|
|
12957
|
+
.describe('The order direction.'),
|
|
12413
12958
|
orderBy: zod
|
|
12414
12959
|
.enum(['id', 'createdAt', 'updatedAt'])
|
|
12415
12960
|
.optional()
|
|
@@ -12987,6 +13532,7 @@ exports.listEntitlementsV2QueryOffsetDefault = 0;
|
|
|
12987
13532
|
exports.listEntitlementsV2QueryOffsetMin = 0;
|
|
12988
13533
|
exports.listEntitlementsV2QueryLimitDefault = 100;
|
|
12989
13534
|
exports.listEntitlementsV2QueryLimitMax = 1000;
|
|
13535
|
+
exports.listEntitlementsV2QueryOrderDefault = 'ASC';
|
|
12990
13536
|
exports.ListEntitlementsV2QueryParams = zod.object({
|
|
12991
13537
|
customerIds: zod
|
|
12992
13538
|
.array(zod.coerce.string())
|
|
@@ -13021,7 +13567,11 @@ exports.ListEntitlementsV2QueryParams = zod.object({
|
|
|
13021
13567
|
.min(exports.listEntitlementsV2QueryOffsetMin)
|
|
13022
13568
|
.default(exports.listEntitlementsV2QueryOffsetDefault)
|
|
13023
13569
|
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
13024
|
-
order: zod
|
|
13570
|
+
order: zod
|
|
13571
|
+
.enum(['ASC', 'DESC'])
|
|
13572
|
+
.describe('The order direction.')
|
|
13573
|
+
.default(exports.listEntitlementsV2QueryOrderDefault)
|
|
13574
|
+
.describe('The order direction.'),
|
|
13025
13575
|
orderBy: zod
|
|
13026
13576
|
.enum(['createdAt', 'updatedAt'])
|
|
13027
13577
|
.optional()
|
|
@@ -13089,6 +13639,7 @@ exports.listGrantsV2QueryOffsetDefault = 0;
|
|
|
13089
13639
|
exports.listGrantsV2QueryOffsetMin = 0;
|
|
13090
13640
|
exports.listGrantsV2QueryLimitDefault = 100;
|
|
13091
13641
|
exports.listGrantsV2QueryLimitMax = 1000;
|
|
13642
|
+
exports.listGrantsV2QueryOrderDefault = 'ASC';
|
|
13092
13643
|
exports.ListGrantsV2QueryParams = zod.object({
|
|
13093
13644
|
customer: zod
|
|
13094
13645
|
.array(zod
|
|
@@ -13125,7 +13676,11 @@ exports.ListGrantsV2QueryParams = zod.object({
|
|
|
13125
13676
|
.min(exports.listGrantsV2QueryOffsetMin)
|
|
13126
13677
|
.default(exports.listGrantsV2QueryOffsetDefault)
|
|
13127
13678
|
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
13128
|
-
order: zod
|
|
13679
|
+
order: zod
|
|
13680
|
+
.enum(['ASC', 'DESC'])
|
|
13681
|
+
.describe('The order direction.')
|
|
13682
|
+
.default(exports.listGrantsV2QueryOrderDefault)
|
|
13683
|
+
.describe('The order direction.'),
|
|
13129
13684
|
orderBy: zod
|
|
13130
13685
|
.enum(['id', 'createdAt', 'updatedAt'])
|
|
13131
13686
|
.optional()
|