@openmeter/sdk 1.0.0-beta.222 → 1.0.0-beta.224
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/biome.json +67 -0
- package/dist/cjs/src/client/addons.d.cts +8 -8
- package/dist/cjs/src/client/addons.js.map +1 -1
- package/dist/cjs/src/client/apps.d.cts +10 -10
- package/dist/cjs/src/client/apps.js.map +1 -1
- package/dist/cjs/src/client/billing.d.cts +19 -19
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/common.d.cts +3 -3
- package/dist/cjs/src/client/common.js.map +1 -1
- package/dist/cjs/src/client/customers.d.cts +25 -24
- package/dist/cjs/src/client/customers.js.map +1 -1
- package/dist/cjs/src/client/debug.d.cts +2 -2
- package/dist/cjs/src/client/debug.js.map +1 -1
- package/dist/cjs/src/client/entitlements.d.cts +15 -13
- package/dist/cjs/src/client/entitlements.js.map +1 -1
- package/dist/cjs/src/client/events.d.cts +4 -4
- package/dist/cjs/src/client/events.js.map +1 -1
- package/dist/cjs/src/client/features.d.cts +3 -3
- package/dist/cjs/src/client/features.js.map +1 -1
- package/dist/cjs/src/client/index.cjs +1 -1
- package/dist/cjs/src/client/index.d.cts +2 -2
- package/dist/cjs/src/client/index.js.map +1 -1
- package/dist/cjs/src/client/info.d.cts +3 -3
- package/dist/cjs/src/client/info.js.map +1 -1
- package/dist/cjs/src/client/meters.d.cts +5 -5
- package/dist/cjs/src/client/meters.js.map +1 -1
- package/dist/cjs/src/client/notifications.d.cts +11 -11
- package/dist/cjs/src/client/notifications.js.map +1 -1
- package/dist/cjs/src/client/plans.d.cts +12 -12
- package/dist/cjs/src/client/plans.js.map +1 -1
- package/dist/cjs/src/client/portal.d.cts +4 -4
- package/dist/cjs/src/client/portal.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +323 -21
- package/dist/cjs/src/client/subjects.d.cts +13 -4
- package/dist/cjs/src/client/subjects.js.map +1 -1
- package/dist/cjs/src/client/subscription-addons.d.cts +5 -5
- package/dist/cjs/src/client/subscription-addons.js.map +1 -1
- package/dist/cjs/src/client/subscriptions.d.cts +8 -8
- package/dist/cjs/src/client/subscriptions.js.map +1 -1
- package/dist/cjs/src/client/utils.cjs +1 -3
- package/dist/cjs/src/client/utils.d.cts +1 -1
- package/dist/cjs/src/client/utils.js.map +1 -1
- package/dist/cjs/src/portal/index.d.cts +1 -1
- package/dist/cjs/src/portal/index.js.map +1 -1
- package/dist/cjs/src/zod/index.cjs +876 -630
- package/dist/cjs/src/zod/index.d.cts +906 -609
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/tsconfig.041f8f6a.tsbuildinfo +1 -0
- package/dist/cjs/tsconfig.c55e75d7.tsbuildinfo +1 -0
- package/dist/src/client/addons.d.ts +8 -8
- package/dist/src/client/addons.js.map +1 -1
- package/dist/src/client/apps.d.ts +10 -10
- package/dist/src/client/apps.js.map +1 -1
- package/dist/src/client/billing.d.ts +19 -19
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/common.d.ts +3 -3
- package/dist/src/client/common.js.map +1 -1
- package/dist/src/client/customers.d.ts +25 -24
- package/dist/src/client/customers.js.map +1 -1
- package/dist/src/client/debug.d.ts +2 -2
- package/dist/src/client/debug.js.map +1 -1
- package/dist/src/client/entitlements.d.ts +15 -13
- package/dist/src/client/entitlements.js.map +1 -1
- package/dist/src/client/events.d.ts +4 -4
- package/dist/src/client/events.js.map +1 -1
- package/dist/src/client/features.d.ts +3 -3
- package/dist/src/client/features.js.map +1 -1
- package/dist/src/client/index.d.ts +2 -2
- package/dist/src/client/index.js +1 -1
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/client/info.d.ts +3 -3
- package/dist/src/client/info.js.map +1 -1
- package/dist/src/client/meters.d.ts +5 -5
- package/dist/src/client/meters.js.map +1 -1
- package/dist/src/client/notifications.d.ts +11 -11
- package/dist/src/client/notifications.js.map +1 -1
- package/dist/src/client/plans.d.ts +12 -12
- package/dist/src/client/plans.js.map +1 -1
- package/dist/src/client/portal.d.ts +4 -4
- package/dist/src/client/portal.js.map +1 -1
- package/dist/src/client/schemas.d.ts +323 -21
- package/dist/src/client/subjects.d.ts +13 -4
- package/dist/src/client/subjects.js.map +1 -1
- package/dist/src/client/subscription-addons.d.ts +5 -5
- package/dist/src/client/subscription-addons.js.map +1 -1
- package/dist/src/client/subscriptions.d.ts +8 -8
- package/dist/src/client/subscriptions.js.map +1 -1
- package/dist/src/client/utils.d.ts +1 -1
- package/dist/src/client/utils.js +1 -3
- package/dist/src/client/utils.js.map +1 -1
- package/dist/src/portal/index.d.ts +1 -1
- package/dist/src/portal/index.js.map +1 -1
- package/dist/src/zod/index.d.ts +906 -609
- package/dist/src/zod/index.js +795 -551
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/orval.config.ts +2 -6
- package/package.json +21 -35
- package/dist/cjs/tsconfig.58b58bc1.tsbuildinfo +0 -1
- package/dist/cjs/tsconfig.7bcc7f9f.tsbuildinfo +0 -1
|
@@ -9,38 +9,44 @@ exports.getInvoiceParams = exports.getInvoicePathInvoiceIdRegExp = exports.invoi
|
|
|
9
9
|
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = exports.updateInvoiceBodyLinesItemRateCardPricePaymentTermDefault = exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = exports.updateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = exports.updateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = exports.updateInvoiceBodyLinesItemRateCardFeatureKeyMax = exports.updateInvoiceBodyLinesItemFeatureKeyRegExp = exports.updateInvoiceBodyLinesItemFeatureKeyMax = exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = exports.updateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = exports.updateInvoiceBodyLinesItemPriceAmountRegExpFive = exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = exports.updateInvoiceBodyLinesItemPriceMultiplierDefault = exports.updateInvoiceBodyLinesItemPriceMultiplierRegExpOne = exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = exports.updateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = exports.updateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = exports.updateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = exports.updateInvoiceBodyLinesItemPriceAmountRegExpThree = exports.updateInvoiceBodyLinesItemPricePaymentTermDefault = exports.updateInvoiceBodyLinesItemPriceAmountRegExpOne = exports.updateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = exports.updateInvoiceBodyLinesItemDescriptionMax = exports.updateInvoiceBodyLinesItemNameMax = exports.updateInvoiceBodyCustomerAddressesMax = exports.updateInvoiceBodyCustomerAddressesItemCountryRegExpOne = exports.updateInvoiceBodyCustomerAddressesItemCountryMaxOne = exports.updateInvoiceBodyCustomerAddressesItemCountryMinOne = exports.updateInvoiceBodyCustomerTaxIdCodeMaxOne = exports.updateInvoiceBodyCustomerKeyMax = exports.updateInvoiceBodySupplierAddressesMax = exports.updateInvoiceBodySupplierAddressesItemCountryRegExpOne = exports.updateInvoiceBodySupplierAddressesItemCountryMaxOne = exports.updateInvoiceBodySupplierAddressesItemCountryMinOne = exports.updateInvoiceBodySupplierTaxIdCodeMaxOne = exports.updateInvoiceBodySupplierKeyMax = exports.updateInvoiceBodyDescriptionMax = exports.updateInvoiceParams = exports.updateInvoicePathInvoiceIdRegExp = exports.deleteInvoiceParams = exports.deleteInvoicePathInvoiceIdRegExp = exports.getInvoiceQueryParams = exports.getInvoiceQueryIncludeDeletedLinesDefault = exports.getInvoiceQueryExpandDefault = void 0;
|
|
10
10
|
exports.createBillingProfileBodySupplierAddressesItemCountryRegExpOne = exports.createBillingProfileBodySupplierAddressesItemCountryMaxOne = exports.createBillingProfileBodySupplierAddressesItemCountryMinOne = exports.createBillingProfileBodySupplierTaxIdCodeMaxOne = exports.createBillingProfileBodySupplierKeyMax = exports.createBillingProfileBodyDescriptionMax = exports.createBillingProfileBodyNameMax = exports.listBillingProfilesQueryParams = exports.listBillingProfilesQueryPageSizeMax = exports.listBillingProfilesQueryPageSizeDefault = exports.listBillingProfilesQueryPageDefault = exports.listBillingProfilesQueryIncludeArchivedDefault = exports.voidInvoiceActionBody = 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.updateInvoiceBodyWorkflowWorkflowPaymentCollectionMethodDefault = exports.updateInvoiceBodyWorkflowWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = exports.updateInvoiceBodyWorkflowWorkflowInvoicingDueAfterDefault = exports.updateInvoiceBodyWorkflowWorkflowInvoicingDraftPeriodDefault = exports.updateInvoiceBodyWorkflowWorkflowInvoicingAutoAdvanceDefault = exports.updateInvoiceBodyLinesItemIdRegExp = exports.updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = exports.updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = exports.updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = exports.updateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = exports.updateInvoiceBodyLinesItemRateCardPriceMultiplierDefault = exports.updateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = void 0;
|
|
11
11
|
exports.createCustomerBodyBillingAddressCountryMaxOne = exports.createCustomerBodyBillingAddressCountryMinOne = exports.createCustomerBodyCurrencyRegExpOne = exports.createCustomerBodyCurrencyMaxOne = exports.createCustomerBodyCurrencyMinOne = exports.createCustomerBodyUsageAttributionSubjectKeysMax = exports.createCustomerBodyKeyMax = exports.createCustomerBodyDescriptionMax = exports.createCustomerBodyNameMax = exports.updateBillingProfileBody = exports.updateBillingProfileBodyWorkflowTaxEnforcedDefault = exports.updateBillingProfileBodyWorkflowTaxEnabledDefault = exports.updateBillingProfileBodyWorkflowPaymentCollectionMethodDefault = exports.updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = exports.updateBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = exports.updateBillingProfileBodyWorkflowInvoicingDueAfterDefault = exports.updateBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = exports.updateBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = exports.updateBillingProfileBodyWorkflowCollectionIntervalDefault = exports.updateBillingProfileBodyWorkflowCollectionAlignmentDefault = exports.updateBillingProfileBodySupplierAddressesMax = exports.updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = exports.updateBillingProfileBodySupplierAddressesItemCountryMaxOne = exports.updateBillingProfileBodySupplierAddressesItemCountryMinOne = exports.updateBillingProfileBodySupplierTaxIdCodeMaxOne = exports.updateBillingProfileBodySupplierKeyMax = exports.updateBillingProfileBodyDescriptionMax = exports.updateBillingProfileBodyNameMax = exports.updateBillingProfileParams = exports.updateBillingProfilePathIdRegExp = exports.getBillingProfileQueryParams = exports.getBillingProfileParams = exports.getBillingProfilePathIdRegExp = exports.deleteBillingProfileParams = exports.deleteBillingProfilePathIdRegExp = exports.createBillingProfileBody = exports.createBillingProfileBodyAppsPaymentRegExp = exports.createBillingProfileBodyAppsInvoicingRegExp = exports.createBillingProfileBodyAppsTaxRegExp = exports.createBillingProfileBodyWorkflowTaxEnforcedDefault = exports.createBillingProfileBodyWorkflowTaxEnabledDefault = exports.createBillingProfileBodyWorkflowPaymentCollectionMethodDefault = exports.createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = exports.createBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = exports.createBillingProfileBodyWorkflowInvoicingDueAfterDefault = exports.createBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = exports.createBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = exports.createBillingProfileBodyWorkflowCollectionIntervalDefault = exports.createBillingProfileBodyWorkflowCollectionAlignmentDefault = exports.createBillingProfileBodySupplierAddressesMax = void 0;
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
exports.upsertCustomerAppDataBodyAppNameMaxOne = exports.upsertCustomerAppDataBodyAppIdRegExpOne = exports.upsertCustomerAppDataBodyIdRegExpOne = exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExp = exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMax = exports.upsertCustomerAppDataBodyAppDescriptionMax = exports.upsertCustomerAppDataBodyAppNameMax = exports.upsertCustomerAppDataBodyAppIdRegExp = exports.upsertCustomerAppDataBodyIdRegExp = exports.upsertCustomerAppDataParams = exports.upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo = exports.upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne = exports.listCustomerAppDataQueryParams = exports.listCustomerAppDataQueryPageSizeMax = exports.listCustomerAppDataQueryPageSizeDefault = exports.listCustomerAppDataQueryPageDefault = exports.listCustomerAppDataParams = exports.listCustomerAppDataPathCustomerIdOrKeyMaxTwo = exports.listCustomerAppDataPathCustomerIdOrKeyRegExpOne = exports.getCustomerAccessParams = exports.getCustomerAccessPathCustomerIdOrKeyMaxTwo = exports.getCustomerAccessPathCustomerIdOrKeyRegExpOne = exports.deleteCustomerParams = exports.deleteCustomerPathCustomerIdOrKeyMaxTwo = exports.deleteCustomerPathCustomerIdOrKeyRegExpOne = exports.updateCustomerBody = exports.updateCustomerBodyBillingAddressCountryRegExpOne = exports.updateCustomerBodyBillingAddressCountryMaxOne = exports.updateCustomerBodyBillingAddressCountryMinOne = exports.updateCustomerBodyCurrencyRegExpOne = exports.updateCustomerBodyCurrencyMaxOne = exports.updateCustomerBodyCurrencyMinOne = exports.updateCustomerBodyUsageAttributionSubjectKeysMax = exports.updateCustomerBodyKeyMax = exports.updateCustomerBodyDescriptionMax = exports.updateCustomerBodyNameMax = exports.updateCustomerParams = exports.updateCustomerPathCustomerIdOrKeyMaxTwo = exports.updateCustomerPathCustomerIdOrKeyRegExpOne = exports.getCustomerQueryParams = exports.getCustomerParams = exports.getCustomerPathCustomerIdOrKeyMaxTwo = exports.getCustomerPathCustomerIdOrKeyRegExpOne = exports.listCustomersQueryParams = exports.listCustomersQueryIncludeDeletedDefault = exports.listCustomersQueryPageSizeMax = exports.listCustomersQueryPageSizeDefault = exports.listCustomersQueryPageDefault = exports.createCustomerBody = exports.createCustomerBodyBillingAddressCountryRegExpOne = void 0;
|
|
13
|
+
exports.listEventsQueryParams = exports.listEventsQueryLimitMax = exports.listEventsQueryLimitDefault = exports.listEventsQueryCustomerIdItemRegExp = exports.listEventsQueryClientIdMax = exports.getEntitlementByIdParams = exports.getEntitlementByIdPathEntitlementIdRegExp = exports.listEntitlementsQueryParams = exports.listEntitlementsQueryLimitMax = exports.listEntitlementsQueryLimitDefault = exports.listEntitlementsQueryOffsetMin = exports.listEntitlementsQueryOffsetDefault = exports.listEntitlementsQueryPageSizeMax = exports.listEntitlementsQueryPageSizeDefault = exports.listEntitlementsQueryPageDefault = exports.listEntitlementsQueryExcludeInactiveDefault = exports.listCustomerSubscriptionsQueryParams = exports.listCustomerSubscriptionsQueryPageSizeMax = exports.listCustomerSubscriptionsQueryPageSizeDefault = exports.listCustomerSubscriptionsQueryPageDefault = exports.listCustomerSubscriptionsParams = exports.listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo = exports.listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne = exports.createCustomerStripePortalSessionBody = exports.createCustomerStripePortalSessionParams = exports.createCustomerStripePortalSessionPathCustomerIdOrKeyMaxTwo = exports.createCustomerStripePortalSessionPathCustomerIdOrKeyRegExpOne = exports.upsertCustomerStripeAppDataBody = exports.upsertCustomerStripeAppDataParams = exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = exports.getCustomerStripeAppDataParams = exports.getCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = exports.getCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = exports.getCustomerEntitlementValueQueryParams = exports.getCustomerEntitlementValueParams = exports.getCustomerEntitlementValuePathFeatureKeyRegExp = exports.getCustomerEntitlementValuePathFeatureKeyMax = exports.getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo = exports.getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne = exports.deleteCustomerAppDataParams = exports.deleteCustomerAppDataPathAppIdRegExp = exports.deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo = exports.deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne = exports.upsertCustomerAppDataBody = exports.upsertCustomerAppDataBodyItem = exports.upsertCustomerAppDataBodyIdRegExpTwo = exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne = exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMaxOne = exports.upsertCustomerAppDataBodyAppDescriptionMaxOne = void 0;
|
|
14
|
+
exports.createMeterBodyDescriptionMax = exports.listMetersQueryParams = exports.listMetersQueryIncludeDeletedDefault = 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.voidGrantParams = exports.listGrantsQueryParams = exports.listGrantsQueryLimitMax = exports.listGrantsQueryLimitDefault = exports.listGrantsQueryOffsetMin = exports.listGrantsQueryOffsetDefault = exports.listGrantsQueryPageSizeMax = exports.listGrantsQueryPageSizeDefault = exports.listGrantsQueryPageDefault = exports.listGrantsQueryIncludeDeletedDefault = exports.deleteFeatureParams = exports.getFeatureParams = exports.createFeatureBody = exports.createFeatureBodyMeterSlugRegExp = exports.createFeatureBodyMeterSlugMax = exports.createFeatureBodyKeyRegExp = exports.createFeatureBodyKeyMax = exports.listFeaturesQueryParams = exports.listFeaturesQueryLimitMax = exports.listFeaturesQueryLimitDefault = exports.listFeaturesQueryOffsetMin = exports.listFeaturesQueryOffsetDefault = exports.listFeaturesQueryPageSizeMax = exports.listFeaturesQueryPageSizeDefault = exports.listFeaturesQueryPageDefault = exports.listFeaturesQueryIncludeArchivedDefault = exports.ingestEventsBody = exports.ingestEventsBodyItemSpecversionDefault = exports.ingestEventsBodySpecversionDefault = void 0;
|
|
15
|
+
exports.getNotificationChannelPathChannelIdRegExp = exports.updateNotificationChannelBody = exports.updateNotificationChannelBodySigningSecretRegExp = exports.updateNotificationChannelBodyDisabledDefault = exports.updateNotificationChannelParams = exports.updateNotificationChannelPathChannelIdRegExp = exports.createNotificationChannelBody = exports.createNotificationChannelBodySigningSecretRegExp = exports.createNotificationChannelBodyDisabledDefault = exports.listNotificationChannelsQueryParams = exports.listNotificationChannelsQueryPageSizeMax = exports.listNotificationChannelsQueryPageSizeDefault = exports.listNotificationChannelsQueryPageDefault = exports.listNotificationChannelsQueryIncludeDisabledDefault = exports.listNotificationChannelsQueryIncludeDeletedDefault = 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.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 = void 0;
|
|
16
|
+
exports.getNotificationRuleParams = exports.getNotificationRulePathRuleIdRegExp = exports.updateNotificationRuleBody = exports.updateNotificationRuleBodyChannelsItemRegExpThree = exports.updateNotificationRuleBodyDisabledDefaultThree = exports.updateNotificationRuleBodyChannelsItemRegExpTwo = exports.updateNotificationRuleBodyDisabledDefaultTwo = exports.updateNotificationRuleBodyFeaturesItemRegExpOne = exports.updateNotificationRuleBodyFeaturesItemMaxOne = exports.updateNotificationRuleBodyChannelsItemRegExpOne = exports.updateNotificationRuleBodyDisabledDefaultOne = exports.updateNotificationRuleBodyFeaturesItemRegExp = exports.updateNotificationRuleBodyFeaturesItemMax = exports.updateNotificationRuleBodyChannelsItemRegExp = exports.updateNotificationRuleBodyThresholdsMax = exports.updateNotificationRuleBodyDisabledDefault = exports.updateNotificationRuleParams = exports.updateNotificationRulePathRuleIdRegExp = exports.createNotificationRuleBody = exports.createNotificationRuleBodyChannelsItemRegExpThree = exports.createNotificationRuleBodyDisabledDefaultThree = exports.createNotificationRuleBodyChannelsItemRegExpTwo = exports.createNotificationRuleBodyDisabledDefaultTwo = exports.createNotificationRuleBodyFeaturesItemRegExpOne = exports.createNotificationRuleBodyFeaturesItemMaxOne = exports.createNotificationRuleBodyChannelsItemRegExpOne = exports.createNotificationRuleBodyDisabledDefaultOne = exports.createNotificationRuleBodyFeaturesItemRegExp = exports.createNotificationRuleBodyFeaturesItemMax = exports.createNotificationRuleBodyChannelsItemRegExp = exports.createNotificationRuleBodyThresholdsMax = exports.createNotificationRuleBodyDisabledDefault = exports.listNotificationRulesQueryParams = exports.listNotificationRulesQueryPageSizeMax = exports.listNotificationRulesQueryPageSizeDefault = exports.listNotificationRulesQueryPageDefault = exports.listNotificationRulesQueryFeatureItemRegExp = exports.listNotificationRulesQueryFeatureItemMax = exports.listNotificationRulesQueryIncludeDisabledDefault = exports.listNotificationRulesQueryIncludeDeletedDefault = exports.getNotificationEventParams = exports.listNotificationEventsQueryParams = exports.listNotificationEventsQueryPageSizeMax = exports.listNotificationEventsQueryPageSizeDefault = exports.listNotificationEventsQueryPageDefault = exports.listNotificationEventsQueryChannelItemRegExp = exports.listNotificationEventsQueryRuleItemRegExp = exports.deleteNotificationChannelParams = exports.deleteNotificationChannelPathChannelIdRegExp = exports.getNotificationChannelParams = void 0;
|
|
17
|
+
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = exports.createPlanBodyPhasesItemRateCardsItemDescriptionMaxOne = exports.createPlanBodyPhasesItemRateCardsItemNameMaxOne = exports.createPlanBodyPhasesItemRateCardsItemKeyRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemKeyMaxOne = exports.createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyMax = exports.createPlanBodyPhasesItemRateCardsItemDescriptionMax = exports.createPlanBodyPhasesItemRateCardsItemNameMax = exports.createPlanBodyPhasesItemRateCardsItemKeyRegExp = exports.createPlanBodyPhasesItemRateCardsItemKeyMax = exports.createPlanBodyPhasesItemDescriptionMax = exports.createPlanBodyPhasesItemNameMax = exports.createPlanBodyPhasesItemKeyRegExp = exports.createPlanBodyPhasesItemKeyMax = exports.createPlanBodyProRatingConfigDefault = exports.createPlanBodyProRatingConfigModeDefault = exports.createPlanBodyProRatingConfigEnabledDefault = exports.createPlanBodyCurrencyDefault = exports.createPlanBodyCurrencyRegExpOne = exports.createPlanBodyCurrencyMaxOne = exports.createPlanBodyCurrencyMinOne = exports.createPlanBodyKeyRegExp = exports.createPlanBodyKeyMax = exports.createPlanBodyDescriptionMax = exports.createPlanBodyNameMax = exports.listPlansQueryParams = 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 = void 0;
|
|
18
|
+
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyMax = exports.updatePlanBodyPhasesItemRateCardsItemDescriptionMax = exports.updatePlanBodyPhasesItemRateCardsItemNameMax = exports.updatePlanBodyPhasesItemRateCardsItemKeyRegExp = exports.updatePlanBodyPhasesItemRateCardsItemKeyMax = exports.updatePlanBodyPhasesItemDescriptionMax = exports.updatePlanBodyPhasesItemNameMax = exports.updatePlanBodyPhasesItemKeyRegExp = exports.updatePlanBodyPhasesItemKeyMax = exports.updatePlanBodyProRatingConfigDefault = exports.updatePlanBodyProRatingConfigModeDefault = exports.updatePlanBodyProRatingConfigEnabledDefault = exports.updatePlanBodyDescriptionMax = exports.updatePlanBodyNameMax = exports.updatePlanParams = exports.updatePlanPathPlanIdRegExp = exports.nextPlanParams = exports.nextPlanPathPlanIdOrKeyRegExp = exports.nextPlanPathPlanIdOrKeyMax = exports.createPlanBody = exports.createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = exports.createPlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = exports.createPlanBodyPhasesItemRateCardsItemPriceMultiplierDefault = exports.createPlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = exports.createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefaultTwo = exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = exports.createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = void 0;
|
|
19
|
+
exports.listPlanAddonsQueryIdItemRegExp = exports.listPlanAddonsQueryIncludeDeletedDefault = exports.listPlanAddonsParams = exports.listPlanAddonsPathPlanIdRegExp = exports.listPlanAddonsPathPlanIdMax = exports.deletePlanParams = exports.deletePlanPathPlanIdRegExp = exports.getPlanQueryParams = exports.getPlanQueryIncludeLatestDefault = exports.getPlanParams = exports.getPlanPathPlanIdRegExp = exports.getPlanPathPlanIdMax = exports.updatePlanBody = exports.updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = exports.updatePlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = exports.updatePlanBodyPhasesItemRateCardsItemPriceMultiplierDefault = exports.updatePlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = exports.updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefaultTwo = exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = exports.updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = exports.updatePlanBodyPhasesItemRateCardsItemDescriptionMaxOne = exports.updatePlanBodyPhasesItemRateCardsItemNameMaxOne = exports.updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemKeyMaxOne = exports.updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = exports.updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = void 0;
|
|
20
|
+
exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne = exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryMaxOne = exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryMinOne = exports.createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne = exports.createStripeCheckoutSessionBodyCustomerCurrencyMaxOne = exports.createStripeCheckoutSessionBodyCustomerCurrencyMinOne = exports.createStripeCheckoutSessionBodyCustomerUsageAttributionSubjectKeysMax = exports.createStripeCheckoutSessionBodyCustomerKeyMaxOne = exports.createStripeCheckoutSessionBodyCustomerDescriptionMax = exports.createStripeCheckoutSessionBodyCustomerNameMax = exports.createStripeCheckoutSessionBodyCustomerIdRegExp = 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.listPlanAddonsQueryPageSizeMax = exports.listPlanAddonsQueryPageSizeDefault = exports.listPlanAddonsQueryPageDefault = exports.listPlanAddonsQueryKeyItemRegExp = exports.listPlanAddonsQueryKeyItemMax = void 0;
|
|
21
|
+
exports.overrideEntitlementBodyFeatureIdRegExp = exports.overrideEntitlementBodyFeatureKeyRegExp = exports.overrideEntitlementBodyFeatureKeyMax = exports.overrideEntitlementParams = exports.createGrantBody = exports.createGrantBodyRecurrenceIntervalRegExpTwo = exports.createGrantBodyMinRolloverAmountDefault = exports.createGrantBodyMaxRolloverAmountDefault = exports.createGrantBodyExpirationCountMax = exports.createGrantBodyPriorityMax = exports.createGrantBodyAmountMin = exports.createGrantParams = exports.listEntitlementGrantsQueryParams = exports.listEntitlementGrantsQueryIncludeDeletedDefault = exports.listEntitlementGrantsParams = exports.listSubjectEntitlementsQueryParams = exports.listSubjectEntitlementsQueryIncludeDeletedDefault = exports.listSubjectEntitlementsParams = exports.createEntitlementBody = exports.createEntitlementBodyUsagePeriodIntervalRegExpOnezero = exports.createEntitlementBodyFeatureIdRegExpTwo = exports.createEntitlementBodyFeatureKeyRegExpTwo = exports.createEntitlementBodyFeatureKeyMaxTwo = exports.createEntitlementBodyUsagePeriodIntervalRegExpSix = exports.createEntitlementBodyFeatureIdRegExpOne = exports.createEntitlementBodyFeatureKeyRegExpOne = exports.createEntitlementBodyFeatureKeyMaxOne = exports.createEntitlementBodyPreserveOverageAtResetDefault = exports.createEntitlementBodyIssueAfterResetPriorityMax = exports.createEntitlementBodyIssueAfterResetPriorityDefault = exports.createEntitlementBodyIssueAfterResetMin = exports.createEntitlementBodyUsagePeriodIntervalRegExpTwo = exports.createEntitlementBodyIsUnlimitedDefault = exports.createEntitlementBodyIsSoftLimitDefault = exports.createEntitlementBodyFeatureIdRegExp = exports.createEntitlementBodyFeatureKeyRegExp = exports.createEntitlementBodyFeatureKeyMax = exports.createEntitlementParams = exports.deleteSubjectParams = exports.getSubjectParams = exports.upsertSubjectBody = exports.upsertSubjectBodyItem = exports.createStripeCheckoutSessionBody = exports.createStripeCheckoutSessionBodyOptionsCustomTextTermsOfServiceAcceptanceMessageMax = exports.createStripeCheckoutSessionBodyOptionsCustomTextSubmitMessageMax = exports.createStripeCheckoutSessionBodyOptionsCustomTextShippingAddressMessageMax = exports.createStripeCheckoutSessionBodyOptionsCustomTextAfterSubmitMessageMax = exports.createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne = exports.createStripeCheckoutSessionBodyOptionsCurrencyMaxOne = exports.createStripeCheckoutSessionBodyOptionsCurrencyMinOne = void 0;
|
|
22
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = exports.createSubscriptionBodyCustomPlanPhasesItemDescriptionMax = exports.createSubscriptionBodyCustomPlanPhasesItemNameMax = exports.createSubscriptionBodyCustomPlanPhasesItemKeyRegExp = exports.createSubscriptionBodyCustomPlanPhasesItemKeyMax = exports.createSubscriptionBodyCustomPlanProRatingConfigDefault = exports.createSubscriptionBodyCustomPlanProRatingConfigModeDefault = exports.createSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = exports.createSubscriptionBodyCustomPlanCurrencyDefault = exports.createSubscriptionBodyCustomPlanCurrencyRegExpOne = exports.createSubscriptionBodyCustomPlanCurrencyMaxOne = exports.createSubscriptionBodyCustomPlanCurrencyMinOne = exports.createSubscriptionBodyCustomPlanDescriptionMax = exports.createSubscriptionBodyCustomPlanNameMax = exports.createSubscriptionBodyCustomerKeyMax = exports.createSubscriptionBodyCustomerIdRegExp = exports.createSubscriptionBodyTimingDefault = exports.createSubscriptionBodyPlanKeyRegExp = exports.createSubscriptionBodyPlanKeyMax = exports.resetEntitlementUsageBody = exports.resetEntitlementUsageParams = exports.getEntitlementHistoryQueryParams = exports.getEntitlementHistoryQueryWindowTimeZoneDefault = exports.getEntitlementHistoryParams = exports.deleteEntitlementParams = exports.getEntitlementParams = exports.getEntitlementValueQueryParams = exports.getEntitlementValueParams = exports.overrideEntitlementBody = exports.overrideEntitlementBodyUsagePeriodIntervalRegExpOnezero = exports.overrideEntitlementBodyFeatureIdRegExpTwo = exports.overrideEntitlementBodyFeatureKeyRegExpTwo = exports.overrideEntitlementBodyFeatureKeyMaxTwo = exports.overrideEntitlementBodyUsagePeriodIntervalRegExpSix = exports.overrideEntitlementBodyFeatureIdRegExpOne = exports.overrideEntitlementBodyFeatureKeyRegExpOne = exports.overrideEntitlementBodyFeatureKeyMaxOne = exports.overrideEntitlementBodyPreserveOverageAtResetDefault = exports.overrideEntitlementBodyIssueAfterResetPriorityMax = exports.overrideEntitlementBodyIssueAfterResetPriorityDefault = exports.overrideEntitlementBodyIssueAfterResetMin = exports.overrideEntitlementBodyUsagePeriodIntervalRegExpTwo = exports.overrideEntitlementBodyIsUnlimitedDefault = exports.overrideEntitlementBodyIsSoftLimitDefault = void 0;
|
|
23
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardKeyRegExp = exports.editSubscriptionBodyCustomizationsItemRateCardKeyMax = exports.editSubscriptionParams = exports.editSubscriptionPathSubscriptionIdRegExp = exports.getSubscriptionQueryParams = exports.getSubscriptionParams = exports.getSubscriptionPathSubscriptionIdRegExp = exports.createSubscriptionBody = exports.createSubscriptionBodyCustomerKeyMaxOne = exports.createSubscriptionBodyCustomerIdRegExpOne = exports.createSubscriptionBodyTimingDefaultFour = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = void 0;
|
|
24
|
+
exports.deleteSubscriptionPathSubscriptionIdRegExp = exports.editSubscriptionBody = exports.editSubscriptionBodyCustomizationsMax = exports.editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = exports.editSubscriptionBodyCustomizationsItemPhaseKeyMaxTwo = exports.editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven = exports.editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierDefault = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpFive = exports.editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefaultTwo = exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree = exports.editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefaultOne = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMaxOne = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefaultOne = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefaultOne = exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMaxOne = exports.editSubscriptionBodyCustomizationsItemRateCardDescriptionMaxOne = exports.editSubscriptionBodyCustomizationsItemRateCardNameMaxOne = exports.editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardKeyMaxOne = exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefault = exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne = exports.editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefault = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMax = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefault = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin = exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefault = exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp = exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMax = exports.editSubscriptionBodyCustomizationsItemRateCardDescriptionMax = exports.editSubscriptionBodyCustomizationsItemRateCardNameMax = void 0;
|
|
25
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = exports.changeSubscriptionBodyCustomPlanPhasesItemDescriptionMax = exports.changeSubscriptionBodyCustomPlanPhasesItemNameMax = exports.changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemKeyMax = exports.changeSubscriptionBodyCustomPlanProRatingConfigDefault = exports.changeSubscriptionBodyCustomPlanProRatingConfigModeDefault = exports.changeSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = exports.changeSubscriptionBodyCustomPlanCurrencyDefault = exports.changeSubscriptionBodyCustomPlanCurrencyRegExpOne = exports.changeSubscriptionBodyCustomPlanCurrencyMaxOne = exports.changeSubscriptionBodyCustomPlanCurrencyMinOne = exports.changeSubscriptionBodyCustomPlanDescriptionMax = exports.changeSubscriptionBodyCustomPlanNameMax = exports.changeSubscriptionBodyPlanKeyRegExp = exports.changeSubscriptionBodyPlanKeyMax = 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 = void 0;
|
|
26
|
+
exports.createCustomerEntitlementV2BodyFeatureKeyRegExp = exports.createCustomerEntitlementV2BodyFeatureKeyMax = exports.createCustomerEntitlementV2Params = exports.createCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = exports.createCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = exports.unscheduleCancelationParams = exports.unscheduleCancelationPathSubscriptionIdRegExp = exports.restoreSubscriptionParams = exports.restoreSubscriptionPathSubscriptionIdRegExp = exports.migrateSubscriptionBody = exports.migrateSubscriptionBodyTimingDefault = exports.migrateSubscriptionParams = exports.migrateSubscriptionPathSubscriptionIdRegExp = exports.changeSubscriptionBody = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = void 0;
|
|
27
|
+
exports.listCustomerEntitlementGrantsV2QueryPageSizeDefault = exports.listCustomerEntitlementGrantsV2QueryPageDefault = exports.listCustomerEntitlementGrantsV2QueryIncludeDeletedDefault = exports.listCustomerEntitlementGrantsV2Params = exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyMax = exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyMaxTwo = exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyRegExpOne = exports.deleteCustomerEntitlementV2Params = exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = exports.getCustomerEntitlementV2Params = exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = exports.getCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = exports.listCustomerEntitlementsV2QueryParams = exports.listCustomerEntitlementsV2QueryPageSizeMax = exports.listCustomerEntitlementsV2QueryPageSizeDefault = exports.listCustomerEntitlementsV2QueryPageDefault = exports.listCustomerEntitlementsV2QueryIncludeDeletedDefault = exports.listCustomerEntitlementsV2Params = exports.listCustomerEntitlementsV2PathCustomerIdOrKeyMaxTwo = exports.listCustomerEntitlementsV2PathCustomerIdOrKeyRegExpOne = exports.createCustomerEntitlementV2Body = exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero = exports.createCustomerEntitlementV2BodyFeatureIdRegExpTwo = exports.createCustomerEntitlementV2BodyFeatureKeyRegExpTwo = exports.createCustomerEntitlementV2BodyFeatureKeyMaxTwo = exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix = exports.createCustomerEntitlementV2BodyFeatureIdRegExpOne = exports.createCustomerEntitlementV2BodyFeatureKeyRegExpOne = exports.createCustomerEntitlementV2BodyFeatureKeyMaxOne = exports.createCustomerEntitlementV2BodyGrantsItemExpirationCountMax = exports.createCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo = exports.createCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = exports.createCustomerEntitlementV2BodyGrantsItemPriorityMax = exports.createCustomerEntitlementV2BodyGrantsItemAmountMin = exports.createCustomerEntitlementV2BodyIssuePriorityMax = exports.createCustomerEntitlementV2BodyIssuePriorityDefault = exports.createCustomerEntitlementV2BodyIssueAmountMin = exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityMax = exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = exports.createCustomerEntitlementV2BodyIssueAfterResetMin = exports.createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo = exports.createCustomerEntitlementV2BodyIsSoftLimitDefault = exports.createCustomerEntitlementV2BodyFeatureIdRegExp = void 0;
|
|
28
|
+
exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix = exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpOne = exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne = exports.overrideCustomerEntitlementV2BodyFeatureKeyMaxOne = exports.overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax = exports.overrideCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo = exports.overrideCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = exports.overrideCustomerEntitlementV2BodyGrantsItemPriorityMax = exports.overrideCustomerEntitlementV2BodyGrantsItemAmountMin = exports.overrideCustomerEntitlementV2BodyIssuePriorityMax = exports.overrideCustomerEntitlementV2BodyIssuePriorityDefault = exports.overrideCustomerEntitlementV2BodyIssueAmountMin = exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax = exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = exports.overrideCustomerEntitlementV2BodyIssueAfterResetMin = exports.overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo = exports.overrideCustomerEntitlementV2BodyIsSoftLimitDefault = exports.overrideCustomerEntitlementV2BodyFeatureIdRegExp = exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExp = exports.overrideCustomerEntitlementV2BodyFeatureKeyMax = exports.overrideCustomerEntitlementV2Params = exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMaxTwo = exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExpOne = exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = exports.getCustomerEntitlementHistoryV2QueryParams = exports.getCustomerEntitlementHistoryV2QueryWindowTimeZoneDefault = exports.getCustomerEntitlementHistoryV2Params = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyMax = exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyMaxTwo = exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyRegExpOne = exports.createCustomerEntitlementGrantV2Body = exports.createCustomerEntitlementGrantV2BodyExpirationCountMax = exports.createCustomerEntitlementGrantV2BodyRecurrenceIntervalRegExpTwo = exports.createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = exports.createCustomerEntitlementGrantV2BodyPriorityMax = exports.createCustomerEntitlementGrantV2BodyAmountMin = exports.createCustomerEntitlementGrantV2Params = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyMax = exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyMaxTwo = exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyRegExpOne = exports.listCustomerEntitlementGrantsV2QueryParams = exports.listCustomerEntitlementGrantsV2QueryLimitMax = exports.listCustomerEntitlementGrantsV2QueryLimitDefault = exports.listCustomerEntitlementGrantsV2QueryOffsetMin = exports.listCustomerEntitlementGrantsV2QueryOffsetDefault = exports.listCustomerEntitlementGrantsV2QueryPageSizeMax = void 0;
|
|
29
|
+
exports.listGrantsV2QueryParams = exports.listGrantsV2QueryLimitMax = exports.listGrantsV2QueryLimitDefault = exports.listGrantsV2QueryOffsetMin = exports.listGrantsV2QueryOffsetDefault = exports.listGrantsV2QueryPageSizeMax = exports.listGrantsV2QueryPageSizeDefault = exports.listGrantsV2QueryPageDefault = exports.listGrantsV2QueryIncludeDeletedDefault = exports.listGrantsV2QueryCustomerItemMaxTwo = exports.listGrantsV2QueryCustomerItemRegExpOne = exports.listEventsV2QueryParams = exports.listEventsV2QueryClientIdMax = exports.listEventsV2QueryLimitMax = exports.listEventsV2QueryLimitDefault = exports.getEntitlementByIdV2Params = exports.getEntitlementByIdV2PathEntitlementIdRegExp = exports.listEntitlementsV2QueryParams = 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.getCustomerEntitlementValueV2PathCustomerIdOrKeyMaxTwo = exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyRegExpOne = exports.resetCustomerEntitlementUsageV2Body = exports.resetCustomerEntitlementUsageV2Params = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyMax = exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyMaxTwo = exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyRegExpOne = exports.overrideCustomerEntitlementV2Body = exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero = exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo = exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo = exports.overrideCustomerEntitlementV2BodyFeatureKeyMaxTwo = void 0;
|
|
30
|
+
/**
|
|
31
|
+
* Generated by orval v7.13.0 🍺
|
|
32
|
+
* Do not edit manually.
|
|
33
|
+
* OpenMeter Cloud API
|
|
34
|
+
* OpenMeter is a cloud native usage metering service.
|
|
35
|
+
The OpenMeter API allows you to ingest events, query meter usage, and manage resources.
|
|
36
|
+
* OpenAPI spec version: 1.0.0
|
|
37
|
+
*/
|
|
32
38
|
const zod_1 = require("zod");
|
|
33
39
|
/**
|
|
34
40
|
* List all add-ons.
|
|
35
41
|
* @summary List add-ons
|
|
36
42
|
*/
|
|
37
43
|
exports.listAddonsQueryIncludeDeletedDefault = false;
|
|
38
|
-
exports.listAddonsQueryIdItemRegExp =
|
|
44
|
+
exports.listAddonsQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
39
45
|
exports.listAddonsQueryKeyItemMax = 64;
|
|
40
|
-
exports.listAddonsQueryKeyItemRegExp =
|
|
46
|
+
exports.listAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
41
47
|
exports.listAddonsQueryCurrencyItemMin = 3;
|
|
42
48
|
exports.listAddonsQueryCurrencyItemMax = 3;
|
|
43
|
-
exports.listAddonsQueryCurrencyItemRegExp =
|
|
49
|
+
exports.listAddonsQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
|
|
44
50
|
exports.listAddonsQueryPageDefault = 1;
|
|
45
51
|
exports.listAddonsQueryPageSizeDefault = 100;
|
|
46
52
|
exports.listAddonsQueryPageSizeMax = 1000;
|
|
@@ -108,57 +114,57 @@ exports.listAddonsQueryParams = zod_1.z.object({
|
|
|
108
114
|
exports.createAddonBodyNameMax = 256;
|
|
109
115
|
exports.createAddonBodyDescriptionMax = 1024;
|
|
110
116
|
exports.createAddonBodyKeyMax = 64;
|
|
111
|
-
exports.createAddonBodyKeyRegExp =
|
|
117
|
+
exports.createAddonBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
112
118
|
exports.createAddonBodyCurrencyMinOne = 3;
|
|
113
119
|
exports.createAddonBodyCurrencyMaxOne = 3;
|
|
114
|
-
exports.createAddonBodyCurrencyRegExpOne =
|
|
120
|
+
exports.createAddonBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
115
121
|
exports.createAddonBodyCurrencyDefault = 'USD';
|
|
116
122
|
exports.createAddonBodyRateCardsItemKeyMax = 64;
|
|
117
|
-
exports.createAddonBodyRateCardsItemKeyRegExp =
|
|
123
|
+
exports.createAddonBodyRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
118
124
|
exports.createAddonBodyRateCardsItemNameMax = 256;
|
|
119
125
|
exports.createAddonBodyRateCardsItemDescriptionMax = 1024;
|
|
120
126
|
exports.createAddonBodyRateCardsItemFeatureKeyMax = 64;
|
|
121
|
-
exports.createAddonBodyRateCardsItemFeatureKeyRegExp =
|
|
127
|
+
exports.createAddonBodyRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
122
128
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
|
|
123
129
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
|
|
124
130
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
125
131
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
126
132
|
exports.createAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
127
|
-
exports.createAddonBodyRateCardsItemTaxConfigStripeCodeRegExp =
|
|
128
|
-
exports.createAddonBodyRateCardsItemPriceAmountRegExpOne =
|
|
133
|
+
exports.createAddonBodyRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
134
|
+
exports.createAddonBodyRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
129
135
|
exports.createAddonBodyRateCardsItemPricePaymentTermDefault = 'in_advance';
|
|
130
|
-
exports.createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne =
|
|
136
|
+
exports.createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
131
137
|
exports.createAddonBodyRateCardsItemKeyMaxOne = 64;
|
|
132
|
-
exports.createAddonBodyRateCardsItemKeyRegExpOne =
|
|
138
|
+
exports.createAddonBodyRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
133
139
|
exports.createAddonBodyRateCardsItemNameMaxOne = 256;
|
|
134
140
|
exports.createAddonBodyRateCardsItemDescriptionMaxOne = 1024;
|
|
135
141
|
exports.createAddonBodyRateCardsItemFeatureKeyMaxOne = 64;
|
|
136
|
-
exports.createAddonBodyRateCardsItemFeatureKeyRegExpOne =
|
|
142
|
+
exports.createAddonBodyRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
137
143
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
138
144
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
139
145
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
140
146
|
exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
141
147
|
exports.createAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
142
|
-
exports.createAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne =
|
|
143
|
-
exports.createAddonBodyRateCardsItemPriceAmountRegExpThree =
|
|
148
|
+
exports.createAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
149
|
+
exports.createAddonBodyRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
144
150
|
exports.createAddonBodyRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
|
|
145
|
-
exports.createAddonBodyRateCardsItemPriceAmountRegExpFive =
|
|
146
|
-
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpOne =
|
|
147
|
-
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpOne =
|
|
148
|
-
exports.createAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne =
|
|
149
|
-
exports.createAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
150
|
-
exports.createAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
151
|
-
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpThree =
|
|
152
|
-
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpThree =
|
|
153
|
-
exports.createAddonBodyRateCardsItemPriceMultiplierRegExpOne =
|
|
151
|
+
exports.createAddonBodyRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
152
|
+
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
153
|
+
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
154
|
+
exports.createAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
155
|
+
exports.createAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
156
|
+
exports.createAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
157
|
+
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
158
|
+
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
159
|
+
exports.createAddonBodyRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
154
160
|
exports.createAddonBodyRateCardsItemPriceMultiplierDefault = '1';
|
|
155
|
-
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpFive =
|
|
156
|
-
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpFive =
|
|
157
|
-
exports.createAddonBodyRateCardsItemPriceAmountRegExpSeven =
|
|
158
|
-
exports.createAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne =
|
|
159
|
-
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven =
|
|
160
|
-
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven =
|
|
161
|
-
exports.createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree =
|
|
161
|
+
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
162
|
+
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
163
|
+
exports.createAddonBodyRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
164
|
+
exports.createAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
165
|
+
exports.createAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
166
|
+
exports.createAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
167
|
+
exports.createAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
162
168
|
exports.createAddonBody = zod_1.z
|
|
163
169
|
.object({
|
|
164
170
|
currency: zod_1.z.coerce
|
|
@@ -176,7 +182,7 @@ exports.createAddonBody = zod_1.z
|
|
|
176
182
|
instanceType: zod_1.z
|
|
177
183
|
.enum(['single', 'multiple'])
|
|
178
184
|
.describe('The instanceType of the add-on.\nSingle instance add-ons can be added to subscription only once while add-ons with multiple type can be added more then once.')
|
|
179
|
-
.describe('The instanceType of the add-ons. Can be
|
|
185
|
+
.describe('The instanceType of the add-ons. Can be "single" or "multiple".'),
|
|
180
186
|
key: zod_1.z.coerce
|
|
181
187
|
.string()
|
|
182
188
|
.min(1)
|
|
@@ -246,7 +252,7 @@ exports.createAddonBody = zod_1.z
|
|
|
246
252
|
.number()
|
|
247
253
|
.min(exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin)
|
|
248
254
|
.optional()
|
|
249
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
255
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
250
256
|
issueAfterResetPriority: zod_1.z.coerce
|
|
251
257
|
.number()
|
|
252
258
|
.min(1)
|
|
@@ -418,7 +424,7 @@ exports.createAddonBody = zod_1.z
|
|
|
418
424
|
.number()
|
|
419
425
|
.min(exports.createAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
|
|
420
426
|
.optional()
|
|
421
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
427
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
422
428
|
issueAfterResetPriority: zod_1.z.coerce
|
|
423
429
|
.number()
|
|
424
430
|
.min(1)
|
|
@@ -688,58 +694,58 @@ exports.createAddonBody = zod_1.z
|
|
|
688
694
|
* Update add-on by id.
|
|
689
695
|
* @summary Update add-on
|
|
690
696
|
*/
|
|
691
|
-
exports.updateAddonPathAddonIdRegExp =
|
|
697
|
+
exports.updateAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
692
698
|
exports.updateAddonParams = zod_1.z.object({
|
|
693
699
|
addonId: zod_1.z.coerce.string().regex(exports.updateAddonPathAddonIdRegExp),
|
|
694
700
|
});
|
|
695
701
|
exports.updateAddonBodyNameMax = 256;
|
|
696
702
|
exports.updateAddonBodyDescriptionMax = 1024;
|
|
697
703
|
exports.updateAddonBodyRateCardsItemKeyMax = 64;
|
|
698
|
-
exports.updateAddonBodyRateCardsItemKeyRegExp =
|
|
704
|
+
exports.updateAddonBodyRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
699
705
|
exports.updateAddonBodyRateCardsItemNameMax = 256;
|
|
700
706
|
exports.updateAddonBodyRateCardsItemDescriptionMax = 1024;
|
|
701
707
|
exports.updateAddonBodyRateCardsItemFeatureKeyMax = 64;
|
|
702
|
-
exports.updateAddonBodyRateCardsItemFeatureKeyRegExp =
|
|
708
|
+
exports.updateAddonBodyRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
703
709
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
|
|
704
710
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
|
|
705
711
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
706
712
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
707
713
|
exports.updateAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
708
|
-
exports.updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExp =
|
|
709
|
-
exports.updateAddonBodyRateCardsItemPriceAmountRegExpOne =
|
|
714
|
+
exports.updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
715
|
+
exports.updateAddonBodyRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
710
716
|
exports.updateAddonBodyRateCardsItemPricePaymentTermDefault = 'in_advance';
|
|
711
|
-
exports.updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne =
|
|
717
|
+
exports.updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
712
718
|
exports.updateAddonBodyRateCardsItemKeyMaxOne = 64;
|
|
713
|
-
exports.updateAddonBodyRateCardsItemKeyRegExpOne =
|
|
719
|
+
exports.updateAddonBodyRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
714
720
|
exports.updateAddonBodyRateCardsItemNameMaxOne = 256;
|
|
715
721
|
exports.updateAddonBodyRateCardsItemDescriptionMaxOne = 1024;
|
|
716
722
|
exports.updateAddonBodyRateCardsItemFeatureKeyMaxOne = 64;
|
|
717
|
-
exports.updateAddonBodyRateCardsItemFeatureKeyRegExpOne =
|
|
723
|
+
exports.updateAddonBodyRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
718
724
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
719
725
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
720
726
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
721
727
|
exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
722
728
|
exports.updateAddonBodyRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
723
|
-
exports.updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne =
|
|
724
|
-
exports.updateAddonBodyRateCardsItemPriceAmountRegExpThree =
|
|
729
|
+
exports.updateAddonBodyRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
730
|
+
exports.updateAddonBodyRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
725
731
|
exports.updateAddonBodyRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
|
|
726
|
-
exports.updateAddonBodyRateCardsItemPriceAmountRegExpFive =
|
|
727
|
-
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpOne =
|
|
728
|
-
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpOne =
|
|
729
|
-
exports.updateAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne =
|
|
730
|
-
exports.updateAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
731
|
-
exports.updateAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
732
|
-
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpThree =
|
|
733
|
-
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpThree =
|
|
734
|
-
exports.updateAddonBodyRateCardsItemPriceMultiplierRegExpOne =
|
|
732
|
+
exports.updateAddonBodyRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
733
|
+
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
734
|
+
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
735
|
+
exports.updateAddonBodyRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
736
|
+
exports.updateAddonBodyRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
737
|
+
exports.updateAddonBodyRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
738
|
+
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
739
|
+
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
740
|
+
exports.updateAddonBodyRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
735
741
|
exports.updateAddonBodyRateCardsItemPriceMultiplierDefault = '1';
|
|
736
|
-
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpFive =
|
|
737
|
-
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpFive =
|
|
738
|
-
exports.updateAddonBodyRateCardsItemPriceAmountRegExpSeven =
|
|
739
|
-
exports.updateAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne =
|
|
740
|
-
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven =
|
|
741
|
-
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven =
|
|
742
|
-
exports.updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree =
|
|
742
|
+
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
743
|
+
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
744
|
+
exports.updateAddonBodyRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
745
|
+
exports.updateAddonBodyRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
746
|
+
exports.updateAddonBodyRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
747
|
+
exports.updateAddonBodyRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
748
|
+
exports.updateAddonBodyRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
743
749
|
exports.updateAddonBody = zod_1.z
|
|
744
750
|
.object({
|
|
745
751
|
description: zod_1.z.coerce
|
|
@@ -750,7 +756,7 @@ exports.updateAddonBody = zod_1.z
|
|
|
750
756
|
instanceType: zod_1.z
|
|
751
757
|
.enum(['single', 'multiple'])
|
|
752
758
|
.describe('The instanceType of the add-on.\nSingle instance add-ons can be added to subscription only once while add-ons with multiple type can be added more then once.')
|
|
753
|
-
.describe('The instanceType of the add-ons. Can be
|
|
759
|
+
.describe('The instanceType of the add-ons. Can be "single" or "multiple".'),
|
|
754
760
|
metadata: zod_1.z
|
|
755
761
|
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
756
762
|
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
@@ -814,7 +820,7 @@ exports.updateAddonBody = zod_1.z
|
|
|
814
820
|
.number()
|
|
815
821
|
.min(exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMin)
|
|
816
822
|
.optional()
|
|
817
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
823
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
818
824
|
issueAfterResetPriority: zod_1.z.coerce
|
|
819
825
|
.number()
|
|
820
826
|
.min(1)
|
|
@@ -986,7 +992,7 @@ exports.updateAddonBody = zod_1.z
|
|
|
986
992
|
.number()
|
|
987
993
|
.min(exports.updateAddonBodyRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
|
|
988
994
|
.optional()
|
|
989
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
995
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
990
996
|
issueAfterResetPriority: zod_1.z.coerce
|
|
991
997
|
.number()
|
|
992
998
|
.min(1)
|
|
@@ -1257,7 +1263,7 @@ exports.updateAddonBody = zod_1.z
|
|
|
1257
1263
|
* @summary Get add-on
|
|
1258
1264
|
*/
|
|
1259
1265
|
exports.getAddonPathAddonIdMax = 64;
|
|
1260
|
-
exports.getAddonPathAddonIdRegExp =
|
|
1266
|
+
exports.getAddonPathAddonIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1261
1267
|
exports.getAddonParams = zod_1.z.object({
|
|
1262
1268
|
addonId: zod_1.z.coerce
|
|
1263
1269
|
.string()
|
|
@@ -1278,7 +1284,7 @@ exports.getAddonQueryParams = zod_1.z.object({
|
|
|
1278
1284
|
Once a add-on is deleted it cannot be undeleted.
|
|
1279
1285
|
* @summary Delete add-on
|
|
1280
1286
|
*/
|
|
1281
|
-
exports.deleteAddonPathAddonIdRegExp =
|
|
1287
|
+
exports.deleteAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1282
1288
|
exports.deleteAddonParams = zod_1.z.object({
|
|
1283
1289
|
addonId: zod_1.z.coerce.string().regex(exports.deleteAddonPathAddonIdRegExp),
|
|
1284
1290
|
});
|
|
@@ -1286,7 +1292,7 @@ exports.deleteAddonParams = zod_1.z.object({
|
|
|
1286
1292
|
* Archive a add-on version.
|
|
1287
1293
|
* @summary Archive add-on version
|
|
1288
1294
|
*/
|
|
1289
|
-
exports.archiveAddonPathAddonIdRegExp =
|
|
1295
|
+
exports.archiveAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1290
1296
|
exports.archiveAddonParams = zod_1.z.object({
|
|
1291
1297
|
addonId: zod_1.z.coerce.string().regex(exports.archiveAddonPathAddonIdRegExp),
|
|
1292
1298
|
});
|
|
@@ -1294,7 +1300,7 @@ exports.archiveAddonParams = zod_1.z.object({
|
|
|
1294
1300
|
* Publish a add-on version.
|
|
1295
1301
|
* @summary Publish add-on
|
|
1296
1302
|
*/
|
|
1297
|
-
exports.publishAddonPathAddonIdRegExp =
|
|
1303
|
+
exports.publishAddonPathAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1298
1304
|
exports.publishAddonParams = zod_1.z.object({
|
|
1299
1305
|
addonId: zod_1.z.coerce.string().regex(exports.publishAddonPathAddonIdRegExp),
|
|
1300
1306
|
});
|
|
@@ -1321,15 +1327,15 @@ exports.listAppsQueryParams = zod_1.z.object({
|
|
|
1321
1327
|
/**
|
|
1322
1328
|
* @summary Submit draft synchronization results
|
|
1323
1329
|
*/
|
|
1324
|
-
exports.appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp =
|
|
1330
|
+
exports.appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1325
1331
|
exports.appCustomInvoicingDraftSynchronizedParams = zod_1.z.object({
|
|
1326
1332
|
invoiceId: zod_1.z.coerce
|
|
1327
1333
|
.string()
|
|
1328
1334
|
.regex(exports.appCustomInvoicingDraftSynchronizedPathInvoiceIdRegExp),
|
|
1329
1335
|
});
|
|
1330
1336
|
exports.appCustomInvoicingDraftSynchronizedBodyInvoicingInvoiceNumberMaxOne = 256;
|
|
1331
|
-
exports.appCustomInvoicingDraftSynchronizedBodyInvoicingLineExternalIdsItemLineIdRegExp =
|
|
1332
|
-
exports.appCustomInvoicingDraftSynchronizedBodyInvoicingLineDiscountExternalIdsItemLineDiscountIdRegExp =
|
|
1337
|
+
exports.appCustomInvoicingDraftSynchronizedBodyInvoicingLineExternalIdsItemLineIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1338
|
+
exports.appCustomInvoicingDraftSynchronizedBodyInvoicingLineDiscountExternalIdsItemLineDiscountIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1333
1339
|
exports.appCustomInvoicingDraftSynchronizedBody = zod_1.z
|
|
1334
1340
|
.object({
|
|
1335
1341
|
invoicing: zod_1.z
|
|
@@ -1382,7 +1388,7 @@ exports.appCustomInvoicingDraftSynchronizedBody = zod_1.z
|
|
|
1382
1388
|
/**
|
|
1383
1389
|
* @summary Submit issuing synchronization results
|
|
1384
1390
|
*/
|
|
1385
|
-
exports.appCustomInvoicingIssuingSynchronizedPathInvoiceIdRegExp =
|
|
1391
|
+
exports.appCustomInvoicingIssuingSynchronizedPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1386
1392
|
exports.appCustomInvoicingIssuingSynchronizedParams = zod_1.z.object({
|
|
1387
1393
|
invoiceId: zod_1.z.coerce
|
|
1388
1394
|
.string()
|
|
@@ -1423,7 +1429,7 @@ exports.appCustomInvoicingIssuingSynchronizedBody = zod_1.z
|
|
|
1423
1429
|
/**
|
|
1424
1430
|
* @summary Update payment status
|
|
1425
1431
|
*/
|
|
1426
|
-
exports.appCustomInvoicingUpdatePaymentStatusPathInvoiceIdRegExp =
|
|
1432
|
+
exports.appCustomInvoicingUpdatePaymentStatusPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1427
1433
|
exports.appCustomInvoicingUpdatePaymentStatusParams = zod_1.z.object({
|
|
1428
1434
|
invoiceId: zod_1.z.coerce
|
|
1429
1435
|
.string()
|
|
@@ -1448,7 +1454,7 @@ exports.appCustomInvoicingUpdatePaymentStatusBody = zod_1.z
|
|
|
1448
1454
|
* Get the app.
|
|
1449
1455
|
* @summary Get app
|
|
1450
1456
|
*/
|
|
1451
|
-
exports.getAppPathIdRegExp =
|
|
1457
|
+
exports.getAppPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1452
1458
|
exports.getAppParams = zod_1.z.object({
|
|
1453
1459
|
id: zod_1.z.coerce.string().regex(exports.getAppPathIdRegExp),
|
|
1454
1460
|
});
|
|
@@ -1456,7 +1462,7 @@ exports.getAppParams = zod_1.z.object({
|
|
|
1456
1462
|
* Update an app.
|
|
1457
1463
|
* @summary Update app
|
|
1458
1464
|
*/
|
|
1459
|
-
exports.updateAppPathIdRegExp =
|
|
1465
|
+
exports.updateAppPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1460
1466
|
exports.updateAppParams = zod_1.z.object({
|
|
1461
1467
|
id: zod_1.z.coerce.string().regex(exports.updateAppPathIdRegExp),
|
|
1462
1468
|
});
|
|
@@ -1544,7 +1550,7 @@ exports.updateAppBody = zod_1.z
|
|
|
1544
1550
|
* Uninstall an app.
|
|
1545
1551
|
* @summary Uninstall app
|
|
1546
1552
|
*/
|
|
1547
|
-
exports.uninstallAppPathIdRegExp =
|
|
1553
|
+
exports.uninstallAppPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1548
1554
|
exports.uninstallAppParams = zod_1.z.object({
|
|
1549
1555
|
id: zod_1.z.coerce.string().regex(exports.uninstallAppPathIdRegExp),
|
|
1550
1556
|
});
|
|
@@ -1553,7 +1559,7 @@ exports.uninstallAppParams = zod_1.z.object({
|
|
|
1553
1559
|
* @deprecated
|
|
1554
1560
|
* @summary Update Stripe API key
|
|
1555
1561
|
*/
|
|
1556
|
-
exports.updateStripeAPIKeyPathIdRegExp =
|
|
1562
|
+
exports.updateStripeAPIKeyPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1557
1563
|
exports.updateStripeAPIKeyParams = zod_1.z.object({
|
|
1558
1564
|
id: zod_1.z.coerce.string().regex(exports.updateStripeAPIKeyPathIdRegExp),
|
|
1559
1565
|
});
|
|
@@ -1566,7 +1572,7 @@ exports.updateStripeAPIKeyBody = zod_1.z
|
|
|
1566
1572
|
* Handle stripe webhooks for apps.
|
|
1567
1573
|
* @summary Stripe webhook
|
|
1568
1574
|
*/
|
|
1569
|
-
exports.appStripeWebhookPathIdRegExp =
|
|
1575
|
+
exports.appStripeWebhookPathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1570
1576
|
exports.appStripeWebhookParams = zod_1.z.object({
|
|
1571
1577
|
id: zod_1.z.coerce.string().regex(exports.appStripeWebhookPathIdRegExp),
|
|
1572
1578
|
});
|
|
@@ -1593,9 +1599,9 @@ useful for getting the current effective billing workflow settings for all users
|
|
|
1593
1599
|
if they have customer orverrides or not.
|
|
1594
1600
|
* @summary List customer overrides
|
|
1595
1601
|
*/
|
|
1596
|
-
exports.listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp =
|
|
1602
|
+
exports.listBillingProfileCustomerOverridesQueryBillingProfileItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1597
1603
|
exports.listBillingProfileCustomerOverridesQueryIncludeAllCustomersDefault = true;
|
|
1598
|
-
exports.listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp =
|
|
1604
|
+
exports.listBillingProfileCustomerOverridesQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1599
1605
|
exports.listBillingProfileCustomerOverridesQueryPageDefault = 1;
|
|
1600
1606
|
exports.listBillingProfileCustomerOverridesQueryPageSizeDefault = 100;
|
|
1601
1607
|
exports.listBillingProfileCustomerOverridesQueryPageSizeMax = 1000;
|
|
@@ -1671,13 +1677,13 @@ This can be used to test the effect of different billing profiles before making
|
|
|
1671
1677
|
the default ones or have different workflow settings for example for enterprise customers.
|
|
1672
1678
|
* @summary Create a new or update a customer override
|
|
1673
1679
|
*/
|
|
1674
|
-
exports.upsertBillingProfileCustomerOverridePathCustomerIdRegExp =
|
|
1680
|
+
exports.upsertBillingProfileCustomerOverridePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1675
1681
|
exports.upsertBillingProfileCustomerOverrideParams = zod_1.z.object({
|
|
1676
1682
|
customerId: zod_1.z.coerce
|
|
1677
1683
|
.string()
|
|
1678
1684
|
.regex(exports.upsertBillingProfileCustomerOverridePathCustomerIdRegExp),
|
|
1679
1685
|
});
|
|
1680
|
-
exports.upsertBillingProfileCustomerOverrideBodyBillingProfileIdRegExp =
|
|
1686
|
+
exports.upsertBillingProfileCustomerOverrideBodyBillingProfileIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1681
1687
|
exports.upsertBillingProfileCustomerOverrideBody = zod_1.z
|
|
1682
1688
|
.object({
|
|
1683
1689
|
billingProfileId: zod_1.z.coerce
|
|
@@ -1696,7 +1702,7 @@ If the customer override is not found, the default billing profile's values are
|
|
|
1696
1702
|
allows for getting a merged profile regardless of the customer override existence.
|
|
1697
1703
|
* @summary Get a customer override
|
|
1698
1704
|
*/
|
|
1699
|
-
exports.getBillingProfileCustomerOverridePathCustomerIdRegExp =
|
|
1705
|
+
exports.getBillingProfileCustomerOverridePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1700
1706
|
exports.getBillingProfileCustomerOverrideParams = zod_1.z.object({
|
|
1701
1707
|
customerId: zod_1.z.coerce
|
|
1702
1708
|
.string()
|
|
@@ -1716,7 +1722,7 @@ This will remove the customer override and the customer will be subject to the d
|
|
|
1716
1722
|
billing profile's settings again.
|
|
1717
1723
|
* @summary Delete a customer override
|
|
1718
1724
|
*/
|
|
1719
|
-
exports.deleteBillingProfileCustomerOverridePathCustomerIdRegExp =
|
|
1725
|
+
exports.deleteBillingProfileCustomerOverridePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1720
1726
|
exports.deleteBillingProfileCustomerOverrideParams = zod_1.z.object({
|
|
1721
1727
|
customerId: zod_1.z.coerce
|
|
1722
1728
|
.string()
|
|
@@ -1733,7 +1739,7 @@ A new invoice will be created if:
|
|
|
1733
1739
|
- the currency of the line item doesn't match the currency of any invoices in gathering state
|
|
1734
1740
|
* @summary Create pending line items
|
|
1735
1741
|
*/
|
|
1736
|
-
exports.createPendingInvoiceLinePathCustomerIdRegExp =
|
|
1742
|
+
exports.createPendingInvoiceLinePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1737
1743
|
exports.createPendingInvoiceLineParams = zod_1.z.object({
|
|
1738
1744
|
customerId: zod_1.z.coerce
|
|
1739
1745
|
.string()
|
|
@@ -1741,54 +1747,54 @@ exports.createPendingInvoiceLineParams = zod_1.z.object({
|
|
|
1741
1747
|
});
|
|
1742
1748
|
exports.createPendingInvoiceLineBodyCurrencyMinOne = 3;
|
|
1743
1749
|
exports.createPendingInvoiceLineBodyCurrencyMaxOne = 3;
|
|
1744
|
-
exports.createPendingInvoiceLineBodyCurrencyRegExpOne =
|
|
1750
|
+
exports.createPendingInvoiceLineBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
1745
1751
|
exports.createPendingInvoiceLineBodyLinesItemNameMax = 256;
|
|
1746
1752
|
exports.createPendingInvoiceLineBodyLinesItemDescriptionMax = 1024;
|
|
1747
|
-
exports.createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExp =
|
|
1748
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceAmountRegExpOne =
|
|
1753
|
+
exports.createPendingInvoiceLineBodyLinesItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
1754
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1749
1755
|
exports.createPendingInvoiceLineBodyLinesItemPricePaymentTermDefault = 'in_advance';
|
|
1750
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceAmountRegExpThree =
|
|
1751
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpOne =
|
|
1752
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpOne =
|
|
1753
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceTiersItemUpToAmountRegExpOne =
|
|
1754
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
1755
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
1756
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpThree =
|
|
1757
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpThree =
|
|
1758
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMultiplierRegExpOne =
|
|
1756
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1757
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1758
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1759
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1760
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1761
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1762
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1763
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1764
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1759
1765
|
exports.createPendingInvoiceLineBodyLinesItemPriceMultiplierDefault = '1';
|
|
1760
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpFive =
|
|
1761
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpFive =
|
|
1762
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceAmountRegExpFive =
|
|
1763
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceQuantityPerPackageRegExpOne =
|
|
1764
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpSeven =
|
|
1765
|
-
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpSeven =
|
|
1766
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1767
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1768
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1769
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1770
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1771
|
+
exports.createPendingInvoiceLineBodyLinesItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1766
1772
|
exports.createPendingInvoiceLineBodyLinesItemFeatureKeyMax = 64;
|
|
1767
|
-
exports.createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp =
|
|
1773
|
+
exports.createPendingInvoiceLineBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
1768
1774
|
exports.createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyMax = 64;
|
|
1769
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyRegExp =
|
|
1770
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExp =
|
|
1771
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpOne =
|
|
1775
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
1776
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
1777
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1772
1778
|
exports.createPendingInvoiceLineBodyLinesItemRateCardPricePaymentTermDefault = 'in_advance';
|
|
1773
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpThree =
|
|
1774
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpOne =
|
|
1775
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpOne =
|
|
1776
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne =
|
|
1777
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne =
|
|
1778
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne =
|
|
1779
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpThree =
|
|
1780
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpThree =
|
|
1781
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierRegExpOne =
|
|
1779
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1780
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1781
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1782
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1783
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1784
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1785
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1786
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1787
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1782
1788
|
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMultiplierDefault = '1';
|
|
1783
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpFive =
|
|
1784
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpFive =
|
|
1785
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpFive =
|
|
1786
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne =
|
|
1787
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpSeven =
|
|
1788
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpSeven =
|
|
1789
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp =
|
|
1790
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne =
|
|
1791
|
-
exports.createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp =
|
|
1789
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1790
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1791
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1792
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1793
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1794
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1795
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1796
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
1797
|
+
exports.createPendingInvoiceLineBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
1792
1798
|
exports.createPendingInvoiceLineBody = zod_1.z
|
|
1793
1799
|
.object({
|
|
1794
1800
|
currency: zod_1.z.coerce
|
|
@@ -2267,64 +2273,64 @@ This call will simulate an invoice for a customer based on the pending line item
|
|
|
2267
2273
|
The call will return the total amount of the invoice and the line items that will be included in the invoice.
|
|
2268
2274
|
* @summary Simulate an invoice for a customer
|
|
2269
2275
|
*/
|
|
2270
|
-
exports.simulateInvoicePathCustomerIdRegExp =
|
|
2276
|
+
exports.simulateInvoicePathCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2271
2277
|
exports.simulateInvoiceParams = zod_1.z.object({
|
|
2272
2278
|
customerId: zod_1.z.coerce.string().regex(exports.simulateInvoicePathCustomerIdRegExp),
|
|
2273
2279
|
});
|
|
2274
2280
|
exports.simulateInvoiceBodyNumberMaxOne = 256;
|
|
2275
2281
|
exports.simulateInvoiceBodyCurrencyMinOne = 3;
|
|
2276
2282
|
exports.simulateInvoiceBodyCurrencyMaxOne = 3;
|
|
2277
|
-
exports.simulateInvoiceBodyCurrencyRegExpOne =
|
|
2283
|
+
exports.simulateInvoiceBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
2278
2284
|
exports.simulateInvoiceBodyLinesItemNameMax = 256;
|
|
2279
2285
|
exports.simulateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
2280
|
-
exports.simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp =
|
|
2281
|
-
exports.simulateInvoiceBodyLinesItemPriceAmountRegExpOne =
|
|
2286
|
+
exports.simulateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
2287
|
+
exports.simulateInvoiceBodyLinesItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2282
2288
|
exports.simulateInvoiceBodyLinesItemPricePaymentTermDefault = 'in_advance';
|
|
2283
|
-
exports.simulateInvoiceBodyLinesItemPriceAmountRegExpThree =
|
|
2284
|
-
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne =
|
|
2285
|
-
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne =
|
|
2286
|
-
exports.simulateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne =
|
|
2287
|
-
exports.simulateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
2288
|
-
exports.simulateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
2289
|
-
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree =
|
|
2290
|
-
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree =
|
|
2291
|
-
exports.simulateInvoiceBodyLinesItemPriceMultiplierRegExpOne =
|
|
2289
|
+
exports.simulateInvoiceBodyLinesItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2290
|
+
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2291
|
+
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2292
|
+
exports.simulateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2293
|
+
exports.simulateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2294
|
+
exports.simulateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2295
|
+
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2296
|
+
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2297
|
+
exports.simulateInvoiceBodyLinesItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2292
2298
|
exports.simulateInvoiceBodyLinesItemPriceMultiplierDefault = '1';
|
|
2293
|
-
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive =
|
|
2294
|
-
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive =
|
|
2295
|
-
exports.simulateInvoiceBodyLinesItemPriceAmountRegExpFive =
|
|
2296
|
-
exports.simulateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne =
|
|
2297
|
-
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven =
|
|
2298
|
-
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven =
|
|
2299
|
+
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2300
|
+
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2301
|
+
exports.simulateInvoiceBodyLinesItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2302
|
+
exports.simulateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2303
|
+
exports.simulateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2304
|
+
exports.simulateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2299
2305
|
exports.simulateInvoiceBodyLinesItemFeatureKeyMax = 64;
|
|
2300
|
-
exports.simulateInvoiceBodyLinesItemFeatureKeyRegExp =
|
|
2306
|
+
exports.simulateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
2301
2307
|
exports.simulateInvoiceBodyLinesItemRateCardFeatureKeyMax = 64;
|
|
2302
|
-
exports.simulateInvoiceBodyLinesItemRateCardFeatureKeyRegExp =
|
|
2303
|
-
exports.simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp =
|
|
2304
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne =
|
|
2308
|
+
exports.simulateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
2309
|
+
exports.simulateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
2310
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2305
2311
|
exports.simulateInvoiceBodyLinesItemRateCardPricePaymentTermDefault = 'in_advance';
|
|
2306
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree =
|
|
2307
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne =
|
|
2308
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne =
|
|
2309
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne =
|
|
2310
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne =
|
|
2311
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne =
|
|
2312
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree =
|
|
2313
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree =
|
|
2314
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne =
|
|
2312
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2313
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2314
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2315
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2316
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2317
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2318
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2319
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2320
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2315
2321
|
exports.simulateInvoiceBodyLinesItemRateCardPriceMultiplierDefault = '1';
|
|
2316
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive =
|
|
2317
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive =
|
|
2318
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive =
|
|
2319
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne =
|
|
2320
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven =
|
|
2321
|
-
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven =
|
|
2322
|
-
exports.simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp =
|
|
2323
|
-
exports.simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne =
|
|
2324
|
-
exports.simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp =
|
|
2325
|
-
exports.simulateInvoiceBodyLinesItemQuantityRegExpOne =
|
|
2326
|
-
exports.simulateInvoiceBodyLinesItemPreLinePeriodQuantityRegExpOne =
|
|
2327
|
-
exports.simulateInvoiceBodyLinesItemIdRegExp =
|
|
2322
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2323
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2324
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2325
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2326
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2327
|
+
exports.simulateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2328
|
+
exports.simulateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2329
|
+
exports.simulateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2330
|
+
exports.simulateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2331
|
+
exports.simulateInvoiceBodyLinesItemQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2332
|
+
exports.simulateInvoiceBodyLinesItemPreLinePeriodQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
2333
|
+
exports.simulateInvoiceBodyLinesItemIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2328
2334
|
exports.simulateInvoiceBody = zod_1.z
|
|
2329
2335
|
.object({
|
|
2330
2336
|
currency: zod_1.z.coerce
|
|
@@ -2826,7 +2832,7 @@ in the response. For example by adding the expand=lines option the invoice lines
|
|
|
2826
2832
|
Gathering invoices will always show the current usage calculated on the fly.
|
|
2827
2833
|
* @summary List invoices
|
|
2828
2834
|
*/
|
|
2829
|
-
exports.listInvoicesQueryCustomersItemRegExp =
|
|
2835
|
+
exports.listInvoicesQueryCustomersItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2830
2836
|
exports.listInvoicesQueryPageDefault = 1;
|
|
2831
2837
|
exports.listInvoicesQueryPageSizeDefault = 100;
|
|
2832
2838
|
exports.listInvoicesQueryPageSizeMax = 1000;
|
|
@@ -2928,8 +2934,8 @@ New pending line items will be created for the period between now() and the next
|
|
|
2928
2934
|
The call can return multiple invoices if the pending line items are in different currencies.
|
|
2929
2935
|
* @summary Invoice a customer based on the pending line items
|
|
2930
2936
|
*/
|
|
2931
|
-
exports.invoicePendingLinesActionBodyFiltersLineIdsItemRegExp =
|
|
2932
|
-
exports.invoicePendingLinesActionBodyCustomerIdRegExp =
|
|
2937
|
+
exports.invoicePendingLinesActionBodyFiltersLineIdsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2938
|
+
exports.invoicePendingLinesActionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2933
2939
|
exports.invoicePendingLinesActionBody = zod_1.z
|
|
2934
2940
|
.object({
|
|
2935
2941
|
asOf: zod_1.z.coerce
|
|
@@ -2965,11 +2971,12 @@ exports.invoicePendingLinesActionBody = zod_1.z
|
|
|
2965
2971
|
Gathering invoices will always show the current usage calculated on the fly.
|
|
2966
2972
|
* @summary Get an invoice
|
|
2967
2973
|
*/
|
|
2968
|
-
exports.getInvoicePathInvoiceIdRegExp =
|
|
2974
|
+
exports.getInvoicePathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2969
2975
|
exports.getInvoiceParams = zod_1.z.object({
|
|
2970
2976
|
invoiceId: zod_1.z.coerce.string().regex(exports.getInvoicePathInvoiceIdRegExp),
|
|
2971
2977
|
});
|
|
2972
|
-
|
|
2978
|
+
const getInvoiceQueryExpandDefault = () => ['lines'];
|
|
2979
|
+
exports.getInvoiceQueryExpandDefault = getInvoiceQueryExpandDefault;
|
|
2973
2980
|
exports.getInvoiceQueryIncludeDeletedLinesDefault = false;
|
|
2974
2981
|
exports.getInvoiceQueryParams = zod_1.z.object({
|
|
2975
2982
|
expand: zod_1.z
|
|
@@ -2987,7 +2994,7 @@ Only invoices that are in the draft (or earlier) status can be deleted.
|
|
|
2987
2994
|
Invoices that are post finalization can only be voided.
|
|
2988
2995
|
* @summary Delete an invoice
|
|
2989
2996
|
*/
|
|
2990
|
-
exports.deleteInvoicePathInvoiceIdRegExp =
|
|
2997
|
+
exports.deleteInvoicePathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
2991
2998
|
exports.deleteInvoiceParams = zod_1.z.object({
|
|
2992
2999
|
invoiceId: zod_1.z.coerce.string().regex(exports.deleteInvoicePathInvoiceIdRegExp),
|
|
2993
3000
|
});
|
|
@@ -2997,7 +3004,7 @@ exports.deleteInvoiceParams = zod_1.z.object({
|
|
|
2997
3004
|
Only invoices in draft or earlier status can be updated.
|
|
2998
3005
|
* @summary Update an invoice
|
|
2999
3006
|
*/
|
|
3000
|
-
exports.updateInvoicePathInvoiceIdRegExp =
|
|
3007
|
+
exports.updateInvoicePathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3001
3008
|
exports.updateInvoiceParams = zod_1.z.object({
|
|
3002
3009
|
invoiceId: zod_1.z.coerce.string().regex(exports.updateInvoicePathInvoiceIdRegExp),
|
|
3003
3010
|
});
|
|
@@ -3006,66 +3013,66 @@ exports.updateInvoiceBodySupplierKeyMax = 256;
|
|
|
3006
3013
|
exports.updateInvoiceBodySupplierTaxIdCodeMaxOne = 32;
|
|
3007
3014
|
exports.updateInvoiceBodySupplierAddressesItemCountryMinOne = 2;
|
|
3008
3015
|
exports.updateInvoiceBodySupplierAddressesItemCountryMaxOne = 2;
|
|
3009
|
-
exports.updateInvoiceBodySupplierAddressesItemCountryRegExpOne =
|
|
3016
|
+
exports.updateInvoiceBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
|
|
3010
3017
|
exports.updateInvoiceBodySupplierAddressesMax = 1;
|
|
3011
3018
|
exports.updateInvoiceBodyCustomerKeyMax = 256;
|
|
3012
3019
|
exports.updateInvoiceBodyCustomerTaxIdCodeMaxOne = 32;
|
|
3013
3020
|
exports.updateInvoiceBodyCustomerAddressesItemCountryMinOne = 2;
|
|
3014
3021
|
exports.updateInvoiceBodyCustomerAddressesItemCountryMaxOne = 2;
|
|
3015
|
-
exports.updateInvoiceBodyCustomerAddressesItemCountryRegExpOne =
|
|
3022
|
+
exports.updateInvoiceBodyCustomerAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
|
|
3016
3023
|
exports.updateInvoiceBodyCustomerAddressesMax = 1;
|
|
3017
3024
|
exports.updateInvoiceBodyLinesItemNameMax = 256;
|
|
3018
3025
|
exports.updateInvoiceBodyLinesItemDescriptionMax = 1024;
|
|
3019
|
-
exports.updateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp =
|
|
3020
|
-
exports.updateInvoiceBodyLinesItemPriceAmountRegExpOne =
|
|
3026
|
+
exports.updateInvoiceBodyLinesItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
3027
|
+
exports.updateInvoiceBodyLinesItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3021
3028
|
exports.updateInvoiceBodyLinesItemPricePaymentTermDefault = 'in_advance';
|
|
3022
|
-
exports.updateInvoiceBodyLinesItemPriceAmountRegExpThree =
|
|
3023
|
-
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne =
|
|
3024
|
-
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne =
|
|
3025
|
-
exports.updateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne =
|
|
3026
|
-
exports.updateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
3027
|
-
exports.updateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
3028
|
-
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree =
|
|
3029
|
-
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree =
|
|
3030
|
-
exports.updateInvoiceBodyLinesItemPriceMultiplierRegExpOne =
|
|
3029
|
+
exports.updateInvoiceBodyLinesItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3030
|
+
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3031
|
+
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3032
|
+
exports.updateInvoiceBodyLinesItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3033
|
+
exports.updateInvoiceBodyLinesItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3034
|
+
exports.updateInvoiceBodyLinesItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3035
|
+
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3036
|
+
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3037
|
+
exports.updateInvoiceBodyLinesItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3031
3038
|
exports.updateInvoiceBodyLinesItemPriceMultiplierDefault = '1';
|
|
3032
|
-
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive =
|
|
3033
|
-
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive =
|
|
3034
|
-
exports.updateInvoiceBodyLinesItemPriceAmountRegExpFive =
|
|
3035
|
-
exports.updateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne =
|
|
3036
|
-
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven =
|
|
3037
|
-
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven =
|
|
3039
|
+
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3040
|
+
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3041
|
+
exports.updateInvoiceBodyLinesItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3042
|
+
exports.updateInvoiceBodyLinesItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3043
|
+
exports.updateInvoiceBodyLinesItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3044
|
+
exports.updateInvoiceBodyLinesItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3038
3045
|
exports.updateInvoiceBodyLinesItemFeatureKeyMax = 64;
|
|
3039
|
-
exports.updateInvoiceBodyLinesItemFeatureKeyRegExp =
|
|
3046
|
+
exports.updateInvoiceBodyLinesItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
3040
3047
|
exports.updateInvoiceBodyLinesItemRateCardFeatureKeyMax = 64;
|
|
3041
|
-
exports.updateInvoiceBodyLinesItemRateCardFeatureKeyRegExp =
|
|
3042
|
-
exports.updateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp =
|
|
3043
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne =
|
|
3048
|
+
exports.updateInvoiceBodyLinesItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
3049
|
+
exports.updateInvoiceBodyLinesItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
3050
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3044
3051
|
exports.updateInvoiceBodyLinesItemRateCardPricePaymentTermDefault = 'in_advance';
|
|
3045
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree =
|
|
3046
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne =
|
|
3047
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne =
|
|
3048
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne =
|
|
3049
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne =
|
|
3050
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne =
|
|
3051
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree =
|
|
3052
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree =
|
|
3053
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne =
|
|
3052
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3053
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3054
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3055
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3056
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3057
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3058
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3059
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3060
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3054
3061
|
exports.updateInvoiceBodyLinesItemRateCardPriceMultiplierDefault = '1';
|
|
3055
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive =
|
|
3056
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive =
|
|
3057
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive =
|
|
3058
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne =
|
|
3059
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven =
|
|
3060
|
-
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven =
|
|
3061
|
-
exports.updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp =
|
|
3062
|
-
exports.updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne =
|
|
3063
|
-
exports.updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp =
|
|
3064
|
-
exports.updateInvoiceBodyLinesItemIdRegExp =
|
|
3062
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3063
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3064
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3065
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3066
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3067
|
+
exports.updateInvoiceBodyLinesItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3068
|
+
exports.updateInvoiceBodyLinesItemRateCardDiscountsPercentageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3069
|
+
exports.updateInvoiceBodyLinesItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
3070
|
+
exports.updateInvoiceBodyLinesItemRateCardDiscountsUsageCorrelationIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3071
|
+
exports.updateInvoiceBodyLinesItemIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3065
3072
|
exports.updateInvoiceBodyWorkflowWorkflowInvoicingAutoAdvanceDefault = true;
|
|
3066
3073
|
exports.updateInvoiceBodyWorkflowWorkflowInvoicingDraftPeriodDefault = 'P0D';
|
|
3067
3074
|
exports.updateInvoiceBodyWorkflowWorkflowInvoicingDueAfterDefault = 'P30D';
|
|
3068
|
-
exports.updateInvoiceBodyWorkflowWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp =
|
|
3075
|
+
exports.updateInvoiceBodyWorkflowWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
3069
3076
|
exports.updateInvoiceBodyWorkflowWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
|
|
3070
3077
|
exports.updateInvoiceBody = zod_1.z
|
|
3071
3078
|
.object({
|
|
@@ -3749,7 +3756,7 @@ The call doesn't "approve the invoice", it only advances the invoice to the next
|
|
|
3749
3756
|
The action can be called when the invoice's statusDetails' actions field contain the "advance" action.
|
|
3750
3757
|
* @summary Advance the invoice's state to the next status
|
|
3751
3758
|
*/
|
|
3752
|
-
exports.advanceInvoiceActionPathInvoiceIdRegExp =
|
|
3759
|
+
exports.advanceInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3753
3760
|
exports.advanceInvoiceActionParams = zod_1.z.object({
|
|
3754
3761
|
invoiceId: zod_1.z.coerce.string().regex(exports.advanceInvoiceActionPathInvoiceIdRegExp),
|
|
3755
3762
|
});
|
|
@@ -3763,7 +3770,7 @@ This call is valid in two invoice statuses:
|
|
|
3763
3770
|
- `manual_approval_needed`: the invoice will be sent to the customer, the invoice state becomes issued
|
|
3764
3771
|
* @summary Send the invoice to the customer
|
|
3765
3772
|
*/
|
|
3766
|
-
exports.approveInvoiceActionPathInvoiceIdRegExp =
|
|
3773
|
+
exports.approveInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3767
3774
|
exports.approveInvoiceActionParams = zod_1.z.object({
|
|
3768
3775
|
invoiceId: zod_1.z.coerce.string().regex(exports.approveInvoiceActionPathInvoiceIdRegExp),
|
|
3769
3776
|
});
|
|
@@ -3773,7 +3780,7 @@ exports.approveInvoiceActionParams = zod_1.z.object({
|
|
|
3773
3780
|
The action can be called when the invoice's statusDetails' actions field contain the "retry" action.
|
|
3774
3781
|
* @summary Retry advancing the invoice after a failed attempt.
|
|
3775
3782
|
*/
|
|
3776
|
-
exports.retryInvoiceActionPathInvoiceIdRegExp =
|
|
3783
|
+
exports.retryInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3777
3784
|
exports.retryInvoiceActionParams = zod_1.z.object({
|
|
3778
3785
|
invoiceId: zod_1.z.coerce.string().regex(exports.retryInvoiceActionPathInvoiceIdRegExp),
|
|
3779
3786
|
});
|
|
@@ -3786,7 +3793,7 @@ This call is only valid in `draft.waiting_for_collection` status, where the coll
|
|
|
3786
3793
|
can be skipped using this action.
|
|
3787
3794
|
* @summary Snapshot quantities for usage based line items
|
|
3788
3795
|
*/
|
|
3789
|
-
exports.snapshotQuantitiesInvoiceActionPathInvoiceIdRegExp =
|
|
3796
|
+
exports.snapshotQuantitiesInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3790
3797
|
exports.snapshotQuantitiesInvoiceActionParams = zod_1.z.object({
|
|
3791
3798
|
invoiceId: zod_1.z.coerce
|
|
3792
3799
|
.string()
|
|
@@ -3798,7 +3805,7 @@ exports.snapshotQuantitiesInvoiceActionParams = zod_1.z.object({
|
|
|
3798
3805
|
Note: charges might apply, depending on the tax provider.
|
|
3799
3806
|
* @summary Recalculate an invoice's tax amounts
|
|
3800
3807
|
*/
|
|
3801
|
-
exports.recalculateInvoiceTaxActionPathInvoiceIdRegExp =
|
|
3808
|
+
exports.recalculateInvoiceTaxActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3802
3809
|
exports.recalculateInvoiceTaxActionParams = zod_1.z.object({
|
|
3803
3810
|
invoiceId: zod_1.z.coerce
|
|
3804
3811
|
.string()
|
|
@@ -3812,11 +3819,11 @@ Only invoices that have been alread issued can be voided.
|
|
|
3812
3819
|
Voiding an invoice will mark it as voided, the user can specify how to handle the voided line items.
|
|
3813
3820
|
* @summary Void an invoice
|
|
3814
3821
|
*/
|
|
3815
|
-
exports.voidInvoiceActionPathInvoiceIdRegExp =
|
|
3822
|
+
exports.voidInvoiceActionPathInvoiceIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3816
3823
|
exports.voidInvoiceActionParams = zod_1.z.object({
|
|
3817
3824
|
invoiceId: zod_1.z.coerce.string().regex(exports.voidInvoiceActionPathInvoiceIdRegExp),
|
|
3818
3825
|
});
|
|
3819
|
-
exports.voidInvoiceActionBodyOverridesItemLineIdRegExp =
|
|
3826
|
+
exports.voidInvoiceActionBodyOverridesItemLineIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3820
3827
|
exports.voidInvoiceActionBody = zod_1.z
|
|
3821
3828
|
.object({
|
|
3822
3829
|
action: zod_1.z
|
|
@@ -3938,7 +3945,7 @@ exports.createBillingProfileBodySupplierKeyMax = 256;
|
|
|
3938
3945
|
exports.createBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
|
|
3939
3946
|
exports.createBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
|
|
3940
3947
|
exports.createBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
|
|
3941
|
-
exports.createBillingProfileBodySupplierAddressesItemCountryRegExpOne =
|
|
3948
|
+
exports.createBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
|
|
3942
3949
|
exports.createBillingProfileBodySupplierAddressesMax = 1;
|
|
3943
3950
|
exports.createBillingProfileBodyWorkflowCollectionAlignmentDefault = {
|
|
3944
3951
|
type: 'subscription',
|
|
@@ -3948,13 +3955,13 @@ exports.createBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = true;
|
|
|
3948
3955
|
exports.createBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = 'P0D';
|
|
3949
3956
|
exports.createBillingProfileBodyWorkflowInvoicingDueAfterDefault = 'P30D';
|
|
3950
3957
|
exports.createBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = false;
|
|
3951
|
-
exports.createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp =
|
|
3958
|
+
exports.createBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
3952
3959
|
exports.createBillingProfileBodyWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
|
|
3953
3960
|
exports.createBillingProfileBodyWorkflowTaxEnabledDefault = true;
|
|
3954
3961
|
exports.createBillingProfileBodyWorkflowTaxEnforcedDefault = false;
|
|
3955
|
-
exports.createBillingProfileBodyAppsTaxRegExp =
|
|
3956
|
-
exports.createBillingProfileBodyAppsInvoicingRegExp =
|
|
3957
|
-
exports.createBillingProfileBodyAppsPaymentRegExp =
|
|
3962
|
+
exports.createBillingProfileBodyAppsTaxRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3963
|
+
exports.createBillingProfileBodyAppsInvoicingRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3964
|
+
exports.createBillingProfileBodyAppsPaymentRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
3958
3965
|
exports.createBillingProfileBody = zod_1.z
|
|
3959
3966
|
.object({
|
|
3960
3967
|
apps: zod_1.z
|
|
@@ -4172,7 +4179,7 @@ Only such billing profiles can be deleted that are:
|
|
|
4172
4179
|
- only have finalized invoices
|
|
4173
4180
|
* @summary Delete a billing profile
|
|
4174
4181
|
*/
|
|
4175
|
-
exports.deleteBillingProfilePathIdRegExp =
|
|
4182
|
+
exports.deleteBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4176
4183
|
exports.deleteBillingProfileParams = zod_1.z.object({
|
|
4177
4184
|
id: zod_1.z.coerce.string().regex(exports.deleteBillingProfilePathIdRegExp),
|
|
4178
4185
|
});
|
|
@@ -4184,7 +4191,7 @@ in the response. For example by adding the expand=apps option the apps used by t
|
|
|
4184
4191
|
will be included in the response.
|
|
4185
4192
|
* @summary Get a billing profile
|
|
4186
4193
|
*/
|
|
4187
|
-
exports.getBillingProfilePathIdRegExp =
|
|
4194
|
+
exports.getBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4188
4195
|
exports.getBillingProfileParams = zod_1.z.object({
|
|
4189
4196
|
id: zod_1.z.coerce.string().regex(exports.getBillingProfilePathIdRegExp),
|
|
4190
4197
|
});
|
|
@@ -4202,7 +4209,7 @@ The apps field cannot be updated directly, if an app change is desired a new
|
|
|
4202
4209
|
profile should be created.
|
|
4203
4210
|
* @summary Update a billing profile
|
|
4204
4211
|
*/
|
|
4205
|
-
exports.updateBillingProfilePathIdRegExp =
|
|
4212
|
+
exports.updateBillingProfilePathIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4206
4213
|
exports.updateBillingProfileParams = zod_1.z.object({
|
|
4207
4214
|
id: zod_1.z.coerce.string().regex(exports.updateBillingProfilePathIdRegExp),
|
|
4208
4215
|
});
|
|
@@ -4212,7 +4219,7 @@ exports.updateBillingProfileBodySupplierKeyMax = 256;
|
|
|
4212
4219
|
exports.updateBillingProfileBodySupplierTaxIdCodeMaxOne = 32;
|
|
4213
4220
|
exports.updateBillingProfileBodySupplierAddressesItemCountryMinOne = 2;
|
|
4214
4221
|
exports.updateBillingProfileBodySupplierAddressesItemCountryMaxOne = 2;
|
|
4215
|
-
exports.updateBillingProfileBodySupplierAddressesItemCountryRegExpOne =
|
|
4222
|
+
exports.updateBillingProfileBodySupplierAddressesItemCountryRegExpOne = /^[A-Z]{2}$/;
|
|
4216
4223
|
exports.updateBillingProfileBodySupplierAddressesMax = 1;
|
|
4217
4224
|
exports.updateBillingProfileBodyWorkflowCollectionAlignmentDefault = {
|
|
4218
4225
|
type: 'subscription',
|
|
@@ -4222,7 +4229,7 @@ exports.updateBillingProfileBodyWorkflowInvoicingAutoAdvanceDefault = true;
|
|
|
4222
4229
|
exports.updateBillingProfileBodyWorkflowInvoicingDraftPeriodDefault = 'P0D';
|
|
4223
4230
|
exports.updateBillingProfileBodyWorkflowInvoicingDueAfterDefault = 'P30D';
|
|
4224
4231
|
exports.updateBillingProfileBodyWorkflowInvoicingProgressiveBillingDefault = false;
|
|
4225
|
-
exports.updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp =
|
|
4232
|
+
exports.updateBillingProfileBodyWorkflowInvoicingDefaultTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
4226
4233
|
exports.updateBillingProfileBodyWorkflowPaymentCollectionMethodDefault = 'charge_automatically';
|
|
4227
4234
|
exports.updateBillingProfileBodyWorkflowTaxEnabledDefault = true;
|
|
4228
4235
|
exports.updateBillingProfileBodyWorkflowTaxEnforcedDefault = false;
|
|
@@ -4427,10 +4434,10 @@ exports.createCustomerBodyKeyMax = 256;
|
|
|
4427
4434
|
exports.createCustomerBodyUsageAttributionSubjectKeysMax = 1;
|
|
4428
4435
|
exports.createCustomerBodyCurrencyMinOne = 3;
|
|
4429
4436
|
exports.createCustomerBodyCurrencyMaxOne = 3;
|
|
4430
|
-
exports.createCustomerBodyCurrencyRegExpOne =
|
|
4437
|
+
exports.createCustomerBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
4431
4438
|
exports.createCustomerBodyBillingAddressCountryMinOne = 2;
|
|
4432
4439
|
exports.createCustomerBodyBillingAddressCountryMaxOne = 2;
|
|
4433
|
-
exports.createCustomerBodyBillingAddressCountryRegExpOne =
|
|
4440
|
+
exports.createCustomerBodyBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
|
|
4434
4441
|
exports.createCustomerBody = zod_1.z
|
|
4435
4442
|
.object({
|
|
4436
4443
|
billingAddress: zod_1.z
|
|
@@ -4564,16 +4571,18 @@ exports.listCustomersQueryParams = zod_1.z.object({
|
|
|
4564
4571
|
* Get a customer by ID or key.
|
|
4565
4572
|
* @summary Get customer
|
|
4566
4573
|
*/
|
|
4574
|
+
exports.getCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4575
|
+
exports.getCustomerPathCustomerIdOrKeyMaxTwo = 256;
|
|
4567
4576
|
exports.getCustomerParams = zod_1.z.object({
|
|
4568
4577
|
customerIdOrKey: zod_1.z.union([
|
|
4569
4578
|
zod_1.z.coerce
|
|
4570
4579
|
.string()
|
|
4571
|
-
.regex(getCustomerPathCustomerIdOrKeyRegExpOne)
|
|
4580
|
+
.regex(exports.getCustomerPathCustomerIdOrKeyRegExpOne)
|
|
4572
4581
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
4573
4582
|
zod_1.z.coerce
|
|
4574
4583
|
.string()
|
|
4575
4584
|
.min(1)
|
|
4576
|
-
.max(getCustomerPathCustomerIdOrKeyMaxTwo)
|
|
4585
|
+
.max(exports.getCustomerPathCustomerIdOrKeyMaxTwo)
|
|
4577
4586
|
.describe('ExternalKey is a looser version of key.'),
|
|
4578
4587
|
]),
|
|
4579
4588
|
});
|
|
@@ -4589,16 +4598,18 @@ exports.getCustomerQueryParams = zod_1.z.object({
|
|
|
4589
4598
|
* Update a customer by ID.
|
|
4590
4599
|
* @summary Update customer
|
|
4591
4600
|
*/
|
|
4601
|
+
exports.updateCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4602
|
+
exports.updateCustomerPathCustomerIdOrKeyMaxTwo = 256;
|
|
4592
4603
|
exports.updateCustomerParams = zod_1.z.object({
|
|
4593
4604
|
customerIdOrKey: zod_1.z.union([
|
|
4594
4605
|
zod_1.z.coerce
|
|
4595
4606
|
.string()
|
|
4596
|
-
.regex(updateCustomerPathCustomerIdOrKeyRegExpOne)
|
|
4607
|
+
.regex(exports.updateCustomerPathCustomerIdOrKeyRegExpOne)
|
|
4597
4608
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
4598
4609
|
zod_1.z.coerce
|
|
4599
4610
|
.string()
|
|
4600
4611
|
.min(1)
|
|
4601
|
-
.max(updateCustomerPathCustomerIdOrKeyMaxTwo)
|
|
4612
|
+
.max(exports.updateCustomerPathCustomerIdOrKeyMaxTwo)
|
|
4602
4613
|
.describe('ExternalKey is a looser version of key.'),
|
|
4603
4614
|
]),
|
|
4604
4615
|
});
|
|
@@ -4608,10 +4619,10 @@ exports.updateCustomerBodyKeyMax = 256;
|
|
|
4608
4619
|
exports.updateCustomerBodyUsageAttributionSubjectKeysMax = 1;
|
|
4609
4620
|
exports.updateCustomerBodyCurrencyMinOne = 3;
|
|
4610
4621
|
exports.updateCustomerBodyCurrencyMaxOne = 3;
|
|
4611
|
-
exports.updateCustomerBodyCurrencyRegExpOne =
|
|
4622
|
+
exports.updateCustomerBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
4612
4623
|
exports.updateCustomerBodyBillingAddressCountryMinOne = 2;
|
|
4613
4624
|
exports.updateCustomerBodyBillingAddressCountryMaxOne = 2;
|
|
4614
|
-
exports.updateCustomerBodyBillingAddressCountryRegExpOne =
|
|
4625
|
+
exports.updateCustomerBodyBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
|
|
4615
4626
|
exports.updateCustomerBody = zod_1.z
|
|
4616
4627
|
.object({
|
|
4617
4628
|
billingAddress: zod_1.z
|
|
@@ -4689,16 +4700,18 @@ exports.updateCustomerBody = zod_1.z
|
|
|
4689
4700
|
* Delete a customer by ID.
|
|
4690
4701
|
* @summary Delete customer
|
|
4691
4702
|
*/
|
|
4703
|
+
exports.deleteCustomerPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4704
|
+
exports.deleteCustomerPathCustomerIdOrKeyMaxTwo = 256;
|
|
4692
4705
|
exports.deleteCustomerParams = zod_1.z.object({
|
|
4693
4706
|
customerIdOrKey: zod_1.z.union([
|
|
4694
4707
|
zod_1.z.coerce
|
|
4695
4708
|
.string()
|
|
4696
|
-
.regex(deleteCustomerPathCustomerIdOrKeyRegExpOne)
|
|
4709
|
+
.regex(exports.deleteCustomerPathCustomerIdOrKeyRegExpOne)
|
|
4697
4710
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
4698
4711
|
zod_1.z.coerce
|
|
4699
4712
|
.string()
|
|
4700
4713
|
.min(1)
|
|
4701
|
-
.max(deleteCustomerPathCustomerIdOrKeyMaxTwo)
|
|
4714
|
+
.max(exports.deleteCustomerPathCustomerIdOrKeyMaxTwo)
|
|
4702
4715
|
.describe('ExternalKey is a looser version of key.'),
|
|
4703
4716
|
]),
|
|
4704
4717
|
});
|
|
@@ -4706,16 +4719,18 @@ exports.deleteCustomerParams = zod_1.z.object({
|
|
|
4706
4719
|
* Get the overall access of a customer.
|
|
4707
4720
|
* @summary Get customer access
|
|
4708
4721
|
*/
|
|
4722
|
+
exports.getCustomerAccessPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4723
|
+
exports.getCustomerAccessPathCustomerIdOrKeyMaxTwo = 256;
|
|
4709
4724
|
exports.getCustomerAccessParams = zod_1.z.object({
|
|
4710
4725
|
customerIdOrKey: zod_1.z.union([
|
|
4711
4726
|
zod_1.z.coerce
|
|
4712
4727
|
.string()
|
|
4713
|
-
.regex(getCustomerAccessPathCustomerIdOrKeyRegExpOne)
|
|
4728
|
+
.regex(exports.getCustomerAccessPathCustomerIdOrKeyRegExpOne)
|
|
4714
4729
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
4715
4730
|
zod_1.z.coerce
|
|
4716
4731
|
.string()
|
|
4717
4732
|
.min(1)
|
|
4718
|
-
.max(getCustomerAccessPathCustomerIdOrKeyMaxTwo)
|
|
4733
|
+
.max(exports.getCustomerAccessPathCustomerIdOrKeyMaxTwo)
|
|
4719
4734
|
.describe('ExternalKey is a looser version of key.'),
|
|
4720
4735
|
]),
|
|
4721
4736
|
});
|
|
@@ -4723,16 +4738,18 @@ exports.getCustomerAccessParams = zod_1.z.object({
|
|
|
4723
4738
|
* List customers app data.
|
|
4724
4739
|
* @summary List customer app data
|
|
4725
4740
|
*/
|
|
4741
|
+
exports.listCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4742
|
+
exports.listCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
|
|
4726
4743
|
exports.listCustomerAppDataParams = zod_1.z.object({
|
|
4727
4744
|
customerIdOrKey: zod_1.z.union([
|
|
4728
4745
|
zod_1.z.coerce
|
|
4729
4746
|
.string()
|
|
4730
|
-
.regex(listCustomerAppDataPathCustomerIdOrKeyRegExpOne)
|
|
4747
|
+
.regex(exports.listCustomerAppDataPathCustomerIdOrKeyRegExpOne)
|
|
4731
4748
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
4732
4749
|
zod_1.z.coerce
|
|
4733
4750
|
.string()
|
|
4734
4751
|
.min(1)
|
|
4735
|
-
.max(listCustomerAppDataPathCustomerIdOrKeyMaxTwo)
|
|
4752
|
+
.max(exports.listCustomerAppDataPathCustomerIdOrKeyMaxTwo)
|
|
4736
4753
|
.describe('ExternalKey is a looser version of key.'),
|
|
4737
4754
|
]),
|
|
4738
4755
|
});
|
|
@@ -4760,32 +4777,34 @@ exports.listCustomerAppDataQueryParams = zod_1.z.object({
|
|
|
4760
4777
|
* Upsert customer app data.
|
|
4761
4778
|
* @summary Upsert customer app data
|
|
4762
4779
|
*/
|
|
4780
|
+
exports.upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4781
|
+
exports.upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
|
|
4763
4782
|
exports.upsertCustomerAppDataParams = zod_1.z.object({
|
|
4764
4783
|
customerIdOrKey: zod_1.z.union([
|
|
4765
4784
|
zod_1.z.coerce
|
|
4766
4785
|
.string()
|
|
4767
|
-
.regex(upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne)
|
|
4786
|
+
.regex(exports.upsertCustomerAppDataPathCustomerIdOrKeyRegExpOne)
|
|
4768
4787
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
4769
4788
|
zod_1.z.coerce
|
|
4770
4789
|
.string()
|
|
4771
4790
|
.min(1)
|
|
4772
|
-
.max(upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo)
|
|
4791
|
+
.max(exports.upsertCustomerAppDataPathCustomerIdOrKeyMaxTwo)
|
|
4773
4792
|
.describe('ExternalKey is a looser version of key.'),
|
|
4774
4793
|
]),
|
|
4775
4794
|
});
|
|
4776
|
-
exports.upsertCustomerAppDataBodyIdRegExp =
|
|
4777
|
-
exports.upsertCustomerAppDataBodyAppIdRegExp =
|
|
4795
|
+
exports.upsertCustomerAppDataBodyIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4796
|
+
exports.upsertCustomerAppDataBodyAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4778
4797
|
exports.upsertCustomerAppDataBodyAppNameMax = 256;
|
|
4779
4798
|
exports.upsertCustomerAppDataBodyAppDescriptionMax = 1024;
|
|
4780
4799
|
exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMax = 64;
|
|
4781
|
-
exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExp =
|
|
4782
|
-
exports.upsertCustomerAppDataBodyIdRegExpOne =
|
|
4783
|
-
exports.upsertCustomerAppDataBodyAppIdRegExpOne =
|
|
4800
|
+
exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
4801
|
+
exports.upsertCustomerAppDataBodyIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4802
|
+
exports.upsertCustomerAppDataBodyAppIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4784
4803
|
exports.upsertCustomerAppDataBodyAppNameMaxOne = 256;
|
|
4785
4804
|
exports.upsertCustomerAppDataBodyAppDescriptionMaxOne = 1024;
|
|
4786
4805
|
exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyMaxOne = 64;
|
|
4787
|
-
exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne =
|
|
4788
|
-
exports.upsertCustomerAppDataBodyIdRegExpTwo =
|
|
4806
|
+
exports.upsertCustomerAppDataBodyAppListingCapabilitiesItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
4807
|
+
exports.upsertCustomerAppDataBodyIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
4789
4808
|
exports.upsertCustomerAppDataBodyItem = zod_1.z
|
|
4790
4809
|
.union([
|
|
4791
4810
|
zod_1.z
|
|
@@ -5023,18 +5042,20 @@ exports.upsertCustomerAppDataBody = zod_1.z.array(exports.upsertCustomerAppDataB
|
|
|
5023
5042
|
* Delete customer app data.
|
|
5024
5043
|
* @summary Delete customer app data
|
|
5025
5044
|
*/
|
|
5026
|
-
exports.
|
|
5045
|
+
exports.deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5046
|
+
exports.deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo = 256;
|
|
5047
|
+
exports.deleteCustomerAppDataPathAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5027
5048
|
exports.deleteCustomerAppDataParams = zod_1.z.object({
|
|
5028
5049
|
appId: zod_1.z.coerce.string().regex(exports.deleteCustomerAppDataPathAppIdRegExp),
|
|
5029
5050
|
customerIdOrKey: zod_1.z.union([
|
|
5030
5051
|
zod_1.z.coerce
|
|
5031
5052
|
.string()
|
|
5032
|
-
.regex(deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne)
|
|
5053
|
+
.regex(exports.deleteCustomerAppDataPathCustomerIdOrKeyRegExpOne)
|
|
5033
5054
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
5034
5055
|
zod_1.z.coerce
|
|
5035
5056
|
.string()
|
|
5036
5057
|
.min(1)
|
|
5037
|
-
.max(deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo)
|
|
5058
|
+
.max(exports.deleteCustomerAppDataPathCustomerIdOrKeyMaxTwo)
|
|
5038
5059
|
.describe('ExternalKey is a looser version of key.'),
|
|
5039
5060
|
]),
|
|
5040
5061
|
});
|
|
@@ -5042,18 +5063,20 @@ exports.deleteCustomerAppDataParams = zod_1.z.object({
|
|
|
5042
5063
|
* Checks customer access to a given feature (by key). All entitlement types share the hasAccess property in their value response, but multiple other properties are returned based on the entitlement type.
|
|
5043
5064
|
* @summary Get customer entitlement value
|
|
5044
5065
|
*/
|
|
5066
|
+
exports.getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5067
|
+
exports.getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo = 256;
|
|
5045
5068
|
exports.getCustomerEntitlementValuePathFeatureKeyMax = 64;
|
|
5046
|
-
exports.getCustomerEntitlementValuePathFeatureKeyRegExp =
|
|
5069
|
+
exports.getCustomerEntitlementValuePathFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5047
5070
|
exports.getCustomerEntitlementValueParams = zod_1.z.object({
|
|
5048
5071
|
customerIdOrKey: zod_1.z.union([
|
|
5049
5072
|
zod_1.z.coerce
|
|
5050
5073
|
.string()
|
|
5051
|
-
.regex(getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne)
|
|
5074
|
+
.regex(exports.getCustomerEntitlementValuePathCustomerIdOrKeyRegExpOne)
|
|
5052
5075
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
5053
5076
|
zod_1.z.coerce
|
|
5054
5077
|
.string()
|
|
5055
5078
|
.min(1)
|
|
5056
|
-
.max(getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo)
|
|
5079
|
+
.max(exports.getCustomerEntitlementValuePathCustomerIdOrKeyMaxTwo)
|
|
5057
5080
|
.describe('ExternalKey is a looser version of key.'),
|
|
5058
5081
|
]),
|
|
5059
5082
|
featureKey: zod_1.z.coerce
|
|
@@ -5070,16 +5093,18 @@ exports.getCustomerEntitlementValueQueryParams = zod_1.z.object({
|
|
|
5070
5093
|
Only returns data if the customer billing profile is linked to a stripe app.
|
|
5071
5094
|
* @summary Get customer stripe app data
|
|
5072
5095
|
*/
|
|
5096
|
+
exports.getCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5097
|
+
exports.getCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = 256;
|
|
5073
5098
|
exports.getCustomerStripeAppDataParams = zod_1.z.object({
|
|
5074
5099
|
customerIdOrKey: zod_1.z.union([
|
|
5075
5100
|
zod_1.z.coerce
|
|
5076
5101
|
.string()
|
|
5077
|
-
.regex(getCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne)
|
|
5102
|
+
.regex(exports.getCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne)
|
|
5078
5103
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
5079
5104
|
zod_1.z.coerce
|
|
5080
5105
|
.string()
|
|
5081
5106
|
.min(1)
|
|
5082
|
-
.max(getCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo)
|
|
5107
|
+
.max(exports.getCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo)
|
|
5083
5108
|
.describe('ExternalKey is a looser version of key.'),
|
|
5084
5109
|
]),
|
|
5085
5110
|
});
|
|
@@ -5088,16 +5113,18 @@ exports.getCustomerStripeAppDataParams = zod_1.z.object({
|
|
|
5088
5113
|
Only updates data if the customer billing profile is linked to a stripe app.
|
|
5089
5114
|
* @summary Upsert customer stripe app data
|
|
5090
5115
|
*/
|
|
5116
|
+
exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5117
|
+
exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo = 256;
|
|
5091
5118
|
exports.upsertCustomerStripeAppDataParams = zod_1.z.object({
|
|
5092
5119
|
customerIdOrKey: zod_1.z.union([
|
|
5093
5120
|
zod_1.z.coerce
|
|
5094
5121
|
.string()
|
|
5095
|
-
.regex(upsertCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne)
|
|
5122
|
+
.regex(exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyRegExpOne)
|
|
5096
5123
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
5097
5124
|
zod_1.z.coerce
|
|
5098
5125
|
.string()
|
|
5099
5126
|
.min(1)
|
|
5100
|
-
.max(upsertCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo)
|
|
5127
|
+
.max(exports.upsertCustomerStripeAppDataPathCustomerIdOrKeyMaxTwo)
|
|
5101
5128
|
.describe('ExternalKey is a looser version of key.'),
|
|
5102
5129
|
]),
|
|
5103
5130
|
});
|
|
@@ -5118,16 +5145,18 @@ Useful to redirect the customer to the Stripe customer portal to manage their pa
|
|
|
5118
5145
|
change their billing address and access their invoice history.
|
|
5119
5146
|
* @summary Create Stripe customer portal session
|
|
5120
5147
|
*/
|
|
5148
|
+
exports.createCustomerStripePortalSessionPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5149
|
+
exports.createCustomerStripePortalSessionPathCustomerIdOrKeyMaxTwo = 256;
|
|
5121
5150
|
exports.createCustomerStripePortalSessionParams = zod_1.z.object({
|
|
5122
5151
|
customerIdOrKey: zod_1.z.union([
|
|
5123
5152
|
zod_1.z.coerce
|
|
5124
5153
|
.string()
|
|
5125
|
-
.regex(createCustomerStripePortalSessionPathCustomerIdOrKeyRegExpOne)
|
|
5154
|
+
.regex(exports.createCustomerStripePortalSessionPathCustomerIdOrKeyRegExpOne)
|
|
5126
5155
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
5127
5156
|
zod_1.z.coerce
|
|
5128
5157
|
.string()
|
|
5129
5158
|
.min(1)
|
|
5130
|
-
.max(createCustomerStripePortalSessionPathCustomerIdOrKeyMaxTwo)
|
|
5159
|
+
.max(exports.createCustomerStripePortalSessionPathCustomerIdOrKeyMaxTwo)
|
|
5131
5160
|
.describe('ExternalKey is a looser version of key.'),
|
|
5132
5161
|
]),
|
|
5133
5162
|
});
|
|
@@ -5151,16 +5180,18 @@ exports.createCustomerStripePortalSessionBody = zod_1.z
|
|
|
5151
5180
|
* Lists all subscriptions for a customer.
|
|
5152
5181
|
* @summary List customer subscriptions
|
|
5153
5182
|
*/
|
|
5183
|
+
exports.listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5184
|
+
exports.listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo = 256;
|
|
5154
5185
|
exports.listCustomerSubscriptionsParams = zod_1.z.object({
|
|
5155
5186
|
customerIdOrKey: zod_1.z.union([
|
|
5156
5187
|
zod_1.z.coerce
|
|
5157
5188
|
.string()
|
|
5158
|
-
.regex(listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne)
|
|
5189
|
+
.regex(exports.listCustomerSubscriptionsPathCustomerIdOrKeyRegExpOne)
|
|
5159
5190
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
5160
5191
|
zod_1.z.coerce
|
|
5161
5192
|
.string()
|
|
5162
5193
|
.min(1)
|
|
5163
|
-
.max(listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo)
|
|
5194
|
+
.max(exports.listCustomerSubscriptionsPathCustomerIdOrKeyMaxTwo)
|
|
5164
5195
|
.describe('ExternalKey is a looser version of key.'),
|
|
5165
5196
|
]),
|
|
5166
5197
|
});
|
|
@@ -5245,7 +5276,7 @@ exports.listEntitlementsQueryParams = zod_1.z.object({
|
|
|
5245
5276
|
* Get entitlement by id.
|
|
5246
5277
|
* @summary Get entitlement by id
|
|
5247
5278
|
*/
|
|
5248
|
-
exports.getEntitlementByIdPathEntitlementIdRegExp =
|
|
5279
|
+
exports.getEntitlementByIdPathEntitlementIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5249
5280
|
exports.getEntitlementByIdParams = zod_1.z.object({
|
|
5250
5281
|
entitlementId: zod_1.z.coerce
|
|
5251
5282
|
.string()
|
|
@@ -5258,7 +5289,7 @@ If the from query param is not provided it defaults to last 72 hours.
|
|
|
5258
5289
|
* @summary List ingested events
|
|
5259
5290
|
*/
|
|
5260
5291
|
exports.listEventsQueryClientIdMax = 36;
|
|
5261
|
-
exports.listEventsQueryCustomerIdItemRegExp =
|
|
5292
|
+
exports.listEventsQueryCustomerIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5262
5293
|
exports.listEventsQueryLimitDefault = 100;
|
|
5263
5294
|
exports.listEventsQueryLimitMax = 100;
|
|
5264
5295
|
exports.listEventsQueryParams = zod_1.z.object({
|
|
@@ -5323,7 +5354,7 @@ exports.ingestEventsBody = zod_1.z
|
|
|
5323
5354
|
datacontenttype: zod_1.z
|
|
5324
5355
|
.enum(['application/json'])
|
|
5325
5356
|
.nullish()
|
|
5326
|
-
.describe('Content type of the CloudEvents data value. Only the value
|
|
5357
|
+
.describe('Content type of the CloudEvents data value. Only the value "application/json" is allowed over HTTP.'),
|
|
5327
5358
|
dataschema: zod_1.z.coerce
|
|
5328
5359
|
.string()
|
|
5329
5360
|
.url()
|
|
@@ -5362,7 +5393,7 @@ exports.ingestEventsBody = zod_1.z
|
|
|
5362
5393
|
datacontenttype: zod_1.z
|
|
5363
5394
|
.enum(['application/json'])
|
|
5364
5395
|
.nullish()
|
|
5365
|
-
.describe('Content type of the CloudEvents data value. Only the value
|
|
5396
|
+
.describe('Content type of the CloudEvents data value. Only the value "application/json" is allowed over HTTP.'),
|
|
5366
5397
|
dataschema: zod_1.z.coerce
|
|
5367
5398
|
.string()
|
|
5368
5399
|
.url()
|
|
@@ -5451,9 +5482,9 @@ Features cannot be updated later, only archived.
|
|
|
5451
5482
|
* @summary Create feature
|
|
5452
5483
|
*/
|
|
5453
5484
|
exports.createFeatureBodyKeyMax = 64;
|
|
5454
|
-
exports.createFeatureBodyKeyRegExp =
|
|
5485
|
+
exports.createFeatureBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5455
5486
|
exports.createFeatureBodyMeterSlugMax = 64;
|
|
5456
|
-
exports.createFeatureBodyMeterSlugRegExp =
|
|
5487
|
+
exports.createFeatureBodyMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5457
5488
|
exports.createFeatureBody = zod_1.z
|
|
5458
5489
|
.object({
|
|
5459
5490
|
key: zod_1.z.coerce
|
|
@@ -5682,7 +5713,7 @@ exports.marketplaceOAuth2InstallAuthorizeQueryParams = zod_1.z.object({
|
|
|
5682
5713
|
state: zod_1.z.coerce
|
|
5683
5714
|
.string()
|
|
5684
5715
|
.optional()
|
|
5685
|
-
.describe('Required if the
|
|
5716
|
+
.describe('Required if the "state" parameter was present in the client authorization request.\nThe exact value received from the client:\n\nUnique, randomly generated, opaque, and non-guessable string that is sent\nwhen starting an authentication request and validated when processing the response.'),
|
|
5686
5717
|
});
|
|
5687
5718
|
/**
|
|
5688
5719
|
* List meters.
|
|
@@ -5721,7 +5752,7 @@ exports.listMetersQueryParams = zod_1.z.object({
|
|
|
5721
5752
|
exports.createMeterBodyDescriptionMax = 1024;
|
|
5722
5753
|
exports.createMeterBodyNameMax = 256;
|
|
5723
5754
|
exports.createMeterBodySlugMax = 64;
|
|
5724
|
-
exports.createMeterBodySlugRegExp =
|
|
5755
|
+
exports.createMeterBodySlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
5725
5756
|
exports.createMeterBody = zod_1.z
|
|
5726
5757
|
.object({
|
|
5727
5758
|
aggregation: zod_1.z
|
|
@@ -5774,7 +5805,7 @@ exports.createMeterBody = zod_1.z
|
|
|
5774
5805
|
* @summary Get meter
|
|
5775
5806
|
*/
|
|
5776
5807
|
exports.getMeterPathMeterIdOrSlugMax = 64;
|
|
5777
|
-
exports.getMeterPathMeterIdOrSlugRegExp =
|
|
5808
|
+
exports.getMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5778
5809
|
exports.getMeterParams = zod_1.z.object({
|
|
5779
5810
|
meterIdOrSlug: zod_1.z.coerce
|
|
5780
5811
|
.string()
|
|
@@ -5787,7 +5818,7 @@ exports.getMeterParams = zod_1.z.object({
|
|
|
5787
5818
|
* @summary Update meter
|
|
5788
5819
|
*/
|
|
5789
5820
|
exports.updateMeterPathMeterIdOrSlugMax = 64;
|
|
5790
|
-
exports.updateMeterPathMeterIdOrSlugRegExp =
|
|
5821
|
+
exports.updateMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5791
5822
|
exports.updateMeterParams = zod_1.z.object({
|
|
5792
5823
|
meterIdOrSlug: zod_1.z.coerce
|
|
5793
5824
|
.string()
|
|
@@ -5826,7 +5857,7 @@ exports.updateMeterBody = zod_1.z
|
|
|
5826
5857
|
* @summary Delete meter
|
|
5827
5858
|
*/
|
|
5828
5859
|
exports.deleteMeterPathMeterIdOrSlugMax = 64;
|
|
5829
|
-
exports.deleteMeterPathMeterIdOrSlugRegExp =
|
|
5860
|
+
exports.deleteMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5830
5861
|
exports.deleteMeterParams = zod_1.z.object({
|
|
5831
5862
|
meterIdOrSlug: zod_1.z.coerce
|
|
5832
5863
|
.string()
|
|
@@ -5839,7 +5870,7 @@ exports.deleteMeterParams = zod_1.z.object({
|
|
|
5839
5870
|
* @summary Query meter
|
|
5840
5871
|
*/
|
|
5841
5872
|
exports.queryMeterPathMeterIdOrSlugMax = 64;
|
|
5842
|
-
exports.queryMeterPathMeterIdOrSlugRegExp =
|
|
5873
|
+
exports.queryMeterPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5843
5874
|
exports.queryMeterParams = zod_1.z.object({
|
|
5844
5875
|
meterIdOrSlug: zod_1.z.coerce
|
|
5845
5876
|
.string()
|
|
@@ -5895,7 +5926,7 @@ exports.queryMeterQueryParams = zod_1.z.object({
|
|
|
5895
5926
|
* @summary Query meter
|
|
5896
5927
|
*/
|
|
5897
5928
|
exports.queryMeterPostPathMeterIdOrSlugMax = 64;
|
|
5898
|
-
exports.queryMeterPostPathMeterIdOrSlugRegExp =
|
|
5929
|
+
exports.queryMeterPostPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5899
5930
|
exports.queryMeterPostParams = zod_1.z.object({
|
|
5900
5931
|
meterIdOrSlug: zod_1.z.coerce
|
|
5901
5932
|
.string()
|
|
@@ -5959,7 +5990,7 @@ exports.queryMeterPostBody = zod_1.z
|
|
|
5959
5990
|
* @summary List meter subjects
|
|
5960
5991
|
*/
|
|
5961
5992
|
exports.listMeterSubjectsPathMeterIdOrSlugMax = 64;
|
|
5962
|
-
exports.listMeterSubjectsPathMeterIdOrSlugRegExp =
|
|
5993
|
+
exports.listMeterSubjectsPathMeterIdOrSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
5963
5994
|
exports.listMeterSubjectsParams = zod_1.z.object({
|
|
5964
5995
|
meterIdOrSlug: zod_1.z.coerce
|
|
5965
5996
|
.string()
|
|
@@ -6007,7 +6038,7 @@ exports.listNotificationChannelsQueryParams = zod_1.z.object({
|
|
|
6007
6038
|
* @summary Create a notification channel
|
|
6008
6039
|
*/
|
|
6009
6040
|
exports.createNotificationChannelBodyDisabledDefault = false;
|
|
6010
|
-
exports.createNotificationChannelBodySigningSecretRegExp =
|
|
6041
|
+
exports.createNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
|
|
6011
6042
|
exports.createNotificationChannelBody = zod_1.z
|
|
6012
6043
|
.object({
|
|
6013
6044
|
customHeaders: zod_1.z
|
|
@@ -6035,14 +6066,14 @@ exports.createNotificationChannelBody = zod_1.z
|
|
|
6035
6066
|
* Update notification channel.
|
|
6036
6067
|
* @summary Update a notification channel
|
|
6037
6068
|
*/
|
|
6038
|
-
exports.updateNotificationChannelPathChannelIdRegExp =
|
|
6069
|
+
exports.updateNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6039
6070
|
exports.updateNotificationChannelParams = zod_1.z.object({
|
|
6040
6071
|
channelId: zod_1.z.coerce
|
|
6041
6072
|
.string()
|
|
6042
6073
|
.regex(exports.updateNotificationChannelPathChannelIdRegExp),
|
|
6043
6074
|
});
|
|
6044
6075
|
exports.updateNotificationChannelBodyDisabledDefault = false;
|
|
6045
|
-
exports.updateNotificationChannelBodySigningSecretRegExp =
|
|
6076
|
+
exports.updateNotificationChannelBodySigningSecretRegExp = /^(whsec_)?[a-zA-Z0-9+/=]{32,100}$/;
|
|
6046
6077
|
exports.updateNotificationChannelBody = zod_1.z
|
|
6047
6078
|
.object({
|
|
6048
6079
|
customHeaders: zod_1.z
|
|
@@ -6070,7 +6101,7 @@ exports.updateNotificationChannelBody = zod_1.z
|
|
|
6070
6101
|
* Get a notification channel by id.
|
|
6071
6102
|
* @summary Get notification channel
|
|
6072
6103
|
*/
|
|
6073
|
-
exports.getNotificationChannelPathChannelIdRegExp =
|
|
6104
|
+
exports.getNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6074
6105
|
exports.getNotificationChannelParams = zod_1.z.object({
|
|
6075
6106
|
channelId: zod_1.z.coerce
|
|
6076
6107
|
.string()
|
|
@@ -6082,7 +6113,7 @@ exports.getNotificationChannelParams = zod_1.z.object({
|
|
|
6082
6113
|
Once a notification channel is deleted it cannot be undeleted.
|
|
6083
6114
|
* @summary Delete a notification channel
|
|
6084
6115
|
*/
|
|
6085
|
-
exports.deleteNotificationChannelPathChannelIdRegExp =
|
|
6116
|
+
exports.deleteNotificationChannelPathChannelIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6086
6117
|
exports.deleteNotificationChannelParams = zod_1.z.object({
|
|
6087
6118
|
channelId: zod_1.z.coerce
|
|
6088
6119
|
.string()
|
|
@@ -6092,8 +6123,8 @@ exports.deleteNotificationChannelParams = zod_1.z.object({
|
|
|
6092
6123
|
* List all notification events.
|
|
6093
6124
|
* @summary List notification events
|
|
6094
6125
|
*/
|
|
6095
|
-
exports.listNotificationEventsQueryRuleItemRegExp =
|
|
6096
|
-
exports.listNotificationEventsQueryChannelItemRegExp =
|
|
6126
|
+
exports.listNotificationEventsQueryRuleItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6127
|
+
exports.listNotificationEventsQueryChannelItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6097
6128
|
exports.listNotificationEventsQueryPageDefault = 1;
|
|
6098
6129
|
exports.listNotificationEventsQueryPageSizeDefault = 100;
|
|
6099
6130
|
exports.listNotificationEventsQueryPageSizeMax = 1000;
|
|
@@ -6159,7 +6190,7 @@ exports.getNotificationEventParams = zod_1.z.object({
|
|
|
6159
6190
|
exports.listNotificationRulesQueryIncludeDeletedDefault = false;
|
|
6160
6191
|
exports.listNotificationRulesQueryIncludeDisabledDefault = false;
|
|
6161
6192
|
exports.listNotificationRulesQueryFeatureItemMax = 64;
|
|
6162
|
-
exports.listNotificationRulesQueryFeatureItemRegExp =
|
|
6193
|
+
exports.listNotificationRulesQueryFeatureItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6163
6194
|
exports.listNotificationRulesQueryPageDefault = 1;
|
|
6164
6195
|
exports.listNotificationRulesQueryPageSizeDefault = 100;
|
|
6165
6196
|
exports.listNotificationRulesQueryPageSizeMax = 1000;
|
|
@@ -6208,17 +6239,17 @@ exports.listNotificationRulesQueryParams = zod_1.z.object({
|
|
|
6208
6239
|
*/
|
|
6209
6240
|
exports.createNotificationRuleBodyDisabledDefault = false;
|
|
6210
6241
|
exports.createNotificationRuleBodyThresholdsMax = 10;
|
|
6211
|
-
exports.createNotificationRuleBodyChannelsItemRegExp =
|
|
6242
|
+
exports.createNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6212
6243
|
exports.createNotificationRuleBodyFeaturesItemMax = 64;
|
|
6213
|
-
exports.createNotificationRuleBodyFeaturesItemRegExp =
|
|
6244
|
+
exports.createNotificationRuleBodyFeaturesItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6214
6245
|
exports.createNotificationRuleBodyDisabledDefaultOne = false;
|
|
6215
|
-
exports.createNotificationRuleBodyChannelsItemRegExpOne =
|
|
6246
|
+
exports.createNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6216
6247
|
exports.createNotificationRuleBodyFeaturesItemMaxOne = 64;
|
|
6217
|
-
exports.createNotificationRuleBodyFeaturesItemRegExpOne =
|
|
6248
|
+
exports.createNotificationRuleBodyFeaturesItemRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6218
6249
|
exports.createNotificationRuleBodyDisabledDefaultTwo = false;
|
|
6219
|
-
exports.createNotificationRuleBodyChannelsItemRegExpTwo =
|
|
6250
|
+
exports.createNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6220
6251
|
exports.createNotificationRuleBodyDisabledDefaultThree = false;
|
|
6221
|
-
exports.createNotificationRuleBodyChannelsItemRegExpThree =
|
|
6252
|
+
exports.createNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6222
6253
|
exports.createNotificationRuleBody = zod_1.z
|
|
6223
6254
|
.union([
|
|
6224
6255
|
zod_1.z
|
|
@@ -6342,23 +6373,23 @@ exports.createNotificationRuleBody = zod_1.z
|
|
|
6342
6373
|
* Update notification rule.
|
|
6343
6374
|
* @summary Update a notification rule
|
|
6344
6375
|
*/
|
|
6345
|
-
exports.updateNotificationRulePathRuleIdRegExp =
|
|
6376
|
+
exports.updateNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6346
6377
|
exports.updateNotificationRuleParams = zod_1.z.object({
|
|
6347
6378
|
ruleId: zod_1.z.coerce.string().regex(exports.updateNotificationRulePathRuleIdRegExp),
|
|
6348
6379
|
});
|
|
6349
6380
|
exports.updateNotificationRuleBodyDisabledDefault = false;
|
|
6350
6381
|
exports.updateNotificationRuleBodyThresholdsMax = 10;
|
|
6351
|
-
exports.updateNotificationRuleBodyChannelsItemRegExp =
|
|
6382
|
+
exports.updateNotificationRuleBodyChannelsItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6352
6383
|
exports.updateNotificationRuleBodyFeaturesItemMax = 64;
|
|
6353
|
-
exports.updateNotificationRuleBodyFeaturesItemRegExp =
|
|
6384
|
+
exports.updateNotificationRuleBodyFeaturesItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6354
6385
|
exports.updateNotificationRuleBodyDisabledDefaultOne = false;
|
|
6355
|
-
exports.updateNotificationRuleBodyChannelsItemRegExpOne =
|
|
6386
|
+
exports.updateNotificationRuleBodyChannelsItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6356
6387
|
exports.updateNotificationRuleBodyFeaturesItemMaxOne = 64;
|
|
6357
|
-
exports.updateNotificationRuleBodyFeaturesItemRegExpOne =
|
|
6388
|
+
exports.updateNotificationRuleBodyFeaturesItemRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6358
6389
|
exports.updateNotificationRuleBodyDisabledDefaultTwo = false;
|
|
6359
|
-
exports.updateNotificationRuleBodyChannelsItemRegExpTwo =
|
|
6390
|
+
exports.updateNotificationRuleBodyChannelsItemRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6360
6391
|
exports.updateNotificationRuleBodyDisabledDefaultThree = false;
|
|
6361
|
-
exports.updateNotificationRuleBodyChannelsItemRegExpThree =
|
|
6392
|
+
exports.updateNotificationRuleBodyChannelsItemRegExpThree = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6362
6393
|
exports.updateNotificationRuleBody = zod_1.z
|
|
6363
6394
|
.union([
|
|
6364
6395
|
zod_1.z
|
|
@@ -6482,7 +6513,7 @@ exports.updateNotificationRuleBody = zod_1.z
|
|
|
6482
6513
|
* Get a notification rule by id.
|
|
6483
6514
|
* @summary Get notification rule
|
|
6484
6515
|
*/
|
|
6485
|
-
exports.getNotificationRulePathRuleIdRegExp =
|
|
6516
|
+
exports.getNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6486
6517
|
exports.getNotificationRuleParams = zod_1.z.object({
|
|
6487
6518
|
ruleId: zod_1.z.coerce.string().regex(exports.getNotificationRulePathRuleIdRegExp),
|
|
6488
6519
|
});
|
|
@@ -6492,7 +6523,7 @@ exports.getNotificationRuleParams = zod_1.z.object({
|
|
|
6492
6523
|
Once a notification rule is deleted it cannot be undeleted.
|
|
6493
6524
|
* @summary Delete a notification rule
|
|
6494
6525
|
*/
|
|
6495
|
-
exports.deleteNotificationRulePathRuleIdRegExp =
|
|
6526
|
+
exports.deleteNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6496
6527
|
exports.deleteNotificationRuleParams = zod_1.z.object({
|
|
6497
6528
|
ruleId: zod_1.z.coerce.string().regex(exports.deleteNotificationRulePathRuleIdRegExp),
|
|
6498
6529
|
});
|
|
@@ -6500,7 +6531,7 @@ exports.deleteNotificationRuleParams = zod_1.z.object({
|
|
|
6500
6531
|
* Test a notification rule by sending a test event with random data.
|
|
6501
6532
|
* @summary Test notification rule
|
|
6502
6533
|
*/
|
|
6503
|
-
exports.testNotificationRulePathRuleIdRegExp =
|
|
6534
|
+
exports.testNotificationRulePathRuleIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6504
6535
|
exports.testNotificationRuleParams = zod_1.z.object({
|
|
6505
6536
|
ruleId: zod_1.z.coerce.string().regex(exports.testNotificationRulePathRuleIdRegExp),
|
|
6506
6537
|
});
|
|
@@ -6509,12 +6540,12 @@ exports.testNotificationRuleParams = zod_1.z.object({
|
|
|
6509
6540
|
* @summary List plans
|
|
6510
6541
|
*/
|
|
6511
6542
|
exports.listPlansQueryIncludeDeletedDefault = false;
|
|
6512
|
-
exports.listPlansQueryIdItemRegExp =
|
|
6543
|
+
exports.listPlansQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
6513
6544
|
exports.listPlansQueryKeyItemMax = 64;
|
|
6514
|
-
exports.listPlansQueryKeyItemRegExp =
|
|
6545
|
+
exports.listPlansQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6515
6546
|
exports.listPlansQueryCurrencyItemMin = 3;
|
|
6516
6547
|
exports.listPlansQueryCurrencyItemMax = 3;
|
|
6517
|
-
exports.listPlansQueryCurrencyItemRegExp =
|
|
6548
|
+
exports.listPlansQueryCurrencyItemRegExp = /^[A-Z]{3}$/;
|
|
6518
6549
|
exports.listPlansQueryPageDefault = 1;
|
|
6519
6550
|
exports.listPlansQueryPageSizeDefault = 100;
|
|
6520
6551
|
exports.listPlansQueryPageSizeMax = 1000;
|
|
@@ -6582,10 +6613,10 @@ exports.listPlansQueryParams = zod_1.z.object({
|
|
|
6582
6613
|
exports.createPlanBodyNameMax = 256;
|
|
6583
6614
|
exports.createPlanBodyDescriptionMax = 1024;
|
|
6584
6615
|
exports.createPlanBodyKeyMax = 64;
|
|
6585
|
-
exports.createPlanBodyKeyRegExp =
|
|
6616
|
+
exports.createPlanBodyKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6586
6617
|
exports.createPlanBodyCurrencyMinOne = 3;
|
|
6587
6618
|
exports.createPlanBodyCurrencyMaxOne = 3;
|
|
6588
|
-
exports.createPlanBodyCurrencyRegExpOne =
|
|
6619
|
+
exports.createPlanBodyCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
6589
6620
|
exports.createPlanBodyCurrencyDefault = 'USD';
|
|
6590
6621
|
exports.createPlanBodyProRatingConfigEnabledDefault = true;
|
|
6591
6622
|
exports.createPlanBodyProRatingConfigModeDefault = 'prorate_prices';
|
|
@@ -6594,55 +6625,55 @@ exports.createPlanBodyProRatingConfigDefault = {
|
|
|
6594
6625
|
mode: 'prorate_prices',
|
|
6595
6626
|
};
|
|
6596
6627
|
exports.createPlanBodyPhasesItemKeyMax = 64;
|
|
6597
|
-
exports.createPlanBodyPhasesItemKeyRegExp =
|
|
6628
|
+
exports.createPlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6598
6629
|
exports.createPlanBodyPhasesItemNameMax = 256;
|
|
6599
6630
|
exports.createPlanBodyPhasesItemDescriptionMax = 1024;
|
|
6600
6631
|
exports.createPlanBodyPhasesItemRateCardsItemKeyMax = 64;
|
|
6601
|
-
exports.createPlanBodyPhasesItemRateCardsItemKeyRegExp =
|
|
6632
|
+
exports.createPlanBodyPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6602
6633
|
exports.createPlanBodyPhasesItemRateCardsItemNameMax = 256;
|
|
6603
6634
|
exports.createPlanBodyPhasesItemRateCardsItemDescriptionMax = 1024;
|
|
6604
6635
|
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyMax = 64;
|
|
6605
|
-
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp =
|
|
6636
|
+
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6606
6637
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
|
|
6607
6638
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
|
|
6608
6639
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
6609
6640
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
6610
6641
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
6611
|
-
exports.createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp =
|
|
6612
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne =
|
|
6642
|
+
exports.createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
6643
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6613
6644
|
exports.createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
|
|
6614
|
-
exports.createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne =
|
|
6645
|
+
exports.createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6615
6646
|
exports.createPlanBodyPhasesItemRateCardsItemKeyMaxOne = 64;
|
|
6616
|
-
exports.createPlanBodyPhasesItemRateCardsItemKeyRegExpOne =
|
|
6647
|
+
exports.createPlanBodyPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6617
6648
|
exports.createPlanBodyPhasesItemRateCardsItemNameMaxOne = 256;
|
|
6618
6649
|
exports.createPlanBodyPhasesItemRateCardsItemDescriptionMaxOne = 1024;
|
|
6619
6650
|
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
|
|
6620
|
-
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne =
|
|
6651
|
+
exports.createPlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
6621
6652
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
6622
6653
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
6623
6654
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
6624
6655
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
6625
6656
|
exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
6626
|
-
exports.createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne =
|
|
6627
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree =
|
|
6657
|
+
exports.createPlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
6658
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6628
6659
|
exports.createPlanBodyPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
|
|
6629
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive =
|
|
6630
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne =
|
|
6631
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne =
|
|
6632
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne =
|
|
6633
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
6634
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
6635
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree =
|
|
6636
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree =
|
|
6637
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne =
|
|
6660
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6661
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6662
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6663
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6664
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6665
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6666
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6667
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6668
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6638
6669
|
exports.createPlanBodyPhasesItemRateCardsItemPriceMultiplierDefault = '1';
|
|
6639
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive =
|
|
6640
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive =
|
|
6641
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven =
|
|
6642
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne =
|
|
6643
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven =
|
|
6644
|
-
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven =
|
|
6645
|
-
exports.createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree =
|
|
6670
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6671
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6672
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6673
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6674
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6675
|
+
exports.createPlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6676
|
+
exports.createPlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
6646
6677
|
exports.createPlanBody = zod_1.z
|
|
6647
6678
|
.object({
|
|
6648
6679
|
alignment: zod_1.z
|
|
@@ -6657,7 +6688,7 @@ exports.createPlanBody = zod_1.z
|
|
|
6657
6688
|
.describe('Alignment configuration for the plan.'),
|
|
6658
6689
|
billingCadence: zod_1.z.coerce
|
|
6659
6690
|
.string()
|
|
6660
|
-
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples:
|
|
6691
|
+
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
|
|
6661
6692
|
currency: zod_1.z.coerce
|
|
6662
6693
|
.string()
|
|
6663
6694
|
.min(exports.createPlanBodyCurrencyMinOne)
|
|
@@ -6767,7 +6798,7 @@ exports.createPlanBody = zod_1.z
|
|
|
6767
6798
|
.number()
|
|
6768
6799
|
.min(exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
|
|
6769
6800
|
.optional()
|
|
6770
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
6801
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
6771
6802
|
issueAfterResetPriority: zod_1.z.coerce
|
|
6772
6803
|
.number()
|
|
6773
6804
|
.min(1)
|
|
@@ -6939,7 +6970,7 @@ exports.createPlanBody = zod_1.z
|
|
|
6939
6970
|
.number()
|
|
6940
6971
|
.min(exports.createPlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
|
|
6941
6972
|
.optional()
|
|
6942
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
6973
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
6943
6974
|
issueAfterResetPriority: zod_1.z.coerce
|
|
6944
6975
|
.number()
|
|
6945
6976
|
.min(1)
|
|
@@ -7229,7 +7260,7 @@ It returns error if there is already a plan in draft or planId does not referenc
|
|
|
7229
7260
|
* @summary New draft plan
|
|
7230
7261
|
*/
|
|
7231
7262
|
exports.nextPlanPathPlanIdOrKeyMax = 64;
|
|
7232
|
-
exports.nextPlanPathPlanIdOrKeyRegExp =
|
|
7263
|
+
exports.nextPlanPathPlanIdOrKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7233
7264
|
exports.nextPlanParams = zod_1.z.object({
|
|
7234
7265
|
planIdOrKey: zod_1.z.coerce
|
|
7235
7266
|
.string()
|
|
@@ -7241,7 +7272,7 @@ exports.nextPlanParams = zod_1.z.object({
|
|
|
7241
7272
|
* Update plan by id.
|
|
7242
7273
|
* @summary Update a plan
|
|
7243
7274
|
*/
|
|
7244
|
-
exports.updatePlanPathPlanIdRegExp =
|
|
7275
|
+
exports.updatePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7245
7276
|
exports.updatePlanParams = zod_1.z.object({
|
|
7246
7277
|
planId: zod_1.z.coerce.string().regex(exports.updatePlanPathPlanIdRegExp),
|
|
7247
7278
|
});
|
|
@@ -7254,55 +7285,55 @@ exports.updatePlanBodyProRatingConfigDefault = {
|
|
|
7254
7285
|
mode: 'prorate_prices',
|
|
7255
7286
|
};
|
|
7256
7287
|
exports.updatePlanBodyPhasesItemKeyMax = 64;
|
|
7257
|
-
exports.updatePlanBodyPhasesItemKeyRegExp =
|
|
7288
|
+
exports.updatePlanBodyPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7258
7289
|
exports.updatePlanBodyPhasesItemNameMax = 256;
|
|
7259
7290
|
exports.updatePlanBodyPhasesItemDescriptionMax = 1024;
|
|
7260
7291
|
exports.updatePlanBodyPhasesItemRateCardsItemKeyMax = 64;
|
|
7261
|
-
exports.updatePlanBodyPhasesItemRateCardsItemKeyRegExp =
|
|
7292
|
+
exports.updatePlanBodyPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7262
7293
|
exports.updatePlanBodyPhasesItemRateCardsItemNameMax = 256;
|
|
7263
7294
|
exports.updatePlanBodyPhasesItemRateCardsItemDescriptionMax = 1024;
|
|
7264
7295
|
exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyMax = 64;
|
|
7265
|
-
exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp =
|
|
7296
|
+
exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7266
7297
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
|
|
7267
7298
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
|
|
7268
7299
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
7269
7300
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
7270
7301
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
7271
|
-
exports.updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp =
|
|
7272
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne =
|
|
7302
|
+
exports.updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
7303
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7273
7304
|
exports.updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
|
|
7274
|
-
exports.updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne =
|
|
7305
|
+
exports.updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7275
7306
|
exports.updatePlanBodyPhasesItemRateCardsItemKeyMaxOne = 64;
|
|
7276
|
-
exports.updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne =
|
|
7307
|
+
exports.updatePlanBodyPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7277
7308
|
exports.updatePlanBodyPhasesItemRateCardsItemNameMaxOne = 256;
|
|
7278
7309
|
exports.updatePlanBodyPhasesItemRateCardsItemDescriptionMaxOne = 1024;
|
|
7279
7310
|
exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
|
|
7280
|
-
exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne =
|
|
7311
|
+
exports.updatePlanBodyPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7281
7312
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
7282
7313
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
7283
7314
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
7284
7315
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
7285
7316
|
exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
7286
|
-
exports.updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne =
|
|
7287
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree =
|
|
7317
|
+
exports.updatePlanBodyPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
7318
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7288
7319
|
exports.updatePlanBodyPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
|
|
7289
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive =
|
|
7290
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne =
|
|
7291
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne =
|
|
7292
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne =
|
|
7293
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
7294
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
7295
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree =
|
|
7296
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree =
|
|
7297
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne =
|
|
7320
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7321
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7322
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7323
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7324
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7325
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7326
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7327
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7328
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7298
7329
|
exports.updatePlanBodyPhasesItemRateCardsItemPriceMultiplierDefault = '1';
|
|
7299
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive =
|
|
7300
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive =
|
|
7301
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven =
|
|
7302
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne =
|
|
7303
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven =
|
|
7304
|
-
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven =
|
|
7305
|
-
exports.updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree =
|
|
7330
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7331
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7332
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7333
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7334
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7335
|
+
exports.updatePlanBodyPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7336
|
+
exports.updatePlanBodyPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
7306
7337
|
exports.updatePlanBody = zod_1.z
|
|
7307
7338
|
.object({
|
|
7308
7339
|
alignment: zod_1.z
|
|
@@ -7317,7 +7348,7 @@ exports.updatePlanBody = zod_1.z
|
|
|
7317
7348
|
.describe('Alignment configuration for the plan.'),
|
|
7318
7349
|
billingCadence: zod_1.z.coerce
|
|
7319
7350
|
.string()
|
|
7320
|
-
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples:
|
|
7351
|
+
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
|
|
7321
7352
|
description: zod_1.z.coerce
|
|
7322
7353
|
.string()
|
|
7323
7354
|
.max(exports.updatePlanBodyDescriptionMax)
|
|
@@ -7414,7 +7445,7 @@ exports.updatePlanBody = zod_1.z
|
|
|
7414
7445
|
.number()
|
|
7415
7446
|
.min(exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
|
|
7416
7447
|
.optional()
|
|
7417
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
7448
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
7418
7449
|
issueAfterResetPriority: zod_1.z.coerce
|
|
7419
7450
|
.number()
|
|
7420
7451
|
.min(1)
|
|
@@ -7586,7 +7617,7 @@ exports.updatePlanBody = zod_1.z
|
|
|
7586
7617
|
.number()
|
|
7587
7618
|
.min(exports.updatePlanBodyPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
|
|
7588
7619
|
.optional()
|
|
7589
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
7620
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
7590
7621
|
issueAfterResetPriority: zod_1.z.coerce
|
|
7591
7622
|
.number()
|
|
7592
7623
|
.min(1)
|
|
@@ -7874,7 +7905,7 @@ exports.updatePlanBody = zod_1.z
|
|
|
7874
7905
|
* @summary Get plan
|
|
7875
7906
|
*/
|
|
7876
7907
|
exports.getPlanPathPlanIdMax = 64;
|
|
7877
|
-
exports.getPlanPathPlanIdRegExp =
|
|
7908
|
+
exports.getPlanPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7878
7909
|
exports.getPlanParams = zod_1.z.object({
|
|
7879
7910
|
planId: zod_1.z.coerce
|
|
7880
7911
|
.string()
|
|
@@ -7895,7 +7926,7 @@ exports.getPlanQueryParams = zod_1.z.object({
|
|
|
7895
7926
|
Once a plan is deleted it cannot be undeleted.
|
|
7896
7927
|
* @summary Delete plan
|
|
7897
7928
|
*/
|
|
7898
|
-
exports.deletePlanPathPlanIdRegExp =
|
|
7929
|
+
exports.deletePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7899
7930
|
exports.deletePlanParams = zod_1.z.object({
|
|
7900
7931
|
planId: zod_1.z.coerce.string().regex(exports.deletePlanPathPlanIdRegExp),
|
|
7901
7932
|
});
|
|
@@ -7904,7 +7935,7 @@ exports.deletePlanParams = zod_1.z.object({
|
|
|
7904
7935
|
* @summary List all available add-ons for plan
|
|
7905
7936
|
*/
|
|
7906
7937
|
exports.listPlanAddonsPathPlanIdMax = 64;
|
|
7907
|
-
exports.listPlanAddonsPathPlanIdRegExp =
|
|
7938
|
+
exports.listPlanAddonsPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7908
7939
|
exports.listPlanAddonsParams = zod_1.z.object({
|
|
7909
7940
|
planId: zod_1.z.coerce
|
|
7910
7941
|
.string()
|
|
@@ -7913,9 +7944,9 @@ exports.listPlanAddonsParams = zod_1.z.object({
|
|
|
7913
7944
|
.regex(exports.listPlanAddonsPathPlanIdRegExp),
|
|
7914
7945
|
});
|
|
7915
7946
|
exports.listPlanAddonsQueryIncludeDeletedDefault = false;
|
|
7916
|
-
exports.listPlanAddonsQueryIdItemRegExp =
|
|
7947
|
+
exports.listPlanAddonsQueryIdItemRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7917
7948
|
exports.listPlanAddonsQueryKeyItemMax = 64;
|
|
7918
|
-
exports.listPlanAddonsQueryKeyItemRegExp =
|
|
7949
|
+
exports.listPlanAddonsQueryKeyItemRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
7919
7950
|
exports.listPlanAddonsQueryPageDefault = 1;
|
|
7920
7951
|
exports.listPlanAddonsQueryPageSizeDefault = 100;
|
|
7921
7952
|
exports.listPlanAddonsQueryPageSizeMax = 1000;
|
|
@@ -7965,11 +7996,11 @@ exports.listPlanAddonsQueryParams = zod_1.z.object({
|
|
|
7965
7996
|
* Create new add-on assignment for plan.
|
|
7966
7997
|
* @summary Create new add-on assignment for plan
|
|
7967
7998
|
*/
|
|
7968
|
-
exports.createPlanAddonPathPlanIdRegExp =
|
|
7999
|
+
exports.createPlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7969
8000
|
exports.createPlanAddonParams = zod_1.z.object({
|
|
7970
8001
|
planId: zod_1.z.coerce.string().regex(exports.createPlanAddonPathPlanIdRegExp),
|
|
7971
8002
|
});
|
|
7972
|
-
exports.createPlanAddonBodyAddonIdRegExp =
|
|
8003
|
+
exports.createPlanAddonBodyAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7973
8004
|
exports.createPlanAddonBody = zod_1.z
|
|
7974
8005
|
.object({
|
|
7975
8006
|
addonId: zod_1.z.coerce
|
|
@@ -7994,8 +8025,8 @@ exports.createPlanAddonBody = zod_1.z
|
|
|
7994
8025
|
* Update add-on assignment for plan.
|
|
7995
8026
|
* @summary Update add-on assignment for plan
|
|
7996
8027
|
*/
|
|
7997
|
-
exports.updatePlanAddonPathPlanIdRegExp =
|
|
7998
|
-
exports.updatePlanAddonPathPlanAddonIdRegExp =
|
|
8028
|
+
exports.updatePlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8029
|
+
exports.updatePlanAddonPathPlanAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
7999
8030
|
exports.updatePlanAddonParams = zod_1.z.object({
|
|
8000
8031
|
planAddonId: zod_1.z.coerce.string().regex(exports.updatePlanAddonPathPlanAddonIdRegExp),
|
|
8001
8032
|
planId: zod_1.z.coerce.string().regex(exports.updatePlanAddonPathPlanIdRegExp),
|
|
@@ -8021,9 +8052,9 @@ exports.updatePlanAddonBody = zod_1.z
|
|
|
8021
8052
|
* @summary Get add-on assignment for plan
|
|
8022
8053
|
*/
|
|
8023
8054
|
exports.getPlanAddonPathPlanIdMax = 64;
|
|
8024
|
-
exports.getPlanAddonPathPlanIdRegExp =
|
|
8055
|
+
exports.getPlanAddonPathPlanIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8025
8056
|
exports.getPlanAddonPathPlanAddonIdMax = 64;
|
|
8026
|
-
exports.getPlanAddonPathPlanAddonIdRegExp =
|
|
8057
|
+
exports.getPlanAddonPathPlanAddonIdRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8027
8058
|
exports.getPlanAddonParams = zod_1.z.object({
|
|
8028
8059
|
planAddonId: zod_1.z.coerce
|
|
8029
8060
|
.string()
|
|
@@ -8042,8 +8073,8 @@ exports.getPlanAddonParams = zod_1.z.object({
|
|
|
8042
8073
|
Once a plan is deleted it cannot be undeleted.
|
|
8043
8074
|
* @summary Delete add-on assignment for plan
|
|
8044
8075
|
*/
|
|
8045
|
-
exports.deletePlanAddonPathPlanIdRegExp =
|
|
8046
|
-
exports.deletePlanAddonPathPlanAddonIdRegExp =
|
|
8076
|
+
exports.deletePlanAddonPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8077
|
+
exports.deletePlanAddonPathPlanAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8047
8078
|
exports.deletePlanAddonParams = zod_1.z.object({
|
|
8048
8079
|
planAddonId: zod_1.z.coerce.string().regex(exports.deletePlanAddonPathPlanAddonIdRegExp),
|
|
8049
8080
|
planId: zod_1.z.coerce.string().regex(exports.deletePlanAddonPathPlanIdRegExp),
|
|
@@ -8052,7 +8083,7 @@ exports.deletePlanAddonParams = zod_1.z.object({
|
|
|
8052
8083
|
* Archive a plan version.
|
|
8053
8084
|
* @summary Archive plan version
|
|
8054
8085
|
*/
|
|
8055
|
-
exports.archivePlanPathPlanIdRegExp =
|
|
8086
|
+
exports.archivePlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8056
8087
|
exports.archivePlanParams = zod_1.z.object({
|
|
8057
8088
|
planId: zod_1.z.coerce.string().regex(exports.archivePlanPathPlanIdRegExp),
|
|
8058
8089
|
});
|
|
@@ -8060,7 +8091,7 @@ exports.archivePlanParams = zod_1.z.object({
|
|
|
8060
8091
|
* Publish a plan version.
|
|
8061
8092
|
* @summary Publish plan
|
|
8062
8093
|
*/
|
|
8063
|
-
exports.publishPlanPathPlanIdRegExp =
|
|
8094
|
+
exports.publishPlanPathPlanIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8064
8095
|
exports.publishPlanParams = zod_1.z.object({
|
|
8065
8096
|
planId: zod_1.z.coerce.string().regex(exports.publishPlanPathPlanIdRegExp),
|
|
8066
8097
|
});
|
|
@@ -8069,7 +8100,7 @@ exports.publishPlanParams = zod_1.z.object({
|
|
|
8069
8100
|
* @summary Query meter Query meter
|
|
8070
8101
|
*/
|
|
8071
8102
|
exports.queryPortalMeterPathMeterSlugMax = 64;
|
|
8072
|
-
exports.queryPortalMeterPathMeterSlugRegExp =
|
|
8103
|
+
exports.queryPortalMeterPathMeterSlugRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8073
8104
|
exports.queryPortalMeterParams = zod_1.z.object({
|
|
8074
8105
|
meterSlug: zod_1.z.coerce
|
|
8075
8106
|
.string()
|
|
@@ -8161,21 +8192,21 @@ exports.invalidatePortalTokensBody = zod_1.z.object({
|
|
|
8161
8192
|
* Create checkout session.
|
|
8162
8193
|
* @summary Create checkout session
|
|
8163
8194
|
*/
|
|
8164
|
-
exports.createStripeCheckoutSessionBodyAppIdRegExp =
|
|
8165
|
-
exports.createStripeCheckoutSessionBodyCustomerIdRegExp =
|
|
8195
|
+
exports.createStripeCheckoutSessionBodyAppIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8196
|
+
exports.createStripeCheckoutSessionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8166
8197
|
exports.createStripeCheckoutSessionBodyCustomerNameMax = 256;
|
|
8167
8198
|
exports.createStripeCheckoutSessionBodyCustomerDescriptionMax = 1024;
|
|
8168
8199
|
exports.createStripeCheckoutSessionBodyCustomerKeyMaxOne = 256;
|
|
8169
8200
|
exports.createStripeCheckoutSessionBodyCustomerUsageAttributionSubjectKeysMax = 1;
|
|
8170
8201
|
exports.createStripeCheckoutSessionBodyCustomerCurrencyMinOne = 3;
|
|
8171
8202
|
exports.createStripeCheckoutSessionBodyCustomerCurrencyMaxOne = 3;
|
|
8172
|
-
exports.createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne =
|
|
8203
|
+
exports.createStripeCheckoutSessionBodyCustomerCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
8173
8204
|
exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryMinOne = 2;
|
|
8174
8205
|
exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryMaxOne = 2;
|
|
8175
|
-
exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne =
|
|
8206
|
+
exports.createStripeCheckoutSessionBodyCustomerBillingAddressCountryRegExpOne = /^[A-Z]{2}$/;
|
|
8176
8207
|
exports.createStripeCheckoutSessionBodyOptionsCurrencyMinOne = 3;
|
|
8177
8208
|
exports.createStripeCheckoutSessionBodyOptionsCurrencyMaxOne = 3;
|
|
8178
|
-
exports.createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne =
|
|
8209
|
+
exports.createStripeCheckoutSessionBodyOptionsCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
8179
8210
|
exports.createStripeCheckoutSessionBodyOptionsCustomTextAfterSubmitMessageMax = 1200;
|
|
8180
8211
|
exports.createStripeCheckoutSessionBodyOptionsCustomTextShippingAddressMessageMax = 1200;
|
|
8181
8212
|
exports.createStripeCheckoutSessionBodyOptionsCustomTextSubmitMessageMax = 1200;
|
|
@@ -8517,20 +8548,23 @@ exports.createEntitlementParams = zod_1.z.object({
|
|
|
8517
8548
|
subjectIdOrKey: zod_1.z.coerce.string(),
|
|
8518
8549
|
});
|
|
8519
8550
|
exports.createEntitlementBodyFeatureKeyMax = 64;
|
|
8520
|
-
exports.createEntitlementBodyFeatureKeyRegExp =
|
|
8521
|
-
exports.createEntitlementBodyFeatureIdRegExp =
|
|
8551
|
+
exports.createEntitlementBodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8552
|
+
exports.createEntitlementBodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8522
8553
|
exports.createEntitlementBodyIsSoftLimitDefault = false;
|
|
8523
8554
|
exports.createEntitlementBodyIsUnlimitedDefault = false;
|
|
8555
|
+
exports.createEntitlementBodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8524
8556
|
exports.createEntitlementBodyIssueAfterResetMin = 0;
|
|
8525
8557
|
exports.createEntitlementBodyIssueAfterResetPriorityDefault = 1;
|
|
8526
8558
|
exports.createEntitlementBodyIssueAfterResetPriorityMax = 255;
|
|
8527
8559
|
exports.createEntitlementBodyPreserveOverageAtResetDefault = false;
|
|
8528
8560
|
exports.createEntitlementBodyFeatureKeyMaxOne = 64;
|
|
8529
|
-
exports.createEntitlementBodyFeatureKeyRegExpOne =
|
|
8530
|
-
exports.createEntitlementBodyFeatureIdRegExpOne =
|
|
8561
|
+
exports.createEntitlementBodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8562
|
+
exports.createEntitlementBodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8563
|
+
exports.createEntitlementBodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8531
8564
|
exports.createEntitlementBodyFeatureKeyMaxTwo = 64;
|
|
8532
|
-
exports.createEntitlementBodyFeatureKeyRegExpTwo =
|
|
8533
|
-
exports.createEntitlementBodyFeatureIdRegExpTwo =
|
|
8565
|
+
exports.createEntitlementBodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8566
|
+
exports.createEntitlementBodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8567
|
+
exports.createEntitlementBodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8534
8568
|
exports.createEntitlementBody = zod_1.z
|
|
8535
8569
|
.union([
|
|
8536
8570
|
zod_1.z
|
|
@@ -8555,7 +8589,7 @@ exports.createEntitlementBody = zod_1.z
|
|
|
8555
8589
|
.number()
|
|
8556
8590
|
.min(exports.createEntitlementBodyIssueAfterResetMin)
|
|
8557
8591
|
.optional()
|
|
8558
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
8592
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
8559
8593
|
issueAfterResetPriority: zod_1.z.coerce
|
|
8560
8594
|
.number()
|
|
8561
8595
|
.min(1)
|
|
@@ -8598,7 +8632,7 @@ exports.createEntitlementBody = zod_1.z
|
|
|
8598
8632
|
.union([
|
|
8599
8633
|
zod_1.z.coerce
|
|
8600
8634
|
.string()
|
|
8601
|
-
.regex(createEntitlementBodyUsagePeriodIntervalRegExpTwo),
|
|
8635
|
+
.regex(exports.createEntitlementBodyUsagePeriodIntervalRegExpTwo),
|
|
8602
8636
|
zod_1.z
|
|
8603
8637
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8604
8638
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -8643,7 +8677,7 @@ exports.createEntitlementBody = zod_1.z
|
|
|
8643
8677
|
.union([
|
|
8644
8678
|
zod_1.z.coerce
|
|
8645
8679
|
.string()
|
|
8646
|
-
.regex(createEntitlementBodyUsagePeriodIntervalRegExpSix),
|
|
8680
|
+
.regex(exports.createEntitlementBodyUsagePeriodIntervalRegExpSix),
|
|
8647
8681
|
zod_1.z
|
|
8648
8682
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8649
8683
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -8686,7 +8720,7 @@ exports.createEntitlementBody = zod_1.z
|
|
|
8686
8720
|
.union([
|
|
8687
8721
|
zod_1.z.coerce
|
|
8688
8722
|
.string()
|
|
8689
|
-
.regex(createEntitlementBodyUsagePeriodIntervalRegExpOnezero),
|
|
8723
|
+
.regex(exports.createEntitlementBodyUsagePeriodIntervalRegExpOnezero),
|
|
8690
8724
|
zod_1.z
|
|
8691
8725
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8692
8726
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -8748,6 +8782,7 @@ exports.createGrantBodyPriorityMax = 255;
|
|
|
8748
8782
|
exports.createGrantBodyExpirationCountMax = 1000;
|
|
8749
8783
|
exports.createGrantBodyMaxRolloverAmountDefault = 0;
|
|
8750
8784
|
exports.createGrantBodyMinRolloverAmountDefault = 0;
|
|
8785
|
+
exports.createGrantBodyRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8751
8786
|
exports.createGrantBody = zod_1.z
|
|
8752
8787
|
.object({
|
|
8753
8788
|
amount: zod_1.z.coerce
|
|
@@ -8800,7 +8835,7 @@ exports.createGrantBody = zod_1.z
|
|
|
8800
8835
|
.union([
|
|
8801
8836
|
zod_1.z.coerce
|
|
8802
8837
|
.string()
|
|
8803
|
-
.regex(createGrantBodyRecurrenceIntervalRegExpTwo),
|
|
8838
|
+
.regex(exports.createGrantBodyRecurrenceIntervalRegExpTwo),
|
|
8804
8839
|
zod_1.z
|
|
8805
8840
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8806
8841
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -8824,20 +8859,23 @@ exports.overrideEntitlementParams = zod_1.z.object({
|
|
|
8824
8859
|
subjectIdOrKey: zod_1.z.coerce.string(),
|
|
8825
8860
|
});
|
|
8826
8861
|
exports.overrideEntitlementBodyFeatureKeyMax = 64;
|
|
8827
|
-
exports.overrideEntitlementBodyFeatureKeyRegExp =
|
|
8828
|
-
exports.overrideEntitlementBodyFeatureIdRegExp =
|
|
8862
|
+
exports.overrideEntitlementBodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8863
|
+
exports.overrideEntitlementBodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8829
8864
|
exports.overrideEntitlementBodyIsSoftLimitDefault = false;
|
|
8830
8865
|
exports.overrideEntitlementBodyIsUnlimitedDefault = false;
|
|
8866
|
+
exports.overrideEntitlementBodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8831
8867
|
exports.overrideEntitlementBodyIssueAfterResetMin = 0;
|
|
8832
8868
|
exports.overrideEntitlementBodyIssueAfterResetPriorityDefault = 1;
|
|
8833
8869
|
exports.overrideEntitlementBodyIssueAfterResetPriorityMax = 255;
|
|
8834
8870
|
exports.overrideEntitlementBodyPreserveOverageAtResetDefault = false;
|
|
8835
8871
|
exports.overrideEntitlementBodyFeatureKeyMaxOne = 64;
|
|
8836
|
-
exports.overrideEntitlementBodyFeatureKeyRegExpOne =
|
|
8837
|
-
exports.overrideEntitlementBodyFeatureIdRegExpOne =
|
|
8872
|
+
exports.overrideEntitlementBodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8873
|
+
exports.overrideEntitlementBodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8874
|
+
exports.overrideEntitlementBodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8838
8875
|
exports.overrideEntitlementBodyFeatureKeyMaxTwo = 64;
|
|
8839
|
-
exports.overrideEntitlementBodyFeatureKeyRegExpTwo =
|
|
8840
|
-
exports.overrideEntitlementBodyFeatureIdRegExpTwo =
|
|
8876
|
+
exports.overrideEntitlementBodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
8877
|
+
exports.overrideEntitlementBodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
8878
|
+
exports.overrideEntitlementBodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
8841
8879
|
exports.overrideEntitlementBody = zod_1.z
|
|
8842
8880
|
.union([
|
|
8843
8881
|
zod_1.z
|
|
@@ -8862,7 +8900,7 @@ exports.overrideEntitlementBody = zod_1.z
|
|
|
8862
8900
|
.number()
|
|
8863
8901
|
.min(exports.overrideEntitlementBodyIssueAfterResetMin)
|
|
8864
8902
|
.optional()
|
|
8865
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
8903
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
8866
8904
|
issueAfterResetPriority: zod_1.z.coerce
|
|
8867
8905
|
.number()
|
|
8868
8906
|
.min(1)
|
|
@@ -8905,7 +8943,7 @@ exports.overrideEntitlementBody = zod_1.z
|
|
|
8905
8943
|
.union([
|
|
8906
8944
|
zod_1.z.coerce
|
|
8907
8945
|
.string()
|
|
8908
|
-
.regex(overrideEntitlementBodyUsagePeriodIntervalRegExpTwo),
|
|
8946
|
+
.regex(exports.overrideEntitlementBodyUsagePeriodIntervalRegExpTwo),
|
|
8909
8947
|
zod_1.z
|
|
8910
8948
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8911
8949
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -8950,7 +8988,7 @@ exports.overrideEntitlementBody = zod_1.z
|
|
|
8950
8988
|
.union([
|
|
8951
8989
|
zod_1.z.coerce
|
|
8952
8990
|
.string()
|
|
8953
|
-
.regex(overrideEntitlementBodyUsagePeriodIntervalRegExpSix),
|
|
8991
|
+
.regex(exports.overrideEntitlementBodyUsagePeriodIntervalRegExpSix),
|
|
8954
8992
|
zod_1.z
|
|
8955
8993
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8956
8994
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -8993,7 +9031,7 @@ exports.overrideEntitlementBody = zod_1.z
|
|
|
8993
9031
|
.union([
|
|
8994
9032
|
zod_1.z.coerce
|
|
8995
9033
|
.string()
|
|
8996
|
-
.regex(overrideEntitlementBodyUsagePeriodIntervalRegExpOnezero),
|
|
9034
|
+
.regex(exports.overrideEntitlementBodyUsagePeriodIntervalRegExpOnezero),
|
|
8997
9035
|
zod_1.z
|
|
8998
9036
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
8999
9037
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -9098,15 +9136,15 @@ exports.resetEntitlementUsageBody = zod_1.z
|
|
|
9098
9136
|
* @summary Create subscription
|
|
9099
9137
|
*/
|
|
9100
9138
|
exports.createSubscriptionBodyPlanKeyMax = 64;
|
|
9101
|
-
exports.createSubscriptionBodyPlanKeyRegExp =
|
|
9139
|
+
exports.createSubscriptionBodyPlanKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9102
9140
|
exports.createSubscriptionBodyTimingDefault = 'immediate';
|
|
9103
|
-
exports.createSubscriptionBodyCustomerIdRegExp =
|
|
9141
|
+
exports.createSubscriptionBodyCustomerIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9104
9142
|
exports.createSubscriptionBodyCustomerKeyMax = 256;
|
|
9105
9143
|
exports.createSubscriptionBodyCustomPlanNameMax = 256;
|
|
9106
9144
|
exports.createSubscriptionBodyCustomPlanDescriptionMax = 1024;
|
|
9107
9145
|
exports.createSubscriptionBodyCustomPlanCurrencyMinOne = 3;
|
|
9108
9146
|
exports.createSubscriptionBodyCustomPlanCurrencyMaxOne = 3;
|
|
9109
|
-
exports.createSubscriptionBodyCustomPlanCurrencyRegExpOne =
|
|
9147
|
+
exports.createSubscriptionBodyCustomPlanCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
9110
9148
|
exports.createSubscriptionBodyCustomPlanCurrencyDefault = 'USD';
|
|
9111
9149
|
exports.createSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = true;
|
|
9112
9150
|
exports.createSubscriptionBodyCustomPlanProRatingConfigModeDefault = 'prorate_prices';
|
|
@@ -9115,57 +9153,57 @@ exports.createSubscriptionBodyCustomPlanProRatingConfigDefault = {
|
|
|
9115
9153
|
mode: 'prorate_prices',
|
|
9116
9154
|
};
|
|
9117
9155
|
exports.createSubscriptionBodyCustomPlanPhasesItemKeyMax = 64;
|
|
9118
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemKeyRegExp =
|
|
9156
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9119
9157
|
exports.createSubscriptionBodyCustomPlanPhasesItemNameMax = 256;
|
|
9120
9158
|
exports.createSubscriptionBodyCustomPlanPhasesItemDescriptionMax = 1024;
|
|
9121
9159
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = 64;
|
|
9122
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp =
|
|
9160
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9123
9161
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = 256;
|
|
9124
9162
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = 1024;
|
|
9125
9163
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = 64;
|
|
9126
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp =
|
|
9164
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9127
9165
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
|
|
9128
9166
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
|
|
9129
9167
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
9130
9168
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
9131
9169
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
9132
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp =
|
|
9133
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne =
|
|
9170
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
9171
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9134
9172
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
|
|
9135
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne =
|
|
9173
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9136
9174
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = 64;
|
|
9137
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne =
|
|
9175
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9138
9176
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = 256;
|
|
9139
9177
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = 1024;
|
|
9140
9178
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
|
|
9141
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne =
|
|
9179
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9142
9180
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
9143
9181
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
9144
9182
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
9145
9183
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
9146
9184
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
9147
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne =
|
|
9148
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree =
|
|
9185
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
9186
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9149
9187
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
|
|
9150
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive =
|
|
9151
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne =
|
|
9152
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne =
|
|
9153
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne =
|
|
9154
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
9155
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
9156
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree =
|
|
9157
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree =
|
|
9158
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne =
|
|
9188
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9189
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9190
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9191
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9192
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9193
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9194
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9195
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9196
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9159
9197
|
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = '1';
|
|
9160
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive =
|
|
9161
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive =
|
|
9162
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven =
|
|
9163
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne =
|
|
9164
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven =
|
|
9165
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven =
|
|
9166
|
-
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree =
|
|
9198
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9199
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9200
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9201
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9202
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9203
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9204
|
+
exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9167
9205
|
exports.createSubscriptionBodyTimingDefaultFour = 'immediate';
|
|
9168
|
-
exports.createSubscriptionBodyCustomerIdRegExpOne =
|
|
9206
|
+
exports.createSubscriptionBodyCustomerIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9169
9207
|
exports.createSubscriptionBodyCustomerKeyMaxOne = 256;
|
|
9170
9208
|
exports.createSubscriptionBody = zod_1.z
|
|
9171
9209
|
.union([
|
|
@@ -9274,7 +9312,7 @@ exports.createSubscriptionBody = zod_1.z
|
|
|
9274
9312
|
.describe('Alignment configuration for the plan.'),
|
|
9275
9313
|
billingCadence: zod_1.z.coerce
|
|
9276
9314
|
.string()
|
|
9277
|
-
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples:
|
|
9315
|
+
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
|
|
9278
9316
|
currency: zod_1.z.coerce
|
|
9279
9317
|
.string()
|
|
9280
9318
|
.min(exports.createSubscriptionBodyCustomPlanCurrencyMinOne)
|
|
@@ -9378,7 +9416,7 @@ exports.createSubscriptionBody = zod_1.z
|
|
|
9378
9416
|
.number()
|
|
9379
9417
|
.min(exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
|
|
9380
9418
|
.optional()
|
|
9381
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
9419
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
9382
9420
|
issueAfterResetPriority: zod_1.z.coerce
|
|
9383
9421
|
.number()
|
|
9384
9422
|
.min(1)
|
|
@@ -9550,7 +9588,7 @@ exports.createSubscriptionBody = zod_1.z
|
|
|
9550
9588
|
.number()
|
|
9551
9589
|
.min(exports.createSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
|
|
9552
9590
|
.optional()
|
|
9553
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
9591
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
9554
9592
|
issueAfterResetPriority: zod_1.z.coerce
|
|
9555
9593
|
.number()
|
|
9556
9594
|
.min(1)
|
|
@@ -9854,7 +9892,7 @@ exports.createSubscriptionBody = zod_1.z
|
|
|
9854
9892
|
/**
|
|
9855
9893
|
* @summary Get subscription
|
|
9856
9894
|
*/
|
|
9857
|
-
exports.getSubscriptionPathSubscriptionIdRegExp =
|
|
9895
|
+
exports.getSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9858
9896
|
exports.getSubscriptionParams = zod_1.z.object({
|
|
9859
9897
|
subscriptionId: zod_1.z.coerce
|
|
9860
9898
|
.string()
|
|
@@ -9871,61 +9909,61 @@ exports.getSubscriptionQueryParams = zod_1.z.object({
|
|
|
9871
9909
|
The key format is `/phases/{phaseKey}` or `/phases/{phaseKey}/items/{itemKey}`.
|
|
9872
9910
|
* @summary Edit subscription
|
|
9873
9911
|
*/
|
|
9874
|
-
exports.editSubscriptionPathSubscriptionIdRegExp =
|
|
9912
|
+
exports.editSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
9875
9913
|
exports.editSubscriptionParams = zod_1.z.object({
|
|
9876
9914
|
subscriptionId: zod_1.z.coerce
|
|
9877
9915
|
.string()
|
|
9878
9916
|
.regex(exports.editSubscriptionPathSubscriptionIdRegExp),
|
|
9879
9917
|
});
|
|
9880
9918
|
exports.editSubscriptionBodyCustomizationsItemRateCardKeyMax = 64;
|
|
9881
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardKeyRegExp =
|
|
9919
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9882
9920
|
exports.editSubscriptionBodyCustomizationsItemRateCardNameMax = 256;
|
|
9883
9921
|
exports.editSubscriptionBodyCustomizationsItemRateCardDescriptionMax = 1024;
|
|
9884
9922
|
exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMax = 64;
|
|
9885
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp =
|
|
9923
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9886
9924
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefault = false;
|
|
9887
9925
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin = 0;
|
|
9888
9926
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
9889
9927
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
9890
9928
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
9891
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp =
|
|
9892
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne =
|
|
9929
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
9930
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9893
9931
|
exports.editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefault = 'in_advance';
|
|
9894
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne =
|
|
9932
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9895
9933
|
exports.editSubscriptionBodyCustomizationsItemRateCardKeyMaxOne = 64;
|
|
9896
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne =
|
|
9934
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9897
9935
|
exports.editSubscriptionBodyCustomizationsItemRateCardNameMaxOne = 256;
|
|
9898
9936
|
exports.editSubscriptionBodyCustomizationsItemRateCardDescriptionMaxOne = 1024;
|
|
9899
9937
|
exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyMaxOne = 64;
|
|
9900
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne =
|
|
9938
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9901
9939
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
9902
9940
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
9903
9941
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
9904
9942
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
9905
9943
|
exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
9906
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne =
|
|
9907
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree =
|
|
9944
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
9945
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9908
9946
|
exports.editSubscriptionBodyCustomizationsItemRateCardPricePaymentTermDefaultTwo = 'in_advance';
|
|
9909
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpFive =
|
|
9910
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpOne =
|
|
9911
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpOne =
|
|
9912
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRegExpOne =
|
|
9913
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne =
|
|
9914
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne =
|
|
9915
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree =
|
|
9916
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree =
|
|
9917
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne =
|
|
9947
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9948
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9949
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9950
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9951
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9952
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9953
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9954
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9955
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9918
9956
|
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMultiplierDefault = '1';
|
|
9919
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive =
|
|
9920
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive =
|
|
9921
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven =
|
|
9922
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne =
|
|
9923
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven =
|
|
9924
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven =
|
|
9925
|
-
exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree =
|
|
9926
|
-
exports.editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne =
|
|
9957
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9958
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9959
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9960
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9961
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9962
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9963
|
+
exports.editSubscriptionBodyCustomizationsItemRateCardDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9964
|
+
exports.editSubscriptionBodyCustomizationsItemPhaseDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
9927
9965
|
exports.editSubscriptionBodyCustomizationsItemPhaseKeyMaxTwo = 64;
|
|
9928
|
-
exports.editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo =
|
|
9966
|
+
exports.editSubscriptionBodyCustomizationsItemPhaseKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
9929
9967
|
exports.editSubscriptionBodyCustomizationsMax = 100;
|
|
9930
9968
|
exports.editSubscriptionBody = zod_1.z
|
|
9931
9969
|
.object({
|
|
@@ -9988,7 +10026,7 @@ exports.editSubscriptionBody = zod_1.z
|
|
|
9988
10026
|
.number()
|
|
9989
10027
|
.min(exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMin)
|
|
9990
10028
|
.optional()
|
|
9991
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
10029
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
9992
10030
|
issueAfterResetPriority: zod_1.z.coerce
|
|
9993
10031
|
.number()
|
|
9994
10032
|
.min(1)
|
|
@@ -10160,7 +10198,7 @@ exports.editSubscriptionBody = zod_1.z
|
|
|
10160
10198
|
.number()
|
|
10161
10199
|
.min(exports.editSubscriptionBodyCustomizationsItemRateCardEntitlementTemplateIssueAfterResetMinOne)
|
|
10162
10200
|
.optional()
|
|
10163
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
10201
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
10164
10202
|
issueAfterResetPriority: zod_1.z.coerce
|
|
10165
10203
|
.number()
|
|
10166
10204
|
.min(1)
|
|
@@ -10532,7 +10570,7 @@ exports.editSubscriptionBody = zod_1.z
|
|
|
10532
10570
|
* Deletes a subscription. Only scheduled subscriptions can be deleted.
|
|
10533
10571
|
* @summary Delete subscription
|
|
10534
10572
|
*/
|
|
10535
|
-
exports.deleteSubscriptionPathSubscriptionIdRegExp =
|
|
10573
|
+
exports.deleteSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10536
10574
|
exports.deleteSubscriptionParams = zod_1.z.object({
|
|
10537
10575
|
subscriptionId: zod_1.z.coerce
|
|
10538
10576
|
.string()
|
|
@@ -10542,7 +10580,7 @@ exports.deleteSubscriptionParams = zod_1.z.object({
|
|
|
10542
10580
|
* Create a new subscription addon, either providing the key or the id of the addon.
|
|
10543
10581
|
* @summary Create subscription addon
|
|
10544
10582
|
*/
|
|
10545
|
-
exports.createSubscriptionAddonPathSubscriptionIdRegExp =
|
|
10583
|
+
exports.createSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10546
10584
|
exports.createSubscriptionAddonParams = zod_1.z.object({
|
|
10547
10585
|
subscriptionId: zod_1.z.coerce
|
|
10548
10586
|
.string()
|
|
@@ -10551,7 +10589,7 @@ exports.createSubscriptionAddonParams = zod_1.z.object({
|
|
|
10551
10589
|
exports.createSubscriptionAddonBodyNameMax = 256;
|
|
10552
10590
|
exports.createSubscriptionAddonBodyDescriptionMax = 1024;
|
|
10553
10591
|
exports.createSubscriptionAddonBodyQuantityMin = 0;
|
|
10554
|
-
exports.createSubscriptionAddonBodyAddonIdRegExp =
|
|
10592
|
+
exports.createSubscriptionAddonBodyAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10555
10593
|
exports.createSubscriptionAddonBody = zod_1.z
|
|
10556
10594
|
.object({
|
|
10557
10595
|
addon: zod_1.z
|
|
@@ -10598,7 +10636,7 @@ exports.createSubscriptionAddonBody = zod_1.z
|
|
|
10598
10636
|
* List all addons of a subscription. In the returned list will match to a set unique by addonId.
|
|
10599
10637
|
* @summary List subscription addons
|
|
10600
10638
|
*/
|
|
10601
|
-
exports.listSubscriptionAddonsPathSubscriptionIdRegExp =
|
|
10639
|
+
exports.listSubscriptionAddonsPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10602
10640
|
exports.listSubscriptionAddonsParams = zod_1.z.object({
|
|
10603
10641
|
subscriptionId: zod_1.z.coerce
|
|
10604
10642
|
.string()
|
|
@@ -10608,8 +10646,8 @@ exports.listSubscriptionAddonsParams = zod_1.z.object({
|
|
|
10608
10646
|
* Get a subscription addon by id.
|
|
10609
10647
|
* @summary Get subscription addon
|
|
10610
10648
|
*/
|
|
10611
|
-
exports.getSubscriptionAddonPathSubscriptionIdRegExp =
|
|
10612
|
-
exports.getSubscriptionAddonPathSubscriptionAddonIdRegExp =
|
|
10649
|
+
exports.getSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10650
|
+
exports.getSubscriptionAddonPathSubscriptionAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10613
10651
|
exports.getSubscriptionAddonParams = zod_1.z.object({
|
|
10614
10652
|
subscriptionAddonId: zod_1.z.coerce
|
|
10615
10653
|
.string()
|
|
@@ -10622,8 +10660,8 @@ exports.getSubscriptionAddonParams = zod_1.z.object({
|
|
|
10622
10660
|
* Updates a subscription addon (allows changing the quantity: purchasing more instances or cancelling the current instances)
|
|
10623
10661
|
* @summary Update subscription addon
|
|
10624
10662
|
*/
|
|
10625
|
-
exports.updateSubscriptionAddonPathSubscriptionIdRegExp =
|
|
10626
|
-
exports.updateSubscriptionAddonPathSubscriptionAddonIdRegExp =
|
|
10663
|
+
exports.updateSubscriptionAddonPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10664
|
+
exports.updateSubscriptionAddonPathSubscriptionAddonIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10627
10665
|
exports.updateSubscriptionAddonParams = zod_1.z.object({
|
|
10628
10666
|
subscriptionAddonId: zod_1.z.coerce
|
|
10629
10667
|
.string()
|
|
@@ -10677,7 +10715,7 @@ exports.updateSubscriptionAddonBody = zod_1.z
|
|
|
10677
10715
|
Will result in a scheduling conflict if there are other subscriptions scheduled to start after the cancellation time.
|
|
10678
10716
|
* @summary Cancel subscription
|
|
10679
10717
|
*/
|
|
10680
|
-
exports.cancelSubscriptionPathSubscriptionIdRegExp =
|
|
10718
|
+
exports.cancelSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10681
10719
|
exports.cancelSubscriptionParams = zod_1.z.object({
|
|
10682
10720
|
subscriptionId: zod_1.z.coerce
|
|
10683
10721
|
.string()
|
|
@@ -10702,19 +10740,19 @@ exports.cancelSubscriptionBody = zod_1.z.object({
|
|
|
10702
10740
|
Can be used for upgrades, downgrades, and plan changes.
|
|
10703
10741
|
* @summary Change subscription
|
|
10704
10742
|
*/
|
|
10705
|
-
exports.changeSubscriptionPathSubscriptionIdRegExp =
|
|
10743
|
+
exports.changeSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
10706
10744
|
exports.changeSubscriptionParams = zod_1.z.object({
|
|
10707
10745
|
subscriptionId: zod_1.z.coerce
|
|
10708
10746
|
.string()
|
|
10709
10747
|
.regex(exports.changeSubscriptionPathSubscriptionIdRegExp),
|
|
10710
10748
|
});
|
|
10711
10749
|
exports.changeSubscriptionBodyPlanKeyMax = 64;
|
|
10712
|
-
exports.changeSubscriptionBodyPlanKeyRegExp =
|
|
10750
|
+
exports.changeSubscriptionBodyPlanKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
10713
10751
|
exports.changeSubscriptionBodyCustomPlanNameMax = 256;
|
|
10714
10752
|
exports.changeSubscriptionBodyCustomPlanDescriptionMax = 1024;
|
|
10715
10753
|
exports.changeSubscriptionBodyCustomPlanCurrencyMinOne = 3;
|
|
10716
10754
|
exports.changeSubscriptionBodyCustomPlanCurrencyMaxOne = 3;
|
|
10717
|
-
exports.changeSubscriptionBodyCustomPlanCurrencyRegExpOne =
|
|
10755
|
+
exports.changeSubscriptionBodyCustomPlanCurrencyRegExpOne = /^[A-Z]{3}$/;
|
|
10718
10756
|
exports.changeSubscriptionBodyCustomPlanCurrencyDefault = 'USD';
|
|
10719
10757
|
exports.changeSubscriptionBodyCustomPlanProRatingConfigEnabledDefault = true;
|
|
10720
10758
|
exports.changeSubscriptionBodyCustomPlanProRatingConfigModeDefault = 'prorate_prices';
|
|
@@ -10723,55 +10761,55 @@ exports.changeSubscriptionBodyCustomPlanProRatingConfigDefault = {
|
|
|
10723
10761
|
mode: 'prorate_prices',
|
|
10724
10762
|
};
|
|
10725
10763
|
exports.changeSubscriptionBodyCustomPlanPhasesItemKeyMax = 64;
|
|
10726
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp =
|
|
10764
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
10727
10765
|
exports.changeSubscriptionBodyCustomPlanPhasesItemNameMax = 256;
|
|
10728
10766
|
exports.changeSubscriptionBodyCustomPlanPhasesItemDescriptionMax = 1024;
|
|
10729
10767
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMax = 64;
|
|
10730
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp =
|
|
10768
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
10731
10769
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMax = 256;
|
|
10732
10770
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMax = 1024;
|
|
10733
10771
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMax = 64;
|
|
10734
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp =
|
|
10772
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
10735
10773
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefault = false;
|
|
10736
10774
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin = 0;
|
|
10737
10775
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefault = 1;
|
|
10738
10776
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMax = 255;
|
|
10739
10777
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefault = false;
|
|
10740
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp =
|
|
10741
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne =
|
|
10778
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExp = /^txcd_\d{8}$/;
|
|
10779
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10742
10780
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefault = 'in_advance';
|
|
10743
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne =
|
|
10781
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10744
10782
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyMaxOne = 64;
|
|
10745
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne =
|
|
10783
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
10746
10784
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemNameMaxOne = 256;
|
|
10747
10785
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDescriptionMaxOne = 1024;
|
|
10748
10786
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyMaxOne = 64;
|
|
10749
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne =
|
|
10787
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
10750
10788
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIsSoftLimitDefaultOne = false;
|
|
10751
10789
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne = 0;
|
|
10752
10790
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityDefaultOne = 1;
|
|
10753
10791
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetPriorityMaxOne = 255;
|
|
10754
10792
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplatePreserveOverageAtResetDefaultOne = false;
|
|
10755
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne =
|
|
10756
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree =
|
|
10793
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemTaxConfigStripeCodeRegExpOne = /^txcd_\d{8}$/;
|
|
10794
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10757
10795
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPricePaymentTermDefaultTwo = 'in_advance';
|
|
10758
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive =
|
|
10759
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne =
|
|
10760
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne =
|
|
10761
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne =
|
|
10762
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne =
|
|
10763
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne =
|
|
10764
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree =
|
|
10765
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree =
|
|
10766
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne =
|
|
10796
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10797
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10798
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10799
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUpToAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10800
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemFlatPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10801
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceTiersItemUnitPriceAmountRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10802
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10803
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10804
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10767
10805
|
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMultiplierDefault = '1';
|
|
10768
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive =
|
|
10769
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive =
|
|
10770
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven =
|
|
10771
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne =
|
|
10772
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven =
|
|
10773
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven =
|
|
10774
|
-
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree =
|
|
10806
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10807
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpFive = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10808
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10809
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceQuantityPerPackageRegExpOne = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10810
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMinimumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10811
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemPriceMaximumAmountRegExpSeven = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10812
|
+
exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemDiscountsUsageQuantityRegExpThree = /^-?[0-9]+(\.[0-9]+)?$/;
|
|
10775
10813
|
exports.changeSubscriptionBody = zod_1.z
|
|
10776
10814
|
.union([
|
|
10777
10815
|
zod_1.z
|
|
@@ -10856,7 +10894,7 @@ exports.changeSubscriptionBody = zod_1.z
|
|
|
10856
10894
|
.describe('Alignment configuration for the plan.'),
|
|
10857
10895
|
billingCadence: zod_1.z.coerce
|
|
10858
10896
|
.string()
|
|
10859
|
-
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples:
|
|
10897
|
+
.describe('The default billing cadence for subscriptions using this plan.\nDefines how often customers are billed using ISO8601 duration format.\nExamples: "P1M" (monthly), "P3M" (quarterly), "P1Y" (annually).'),
|
|
10860
10898
|
currency: zod_1.z.coerce
|
|
10861
10899
|
.string()
|
|
10862
10900
|
.min(exports.changeSubscriptionBodyCustomPlanCurrencyMinOne)
|
|
@@ -10960,7 +10998,7 @@ exports.changeSubscriptionBody = zod_1.z
|
|
|
10960
10998
|
.number()
|
|
10961
10999
|
.min(exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMin)
|
|
10962
11000
|
.optional()
|
|
10963
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
11001
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
10964
11002
|
issueAfterResetPriority: zod_1.z.coerce
|
|
10965
11003
|
.number()
|
|
10966
11004
|
.min(1)
|
|
@@ -11132,7 +11170,7 @@ exports.changeSubscriptionBody = zod_1.z
|
|
|
11132
11170
|
.number()
|
|
11133
11171
|
.min(exports.changeSubscriptionBodyCustomPlanPhasesItemRateCardsItemEntitlementTemplateIssueAfterResetMinOne)
|
|
11134
11172
|
.optional()
|
|
11135
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
11173
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
11136
11174
|
issueAfterResetPriority: zod_1.z.coerce
|
|
11137
11175
|
.number()
|
|
11138
11176
|
.min(1)
|
|
@@ -11438,7 +11476,7 @@ If possible, the migration will be done immediately.
|
|
|
11438
11476
|
If not, the migration will be scheduled to the end of the current billing period.
|
|
11439
11477
|
* @summary Migrate subscription
|
|
11440
11478
|
*/
|
|
11441
|
-
exports.migrateSubscriptionPathSubscriptionIdRegExp =
|
|
11479
|
+
exports.migrateSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11442
11480
|
exports.migrateSubscriptionParams = zod_1.z.object({
|
|
11443
11481
|
subscriptionId: zod_1.z.coerce
|
|
11444
11482
|
.string()
|
|
@@ -11476,9 +11514,10 @@ exports.migrateSubscriptionBody = zod_1.z.object({
|
|
|
11476
11514
|
/**
|
|
11477
11515
|
* Restores a canceled subscription.
|
|
11478
11516
|
Any subscription scheduled to start later will be deleted and this subscription will be continued indefinitely.
|
|
11517
|
+
* @deprecated
|
|
11479
11518
|
* @summary Restore subscription
|
|
11480
11519
|
*/
|
|
11481
|
-
exports.restoreSubscriptionPathSubscriptionIdRegExp =
|
|
11520
|
+
exports.restoreSubscriptionPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11482
11521
|
exports.restoreSubscriptionParams = zod_1.z.object({
|
|
11483
11522
|
subscriptionId: zod_1.z.coerce
|
|
11484
11523
|
.string()
|
|
@@ -11488,7 +11527,7 @@ exports.restoreSubscriptionParams = zod_1.z.object({
|
|
|
11488
11527
|
* Cancels the scheduled cancelation.
|
|
11489
11528
|
* @summary Unschedule cancelation
|
|
11490
11529
|
*/
|
|
11491
|
-
exports.unscheduleCancelationPathSubscriptionIdRegExp =
|
|
11530
|
+
exports.unscheduleCancelationPathSubscriptionIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11492
11531
|
exports.unscheduleCancelationParams = zod_1.z.object({
|
|
11493
11532
|
subscriptionId: zod_1.z.coerce
|
|
11494
11533
|
.string()
|
|
@@ -11506,34 +11545,46 @@ A given customer can only have one active (non-deleted) entitlement per featureK
|
|
|
11506
11545
|
Once an entitlement is created you cannot modify it, only delete it.
|
|
11507
11546
|
* @summary Create a customer entitlement
|
|
11508
11547
|
*/
|
|
11548
|
+
exports.createCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11549
|
+
exports.createCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11509
11550
|
exports.createCustomerEntitlementV2Params = zod_1.z.object({
|
|
11510
11551
|
customerIdOrKey: zod_1.z.union([
|
|
11511
11552
|
zod_1.z.coerce
|
|
11512
11553
|
.string()
|
|
11513
|
-
.regex(createCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
11554
|
+
.regex(exports.createCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
11514
11555
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11515
11556
|
zod_1.z.coerce
|
|
11516
11557
|
.string()
|
|
11517
11558
|
.min(1)
|
|
11518
|
-
.max(createCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
11559
|
+
.max(exports.createCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
11519
11560
|
.describe('ExternalKey is a looser version of key.'),
|
|
11520
11561
|
]),
|
|
11521
11562
|
});
|
|
11522
11563
|
exports.createCustomerEntitlementV2BodyFeatureKeyMax = 64;
|
|
11523
|
-
exports.createCustomerEntitlementV2BodyFeatureKeyRegExp =
|
|
11524
|
-
exports.createCustomerEntitlementV2BodyFeatureIdRegExp =
|
|
11564
|
+
exports.createCustomerEntitlementV2BodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
11565
|
+
exports.createCustomerEntitlementV2BodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11525
11566
|
exports.createCustomerEntitlementV2BodyIsSoftLimitDefault = false;
|
|
11526
|
-
exports.
|
|
11567
|
+
exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
11568
|
+
exports.createCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
|
|
11527
11569
|
exports.createCustomerEntitlementV2BodyIssueAfterResetMin = 0;
|
|
11528
11570
|
exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = 1;
|
|
11529
11571
|
exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityMax = 255;
|
|
11530
|
-
exports.
|
|
11572
|
+
exports.createCustomerEntitlementV2BodyIssueAmountMin = 0;
|
|
11573
|
+
exports.createCustomerEntitlementV2BodyIssuePriorityDefault = 1;
|
|
11574
|
+
exports.createCustomerEntitlementV2BodyIssuePriorityMax = 255;
|
|
11575
|
+
exports.createCustomerEntitlementV2BodyGrantsItemAmountMin = 0;
|
|
11576
|
+
exports.createCustomerEntitlementV2BodyGrantsItemPriorityMax = 255;
|
|
11577
|
+
exports.createCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = 0;
|
|
11578
|
+
exports.createCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
11579
|
+
exports.createCustomerEntitlementV2BodyGrantsItemExpirationCountMax = 1000;
|
|
11531
11580
|
exports.createCustomerEntitlementV2BodyFeatureKeyMaxOne = 64;
|
|
11532
|
-
exports.createCustomerEntitlementV2BodyFeatureKeyRegExpOne =
|
|
11533
|
-
exports.createCustomerEntitlementV2BodyFeatureIdRegExpOne =
|
|
11581
|
+
exports.createCustomerEntitlementV2BodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
11582
|
+
exports.createCustomerEntitlementV2BodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11583
|
+
exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
11534
11584
|
exports.createCustomerEntitlementV2BodyFeatureKeyMaxTwo = 64;
|
|
11535
|
-
exports.createCustomerEntitlementV2BodyFeatureKeyRegExpTwo =
|
|
11536
|
-
exports.createCustomerEntitlementV2BodyFeatureIdRegExpTwo =
|
|
11585
|
+
exports.createCustomerEntitlementV2BodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
11586
|
+
exports.createCustomerEntitlementV2BodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11587
|
+
exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
11537
11588
|
exports.createCustomerEntitlementV2Body = zod_1.z
|
|
11538
11589
|
.union([
|
|
11539
11590
|
zod_1.z
|
|
@@ -11550,25 +11601,111 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11550
11601
|
.regex(exports.createCustomerEntitlementV2BodyFeatureKeyRegExp)
|
|
11551
11602
|
.optional()
|
|
11552
11603
|
.describe('The feature the subject is entitled to use.\nEither featureKey or featureId is required.'),
|
|
11604
|
+
grants: zod_1.z
|
|
11605
|
+
.array(zod_1.z
|
|
11606
|
+
.object({
|
|
11607
|
+
amount: zod_1.z.coerce
|
|
11608
|
+
.number()
|
|
11609
|
+
.min(exports.createCustomerEntitlementV2BodyGrantsItemAmountMin)
|
|
11610
|
+
.describe('The amount to grant. Should be a positive number.'),
|
|
11611
|
+
annotations: zod_1.z
|
|
11612
|
+
.record(zod_1.z.string(), zod_1.z.any())
|
|
11613
|
+
.describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
|
|
11614
|
+
.optional()
|
|
11615
|
+
.describe('Grant annotations'),
|
|
11616
|
+
effectiveAt: zod_1.z.coerce
|
|
11617
|
+
.date()
|
|
11618
|
+
.describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
|
|
11619
|
+
expiration: zod_1.z
|
|
11620
|
+
.object({
|
|
11621
|
+
count: zod_1.z.coerce
|
|
11622
|
+
.number()
|
|
11623
|
+
.min(1)
|
|
11624
|
+
.max(exports.createCustomerEntitlementV2BodyGrantsItemExpirationCountMax)
|
|
11625
|
+
.describe('The number of time units in the expiration period.'),
|
|
11626
|
+
duration: zod_1.z
|
|
11627
|
+
.enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
11628
|
+
.describe('The expiration duration enum')
|
|
11629
|
+
.describe('The unit of time for the expiration period.'),
|
|
11630
|
+
})
|
|
11631
|
+
.describe('The grant expiration definition')
|
|
11632
|
+
.optional()
|
|
11633
|
+
.describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
|
|
11634
|
+
maxRolloverAmount: zod_1.z.coerce
|
|
11635
|
+
.number()
|
|
11636
|
+
.optional()
|
|
11637
|
+
.describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
|
|
11638
|
+
metadata: zod_1.z
|
|
11639
|
+
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
11640
|
+
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
11641
|
+
.optional()
|
|
11642
|
+
.describe('The grant metadata.'),
|
|
11643
|
+
minRolloverAmount: zod_1.z.coerce
|
|
11644
|
+
.number()
|
|
11645
|
+
.optional()
|
|
11646
|
+
.describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
|
|
11647
|
+
priority: zod_1.z.coerce
|
|
11648
|
+
.number()
|
|
11649
|
+
.min(1)
|
|
11650
|
+
.max(exports.createCustomerEntitlementV2BodyGrantsItemPriorityMax)
|
|
11651
|
+
.optional()
|
|
11652
|
+
.describe('The priority of the grant. Grants with higher priority are applied first.\nPriority is a positive decimal numbers. With lower numbers indicating higher importance.\nFor example, a priority of 1 is more urgent than a priority of 2.\nWhen there are several grants available for the same subject, the system selects the grant with the highest priority.\nIn cases where grants share the same priority level, the grant closest to its expiration will be used first.\nIn the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.'),
|
|
11653
|
+
recurrence: zod_1.z
|
|
11654
|
+
.object({
|
|
11655
|
+
anchor: zod_1.z.coerce
|
|
11656
|
+
.date()
|
|
11657
|
+
.optional()
|
|
11658
|
+
.describe('A date-time anchor to base the recurring period on.'),
|
|
11659
|
+
interval: zod_1.z
|
|
11660
|
+
.union([
|
|
11661
|
+
zod_1.z.coerce
|
|
11662
|
+
.string()
|
|
11663
|
+
.regex(exports.createCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo),
|
|
11664
|
+
zod_1.z
|
|
11665
|
+
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
11666
|
+
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
11667
|
+
])
|
|
11668
|
+
.describe('Period duration for the recurrence')
|
|
11669
|
+
.describe('The unit of time for the interval.'),
|
|
11670
|
+
})
|
|
11671
|
+
.describe('Recurring period with an interval and an anchor.')
|
|
11672
|
+
.optional()
|
|
11673
|
+
.describe('The subject of the grant.'),
|
|
11674
|
+
})
|
|
11675
|
+
.describe('The grant creation input.'))
|
|
11676
|
+
.optional()
|
|
11677
|
+
.describe('Grants'),
|
|
11553
11678
|
isSoftLimit: zod_1.z.coerce
|
|
11554
11679
|
.boolean()
|
|
11555
11680
|
.optional()
|
|
11556
11681
|
.describe('If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.'),
|
|
11682
|
+
issue: zod_1.z
|
|
11683
|
+
.object({
|
|
11684
|
+
amount: zod_1.z.coerce
|
|
11685
|
+
.number()
|
|
11686
|
+
.min(exports.createCustomerEntitlementV2BodyIssueAmountMin)
|
|
11687
|
+
.describe('The initial grant amount'),
|
|
11688
|
+
priority: zod_1.z.coerce
|
|
11689
|
+
.number()
|
|
11690
|
+
.min(1)
|
|
11691
|
+
.max(exports.createCustomerEntitlementV2BodyIssuePriorityMax)
|
|
11692
|
+
.default(exports.createCustomerEntitlementV2BodyIssuePriorityDefault)
|
|
11693
|
+
.describe('The priority of the issue after reset'),
|
|
11694
|
+
})
|
|
11695
|
+
.describe('Issue after reset')
|
|
11696
|
+
.optional()
|
|
11697
|
+
.describe('Issue after reset'),
|
|
11557
11698
|
issueAfterReset: zod_1.z.coerce
|
|
11558
11699
|
.number()
|
|
11559
11700
|
.min(exports.createCustomerEntitlementV2BodyIssueAfterResetMin)
|
|
11560
11701
|
.optional()
|
|
11561
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
11702
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
11562
11703
|
issueAfterResetPriority: zod_1.z.coerce
|
|
11563
11704
|
.number()
|
|
11564
11705
|
.min(1)
|
|
11565
11706
|
.max(exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityMax)
|
|
11566
11707
|
.default(exports.createCustomerEntitlementV2BodyIssueAfterResetPriorityDefault)
|
|
11567
11708
|
.describe('Defines the grant priority for the default grant.'),
|
|
11568
|
-
isUnlimited: zod_1.z.coerce
|
|
11569
|
-
.boolean()
|
|
11570
|
-
.optional()
|
|
11571
|
-
.describe('Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.'),
|
|
11572
11709
|
measureUsageFrom: zod_1.z
|
|
11573
11710
|
.union([
|
|
11574
11711
|
zod_1.z
|
|
@@ -11601,7 +11738,7 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11601
11738
|
.union([
|
|
11602
11739
|
zod_1.z.coerce
|
|
11603
11740
|
.string()
|
|
11604
|
-
.regex(createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo),
|
|
11741
|
+
.regex(exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo),
|
|
11605
11742
|
zod_1.z
|
|
11606
11743
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
11607
11744
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -11612,7 +11749,7 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11612
11749
|
.describe('Recurring period with an interval and an anchor.')
|
|
11613
11750
|
.describe('The usage period associated with the entitlement.'),
|
|
11614
11751
|
})
|
|
11615
|
-
.describe('Create
|
|
11752
|
+
.describe('Create inputs for metered entitlement'),
|
|
11616
11753
|
zod_1.z
|
|
11617
11754
|
.object({
|
|
11618
11755
|
config: zod_1.z.coerce
|
|
@@ -11646,7 +11783,7 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11646
11783
|
.union([
|
|
11647
11784
|
zod_1.z.coerce
|
|
11648
11785
|
.string()
|
|
11649
|
-
.regex(createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix),
|
|
11786
|
+
.regex(exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix),
|
|
11650
11787
|
zod_1.z
|
|
11651
11788
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
11652
11789
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -11689,7 +11826,7 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11689
11826
|
.union([
|
|
11690
11827
|
zod_1.z.coerce
|
|
11691
11828
|
.string()
|
|
11692
|
-
.regex(createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero),
|
|
11829
|
+
.regex(exports.createCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero),
|
|
11693
11830
|
zod_1.z
|
|
11694
11831
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
11695
11832
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -11708,16 +11845,18 @@ exports.createCustomerEntitlementV2Body = zod_1.z
|
|
|
11708
11845
|
* List all entitlements for a customer. For checking entitlement access, use the /value endpoint instead.
|
|
11709
11846
|
* @summary List customer entitlements
|
|
11710
11847
|
*/
|
|
11848
|
+
exports.listCustomerEntitlementsV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11849
|
+
exports.listCustomerEntitlementsV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11711
11850
|
exports.listCustomerEntitlementsV2Params = zod_1.z.object({
|
|
11712
11851
|
customerIdOrKey: zod_1.z.union([
|
|
11713
11852
|
zod_1.z.coerce
|
|
11714
11853
|
.string()
|
|
11715
|
-
.regex(listCustomerEntitlementsV2PathCustomerIdOrKeyRegExpOne)
|
|
11854
|
+
.regex(exports.listCustomerEntitlementsV2PathCustomerIdOrKeyRegExpOne)
|
|
11716
11855
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11717
11856
|
zod_1.z.coerce
|
|
11718
11857
|
.string()
|
|
11719
11858
|
.min(1)
|
|
11720
|
-
.max(listCustomerEntitlementsV2PathCustomerIdOrKeyMaxTwo)
|
|
11859
|
+
.max(exports.listCustomerEntitlementsV2PathCustomerIdOrKeyMaxTwo)
|
|
11721
11860
|
.describe('ExternalKey is a looser version of key.'),
|
|
11722
11861
|
]),
|
|
11723
11862
|
});
|
|
@@ -11725,23 +11864,8 @@ exports.listCustomerEntitlementsV2QueryIncludeDeletedDefault = false;
|
|
|
11725
11864
|
exports.listCustomerEntitlementsV2QueryPageDefault = 1;
|
|
11726
11865
|
exports.listCustomerEntitlementsV2QueryPageSizeDefault = 100;
|
|
11727
11866
|
exports.listCustomerEntitlementsV2QueryPageSizeMax = 1000;
|
|
11728
|
-
exports.listCustomerEntitlementsV2QueryOffsetDefault = 0;
|
|
11729
|
-
exports.listCustomerEntitlementsV2QueryOffsetMin = 0;
|
|
11730
|
-
exports.listCustomerEntitlementsV2QueryLimitDefault = 100;
|
|
11731
|
-
exports.listCustomerEntitlementsV2QueryLimitMax = 1000;
|
|
11732
11867
|
exports.listCustomerEntitlementsV2QueryParams = zod_1.z.object({
|
|
11733
11868
|
includeDeleted: zod_1.z.coerce.boolean().optional(),
|
|
11734
|
-
limit: zod_1.z.coerce
|
|
11735
|
-
.number()
|
|
11736
|
-
.min(1)
|
|
11737
|
-
.max(exports.listCustomerEntitlementsV2QueryLimitMax)
|
|
11738
|
-
.default(exports.listCustomerEntitlementsV2QueryLimitDefault)
|
|
11739
|
-
.describe('Number of items to return.\n\nDefault is 100.'),
|
|
11740
|
-
offset: zod_1.z.coerce
|
|
11741
|
-
.number()
|
|
11742
|
-
.min(exports.listCustomerEntitlementsV2QueryOffsetMin)
|
|
11743
|
-
.optional()
|
|
11744
|
-
.describe('Number of items to skip.\n\nDefault is 0.'),
|
|
11745
11869
|
order: zod_1.z.enum(['ASC', 'DESC']).optional().describe('The order direction.'),
|
|
11746
11870
|
orderBy: zod_1.z
|
|
11747
11871
|
.enum(['createdAt', 'updatedAt'])
|
|
@@ -11764,18 +11888,20 @@ exports.listCustomerEntitlementsV2QueryParams = zod_1.z.object({
|
|
|
11764
11888
|
If featureKey is used, the entitlement is resolved for the current timestamp.
|
|
11765
11889
|
* @summary Get customer entitlement
|
|
11766
11890
|
*/
|
|
11891
|
+
exports.getCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11892
|
+
exports.getCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11767
11893
|
exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
11768
|
-
exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
11894
|
+
exports.getCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11769
11895
|
exports.getCustomerEntitlementV2Params = zod_1.z.object({
|
|
11770
11896
|
customerIdOrKey: zod_1.z.union([
|
|
11771
11897
|
zod_1.z.coerce
|
|
11772
11898
|
.string()
|
|
11773
|
-
.regex(getCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
11899
|
+
.regex(exports.getCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
11774
11900
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11775
11901
|
zod_1.z.coerce
|
|
11776
11902
|
.string()
|
|
11777
11903
|
.min(1)
|
|
11778
|
-
.max(getCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
11904
|
+
.max(exports.getCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
11779
11905
|
.describe('ExternalKey is a looser version of key.'),
|
|
11780
11906
|
]),
|
|
11781
11907
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -11789,18 +11915,20 @@ exports.getCustomerEntitlementV2Params = zod_1.z.object({
|
|
|
11789
11915
|
As access and status checks can be historical queries, deleting an entitlement populates the deletedAt timestamp. When queried for a time before that, the entitlement is still considered active, you cannot have retroactive changes to access, which is important for, among other things, auditing.
|
|
11790
11916
|
* @summary Delete customer entitlement
|
|
11791
11917
|
*/
|
|
11918
|
+
exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11919
|
+
exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11792
11920
|
exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
11793
|
-
exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
11921
|
+
exports.deleteCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11794
11922
|
exports.deleteCustomerEntitlementV2Params = zod_1.z.object({
|
|
11795
11923
|
customerIdOrKey: zod_1.z.union([
|
|
11796
11924
|
zod_1.z.coerce
|
|
11797
11925
|
.string()
|
|
11798
|
-
.regex(deleteCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
11926
|
+
.regex(exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
11799
11927
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11800
11928
|
zod_1.z.coerce
|
|
11801
11929
|
.string()
|
|
11802
11930
|
.min(1)
|
|
11803
|
-
.max(deleteCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
11931
|
+
.max(exports.deleteCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
11804
11932
|
.describe('ExternalKey is a looser version of key.'),
|
|
11805
11933
|
]),
|
|
11806
11934
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -11813,18 +11941,20 @@ exports.deleteCustomerEntitlementV2Params = zod_1.z.object({
|
|
|
11813
11941
|
* List all grants issued for an entitlement. The entitlement can be defined either by its id or featureKey.
|
|
11814
11942
|
* @summary List customer entitlement grants
|
|
11815
11943
|
*/
|
|
11944
|
+
exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11945
|
+
exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11816
11946
|
exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
11817
|
-
exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
11947
|
+
exports.listCustomerEntitlementGrantsV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11818
11948
|
exports.listCustomerEntitlementGrantsV2Params = zod_1.z.object({
|
|
11819
11949
|
customerIdOrKey: zod_1.z.union([
|
|
11820
11950
|
zod_1.z.coerce
|
|
11821
11951
|
.string()
|
|
11822
|
-
.regex(listCustomerEntitlementGrantsV2PathCustomerIdOrKeyRegExpOne)
|
|
11952
|
+
.regex(exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyRegExpOne)
|
|
11823
11953
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11824
11954
|
zod_1.z.coerce
|
|
11825
11955
|
.string()
|
|
11826
11956
|
.min(1)
|
|
11827
|
-
.max(listCustomerEntitlementGrantsV2PathCustomerIdOrKeyMaxTwo)
|
|
11957
|
+
.max(exports.listCustomerEntitlementGrantsV2PathCustomerIdOrKeyMaxTwo)
|
|
11828
11958
|
.describe('ExternalKey is a looser version of key.'),
|
|
11829
11959
|
]),
|
|
11830
11960
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -11885,18 +12015,20 @@ Rollover settings define what happens to the remaining balance of a grant at a r
|
|
|
11885
12015
|
Grants cannot be changed once created, only deleted. This is to ensure that balance is deterministic regardless of when it is queried.
|
|
11886
12016
|
* @summary Create customer entitlement grant
|
|
11887
12017
|
*/
|
|
12018
|
+
exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12019
|
+
exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11888
12020
|
exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
11889
|
-
exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
12021
|
+
exports.createCustomerEntitlementGrantV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11890
12022
|
exports.createCustomerEntitlementGrantV2Params = zod_1.z.object({
|
|
11891
12023
|
customerIdOrKey: zod_1.z.union([
|
|
11892
12024
|
zod_1.z.coerce
|
|
11893
12025
|
.string()
|
|
11894
|
-
.regex(createCustomerEntitlementGrantV2PathCustomerIdOrKeyRegExpOne)
|
|
12026
|
+
.regex(exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyRegExpOne)
|
|
11895
12027
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11896
12028
|
zod_1.z.coerce
|
|
11897
12029
|
.string()
|
|
11898
12030
|
.min(1)
|
|
11899
|
-
.max(createCustomerEntitlementGrantV2PathCustomerIdOrKeyMaxTwo)
|
|
12031
|
+
.max(exports.createCustomerEntitlementGrantV2PathCustomerIdOrKeyMaxTwo)
|
|
11900
12032
|
.describe('ExternalKey is a looser version of key.'),
|
|
11901
12033
|
]),
|
|
11902
12034
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -11907,15 +12039,20 @@ exports.createCustomerEntitlementGrantV2Params = zod_1.z.object({
|
|
|
11907
12039
|
});
|
|
11908
12040
|
exports.createCustomerEntitlementGrantV2BodyAmountMin = 0;
|
|
11909
12041
|
exports.createCustomerEntitlementGrantV2BodyPriorityMax = 255;
|
|
11910
|
-
exports.createCustomerEntitlementGrantV2BodyExpirationCountMax = 1000;
|
|
11911
|
-
exports.createCustomerEntitlementGrantV2BodyMaxRolloverAmountDefault = 0;
|
|
11912
12042
|
exports.createCustomerEntitlementGrantV2BodyMinRolloverAmountDefault = 0;
|
|
12043
|
+
exports.createCustomerEntitlementGrantV2BodyRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
12044
|
+
exports.createCustomerEntitlementGrantV2BodyExpirationCountMax = 1000;
|
|
11913
12045
|
exports.createCustomerEntitlementGrantV2Body = zod_1.z
|
|
11914
12046
|
.object({
|
|
11915
12047
|
amount: zod_1.z.coerce
|
|
11916
12048
|
.number()
|
|
11917
12049
|
.min(exports.createCustomerEntitlementGrantV2BodyAmountMin)
|
|
11918
12050
|
.describe('The amount to grant. Should be a positive number.'),
|
|
12051
|
+
annotations: zod_1.z
|
|
12052
|
+
.record(zod_1.z.string(), zod_1.z.any())
|
|
12053
|
+
.describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
|
|
12054
|
+
.optional()
|
|
12055
|
+
.describe('Grant annotations'),
|
|
11919
12056
|
effectiveAt: zod_1.z.coerce
|
|
11920
12057
|
.date()
|
|
11921
12058
|
.describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
|
|
@@ -11932,11 +12069,12 @@ exports.createCustomerEntitlementGrantV2Body = zod_1.z
|
|
|
11932
12069
|
.describe('The unit of time for the expiration period.'),
|
|
11933
12070
|
})
|
|
11934
12071
|
.describe('The grant expiration definition')
|
|
11935
|
-
.
|
|
12072
|
+
.optional()
|
|
12073
|
+
.describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
|
|
11936
12074
|
maxRolloverAmount: zod_1.z.coerce
|
|
11937
12075
|
.number()
|
|
11938
12076
|
.optional()
|
|
11939
|
-
.describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
|
|
12077
|
+
.describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
|
|
11940
12078
|
metadata: zod_1.z
|
|
11941
12079
|
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
11942
12080
|
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
@@ -11962,7 +12100,7 @@ exports.createCustomerEntitlementGrantV2Body = zod_1.z
|
|
|
11962
12100
|
.union([
|
|
11963
12101
|
zod_1.z.coerce
|
|
11964
12102
|
.string()
|
|
11965
|
-
.regex(createCustomerEntitlementGrantV2BodyRecurrenceIntervalRegExpTwo),
|
|
12103
|
+
.regex(exports.createCustomerEntitlementGrantV2BodyRecurrenceIntervalRegExpTwo),
|
|
11966
12104
|
zod_1.z
|
|
11967
12105
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
11968
12106
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -11983,18 +12121,20 @@ BurndownHistory returns a continous history of segments, where the segments are
|
|
|
11983
12121
|
WindowedHistory returns windowed usage data for the period enriched with balance information and the list of grants that were being burnt down in that window.
|
|
11984
12122
|
* @summary Get customer entitlement history
|
|
11985
12123
|
*/
|
|
12124
|
+
exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12125
|
+
exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
11986
12126
|
exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
11987
|
-
exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
12127
|
+
exports.getCustomerEntitlementHistoryV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
11988
12128
|
exports.getCustomerEntitlementHistoryV2Params = zod_1.z.object({
|
|
11989
12129
|
customerIdOrKey: zod_1.z.union([
|
|
11990
12130
|
zod_1.z.coerce
|
|
11991
12131
|
.string()
|
|
11992
|
-
.regex(getCustomerEntitlementHistoryV2PathCustomerIdOrKeyRegExpOne)
|
|
12132
|
+
.regex(exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyRegExpOne)
|
|
11993
12133
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
11994
12134
|
zod_1.z.coerce
|
|
11995
12135
|
.string()
|
|
11996
12136
|
.min(1)
|
|
11997
|
-
.max(getCustomerEntitlementHistoryV2PathCustomerIdOrKeyMaxTwo)
|
|
12137
|
+
.max(exports.getCustomerEntitlementHistoryV2PathCustomerIdOrKeyMaxTwo)
|
|
11998
12138
|
.describe('ExternalKey is a looser version of key.'),
|
|
11999
12139
|
]),
|
|
12000
12140
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -12027,45 +12167,59 @@ exports.getCustomerEntitlementHistoryV2QueryParams = zod_1.z.object({
|
|
|
12027
12167
|
This endpoint is useful for upgrades, downgrades, or other changes to entitlements that require a new entitlement to be created with zero downtime.
|
|
12028
12168
|
* @summary Override customer entitlement
|
|
12029
12169
|
*/
|
|
12170
|
+
exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12171
|
+
exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
12172
|
+
exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12173
|
+
exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMaxTwo = 256;
|
|
12030
12174
|
exports.overrideCustomerEntitlementV2Params = zod_1.z.object({
|
|
12031
12175
|
customerIdOrKey: zod_1.z.union([
|
|
12032
12176
|
zod_1.z.coerce
|
|
12033
12177
|
.string()
|
|
12034
|
-
.regex(overrideCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
12178
|
+
.regex(exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyRegExpOne)
|
|
12035
12179
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
12036
12180
|
zod_1.z.coerce
|
|
12037
12181
|
.string()
|
|
12038
12182
|
.min(1)
|
|
12039
|
-
.max(overrideCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
12183
|
+
.max(exports.overrideCustomerEntitlementV2PathCustomerIdOrKeyMaxTwo)
|
|
12040
12184
|
.describe('ExternalKey is a looser version of key.'),
|
|
12041
12185
|
]),
|
|
12042
12186
|
entitlementIdOrFeatureKey: zod_1.z.union([
|
|
12043
12187
|
zod_1.z.coerce
|
|
12044
12188
|
.string()
|
|
12045
|
-
.regex(overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExpOne)
|
|
12189
|
+
.regex(exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyRegExpOne)
|
|
12046
12190
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
12047
12191
|
zod_1.z.coerce
|
|
12048
12192
|
.string()
|
|
12049
12193
|
.min(1)
|
|
12050
|
-
.max(overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMaxTwo)
|
|
12194
|
+
.max(exports.overrideCustomerEntitlementV2PathEntitlementIdOrFeatureKeyMaxTwo)
|
|
12051
12195
|
.describe('ExternalKey is a looser version of key.'),
|
|
12052
12196
|
]),
|
|
12053
12197
|
});
|
|
12054
12198
|
exports.overrideCustomerEntitlementV2BodyFeatureKeyMax = 64;
|
|
12055
|
-
exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExp =
|
|
12056
|
-
exports.overrideCustomerEntitlementV2BodyFeatureIdRegExp =
|
|
12199
|
+
exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
12200
|
+
exports.overrideCustomerEntitlementV2BodyFeatureIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12057
12201
|
exports.overrideCustomerEntitlementV2BodyIsSoftLimitDefault = false;
|
|
12058
|
-
exports.
|
|
12202
|
+
exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
12203
|
+
exports.overrideCustomerEntitlementV2BodyPreserveOverageAtResetDefault = false;
|
|
12059
12204
|
exports.overrideCustomerEntitlementV2BodyIssueAfterResetMin = 0;
|
|
12060
12205
|
exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault = 1;
|
|
12061
12206
|
exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax = 255;
|
|
12062
|
-
exports.
|
|
12207
|
+
exports.overrideCustomerEntitlementV2BodyIssueAmountMin = 0;
|
|
12208
|
+
exports.overrideCustomerEntitlementV2BodyIssuePriorityDefault = 1;
|
|
12209
|
+
exports.overrideCustomerEntitlementV2BodyIssuePriorityMax = 255;
|
|
12210
|
+
exports.overrideCustomerEntitlementV2BodyGrantsItemAmountMin = 0;
|
|
12211
|
+
exports.overrideCustomerEntitlementV2BodyGrantsItemPriorityMax = 255;
|
|
12212
|
+
exports.overrideCustomerEntitlementV2BodyGrantsItemMinRolloverAmountDefault = 0;
|
|
12213
|
+
exports.overrideCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
12214
|
+
exports.overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax = 1000;
|
|
12063
12215
|
exports.overrideCustomerEntitlementV2BodyFeatureKeyMaxOne = 64;
|
|
12064
|
-
exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne =
|
|
12065
|
-
exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpOne =
|
|
12216
|
+
exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpOne = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
12217
|
+
exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12218
|
+
exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
12066
12219
|
exports.overrideCustomerEntitlementV2BodyFeatureKeyMaxTwo = 64;
|
|
12067
|
-
exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo =
|
|
12068
|
-
exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo =
|
|
12220
|
+
exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExpTwo = /^[a-z0-9]+(?:_[a-z0-9]+)*$/;
|
|
12221
|
+
exports.overrideCustomerEntitlementV2BodyFeatureIdRegExpTwo = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12222
|
+
exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero = /^P(?:\d+(?:\.\d+)?Y)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?W)?(?:\d+(?:\.\d+)?D)?(?:T(?:\d+(?:\.\d+)?H)?(?:\d+(?:\.\d+)?M)?(?:\d+(?:\.\d+)?S)?)?$/;
|
|
12069
12223
|
exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
12070
12224
|
.union([
|
|
12071
12225
|
zod_1.z
|
|
@@ -12082,25 +12236,111 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12082
12236
|
.regex(exports.overrideCustomerEntitlementV2BodyFeatureKeyRegExp)
|
|
12083
12237
|
.optional()
|
|
12084
12238
|
.describe('The feature the subject is entitled to use.\nEither featureKey or featureId is required.'),
|
|
12239
|
+
grants: zod_1.z
|
|
12240
|
+
.array(zod_1.z
|
|
12241
|
+
.object({
|
|
12242
|
+
amount: zod_1.z.coerce
|
|
12243
|
+
.number()
|
|
12244
|
+
.min(exports.overrideCustomerEntitlementV2BodyGrantsItemAmountMin)
|
|
12245
|
+
.describe('The amount to grant. Should be a positive number.'),
|
|
12246
|
+
annotations: zod_1.z
|
|
12247
|
+
.record(zod_1.z.string(), zod_1.z.any())
|
|
12248
|
+
.describe('Set of key-value pairs managed by the system. Cannot be modified by user.')
|
|
12249
|
+
.optional()
|
|
12250
|
+
.describe('Grant annotations'),
|
|
12251
|
+
effectiveAt: zod_1.z.coerce
|
|
12252
|
+
.date()
|
|
12253
|
+
.describe('Effective date for grants and anchor for recurring grants. Provided value will be ceiled to metering windowSize (minute).'),
|
|
12254
|
+
expiration: zod_1.z
|
|
12255
|
+
.object({
|
|
12256
|
+
count: zod_1.z.coerce
|
|
12257
|
+
.number()
|
|
12258
|
+
.min(1)
|
|
12259
|
+
.max(exports.overrideCustomerEntitlementV2BodyGrantsItemExpirationCountMax)
|
|
12260
|
+
.describe('The number of time units in the expiration period.'),
|
|
12261
|
+
duration: zod_1.z
|
|
12262
|
+
.enum(['HOUR', 'DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
12263
|
+
.describe('The expiration duration enum')
|
|
12264
|
+
.describe('The unit of time for the expiration period.'),
|
|
12265
|
+
})
|
|
12266
|
+
.describe('The grant expiration definition')
|
|
12267
|
+
.optional()
|
|
12268
|
+
.describe('The grant expiration definition. If no expiration is provided, the grant can be active indefinitely.'),
|
|
12269
|
+
maxRolloverAmount: zod_1.z.coerce
|
|
12270
|
+
.number()
|
|
12271
|
+
.optional()
|
|
12272
|
+
.describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset. The default value equals grant amount.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
|
|
12273
|
+
metadata: zod_1.z
|
|
12274
|
+
.record(zod_1.z.string(), zod_1.z.coerce.string())
|
|
12275
|
+
.describe('Set of key-value pairs.\nMetadata can be used to store additional information about a resource.')
|
|
12276
|
+
.optional()
|
|
12277
|
+
.describe('The grant metadata.'),
|
|
12278
|
+
minRolloverAmount: zod_1.z.coerce
|
|
12279
|
+
.number()
|
|
12280
|
+
.optional()
|
|
12281
|
+
.describe('Grants are rolled over at reset, after which they can have a different balance compared to what they had before the reset.\nBalance after the reset is calculated as: Balance_After_Reset = MIN(MaxRolloverAmount, MAX(Balance_Before_Reset, MinRolloverAmount))'),
|
|
12282
|
+
priority: zod_1.z.coerce
|
|
12283
|
+
.number()
|
|
12284
|
+
.min(1)
|
|
12285
|
+
.max(exports.overrideCustomerEntitlementV2BodyGrantsItemPriorityMax)
|
|
12286
|
+
.optional()
|
|
12287
|
+
.describe('The priority of the grant. Grants with higher priority are applied first.\nPriority is a positive decimal numbers. With lower numbers indicating higher importance.\nFor example, a priority of 1 is more urgent than a priority of 2.\nWhen there are several grants available for the same subject, the system selects the grant with the highest priority.\nIn cases where grants share the same priority level, the grant closest to its expiration will be used first.\nIn the case of two grants have identical priorities and expiration dates, the system will use the grant that was created first.'),
|
|
12288
|
+
recurrence: zod_1.z
|
|
12289
|
+
.object({
|
|
12290
|
+
anchor: zod_1.z.coerce
|
|
12291
|
+
.date()
|
|
12292
|
+
.optional()
|
|
12293
|
+
.describe('A date-time anchor to base the recurring period on.'),
|
|
12294
|
+
interval: zod_1.z
|
|
12295
|
+
.union([
|
|
12296
|
+
zod_1.z.coerce
|
|
12297
|
+
.string()
|
|
12298
|
+
.regex(exports.overrideCustomerEntitlementV2BodyGrantsItemRecurrenceIntervalRegExpTwo),
|
|
12299
|
+
zod_1.z
|
|
12300
|
+
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
12301
|
+
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
12302
|
+
])
|
|
12303
|
+
.describe('Period duration for the recurrence')
|
|
12304
|
+
.describe('The unit of time for the interval.'),
|
|
12305
|
+
})
|
|
12306
|
+
.describe('Recurring period with an interval and an anchor.')
|
|
12307
|
+
.optional()
|
|
12308
|
+
.describe('The subject of the grant.'),
|
|
12309
|
+
})
|
|
12310
|
+
.describe('The grant creation input.'))
|
|
12311
|
+
.optional()
|
|
12312
|
+
.describe('Grants'),
|
|
12085
12313
|
isSoftLimit: zod_1.z.coerce
|
|
12086
12314
|
.boolean()
|
|
12087
12315
|
.optional()
|
|
12088
12316
|
.describe('If softLimit=true the subject can use the feature even if the entitlement is exhausted, hasAccess will always be true.'),
|
|
12317
|
+
issue: zod_1.z
|
|
12318
|
+
.object({
|
|
12319
|
+
amount: zod_1.z.coerce
|
|
12320
|
+
.number()
|
|
12321
|
+
.min(exports.overrideCustomerEntitlementV2BodyIssueAmountMin)
|
|
12322
|
+
.describe('The initial grant amount'),
|
|
12323
|
+
priority: zod_1.z.coerce
|
|
12324
|
+
.number()
|
|
12325
|
+
.min(1)
|
|
12326
|
+
.max(exports.overrideCustomerEntitlementV2BodyIssuePriorityMax)
|
|
12327
|
+
.default(exports.overrideCustomerEntitlementV2BodyIssuePriorityDefault)
|
|
12328
|
+
.describe('The priority of the issue after reset'),
|
|
12329
|
+
})
|
|
12330
|
+
.describe('Issue after reset')
|
|
12331
|
+
.optional()
|
|
12332
|
+
.describe('Issue after reset'),
|
|
12089
12333
|
issueAfterReset: zod_1.z.coerce
|
|
12090
12334
|
.number()
|
|
12091
12335
|
.min(exports.overrideCustomerEntitlementV2BodyIssueAfterResetMin)
|
|
12092
12336
|
.optional()
|
|
12093
|
-
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the
|
|
12337
|
+
.describe('You can grant usage automatically alongside the entitlement, the example scenario would be creating a starting balance.\nIf an amount is specified here, a grant will be created alongside the entitlement with the specified amount.\nThat grant will have it\'s rollover settings configured in a way that after each reset operation, the balance will return the original amount specified here.\nManually creating such a grant would mean having the "amount", "minRolloverAmount", and "maxRolloverAmount" fields all be the same.'),
|
|
12094
12338
|
issueAfterResetPriority: zod_1.z.coerce
|
|
12095
12339
|
.number()
|
|
12096
12340
|
.min(1)
|
|
12097
12341
|
.max(exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityMax)
|
|
12098
12342
|
.default(exports.overrideCustomerEntitlementV2BodyIssueAfterResetPriorityDefault)
|
|
12099
12343
|
.describe('Defines the grant priority for the default grant.'),
|
|
12100
|
-
isUnlimited: zod_1.z.coerce
|
|
12101
|
-
.boolean()
|
|
12102
|
-
.optional()
|
|
12103
|
-
.describe('Deprecated, ignored by the backend. Please use isSoftLimit instead; this field will be removed in the future.'),
|
|
12104
12344
|
measureUsageFrom: zod_1.z
|
|
12105
12345
|
.union([
|
|
12106
12346
|
zod_1.z
|
|
@@ -12133,7 +12373,7 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12133
12373
|
.union([
|
|
12134
12374
|
zod_1.z.coerce
|
|
12135
12375
|
.string()
|
|
12136
|
-
.regex(overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo),
|
|
12376
|
+
.regex(exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpTwo),
|
|
12137
12377
|
zod_1.z
|
|
12138
12378
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
12139
12379
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -12144,7 +12384,7 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12144
12384
|
.describe('Recurring period with an interval and an anchor.')
|
|
12145
12385
|
.describe('The usage period associated with the entitlement.'),
|
|
12146
12386
|
})
|
|
12147
|
-
.describe('Create
|
|
12387
|
+
.describe('Create inputs for metered entitlement'),
|
|
12148
12388
|
zod_1.z
|
|
12149
12389
|
.object({
|
|
12150
12390
|
config: zod_1.z.coerce
|
|
@@ -12178,7 +12418,7 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12178
12418
|
.union([
|
|
12179
12419
|
zod_1.z.coerce
|
|
12180
12420
|
.string()
|
|
12181
|
-
.regex(overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix),
|
|
12421
|
+
.regex(exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpSix),
|
|
12182
12422
|
zod_1.z
|
|
12183
12423
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
12184
12424
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -12221,7 +12461,7 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12221
12461
|
.union([
|
|
12222
12462
|
zod_1.z.coerce
|
|
12223
12463
|
.string()
|
|
12224
|
-
.regex(overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero),
|
|
12464
|
+
.regex(exports.overrideCustomerEntitlementV2BodyUsagePeriodIntervalRegExpOnezero),
|
|
12225
12465
|
zod_1.z
|
|
12226
12466
|
.enum(['DAY', 'WEEK', 'MONTH', 'YEAR'])
|
|
12227
12467
|
.describe('The unit of time for the interval.\nOne of: `day`, `week`, `month`, or `year`.'),
|
|
@@ -12242,18 +12482,20 @@ exports.overrideCustomerEntitlementV2Body = zod_1.z
|
|
|
12242
12482
|
Usage is automatically reset for metered entitlements based on their usage period, but this endpoint allows to manually reset it at any time. When doing so the period anchor of the entitlement can be changed if needed.
|
|
12243
12483
|
* @summary Reset customer entitlement
|
|
12244
12484
|
*/
|
|
12485
|
+
exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12486
|
+
exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
12245
12487
|
exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
12246
|
-
exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
12488
|
+
exports.resetCustomerEntitlementUsageV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12247
12489
|
exports.resetCustomerEntitlementUsageV2Params = zod_1.z.object({
|
|
12248
12490
|
customerIdOrKey: zod_1.z.union([
|
|
12249
12491
|
zod_1.z.coerce
|
|
12250
12492
|
.string()
|
|
12251
|
-
.regex(resetCustomerEntitlementUsageV2PathCustomerIdOrKeyRegExpOne)
|
|
12493
|
+
.regex(exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyRegExpOne)
|
|
12252
12494
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
12253
12495
|
zod_1.z.coerce
|
|
12254
12496
|
.string()
|
|
12255
12497
|
.min(1)
|
|
12256
|
-
.max(resetCustomerEntitlementUsageV2PathCustomerIdOrKeyMaxTwo)
|
|
12498
|
+
.max(exports.resetCustomerEntitlementUsageV2PathCustomerIdOrKeyMaxTwo)
|
|
12257
12499
|
.describe('ExternalKey is a looser version of key.'),
|
|
12258
12500
|
]),
|
|
12259
12501
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -12282,18 +12524,20 @@ exports.resetCustomerEntitlementUsageV2Body = zod_1.z
|
|
|
12282
12524
|
* Checks customer access to a given feature (by key). All entitlement types share the hasAccess property in their value response, but multiple other properties are returned based on the entitlement type.
|
|
12283
12525
|
* @summary Get customer entitlement value
|
|
12284
12526
|
*/
|
|
12527
|
+
exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12528
|
+
exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyMaxTwo = 256;
|
|
12285
12529
|
exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyMax = 64;
|
|
12286
|
-
exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp =
|
|
12530
|
+
exports.getCustomerEntitlementValueV2PathEntitlementIdOrFeatureKeyRegExp = /^[a-z0-9]+(?:_[a-z0-9]+)*$|^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12287
12531
|
exports.getCustomerEntitlementValueV2Params = zod_1.z.object({
|
|
12288
12532
|
customerIdOrKey: zod_1.z.union([
|
|
12289
12533
|
zod_1.z.coerce
|
|
12290
12534
|
.string()
|
|
12291
|
-
.regex(getCustomerEntitlementValueV2PathCustomerIdOrKeyRegExpOne)
|
|
12535
|
+
.regex(exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyRegExpOne)
|
|
12292
12536
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
12293
12537
|
zod_1.z.coerce
|
|
12294
12538
|
.string()
|
|
12295
12539
|
.min(1)
|
|
12296
|
-
.max(getCustomerEntitlementValueV2PathCustomerIdOrKeyMaxTwo)
|
|
12540
|
+
.max(exports.getCustomerEntitlementValueV2PathCustomerIdOrKeyMaxTwo)
|
|
12297
12541
|
.describe('ExternalKey is a looser version of key.'),
|
|
12298
12542
|
]),
|
|
12299
12543
|
entitlementIdOrFeatureKey: zod_1.z.coerce
|
|
@@ -12373,7 +12617,7 @@ exports.listEntitlementsV2QueryParams = zod_1.z.object({
|
|
|
12373
12617
|
* Get entitlement by id.
|
|
12374
12618
|
* @summary Get entitlement by id
|
|
12375
12619
|
*/
|
|
12376
|
-
exports.getEntitlementByIdV2PathEntitlementIdRegExp =
|
|
12620
|
+
exports.getEntitlementByIdV2PathEntitlementIdRegExp = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12377
12621
|
exports.getEntitlementByIdV2Params = zod_1.z.object({
|
|
12378
12622
|
entitlementId: zod_1.z.coerce
|
|
12379
12623
|
.string()
|
|
@@ -12410,6 +12654,8 @@ To fetch the grants of a specific entitlement please use the /api/v2/customers/{
|
|
|
12410
12654
|
If page is provided that takes precedence and the paginated response is returned.
|
|
12411
12655
|
* @summary List grants
|
|
12412
12656
|
*/
|
|
12657
|
+
exports.listGrantsV2QueryCustomerItemRegExpOne = /^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/;
|
|
12658
|
+
exports.listGrantsV2QueryCustomerItemMaxTwo = 256;
|
|
12413
12659
|
exports.listGrantsV2QueryIncludeDeletedDefault = false;
|
|
12414
12660
|
exports.listGrantsV2QueryPageDefault = 1;
|
|
12415
12661
|
exports.listGrantsV2QueryPageSizeDefault = 100;
|
|
@@ -12424,12 +12670,12 @@ exports.listGrantsV2QueryParams = zod_1.z.object({
|
|
|
12424
12670
|
.union([
|
|
12425
12671
|
zod_1.z.coerce
|
|
12426
12672
|
.string()
|
|
12427
|
-
.regex(listGrantsV2QueryCustomerItemRegExpOne)
|
|
12673
|
+
.regex(exports.listGrantsV2QueryCustomerItemRegExpOne)
|
|
12428
12674
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier).'),
|
|
12429
12675
|
zod_1.z.coerce
|
|
12430
12676
|
.string()
|
|
12431
12677
|
.min(1)
|
|
12432
|
-
.max(listGrantsV2QueryCustomerItemMaxTwo)
|
|
12678
|
+
.max(exports.listGrantsV2QueryCustomerItemMaxTwo)
|
|
12433
12679
|
.describe('ExternalKey is a looser version of key.'),
|
|
12434
12680
|
])
|
|
12435
12681
|
.describe('ULID (Universally Unique Lexicographically Sortable Identifier) or external unique key.'))
|