@flexprice/sdk 2.1.0 → 2.1.1
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/addon-association-response.md +2 -2
- package/docs/sdk/models/{addon1.md → addon-response.md} +4 -4
- package/docs/sdk/models/{addon2.md → addon.md} +3 -3
- package/docs/sdk/models/aggregated-feature.md +1 -1
- package/docs/sdk/models/alert-log-response.md +3 -3
- package/docs/sdk/models/cancel-subscription-response.md +1 -1
- package/docs/sdk/models/costsheet-response.md +1 -1
- package/docs/sdk/models/coupon-response.md +35 -0
- package/docs/sdk/models/create-addon-response.md +1 -1
- package/docs/sdk/models/create-bulk-price-response.md +3 -3
- package/docs/sdk/models/credit-note-response.md +3 -3
- package/docs/sdk/models/customer-lookup-result.md +1 -1
- package/docs/sdk/models/{customer1.md → customer-response.md} +3 -3
- package/docs/sdk/models/{customer2.md → customer.md} +3 -3
- package/docs/sdk/models/entitlement-response.md +3 -3
- package/docs/sdk/models/{feature1.md → feature-response.md} +3 -3
- package/docs/sdk/models/feature-usage-summary.md +1 -1
- package/docs/sdk/models/{feature2.md → feature.md} +3 -3
- package/docs/sdk/models/{invoice.md → invoice-response.md} +5 -5
- package/docs/sdk/models/list-addons-response.md +1 -1
- package/docs/sdk/models/list-coupons-response.md +1 -1
- package/docs/sdk/models/list-customers-response.md +1 -1
- package/docs/sdk/models/list-features-response.md +1 -1
- package/docs/sdk/models/list-invoices-response.md +1 -1
- package/docs/sdk/models/list-payments-response.md +1 -1
- package/docs/sdk/models/list-plans-response.md +1 -1
- package/docs/sdk/models/list-prices-response.md +1 -1
- package/docs/sdk/models/list-response-dto-wallet-response.md +1 -1
- package/docs/sdk/models/list-subscriptions-response.md +4 -4
- package/docs/sdk/models/{payment.md → payment-response.md} +3 -3
- package/docs/sdk/models/{plan1.md → plan-response.md} +4 -4
- package/docs/sdk/models/{plan2.md → plan.md} +3 -3
- package/docs/sdk/models/{price.md → price-response.md} +5 -5
- package/docs/sdk/models/subscription-change-execute-response.md +1 -1
- package/docs/sdk/models/subscription-line-item-response.md +1 -1
- package/docs/sdk/models/subscription-response-v2.md +2 -2
- package/docs/sdk/models/{subscription.md → subscription-response.md} +6 -6
- package/docs/sdk/models/tenant-billing-usage.md +1 -1
- package/docs/sdk/models/top-up-wallet-response.md +1 -1
- package/docs/sdk/models/usage-analytic-item.md +4 -4
- package/docs/sdk/models/{wallet.md → wallet-response.md} +3 -3
- package/docs/sdk/models/wallet-transaction-response.md +2 -2
- package/docs/sdk/models/webhook-dto-alert-webhook-payload.md +3 -3
- package/docs/sdk/models/webhook-dto-communication-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-customer-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-feature-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-invoice-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-payment-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-subscription-webhook-payload.md +4 -4
- package/docs/sdk/models/webhook-dto-transaction-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-wallet-webhook-payload.md +2 -2
- package/docs/sdks/addons/README.md +3 -3
- package/docs/sdks/coupons/README.md +3 -3
- package/docs/sdks/customers/README.md +4 -4
- package/docs/sdks/features/README.md +2 -2
- package/docs/sdks/invoices/README.md +6 -6
- package/docs/sdks/payments/README.md +4 -4
- package/docs/sdks/plans/README.md +4 -4
- package/docs/sdks/prices/README.md +4 -4
- package/docs/sdks/subscriptions/README.md +5 -5
- package/docs/sdks/wallets/README.md +6 -6
- package/esm/funcs/addons-get-addon-by-lookup-key.d.ts +1 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.d.ts.map +1 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.js +1 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.js.map +1 -1
- package/esm/funcs/addons-get-addon.d.ts +1 -1
- package/esm/funcs/addons-get-addon.d.ts.map +1 -1
- package/esm/funcs/addons-get-addon.js +1 -1
- package/esm/funcs/addons-get-addon.js.map +1 -1
- package/esm/funcs/addons-update-addon.d.ts +1 -1
- package/esm/funcs/addons-update-addon.d.ts.map +1 -1
- package/esm/funcs/addons-update-addon.js +1 -1
- package/esm/funcs/addons-update-addon.js.map +1 -1
- package/esm/funcs/coupons-create-coupon.d.ts +1 -1
- package/esm/funcs/coupons-create-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-create-coupon.js +1 -1
- package/esm/funcs/coupons-create-coupon.js.map +1 -1
- package/esm/funcs/coupons-get-coupon.d.ts +1 -1
- package/esm/funcs/coupons-get-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-get-coupon.js +1 -1
- package/esm/funcs/coupons-get-coupon.js.map +1 -1
- package/esm/funcs/coupons-update-coupon.d.ts +1 -1
- package/esm/funcs/coupons-update-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-update-coupon.js +1 -1
- package/esm/funcs/coupons-update-coupon.js.map +1 -1
- package/esm/funcs/customers-create-customer.d.ts +1 -1
- package/esm/funcs/customers-create-customer.d.ts.map +1 -1
- package/esm/funcs/customers-create-customer.js +1 -1
- package/esm/funcs/customers-create-customer.js.map +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.d.ts +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.js +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.js.map +1 -1
- package/esm/funcs/customers-get-customer.d.ts +1 -1
- package/esm/funcs/customers-get-customer.d.ts.map +1 -1
- package/esm/funcs/customers-get-customer.js +1 -1
- package/esm/funcs/customers-get-customer.js.map +1 -1
- package/esm/funcs/customers-update-customer.d.ts +1 -1
- package/esm/funcs/customers-update-customer.d.ts.map +1 -1
- package/esm/funcs/customers-update-customer.js +1 -1
- package/esm/funcs/customers-update-customer.js.map +1 -1
- package/esm/funcs/features-create-feature.d.ts +1 -1
- package/esm/funcs/features-create-feature.d.ts.map +1 -1
- package/esm/funcs/features-create-feature.js +1 -1
- package/esm/funcs/features-create-feature.js.map +1 -1
- package/esm/funcs/features-update-feature.d.ts +1 -1
- package/esm/funcs/features-update-feature.d.ts.map +1 -1
- package/esm/funcs/features-update-feature.js +1 -1
- package/esm/funcs/features-update-feature.js.map +1 -1
- package/esm/funcs/invoices-create-invoice.d.ts +1 -1
- package/esm/funcs/invoices-create-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-create-invoice.js +1 -1
- package/esm/funcs/invoices-create-invoice.js.map +1 -1
- package/esm/funcs/invoices-get-invoice-preview.d.ts +1 -1
- package/esm/funcs/invoices-get-invoice-preview.d.ts.map +1 -1
- package/esm/funcs/invoices-get-invoice-preview.js +1 -1
- package/esm/funcs/invoices-get-invoice-preview.js.map +1 -1
- package/esm/funcs/invoices-get-invoice.d.ts +1 -1
- package/esm/funcs/invoices-get-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-get-invoice.js +1 -1
- package/esm/funcs/invoices-get-invoice.js.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.d.ts +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.d.ts.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.js +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.js.map +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.d.ts +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.d.ts.map +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.js +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.js.map +1 -1
- package/esm/funcs/invoices-update-invoice.d.ts +1 -1
- package/esm/funcs/invoices-update-invoice.d.ts.map +1 -1
- package/esm/funcs/invoices-update-invoice.js +1 -1
- package/esm/funcs/invoices-update-invoice.js.map +1 -1
- package/esm/funcs/payments-create-payment.d.ts +1 -1
- package/esm/funcs/payments-create-payment.d.ts.map +1 -1
- package/esm/funcs/payments-create-payment.js +1 -1
- package/esm/funcs/payments-create-payment.js.map +1 -1
- package/esm/funcs/payments-get-payment.d.ts +1 -1
- package/esm/funcs/payments-get-payment.d.ts.map +1 -1
- package/esm/funcs/payments-get-payment.js +1 -1
- package/esm/funcs/payments-get-payment.js.map +1 -1
- package/esm/funcs/payments-process-payment.d.ts +1 -1
- package/esm/funcs/payments-process-payment.d.ts.map +1 -1
- package/esm/funcs/payments-process-payment.js +1 -1
- package/esm/funcs/payments-process-payment.js.map +1 -1
- package/esm/funcs/payments-update-payment.d.ts +1 -1
- package/esm/funcs/payments-update-payment.d.ts.map +1 -1
- package/esm/funcs/payments-update-payment.js +1 -1
- package/esm/funcs/payments-update-payment.js.map +1 -1
- package/esm/funcs/plans-create-plan.d.ts +1 -1
- package/esm/funcs/plans-create-plan.d.ts.map +1 -1
- package/esm/funcs/plans-create-plan.js +1 -1
- package/esm/funcs/plans-create-plan.js.map +1 -1
- package/esm/funcs/plans-get-plan.d.ts +1 -1
- package/esm/funcs/plans-get-plan.d.ts.map +1 -1
- package/esm/funcs/plans-get-plan.js +1 -1
- package/esm/funcs/plans-get-plan.js.map +1 -1
- package/esm/funcs/plans-post-plans-id-clone.d.ts +1 -1
- package/esm/funcs/plans-post-plans-id-clone.d.ts.map +1 -1
- package/esm/funcs/plans-post-plans-id-clone.js +1 -1
- package/esm/funcs/plans-post-plans-id-clone.js.map +1 -1
- package/esm/funcs/plans-update-plan.d.ts +1 -1
- package/esm/funcs/plans-update-plan.d.ts.map +1 -1
- package/esm/funcs/plans-update-plan.js +1 -1
- package/esm/funcs/plans-update-plan.js.map +1 -1
- package/esm/funcs/prices-create-price.d.ts +1 -1
- package/esm/funcs/prices-create-price.d.ts.map +1 -1
- package/esm/funcs/prices-create-price.js +1 -1
- package/esm/funcs/prices-create-price.js.map +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.d.ts +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.d.ts.map +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.js +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.js.map +1 -1
- package/esm/funcs/prices-get-price.d.ts +1 -1
- package/esm/funcs/prices-get-price.d.ts.map +1 -1
- package/esm/funcs/prices-get-price.js +1 -1
- package/esm/funcs/prices-get-price.js.map +1 -1
- package/esm/funcs/prices-update-price.d.ts +1 -1
- package/esm/funcs/prices-update-price.d.ts.map +1 -1
- package/esm/funcs/prices-update-price.js +1 -1
- package/esm/funcs/prices-update-price.js.map +1 -1
- package/esm/funcs/subscriptions-activate-subscription.d.ts +1 -1
- package/esm/funcs/subscriptions-activate-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-activate-subscription.js +1 -1
- package/esm/funcs/subscriptions-activate-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-create-subscription.d.ts +1 -1
- package/esm/funcs/subscriptions-create-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-create-subscription.js +1 -1
- package/esm/funcs/subscriptions-create-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.d.ts +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.d.ts.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.js +1 -1
- package/esm/funcs/subscriptions-execute-subscription-modify.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription.d.ts +1 -1
- package/esm/funcs/subscriptions-get-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-get-subscription.js +1 -1
- package/esm/funcs/subscriptions-get-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-update-subscription.d.ts +1 -1
- package/esm/funcs/subscriptions-update-subscription.d.ts.map +1 -1
- package/esm/funcs/subscriptions-update-subscription.js +1 -1
- package/esm/funcs/subscriptions-update-subscription.js.map +1 -1
- package/esm/funcs/wallets-create-wallet.d.ts +1 -1
- package/esm/funcs/wallets-create-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-create-wallet.js +1 -1
- package/esm/funcs/wallets-create-wallet.js.map +1 -1
- package/esm/funcs/wallets-get-customer-wallets.d.ts +1 -1
- package/esm/funcs/wallets-get-customer-wallets.d.ts.map +1 -1
- package/esm/funcs/wallets-get-customer-wallets.js +1 -1
- package/esm/funcs/wallets-get-customer-wallets.js.map +1 -1
- package/esm/funcs/wallets-get-wallet.d.ts +1 -1
- package/esm/funcs/wallets-get-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-get-wallet.js +1 -1
- package/esm/funcs/wallets-get-wallet.js.map +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.d.ts +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.d.ts.map +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.js +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.js.map +1 -1
- package/esm/funcs/wallets-terminate-wallet.d.ts +1 -1
- package/esm/funcs/wallets-terminate-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-terminate-wallet.js +1 -1
- package/esm/funcs/wallets-terminate-wallet.js.map +1 -1
- package/esm/funcs/wallets-update-wallet.d.ts +1 -1
- package/esm/funcs/wallets-update-wallet.d.ts.map +1 -1
- package/esm/funcs/wallets-update-wallet.js +1 -1
- package/esm/funcs/wallets-update-wallet.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/sdk/addons.d.ts +3 -3
- package/esm/sdk/addons.d.ts.map +1 -1
- package/esm/sdk/addons.js.map +1 -1
- package/esm/sdk/coupons.d.ts +3 -3
- package/esm/sdk/coupons.d.ts.map +1 -1
- package/esm/sdk/coupons.js.map +1 -1
- package/esm/sdk/customer-portal.d.ts +4 -4
- package/esm/sdk/customer-portal.d.ts.map +1 -1
- package/esm/sdk/customers.d.ts +4 -4
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/features.d.ts +2 -2
- package/esm/sdk/features.d.ts.map +1 -1
- package/esm/sdk/features.js.map +1 -1
- package/esm/sdk/invoices.d.ts +6 -6
- package/esm/sdk/invoices.d.ts.map +1 -1
- package/esm/sdk/invoices.js.map +1 -1
- package/esm/sdk/models/addon-association-response.d.ts +4 -4
- package/esm/sdk/models/addon-association-response.d.ts.map +1 -1
- package/esm/sdk/models/addon-association-response.js +4 -4
- package/esm/sdk/models/addon-association-response.js.map +1 -1
- package/esm/sdk/models/{addon-1.d.ts → addon-response.d.ts} +6 -6
- package/esm/sdk/models/addon-response.d.ts.map +1 -0
- package/esm/sdk/models/{addon-1.js → addon-response.js} +6 -6
- package/esm/sdk/models/addon-response.js.map +1 -0
- package/esm/sdk/models/{addon-2.d.ts → addon.d.ts} +4 -4
- package/esm/sdk/models/addon.d.ts.map +1 -0
- package/esm/sdk/models/{addon-2.js → addon.js} +4 -4
- package/esm/sdk/models/addon.js.map +1 -0
- package/esm/sdk/models/aggregated-feature.d.ts +2 -2
- package/esm/sdk/models/aggregated-feature.d.ts.map +1 -1
- package/esm/sdk/models/aggregated-feature.js +2 -2
- package/esm/sdk/models/aggregated-feature.js.map +1 -1
- package/esm/sdk/models/alert-log-response.d.ts +6 -6
- package/esm/sdk/models/alert-log-response.d.ts.map +1 -1
- package/esm/sdk/models/alert-log-response.js +6 -6
- package/esm/sdk/models/alert-log-response.js.map +1 -1
- package/esm/sdk/models/cancel-subscription-response.d.ts +2 -2
- package/esm/sdk/models/cancel-subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/cancel-subscription-response.js +2 -2
- package/esm/sdk/models/cancel-subscription-response.js.map +1 -1
- package/esm/sdk/models/costsheet-response.d.ts +2 -2
- package/esm/sdk/models/costsheet-response.d.ts.map +1 -1
- package/esm/sdk/models/costsheet-response.js +2 -2
- package/esm/sdk/models/costsheet-response.js.map +1 -1
- package/esm/sdk/models/coupon-response.d.ts +37 -0
- package/esm/sdk/models/coupon-response.d.ts.map +1 -0
- package/esm/sdk/models/coupon-response.js +54 -0
- package/esm/sdk/models/coupon-response.js.map +1 -0
- package/esm/sdk/models/create-addon-response.d.ts +2 -2
- package/esm/sdk/models/create-addon-response.d.ts.map +1 -1
- package/esm/sdk/models/create-addon-response.js +2 -2
- package/esm/sdk/models/create-addon-response.js.map +1 -1
- package/esm/sdk/models/create-bulk-price-response.d.ts +2 -2
- package/esm/sdk/models/create-bulk-price-response.d.ts.map +1 -1
- package/esm/sdk/models/create-bulk-price-response.js +2 -2
- package/esm/sdk/models/create-bulk-price-response.js.map +1 -1
- package/esm/sdk/models/credit-note-response.d.ts +6 -6
- package/esm/sdk/models/credit-note-response.d.ts.map +1 -1
- package/esm/sdk/models/credit-note-response.js +6 -6
- package/esm/sdk/models/credit-note-response.js.map +1 -1
- package/esm/sdk/models/customer-lookup-result.d.ts +2 -2
- package/esm/sdk/models/customer-lookup-result.d.ts.map +1 -1
- package/esm/sdk/models/customer-lookup-result.js +2 -2
- package/esm/sdk/models/customer-lookup-result.js.map +1 -1
- package/esm/sdk/models/{customer-1.d.ts → customer-response.d.ts} +4 -4
- package/esm/sdk/models/customer-response.d.ts.map +1 -0
- package/esm/sdk/models/{customer-1.js → customer-response.js} +4 -5
- package/esm/sdk/models/customer-response.js.map +1 -0
- package/esm/sdk/models/{customer-2.d.ts → customer.d.ts} +4 -4
- package/esm/sdk/models/customer.d.ts.map +1 -0
- package/esm/sdk/models/{customer-2.js → customer.js} +4 -5
- package/esm/sdk/models/customer.js.map +1 -0
- package/esm/sdk/models/entitlement-response.d.ts +6 -6
- package/esm/sdk/models/entitlement-response.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-response.js +6 -6
- package/esm/sdk/models/entitlement-response.js.map +1 -1
- package/esm/sdk/models/{feature-1.d.ts → feature-response.d.ts} +4 -4
- package/esm/sdk/models/feature-response.d.ts.map +1 -0
- package/esm/sdk/models/{feature-1.js → feature-response.js} +4 -4
- package/esm/sdk/models/feature-response.js.map +1 -0
- package/esm/sdk/models/feature-usage-summary.d.ts +2 -2
- package/esm/sdk/models/feature-usage-summary.d.ts.map +1 -1
- package/esm/sdk/models/feature-usage-summary.js +2 -2
- package/esm/sdk/models/feature-usage-summary.js.map +1 -1
- package/esm/sdk/models/{feature-2.d.ts → feature.d.ts} +4 -4
- package/esm/sdk/models/feature.d.ts.map +1 -0
- package/esm/sdk/models/{feature-2.js → feature.js} +4 -4
- package/esm/sdk/models/feature.js.map +1 -0
- package/esm/sdk/models/index.d.ts +14 -13
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +14 -13
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/{invoice.d.ts → invoice-response.d.ts} +8 -8
- package/esm/sdk/models/invoice-response.d.ts.map +1 -0
- package/esm/sdk/models/{invoice.js → invoice-response.js} +8 -8
- package/esm/sdk/models/invoice-response.js.map +1 -0
- package/esm/sdk/models/list-addons-response.d.ts +2 -2
- package/esm/sdk/models/list-addons-response.d.ts.map +1 -1
- package/esm/sdk/models/list-addons-response.js +2 -2
- package/esm/sdk/models/list-addons-response.js.map +1 -1
- package/esm/sdk/models/list-coupons-response.d.ts +2 -2
- package/esm/sdk/models/list-coupons-response.d.ts.map +1 -1
- package/esm/sdk/models/list-coupons-response.js +2 -2
- package/esm/sdk/models/list-coupons-response.js.map +1 -1
- package/esm/sdk/models/list-customers-response.d.ts +2 -2
- package/esm/sdk/models/list-customers-response.d.ts.map +1 -1
- package/esm/sdk/models/list-customers-response.js +2 -2
- package/esm/sdk/models/list-customers-response.js.map +1 -1
- package/esm/sdk/models/list-features-response.d.ts +2 -2
- package/esm/sdk/models/list-features-response.d.ts.map +1 -1
- package/esm/sdk/models/list-features-response.js +2 -2
- package/esm/sdk/models/list-features-response.js.map +1 -1
- package/esm/sdk/models/list-invoices-response.d.ts +2 -2
- package/esm/sdk/models/list-invoices-response.d.ts.map +1 -1
- package/esm/sdk/models/list-invoices-response.js +2 -2
- package/esm/sdk/models/list-invoices-response.js.map +1 -1
- package/esm/sdk/models/list-payments-response.d.ts +2 -2
- package/esm/sdk/models/list-payments-response.d.ts.map +1 -1
- package/esm/sdk/models/list-payments-response.js +2 -2
- package/esm/sdk/models/list-payments-response.js.map +1 -1
- package/esm/sdk/models/list-plans-response.d.ts +2 -2
- package/esm/sdk/models/list-plans-response.d.ts.map +1 -1
- package/esm/sdk/models/list-plans-response.js +2 -2
- package/esm/sdk/models/list-plans-response.js.map +1 -1
- package/esm/sdk/models/list-prices-response.d.ts +2 -2
- package/esm/sdk/models/list-prices-response.d.ts.map +1 -1
- package/esm/sdk/models/list-prices-response.js +2 -2
- package/esm/sdk/models/list-prices-response.js.map +1 -1
- package/esm/sdk/models/list-response-dto-wallet-response.d.ts +2 -2
- package/esm/sdk/models/list-response-dto-wallet-response.d.ts.map +1 -1
- package/esm/sdk/models/list-response-dto-wallet-response.js +2 -2
- package/esm/sdk/models/list-response-dto-wallet-response.js.map +1 -1
- package/esm/sdk/models/list-subscriptions-response.d.ts +2 -2
- package/esm/sdk/models/list-subscriptions-response.d.ts.map +1 -1
- package/esm/sdk/models/list-subscriptions-response.js +2 -2
- package/esm/sdk/models/list-subscriptions-response.js.map +1 -1
- package/esm/sdk/models/{payment.d.ts → payment-response.d.ts} +4 -4
- package/esm/sdk/models/payment-response.d.ts.map +1 -0
- package/esm/sdk/models/{payment.js → payment-response.js} +4 -4
- package/esm/sdk/models/payment-response.js.map +1 -0
- package/esm/sdk/models/{plan-1.d.ts → plan-response.d.ts} +6 -6
- package/esm/sdk/models/plan-response.d.ts.map +1 -0
- package/esm/sdk/models/{plan-1.js → plan-response.js} +6 -6
- package/esm/sdk/models/plan-response.js.map +1 -0
- package/esm/sdk/models/{plan-2.d.ts → plan.d.ts} +4 -4
- package/esm/sdk/models/plan.d.ts.map +1 -0
- package/esm/sdk/models/{plan-2.js → plan.js} +4 -4
- package/esm/sdk/models/plan.js.map +1 -0
- package/esm/sdk/models/{price.d.ts → price-response.d.ts} +8 -8
- package/esm/sdk/models/price-response.d.ts.map +1 -0
- package/esm/sdk/models/{price.js → price-response.js} +8 -8
- package/esm/sdk/models/price-response.js.map +1 -0
- package/esm/sdk/models/subscription-change-execute-response.d.ts +2 -2
- package/esm/sdk/models/subscription-change-execute-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-change-execute-response.js +2 -2
- package/esm/sdk/models/subscription-change-execute-response.js.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.d.ts +2 -2
- package/esm/sdk/models/subscription-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-response.js +2 -2
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-response-v2.d.ts +4 -4
- package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response-v2.js +4 -4
- package/esm/sdk/models/subscription-response-v2.js.map +1 -1
- package/esm/sdk/models/{subscription.d.ts → subscription-response.d.ts} +10 -10
- package/esm/sdk/models/subscription-response.d.ts.map +1 -0
- package/esm/sdk/models/{subscription.js → subscription-response.js} +10 -10
- package/esm/sdk/models/subscription-response.js.map +1 -0
- package/esm/sdk/models/tenant-billing-usage.d.ts +2 -2
- package/esm/sdk/models/tenant-billing-usage.d.ts.map +1 -1
- package/esm/sdk/models/tenant-billing-usage.js +2 -2
- package/esm/sdk/models/tenant-billing-usage.js.map +1 -1
- package/esm/sdk/models/top-up-wallet-response.d.ts +2 -2
- package/esm/sdk/models/top-up-wallet-response.d.ts.map +1 -1
- package/esm/sdk/models/top-up-wallet-response.js +2 -2
- package/esm/sdk/models/top-up-wallet-response.js.map +1 -1
- package/esm/sdk/models/usage-analytic-item.d.ts +8 -8
- package/esm/sdk/models/usage-analytic-item.d.ts.map +1 -1
- package/esm/sdk/models/usage-analytic-item.js +8 -8
- package/esm/sdk/models/usage-analytic-item.js.map +1 -1
- package/esm/sdk/models/{wallet.d.ts → wallet-response.d.ts} +4 -4
- package/esm/sdk/models/wallet-response.d.ts.map +1 -0
- package/esm/sdk/models/{wallet.js → wallet-response.js} +4 -4
- package/esm/sdk/models/wallet-response.js.map +1 -0
- package/esm/sdk/models/wallet-transaction-response.d.ts +4 -4
- package/esm/sdk/models/wallet-transaction-response.d.ts.map +1 -1
- package/esm/sdk/models/wallet-transaction-response.js +4 -4
- package/esm/sdk/models/wallet-transaction-response.js.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts +6 -6
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js +6 -6
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts +4 -4
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js +4 -4
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js.map +1 -1
- package/esm/sdk/payments.d.ts +4 -4
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/plans.d.ts +4 -4
- package/esm/sdk/plans.d.ts.map +1 -1
- package/esm/sdk/plans.js.map +1 -1
- package/esm/sdk/prices.d.ts +4 -4
- package/esm/sdk/prices.d.ts.map +1 -1
- package/esm/sdk/prices.js.map +1 -1
- package/esm/sdk/subscriptions.d.ts +5 -5
- package/esm/sdk/subscriptions.d.ts.map +1 -1
- package/esm/sdk/subscriptions.js.map +1 -1
- package/esm/sdk/wallets.d.ts +6 -6
- package/esm/sdk/wallets.d.ts.map +1 -1
- package/esm/sdk/wallets.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/addons-get-addon-by-lookup-key.ts +4 -4
- package/src/funcs/addons-get-addon.ts +4 -4
- package/src/funcs/addons-update-addon.ts +4 -4
- package/src/funcs/coupons-create-coupon.ts +4 -4
- package/src/funcs/coupons-get-coupon.ts +4 -4
- package/src/funcs/coupons-update-coupon.ts +4 -4
- package/src/funcs/customers-create-customer.ts +4 -4
- package/src/funcs/customers-get-customer-by-external-id.ts +4 -4
- package/src/funcs/customers-get-customer.ts +4 -4
- package/src/funcs/customers-update-customer.ts +4 -4
- package/src/funcs/features-create-feature.ts +4 -4
- package/src/funcs/features-update-feature.ts +4 -4
- package/src/funcs/invoices-create-invoice.ts +4 -4
- package/src/funcs/invoices-get-invoice-preview.ts +4 -4
- package/src/funcs/invoices-get-invoice.ts +4 -4
- package/src/funcs/invoices-recalculate-invoice-v2.ts +4 -4
- package/src/funcs/invoices-update-invoice-payment-status.ts +4 -4
- package/src/funcs/invoices-update-invoice.ts +4 -4
- package/src/funcs/payments-create-payment.ts +4 -4
- package/src/funcs/payments-get-payment.ts +4 -4
- package/src/funcs/payments-process-payment.ts +4 -4
- package/src/funcs/payments-update-payment.ts +4 -4
- package/src/funcs/plans-create-plan.ts +4 -4
- package/src/funcs/plans-get-plan.ts +4 -4
- package/src/funcs/plans-post-plans-id-clone.ts +4 -4
- package/src/funcs/plans-update-plan.ts +4 -4
- package/src/funcs/prices-create-price.ts +4 -4
- package/src/funcs/prices-get-price-by-lookup-key.ts +4 -4
- package/src/funcs/prices-get-price.ts +4 -4
- package/src/funcs/prices-update-price.ts +4 -4
- package/src/funcs/subscriptions-activate-subscription.ts +4 -4
- package/src/funcs/subscriptions-create-subscription.ts +4 -4
- package/src/funcs/subscriptions-execute-subscription-modify.ts +4 -4
- package/src/funcs/subscriptions-get-subscription.ts +4 -4
- package/src/funcs/subscriptions-update-subscription.ts +4 -4
- package/src/funcs/wallets-create-wallet.ts +4 -4
- package/src/funcs/wallets-get-customer-wallets.ts +4 -4
- package/src/funcs/wallets-get-wallet.ts +4 -4
- package/src/funcs/wallets-get-wallets-by-customer-id.ts +4 -4
- package/src/funcs/wallets-terminate-wallet.ts +4 -4
- package/src/funcs/wallets-update-wallet.ts +4 -4
- package/src/lib/config.ts +2 -2
- package/src/sdk/addons.ts +3 -3
- package/src/sdk/coupons.ts +3 -3
- package/src/sdk/customer-portal.ts +6 -6
- package/src/sdk/customers.ts +4 -4
- package/src/sdk/features.ts +2 -2
- package/src/sdk/invoices.ts +6 -6
- package/src/sdk/models/addon-association-response.ts +12 -6
- package/src/sdk/models/{addon-1.ts → addon-response.ts} +18 -12
- package/src/sdk/models/{addon-2.ts → addon.ts} +6 -6
- package/src/sdk/models/aggregated-feature.ts +6 -3
- package/src/sdk/models/alert-log-response.ts +18 -9
- package/src/sdk/models/cancel-subscription-response.ts +6 -3
- package/src/sdk/models/costsheet-response.ts +6 -3
- package/src/sdk/models/coupon-response.ts +97 -0
- package/src/sdk/models/create-addon-response.ts +6 -3
- package/src/sdk/models/create-bulk-price-response.ts +6 -3
- package/src/sdk/models/credit-note-response.ts +15 -9
- package/src/sdk/models/customer-lookup-result.ts +3 -3
- package/src/sdk/models/{customer-1.ts → customer-response.ts} +50 -48
- package/src/sdk/models/{customer-2.ts → customer.ts} +44 -45
- package/src/sdk/models/entitlement-response.ts +15 -9
- package/src/sdk/models/{feature-1.ts → feature-response.ts} +9 -6
- package/src/sdk/models/feature-usage-summary.ts +6 -3
- package/src/sdk/models/{feature-2.ts → feature.ts} +6 -6
- package/src/sdk/models/index.ts +14 -13
- package/src/sdk/models/{invoice.ts → invoice-response.ts} +23 -12
- package/src/sdk/models/list-addons-response.ts +6 -3
- package/src/sdk/models/list-coupons-response.ts +6 -3
- package/src/sdk/models/list-customers-response.ts +6 -3
- package/src/sdk/models/list-features-response.ts +6 -3
- package/src/sdk/models/list-invoices-response.ts +6 -3
- package/src/sdk/models/list-payments-response.ts +6 -3
- package/src/sdk/models/list-plans-response.ts +3 -3
- package/src/sdk/models/list-prices-response.ts +6 -3
- package/src/sdk/models/list-response-dto-wallet-response.ts +6 -3
- package/src/sdk/models/list-subscriptions-response.ts +6 -3
- package/src/sdk/models/{payment.ts → payment-response.ts} +9 -6
- package/src/sdk/models/plan-response.ts +95 -0
- package/src/sdk/models/{plan-2.ts → plan.ts} +6 -6
- package/src/sdk/models/{price.ts → price-response.ts} +18 -12
- package/src/sdk/models/subscription-change-execute-response.ts +6 -3
- package/src/sdk/models/subscription-line-item-response.ts +6 -3
- package/src/sdk/models/subscription-response-v2.ts +9 -6
- package/src/sdk/models/{subscription.ts → subscription-response.ts} +129 -121
- package/src/sdk/models/tenant-billing-usage.ts +6 -3
- package/src/sdk/models/top-up-wallet-response.ts +6 -3
- package/src/sdk/models/usage-analytic-item.ts +15 -12
- package/src/sdk/models/{wallet.ts → wallet-response.ts} +9 -6
- package/src/sdk/models/wallet-transaction-response.ts +12 -6
- package/src/sdk/models/webhook-dto-alert-webhook-payload.ts +18 -9
- package/src/sdk/models/webhook-dto-communication-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-customer-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-feature-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-invoice-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-payment-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-subscription-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-transaction-webhook-payload.ts +6 -3
- package/src/sdk/models/webhook-dto-wallet-webhook-payload.ts +12 -6
- package/src/sdk/payments.ts +4 -4
- package/src/sdk/plans.ts +4 -4
- package/src/sdk/prices.ts +4 -4
- package/src/sdk/subscriptions.ts +5 -5
- package/src/sdk/wallets.ts +6 -6
- package/esm/sdk/models/addon-1.d.ts.map +0 -1
- package/esm/sdk/models/addon-1.js.map +0 -1
- package/esm/sdk/models/addon-2.d.ts.map +0 -1
- package/esm/sdk/models/addon-2.js.map +0 -1
- package/esm/sdk/models/customer-1.d.ts.map +0 -1
- package/esm/sdk/models/customer-1.js.map +0 -1
- package/esm/sdk/models/customer-2.d.ts.map +0 -1
- package/esm/sdk/models/customer-2.js.map +0 -1
- package/esm/sdk/models/feature-1.d.ts.map +0 -1
- package/esm/sdk/models/feature-1.js.map +0 -1
- package/esm/sdk/models/feature-2.d.ts.map +0 -1
- package/esm/sdk/models/feature-2.js.map +0 -1
- package/esm/sdk/models/invoice.d.ts.map +0 -1
- package/esm/sdk/models/invoice.js.map +0 -1
- package/esm/sdk/models/payment.d.ts.map +0 -1
- package/esm/sdk/models/payment.js.map +0 -1
- package/esm/sdk/models/plan-1.d.ts.map +0 -1
- package/esm/sdk/models/plan-1.js.map +0 -1
- package/esm/sdk/models/plan-2.d.ts.map +0 -1
- package/esm/sdk/models/plan-2.js.map +0 -1
- package/esm/sdk/models/price.d.ts.map +0 -1
- package/esm/sdk/models/price.js.map +0 -1
- package/esm/sdk/models/subscription.d.ts.map +0 -1
- package/esm/sdk/models/subscription.js.map +0 -1
- package/esm/sdk/models/wallet.d.ts.map +0 -1
- package/esm/sdk/models/wallet.js.map +0 -1
- package/src/sdk/models/plan-1.ts +0 -89
|
@@ -37,7 +37,7 @@ export function pricesGetPrice(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.PriceResponse,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
models.
|
|
66
|
+
models.PriceResponse,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
const [result] = await M.match<
|
|
157
|
-
models.
|
|
157
|
+
models.PriceResponse,
|
|
158
158
|
| models.ErrorsErrorResponse
|
|
159
159
|
| FlexPriceError
|
|
160
160
|
| ResponseValidationError
|
|
@@ -165,7 +165,7 @@ async function $do(
|
|
|
165
165
|
| UnexpectedClientError
|
|
166
166
|
| SDKValidationError
|
|
167
167
|
>(
|
|
168
|
-
M.json(200, models.
|
|
168
|
+
M.json(200, models.PriceResponse$inboundSchema),
|
|
169
169
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
170
170
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
171
171
|
M.fail("4XX"),
|
|
@@ -38,7 +38,7 @@ export function pricesUpdatePrice(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
models.
|
|
41
|
+
models.PriceResponse,
|
|
42
42
|
| models.ErrorsErrorResponse
|
|
43
43
|
| FlexPriceError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
models.
|
|
69
|
+
models.PriceResponse,
|
|
70
70
|
| models.ErrorsErrorResponse
|
|
71
71
|
| FlexPriceError
|
|
72
72
|
| ResponseValidationError
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
const [result] = await M.match<
|
|
162
|
-
models.
|
|
162
|
+
models.PriceResponse,
|
|
163
163
|
| models.ErrorsErrorResponse
|
|
164
164
|
| FlexPriceError
|
|
165
165
|
| ResponseValidationError
|
|
@@ -170,7 +170,7 @@ async function $do(
|
|
|
170
170
|
| UnexpectedClientError
|
|
171
171
|
| SDKValidationError
|
|
172
172
|
>(
|
|
173
|
-
M.json(200, models.
|
|
173
|
+
M.json(200, models.PriceResponse$inboundSchema),
|
|
174
174
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
175
175
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
176
176
|
M.fail("4XX"),
|
|
@@ -38,7 +38,7 @@ export function subscriptionsActivateSubscription(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
models.
|
|
41
|
+
models.SubscriptionResponse,
|
|
42
42
|
| models.ErrorsErrorResponse
|
|
43
43
|
| FlexPriceError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
models.
|
|
69
|
+
models.SubscriptionResponse,
|
|
70
70
|
| models.ErrorsErrorResponse
|
|
71
71
|
| FlexPriceError
|
|
72
72
|
| ResponseValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
const [result] = await M.match<
|
|
163
|
-
models.
|
|
163
|
+
models.SubscriptionResponse,
|
|
164
164
|
| models.ErrorsErrorResponse
|
|
165
165
|
| FlexPriceError
|
|
166
166
|
| ResponseValidationError
|
|
@@ -171,7 +171,7 @@ async function $do(
|
|
|
171
171
|
| UnexpectedClientError
|
|
172
172
|
| SDKValidationError
|
|
173
173
|
>(
|
|
174
|
-
M.json(200, models.
|
|
174
|
+
M.json(200, models.SubscriptionResponse$inboundSchema),
|
|
175
175
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
176
176
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
177
177
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function subscriptionsCreateSubscription(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.SubscriptionResponse,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
models.
|
|
66
|
+
models.SubscriptionResponse,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
const [result] = await M.match<
|
|
148
|
-
models.
|
|
148
|
+
models.SubscriptionResponse,
|
|
149
149
|
| models.ErrorsErrorResponse
|
|
150
150
|
| FlexPriceError
|
|
151
151
|
| ResponseValidationError
|
|
@@ -156,7 +156,7 @@ async function $do(
|
|
|
156
156
|
| UnexpectedClientError
|
|
157
157
|
| SDKValidationError
|
|
158
158
|
>(
|
|
159
|
-
M.json(201, models.
|
|
159
|
+
M.json(201, models.SubscriptionResponse$inboundSchema),
|
|
160
160
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
161
161
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
162
162
|
M.fail("4XX"),
|
|
@@ -38,7 +38,7 @@ export function subscriptionsExecuteSubscriptionModify(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
models.
|
|
41
|
+
models.SubscriptionResponse,
|
|
42
42
|
| models.ErrorsErrorResponse
|
|
43
43
|
| FlexPriceError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
models.
|
|
69
|
+
models.SubscriptionResponse,
|
|
70
70
|
| models.ErrorsErrorResponse
|
|
71
71
|
| FlexPriceError
|
|
72
72
|
| ResponseValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
const [result] = await M.match<
|
|
163
|
-
models.
|
|
163
|
+
models.SubscriptionResponse,
|
|
164
164
|
| models.ErrorsErrorResponse
|
|
165
165
|
| FlexPriceError
|
|
166
166
|
| ResponseValidationError
|
|
@@ -171,7 +171,7 @@ async function $do(
|
|
|
171
171
|
| UnexpectedClientError
|
|
172
172
|
| SDKValidationError
|
|
173
173
|
>(
|
|
174
|
-
M.json(200, models.
|
|
174
|
+
M.json(200, models.SubscriptionResponse$inboundSchema),
|
|
175
175
|
M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema),
|
|
176
176
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
177
177
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function subscriptionsGetSubscription(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.SubscriptionResponse,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
models.
|
|
66
|
+
models.SubscriptionResponse,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
const [result] = await M.match<
|
|
157
|
-
models.
|
|
157
|
+
models.SubscriptionResponse,
|
|
158
158
|
| models.ErrorsErrorResponse
|
|
159
159
|
| FlexPriceError
|
|
160
160
|
| ResponseValidationError
|
|
@@ -165,7 +165,7 @@ async function $do(
|
|
|
165
165
|
| UnexpectedClientError
|
|
166
166
|
| SDKValidationError
|
|
167
167
|
>(
|
|
168
|
-
M.json(200, models.
|
|
168
|
+
M.json(200, models.SubscriptionResponse$inboundSchema),
|
|
169
169
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
170
170
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
171
171
|
M.fail("4XX"),
|
|
@@ -38,7 +38,7 @@ export function subscriptionsUpdateSubscription(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
models.
|
|
41
|
+
models.SubscriptionResponse,
|
|
42
42
|
| models.ErrorsErrorResponse
|
|
43
43
|
| FlexPriceError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
models.
|
|
69
|
+
models.SubscriptionResponse,
|
|
70
70
|
| models.ErrorsErrorResponse
|
|
71
71
|
| FlexPriceError
|
|
72
72
|
| ResponseValidationError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
const [result] = await M.match<
|
|
163
|
-
models.
|
|
163
|
+
models.SubscriptionResponse,
|
|
164
164
|
| models.ErrorsErrorResponse
|
|
165
165
|
| FlexPriceError
|
|
166
166
|
| ResponseValidationError
|
|
@@ -171,7 +171,7 @@ async function $do(
|
|
|
171
171
|
| UnexpectedClientError
|
|
172
172
|
| SDKValidationError
|
|
173
173
|
>(
|
|
174
|
-
M.json(200, models.
|
|
174
|
+
M.json(200, models.SubscriptionResponse$inboundSchema),
|
|
175
175
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
176
176
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
177
177
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function walletsCreateWallet(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.WalletResponse,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
models.
|
|
66
|
+
models.WalletResponse,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -145,7 +145,7 @@ async function $do(
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
const [result] = await M.match<
|
|
148
|
-
models.
|
|
148
|
+
models.WalletResponse,
|
|
149
149
|
| models.ErrorsErrorResponse
|
|
150
150
|
| FlexPriceError
|
|
151
151
|
| ResponseValidationError
|
|
@@ -156,7 +156,7 @@ async function $do(
|
|
|
156
156
|
| UnexpectedClientError
|
|
157
157
|
| SDKValidationError
|
|
158
158
|
>(
|
|
159
|
-
M.json(200, models.
|
|
159
|
+
M.json(200, models.WalletResponse$inboundSchema),
|
|
160
160
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
161
161
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
162
162
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function walletsGetCustomerWallets(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
Array<models.
|
|
40
|
+
Array<models.WalletResponse>,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
Array<models.
|
|
66
|
+
Array<models.WalletResponse>,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
};
|
|
159
159
|
|
|
160
160
|
const [result] = await M.match<
|
|
161
|
-
Array<models.
|
|
161
|
+
Array<models.WalletResponse>,
|
|
162
162
|
| models.ErrorsErrorResponse
|
|
163
163
|
| FlexPriceError
|
|
164
164
|
| ResponseValidationError
|
|
@@ -169,7 +169,7 @@ async function $do(
|
|
|
169
169
|
| UnexpectedClientError
|
|
170
170
|
| SDKValidationError
|
|
171
171
|
>(
|
|
172
|
-
M.json(200, z.array(models.
|
|
172
|
+
M.json(200, z.array(models.WalletResponse$inboundSchema)),
|
|
173
173
|
M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema),
|
|
174
174
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
175
175
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function walletsGetWallet(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.WalletResponse,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
models.
|
|
66
|
+
models.WalletResponse,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
const [result] = await M.match<
|
|
157
|
-
models.
|
|
157
|
+
models.WalletResponse,
|
|
158
158
|
| models.ErrorsErrorResponse
|
|
159
159
|
| FlexPriceError
|
|
160
160
|
| ResponseValidationError
|
|
@@ -165,7 +165,7 @@ async function $do(
|
|
|
165
165
|
| UnexpectedClientError
|
|
166
166
|
| SDKValidationError
|
|
167
167
|
>(
|
|
168
|
-
M.json(200, models.
|
|
168
|
+
M.json(200, models.WalletResponse$inboundSchema),
|
|
169
169
|
M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema),
|
|
170
170
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
171
171
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function walletsGetWalletsByCustomerId(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
Array<models.
|
|
40
|
+
Array<models.WalletResponse>,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
Array<models.
|
|
66
|
+
Array<models.WalletResponse>,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -155,7 +155,7 @@ async function $do(
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
const [result] = await M.match<
|
|
158
|
-
Array<models.
|
|
158
|
+
Array<models.WalletResponse>,
|
|
159
159
|
| models.ErrorsErrorResponse
|
|
160
160
|
| FlexPriceError
|
|
161
161
|
| ResponseValidationError
|
|
@@ -166,7 +166,7 @@ async function $do(
|
|
|
166
166
|
| UnexpectedClientError
|
|
167
167
|
| SDKValidationError
|
|
168
168
|
>(
|
|
169
|
-
M.json(200, z.array(models.
|
|
169
|
+
M.json(200, z.array(models.WalletResponse$inboundSchema)),
|
|
170
170
|
M.jsonErr(400, models.ErrorsErrorResponse$inboundSchema),
|
|
171
171
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
172
172
|
M.fail("4XX"),
|
|
@@ -37,7 +37,7 @@ export function walletsTerminateWallet(
|
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
models.
|
|
40
|
+
models.WalletResponse,
|
|
41
41
|
| models.ErrorsErrorResponse
|
|
42
42
|
| FlexPriceError
|
|
43
43
|
| ResponseValidationError
|
|
@@ -63,7 +63,7 @@ async function $do(
|
|
|
63
63
|
): Promise<
|
|
64
64
|
[
|
|
65
65
|
Result<
|
|
66
|
-
models.
|
|
66
|
+
models.WalletResponse,
|
|
67
67
|
| models.ErrorsErrorResponse
|
|
68
68
|
| FlexPriceError
|
|
69
69
|
| ResponseValidationError
|
|
@@ -154,7 +154,7 @@ async function $do(
|
|
|
154
154
|
};
|
|
155
155
|
|
|
156
156
|
const [result] = await M.match<
|
|
157
|
-
models.
|
|
157
|
+
models.WalletResponse,
|
|
158
158
|
| models.ErrorsErrorResponse
|
|
159
159
|
| FlexPriceError
|
|
160
160
|
| ResponseValidationError
|
|
@@ -165,7 +165,7 @@ async function $do(
|
|
|
165
165
|
| UnexpectedClientError
|
|
166
166
|
| SDKValidationError
|
|
167
167
|
>(
|
|
168
|
-
M.json(200, models.
|
|
168
|
+
M.json(200, models.WalletResponse$inboundSchema),
|
|
169
169
|
M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema),
|
|
170
170
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
171
171
|
M.fail("4XX"),
|
|
@@ -38,7 +38,7 @@ export function walletsUpdateWallet(
|
|
|
38
38
|
options?: RequestOptions,
|
|
39
39
|
): APIPromise<
|
|
40
40
|
Result<
|
|
41
|
-
models.
|
|
41
|
+
models.WalletResponse,
|
|
42
42
|
| models.ErrorsErrorResponse
|
|
43
43
|
| FlexPriceError
|
|
44
44
|
| ResponseValidationError
|
|
@@ -66,7 +66,7 @@ async function $do(
|
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
68
68
|
Result<
|
|
69
|
-
models.
|
|
69
|
+
models.WalletResponse,
|
|
70
70
|
| models.ErrorsErrorResponse
|
|
71
71
|
| FlexPriceError
|
|
72
72
|
| ResponseValidationError
|
|
@@ -159,7 +159,7 @@ async function $do(
|
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
const [result] = await M.match<
|
|
162
|
-
models.
|
|
162
|
+
models.WalletResponse,
|
|
163
163
|
| models.ErrorsErrorResponse
|
|
164
164
|
| FlexPriceError
|
|
165
165
|
| ResponseValidationError
|
|
@@ -170,7 +170,7 @@ async function $do(
|
|
|
170
170
|
| UnexpectedClientError
|
|
171
171
|
| SDKValidationError
|
|
172
172
|
>(
|
|
173
|
-
M.json(200, models.
|
|
173
|
+
M.json(200, models.WalletResponse$inboundSchema),
|
|
174
174
|
M.jsonErr([400, 404], models.ErrorsErrorResponse$inboundSchema),
|
|
175
175
|
M.jsonErr(500, models.ErrorsErrorResponse$inboundSchema),
|
|
176
176
|
M.fail("4XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "2.1.
|
|
68
|
+
sdkVersion: "2.1.1",
|
|
69
69
|
genVersion: "2.879.6",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 2.1.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 2.1.1 2.879.6 1.0 @flexprice/sdk",
|
|
71
71
|
} as const;
|
package/src/sdk/addons.ts
CHANGED
|
@@ -39,7 +39,7 @@ export class Addons extends ClientSDK {
|
|
|
39
39
|
async getAddonByLookupKey(
|
|
40
40
|
lookupKey: string,
|
|
41
41
|
options?: RequestOptions,
|
|
42
|
-
): Promise<models.
|
|
42
|
+
): Promise<models.AddonResponse> {
|
|
43
43
|
return unwrapAsync(addonsGetAddonByLookupKey(
|
|
44
44
|
this,
|
|
45
45
|
lookupKey,
|
|
@@ -73,7 +73,7 @@ export class Addons extends ClientSDK {
|
|
|
73
73
|
async getAddon(
|
|
74
74
|
id: string,
|
|
75
75
|
options?: RequestOptions,
|
|
76
|
-
): Promise<models.
|
|
76
|
+
): Promise<models.AddonResponse> {
|
|
77
77
|
return unwrapAsync(addonsGetAddon(
|
|
78
78
|
this,
|
|
79
79
|
id,
|
|
@@ -91,7 +91,7 @@ export class Addons extends ClientSDK {
|
|
|
91
91
|
id: string,
|
|
92
92
|
body: models.UpdateAddonRequest,
|
|
93
93
|
options?: RequestOptions,
|
|
94
|
-
): Promise<models.
|
|
94
|
+
): Promise<models.AddonResponse> {
|
|
95
95
|
return unwrapAsync(addonsUpdateAddon(
|
|
96
96
|
this,
|
|
97
97
|
id,
|
package/src/sdk/coupons.ts
CHANGED
|
@@ -21,7 +21,7 @@ export class Coupons extends ClientSDK {
|
|
|
21
21
|
async createCoupon(
|
|
22
22
|
request: models.CreateCouponRequest,
|
|
23
23
|
options?: RequestOptions,
|
|
24
|
-
): Promise<models.
|
|
24
|
+
): Promise<models.CouponResponse> {
|
|
25
25
|
return unwrapAsync(couponsCreateCoupon(
|
|
26
26
|
this,
|
|
27
27
|
request,
|
|
@@ -55,7 +55,7 @@ export class Coupons extends ClientSDK {
|
|
|
55
55
|
async getCoupon(
|
|
56
56
|
id: string,
|
|
57
57
|
options?: RequestOptions,
|
|
58
|
-
): Promise<models.
|
|
58
|
+
): Promise<models.CouponResponse> {
|
|
59
59
|
return unwrapAsync(couponsGetCoupon(
|
|
60
60
|
this,
|
|
61
61
|
id,
|
|
@@ -73,7 +73,7 @@ export class Coupons extends ClientSDK {
|
|
|
73
73
|
id: string,
|
|
74
74
|
body: models.UpdateCouponRequest,
|
|
75
75
|
options?: RequestOptions,
|
|
76
|
-
): Promise<models.
|
|
76
|
+
): Promise<models.CouponResponse> {
|
|
77
77
|
return unwrapAsync(couponsUpdateCoupon(
|
|
78
78
|
this,
|
|
79
79
|
id,
|
|
@@ -9,7 +9,7 @@ import type { SDKOptions } from "../lib/config.js";
|
|
|
9
9
|
import { Flexprice } from "../index.js";
|
|
10
10
|
import type * as models from "./models/index.js";
|
|
11
11
|
|
|
12
|
-
/** Return type of {@link Flexprice.customers.getCustomerByExternalId} (
|
|
12
|
+
/** Return type of {@link Flexprice.customers.getCustomerByExternalId} (typically {@link models.CustomerResponse}). */
|
|
13
13
|
type CustomerFromLookup = Awaited<
|
|
14
14
|
ReturnType<Flexprice["customers"]["getCustomerByExternalId"]>
|
|
15
15
|
>;
|
|
@@ -30,9 +30,9 @@ export interface CustomerDashboardData {
|
|
|
30
30
|
customer?: CustomerFromLookup;
|
|
31
31
|
usage?: models.CustomerUsageSummaryResponse;
|
|
32
32
|
entitlements?: models.CustomerEntitlementsResponse;
|
|
33
|
-
walletBalance?: models.
|
|
34
|
-
activeSubscriptions?: models.
|
|
35
|
-
invoices?: models.
|
|
33
|
+
walletBalance?: models.WalletResponse;
|
|
34
|
+
activeSubscriptions?: models.SubscriptionResponse[];
|
|
35
|
+
invoices?: models.InvoiceResponse[];
|
|
36
36
|
summary?: models.CustomerMultiCurrencyInvoiceSummary;
|
|
37
37
|
metadata: {
|
|
38
38
|
fetchedAt: string;
|
|
@@ -153,11 +153,11 @@ export class CustomerPortal {
|
|
|
153
153
|
: undefined,
|
|
154
154
|
]);
|
|
155
155
|
|
|
156
|
-
const activeSubscriptions: models.
|
|
156
|
+
const activeSubscriptions: models.SubscriptionResponse[] =
|
|
157
157
|
subsResp && isRecord(subsResp) && "items" in subsResp && Array.isArray(subsResp["items"])
|
|
158
158
|
? subsResp["items"]
|
|
159
159
|
: [];
|
|
160
|
-
const invoices: models.
|
|
160
|
+
const invoices: models.InvoiceResponse[] =
|
|
161
161
|
invoicesResp && isRecord(invoicesResp) && "items" in invoicesResp && Array.isArray(invoicesResp["items"])
|
|
162
162
|
? invoicesResp["items"]
|
|
163
163
|
: [];
|
package/src/sdk/customers.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class Customers extends ClientSDK {
|
|
|
27
27
|
id?: string | undefined,
|
|
28
28
|
externalCustomerId?: string | undefined,
|
|
29
29
|
options?: RequestOptions,
|
|
30
|
-
): Promise<models.
|
|
30
|
+
): Promise<models.CustomerResponse> {
|
|
31
31
|
return unwrapAsync(customersUpdateCustomer(
|
|
32
32
|
this,
|
|
33
33
|
body,
|
|
@@ -46,7 +46,7 @@ export class Customers extends ClientSDK {
|
|
|
46
46
|
async createCustomer(
|
|
47
47
|
request: models.CreateCustomerRequest,
|
|
48
48
|
options?: RequestOptions,
|
|
49
|
-
): Promise<models.
|
|
49
|
+
): Promise<models.CustomerResponse> {
|
|
50
50
|
return unwrapAsync(customersCreateCustomer(
|
|
51
51
|
this,
|
|
52
52
|
request,
|
|
@@ -63,7 +63,7 @@ export class Customers extends ClientSDK {
|
|
|
63
63
|
async getCustomerByExternalId(
|
|
64
64
|
externalId: string,
|
|
65
65
|
options?: RequestOptions,
|
|
66
|
-
): Promise<models.
|
|
66
|
+
): Promise<models.CustomerResponse> {
|
|
67
67
|
return unwrapAsync(customersGetCustomerByExternalId(
|
|
68
68
|
this,
|
|
69
69
|
externalId,
|
|
@@ -114,7 +114,7 @@ export class Customers extends ClientSDK {
|
|
|
114
114
|
async getCustomer(
|
|
115
115
|
id: string,
|
|
116
116
|
options?: RequestOptions,
|
|
117
|
-
): Promise<models.
|
|
117
|
+
): Promise<models.CustomerResponse> {
|
|
118
118
|
return unwrapAsync(customersGetCustomer(
|
|
119
119
|
this,
|
|
120
120
|
id,
|
package/src/sdk/features.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class Features extends ClientSDK {
|
|
|
20
20
|
async createFeature(
|
|
21
21
|
request: models.CreateFeatureRequest,
|
|
22
22
|
options?: RequestOptions,
|
|
23
|
-
): Promise<models.
|
|
23
|
+
): Promise<models.FeatureResponse> {
|
|
24
24
|
return unwrapAsync(featuresCreateFeature(
|
|
25
25
|
this,
|
|
26
26
|
request,
|
|
@@ -55,7 +55,7 @@ export class Features extends ClientSDK {
|
|
|
55
55
|
id: string,
|
|
56
56
|
body: models.UpdateFeatureRequest,
|
|
57
57
|
options?: RequestOptions,
|
|
58
|
-
): Promise<models.
|
|
58
|
+
): Promise<models.FeatureResponse> {
|
|
59
59
|
return unwrapAsync(featuresUpdateFeature(
|
|
60
60
|
this,
|
|
61
61
|
id,
|
package/src/sdk/invoices.ts
CHANGED
|
@@ -47,7 +47,7 @@ export class Invoices extends ClientSDK {
|
|
|
47
47
|
async createInvoice(
|
|
48
48
|
request: models.CreateInvoiceRequest,
|
|
49
49
|
options?: RequestOptions,
|
|
50
|
-
): Promise<models.
|
|
50
|
+
): Promise<models.InvoiceResponse> {
|
|
51
51
|
return unwrapAsync(invoicesCreateInvoice(
|
|
52
52
|
this,
|
|
53
53
|
request,
|
|
@@ -64,7 +64,7 @@ export class Invoices extends ClientSDK {
|
|
|
64
64
|
async getInvoicePreview(
|
|
65
65
|
request: models.GetPreviewInvoiceRequest,
|
|
66
66
|
options?: RequestOptions,
|
|
67
|
-
): Promise<models.
|
|
67
|
+
): Promise<models.InvoiceResponse> {
|
|
68
68
|
return unwrapAsync(invoicesGetInvoicePreview(
|
|
69
69
|
this,
|
|
70
70
|
request,
|
|
@@ -100,7 +100,7 @@ export class Invoices extends ClientSDK {
|
|
|
100
100
|
expandBySource?: boolean | undefined,
|
|
101
101
|
groupBy?: Array<string> | undefined,
|
|
102
102
|
options?: RequestOptions,
|
|
103
|
-
): Promise<models.
|
|
103
|
+
): Promise<models.InvoiceResponse> {
|
|
104
104
|
return unwrapAsync(invoicesGetInvoice(
|
|
105
105
|
this,
|
|
106
106
|
id,
|
|
@@ -120,7 +120,7 @@ export class Invoices extends ClientSDK {
|
|
|
120
120
|
id: string,
|
|
121
121
|
body: models.UpdateInvoiceRequest,
|
|
122
122
|
options?: RequestOptions,
|
|
123
|
-
): Promise<models.
|
|
123
|
+
): Promise<models.InvoiceResponse> {
|
|
124
124
|
return unwrapAsync(invoicesUpdateInvoice(
|
|
125
125
|
this,
|
|
126
126
|
id,
|
|
@@ -173,7 +173,7 @@ export class Invoices extends ClientSDK {
|
|
|
173
173
|
id: string,
|
|
174
174
|
body: models.UpdatePaymentStatusRequest,
|
|
175
175
|
options?: RequestOptions,
|
|
176
|
-
): Promise<models.
|
|
176
|
+
): Promise<models.InvoiceResponse> {
|
|
177
177
|
return unwrapAsync(invoicesUpdateInvoicePaymentStatus(
|
|
178
178
|
this,
|
|
179
179
|
id,
|
|
@@ -247,7 +247,7 @@ export class Invoices extends ClientSDK {
|
|
|
247
247
|
id: string,
|
|
248
248
|
finalize?: boolean | undefined,
|
|
249
249
|
options?: RequestOptions,
|
|
250
|
-
): Promise<models.
|
|
250
|
+
): Promise<models.InvoiceResponse> {
|
|
251
251
|
return unwrapAsync(invoicesRecalculateInvoiceV2(
|
|
252
252
|
this,
|
|
253
253
|
id,
|