@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
|
@@ -11,6 +11,10 @@ import {
|
|
|
11
11
|
} from "./commitment-info.js";
|
|
12
12
|
|
|
13
13
|
export type CreateInvoiceLineItemRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* adjusted_entitlement_quantity is the entitlement-covered units deducted from raw usage.
|
|
16
|
+
*/
|
|
17
|
+
adjustedEntitlementQuantity?: string | undefined;
|
|
14
18
|
/**
|
|
15
19
|
* amount is the monetary amount for this line item
|
|
16
20
|
*/
|
|
@@ -88,10 +92,22 @@ export type CreateInvoiceLineItemRequest = {
|
|
|
88
92
|
* quantity is the quantity of units for this line item
|
|
89
93
|
*/
|
|
90
94
|
quantity: string;
|
|
95
|
+
/**
|
|
96
|
+
* subscription_id overrides the invoice's subscription_id for this specific line item.
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
* Used for grouped invoicing where child line items belong to child subscriptions.
|
|
100
|
+
*/
|
|
101
|
+
subscriptionId?: string | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* sub_line_item_id links this line item to the subscription_line_item that generated it.
|
|
104
|
+
*/
|
|
105
|
+
subscriptionLineItemId?: string | undefined;
|
|
91
106
|
};
|
|
92
107
|
|
|
93
108
|
/** @internal */
|
|
94
109
|
export type CreateInvoiceLineItemRequest$Outbound = {
|
|
110
|
+
adjusted_entitlement_quantity?: string | undefined;
|
|
95
111
|
amount: string;
|
|
96
112
|
commitment_info?: CommitmentInfo$Outbound | undefined;
|
|
97
113
|
display_name?: string | undefined;
|
|
@@ -112,6 +128,8 @@ export type CreateInvoiceLineItemRequest$Outbound = {
|
|
|
112
128
|
price_unit?: string | undefined;
|
|
113
129
|
price_unit_amount?: string | undefined;
|
|
114
130
|
quantity: string;
|
|
131
|
+
subscription_id?: string | undefined;
|
|
132
|
+
subscription_line_item_id?: string | undefined;
|
|
115
133
|
};
|
|
116
134
|
|
|
117
135
|
/** @internal */
|
|
@@ -120,6 +138,7 @@ export const CreateInvoiceLineItemRequest$outboundSchema: z.ZodMiniType<
|
|
|
120
138
|
CreateInvoiceLineItemRequest
|
|
121
139
|
> = z.pipe(
|
|
122
140
|
z.object({
|
|
141
|
+
adjustedEntitlementQuantity: z.optional(z.string()),
|
|
123
142
|
amount: z.string(),
|
|
124
143
|
commitmentInfo: z.optional(CommitmentInfo$outboundSchema),
|
|
125
144
|
displayName: z.optional(z.string()),
|
|
@@ -142,9 +161,12 @@ export const CreateInvoiceLineItemRequest$outboundSchema: z.ZodMiniType<
|
|
|
142
161
|
priceUnit: z.optional(z.string()),
|
|
143
162
|
priceUnitAmount: z.optional(z.string()),
|
|
144
163
|
quantity: z.string(),
|
|
164
|
+
subscriptionId: z.optional(z.string()),
|
|
165
|
+
subscriptionLineItemId: z.optional(z.string()),
|
|
145
166
|
}),
|
|
146
167
|
z.transform((v) => {
|
|
147
168
|
return remap$(v, {
|
|
169
|
+
adjustedEntitlementQuantity: "adjusted_entitlement_quantity",
|
|
148
170
|
commitmentInfo: "commitment_info",
|
|
149
171
|
displayName: "display_name",
|
|
150
172
|
entityId: "entity_id",
|
|
@@ -162,6 +184,8 @@ export const CreateInvoiceLineItemRequest$outboundSchema: z.ZodMiniType<
|
|
|
162
184
|
priceType: "price_type",
|
|
163
185
|
priceUnit: "price_unit",
|
|
164
186
|
priceUnitAmount: "price_unit_amount",
|
|
187
|
+
subscriptionId: "subscription_id",
|
|
188
|
+
subscriptionLineItemId: "subscription_line_item_id",
|
|
165
189
|
});
|
|
166
190
|
}),
|
|
167
191
|
);
|
|
@@ -8,6 +8,11 @@ import {
|
|
|
8
8
|
BillingPeriod,
|
|
9
9
|
BillingPeriod$outboundSchema,
|
|
10
10
|
} from "./billing-period.js";
|
|
11
|
+
import {
|
|
12
|
+
CommitmentBucketRequest,
|
|
13
|
+
CommitmentBucketRequest$Outbound,
|
|
14
|
+
CommitmentBucketRequest$outboundSchema,
|
|
15
|
+
} from "./commitment-bucket-request.js";
|
|
11
16
|
import {
|
|
12
17
|
CommitmentType,
|
|
13
18
|
CommitmentType$outboundSchema,
|
|
@@ -30,6 +35,7 @@ export type CreateSubscriptionLineItemRequest = {
|
|
|
30
35
|
commitmentDuration?: BillingPeriod | undefined;
|
|
31
36
|
commitmentOverageFactor?: number | undefined;
|
|
32
37
|
commitmentQuantity?: number | undefined;
|
|
38
|
+
commitmentTimeBuckets?: Array<CommitmentBucketRequest> | undefined;
|
|
33
39
|
commitmentTrueUpEnabled?: boolean | undefined;
|
|
34
40
|
commitmentType?: CommitmentType | undefined;
|
|
35
41
|
commitmentWindowed?: boolean | undefined;
|
|
@@ -53,6 +59,7 @@ export type CreateSubscriptionLineItemRequest$Outbound = {
|
|
|
53
59
|
commitment_duration?: string | undefined;
|
|
54
60
|
commitment_overage_factor?: number | undefined;
|
|
55
61
|
commitment_quantity?: number | undefined;
|
|
62
|
+
commitment_time_buckets?: Array<CommitmentBucketRequest$Outbound> | undefined;
|
|
56
63
|
commitment_true_up_enabled?: boolean | undefined;
|
|
57
64
|
commitment_type?: string | undefined;
|
|
58
65
|
commitment_windowed?: boolean | undefined;
|
|
@@ -77,6 +84,9 @@ export const CreateSubscriptionLineItemRequest$outboundSchema: z.ZodMiniType<
|
|
|
77
84
|
commitmentDuration: z.optional(BillingPeriod$outboundSchema),
|
|
78
85
|
commitmentOverageFactor: z.optional(z.number()),
|
|
79
86
|
commitmentQuantity: z.optional(z.number()),
|
|
87
|
+
commitmentTimeBuckets: z.optional(
|
|
88
|
+
z.array(CommitmentBucketRequest$outboundSchema),
|
|
89
|
+
),
|
|
80
90
|
commitmentTrueUpEnabled: z.optional(z.boolean()),
|
|
81
91
|
commitmentType: z.optional(CommitmentType$outboundSchema),
|
|
82
92
|
commitmentWindowed: z.optional(z.boolean()),
|
|
@@ -96,6 +106,7 @@ export const CreateSubscriptionLineItemRequest$outboundSchema: z.ZodMiniType<
|
|
|
96
106
|
commitmentDuration: "commitment_duration",
|
|
97
107
|
commitmentOverageFactor: "commitment_overage_factor",
|
|
98
108
|
commitmentQuantity: "commitment_quantity",
|
|
109
|
+
commitmentTimeBuckets: "commitment_time_buckets",
|
|
99
110
|
commitmentTrueUpEnabled: "commitment_true_up_enabled",
|
|
100
111
|
commitmentType: "commitment_type",
|
|
101
112
|
commitmentWindowed: "commitment_windowed",
|
|
@@ -52,6 +52,11 @@ import {
|
|
|
52
52
|
ProrationBehavior,
|
|
53
53
|
ProrationBehavior$outboundSchema,
|
|
54
54
|
} from "./proration-behavior.js";
|
|
55
|
+
import {
|
|
56
|
+
SubscriptionCouponInput,
|
|
57
|
+
SubscriptionCouponInput$Outbound,
|
|
58
|
+
SubscriptionCouponInput$outboundSchema,
|
|
59
|
+
} from "./subscription-coupon-input.js";
|
|
55
60
|
import {
|
|
56
61
|
SubscriptionInheritanceConfig,
|
|
57
62
|
SubscriptionInheritanceConfig$Outbound,
|
|
@@ -105,6 +110,9 @@ export type CreateSubscriptionRequest = {
|
|
|
105
110
|
*/
|
|
106
111
|
commitmentAmount?: string | undefined;
|
|
107
112
|
commitmentDuration?: BillingPeriod | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* Deprecated: use SubscriptionCoupons instead.
|
|
115
|
+
*/
|
|
108
116
|
coupons?: Array<string> | undefined;
|
|
109
117
|
/**
|
|
110
118
|
* Credit grants to be applied when subscription is created
|
|
@@ -143,6 +151,9 @@ export type CreateSubscriptionRequest = {
|
|
|
143
151
|
* LineItemCommitments allows setting commitment configuration per line item (keyed by price_id)
|
|
144
152
|
*/
|
|
145
153
|
lineItemCommitments?: { [k: string]: LineItemCommitmentConfig } | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* Deprecated: use SubscriptionCoupons instead.
|
|
156
|
+
*/
|
|
146
157
|
lineItemCoupons?: { [k: string]: Array<string> } | undefined;
|
|
147
158
|
/**
|
|
148
159
|
* LineItems are extra line items to add at creation (each with price_id or price), in addition to plan prices
|
|
@@ -171,6 +182,13 @@ export type CreateSubscriptionRequest = {
|
|
|
171
182
|
planId: string;
|
|
172
183
|
prorationBehavior?: ProrationBehavior | undefined;
|
|
173
184
|
startDate?: Date | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* SubscriptionCoupons is the preferred way to attach coupons at creation.
|
|
187
|
+
*
|
|
188
|
+
* @remarks
|
|
189
|
+
* Accepts coupon_code; optionally targets a line item via price_id.
|
|
190
|
+
*/
|
|
191
|
+
subscriptionCoupons?: Array<SubscriptionCouponInput> | undefined;
|
|
174
192
|
subscriptionStatus?: SubscriptionStatus | undefined;
|
|
175
193
|
/**
|
|
176
194
|
* tax_rate_overrides is the tax rate overrides to be applied to the subscription
|
|
@@ -224,6 +242,7 @@ export type CreateSubscriptionRequest$Outbound = {
|
|
|
224
242
|
plan_id: string;
|
|
225
243
|
proration_behavior?: string | undefined;
|
|
226
244
|
start_date?: string | undefined;
|
|
245
|
+
subscription_coupons?: Array<SubscriptionCouponInput$Outbound> | undefined;
|
|
227
246
|
subscription_status?: string | undefined;
|
|
228
247
|
tax_rate_overrides?: Array<TaxRateOverride$Outbound> | undefined;
|
|
229
248
|
trial_period_days?: number | undefined;
|
|
@@ -278,6 +297,9 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodMiniType<
|
|
|
278
297
|
planId: z.string(),
|
|
279
298
|
prorationBehavior: z.optional(ProrationBehavior$outboundSchema),
|
|
280
299
|
startDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
300
|
+
subscriptionCoupons: z.optional(
|
|
301
|
+
z.array(SubscriptionCouponInput$outboundSchema),
|
|
302
|
+
),
|
|
281
303
|
subscriptionStatus: z.optional(SubscriptionStatus$outboundSchema),
|
|
282
304
|
taxRateOverrides: z.optional(z.array(TaxRateOverride$outboundSchema)),
|
|
283
305
|
trialPeriodDays: z.optional(z.int()),
|
|
@@ -311,6 +333,7 @@ export const CreateSubscriptionRequest$outboundSchema: z.ZodMiniType<
|
|
|
311
333
|
planId: "plan_id",
|
|
312
334
|
prorationBehavior: "proration_behavior",
|
|
313
335
|
startDate: "start_date",
|
|
336
|
+
subscriptionCoupons: "subscription_coupons",
|
|
314
337
|
subscriptionStatus: "subscription_status",
|
|
315
338
|
taxRateOverrides: "tax_rate_overrides",
|
|
316
339
|
trialPeriodDays: "trial_period_days",
|
|
@@ -12,11 +12,19 @@ import {
|
|
|
12
12
|
export type CreateTaxAssociationRequest = {
|
|
13
13
|
autoApply?: boolean | undefined;
|
|
14
14
|
currency?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* EndDate sets when this association expires. Must be after StartDate when both are provided.
|
|
17
|
+
*/
|
|
18
|
+
endDate?: Date | undefined;
|
|
15
19
|
entityId?: string | undefined;
|
|
16
20
|
entityType?: TaxRateEntityType | undefined;
|
|
17
21
|
externalCustomerId?: string | undefined;
|
|
18
22
|
metadata?: { [k: string]: string } | undefined;
|
|
19
23
|
priority?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* StartDate sets when this association becomes active. Defaults to now if omitted.
|
|
26
|
+
*/
|
|
27
|
+
startDate?: Date | undefined;
|
|
20
28
|
taxRateCode: string;
|
|
21
29
|
};
|
|
22
30
|
|
|
@@ -24,11 +32,13 @@ export type CreateTaxAssociationRequest = {
|
|
|
24
32
|
export type CreateTaxAssociationRequest$Outbound = {
|
|
25
33
|
auto_apply?: boolean | undefined;
|
|
26
34
|
currency?: string | undefined;
|
|
35
|
+
end_date?: string | undefined;
|
|
27
36
|
entity_id?: string | undefined;
|
|
28
37
|
entity_type?: string | undefined;
|
|
29
38
|
external_customer_id?: string | undefined;
|
|
30
39
|
metadata?: { [k: string]: string } | undefined;
|
|
31
40
|
priority?: number | undefined;
|
|
41
|
+
start_date?: string | undefined;
|
|
32
42
|
tax_rate_code: string;
|
|
33
43
|
};
|
|
34
44
|
|
|
@@ -40,19 +50,23 @@ export const CreateTaxAssociationRequest$outboundSchema: z.ZodMiniType<
|
|
|
40
50
|
z.object({
|
|
41
51
|
autoApply: z.optional(z.boolean()),
|
|
42
52
|
currency: z.optional(z.string()),
|
|
53
|
+
endDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
43
54
|
entityId: z.optional(z.string()),
|
|
44
55
|
entityType: z.optional(TaxRateEntityType$outboundSchema),
|
|
45
56
|
externalCustomerId: z.optional(z.string()),
|
|
46
57
|
metadata: z.optional(z.record(z.string(), z.string())),
|
|
47
58
|
priority: z.optional(z.int()),
|
|
59
|
+
startDate: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
48
60
|
taxRateCode: z.string(),
|
|
49
61
|
}),
|
|
50
62
|
z.transform((v) => {
|
|
51
63
|
return remap$(v, {
|
|
52
64
|
autoApply: "auto_apply",
|
|
65
|
+
endDate: "end_date",
|
|
53
66
|
entityId: "entity_id",
|
|
54
67
|
entityType: "entity_type",
|
|
55
68
|
externalCustomerId: "external_customer_id",
|
|
69
|
+
startDate: "start_date",
|
|
56
70
|
taxRateCode: "tax_rate_code",
|
|
57
71
|
});
|
|
58
72
|
}),
|
|
@@ -10,6 +10,10 @@ export type CreateUserRequest = {
|
|
|
10
10
|
* Required when type is "user"
|
|
11
11
|
*/
|
|
12
12
|
email?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Display name; optional for service accounts
|
|
15
|
+
*/
|
|
16
|
+
name?: string | undefined;
|
|
13
17
|
/**
|
|
14
18
|
* Required when type is "service_account"
|
|
15
19
|
*/
|
|
@@ -20,6 +24,7 @@ export type CreateUserRequest = {
|
|
|
20
24
|
/** @internal */
|
|
21
25
|
export type CreateUserRequest$Outbound = {
|
|
22
26
|
email?: string | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
23
28
|
roles?: Array<string> | undefined;
|
|
24
29
|
type: string;
|
|
25
30
|
};
|
|
@@ -30,6 +35,7 @@ export const CreateUserRequest$outboundSchema: z.ZodMiniType<
|
|
|
30
35
|
CreateUserRequest
|
|
31
36
|
> = z.object({
|
|
32
37
|
email: z.optional(z.string()),
|
|
38
|
+
name: z.optional(z.string()),
|
|
33
39
|
roles: z.optional(z.array(z.string())),
|
|
34
40
|
type: UserType$outboundSchema,
|
|
35
41
|
});
|
|
@@ -19,6 +19,8 @@ export type CreateUserResponse = {
|
|
|
19
19
|
*/
|
|
20
20
|
email?: string | undefined;
|
|
21
21
|
id?: string | undefined;
|
|
22
|
+
metadata?: { [k: string]: string } | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
22
24
|
password?: string | undefined;
|
|
23
25
|
roles?: Array<string> | undefined;
|
|
24
26
|
tenant?: TenantResponse | undefined;
|
|
@@ -32,6 +34,8 @@ export const CreateUserResponse$inboundSchema: z.ZodMiniType<
|
|
|
32
34
|
> = z.object({
|
|
33
35
|
email: types.optional(types.string()),
|
|
34
36
|
id: types.optional(types.string()),
|
|
37
|
+
metadata: types.optional(z.record(z.string(), types.string())),
|
|
38
|
+
name: types.optional(types.string()),
|
|
35
39
|
password: types.optional(types.string()),
|
|
36
40
|
roles: types.optional(z.array(types.string())),
|
|
37
41
|
tenant: types.optional(TenantResponse$inboundSchema),
|
|
@@ -7,6 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
AttributedToCustomerResult,
|
|
12
|
+
AttributedToCustomerResult$inboundSchema,
|
|
13
|
+
} from "./attributed-to-customer-result.js";
|
|
10
14
|
import {
|
|
11
15
|
CustomerLookupResult,
|
|
12
16
|
CustomerLookupResult$inboundSchema,
|
|
@@ -27,6 +31,7 @@ import {
|
|
|
27
31
|
} from "./subscription-line-item-lookup-result.js";
|
|
28
32
|
|
|
29
33
|
export type DebugTracker = {
|
|
34
|
+
attributedToCustomer?: AttributedToCustomerResult | undefined;
|
|
30
35
|
customerLookup?: CustomerLookupResult | undefined;
|
|
31
36
|
failurePoint?: FailurePoint | undefined;
|
|
32
37
|
meterMatching?: MeterMatchingResult | undefined;
|
|
@@ -38,6 +43,9 @@ export type DebugTracker = {
|
|
|
38
43
|
export const DebugTracker$inboundSchema: z.ZodMiniType<DebugTracker, unknown> =
|
|
39
44
|
z.pipe(
|
|
40
45
|
z.object({
|
|
46
|
+
attributed_to_customer: types.optional(
|
|
47
|
+
AttributedToCustomerResult$inboundSchema,
|
|
48
|
+
),
|
|
41
49
|
customer_lookup: types.optional(CustomerLookupResult$inboundSchema),
|
|
42
50
|
failure_point: types.optional(FailurePoint$inboundSchema),
|
|
43
51
|
meter_matching: types.optional(MeterMatchingResult$inboundSchema),
|
|
@@ -48,6 +56,7 @@ export const DebugTracker$inboundSchema: z.ZodMiniType<DebugTracker, unknown> =
|
|
|
48
56
|
}),
|
|
49
57
|
z.transform((v) => {
|
|
50
58
|
return remap$(v, {
|
|
59
|
+
"attributed_to_customer": "attributedToCustomer",
|
|
51
60
|
"customer_lookup": "customerLookup",
|
|
52
61
|
"failure_point": "failurePoint",
|
|
53
62
|
"meter_matching": "meterMatching",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type DeleteServiceAccountRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Service Account ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type DeleteServiceAccountRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DeleteServiceAccountRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
DeleteServiceAccountRequest$Outbound,
|
|
22
|
+
DeleteServiceAccountRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function deleteServiceAccountRequestToJSON(
|
|
28
|
+
deleteServiceAccountRequest: DeleteServiceAccountRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
DeleteServiceAccountRequest$outboundSchema.parse(
|
|
32
|
+
deleteServiceAccountRequest,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
IntegrationEntityType,
|
|
9
|
+
IntegrationEntityType$outboundSchema,
|
|
10
|
+
} from "./integration-entity-type.js";
|
|
11
|
+
|
|
12
|
+
export type DelinkIntegrationMappingRequest = {
|
|
13
|
+
entityId: string;
|
|
14
|
+
entityType: IntegrationEntityType;
|
|
15
|
+
providerType: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type DelinkIntegrationMappingRequest$Outbound = {
|
|
20
|
+
entity_id: string;
|
|
21
|
+
entity_type: string;
|
|
22
|
+
provider_type: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const DelinkIntegrationMappingRequest$outboundSchema: z.ZodMiniType<
|
|
27
|
+
DelinkIntegrationMappingRequest$Outbound,
|
|
28
|
+
DelinkIntegrationMappingRequest
|
|
29
|
+
> = z.pipe(
|
|
30
|
+
z.object({
|
|
31
|
+
entityId: z.string(),
|
|
32
|
+
entityType: IntegrationEntityType$outboundSchema,
|
|
33
|
+
providerType: z.string(),
|
|
34
|
+
}),
|
|
35
|
+
z.transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
entityId: "entity_id",
|
|
38
|
+
entityType: "entity_type",
|
|
39
|
+
providerType: "provider_type",
|
|
40
|
+
});
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export function delinkIntegrationMappingRequestToJSON(
|
|
45
|
+
delinkIntegrationMappingRequest: DelinkIntegrationMappingRequest,
|
|
46
|
+
): string {
|
|
47
|
+
return JSON.stringify(
|
|
48
|
+
DelinkIntegrationMappingRequest$outboundSchema.parse(
|
|
49
|
+
delinkIntegrationMappingRequest,
|
|
50
|
+
),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -21,6 +21,7 @@ export type EntityIntegrationMappingResponse = {
|
|
|
21
21
|
entityType?: IntegrationEntityType | undefined;
|
|
22
22
|
environmentId?: string | undefined;
|
|
23
23
|
id?: string | undefined;
|
|
24
|
+
metadata?: { [k: string]: any } | undefined;
|
|
24
25
|
providerEntityId?: string | undefined;
|
|
25
26
|
providerType?: string | undefined;
|
|
26
27
|
status?: Status | undefined;
|
|
@@ -41,6 +42,7 @@ export const EntityIntegrationMappingResponse$inboundSchema: z.ZodMiniType<
|
|
|
41
42
|
entity_type: types.optional(IntegrationEntityType$inboundSchema),
|
|
42
43
|
environment_id: types.optional(types.string()),
|
|
43
44
|
id: types.optional(types.string()),
|
|
45
|
+
metadata: types.optional(z.record(z.string(), z.any())),
|
|
44
46
|
provider_entity_id: types.optional(types.string()),
|
|
45
47
|
provider_type: types.optional(types.string()),
|
|
46
48
|
status: types.optional(Status$inboundSchema),
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { SDKValidationError } from "./sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type EntitySyncConfig = {
|
|
12
|
+
/**
|
|
13
|
+
* Inbound from external provider to FlexPrice
|
|
14
|
+
*/
|
|
15
|
+
inbound?: boolean | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Outbound from FlexPrice to external provider
|
|
18
|
+
*/
|
|
19
|
+
outbound?: boolean | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const EntitySyncConfig$inboundSchema: z.ZodMiniType<
|
|
24
|
+
EntitySyncConfig,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
inbound: types.optional(types.boolean()),
|
|
28
|
+
outbound: types.optional(types.boolean()),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function entitySyncConfigFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<EntitySyncConfig, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => EntitySyncConfig$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'EntitySyncConfig' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
SubModifyCouponParams,
|
|
9
|
+
SubModifyCouponParams$Outbound,
|
|
10
|
+
SubModifyCouponParams$outboundSchema,
|
|
11
|
+
} from "./sub-modify-coupon-params.js";
|
|
7
12
|
import {
|
|
8
13
|
SubModifyGroupedInvoicingParams,
|
|
9
14
|
SubModifyGroupedInvoicingParams$Outbound,
|
|
@@ -19,25 +24,41 @@ import {
|
|
|
19
24
|
SubModifyQuantityChangeRequest$Outbound,
|
|
20
25
|
SubModifyQuantityChangeRequest$outboundSchema,
|
|
21
26
|
} from "./sub-modify-quantity-change-request.js";
|
|
27
|
+
import {
|
|
28
|
+
SubModifyTaxParams,
|
|
29
|
+
SubModifyTaxParams$Outbound,
|
|
30
|
+
SubModifyTaxParams$outboundSchema,
|
|
31
|
+
} from "./sub-modify-tax-params.js";
|
|
32
|
+
import {
|
|
33
|
+
SubModifyTrialEndRequest,
|
|
34
|
+
SubModifyTrialEndRequest$Outbound,
|
|
35
|
+
SubModifyTrialEndRequest$outboundSchema,
|
|
36
|
+
} from "./sub-modify-trial-end-request.js";
|
|
22
37
|
import {
|
|
23
38
|
SubscriptionModifyType,
|
|
24
39
|
SubscriptionModifyType$outboundSchema,
|
|
25
40
|
} from "./subscription-modify-type.js";
|
|
26
41
|
|
|
27
42
|
export type ExecuteSubscriptionModifyRequest = {
|
|
43
|
+
couponParams?: SubModifyCouponParams | undefined;
|
|
28
44
|
groupedInvoicingParams?: SubModifyGroupedInvoicingParams | undefined;
|
|
29
45
|
inheritanceParams?: SubModifyInheritanceRequest | undefined;
|
|
30
46
|
quantityChangeParams?: SubModifyQuantityChangeRequest | undefined;
|
|
47
|
+
taxParams?: SubModifyTaxParams | undefined;
|
|
48
|
+
trialEndParams?: SubModifyTrialEndRequest | undefined;
|
|
31
49
|
type: SubscriptionModifyType;
|
|
32
50
|
};
|
|
33
51
|
|
|
34
52
|
/** @internal */
|
|
35
53
|
export type ExecuteSubscriptionModifyRequest$Outbound = {
|
|
54
|
+
coupon_params?: SubModifyCouponParams$Outbound | undefined;
|
|
36
55
|
grouped_invoicing_params?:
|
|
37
56
|
| SubModifyGroupedInvoicingParams$Outbound
|
|
38
57
|
| undefined;
|
|
39
58
|
inheritance_params?: SubModifyInheritanceRequest$Outbound | undefined;
|
|
40
59
|
quantity_change_params?: SubModifyQuantityChangeRequest$Outbound | undefined;
|
|
60
|
+
tax_params?: SubModifyTaxParams$Outbound | undefined;
|
|
61
|
+
trial_end_params?: SubModifyTrialEndRequest$Outbound | undefined;
|
|
41
62
|
type: string;
|
|
42
63
|
};
|
|
43
64
|
|
|
@@ -47,6 +68,7 @@ export const ExecuteSubscriptionModifyRequest$outboundSchema: z.ZodMiniType<
|
|
|
47
68
|
ExecuteSubscriptionModifyRequest
|
|
48
69
|
> = z.pipe(
|
|
49
70
|
z.object({
|
|
71
|
+
couponParams: z.optional(SubModifyCouponParams$outboundSchema),
|
|
50
72
|
groupedInvoicingParams: z.optional(
|
|
51
73
|
SubModifyGroupedInvoicingParams$outboundSchema,
|
|
52
74
|
),
|
|
@@ -54,13 +76,18 @@ export const ExecuteSubscriptionModifyRequest$outboundSchema: z.ZodMiniType<
|
|
|
54
76
|
quantityChangeParams: z.optional(
|
|
55
77
|
SubModifyQuantityChangeRequest$outboundSchema,
|
|
56
78
|
),
|
|
79
|
+
taxParams: z.optional(SubModifyTaxParams$outboundSchema),
|
|
80
|
+
trialEndParams: z.optional(SubModifyTrialEndRequest$outboundSchema),
|
|
57
81
|
type: SubscriptionModifyType$outboundSchema,
|
|
58
82
|
}),
|
|
59
83
|
z.transform((v) => {
|
|
60
84
|
return remap$(v, {
|
|
85
|
+
couponParams: "coupon_params",
|
|
61
86
|
groupedInvoicingParams: "grouped_invoicing_params",
|
|
62
87
|
inheritanceParams: "inheritance_params",
|
|
63
88
|
quantityChangeParams: "quantity_change_params",
|
|
89
|
+
taxParams: "tax_params",
|
|
90
|
+
trialEndParams: "trial_end_params",
|
|
64
91
|
});
|
|
65
92
|
}),
|
|
66
93
|
);
|
|
@@ -11,6 +11,7 @@ export const FailurePointType = {
|
|
|
11
11
|
MeterLookup: "meter_lookup",
|
|
12
12
|
PriceLookup: "price_lookup",
|
|
13
13
|
SubscriptionLineItemLookup: "subscription_line_item_lookup",
|
|
14
|
+
AttributedToCustomer: "attributed_to_customer",
|
|
14
15
|
} as const;
|
|
15
16
|
export type FailurePointType = OpenEnum<typeof FailurePointType>;
|
|
16
17
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type GetCouponAssociationRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Coupon Association ID
|
|
10
|
+
*/
|
|
11
|
+
id: string;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type GetCouponAssociationRequest$Outbound = {
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GetCouponAssociationRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
GetCouponAssociationRequest$Outbound,
|
|
22
|
+
GetCouponAssociationRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.string(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function getCouponAssociationRequestToJSON(
|
|
28
|
+
getCouponAssociationRequest: GetCouponAssociationRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
GetCouponAssociationRequest$outboundSchema.parse(
|
|
32
|
+
getCouponAssociationRequest,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -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
|
+
|
|
8
|
+
export type GetEntityIntegrationMappingsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Entity type (customer, plan, invoice, subscription, payment, credit_note, addon, item, item_price, price)
|
|
11
|
+
*/
|
|
12
|
+
entityType: string;
|
|
13
|
+
/**
|
|
14
|
+
* Entity ID
|
|
15
|
+
*/
|
|
16
|
+
entityId: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type GetEntityIntegrationMappingsRequest$Outbound = {
|
|
21
|
+
entity_type: string;
|
|
22
|
+
entity_id: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const GetEntityIntegrationMappingsRequest$outboundSchema: z.ZodMiniType<
|
|
27
|
+
GetEntityIntegrationMappingsRequest$Outbound,
|
|
28
|
+
GetEntityIntegrationMappingsRequest
|
|
29
|
+
> = z.pipe(
|
|
30
|
+
z.object({
|
|
31
|
+
entityType: z.string(),
|
|
32
|
+
entityId: z.string(),
|
|
33
|
+
}),
|
|
34
|
+
z.transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
entityType: "entity_type",
|
|
37
|
+
entityId: "entity_id",
|
|
38
|
+
});
|
|
39
|
+
}),
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
export function getEntityIntegrationMappingsRequestToJSON(
|
|
43
|
+
getEntityIntegrationMappingsRequest: GetEntityIntegrationMappingsRequest,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
GetEntityIntegrationMappingsRequest$outboundSchema.parse(
|
|
47
|
+
getEntityIntegrationMappingsRequest,
|
|
48
|
+
),
|
|
49
|
+
);
|
|
50
|
+
}
|