@flexprice/sdk 2.1.11 → 2.1.18
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/docs/sdk/models/attributed-to-customer-result.md +17 -0
- package/docs/sdk/models/bucket-summary.md +26 -0
- package/docs/sdk/models/bucket.md +16 -0
- package/docs/sdk/models/cancel-subscription-request.md +7 -7
- package/docs/sdk/models/changed-subscription.md +7 -5
- package/docs/sdk/models/commitment-bucket-request.md +22 -0
- package/docs/sdk/models/coupon-response.md +1 -0
- package/docs/sdk/models/coupon.md +1 -0
- package/docs/sdk/models/create-coupon-request.md +1 -0
- package/docs/sdk/models/create-invoice-line-item-request.md +25 -22
- package/docs/sdk/models/create-subscription-line-item-request.md +1 -0
- package/docs/sdk/models/create-subscription-request.md +3 -2
- package/docs/sdk/models/create-tax-association-request.md +12 -10
- package/docs/sdk/models/create-user-request.md +1 -0
- package/docs/sdk/models/create-user-response.md +2 -0
- package/docs/sdk/models/debug-tracker-status.md +2 -2
- package/docs/sdk/models/debug-tracker.md +1 -0
- package/docs/sdk/models/delete-service-account-request.md +17 -0
- package/docs/sdk/models/delink-integration-mapping-request.md +21 -0
- package/docs/sdk/models/entity-integration-mapping-response.md +1 -0
- package/docs/sdk/models/entity-sync-config.md +16 -0
- package/docs/sdk/models/execute-subscription-modify-request-request.md +1 -1
- package/docs/sdk/models/execute-subscription-modify-request.md +4 -1
- package/docs/sdk/models/failure-point-type.md +1 -1
- package/docs/sdk/models/get-coupon-association-request.md +17 -0
- package/docs/sdk/models/get-entity-integration-mappings-request.md +19 -0
- package/docs/sdk/models/get-usage-analytics-request.md +13 -12
- package/docs/sdk/models/inheritance-action.md +15 -0
- package/docs/sdk/models/integration-config-entry.md +17 -0
- package/docs/sdk/models/integration-config-response.md +15 -0
- package/docs/sdk/models/invoice-billing-reason.md +1 -1
- package/docs/sdk/models/invoice-filter.md +2 -0
- package/docs/sdk/models/invoice-line-item-response.md +38 -36
- package/docs/sdk/models/invoice-sync-settings.md +15 -0
- package/docs/sdk/models/line-item-commitment-config.md +10 -9
- package/docs/sdk/models/list-coupon-associations-request.md +19 -0
- package/docs/sdk/models/list-coupon-associations-response.md +16 -0
- package/docs/sdk/models/list-entity-integration-mappings-response.md +16 -0
- package/docs/sdk/models/meter-usage-attribution.md +17 -0
- package/docs/sdk/models/payment-gateway-type.md +1 -1
- package/docs/sdk/models/preview-subscription-modify-request.md +1 -1
- package/docs/sdk/models/price-filter.md +1 -0
- package/docs/sdk/models/price-price.md +43 -42
- package/docs/sdk/models/price-response.md +48 -47
- package/docs/sdk/models/s3-export-config.md +20 -0
- package/docs/sdk/models/secret-provider.md +1 -1
- package/docs/sdk/models/sub-modify-coupon-action.md +15 -0
- package/docs/sdk/models/sub-modify-coupon-params.md +24 -0
- package/docs/sdk/models/sub-modify-inheritance-request.md +5 -3
- package/docs/sdk/models/sub-modify-tax-action.md +15 -0
- package/docs/sdk/models/sub-modify-tax-params.md +20 -0
- package/docs/sdk/models/sub-modify-trial-end-request.md +18 -0
- package/docs/sdk/models/subscription-coupon-input.md +20 -0
- package/docs/sdk/models/subscription-line-item-response.md +1 -0
- package/docs/sdk/models/subscription-modify-type.md +2 -2
- package/docs/sdk/models/subscription-phase-create-request.md +4 -3
- package/docs/sdk/models/subscription-response-v2.md +2 -0
- package/docs/sdk/models/subscription-response.md +1 -0
- package/docs/sdk/models/subscription-subscription-line-item.md +1 -0
- package/docs/sdk/models/sync-config.md +23 -0
- package/docs/sdk/models/tax-association-response.md +2 -0
- package/docs/sdk/models/time-of-day-bucket.md +22 -0
- package/docs/sdk/models/trial-end-action.md +15 -0
- package/docs/sdk/models/update-service-account-request-request.md +21 -0
- package/docs/sdk/models/update-service-account-request.md +17 -0
- package/docs/sdk/models/update-service-account-response.md +21 -0
- package/docs/sdk/models/update-subscription-line-item-request.md +17 -16
- package/docs/sdk/models/update-user-request.md +16 -0
- package/docs/sdk/models/update-user-response.md +21 -0
- package/docs/sdk/models/usage-analytic-item.md +34 -33
- package/docs/sdk/models/usage-analytic-point.md +11 -9
- package/docs/sdk/models/user-response.md +2 -0
- package/docs/sdk/models/window-size.md +2 -2
- package/docs/sdks/couponassociations/README.md +150 -0
- package/docs/sdks/integrations/README.md +223 -0
- package/docs/sdks/subscriptions/README.md +4 -4
- package/docs/sdks/users/README.md +221 -0
- package/esm/funcs/coupon-associations-get-coupon-association.d.ts +17 -0
- package/esm/funcs/coupon-associations-get-coupon-association.d.ts.map +1 -0
- package/esm/funcs/coupon-associations-get-coupon-association.js +91 -0
- package/esm/funcs/coupon-associations-get-coupon-association.js.map +1 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.d.ts +17 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.d.ts.map +1 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.js +91 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.js.map +1 -0
- package/esm/funcs/integrations-delink-integration-mapping.d.ts +17 -0
- package/esm/funcs/integrations-delink-integration-mapping.d.ts.map +1 -0
- package/esm/funcs/integrations-delink-integration-mapping.js +83 -0
- package/esm/funcs/integrations-delink-integration-mapping.js.map +1 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.d.ts +17 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.d.ts.map +1 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.js +91 -0
- package/esm/funcs/integrations-get-entity-integration-mappings.js.map +1 -0
- package/esm/funcs/integrations-get-integration-config.d.ts +17 -0
- package/esm/funcs/integrations-get-integration-config.d.ts.map +1 -0
- package/esm/funcs/integrations-get-integration-config.js +72 -0
- package/esm/funcs/integrations-get-integration-config.js.map +1 -0
- package/esm/funcs/subscriptions-execute-subscription-modify.d.ts +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.js +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.d.ts +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.js +1 -1
- package/esm/funcs/users-delete-service-account.d.ts +17 -0
- package/esm/funcs/users-delete-service-account.d.ts.map +1 -0
- package/esm/funcs/users-delete-service-account.js +91 -0
- package/esm/funcs/users-delete-service-account.js.map +1 -0
- package/esm/funcs/users-update-service-account.d.ts +17 -0
- package/esm/funcs/users-update-service-account.d.ts.map +1 -0
- package/esm/funcs/users-update-service-account.js +93 -0
- package/esm/funcs/users-update-service-account.js.map +1 -0
- package/esm/funcs/users-update-user.d.ts +17 -0
- package/esm/funcs/users-update-user.d.ts.map +1 -0
- package/esm/funcs/users-update-user.js +83 -0
- package/esm/funcs/users-update-user.js.map +1 -0
- package/esm/hooks/types.d.ts +1 -0
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.js +1 -1
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/matchers.js +1 -1
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +50 -16
- package/esm/lib/sdks.js.map +1 -1
- package/esm/sdk/coupon-associations.d.ts +19 -0
- package/esm/sdk/coupon-associations.d.ts.map +1 -0
- package/esm/sdk/coupon-associations.js +28 -0
- package/esm/sdk/coupon-associations.js.map +1 -0
- package/esm/sdk/integrations.d.ts +21 -0
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +30 -0
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/models/attributed-to-customer-result.d.ts +15 -0
- package/esm/sdk/models/attributed-to-customer-result.d.ts.map +1 -0
- package/esm/sdk/models/attributed-to-customer-result.js +24 -0
- package/esm/sdk/models/attributed-to-customer-result.js.map +1 -0
- package/esm/sdk/models/bucket-summary.d.ts +31 -0
- package/esm/sdk/models/bucket-summary.d.ts.map +1 -0
- package/esm/sdk/models/bucket-summary.js +40 -0
- package/esm/sdk/models/bucket-summary.js.map +1 -0
- package/esm/sdk/models/bucket.d.ts +19 -0
- package/esm/sdk/models/bucket.d.ts.map +1 -0
- package/esm/sdk/models/bucket.js +24 -0
- package/esm/sdk/models/bucket.js.map +1 -0
- package/esm/sdk/models/cancel-subscription-request.d.ts +8 -0
- package/esm/sdk/models/cancel-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/cancel-subscription-request.js.map +1 -1
- package/esm/sdk/models/changed-subscription.d.ts +2 -0
- package/esm/sdk/models/changed-subscription.d.ts.map +1 -1
- package/esm/sdk/models/changed-subscription.js +10 -2
- package/esm/sdk/models/changed-subscription.js.map +1 -1
- package/esm/sdk/models/commitment-bucket-request.d.ts +29 -0
- package/esm/sdk/models/commitment-bucket-request.d.ts.map +1 -0
- package/esm/sdk/models/commitment-bucket-request.js +30 -0
- package/esm/sdk/models/commitment-bucket-request.js.map +1 -0
- package/esm/sdk/models/coupon-response.d.ts +1 -0
- package/esm/sdk/models/coupon-response.d.ts.map +1 -1
- package/esm/sdk/models/coupon-response.js +2 -0
- package/esm/sdk/models/coupon-response.js.map +1 -1
- package/esm/sdk/models/coupon.d.ts +1 -0
- package/esm/sdk/models/coupon.d.ts.map +1 -1
- package/esm/sdk/models/coupon.js +2 -0
- package/esm/sdk/models/coupon.js.map +1 -1
- package/esm/sdk/models/create-coupon-request.d.ts +2 -0
- package/esm/sdk/models/create-coupon-request.d.ts.map +1 -1
- package/esm/sdk/models/create-coupon-request.js +2 -0
- package/esm/sdk/models/create-coupon-request.js.map +1 -1
- package/esm/sdk/models/create-invoice-line-item-request.d.ts +18 -0
- package/esm/sdk/models/create-invoice-line-item-request.d.ts.map +1 -1
- package/esm/sdk/models/create-invoice-line-item-request.js +6 -0
- package/esm/sdk/models/create-invoice-line-item-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-line-item-request.d.ts +3 -0
- package/esm/sdk/models/create-subscription-line-item-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-line-item-request.js +3 -0
- package/esm/sdk/models/create-subscription-line-item-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-request.d.ts +15 -0
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +3 -0
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/create-tax-association-request.d.ts +10 -0
- package/esm/sdk/models/create-tax-association-request.d.ts.map +1 -1
- package/esm/sdk/models/create-tax-association-request.js +4 -0
- package/esm/sdk/models/create-tax-association-request.js.map +1 -1
- package/esm/sdk/models/create-user-request.d.ts +5 -0
- package/esm/sdk/models/create-user-request.d.ts.map +1 -1
- package/esm/sdk/models/create-user-request.js +1 -0
- package/esm/sdk/models/create-user-request.js.map +1 -1
- package/esm/sdk/models/create-user-response.d.ts +4 -0
- package/esm/sdk/models/create-user-response.d.ts.map +1 -1
- package/esm/sdk/models/create-user-response.js +2 -0
- package/esm/sdk/models/create-user-response.js.map +1 -1
- package/esm/sdk/models/debug-tracker-status.d.ts +2 -0
- package/esm/sdk/models/debug-tracker-status.d.ts.map +1 -1
- package/esm/sdk/models/debug-tracker-status.js +2 -0
- package/esm/sdk/models/debug-tracker-status.js.map +1 -1
- package/esm/sdk/models/debug-tracker.d.ts +2 -0
- package/esm/sdk/models/debug-tracker.d.ts.map +1 -1
- package/esm/sdk/models/debug-tracker.js +3 -0
- package/esm/sdk/models/debug-tracker.js.map +1 -1
- package/esm/sdk/models/delete-service-account-op.d.ts +15 -0
- package/esm/sdk/models/delete-service-account-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-service-account-op.js +12 -0
- package/esm/sdk/models/delete-service-account-op.js.map +1 -0
- package/esm/sdk/models/delink-integration-mapping-request.d.ts +17 -0
- package/esm/sdk/models/delink-integration-mapping-request.d.ts.map +1 -0
- package/esm/sdk/models/delink-integration-mapping-request.js +22 -0
- package/esm/sdk/models/delink-integration-mapping-request.js.map +1 -0
- package/esm/sdk/models/entity-integration-mapping-response.d.ts +3 -0
- package/esm/sdk/models/entity-integration-mapping-response.d.ts.map +1 -1
- package/esm/sdk/models/entity-integration-mapping-response.js +1 -0
- package/esm/sdk/models/entity-integration-mapping-response.js.map +1 -1
- package/esm/sdk/models/entity-sync-config.d.ts +17 -0
- package/esm/sdk/models/entity-sync-config.d.ts.map +1 -0
- package/esm/sdk/models/entity-sync-config.js +15 -0
- package/esm/sdk/models/entity-sync-config.js.map +1 -0
- package/esm/sdk/models/execute-subscription-modify-request.d.ts +9 -0
- package/esm/sdk/models/execute-subscription-modify-request.d.ts.map +1 -1
- package/esm/sdk/models/execute-subscription-modify-request.js +9 -0
- package/esm/sdk/models/execute-subscription-modify-request.js.map +1 -1
- package/esm/sdk/models/failure-point-type.d.ts +1 -0
- package/esm/sdk/models/failure-point-type.d.ts.map +1 -1
- package/esm/sdk/models/failure-point-type.js +1 -0
- package/esm/sdk/models/failure-point-type.js.map +1 -1
- package/esm/sdk/models/get-coupon-association-op.d.ts +15 -0
- package/esm/sdk/models/get-coupon-association-op.d.ts.map +1 -0
- package/esm/sdk/models/get-coupon-association-op.js +12 -0
- package/esm/sdk/models/get-coupon-association-op.js.map +1 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.d.ts +20 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.d.ts.map +1 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.js +19 -0
- package/esm/sdk/models/get-entity-integration-mappings-op.js.map +1 -0
- package/esm/sdk/models/get-usage-analytics-request.d.ts +10 -0
- package/esm/sdk/models/get-usage-analytics-request.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-analytics-request.js +2 -0
- package/esm/sdk/models/get-usage-analytics-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +32 -0
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +32 -0
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/inheritance-action.d.ts +10 -0
- package/esm/sdk/models/inheritance-action.d.ts.map +1 -0
- package/esm/sdk/models/inheritance-action.js +11 -0
- package/esm/sdk/models/inheritance-action.js.map +1 -0
- package/esm/sdk/models/integration-config-entry.d.ts +14 -0
- package/esm/sdk/models/integration-config-entry.d.ts.map +1 -0
- package/esm/sdk/models/integration-config-entry.js +24 -0
- package/esm/sdk/models/integration-config-entry.js.map +1 -0
- package/esm/sdk/models/integration-config-response.d.ts +11 -0
- package/esm/sdk/models/integration-config-response.d.ts.map +1 -0
- package/esm/sdk/models/integration-config-response.js +15 -0
- package/esm/sdk/models/integration-config-response.js.map +1 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts +1 -0
- package/esm/sdk/models/invoice-billing-reason.d.ts.map +1 -1
- package/esm/sdk/models/invoice-billing-reason.js +1 -0
- package/esm/sdk/models/invoice-billing-reason.js.map +1 -1
- package/esm/sdk/models/invoice-filter.d.ts +11 -0
- package/esm/sdk/models/invoice-filter.d.ts.map +1 -1
- package/esm/sdk/models/invoice-filter.js +4 -0
- package/esm/sdk/models/invoice-filter.js.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.d.ts +11 -0
- package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.js +4 -0
- package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.d.ts +11 -0
- package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -0
- package/esm/sdk/models/invoice-sync-settings.js +20 -0
- package/esm/sdk/models/invoice-sync-settings.js.map +1 -0
- package/esm/sdk/models/line-item-commitment-config.d.ts +11 -0
- package/esm/sdk/models/line-item-commitment-config.d.ts.map +1 -1
- package/esm/sdk/models/line-item-commitment-config.js +3 -0
- package/esm/sdk/models/line-item-commitment-config.js.map +1 -1
- package/esm/sdk/models/list-coupon-associations-op.d.ts +35 -0
- package/esm/sdk/models/list-coupon-associations-op.d.ts.map +1 -0
- package/esm/sdk/models/list-coupon-associations-op.js +23 -0
- package/esm/sdk/models/list-coupon-associations-op.js.map +1 -0
- package/esm/sdk/models/list-coupon-associations-response.d.ts +13 -0
- package/esm/sdk/models/list-coupon-associations-response.d.ts.map +1 -0
- package/esm/sdk/models/list-coupon-associations-response.js +17 -0
- package/esm/sdk/models/list-coupon-associations-response.js.map +1 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.d.ts +13 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.d.ts.map +1 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.js +17 -0
- package/esm/sdk/models/list-entity-integration-mappings-response.js.map +1 -0
- package/esm/sdk/models/meter-usage-attribution.d.ts +12 -0
- package/esm/sdk/models/meter-usage-attribution.d.ts.map +1 -0
- package/esm/sdk/models/meter-usage-attribution.js +23 -0
- package/esm/sdk/models/meter-usage-attribution.js.map +1 -0
- package/esm/sdk/models/payment-gateway-type.d.ts +1 -0
- package/esm/sdk/models/payment-gateway-type.d.ts.map +1 -1
- package/esm/sdk/models/payment-gateway-type.js +1 -0
- package/esm/sdk/models/payment-gateway-type.js.map +1 -1
- package/esm/sdk/models/price-filter.d.ts +3 -0
- package/esm/sdk/models/price-filter.d.ts.map +1 -1
- package/esm/sdk/models/price-filter.js +3 -0
- package/esm/sdk/models/price-filter.js.map +1 -1
- package/esm/sdk/models/price-price.d.ts +9 -0
- package/esm/sdk/models/price-price.d.ts.map +1 -1
- package/esm/sdk/models/price-price.js +1 -0
- package/esm/sdk/models/price-price.js.map +1 -1
- package/esm/sdk/models/price-response.d.ts +9 -0
- package/esm/sdk/models/price-response.d.ts.map +1 -1
- package/esm/sdk/models/price-response.js +1 -0
- package/esm/sdk/models/price-response.js.map +1 -1
- package/esm/sdk/models/s3-export-config.d.ts +29 -0
- package/esm/sdk/models/s3-export-config.d.ts.map +1 -0
- package/esm/sdk/models/s3-export-config.js +27 -0
- package/esm/sdk/models/s3-export-config.js.map +1 -0
- package/esm/sdk/models/secret-provider.d.ts +1 -0
- package/esm/sdk/models/secret-provider.d.ts.map +1 -1
- package/esm/sdk/models/secret-provider.js +1 -0
- package/esm/sdk/models/secret-provider.js.map +1 -1
- package/esm/sdk/models/sub-modify-coupon-action.d.ts +10 -0
- package/esm/sdk/models/sub-modify-coupon-action.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-coupon-action.js +11 -0
- package/esm/sdk/models/sub-modify-coupon-action.js.map +1 -0
- package/esm/sdk/models/sub-modify-coupon-params.d.ts +48 -0
- package/esm/sdk/models/sub-modify-coupon-params.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-coupon-params.js +31 -0
- package/esm/sdk/models/sub-modify-coupon-params.js.map +1 -0
- package/esm/sdk/models/sub-modify-inheritance-request.d.ts +11 -0
- package/esm/sdk/models/sub-modify-inheritance-request.d.ts.map +1 -1
- package/esm/sdk/models/sub-modify-inheritance-request.js +4 -0
- package/esm/sdk/models/sub-modify-inheritance-request.js.map +1 -1
- package/esm/sdk/models/sub-modify-tax-action.d.ts +10 -0
- package/esm/sdk/models/sub-modify-tax-action.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-tax-action.js +11 -0
- package/esm/sdk/models/sub-modify-tax-action.js.map +1 -0
- package/esm/sdk/models/sub-modify-tax-params.d.ts +28 -0
- package/esm/sdk/models/sub-modify-tax-params.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-tax-params.js +23 -0
- package/esm/sdk/models/sub-modify-tax-params.js.map +1 -0
- package/esm/sdk/models/sub-modify-trial-end-request.d.ts +18 -0
- package/esm/sdk/models/sub-modify-trial-end-request.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-trial-end-request.js +19 -0
- package/esm/sdk/models/sub-modify-trial-end-request.js.map +1 -0
- package/esm/sdk/models/subscription-coupon-input.d.ts +30 -0
- package/esm/sdk/models/subscription-coupon-input.d.ts.map +1 -0
- package/esm/sdk/models/subscription-coupon-input.js +23 -0
- package/esm/sdk/models/subscription-coupon-input.js.map +1 -0
- package/esm/sdk/models/subscription-line-item-response.d.ts +2 -0
- package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.js +3 -0
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-modify-type.d.ts +3 -0
- package/esm/sdk/models/subscription-modify-type.d.ts.map +1 -1
- package/esm/sdk/models/subscription-modify-type.js +3 -0
- package/esm/sdk/models/subscription-modify-type.js.map +1 -1
- package/esm/sdk/models/subscription-phase-create-request.d.ts +8 -2
- package/esm/sdk/models/subscription-phase-create-request.d.ts.map +1 -1
- package/esm/sdk/models/subscription-phase-create-request.js +3 -0
- package/esm/sdk/models/subscription-phase-create-request.js.map +1 -1
- package/esm/sdk/models/subscription-response-v2.d.ts +16 -0
- package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response-v2.js +4 -0
- package/esm/sdk/models/subscription-response-v2.js.map +1 -1
- package/esm/sdk/models/subscription-response.d.ts +8 -0
- package/esm/sdk/models/subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response.js +2 -0
- package/esm/sdk/models/subscription-response.js.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.d.ts +2 -0
- package/esm/sdk/models/subscription-subscription-line-item.d.ts.map +1 -1
- package/esm/sdk/models/subscription-subscription-line-item.js +3 -0
- package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
- package/esm/sdk/models/sync-config.d.ts +21 -0
- package/esm/sdk/models/sync-config.d.ts.map +1 -0
- package/esm/sdk/models/sync-config.js +31 -0
- package/esm/sdk/models/sync-config.js.map +1 -0
- package/esm/sdk/models/tax-association-response.d.ts +8 -0
- package/esm/sdk/models/tax-association-response.d.ts.map +1 -1
- package/esm/sdk/models/tax-association-response.js +4 -0
- package/esm/sdk/models/tax-association-response.js.map +1 -1
- package/esm/sdk/models/time-of-day-bucket.d.ts +31 -0
- package/esm/sdk/models/time-of-day-bucket.d.ts.map +1 -0
- package/esm/sdk/models/time-of-day-bucket.js +32 -0
- package/esm/sdk/models/time-of-day-bucket.js.map +1 -0
- package/esm/sdk/models/trial-end-action.d.ts +10 -0
- package/esm/sdk/models/trial-end-action.d.ts.map +1 -0
- package/esm/sdk/models/trial-end-action.js +11 -0
- package/esm/sdk/models/trial-end-action.js.map +1 -0
- package/esm/sdk/models/update-service-account-op.d.ts +21 -0
- package/esm/sdk/models/update-service-account-op.d.ts.map +1 -0
- package/esm/sdk/models/update-service-account-op.js +14 -0
- package/esm/sdk/models/update-service-account-op.js.map +1 -0
- package/esm/sdk/models/update-service-account-request.d.ts +12 -0
- package/esm/sdk/models/update-service-account-request.d.ts.map +1 -0
- package/esm/sdk/models/update-service-account-request.js +12 -0
- package/esm/sdk/models/update-service-account-request.js.map +1 -0
- package/esm/sdk/models/update-service-account-response.d.ts +23 -0
- package/esm/sdk/models/update-service-account-response.d.ts.map +1 -0
- package/esm/sdk/models/update-service-account-response.js +22 -0
- package/esm/sdk/models/update-service-account-response.js.map +1 -0
- package/esm/sdk/models/update-subscription-line-item-request.d.ts +6 -0
- package/esm/sdk/models/update-subscription-line-item-request.d.ts.map +1 -1
- package/esm/sdk/models/update-subscription-line-item-request.js +3 -0
- package/esm/sdk/models/update-subscription-line-item-request.js.map +1 -1
- package/esm/sdk/models/update-user-request.d.ts +18 -0
- package/esm/sdk/models/update-user-request.d.ts.map +1 -0
- package/esm/sdk/models/update-user-request.js +13 -0
- package/esm/sdk/models/update-user-request.js.map +1 -0
- package/esm/sdk/models/update-user-response.d.ts +23 -0
- package/esm/sdk/models/update-user-response.d.ts.map +1 -0
- package/esm/sdk/models/update-user-response.js +22 -0
- package/esm/sdk/models/update-user-response.js.map +1 -0
- package/esm/sdk/models/usage-analytic-item.d.ts +8 -0
- package/esm/sdk/models/usage-analytic-item.d.ts.map +1 -1
- package/esm/sdk/models/usage-analytic-item.js +3 -0
- package/esm/sdk/models/usage-analytic-item.js.map +1 -1
- package/esm/sdk/models/usage-analytic-point.d.ts +8 -0
- package/esm/sdk/models/usage-analytic-point.d.ts.map +1 -1
- package/esm/sdk/models/usage-analytic-point.js +4 -0
- package/esm/sdk/models/usage-analytic-point.js.map +1 -1
- package/esm/sdk/models/user-response.d.ts +4 -0
- package/esm/sdk/models/user-response.d.ts.map +1 -1
- package/esm/sdk/models/user-response.js +2 -0
- package/esm/sdk/models/user-response.js.map +1 -1
- package/esm/sdk/models/window-size.d.ts +1 -1
- package/esm/sdk/models/window-size.js +1 -1
- package/esm/sdk/models/window-size.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +5 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/subscriptions.d.ts +2 -2
- package/esm/sdk/subscriptions.js +2 -2
- package/esm/sdk/users.d.ts +21 -0
- package/esm/sdk/users.d.ts.map +1 -1
- package/esm/sdk/users.js +30 -0
- package/esm/sdk/users.js.map +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +6 -6
- package/esm/types/async.js.map +1 -1
- package/esm/types/primitives.d.ts +0 -2
- package/esm/types/primitives.d.ts.map +1 -1
- package/esm/types/primitives.js +0 -22
- package/esm/types/primitives.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/coupon-associations-get-coupon-association.ts +182 -0
- package/src/funcs/coupon-associations-list-coupon-associations.ts +188 -0
- package/src/funcs/integrations-delink-integration-mapping.ts +173 -0
- package/src/funcs/integrations-get-entity-integration-mappings.ts +186 -0
- package/src/funcs/integrations-get-integration-config.ts +152 -0
- package/src/funcs/subscriptions-execute-subscription-modify.ts +1 -1
- package/src/funcs/subscriptions-preview-subscription-modify.ts +1 -1
- package/src/funcs/users-delete-service-account.ts +182 -0
- package/src/funcs/users-update-service-account.ts +187 -0
- package/src/funcs/users-update-user.ts +172 -0
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/sdks.ts +54 -17
- package/src/sdk/coupon-associations.ts +45 -0
- package/src/sdk/integrations.ts +54 -0
- package/src/sdk/models/attributed-to-customer-result.ts +55 -0
- package/src/sdk/models/bucket-summary.ts +80 -0
- package/src/sdk/models/bucket.ts +45 -0
- package/src/sdk/models/cancel-subscription-request.ts +8 -0
- package/src/sdk/models/changed-subscription.ts +18 -5
- package/src/sdk/models/commitment-bucket-request.ts +72 -0
- package/src/sdk/models/coupon-response.ts +3 -0
- package/src/sdk/models/coupon.ts +3 -0
- package/src/sdk/models/create-coupon-request.ts +4 -0
- package/src/sdk/models/create-invoice-line-item-request.ts +24 -0
- package/src/sdk/models/create-subscription-line-item-request.ts +11 -0
- package/src/sdk/models/create-subscription-request.ts +23 -0
- package/src/sdk/models/create-tax-association-request.ts +14 -0
- package/src/sdk/models/create-user-request.ts +6 -0
- package/src/sdk/models/create-user-response.ts +4 -0
- package/src/sdk/models/debug-tracker-status.ts +2 -0
- package/src/sdk/models/debug-tracker.ts +9 -0
- package/src/sdk/models/delete-service-account-op.ts +35 -0
- package/src/sdk/models/delink-integration-mapping-request.ts +52 -0
- package/src/sdk/models/entity-integration-mapping-response.ts +2 -0
- package/src/sdk/models/entity-sync-config.ts +39 -0
- package/src/sdk/models/execute-subscription-modify-request.ts +27 -0
- package/src/sdk/models/failure-point-type.ts +1 -0
- package/src/sdk/models/get-coupon-association-op.ts +35 -0
- package/src/sdk/models/get-entity-integration-mappings-op.ts +50 -0
- package/src/sdk/models/get-usage-analytics-request.ts +12 -0
- package/src/sdk/models/index.ts +32 -0
- package/src/sdk/models/inheritance-action.ts +17 -0
- package/src/sdk/models/integration-config-entry.ts +49 -0
- package/src/sdk/models/integration-config-response.ts +35 -0
- package/src/sdk/models/invoice-billing-reason.ts +1 -0
- package/src/sdk/models/invoice-filter.ts +17 -0
- package/src/sdk/models/invoice-line-item-response.ts +15 -0
- package/src/sdk/models/invoice-sync-settings.ts +43 -0
- package/src/sdk/models/line-item-commitment-config.ts +19 -0
- package/src/sdk/models/list-coupon-associations-op.ts +69 -0
- package/src/sdk/models/list-coupon-associations-response.ts +41 -0
- package/src/sdk/models/list-entity-integration-mappings-response.ts +44 -0
- package/src/sdk/models/meter-usage-attribution.ts +45 -0
- package/src/sdk/models/payment-gateway-type.ts +1 -0
- package/src/sdk/models/price-filter.ts +8 -0
- package/src/sdk/models/price-price.ts +10 -0
- package/src/sdk/models/price-response.ts +10 -0
- package/src/sdk/models/s3-export-config.ts +70 -0
- package/src/sdk/models/secret-provider.ts +1 -0
- package/src/sdk/models/sub-modify-coupon-action.ts +17 -0
- package/src/sdk/models/sub-modify-coupon-params.ts +92 -0
- package/src/sdk/models/sub-modify-inheritance-request.ts +17 -0
- package/src/sdk/models/sub-modify-tax-action.ts +17 -0
- package/src/sdk/models/sub-modify-tax-params.ts +64 -0
- package/src/sdk/models/sub-modify-trial-end-request.ts +50 -0
- package/src/sdk/models/subscription-coupon-input.ts +62 -0
- package/src/sdk/models/subscription-line-item-response.ts +9 -0
- package/src/sdk/models/subscription-modify-type.ts +3 -0
- package/src/sdk/models/subscription-phase-create-request.ts +16 -2
- package/src/sdk/models/subscription-response-v2.ts +20 -0
- package/src/sdk/models/subscription-response.ts +10 -0
- package/src/sdk/models/subscription-subscription-line-item.ts +9 -0
- package/src/sdk/models/sync-config.ts +65 -0
- package/src/sdk/models/tax-association-response.ts +12 -0
- package/src/sdk/models/time-of-day-bucket.ts +74 -0
- package/src/sdk/models/trial-end-action.ts +17 -0
- package/src/sdk/models/update-service-account-op.ts +46 -0
- package/src/sdk/models/update-service-account-request.ts +32 -0
- package/src/sdk/models/update-service-account-response.ts +51 -0
- package/src/sdk/models/update-subscription-line-item-request.ts +14 -0
- package/src/sdk/models/update-user-request.ts +33 -0
- package/src/sdk/models/update-user-response.ts +51 -0
- package/src/sdk/models/usage-analytic-item.ts +13 -0
- package/src/sdk/models/usage-analytic-point.ts +12 -0
- package/src/sdk/models/user-response.ts +4 -0
- package/src/sdk/models/window-size.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/subscriptions.ts +2 -2
- package/src/sdk/users.ts +56 -0
- package/src/types/async.ts +8 -7
- package/src/types/primitives.ts +0 -26
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.d.ts.map +0 -1
- package/esm/lib/dlv.js +0 -46
- package/esm/lib/dlv.js.map +0 -1
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.d.ts.map +0 -1
- package/esm/lib/is-plain-object.js +0 -38
- package/esm/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import {
|
|
10
|
+
EntityIntegrationMappingResponse,
|
|
11
|
+
EntityIntegrationMappingResponse$inboundSchema,
|
|
12
|
+
} from "./entity-integration-mapping-response.js";
|
|
13
|
+
import {
|
|
14
|
+
PaginationResponse,
|
|
15
|
+
PaginationResponse$inboundSchema,
|
|
16
|
+
} from "./pagination-response.js";
|
|
17
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
18
|
+
|
|
19
|
+
export type ListEntityIntegrationMappingsResponse = {
|
|
20
|
+
items?: Array<EntityIntegrationMappingResponse> | undefined;
|
|
21
|
+
pagination?: PaginationResponse | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ListEntityIntegrationMappingsResponse$inboundSchema: z.ZodMiniType<
|
|
26
|
+
ListEntityIntegrationMappingsResponse,
|
|
27
|
+
unknown
|
|
28
|
+
> = z.object({
|
|
29
|
+
items: types.optional(
|
|
30
|
+
z.array(EntityIntegrationMappingResponse$inboundSchema),
|
|
31
|
+
),
|
|
32
|
+
pagination: types.optional(PaginationResponse$inboundSchema),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function listEntityIntegrationMappingsResponseFromJSON(
|
|
36
|
+
jsonString: string,
|
|
37
|
+
): SafeParseResult<ListEntityIntegrationMappingsResponse, SDKValidationError> {
|
|
38
|
+
return safeParse(
|
|
39
|
+
jsonString,
|
|
40
|
+
(x) =>
|
|
41
|
+
ListEntityIntegrationMappingsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'ListEntityIntegrationMappingsResponse' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
|
+
|
|
12
|
+
export type MeterUsageAttribution = {
|
|
13
|
+
externalCustomerId?: string | undefined;
|
|
14
|
+
meterId?: string | undefined;
|
|
15
|
+
qtyTotal?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const MeterUsageAttribution$inboundSchema: z.ZodMiniType<
|
|
20
|
+
MeterUsageAttribution,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.pipe(
|
|
23
|
+
z.object({
|
|
24
|
+
external_customer_id: types.optional(types.string()),
|
|
25
|
+
meter_id: types.optional(types.string()),
|
|
26
|
+
qty_total: types.optional(types.string()),
|
|
27
|
+
}),
|
|
28
|
+
z.transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"external_customer_id": "externalCustomerId",
|
|
31
|
+
"meter_id": "meterId",
|
|
32
|
+
"qty_total": "qtyTotal",
|
|
33
|
+
});
|
|
34
|
+
}),
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
export function meterUsageAttributionFromJSON(
|
|
38
|
+
jsonString: string,
|
|
39
|
+
): SafeParseResult<MeterUsageAttribution, SDKValidationError> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) => MeterUsageAttribution$inboundSchema.parse(JSON.parse(x)),
|
|
43
|
+
`Failed to parse 'MeterUsageAttribution' from JSON`,
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import {
|
|
9
|
+
BillingPeriod,
|
|
10
|
+
BillingPeriod$outboundSchema,
|
|
11
|
+
} from "./billing-period.js";
|
|
8
12
|
import {
|
|
9
13
|
FilterCondition,
|
|
10
14
|
FilterCondition$Outbound,
|
|
@@ -24,6 +28,7 @@ export type PriceFilterOrder = ClosedEnum<typeof PriceFilterOrder>;
|
|
|
24
28
|
|
|
25
29
|
export type PriceFilter = {
|
|
26
30
|
allowExpiredPrices?: boolean | undefined;
|
|
31
|
+
billingPeriods?: Array<BillingPeriod> | undefined;
|
|
27
32
|
endTime?: Date | undefined;
|
|
28
33
|
entityIds?: Array<string> | undefined;
|
|
29
34
|
entityType?: PriceEntityType | undefined;
|
|
@@ -57,6 +62,7 @@ export const PriceFilterOrder$outboundSchema: z.ZodMiniEnum<
|
|
|
57
62
|
/** @internal */
|
|
58
63
|
export type PriceFilter$Outbound = {
|
|
59
64
|
allow_expired_prices: boolean;
|
|
65
|
+
billing_periods?: Array<string> | undefined;
|
|
60
66
|
end_time?: string | undefined;
|
|
61
67
|
entity_ids?: Array<string> | undefined;
|
|
62
68
|
entity_type?: string | undefined;
|
|
@@ -83,6 +89,7 @@ export const PriceFilter$outboundSchema: z.ZodMiniType<
|
|
|
83
89
|
> = z.pipe(
|
|
84
90
|
z.object({
|
|
85
91
|
allowExpiredPrices: z._default(z.boolean(), false),
|
|
92
|
+
billingPeriods: z.optional(z.array(BillingPeriod$outboundSchema)),
|
|
86
93
|
endTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
87
94
|
entityIds: z.optional(z.array(z.string())),
|
|
88
95
|
entityType: z.optional(PriceEntityType$outboundSchema),
|
|
@@ -104,6 +111,7 @@ export const PriceFilter$outboundSchema: z.ZodMiniType<
|
|
|
104
111
|
z.transform((v) => {
|
|
105
112
|
return remap$(v, {
|
|
106
113
|
allowExpiredPrices: "allow_expired_prices",
|
|
114
|
+
billingPeriods: "billing_periods",
|
|
107
115
|
endTime: "end_time",
|
|
108
116
|
entityIds: "entity_ids",
|
|
109
117
|
entityType: "entity_type",
|
|
@@ -141,6 +141,15 @@ export type PricePrice = {
|
|
|
141
141
|
*/
|
|
142
142
|
priceUnitTiers?: Array<PricePriceTier> | undefined;
|
|
143
143
|
priceUnitType?: PriceUnitType | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* Sequence is the monotonic stamp bumped on every state change that
|
|
146
|
+
*
|
|
147
|
+
* @remarks
|
|
148
|
+
* subscription line items need to react to. Read by the plan-price sync;
|
|
149
|
+
* set by the database (DEFAULT nextval) on create and by the price
|
|
150
|
+
* repository on termination / compatibility-affecting edits.
|
|
151
|
+
*/
|
|
152
|
+
sequence?: number | undefined;
|
|
144
153
|
/**
|
|
145
154
|
* StartDate is the start date of the price
|
|
146
155
|
*/
|
|
@@ -196,6 +205,7 @@ export const PricePrice$inboundSchema: z.ZodMiniType<PricePrice, unknown> = z
|
|
|
196
205
|
price_unit_id: types.optional(types.string()),
|
|
197
206
|
price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
|
|
198
207
|
price_unit_type: types.optional(PriceUnitType$inboundSchema),
|
|
208
|
+
sequence: types.optional(types.number()),
|
|
199
209
|
start_date: types.optional(types.date()),
|
|
200
210
|
status: types.optional(Status$inboundSchema),
|
|
201
211
|
tenant_id: types.optional(types.string()),
|
|
@@ -163,6 +163,15 @@ export type PriceResponse = {
|
|
|
163
163
|
priceUnitTiers?: Array<PricePriceTier> | undefined;
|
|
164
164
|
priceUnitType?: PriceUnitType | undefined;
|
|
165
165
|
pricingUnit?: PriceUnitResponse | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Sequence is the monotonic stamp bumped on every state change that
|
|
168
|
+
*
|
|
169
|
+
* @remarks
|
|
170
|
+
* subscription line items need to react to. Read by the plan-price sync;
|
|
171
|
+
* set by the database (DEFAULT nextval) on create and by the price
|
|
172
|
+
* repository on termination / compatibility-affecting edits.
|
|
173
|
+
*/
|
|
174
|
+
sequence?: number | undefined;
|
|
166
175
|
/**
|
|
167
176
|
* StartDate is the start date of the price
|
|
168
177
|
*/
|
|
@@ -225,6 +234,7 @@ export const PriceResponse$inboundSchema: z.ZodMiniType<
|
|
|
225
234
|
price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
|
|
226
235
|
price_unit_type: types.optional(PriceUnitType$inboundSchema),
|
|
227
236
|
pricing_unit: types.optional(PriceUnitResponse$inboundSchema),
|
|
237
|
+
sequence: types.optional(types.number()),
|
|
228
238
|
start_date: types.optional(types.date()),
|
|
229
239
|
status: types.optional(Status$inboundSchema),
|
|
230
240
|
tenant_id: types.optional(types.string()),
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
S3CompressionType,
|
|
12
|
+
S3CompressionType$inboundSchema,
|
|
13
|
+
} from "./s3-compression-type.js";
|
|
14
|
+
import {
|
|
15
|
+
S3EncryptionType,
|
|
16
|
+
S3EncryptionType$inboundSchema,
|
|
17
|
+
} from "./s3-encryption-type.js";
|
|
18
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
19
|
+
|
|
20
|
+
export type S3ExportConfig = {
|
|
21
|
+
/**
|
|
22
|
+
* S3 bucket name
|
|
23
|
+
*/
|
|
24
|
+
bucket?: string | undefined;
|
|
25
|
+
compression?: S3CompressionType | undefined;
|
|
26
|
+
encryption?: S3EncryptionType | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* If true, use Flexprice-managed S3 credentials instead of user-provided
|
|
29
|
+
*/
|
|
30
|
+
isFlexpriceManaged?: boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Optional prefix for S3 keys (e.g., "flexprice-exports/")
|
|
33
|
+
*/
|
|
34
|
+
keyPrefix?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* AWS region (e.g., "us-west-2")
|
|
37
|
+
*/
|
|
38
|
+
region?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const S3ExportConfig$inboundSchema: z.ZodMiniType<
|
|
43
|
+
S3ExportConfig,
|
|
44
|
+
unknown
|
|
45
|
+
> = z.pipe(
|
|
46
|
+
z.object({
|
|
47
|
+
bucket: types.optional(types.string()),
|
|
48
|
+
compression: types.optional(S3CompressionType$inboundSchema),
|
|
49
|
+
encryption: types.optional(S3EncryptionType$inboundSchema),
|
|
50
|
+
is_flexprice_managed: types.optional(types.boolean()),
|
|
51
|
+
key_prefix: types.optional(types.string()),
|
|
52
|
+
region: types.optional(types.string()),
|
|
53
|
+
}),
|
|
54
|
+
z.transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
"is_flexprice_managed": "isFlexpriceManaged",
|
|
57
|
+
"key_prefix": "keyPrefix",
|
|
58
|
+
});
|
|
59
|
+
}),
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
export function s3ExportConfigFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<S3ExportConfig, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => S3ExportConfig$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'S3ExportConfig' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const SubModifyCouponAction = {
|
|
9
|
+
Add: "add",
|
|
10
|
+
Remove: "remove",
|
|
11
|
+
} as const;
|
|
12
|
+
export type SubModifyCouponAction = ClosedEnum<typeof SubModifyCouponAction>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const SubModifyCouponAction$outboundSchema: z.ZodMiniEnum<
|
|
16
|
+
typeof SubModifyCouponAction
|
|
17
|
+
> = z.enum(SubModifyCouponAction);
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
SubModifyCouponAction,
|
|
9
|
+
SubModifyCouponAction$outboundSchema,
|
|
10
|
+
} from "./sub-modify-coupon-action.js";
|
|
11
|
+
|
|
12
|
+
export type SubModifyCouponParams = {
|
|
13
|
+
action: SubModifyCouponAction;
|
|
14
|
+
/**
|
|
15
|
+
* Required when action="remove". ID of the CouponAssociation to soft-delete.
|
|
16
|
+
*/
|
|
17
|
+
associationId?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Required for action="add". Coupon code of the coupon to attach.
|
|
20
|
+
*/
|
|
21
|
+
couponCode?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Optional. When to apply the change; defaults to now if omitted.
|
|
24
|
+
*/
|
|
25
|
+
effectiveDate?: Date | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Optional. When the coupon association ends.
|
|
28
|
+
*/
|
|
29
|
+
endDate?: Date | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Optional. When the coupon association starts; defaults to EffectiveDate.
|
|
32
|
+
*/
|
|
33
|
+
startDate?: Date | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Optional. Apply at subscription level. Mutually exclusive with SubscriptionLineItemID.
|
|
36
|
+
*/
|
|
37
|
+
subscriptionId?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Optional. Apply at a specific line item. Mutually exclusive with SubscriptionID.
|
|
40
|
+
*/
|
|
41
|
+
subscriptionLineItemId?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type SubModifyCouponParams$Outbound = {
|
|
46
|
+
action: string;
|
|
47
|
+
association_id?: string | undefined;
|
|
48
|
+
coupon_code?: string | undefined;
|
|
49
|
+
effective_date?: string | undefined;
|
|
50
|
+
end_date?: string | undefined;
|
|
51
|
+
start_date?: string | undefined;
|
|
52
|
+
subscription_id?: string | undefined;
|
|
53
|
+
subscription_line_item_id?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const SubModifyCouponParams$outboundSchema: z.ZodMiniType<
|
|
58
|
+
SubModifyCouponParams$Outbound,
|
|
59
|
+
SubModifyCouponParams
|
|
60
|
+
> = z.pipe(
|
|
61
|
+
z.object({
|
|
62
|
+
action: SubModifyCouponAction$outboundSchema,
|
|
63
|
+
associationId: z.optional(z.string()),
|
|
64
|
+
couponCode: z.optional(z.string()),
|
|
65
|
+
effectiveDate: z.optional(
|
|
66
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
67
|
+
),
|
|
68
|
+
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
69
|
+
startDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
70
|
+
subscriptionId: z.optional(z.string()),
|
|
71
|
+
subscriptionLineItemId: z.optional(z.string()),
|
|
72
|
+
}),
|
|
73
|
+
z.transform((v) => {
|
|
74
|
+
return remap$(v, {
|
|
75
|
+
associationId: "association_id",
|
|
76
|
+
couponCode: "coupon_code",
|
|
77
|
+
effectiveDate: "effective_date",
|
|
78
|
+
endDate: "end_date",
|
|
79
|
+
startDate: "start_date",
|
|
80
|
+
subscriptionId: "subscription_id",
|
|
81
|
+
subscriptionLineItemId: "subscription_line_item_id",
|
|
82
|
+
});
|
|
83
|
+
}),
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
export function subModifyCouponParamsToJSON(
|
|
87
|
+
subModifyCouponParams: SubModifyCouponParams,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(
|
|
90
|
+
SubModifyCouponParams$outboundSchema.parse(subModifyCouponParams),
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -4,14 +4,28 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
InheritanceAction,
|
|
9
|
+
InheritanceAction$outboundSchema,
|
|
10
|
+
} from "./inheritance-action.js";
|
|
7
11
|
|
|
8
12
|
export type SubModifyInheritanceRequest = {
|
|
13
|
+
action?: InheritanceAction | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* ExternalCustomerIDsToInheritSubscription is used for action="add".
|
|
16
|
+
*/
|
|
9
17
|
externalCustomerIdsToInheritSubscription?: Array<string> | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* ExternalCustomerIDsToRemove is used for action="remove".
|
|
20
|
+
*/
|
|
21
|
+
externalCustomerIdsToRemove?: Array<string> | undefined;
|
|
10
22
|
};
|
|
11
23
|
|
|
12
24
|
/** @internal */
|
|
13
25
|
export type SubModifyInheritanceRequest$Outbound = {
|
|
26
|
+
action?: string | undefined;
|
|
14
27
|
external_customer_ids_to_inherit_subscription?: Array<string> | undefined;
|
|
28
|
+
external_customer_ids_to_remove?: Array<string> | undefined;
|
|
15
29
|
};
|
|
16
30
|
|
|
17
31
|
/** @internal */
|
|
@@ -20,12 +34,15 @@ export const SubModifyInheritanceRequest$outboundSchema: z.ZodMiniType<
|
|
|
20
34
|
SubModifyInheritanceRequest
|
|
21
35
|
> = z.pipe(
|
|
22
36
|
z.object({
|
|
37
|
+
action: z.optional(InheritanceAction$outboundSchema),
|
|
23
38
|
externalCustomerIdsToInheritSubscription: z.optional(z.array(z.string())),
|
|
39
|
+
externalCustomerIdsToRemove: z.optional(z.array(z.string())),
|
|
24
40
|
}),
|
|
25
41
|
z.transform((v) => {
|
|
26
42
|
return remap$(v, {
|
|
27
43
|
externalCustomerIdsToInheritSubscription:
|
|
28
44
|
"external_customer_ids_to_inherit_subscription",
|
|
45
|
+
externalCustomerIdsToRemove: "external_customer_ids_to_remove",
|
|
29
46
|
});
|
|
30
47
|
}),
|
|
31
48
|
);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const SubModifyTaxAction = {
|
|
9
|
+
Add: "add",
|
|
10
|
+
Remove: "remove",
|
|
11
|
+
} as const;
|
|
12
|
+
export type SubModifyTaxAction = ClosedEnum<typeof SubModifyTaxAction>;
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const SubModifyTaxAction$outboundSchema: z.ZodMiniEnum<
|
|
16
|
+
typeof SubModifyTaxAction
|
|
17
|
+
> = z.enum(SubModifyTaxAction);
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
SubModifyTaxAction,
|
|
9
|
+
SubModifyTaxAction$outboundSchema,
|
|
10
|
+
} from "./sub-modify-tax-action.js";
|
|
11
|
+
|
|
12
|
+
export type SubModifyTaxParams = {
|
|
13
|
+
action: SubModifyTaxAction;
|
|
14
|
+
/**
|
|
15
|
+
* Required when action="remove". ID of the TaxAssociation to soft-delete.
|
|
16
|
+
*/
|
|
17
|
+
associationId?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Optional. When to apply the change; defaults to now if omitted.
|
|
20
|
+
*/
|
|
21
|
+
effectiveDate?: Date | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Required when action="add". ID of the active tax rate to attach.
|
|
24
|
+
*/
|
|
25
|
+
taxRateId?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SubModifyTaxParams$Outbound = {
|
|
30
|
+
action: string;
|
|
31
|
+
association_id?: string | undefined;
|
|
32
|
+
effective_date?: string | undefined;
|
|
33
|
+
tax_rate_id?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const SubModifyTaxParams$outboundSchema: z.ZodMiniType<
|
|
38
|
+
SubModifyTaxParams$Outbound,
|
|
39
|
+
SubModifyTaxParams
|
|
40
|
+
> = z.pipe(
|
|
41
|
+
z.object({
|
|
42
|
+
action: SubModifyTaxAction$outboundSchema,
|
|
43
|
+
associationId: z.optional(z.string()),
|
|
44
|
+
effectiveDate: z.optional(
|
|
45
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
46
|
+
),
|
|
47
|
+
taxRateId: z.optional(z.string()),
|
|
48
|
+
}),
|
|
49
|
+
z.transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
associationId: "association_id",
|
|
52
|
+
effectiveDate: "effective_date",
|
|
53
|
+
taxRateId: "tax_rate_id",
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
export function subModifyTaxParamsToJSON(
|
|
59
|
+
subModifyTaxParams: SubModifyTaxParams,
|
|
60
|
+
): string {
|
|
61
|
+
return JSON.stringify(
|
|
62
|
+
SubModifyTaxParams$outboundSchema.parse(subModifyTaxParams),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
TrialEndAction,
|
|
9
|
+
TrialEndAction$outboundSchema,
|
|
10
|
+
} from "./trial-end-action.js";
|
|
11
|
+
|
|
12
|
+
export type SubModifyTrialEndRequest = {
|
|
13
|
+
action: TrialEndAction;
|
|
14
|
+
/**
|
|
15
|
+
* NewTrialEnd is the new trial end date. Required when action is "scheduled_date".
|
|
16
|
+
*/
|
|
17
|
+
newTrialEnd?: Date | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type SubModifyTrialEndRequest$Outbound = {
|
|
22
|
+
action: string;
|
|
23
|
+
new_trial_end?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const SubModifyTrialEndRequest$outboundSchema: z.ZodMiniType<
|
|
28
|
+
SubModifyTrialEndRequest$Outbound,
|
|
29
|
+
SubModifyTrialEndRequest
|
|
30
|
+
> = z.pipe(
|
|
31
|
+
z.object({
|
|
32
|
+
action: TrialEndAction$outboundSchema,
|
|
33
|
+
newTrialEnd: z.optional(
|
|
34
|
+
z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
35
|
+
),
|
|
36
|
+
}),
|
|
37
|
+
z.transform((v) => {
|
|
38
|
+
return remap$(v, {
|
|
39
|
+
newTrialEnd: "new_trial_end",
|
|
40
|
+
});
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export function subModifyTrialEndRequestToJSON(
|
|
45
|
+
subModifyTrialEndRequest: SubModifyTrialEndRequest,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
SubModifyTrialEndRequest$outboundSchema.parse(subModifyTrialEndRequest),
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type SubscriptionCouponInput = {
|
|
9
|
+
/**
|
|
10
|
+
* CouponCode is the coupon's human-readable code (case-insensitive). Required.
|
|
11
|
+
*/
|
|
12
|
+
couponCode: string;
|
|
13
|
+
/**
|
|
14
|
+
* EndDate is when the coupon ends; overrides duration_in_periods calculation.
|
|
15
|
+
*/
|
|
16
|
+
endDate?: Date | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* PriceID is the price ID of the line item to target; omit for subscription-level.
|
|
19
|
+
*/
|
|
20
|
+
priceId?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* StartDate is when the coupon starts; defaults to subscription/phase StartDate.
|
|
23
|
+
*/
|
|
24
|
+
startDate?: Date | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type SubscriptionCouponInput$Outbound = {
|
|
29
|
+
coupon_code: string;
|
|
30
|
+
end_date?: string | undefined;
|
|
31
|
+
price_id?: string | undefined;
|
|
32
|
+
start_date?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const SubscriptionCouponInput$outboundSchema: z.ZodMiniType<
|
|
37
|
+
SubscriptionCouponInput$Outbound,
|
|
38
|
+
SubscriptionCouponInput
|
|
39
|
+
> = z.pipe(
|
|
40
|
+
z.object({
|
|
41
|
+
couponCode: z.string(),
|
|
42
|
+
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
43
|
+
priceId: z.optional(z.string()),
|
|
44
|
+
startDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
45
|
+
}),
|
|
46
|
+
z.transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
couponCode: "coupon_code",
|
|
49
|
+
endDate: "end_date",
|
|
50
|
+
priceId: "price_id",
|
|
51
|
+
startDate: "start_date",
|
|
52
|
+
});
|
|
53
|
+
}),
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
export function subscriptionCouponInputToJSON(
|
|
57
|
+
subscriptionCouponInput: SubscriptionCouponInput,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
SubscriptionCouponInput$outboundSchema.parse(subscriptionCouponInput),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
@@ -30,6 +30,10 @@ import {
|
|
|
30
30
|
SubscriptionLineItemEntityType,
|
|
31
31
|
SubscriptionLineItemEntityType$inboundSchema,
|
|
32
32
|
} from "./subscription-line-item-entity-type.js";
|
|
33
|
+
import {
|
|
34
|
+
TimeOfDayBucket,
|
|
35
|
+
TimeOfDayBucket$inboundSchema,
|
|
36
|
+
} from "./time-of-day-bucket.js";
|
|
33
37
|
|
|
34
38
|
export type SubscriptionLineItemResponse = {
|
|
35
39
|
addonAssociationId?: string | undefined;
|
|
@@ -45,6 +49,7 @@ export type SubscriptionLineItemResponse = {
|
|
|
45
49
|
commitmentDuration?: BillingPeriod | undefined;
|
|
46
50
|
commitmentOverageFactor?: string | undefined;
|
|
47
51
|
commitmentQuantity?: string | undefined;
|
|
52
|
+
commitmentTimeBuckets?: Array<TimeOfDayBucket> | undefined;
|
|
48
53
|
commitmentTrueUpEnabled?: boolean | undefined;
|
|
49
54
|
commitmentType?: CommitmentType | undefined;
|
|
50
55
|
commitmentWindowed?: boolean | undefined;
|
|
@@ -91,6 +96,9 @@ export const SubscriptionLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
91
96
|
commitment_duration: types.optional(BillingPeriod$inboundSchema),
|
|
92
97
|
commitment_overage_factor: types.optional(types.string()),
|
|
93
98
|
commitment_quantity: types.optional(types.string()),
|
|
99
|
+
commitment_time_buckets: types.optional(
|
|
100
|
+
z.array(TimeOfDayBucket$inboundSchema),
|
|
101
|
+
),
|
|
94
102
|
commitment_true_up_enabled: types.optional(types.boolean()),
|
|
95
103
|
commitment_type: types.optional(CommitmentType$inboundSchema),
|
|
96
104
|
commitment_windowed: types.optional(types.boolean()),
|
|
@@ -132,6 +140,7 @@ export const SubscriptionLineItemResponse$inboundSchema: z.ZodMiniType<
|
|
|
132
140
|
"commitment_duration": "commitmentDuration",
|
|
133
141
|
"commitment_overage_factor": "commitmentOverageFactor",
|
|
134
142
|
"commitment_quantity": "commitmentQuantity",
|
|
143
|
+
"commitment_time_buckets": "commitmentTimeBuckets",
|
|
135
144
|
"commitment_true_up_enabled": "commitmentTrueUpEnabled",
|
|
136
145
|
"commitment_type": "commitmentType",
|
|
137
146
|
"commitment_windowed": "commitmentWindowed",
|
|
@@ -9,6 +9,9 @@ export const SubscriptionModifyType = {
|
|
|
9
9
|
Inheritance: "inheritance",
|
|
10
10
|
QuantityChange: "quantity_change",
|
|
11
11
|
GroupedInvoicing: "grouped_invoicing",
|
|
12
|
+
TrialEnd: "trial_end",
|
|
13
|
+
Coupon: "coupon",
|
|
14
|
+
Tax: "tax",
|
|
12
15
|
} as const;
|
|
13
16
|
export type SubscriptionModifyType = ClosedEnum<typeof SubscriptionModifyType>;
|
|
14
17
|
|