@flexprice/sdk 2.1.20 → 2.1.25
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/README.md +1 -1
- package/docs/sdk/models/add-addon-params.md +16 -0
- package/docs/sdk/models/add-addon-ref.md +19 -0
- package/docs/sdk/models/add-addon-request.md +2 -0
- package/docs/sdk/models/add-addon-to-subscription-request.md +1 -0
- package/docs/sdk/models/add-addon-to-subscription-response.md +144 -0
- package/docs/sdk/models/addon-association-response.md +100 -0
- package/docs/sdk/models/addon-cadence.md +3 -1
- package/docs/sdk/models/addon-response.md +1 -0
- package/docs/sdk/models/aggregated-entitlement-bucket.md +21 -0
- package/docs/sdk/models/aggregated-entitlement.md +10 -7
- package/docs/sdk/models/alert-entity-type.md +2 -2
- package/docs/sdk/models/alert-info.md +5 -5
- package/docs/sdk/models/alert-settings-filter-order.md +15 -0
- package/docs/sdk/models/alert-settings-filter.md +30 -0
- package/docs/sdk/models/alert-settings-response.md +28 -0
- package/docs/sdk/models/alert-threshold.md +1 -1
- package/docs/sdk/models/alert-type.md +2 -2
- package/docs/sdk/models/auto-topup-duration.md +16 -0
- package/docs/sdk/models/auto-topup.md +7 -6
- package/docs/sdk/models/aws-marketplace-agreement.md +24 -0
- package/docs/sdk/models/aws-marketplace-sync-config.md +15 -0
- package/docs/sdk/models/azure-marketplace-agreement.md +23 -0
- package/docs/sdk/models/cancel-subscription-response.md +100 -0
- package/docs/sdk/models/changed-invoice.md +100 -0
- package/docs/sdk/models/changed-resources.md +100 -0
- package/docs/sdk/models/checkout-action.md +17 -0
- package/docs/sdk/models/checkout-configuration.md +18 -0
- package/docs/sdk/models/checkout-jsonb-checkout-configuration.md +18 -0
- package/docs/sdk/models/checkout-jsonb-checkout-payment-provider-config.md +17 -0
- package/docs/sdk/models/checkout-jsonb-checkout-provider-result.md +19 -0
- package/docs/sdk/models/checkout-jsonb-checkout-result.md +15 -0
- package/docs/sdk/models/checkout-params.md +23 -0
- package/docs/sdk/models/checkout-payment-provider-config.md +17 -0
- package/docs/sdk/models/checkout-payment-provider.md +15 -0
- package/docs/sdk/models/checkout-session-response.md +42 -0
- package/docs/sdk/models/checkout-status.md +17 -0
- package/docs/sdk/models/collection-method.md +3 -1
- package/docs/sdk/models/config-value.md +14 -0
- package/docs/sdk/models/coupon-association-response.md +35 -2
- package/docs/sdk/models/create-addon-response.md +1 -0
- package/docs/sdk/models/create-alert-settings-request.md +23 -0
- package/docs/sdk/models/create-checkout-session-request.md +28 -0
- package/docs/sdk/models/create-credit-grant-request.md +2 -1
- package/docs/sdk/models/create-customer-request.md +6 -2
- package/docs/sdk/models/create-entitlement-request.md +22 -15
- package/docs/sdk/models/create-entity-integration-mapping-request.md +1 -1
- package/docs/sdk/models/create-feature-request.md +1 -1
- package/docs/sdk/models/create-invoice-request.md +32 -31
- package/docs/sdk/models/create-payment-request.md +2 -1
- package/docs/sdk/models/create-subscription-params.md +22 -0
- package/docs/sdk/models/create-subscription-request.md +40 -39
- package/docs/sdk/models/create-subscription-result.md +17 -0
- package/docs/sdk/models/credit-grant-response.md +1 -0
- package/docs/sdk/models/credit-grant-scope.md +1 -1
- package/docs/sdk/models/credit-note-response.md +200 -0
- package/docs/sdk/models/customer-entitlements-response.md +115 -4
- package/docs/sdk/models/customer-response.md +23 -21
- package/docs/sdk/models/customer.md +22 -20
- package/docs/sdk/models/delete-alert-settings-request.md +17 -0
- package/docs/sdk/models/delete-checkout-session-request.md +17 -0
- package/docs/sdk/models/delink-integration-mapping-request.md +1 -1
- package/docs/sdk/models/duration-unit.md +17 -0
- package/docs/sdk/models/entitlement-aggregation-mode.md +17 -0
- package/docs/sdk/models/entitlement-filter.md +1 -0
- package/docs/sdk/models/entitlement-grant-allocation-behavior.md +17 -0
- package/docs/sdk/models/entitlement-grant-duration-unit.md +17 -0
- package/docs/sdk/models/entitlement-grant-measure.md +17 -0
- package/docs/sdk/models/entitlement-response.md +34 -27
- package/docs/sdk/models/entitlement-source.md +1 -0
- package/docs/sdk/models/entity-change-behaviour.md +17 -0
- package/docs/sdk/models/entity-change-policy.md +16 -0
- package/docs/sdk/models/entity-change-result.md +18 -0
- package/docs/sdk/models/error-code.md +1 -1
- package/docs/sdk/models/execute-subscription-modify-request.md +3 -1
- package/docs/sdk/models/execute-subscription-plan-change-v2-request.md +22 -0
- package/docs/sdk/models/feature-type.md +2 -2
- package/docs/sdk/models/filter-operator-type.md +2 -2
- package/docs/sdk/models/gcp-marketplace-agreement.md +23 -0
- package/docs/sdk/models/get-addon-credit-grants-request.md +17 -0
- package/docs/sdk/models/get-alert-settings-request.md +17 -0
- package/docs/sdk/models/get-checkout-session-request.md +17 -0
- package/docs/sdk/models/get-cost-analytics-request.md +11 -9
- package/docs/sdk/models/get-customer-entitlements-by-external-id-request.md +17 -0
- package/docs/sdk/models/get-hugging-face-billing-data-request.md +20 -0
- package/docs/sdk/models/get-invoice-request.md +6 -5
- package/docs/sdk/models/get-subscriptions-for-customer-request.md +18 -0
- package/docs/sdk/models/get-usage-analytics-response.md +3 -1
- package/docs/sdk/models/get-usage-by-meter-request.md +1 -0
- package/docs/sdk/models/get-usage-request.md +1 -0
- package/docs/sdk/models/get-wallet-transactions-transaction-reason.md +1 -1
- package/docs/sdk/models/grouped-invoicing-child-request.md +35 -0
- package/docs/sdk/models/integration-entity-type.md +2 -2
- package/docs/sdk/models/invoice-line-item-coupon.md +2 -1
- package/docs/sdk/models/invoice-line-item-response.md +39 -38
- package/docs/sdk/models/invoice-response.md +152 -51
- package/docs/sdk/models/invoice-sync-settings.md +4 -3
- package/docs/sdk/models/line-item-commitment-config.md +10 -10
- package/docs/sdk/models/line-item-quantity-change.md +1 -2
- package/docs/sdk/models/link-integration-mapping-request.md +1 -1
- package/docs/sdk/models/list-alert-settings-response.md +16 -0
- package/docs/sdk/models/list-coupon-associations-request.md +8 -7
- package/docs/sdk/models/list-coupon-associations-response.md +37 -1
- package/docs/sdk/models/list-invoices-response.md +100 -0
- package/docs/sdk/models/list-rbac-roles-request.md +15 -0
- package/docs/sdk/models/list-rbac-roles-user-type.md +17 -0
- package/docs/sdk/models/list-subscriptions-response.md +100 -0
- package/docs/sdk/models/list-tax-rates-response.md +16 -0
- package/docs/sdk/models/modify-subscription-line-item.md +17 -0
- package/docs/sdk/models/modify-subscription-params.md +16 -0
- package/docs/sdk/models/override-entitlement-request.md +1 -0
- package/docs/sdk/models/payment-action-type.md +17 -0
- package/docs/sdk/models/payment-action.md +16 -0
- package/docs/sdk/models/payment-destination-type.md +4 -2
- package/docs/sdk/models/payment-gateway-options.md +15 -0
- package/docs/sdk/models/payment-method-type.md +1 -1
- package/docs/sdk/models/payment-response.md +3 -1
- package/docs/sdk/models/payment-status.md +1 -1
- package/docs/sdk/models/preview-subscription-plan-change-v2-request.md +22 -0
- package/docs/sdk/models/register-marketplace-agreement-request.md +26 -0
- package/docs/sdk/models/register-marketplace-agreement-response.md +18 -0
- package/docs/sdk/models/rejected-event-reason.md +17 -0
- package/docs/sdk/models/remove-addon-request.md +6 -6
- package/docs/sdk/models/s3-job-config.md +10 -10
- package/docs/sdk/models/secret-provider.md +2 -2
- package/docs/sdk/models/service-period-custom-fields.md +16 -0
- package/docs/sdk/models/stripe-payment-gateway-options.md +15 -0
- package/docs/sdk/models/sub-modify-addon-params.md +19 -0
- package/docs/sdk/models/sub-modify-quantity-change-request.md +0 -1
- package/docs/sdk/models/subscription-change-entity-policies.md +15 -0
- package/docs/sdk/models/subscription-change-execute-response.md +100 -0
- package/docs/sdk/models/subscription-change-v2-request.md +23 -0
- package/docs/sdk/models/subscription-change-v2-response.md +251 -0
- package/docs/sdk/models/subscription-coupon-input.md +4 -4
- package/docs/sdk/models/subscription-filter.md +27 -26
- package/docs/sdk/models/subscription-inheritance-config.md +7 -6
- package/docs/sdk/models/subscription-line-item-filter.md +2 -1
- package/docs/sdk/models/subscription-line-item-response.md +1 -0
- package/docs/sdk/models/subscription-modification-action.md +15 -0
- package/docs/sdk/models/subscription-modify-response.md +205 -4
- package/docs/sdk/models/subscription-modify-type.md +2 -2
- package/docs/sdk/models/subscription-phase-create-request.md +10 -10
- package/docs/sdk/models/subscription-response-v2.md +36 -1
- package/docs/sdk/models/subscription-response.md +103 -1
- package/docs/sdk/models/subscription-subscription-line-item.md +1 -0
- package/docs/sdk/models/sync-config.md +13 -11
- package/docs/sdk/models/tenant-billing-usage.md +100 -0
- package/docs/sdk/models/top-up-wallet-request.md +4 -0
- package/docs/sdk/models/top-up-wallet-response.md +1 -0
- package/docs/sdk/models/transaction-reason.md +1 -1
- package/docs/sdk/models/update-alert-settings-request-request.md +21 -0
- package/docs/sdk/models/update-alert-settings-request.md +17 -0
- package/docs/sdk/models/update-credit-grant-request.md +5 -4
- package/docs/sdk/models/update-customer-request.md +3 -1
- package/docs/sdk/models/update-entitlement-request.md +15 -7
- package/docs/sdk/models/update-invoice-payment-status-request.md +1 -1
- package/docs/sdk/models/update-invoice-request.md +1 -0
- package/docs/sdk/models/update-payment-request.md +3 -1
- package/docs/sdk/models/update-payment-status-request.md +1 -1
- package/docs/sdk/models/update-user-roles-request-request.md +19 -0
- package/docs/sdk/models/update-user-roles-request.md +15 -0
- package/docs/sdk/models/update-user-roles-response.md +21 -0
- package/docs/sdk/models/usage-analytic-item.md +3 -1
- package/docs/sdk/models/usage-analytic-point.md +3 -1
- package/docs/sdk/models/wallet-balance-response.md +32 -31
- package/docs/sdk/models/wallet-response.md +2 -0
- package/docs/sdk/models/wallet-topup-params.md +18 -0
- package/docs/sdk/models/wallet-transaction-response.md +34 -33
- package/docs/sdk/models/webhook-dto-alert-webhook-payload.md +8 -18
- package/docs/sdk/models/webhook-dto-checkout-session-webhook-payload.md +16 -0
- package/docs/sdk/models/webhook-dto-checkout-session.md +26 -0
- package/docs/sdk/models/webhook-dto-communication-webhook-payload.md +5 -16
- package/docs/sdk/models/webhook-dto-credit-note-webhook-payload.md +5 -26
- package/docs/sdk/models/webhook-dto-credit-note.md +28 -0
- package/docs/sdk/models/webhook-dto-customer-webhook-payload.md +4 -4
- package/docs/sdk/models/webhook-dto-customer.md +27 -0
- package/docs/sdk/models/webhook-dto-entitlement-webhook-payload.md +5 -37
- package/docs/sdk/models/webhook-dto-entitlement.md +24 -0
- package/docs/sdk/models/webhook-dto-feature-webhook-payload.md +5 -17
- package/docs/sdk/models/webhook-dto-feature.md +24 -0
- package/docs/sdk/models/webhook-dto-invoice-line-item.md +22 -0
- package/docs/sdk/models/webhook-dto-invoice-webhook-payload.md +100 -0
- package/docs/sdk/models/{coupon.md → webhook-dto-invoice.md} +25 -21
- package/docs/sdk/models/webhook-dto-payment-webhook-payload.md +4 -4
- package/docs/sdk/models/webhook-dto-payment.md +28 -0
- package/docs/sdk/models/webhook-dto-rejected-event-data.md +21 -0
- package/docs/sdk/models/webhook-dto-rejected-event-webhook-payload.md +17 -0
- package/docs/sdk/models/webhook-dto-spend-alert-event.md +22 -0
- package/docs/sdk/models/webhook-dto-subscription-phase-webhook-payload.md +4 -4
- package/docs/sdk/models/webhook-dto-subscription-phase.md +18 -0
- package/docs/sdk/models/webhook-dto-subscription-webhook-payload.md +5 -14
- package/docs/sdk/models/webhook-dto-subscription.md +37 -0
- package/docs/sdk/models/webhook-dto-transaction-updated-webhook-payload.md +16 -0
- package/docs/sdk/models/webhook-dto-transaction-webhook-payload.md +4 -5
- package/docs/sdk/models/webhook-dto-wallet-transaction.md +30 -0
- package/docs/sdk/models/webhook-dto-wallet-webhook-payload.md +1 -2
- package/docs/sdk/models/webhook-dto-wallet.md +23 -0
- package/docs/sdk/models/webhook-event-name.md +2 -2
- package/docs/sdks/alertsettings/README.md +379 -0
- package/docs/sdks/checkout/README.md +230 -0
- package/docs/sdks/costs/README.md +0 -72
- package/docs/sdks/creditgrants/README.md +72 -0
- package/docs/sdks/customers/README.md +147 -0
- package/docs/sdks/entitlements/README.md +2 -2
- package/docs/sdks/events/README.md +86 -75
- package/docs/sdks/integrations/README.md +4 -4
- package/docs/sdks/invoices/README.md +2 -1
- package/docs/sdks/marketplace/README.md +86 -0
- package/docs/sdks/payments/README.md +2 -2
- package/docs/sdks/rbac/README.md +6 -3
- package/docs/sdks/subscriptions/README.md +179 -9
- package/docs/sdks/tasks/README.md +0 -82
- package/docs/sdks/taxrates/README.md +1 -1
- package/docs/sdks/users/README.md +73 -0
- package/docs/sdks/wallets/README.md +2 -2
- package/docs/sdks/webhookevents/README.md +1297 -262
- package/esm/funcs/alert-settings-create-alert-settings.d.ts +17 -0
- package/esm/funcs/alert-settings-create-alert-settings.d.ts.map +1 -0
- package/esm/funcs/{costs-get-detailed-cost-analytics-v2.js → alert-settings-create-alert-settings.js} +8 -8
- package/esm/funcs/{costs-get-detailed-cost-analytics-v2.js.map → alert-settings-create-alert-settings.js.map} +1 -1
- package/esm/funcs/alert-settings-delete-alert-settings.d.ts +17 -0
- package/esm/funcs/alert-settings-delete-alert-settings.d.ts.map +1 -0
- package/esm/funcs/alert-settings-delete-alert-settings.js +91 -0
- package/esm/funcs/alert-settings-delete-alert-settings.js.map +1 -0
- package/esm/funcs/{tasks-create-task.d.ts → alert-settings-get-alert-settings.d.ts} +4 -4
- package/esm/funcs/alert-settings-get-alert-settings.d.ts.map +1 -0
- package/esm/funcs/alert-settings-get-alert-settings.js +91 -0
- package/esm/funcs/alert-settings-get-alert-settings.js.map +1 -0
- package/esm/funcs/alert-settings-query-alert-settings.d.ts +17 -0
- package/esm/funcs/alert-settings-query-alert-settings.d.ts.map +1 -0
- package/esm/funcs/{tasks-create-task.js → alert-settings-query-alert-settings.js} +8 -8
- package/esm/funcs/alert-settings-query-alert-settings.js.map +1 -0
- package/esm/funcs/alert-settings-update-alert-settings.d.ts +17 -0
- package/esm/funcs/alert-settings-update-alert-settings.d.ts.map +1 -0
- package/esm/funcs/alert-settings-update-alert-settings.js +93 -0
- package/esm/funcs/alert-settings-update-alert-settings.js.map +1 -0
- package/esm/funcs/checkout-create-checkout-session.d.ts +14 -0
- package/esm/funcs/checkout-create-checkout-session.d.ts.map +1 -0
- package/esm/funcs/checkout-create-checkout-session.js +80 -0
- package/esm/funcs/checkout-create-checkout-session.js.map +1 -0
- package/esm/funcs/checkout-delete-checkout-session.d.ts +14 -0
- package/esm/funcs/checkout-delete-checkout-session.d.ts.map +1 -0
- package/esm/funcs/checkout-delete-checkout-session.js +88 -0
- package/esm/funcs/checkout-delete-checkout-session.js.map +1 -0
- package/esm/funcs/checkout-get-checkout-session.d.ts +14 -0
- package/esm/funcs/checkout-get-checkout-session.d.ts.map +1 -0
- package/esm/funcs/checkout-get-checkout-session.js +88 -0
- package/esm/funcs/checkout-get-checkout-session.js.map +1 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.js +1 -0
- package/esm/funcs/coupon-associations-list-coupon-associations.js.map +1 -1
- package/esm/funcs/credit-grants-get-addon-credit-grants.d.ts +17 -0
- package/esm/funcs/credit-grants-get-addon-credit-grants.d.ts.map +1 -0
- package/esm/funcs/credit-grants-get-addon-credit-grants.js +91 -0
- package/esm/funcs/credit-grants-get-addon-credit-grants.js.map +1 -0
- package/esm/funcs/customers-get-customer-entitlements-by-external-id.d.ts +17 -0
- package/esm/funcs/customers-get-customer-entitlements-by-external-id.d.ts.map +1 -0
- package/esm/funcs/customers-get-customer-entitlements-by-external-id.js +91 -0
- package/esm/funcs/customers-get-customer-entitlements-by-external-id.js.map +1 -0
- package/esm/funcs/customers-get-subscriptions-for-customer.d.ts +17 -0
- package/esm/funcs/customers-get-subscriptions-for-customer.d.ts.map +1 -0
- package/esm/funcs/customers-get-subscriptions-for-customer.js +96 -0
- package/esm/funcs/customers-get-subscriptions-for-customer.js.map +1 -0
- package/esm/funcs/events-get-event.d.ts +1 -1
- package/esm/funcs/events-get-event.js +7 -9
- package/esm/funcs/events-get-event.js.map +1 -1
- package/esm/funcs/events-get-huggingface-inference-data.d.ts +2 -2
- package/esm/funcs/events-get-huggingface-inference-data.d.ts.map +1 -1
- package/esm/funcs/events-get-huggingface-inference-data.js +15 -4
- package/esm/funcs/events-get-huggingface-inference-data.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 +5 -3
- package/esm/funcs/invoices-get-invoice.js.map +1 -1
- package/esm/funcs/invoices-update-invoice.d.ts +1 -1
- package/esm/funcs/invoices-update-invoice.js +1 -1
- package/esm/funcs/marketplace-post-marketplace-agreements.d.ts +17 -0
- package/esm/funcs/marketplace-post-marketplace-agreements.d.ts.map +1 -0
- package/esm/funcs/marketplace-post-marketplace-agreements.js +80 -0
- package/esm/funcs/marketplace-post-marketplace-agreements.js.map +1 -0
- package/esm/funcs/rbac-list-rbac-roles.d.ts +3 -2
- package/esm/funcs/rbac-list-rbac-roles.d.ts.map +1 -1
- package/esm/funcs/rbac-list-rbac-roles.js +24 -4
- package/esm/funcs/rbac-list-rbac-roles.js.map +1 -1
- package/esm/funcs/subscriptions-add-subscription-addon.d.ts +4 -1
- package/esm/funcs/subscriptions-add-subscription-addon.d.ts.map +1 -1
- package/esm/funcs/subscriptions-add-subscription-addon.js +4 -1
- package/esm/funcs/subscriptions-add-subscription-addon.js.map +1 -1
- 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-execute-subscription-plan-change-v2.d.ts +23 -0
- package/esm/funcs/subscriptions-execute-subscription-plan-change-v2.d.ts.map +1 -0
- package/esm/funcs/subscriptions-execute-subscription-plan-change-v2.js +99 -0
- package/esm/funcs/subscriptions-execute-subscription-plan-change-v2.js.map +1 -0
- package/esm/funcs/subscriptions-preview-subscription-modify.d.ts +1 -1
- package/esm/funcs/subscriptions-preview-subscription-modify.js +1 -1
- package/esm/funcs/subscriptions-preview-subscription-plan-change-v2.d.ts +17 -0
- package/esm/funcs/subscriptions-preview-subscription-plan-change-v2.d.ts.map +1 -0
- package/esm/funcs/subscriptions-preview-subscription-plan-change-v2.js +93 -0
- package/esm/funcs/subscriptions-preview-subscription-plan-change-v2.js.map +1 -0
- package/esm/funcs/subscriptions-remove-subscription-addon.d.ts +3 -0
- package/esm/funcs/subscriptions-remove-subscription-addon.d.ts.map +1 -1
- package/esm/funcs/subscriptions-remove-subscription-addon.js +3 -0
- package/esm/funcs/subscriptions-remove-subscription-addon.js.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rates.d.ts +1 -1
- package/esm/funcs/tax-rates-get-tax-rates.d.ts.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rates.js +1 -1
- package/esm/funcs/tax-rates-get-tax-rates.js.map +1 -1
- package/esm/funcs/users-update-user-roles.d.ts +17 -0
- package/esm/funcs/users-update-user-roles.d.ts.map +1 -0
- package/esm/funcs/users-update-user-roles.js +93 -0
- package/esm/funcs/users-update-user-roles.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-completed.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-completed.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-completed.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-completed.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-expired.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-expired.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-expired.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-expired.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-failed.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-failed.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-failed.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-failed.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-initiated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-initiated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-initiated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-checkout-session-initiated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-event-rejected.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-event-rejected.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-event-rejected.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-event-rejected.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-create-drafted.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-create-drafted.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-create-drafted.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-create-drafted.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-plan-changed.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-plan-changed.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-plan-changed.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-plan-changed.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-updated.js +69 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-updated.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/http.d.ts +1 -1
- package/esm/lib/http.d.ts.map +1 -1
- package/esm/lib/http.js +1 -1
- package/esm/lib/http.js.map +1 -1
- package/esm/lib/security.d.ts +5 -4
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +4 -6
- package/esm/lib/security.js.map +1 -1
- package/esm/sdk/alert-settings.d.ts +40 -0
- package/esm/sdk/alert-settings.d.ts.map +1 -0
- package/esm/sdk/alert-settings.js +58 -0
- package/esm/sdk/alert-settings.js.map +1 -0
- package/esm/sdk/checkout.d.ts +17 -0
- package/esm/sdk/checkout.d.ts.map +1 -0
- package/esm/sdk/checkout.js +29 -0
- package/esm/sdk/checkout.js.map +1 -0
- package/esm/sdk/costs.d.ts +0 -7
- package/esm/sdk/costs.d.ts.map +1 -1
- package/esm/sdk/costs.js +0 -10
- package/esm/sdk/costs.js.map +1 -1
- package/esm/sdk/credit-grants.d.ts +7 -0
- package/esm/sdk/credit-grants.d.ts.map +1 -1
- package/esm/sdk/credit-grants.js +10 -0
- package/esm/sdk/credit-grants.js.map +1 -1
- package/esm/sdk/customers.d.ts +14 -0
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +20 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/events.d.ts +9 -9
- package/esm/sdk/events.d.ts.map +1 -1
- package/esm/sdk/events.js +12 -12
- package/esm/sdk/events.js.map +1 -1
- package/esm/sdk/invoices.d.ts +2 -2
- package/esm/sdk/invoices.d.ts.map +1 -1
- package/esm/sdk/invoices.js +3 -3
- package/esm/sdk/invoices.js.map +1 -1
- package/esm/sdk/marketplace.d.ts +12 -0
- package/esm/sdk/marketplace.d.ts.map +1 -0
- package/esm/sdk/marketplace.js +18 -0
- package/esm/sdk/marketplace.js.map +1 -0
- package/esm/sdk/models/add-addon-params.d.ts +20 -0
- package/esm/sdk/models/add-addon-params.d.ts.map +1 -0
- package/esm/sdk/models/add-addon-params.js +33 -0
- package/esm/sdk/models/add-addon-params.js.map +1 -0
- package/esm/sdk/models/add-addon-ref.d.ts +27 -0
- package/esm/sdk/models/add-addon-ref.d.ts.map +1 -0
- package/esm/sdk/models/add-addon-ref.js +47 -0
- package/esm/sdk/models/add-addon-ref.js.map +1 -0
- package/esm/sdk/models/add-addon-request.d.ts +9 -0
- package/esm/sdk/models/add-addon-request.d.ts.map +1 -1
- package/esm/sdk/models/add-addon-request.js +5 -0
- package/esm/sdk/models/add-addon-request.js.map +1 -1
- package/esm/sdk/models/add-addon-to-subscription-request.d.ts +6 -0
- package/esm/sdk/models/add-addon-to-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/add-addon-to-subscription-request.js +3 -0
- package/esm/sdk/models/add-addon-to-subscription-request.js.map +1 -1
- package/esm/sdk/models/add-addon-to-subscription-response.d.ts +35 -0
- package/esm/sdk/models/add-addon-to-subscription-response.d.ts.map +1 -0
- package/esm/sdk/models/add-addon-to-subscription-response.js +56 -0
- package/esm/sdk/models/add-addon-to-subscription-response.js.map +1 -0
- package/esm/sdk/models/addon-cadence.d.ts +5 -3
- package/esm/sdk/models/addon-cadence.d.ts.map +1 -1
- package/esm/sdk/models/addon-cadence.js +4 -3
- package/esm/sdk/models/addon-cadence.js.map +1 -1
- package/esm/sdk/models/addon-response.d.ts +2 -0
- package/esm/sdk/models/addon-response.d.ts.map +1 -1
- package/esm/sdk/models/addon-response.js +3 -0
- package/esm/sdk/models/addon-response.js.map +1 -1
- package/esm/sdk/models/aggregated-entitlement-bucket.d.ts +18 -0
- package/esm/sdk/models/aggregated-entitlement-bucket.d.ts.map +1 -0
- package/esm/sdk/models/aggregated-entitlement-bucket.js +33 -0
- package/esm/sdk/models/aggregated-entitlement-bucket.js.map +1 -0
- package/esm/sdk/models/aggregated-entitlement.d.ts +11 -3
- package/esm/sdk/models/aggregated-entitlement.d.ts.map +1 -1
- package/esm/sdk/models/aggregated-entitlement.js +13 -0
- package/esm/sdk/models/aggregated-entitlement.js.map +1 -1
- package/esm/sdk/models/alert-entity-type.d.ts +4 -0
- package/esm/sdk/models/alert-entity-type.d.ts.map +1 -1
- package/esm/sdk/models/alert-entity-type.js +4 -0
- package/esm/sdk/models/alert-entity-type.js.map +1 -1
- package/esm/sdk/models/alert-info.d.ts +1 -1
- package/esm/sdk/models/alert-info.d.ts.map +1 -1
- package/esm/sdk/models/alert-info.js +1 -1
- package/esm/sdk/models/alert-info.js.map +1 -1
- package/esm/sdk/models/alert-settings-filter.d.ts +57 -0
- package/esm/sdk/models/alert-settings-filter.d.ts.map +1 -0
- package/esm/sdk/models/alert-settings-filter.js +49 -0
- package/esm/sdk/models/alert-settings-filter.js.map +1 -0
- package/esm/sdk/models/alert-settings-response.d.ts +26 -0
- package/esm/sdk/models/alert-settings-response.d.ts.map +1 -0
- package/esm/sdk/models/alert-settings-response.js +44 -0
- package/esm/sdk/models/alert-settings-response.js.map +1 -0
- package/esm/sdk/models/alert-threshold.d.ts +2 -2
- package/esm/sdk/models/alert-threshold.js +2 -2
- package/esm/sdk/models/alert-type.d.ts +5 -0
- package/esm/sdk/models/alert-type.d.ts.map +1 -1
- package/esm/sdk/models/alert-type.js +5 -0
- package/esm/sdk/models/alert-type.js.map +1 -1
- package/esm/sdk/models/auto-topup.d.ts +18 -0
- package/esm/sdk/models/auto-topup.d.ts.map +1 -1
- package/esm/sdk/models/auto-topup.js +19 -0
- package/esm/sdk/models/auto-topup.js.map +1 -1
- package/esm/sdk/models/aws-marketplace-agreement.d.ts +35 -0
- package/esm/sdk/models/aws-marketplace-agreement.d.ts.map +1 -0
- package/esm/sdk/models/aws-marketplace-agreement.js +24 -0
- package/esm/sdk/models/aws-marketplace-agreement.js.map +1 -0
- package/esm/sdk/models/aws-marketplace-sync-config.d.ts +10 -0
- package/esm/sdk/models/aws-marketplace-sync-config.d.ts.map +1 -0
- package/esm/sdk/models/aws-marketplace-sync-config.js +14 -0
- package/esm/sdk/models/aws-marketplace-sync-config.js.map +1 -0
- package/esm/sdk/models/azure-marketplace-agreement.d.ts +30 -0
- package/esm/sdk/models/azure-marketplace-agreement.d.ts.map +1 -0
- package/esm/sdk/models/azure-marketplace-agreement.js +22 -0
- package/esm/sdk/models/azure-marketplace-agreement.js.map +1 -0
- package/esm/sdk/models/checkout-action.d.ts +14 -0
- package/esm/sdk/models/checkout-action.d.ts.map +1 -0
- package/esm/sdk/models/checkout-action.js +15 -0
- package/esm/sdk/models/checkout-action.js.map +1 -0
- package/esm/sdk/models/checkout-configuration.d.ts +22 -0
- package/esm/sdk/models/checkout-configuration.d.ts.map +1 -0
- package/esm/sdk/models/checkout-configuration.js +27 -0
- package/esm/sdk/models/checkout-configuration.js.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-configuration.d.ts +17 -0
- package/esm/sdk/models/checkout-jsonb-checkout-configuration.d.ts.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-configuration.js +29 -0
- package/esm/sdk/models/checkout-jsonb-checkout-configuration.js.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-payment-provider-config.d.ts +14 -0
- package/esm/sdk/models/checkout-jsonb-checkout-payment-provider-config.d.ts.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-payment-provider-config.js +25 -0
- package/esm/sdk/models/checkout-jsonb-checkout-payment-provider-config.js.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-provider-result.d.ts +41 -0
- package/esm/sdk/models/checkout-jsonb-checkout-provider-result.d.ts.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-provider-result.js +28 -0
- package/esm/sdk/models/checkout-jsonb-checkout-provider-result.js.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-result.d.ts +11 -0
- package/esm/sdk/models/checkout-jsonb-checkout-result.d.ts.map +1 -0
- package/esm/sdk/models/checkout-jsonb-checkout-result.js +20 -0
- package/esm/sdk/models/checkout-jsonb-checkout-result.js.map +1 -0
- package/esm/sdk/models/checkout-params.d.ts +30 -0
- package/esm/sdk/models/checkout-params.d.ts.map +1 -0
- package/esm/sdk/models/checkout-params.js +30 -0
- package/esm/sdk/models/checkout-params.js.map +1 -0
- package/esm/sdk/models/checkout-payment-provider-config.d.ts +18 -0
- package/esm/sdk/models/checkout-payment-provider-config.d.ts.map +1 -0
- package/esm/sdk/models/checkout-payment-provider-config.js +23 -0
- package/esm/sdk/models/checkout-payment-provider-config.js.map +1 -0
- package/esm/sdk/models/checkout-payment-provider.d.ts +11 -0
- package/esm/sdk/models/checkout-payment-provider.d.ts.map +1 -0
- package/esm/sdk/models/checkout-payment-provider.js +12 -0
- package/esm/sdk/models/checkout-payment-provider.js.map +1 -0
- package/esm/sdk/models/checkout-session-response.d.ts +77 -0
- package/esm/sdk/models/checkout-session-response.d.ts.map +1 -0
- package/esm/sdk/models/checkout-session-response.js +76 -0
- package/esm/sdk/models/checkout-session-response.js.map +1 -0
- package/esm/sdk/models/checkout-status.d.ts +13 -0
- package/esm/sdk/models/checkout-status.d.ts.map +1 -0
- package/esm/sdk/models/checkout-status.js +14 -0
- package/esm/sdk/models/checkout-status.js.map +1 -0
- package/esm/sdk/models/collection-method.d.ts +5 -3
- package/esm/sdk/models/collection-method.d.ts.map +1 -1
- package/esm/sdk/models/collection-method.js +4 -2
- package/esm/sdk/models/collection-method.js.map +1 -1
- package/esm/sdk/models/coupon-association-response.d.ts +4 -2
- package/esm/sdk/models/coupon-association-response.d.ts.map +1 -1
- package/esm/sdk/models/coupon-association-response.js +5 -2
- package/esm/sdk/models/coupon-association-response.js.map +1 -1
- package/esm/sdk/models/create-addon-response.d.ts +2 -0
- package/esm/sdk/models/create-addon-response.d.ts.map +1 -1
- package/esm/sdk/models/create-addon-response.js +3 -0
- package/esm/sdk/models/create-addon-response.js.map +1 -1
- package/esm/sdk/models/create-alert-settings-request.d.ts +34 -0
- package/esm/sdk/models/create-alert-settings-request.d.ts.map +1 -0
- package/esm/sdk/models/create-alert-settings-request.js +26 -0
- package/esm/sdk/models/create-alert-settings-request.js.map +1 -0
- package/esm/sdk/models/create-checkout-session-request.d.ts +38 -0
- package/esm/sdk/models/create-checkout-session-request.d.ts.map +1 -0
- package/esm/sdk/models/create-checkout-session-request.js +36 -0
- package/esm/sdk/models/create-checkout-session-request.js.map +1 -0
- package/esm/sdk/models/create-credit-grant-request.d.ts +2 -0
- package/esm/sdk/models/create-credit-grant-request.d.ts.map +1 -1
- package/esm/sdk/models/create-credit-grant-request.js +2 -0
- package/esm/sdk/models/create-credit-grant-request.js.map +1 -1
- package/esm/sdk/models/create-customer-request.d.ts +20 -2
- package/esm/sdk/models/create-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/create-customer-request.js +5 -1
- package/esm/sdk/models/create-customer-request.js.map +1 -1
- package/esm/sdk/models/create-entitlement-request.d.ts +22 -0
- package/esm/sdk/models/create-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/create-entitlement-request.js +18 -0
- package/esm/sdk/models/create-entitlement-request.js.map +1 -1
- package/esm/sdk/models/create-invoice-request.d.ts +10 -0
- package/esm/sdk/models/create-invoice-request.d.ts.map +1 -1
- package/esm/sdk/models/create-invoice-request.js +2 -0
- package/esm/sdk/models/create-invoice-request.js.map +1 -1
- package/esm/sdk/models/create-payment-request.d.ts +3 -0
- package/esm/sdk/models/create-payment-request.d.ts.map +1 -1
- package/esm/sdk/models/create-payment-request.js +3 -0
- package/esm/sdk/models/create-payment-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-params.d.ts +36 -0
- package/esm/sdk/models/create-subscription-params.d.ts.map +1 -0
- package/esm/sdk/models/create-subscription-params.js +55 -0
- package/esm/sdk/models/create-subscription-params.js.map +1 -0
- package/esm/sdk/models/create-subscription-request.d.ts +14 -58
- package/esm/sdk/models/create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/create-subscription-request.js +3 -2
- package/esm/sdk/models/create-subscription-request.js.map +1 -1
- package/esm/sdk/models/create-subscription-result.d.ts +12 -0
- package/esm/sdk/models/create-subscription-result.d.ts.map +1 -0
- package/esm/sdk/models/create-subscription-result.js +23 -0
- package/esm/sdk/models/create-subscription-result.js.map +1 -0
- package/esm/sdk/models/credit-grant-response.d.ts +1 -0
- package/esm/sdk/models/credit-grant-response.d.ts.map +1 -1
- package/esm/sdk/models/credit-grant-response.js +2 -0
- package/esm/sdk/models/credit-grant-response.js.map +1 -1
- package/esm/sdk/models/credit-grant-scope.d.ts +1 -0
- package/esm/sdk/models/credit-grant-scope.d.ts.map +1 -1
- package/esm/sdk/models/credit-grant-scope.js +1 -0
- package/esm/sdk/models/credit-grant-scope.js.map +1 -1
- package/esm/sdk/models/customer-entitlements-response.d.ts +2 -0
- package/esm/sdk/models/customer-entitlements-response.d.ts.map +1 -1
- package/esm/sdk/models/customer-entitlements-response.js +2 -0
- package/esm/sdk/models/customer-entitlements-response.js.map +1 -1
- package/esm/sdk/models/customer-response.d.ts +11 -0
- package/esm/sdk/models/customer-response.d.ts.map +1 -1
- package/esm/sdk/models/customer-response.js +2 -0
- package/esm/sdk/models/customer-response.js.map +1 -1
- package/esm/sdk/models/customer.d.ts +11 -0
- package/esm/sdk/models/customer.d.ts.map +1 -1
- package/esm/sdk/models/customer.js +2 -0
- package/esm/sdk/models/customer.js.map +1 -1
- package/esm/sdk/models/delete-alert-settings-op.d.ts +15 -0
- package/esm/sdk/models/delete-alert-settings-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-alert-settings-op.js +12 -0
- package/esm/sdk/models/delete-alert-settings-op.js.map +1 -0
- package/esm/sdk/models/delete-checkout-session-op.d.ts +15 -0
- package/esm/sdk/models/delete-checkout-session-op.d.ts.map +1 -0
- package/esm/sdk/models/delete-checkout-session-op.js +12 -0
- package/esm/sdk/models/delete-checkout-session-op.js.map +1 -0
- package/esm/sdk/models/duration-unit.d.ts +14 -0
- package/esm/sdk/models/duration-unit.d.ts.map +1 -0
- package/esm/sdk/models/duration-unit.js +15 -0
- package/esm/sdk/models/duration-unit.js.map +1 -0
- package/esm/sdk/models/entitlement-aggregation-mode.d.ts +12 -0
- package/esm/sdk/models/entitlement-aggregation-mode.d.ts.map +1 -0
- package/esm/sdk/models/entitlement-aggregation-mode.js +13 -0
- package/esm/sdk/models/entitlement-aggregation-mode.js.map +1 -0
- package/esm/sdk/models/entitlement-filter.d.ts +5 -0
- package/esm/sdk/models/entitlement-filter.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-filter.js +2 -0
- package/esm/sdk/models/entitlement-filter.js.map +1 -1
- package/esm/sdk/models/entitlement-grant-allocation-behavior.d.ts +12 -0
- package/esm/sdk/models/entitlement-grant-allocation-behavior.d.ts.map +1 -0
- package/esm/sdk/models/entitlement-grant-allocation-behavior.js +13 -0
- package/esm/sdk/models/entitlement-grant-allocation-behavior.js.map +1 -0
- package/esm/sdk/models/entitlement-grant-duration-unit.d.ts +14 -0
- package/esm/sdk/models/entitlement-grant-duration-unit.d.ts.map +1 -0
- package/esm/sdk/models/entitlement-grant-duration-unit.js +15 -0
- package/esm/sdk/models/entitlement-grant-duration-unit.js.map +1 -0
- package/esm/sdk/models/entitlement-grant-measure.d.ts +12 -0
- package/esm/sdk/models/entitlement-grant-measure.d.ts.map +1 -0
- package/esm/sdk/models/entitlement-grant-measure.js +13 -0
- package/esm/sdk/models/entitlement-grant-measure.js.map +1 -0
- package/esm/sdk/models/entitlement-response.d.ts +13 -0
- package/esm/sdk/models/entitlement-response.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-response.js +18 -0
- package/esm/sdk/models/entitlement-response.js.map +1 -1
- package/esm/sdk/models/entitlement-source.d.ts +3 -0
- package/esm/sdk/models/entitlement-source.d.ts.map +1 -1
- package/esm/sdk/models/entitlement-source.js +2 -0
- package/esm/sdk/models/entitlement-source.js.map +1 -1
- package/esm/sdk/models/entity-change-behaviour.d.ts +12 -0
- package/esm/sdk/models/entity-change-behaviour.d.ts.map +1 -0
- package/esm/sdk/models/entity-change-behaviour.js +13 -0
- package/esm/sdk/models/entity-change-behaviour.js.map +1 -0
- package/esm/sdk/models/entity-change-policy.d.ts +22 -0
- package/esm/sdk/models/entity-change-policy.d.ts.map +1 -0
- package/esm/sdk/models/entity-change-policy.js +19 -0
- package/esm/sdk/models/entity-change-policy.js.map +1 -0
- package/esm/sdk/models/entity-change-result.d.ts +15 -0
- package/esm/sdk/models/entity-change-result.d.ts.map +1 -0
- package/esm/sdk/models/entity-change-result.js +26 -0
- package/esm/sdk/models/entity-change-result.js.map +1 -0
- package/esm/sdk/models/entity-type.d.ts +0 -2
- package/esm/sdk/models/entity-type.d.ts.map +1 -1
- package/esm/sdk/models/entity-type.js +0 -2
- package/esm/sdk/models/entity-type.js.map +1 -1
- package/esm/sdk/models/error-code.d.ts +1 -0
- package/esm/sdk/models/error-code.d.ts.map +1 -1
- package/esm/sdk/models/error-code.js +1 -0
- package/esm/sdk/models/error-code.js.map +1 -1
- package/esm/sdk/models/execute-subscription-modify-request.d.ts +6 -0
- package/esm/sdk/models/execute-subscription-modify-request.d.ts.map +1 -1
- package/esm/sdk/models/execute-subscription-modify-request.js +5 -0
- package/esm/sdk/models/execute-subscription-modify-request.js.map +1 -1
- package/esm/sdk/models/execute-subscription-plan-change-v2-op.d.ts +21 -0
- package/esm/sdk/models/execute-subscription-plan-change-v2-op.d.ts.map +1 -0
- package/esm/sdk/models/execute-subscription-plan-change-v2-op.js +14 -0
- package/esm/sdk/models/execute-subscription-plan-change-v2-op.js.map +1 -0
- package/esm/sdk/models/feature-type.d.ts +1 -0
- package/esm/sdk/models/feature-type.d.ts.map +1 -1
- package/esm/sdk/models/feature-type.js +1 -0
- package/esm/sdk/models/feature-type.js.map +1 -1
- package/esm/sdk/models/file-type.d.ts +0 -2
- package/esm/sdk/models/file-type.d.ts.map +1 -1
- package/esm/sdk/models/file-type.js +0 -2
- package/esm/sdk/models/file-type.js.map +1 -1
- package/esm/sdk/models/filter-operator-type.d.ts +1 -0
- package/esm/sdk/models/filter-operator-type.d.ts.map +1 -1
- package/esm/sdk/models/filter-operator-type.js +1 -0
- package/esm/sdk/models/filter-operator-type.js.map +1 -1
- package/esm/sdk/models/gcp-marketplace-agreement.d.ts +30 -0
- package/esm/sdk/models/gcp-marketplace-agreement.d.ts.map +1 -0
- package/esm/sdk/models/gcp-marketplace-agreement.js +23 -0
- package/esm/sdk/models/gcp-marketplace-agreement.js.map +1 -0
- package/esm/sdk/models/get-addon-credit-grants-op.d.ts +15 -0
- package/esm/sdk/models/get-addon-credit-grants-op.d.ts.map +1 -0
- package/esm/sdk/models/get-addon-credit-grants-op.js +12 -0
- package/esm/sdk/models/get-addon-credit-grants-op.js.map +1 -0
- package/esm/sdk/models/get-alert-settings-op.d.ts +15 -0
- package/esm/sdk/models/get-alert-settings-op.d.ts.map +1 -0
- package/esm/sdk/models/get-alert-settings-op.js +12 -0
- package/esm/sdk/models/get-alert-settings-op.js.map +1 -0
- package/esm/sdk/models/get-checkout-session-op.d.ts +15 -0
- package/esm/sdk/models/get-checkout-session-op.d.ts.map +1 -0
- package/esm/sdk/models/get-checkout-session-op.js +12 -0
- package/esm/sdk/models/get-checkout-session-op.js.map +1 -0
- package/esm/sdk/models/get-cost-analytics-request.d.ts +19 -0
- package/esm/sdk/models/get-cost-analytics-request.d.ts.map +1 -1
- package/esm/sdk/models/get-cost-analytics-request.js +4 -0
- package/esm/sdk/models/get-cost-analytics-request.js.map +1 -1
- package/esm/sdk/models/get-customer-entitlements-by-external-id-op.d.ts +15 -0
- package/esm/sdk/models/get-customer-entitlements-by-external-id-op.d.ts.map +1 -0
- package/esm/sdk/models/get-customer-entitlements-by-external-id-op.js +17 -0
- package/esm/sdk/models/get-customer-entitlements-by-external-id-op.js.map +1 -0
- package/esm/sdk/models/get-hugging-face-billing-data-request.d.ts +12 -0
- package/esm/sdk/models/get-hugging-face-billing-data-request.d.ts.map +1 -0
- package/esm/sdk/models/get-hugging-face-billing-data-request.js +12 -0
- package/esm/sdk/models/get-hugging-face-billing-data-request.js.map +1 -0
- package/esm/sdk/models/get-invoice-op.d.ts +5 -0
- package/esm/sdk/models/get-invoice-op.d.ts.map +1 -1
- package/esm/sdk/models/get-invoice-op.js +1 -0
- package/esm/sdk/models/get-invoice-op.js.map +1 -1
- package/esm/sdk/models/get-subscriptions-for-customer-op.d.ts +20 -0
- package/esm/sdk/models/get-subscriptions-for-customer-op.d.ts.map +1 -0
- package/esm/sdk/models/get-subscriptions-for-customer-op.js +18 -0
- package/esm/sdk/models/get-subscriptions-for-customer-op.js.map +1 -0
- package/esm/sdk/models/get-usage-analytics-response.d.ts +5 -0
- package/esm/sdk/models/get-usage-analytics-response.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-analytics-response.js +3 -0
- package/esm/sdk/models/get-usage-analytics-response.js.map +1 -1
- package/esm/sdk/models/get-usage-by-meter-request.d.ts +2 -0
- package/esm/sdk/models/get-usage-by-meter-request.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-by-meter-request.js +1 -0
- package/esm/sdk/models/get-usage-by-meter-request.js.map +1 -1
- package/esm/sdk/models/get-usage-request.d.ts +2 -0
- package/esm/sdk/models/get-usage-request.d.ts.map +1 -1
- package/esm/sdk/models/get-usage-request.js +1 -0
- package/esm/sdk/models/get-usage-request.js.map +1 -1
- package/esm/sdk/models/get-wallet-transactions-op.d.ts +1 -0
- package/esm/sdk/models/get-wallet-transactions-op.d.ts.map +1 -1
- package/esm/sdk/models/get-wallet-transactions-op.js +1 -0
- package/esm/sdk/models/get-wallet-transactions-op.js.map +1 -1
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts +88 -0
- package/esm/sdk/models/grouped-invoicing-child-request.d.ts.map +1 -0
- package/esm/sdk/models/grouped-invoicing-child-request.js +58 -0
- package/esm/sdk/models/grouped-invoicing-child-request.js.map +1 -0
- package/esm/sdk/models/index.d.ts +85 -2
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +85 -2
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/integration-entity-type.d.ts +2 -0
- package/esm/sdk/models/integration-entity-type.d.ts.map +1 -1
- package/esm/sdk/models/integration-entity-type.js +2 -0
- package/esm/sdk/models/integration-entity-type.js.map +1 -1
- package/esm/sdk/models/invoice-line-item-coupon.d.ts +2 -0
- package/esm/sdk/models/invoice-line-item-coupon.d.ts.map +1 -1
- package/esm/sdk/models/invoice-line-item-coupon.js +2 -0
- package/esm/sdk/models/invoice-line-item-coupon.js.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.d.ts +7 -0
- package/esm/sdk/models/invoice-line-item-response.d.ts.map +1 -1
- package/esm/sdk/models/invoice-line-item-response.js +2 -0
- package/esm/sdk/models/invoice-line-item-response.js.map +1 -1
- package/esm/sdk/models/invoice-response.d.ts +7 -0
- package/esm/sdk/models/invoice-response.d.ts.map +1 -1
- package/esm/sdk/models/invoice-response.js +2 -0
- package/esm/sdk/models/invoice-response.js.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.d.ts +2 -0
- package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -1
- package/esm/sdk/models/invoice-sync-settings.js +3 -0
- package/esm/sdk/models/invoice-sync-settings.js.map +1 -1
- package/esm/sdk/models/line-item-commitment-config.d.ts +4 -15
- package/esm/sdk/models/line-item-commitment-config.d.ts.map +1 -1
- package/esm/sdk/models/line-item-commitment-config.js.map +1 -1
- package/esm/sdk/models/line-item-quantity-change.d.ts +2 -2
- package/esm/sdk/models/line-item-quantity-change.d.ts.map +1 -1
- package/esm/sdk/models/line-item-quantity-change.js +1 -1
- package/esm/sdk/models/line-item-quantity-change.js.map +1 -1
- package/esm/sdk/models/list-alert-settings-response.d.ts +13 -0
- package/esm/sdk/models/list-alert-settings-response.d.ts.map +1 -0
- package/esm/sdk/models/list-alert-settings-response.js +17 -0
- package/esm/sdk/models/list-alert-settings-response.js.map +1 -0
- package/esm/sdk/models/list-coupon-associations-op.d.ts +5 -0
- package/esm/sdk/models/list-coupon-associations-op.d.ts.map +1 -1
- package/esm/sdk/models/list-coupon-associations-op.js +1 -0
- package/esm/sdk/models/list-coupon-associations-op.js.map +1 -1
- package/esm/sdk/models/list-rbac-roles-op.d.ts +29 -0
- package/esm/sdk/models/list-rbac-roles-op.d.ts.map +1 -0
- package/esm/sdk/models/list-rbac-roles-op.js +26 -0
- package/esm/sdk/models/list-rbac-roles-op.js.map +1 -0
- package/esm/sdk/models/list-tax-rates-response.d.ts +13 -0
- package/esm/sdk/models/list-tax-rates-response.d.ts.map +1 -0
- package/esm/sdk/models/list-tax-rates-response.js +17 -0
- package/esm/sdk/models/list-tax-rates-response.js.map +1 -0
- package/esm/sdk/models/modify-subscription-line-item.d.ts +21 -0
- package/esm/sdk/models/modify-subscription-line-item.d.ts.map +1 -0
- package/esm/sdk/models/modify-subscription-line-item.js +36 -0
- package/esm/sdk/models/modify-subscription-line-item.js.map +1 -0
- package/esm/sdk/models/modify-subscription-params.d.ts +20 -0
- package/esm/sdk/models/modify-subscription-params.d.ts.map +1 -0
- package/esm/sdk/models/modify-subscription-params.js +35 -0
- package/esm/sdk/models/modify-subscription-params.js.map +1 -0
- package/esm/sdk/models/override-entitlement-request.d.ts +9 -0
- package/esm/sdk/models/override-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/override-entitlement-request.js +2 -0
- package/esm/sdk/models/override-entitlement-request.js.map +1 -1
- package/esm/sdk/models/payment-action-type.d.ts +10 -0
- package/esm/sdk/models/payment-action-type.d.ts.map +1 -0
- package/esm/sdk/models/payment-action-type.js +11 -0
- package/esm/sdk/models/payment-action-type.js.map +1 -0
- package/esm/sdk/models/payment-action.d.ts +12 -0
- package/esm/sdk/models/payment-action.d.ts.map +1 -0
- package/esm/sdk/models/payment-action.js +16 -0
- package/esm/sdk/models/payment-action.js.map +1 -0
- package/esm/sdk/models/payment-destination-type.d.ts +5 -4
- package/esm/sdk/models/payment-destination-type.d.ts.map +1 -1
- package/esm/sdk/models/payment-destination-type.js +4 -3
- package/esm/sdk/models/payment-destination-type.js.map +1 -1
- package/esm/sdk/models/payment-gateway-options.d.ts +13 -0
- package/esm/sdk/models/payment-gateway-options.d.ts.map +1 -0
- package/esm/sdk/models/payment-gateway-options.js +13 -0
- package/esm/sdk/models/payment-gateway-options.js.map +1 -0
- package/esm/sdk/models/payment-method-type.d.ts +1 -0
- package/esm/sdk/models/payment-method-type.d.ts.map +1 -1
- package/esm/sdk/models/payment-method-type.js +1 -0
- package/esm/sdk/models/payment-method-type.js.map +1 -1
- package/esm/sdk/models/payment-response.d.ts +2 -0
- package/esm/sdk/models/payment-response.d.ts.map +1 -1
- package/esm/sdk/models/payment-response.js +4 -0
- package/esm/sdk/models/payment-response.js.map +1 -1
- package/esm/sdk/models/payment-status.d.ts +1 -0
- package/esm/sdk/models/payment-status.d.ts.map +1 -1
- package/esm/sdk/models/payment-status.js +1 -0
- package/esm/sdk/models/payment-status.js.map +1 -1
- package/esm/sdk/models/preview-subscription-plan-change-v2-op.d.ts +21 -0
- package/esm/sdk/models/preview-subscription-plan-change-v2-op.d.ts.map +1 -0
- package/esm/sdk/models/preview-subscription-plan-change-v2-op.js +14 -0
- package/esm/sdk/models/preview-subscription-plan-change-v2-op.js.map +1 -0
- package/esm/sdk/models/register-marketplace-agreement-request.d.ts +28 -0
- package/esm/sdk/models/register-marketplace-agreement-request.d.ts.map +1 -0
- package/esm/sdk/models/register-marketplace-agreement-request.js +29 -0
- package/esm/sdk/models/register-marketplace-agreement-request.js.map +1 -0
- package/esm/sdk/models/register-marketplace-agreement-response.d.ts +13 -0
- package/esm/sdk/models/register-marketplace-agreement-response.d.ts.map +1 -0
- package/esm/sdk/models/register-marketplace-agreement-response.js +24 -0
- package/esm/sdk/models/register-marketplace-agreement-response.js.map +1 -0
- package/esm/sdk/models/rejected-event-reason.d.ts +10 -0
- package/esm/sdk/models/rejected-event-reason.d.ts.map +1 -0
- package/esm/sdk/models/rejected-event-reason.js +11 -0
- package/esm/sdk/models/rejected-event-reason.js.map +1 -0
- package/esm/sdk/models/remove-addon-request.d.ts +1 -6
- package/esm/sdk/models/remove-addon-request.d.ts.map +1 -1
- package/esm/sdk/models/remove-addon-request.js.map +1 -1
- package/esm/sdk/models/s3-job-config.d.ts +1 -1
- package/esm/sdk/models/secret-provider.d.ts +6 -0
- package/esm/sdk/models/secret-provider.d.ts.map +1 -1
- package/esm/sdk/models/secret-provider.js +6 -0
- package/esm/sdk/models/secret-provider.js.map +1 -1
- package/esm/sdk/models/service-period-custom-fields.d.ts +11 -0
- package/esm/sdk/models/service-period-custom-fields.d.ts.map +1 -0
- package/esm/sdk/models/service-period-custom-fields.js +21 -0
- package/esm/sdk/models/service-period-custom-fields.js.map +1 -0
- package/esm/sdk/models/stripe-payment-gateway-options.d.ts +15 -0
- package/esm/sdk/models/stripe-payment-gateway-options.d.ts.map +1 -0
- package/esm/sdk/models/stripe-payment-gateway-options.js +17 -0
- package/esm/sdk/models/stripe-payment-gateway-options.js.map +1 -0
- package/esm/sdk/models/sub-modify-addon-params.d.ts +19 -0
- package/esm/sdk/models/sub-modify-addon-params.d.ts.map +1 -0
- package/esm/sdk/models/sub-modify-addon-params.js +17 -0
- package/esm/sdk/models/sub-modify-addon-params.js.map +1 -0
- package/esm/sdk/models/subscription-change-entity-policies.d.ts +13 -0
- package/esm/sdk/models/subscription-change-entity-policies.d.ts.map +1 -0
- package/esm/sdk/models/subscription-change-entity-policies.js +13 -0
- package/esm/sdk/models/subscription-change-entity-policies.js.map +1 -0
- package/esm/sdk/models/subscription-change-v2-request.d.ts +29 -0
- package/esm/sdk/models/subscription-change-v2-request.d.ts.map +1 -0
- package/esm/sdk/models/subscription-change-v2-request.js +29 -0
- package/esm/sdk/models/subscription-change-v2-request.js.map +1 -0
- package/esm/sdk/models/subscription-change-v2-response.d.ts +34 -0
- package/esm/sdk/models/subscription-change-v2-response.d.ts.map +1 -0
- package/esm/sdk/models/subscription-change-v2-response.js +43 -0
- package/esm/sdk/models/subscription-change-v2-response.js.map +1 -0
- package/esm/sdk/models/subscription-coupon-input.d.ts +0 -12
- package/esm/sdk/models/subscription-coupon-input.d.ts.map +1 -1
- package/esm/sdk/models/subscription-coupon-input.js.map +1 -1
- package/esm/sdk/models/subscription-filter.d.ts +20 -1
- package/esm/sdk/models/subscription-filter.d.ts.map +1 -1
- package/esm/sdk/models/subscription-filter.js +2 -0
- package/esm/sdk/models/subscription-filter.js.map +1 -1
- package/esm/sdk/models/subscription-inheritance-config.d.ts +7 -16
- package/esm/sdk/models/subscription-inheritance-config.d.ts.map +1 -1
- package/esm/sdk/models/subscription-inheritance-config.js +3 -0
- package/esm/sdk/models/subscription-inheritance-config.js.map +1 -1
- package/esm/sdk/models/subscription-line-item-filter.d.ts +3 -1
- package/esm/sdk/models/subscription-line-item-filter.d.ts.map +1 -1
- package/esm/sdk/models/subscription-line-item-filter.js +2 -0
- package/esm/sdk/models/subscription-line-item-filter.js.map +1 -1
- 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 +2 -0
- package/esm/sdk/models/subscription-line-item-response.js.map +1 -1
- package/esm/sdk/models/subscription-modification-action.d.ts +10 -0
- package/esm/sdk/models/subscription-modification-action.d.ts.map +1 -0
- package/esm/sdk/models/subscription-modification-action.js +11 -0
- package/esm/sdk/models/subscription-modification-action.js.map +1 -0
- package/esm/sdk/models/subscription-modify-response.d.ts +2 -0
- package/esm/sdk/models/subscription-modify-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-modify-response.js +3 -0
- package/esm/sdk/models/subscription-modify-response.js.map +1 -1
- package/esm/sdk/models/subscription-modify-type.d.ts +1 -0
- package/esm/sdk/models/subscription-modify-type.d.ts.map +1 -1
- package/esm/sdk/models/subscription-modify-type.js +1 -0
- package/esm/sdk/models/subscription-modify-type.js.map +1 -1
- package/esm/sdk/models/subscription-phase-create-request.d.ts +2 -8
- package/esm/sdk/models/subscription-phase-create-request.d.ts.map +1 -1
- package/esm/sdk/models/subscription-phase-create-request.js.map +1 -1
- package/esm/sdk/models/subscription-response-v2.d.ts +1 -1
- package/esm/sdk/models/subscription-response-v2.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response-v2.js +1 -2
- package/esm/sdk/models/subscription-response-v2.js.map +1 -1
- package/esm/sdk/models/subscription-response.d.ts +12 -1
- package/esm/sdk/models/subscription-response.d.ts.map +1 -1
- package/esm/sdk/models/subscription-response.js +6 -2
- 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 +2 -0
- package/esm/sdk/models/subscription-subscription-line-item.js.map +1 -1
- package/esm/sdk/models/sync-config.d.ts +3 -0
- package/esm/sdk/models/sync-config.d.ts.map +1 -1
- package/esm/sdk/models/sync-config.js +4 -0
- package/esm/sdk/models/sync-config.js.map +1 -1
- package/esm/sdk/models/task-type.d.ts +0 -2
- package/esm/sdk/models/task-type.d.ts.map +1 -1
- package/esm/sdk/models/task-type.js +0 -2
- package/esm/sdk/models/task-type.js.map +1 -1
- package/esm/sdk/models/top-up-wallet-request.d.ts +24 -0
- package/esm/sdk/models/top-up-wallet-request.d.ts.map +1 -1
- package/esm/sdk/models/top-up-wallet-request.js +8 -0
- package/esm/sdk/models/top-up-wallet-request.js.map +1 -1
- package/esm/sdk/models/top-up-wallet-response.d.ts +2 -0
- package/esm/sdk/models/top-up-wallet-response.d.ts.map +1 -1
- package/esm/sdk/models/top-up-wallet-response.js +3 -0
- package/esm/sdk/models/top-up-wallet-response.js.map +1 -1
- package/esm/sdk/models/transaction-reason.d.ts +1 -0
- package/esm/sdk/models/transaction-reason.d.ts.map +1 -1
- package/esm/sdk/models/transaction-reason.js +1 -0
- package/esm/sdk/models/transaction-reason.js.map +1 -1
- package/esm/sdk/models/update-alert-settings-op.d.ts +21 -0
- package/esm/sdk/models/update-alert-settings-op.d.ts.map +1 -0
- package/esm/sdk/models/update-alert-settings-op.js +14 -0
- package/esm/sdk/models/update-alert-settings-op.js.map +1 -0
- package/esm/sdk/models/update-alert-settings-request.d.ts +13 -0
- package/esm/sdk/models/update-alert-settings-request.d.ts.map +1 -0
- package/esm/sdk/models/update-alert-settings-request.js +13 -0
- package/esm/sdk/models/update-alert-settings-request.js.map +1 -0
- package/esm/sdk/models/update-credit-grant-request.d.ts +2 -0
- package/esm/sdk/models/update-credit-grant-request.d.ts.map +1 -1
- package/esm/sdk/models/update-credit-grant-request.js +8 -2
- package/esm/sdk/models/update-credit-grant-request.js.map +1 -1
- package/esm/sdk/models/update-customer-request.d.ts +10 -0
- package/esm/sdk/models/update-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/update-customer-request.js +2 -0
- package/esm/sdk/models/update-customer-request.js.map +1 -1
- package/esm/sdk/models/update-entitlement-request.d.ts +30 -0
- package/esm/sdk/models/update-entitlement-request.d.ts.map +1 -1
- package/esm/sdk/models/update-entitlement-request.js +20 -0
- package/esm/sdk/models/update-entitlement-request.js.map +1 -1
- package/esm/sdk/models/update-invoice-request.d.ts +5 -0
- package/esm/sdk/models/update-invoice-request.d.ts.map +1 -1
- package/esm/sdk/models/update-invoice-request.js +2 -0
- package/esm/sdk/models/update-invoice-request.js.map +1 -1
- package/esm/sdk/models/update-payment-request.d.ts +4 -0
- package/esm/sdk/models/update-payment-request.d.ts.map +1 -1
- package/esm/sdk/models/update-payment-request.js +4 -0
- package/esm/sdk/models/update-payment-request.js.map +1 -1
- package/esm/sdk/models/update-user-roles-op.d.ts +21 -0
- package/esm/sdk/models/update-user-roles-op.d.ts.map +1 -0
- package/esm/sdk/models/update-user-roles-op.js +14 -0
- package/esm/sdk/models/update-user-roles-op.js.map +1 -0
- package/esm/sdk/models/update-user-roles-request.d.ts +12 -0
- package/esm/sdk/models/update-user-roles-request.d.ts.map +1 -0
- package/esm/sdk/models/update-user-roles-request.js +12 -0
- package/esm/sdk/models/update-user-roles-request.js.map +1 -0
- package/esm/sdk/models/update-user-roles-response.d.ts +23 -0
- package/esm/sdk/models/update-user-roles-response.d.ts.map +1 -0
- package/esm/sdk/models/update-user-roles-response.js +22 -0
- package/esm/sdk/models/update-user-roles-response.js.map +1 -0
- package/esm/sdk/models/usage-analytic-item.d.ts +5 -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 +5 -0
- package/esm/sdk/models/usage-analytic-point.d.ts.map +1 -1
- package/esm/sdk/models/usage-analytic-point.js +2 -0
- package/esm/sdk/models/usage-analytic-point.js.map +1 -1
- package/esm/sdk/models/wallet-balance-response.d.ts +9 -0
- package/esm/sdk/models/wallet-balance-response.d.ts.map +1 -1
- package/esm/sdk/models/wallet-balance-response.js +2 -0
- package/esm/sdk/models/wallet-balance-response.js.map +1 -1
- package/esm/sdk/models/wallet-response.d.ts +2 -0
- package/esm/sdk/models/wallet-response.d.ts.map +1 -1
- package/esm/sdk/models/wallet-response.js +4 -0
- package/esm/sdk/models/wallet-response.js.map +1 -1
- package/esm/sdk/models/wallet-topup-params.d.ts +19 -0
- package/esm/sdk/models/wallet-topup-params.d.ts.map +1 -0
- package/esm/sdk/models/wallet-topup-params.js +34 -0
- package/esm/sdk/models/wallet-topup-params.js.map +1 -0
- package/esm/sdk/models/wallet-transaction-response.d.ts +7 -0
- package/esm/sdk/models/wallet-transaction-response.d.ts.map +1 -1
- package/esm/sdk/models/wallet-transaction-response.js +2 -0
- package/esm/sdk/models/wallet-transaction-response.js.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts +9 -11
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js +14 -8
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-checkout-session-webhook-payload.d.ts +13 -0
- package/esm/sdk/models/webhook-dto-checkout-session-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-checkout-session-webhook-payload.js +23 -0
- package/esm/sdk/models/webhook-dto-checkout-session-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-checkout-session.d.ts +25 -0
- package/esm/sdk/models/webhook-dto-checkout-session.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-checkout-session.js +43 -0
- package/esm/sdk/models/webhook-dto-checkout-session.js.map +1 -0
- 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-credit-note-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-credit-note.d.ts +28 -0
- package/esm/sdk/models/webhook-dto-credit-note.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-credit-note.js +43 -0
- package/esm/sdk/models/webhook-dto-credit-note.js.map +1 -0
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts +2 -5
- 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-customer.d.ts +24 -0
- package/esm/sdk/models/webhook-dto-customer.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-customer.js +38 -0
- package/esm/sdk/models/webhook-dto-customer.js.map +1 -0
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-entitlement.d.ts +22 -0
- package/esm/sdk/models/webhook-dto-entitlement.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-entitlement.js +39 -0
- package/esm/sdk/models/webhook-dto-entitlement.js.map +1 -0
- 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-feature.d.ts +22 -0
- package/esm/sdk/models/webhook-dto-feature.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-feature.js +33 -0
- package/esm/sdk/models/webhook-dto-feature.js.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.d.ts +17 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.js +30 -0
- package/esm/sdk/models/webhook-dto-invoice-line-item.js.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice.d.ts +43 -0
- package/esm/sdk/models/webhook-dto-invoice.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice.js +68 -0
- package/esm/sdk/models/webhook-dto-invoice.js.map +1 -0
- 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-payment.d.ts +26 -0
- package/esm/sdk/models/webhook-dto-payment.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-payment.js +45 -0
- package/esm/sdk/models/webhook-dto-payment.js.map +1 -0
- package/esm/sdk/models/webhook-dto-rejected-event-data.d.ts +18 -0
- package/esm/sdk/models/webhook-dto-rejected-event-data.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-rejected-event-data.js +27 -0
- package/esm/sdk/models/webhook-dto-rejected-event-data.js.map +1 -0
- package/esm/sdk/models/webhook-dto-rejected-event-webhook-payload.d.ts +15 -0
- package/esm/sdk/models/webhook-dto-rejected-event-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-rejected-event-webhook-payload.js +24 -0
- package/esm/sdk/models/webhook-dto-rejected-event-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-spend-alert-event.d.ts +20 -0
- package/esm/sdk/models/webhook-dto-spend-alert-event.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-spend-alert-event.js +34 -0
- package/esm/sdk/models/webhook-dto-spend-alert-event.js.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts +2 -2
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js +2 -2
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-phase.d.ts +13 -0
- package/esm/sdk/models/webhook-dto-subscription-phase.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription-phase.js +24 -0
- package/esm/sdk/models/webhook-dto-subscription-phase.js.map +1 -0
- 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-subscription.d.ts +40 -0
- package/esm/sdk/models/webhook-dto-subscription.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription.js +65 -0
- package/esm/sdk/models/webhook-dto-subscription.js.map +1 -0
- package/esm/sdk/models/webhook-dto-transaction-updated-webhook-payload.d.ts +13 -0
- package/esm/sdk/models/webhook-dto-transaction-updated-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-transaction-updated-webhook-payload.js +23 -0
- package/esm/sdk/models/webhook-dto-transaction-updated-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts +2 -4
- 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 -4
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-transaction.d.ts +31 -0
- package/esm/sdk/models/webhook-dto-wallet-transaction.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet-transaction.js +47 -0
- package/esm/sdk/models/webhook-dto-wallet-transaction.js.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts +2 -7
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js +2 -4
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet.d.ts +20 -0
- package/esm/sdk/models/webhook-dto-wallet.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet.js +33 -0
- package/esm/sdk/models/webhook-dto-wallet.js.map +1 -0
- package/esm/sdk/models/webhook-event-name.d.ts +15 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -1
- package/esm/sdk/models/webhook-event-name.js +15 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -1
- package/esm/sdk/rbac.d.ts +2 -1
- package/esm/sdk/rbac.d.ts.map +1 -1
- package/esm/sdk/rbac.js +2 -2
- package/esm/sdk/rbac.js.map +1 -1
- package/esm/sdk/sdk.d.ts +11 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +19 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/subscriptions.d.ts +29 -3
- package/esm/sdk/subscriptions.d.ts.map +1 -1
- package/esm/sdk/subscriptions.js +34 -2
- package/esm/sdk/subscriptions.js.map +1 -1
- package/esm/sdk/tasks.d.ts +0 -7
- package/esm/sdk/tasks.d.ts.map +1 -1
- package/esm/sdk/tasks.js +0 -10
- package/esm/sdk/tasks.js.map +1 -1
- package/esm/sdk/tax-rates.d.ts +1 -1
- package/esm/sdk/tax-rates.d.ts.map +1 -1
- package/esm/sdk/tax-rates.js.map +1 -1
- package/esm/sdk/users.d.ts +7 -0
- package/esm/sdk/users.d.ts.map +1 -1
- package/esm/sdk/users.js +10 -0
- package/esm/sdk/users.js.map +1 -1
- package/esm/sdk/webhook-events.d.ts +105 -0
- package/esm/sdk/webhook-events.d.ts.map +1 -1
- package/esm/sdk/webhook-events.js +150 -0
- package/esm/sdk/webhook-events.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/{costs-get-detailed-cost-analytics-v2.ts → alert-settings-create-alert-settings.ts} +12 -12
- package/src/funcs/alert-settings-delete-alert-settings.ts +181 -0
- package/src/funcs/alert-settings-get-alert-settings.ts +181 -0
- package/src/funcs/{tasks-create-task.ts → alert-settings-query-alert-settings.ts} +12 -12
- package/src/funcs/alert-settings-update-alert-settings.ts +187 -0
- package/src/funcs/checkout-create-checkout-session.ts +170 -0
- package/src/funcs/checkout-delete-checkout-session.ts +179 -0
- package/src/funcs/checkout-get-checkout-session.ts +178 -0
- package/src/funcs/coupon-associations-list-coupon-associations.ts +1 -0
- package/src/funcs/credit-grants-get-addon-credit-grants.ts +182 -0
- package/src/funcs/customers-get-customer-entitlements-by-external-id.ts +187 -0
- package/src/funcs/customers-get-subscriptions-for-customer.ts +193 -0
- package/src/funcs/events-get-event.ts +8 -9
- package/src/funcs/events-get-huggingface-inference-data.ts +21 -1
- package/src/funcs/invoices-get-invoice.ts +5 -0
- package/src/funcs/invoices-update-invoice.ts +1 -1
- package/src/funcs/marketplace-post-marketplace-agreements.ts +164 -0
- package/src/funcs/rbac-list-rbac-roles.ts +39 -2
- package/src/funcs/subscriptions-add-subscription-addon.ts +7 -4
- package/src/funcs/subscriptions-execute-subscription-modify.ts +1 -1
- package/src/funcs/subscriptions-execute-subscription-plan-change-v2.ts +196 -0
- package/src/funcs/subscriptions-preview-subscription-modify.ts +1 -1
- package/src/funcs/subscriptions-preview-subscription-plan-change-v2.ts +190 -0
- package/src/funcs/subscriptions-remove-subscription-addon.ts +3 -0
- package/src/funcs/tax-rates-get-tax-rates.ts +4 -4
- package/src/funcs/users-update-user-roles.ts +187 -0
- package/src/funcs/webhook-events-post-webhook-events-checkout-session-completed.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-checkout-session-expired.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-checkout-session-failed.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-checkout-session-initiated.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-event-rejected.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-create-drafted.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.ts +147 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.ts +147 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.ts +147 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.ts +147 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-plan-changed.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.ts +146 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.ts +146 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.ts +144 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-transaction-updated.ts +147 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/sdk/alert-settings.ts +101 -0
- package/src/sdk/checkout.ts +54 -0
- package/src/sdk/costs.ts +0 -18
- package/src/sdk/credit-grants.ts +18 -0
- package/src/sdk/customers.ts +38 -0
- package/src/sdk/events.ts +20 -18
- package/src/sdk/invoices.ts +3 -1
- package/src/sdk/marketplace.ts +27 -0
- package/src/sdk/models/add-addon-params.ts +71 -0
- package/src/sdk/models/add-addon-ref.ts +91 -0
- package/src/sdk/models/add-addon-request.ts +22 -0
- package/src/sdk/models/add-addon-to-subscription-request.ts +14 -0
- package/src/sdk/models/add-addon-to-subscription-response.ts +103 -0
- package/src/sdk/models/addon-cadence.ts +8 -4
- package/src/sdk/models/addon-response.ts +7 -0
- package/src/sdk/models/aggregated-entitlement-bucket.ts +67 -0
- package/src/sdk/models/aggregated-entitlement.ts +34 -3
- package/src/sdk/models/alert-entity-type.ts +4 -0
- package/src/sdk/models/alert-info.ts +2 -2
- package/src/sdk/models/alert-settings-filter.ts +122 -0
- package/src/sdk/models/alert-settings-response.ts +83 -0
- package/src/sdk/models/alert-threshold.ts +4 -4
- package/src/sdk/models/alert-type.ts +5 -0
- package/src/sdk/models/auto-topup.ts +54 -0
- package/src/sdk/models/aws-marketplace-agreement.ts +68 -0
- package/src/sdk/models/aws-marketplace-sync-config.ts +31 -0
- package/src/sdk/models/azure-marketplace-agreement.ts +61 -0
- package/src/sdk/models/checkout-action.ts +26 -0
- package/src/sdk/models/checkout-configuration.ts +74 -0
- package/src/sdk/models/checkout-jsonb-checkout-configuration.ts +69 -0
- package/src/sdk/models/checkout-jsonb-checkout-payment-provider-config.ts +57 -0
- package/src/sdk/models/checkout-jsonb-checkout-provider-result.ts +80 -0
- package/src/sdk/models/checkout-jsonb-checkout-result.ts +45 -0
- package/src/sdk/models/checkout-params.ts +68 -0
- package/src/sdk/models/checkout-payment-provider-config.ts +56 -0
- package/src/sdk/models/checkout-payment-provider.ts +22 -0
- package/src/sdk/models/checkout-session-response.ts +184 -0
- package/src/sdk/models/checkout-status.ts +22 -0
- package/src/sdk/models/collection-method.ts +12 -5
- package/src/sdk/models/coupon-association-response.ts +15 -3
- package/src/sdk/models/create-addon-response.ts +7 -0
- package/src/sdk/models/create-alert-settings-request.ts +74 -0
- package/src/sdk/models/create-checkout-session-request.ts +93 -0
- package/src/sdk/models/create-credit-grant-request.ts +4 -0
- package/src/sdk/models/create-customer-request.ts +25 -3
- package/src/sdk/models/create-entitlement-request.ts +46 -0
- package/src/sdk/models/create-invoice-request.ts +12 -0
- package/src/sdk/models/create-payment-request.ts +9 -0
- package/src/sdk/models/create-subscription-params.ts +108 -0
- package/src/sdk/models/create-subscription-request.ts +20 -60
- package/src/sdk/models/create-subscription-result.ts +45 -0
- package/src/sdk/models/credit-grant-response.ts +3 -0
- package/src/sdk/models/credit-grant-scope.ts +1 -0
- package/src/sdk/models/customer-entitlements-response.ts +6 -0
- package/src/sdk/models/customer-response.ts +13 -0
- package/src/sdk/models/customer.ts +13 -0
- package/src/sdk/models/delete-alert-settings-op.ts +33 -0
- package/src/sdk/models/delete-checkout-session-op.ts +35 -0
- package/src/sdk/models/duration-unit.ts +22 -0
- package/src/sdk/models/entitlement-aggregation-mode.ts +26 -0
- package/src/sdk/models/entitlement-filter.ts +7 -0
- package/src/sdk/models/entitlement-grant-allocation-behavior.ts +26 -0
- package/src/sdk/models/entitlement-grant-duration-unit.ts +28 -0
- package/src/sdk/models/entitlement-grant-measure.ts +24 -0
- package/src/sdk/models/entitlement-response.ts +41 -0
- package/src/sdk/models/entitlement-source.ts +3 -0
- package/src/sdk/models/entity-change-behaviour.ts +24 -0
- package/src/sdk/models/entity-change-policy.ts +50 -0
- package/src/sdk/models/entity-change-result.ts +55 -0
- package/src/sdk/models/entity-type.ts +0 -3
- package/src/sdk/models/error-code.ts +1 -0
- package/src/sdk/models/execute-subscription-modify-request.ts +17 -0
- package/src/sdk/models/execute-subscription-plan-change-v2-op.ts +48 -0
- package/src/sdk/models/feature-type.ts +1 -0
- package/src/sdk/models/file-type.ts +0 -3
- package/src/sdk/models/filter-operator-type.ts +1 -0
- package/src/sdk/models/gcp-marketplace-agreement.ts +62 -0
- package/src/sdk/models/get-addon-credit-grants-op.ts +35 -0
- package/src/sdk/models/get-alert-settings-op.ts +33 -0
- package/src/sdk/models/get-checkout-session-op.ts +33 -0
- package/src/sdk/models/get-cost-analytics-request.ts +19 -0
- package/src/sdk/models/get-customer-entitlements-by-external-id-op.ts +45 -0
- package/src/sdk/models/get-hugging-face-billing-data-request.ts +32 -0
- package/src/sdk/models/get-invoice-op.ts +6 -0
- package/src/sdk/models/get-subscriptions-for-customer-op.ts +49 -0
- package/src/sdk/models/get-usage-analytics-response.ts +8 -0
- package/src/sdk/models/get-usage-by-meter-request.ts +3 -0
- package/src/sdk/models/get-usage-request.ts +3 -0
- package/src/sdk/models/get-wallet-transactions-op.ts +1 -0
- package/src/sdk/models/grouped-invoicing-child-request.ts +192 -0
- package/src/sdk/models/index.ts +85 -2
- package/src/sdk/models/integration-entity-type.ts +2 -0
- package/src/sdk/models/invoice-line-item-coupon.ts +4 -0
- package/src/sdk/models/invoice-line-item-response.ts +9 -0
- package/src/sdk/models/invoice-response.ts +9 -0
- package/src/sdk/models/invoice-sync-settings.ts +9 -0
- package/src/sdk/models/line-item-commitment-config.ts +4 -15
- package/src/sdk/models/line-item-quantity-change.ts +3 -3
- package/src/sdk/models/list-alert-settings-response.ts +41 -0
- package/src/sdk/models/list-coupon-associations-op.ts +6 -0
- package/src/sdk/models/list-rbac-roles-op.ts +59 -0
- package/src/sdk/models/list-tax-rates-response.ts +41 -0
- package/src/sdk/models/modify-subscription-line-item.ts +77 -0
- package/src/sdk/models/modify-subscription-params.ts +83 -0
- package/src/sdk/models/override-entitlement-request.ts +7 -0
- package/src/sdk/models/payment-action-type.ts +19 -0
- package/src/sdk/models/payment-action.ts +37 -0
- package/src/sdk/models/payment-destination-type.ts +12 -8
- package/src/sdk/models/payment-gateway-options.ts +35 -0
- package/src/sdk/models/payment-method-type.ts +1 -0
- package/src/sdk/models/payment-response.ts +6 -0
- package/src/sdk/models/payment-status.ts +1 -0
- package/src/sdk/models/preview-subscription-plan-change-v2-op.ts +48 -0
- package/src/sdk/models/register-marketplace-agreement-request.ts +79 -0
- package/src/sdk/models/register-marketplace-agreement-response.ts +48 -0
- package/src/sdk/models/rejected-event-reason.ts +19 -0
- package/src/sdk/models/remove-addon-request.ts +1 -6
- package/src/sdk/models/s3-job-config.ts +1 -1
- package/src/sdk/models/secret-provider.ts +9 -0
- package/src/sdk/models/service-period-custom-fields.ts +42 -0
- package/src/sdk/models/stripe-payment-gateway-options.ts +43 -0
- package/src/sdk/models/sub-modify-addon-params.ts +50 -0
- package/src/sdk/models/subscription-change-entity-policies.ts +37 -0
- package/src/sdk/models/subscription-change-v2-request.ts +69 -0
- package/src/sdk/models/subscription-change-v2-response.ts +92 -0
- package/src/sdk/models/subscription-coupon-input.ts +0 -12
- package/src/sdk/models/subscription-filter.ts +22 -1
- package/src/sdk/models/subscription-inheritance-config.ts +19 -16
- package/src/sdk/models/subscription-line-item-filter.ts +5 -1
- package/src/sdk/models/subscription-line-item-response.ts +3 -0
- package/src/sdk/models/subscription-modification-action.ts +19 -0
- package/src/sdk/models/subscription-modify-response.ts +7 -0
- package/src/sdk/models/subscription-modify-type.ts +1 -0
- package/src/sdk/models/subscription-phase-create-request.ts +2 -8
- package/src/sdk/models/subscription-response-v2.ts +2 -3
- package/src/sdk/models/subscription-response.ts +22 -3
- package/src/sdk/models/subscription-subscription-line-item.ts +3 -0
- package/src/sdk/models/sync-config.ts +9 -0
- package/src/sdk/models/task-type.ts +0 -3
- package/src/sdk/models/top-up-wallet-request.ts +35 -0
- package/src/sdk/models/top-up-wallet-response.ts +7 -0
- package/src/sdk/models/transaction-reason.ts +1 -0
- package/src/sdk/models/update-alert-settings-op.ts +46 -0
- package/src/sdk/models/update-alert-settings-request.ts +35 -0
- package/src/sdk/models/update-credit-grant-request.ts +15 -4
- package/src/sdk/models/update-customer-request.ts +12 -0
- package/src/sdk/models/update-entitlement-request.ts +56 -0
- package/src/sdk/models/update-invoice-request.ts +7 -0
- package/src/sdk/models/update-payment-request.ts +8 -0
- package/src/sdk/models/update-user-roles-op.ts +46 -0
- package/src/sdk/models/update-user-roles-request.ts +30 -0
- package/src/sdk/models/update-user-roles-response.ts +51 -0
- package/src/sdk/models/usage-analytic-item.ts +8 -0
- package/src/sdk/models/usage-analytic-point.ts +7 -0
- package/src/sdk/models/wallet-balance-response.ts +11 -0
- package/src/sdk/models/wallet-response.ts +6 -0
- package/src/sdk/models/wallet-topup-params.ts +71 -0
- package/src/sdk/models/wallet-transaction-response.ts +9 -0
- package/src/sdk/models/webhook-dto-alert-webhook-payload.ts +21 -25
- package/src/sdk/models/webhook-dto-checkout-session-webhook-payload.ts +54 -0
- package/src/sdk/models/webhook-dto-checkout-session.ts +86 -0
- package/src/sdk/models/webhook-dto-communication-webhook-payload.ts +6 -6
- package/src/sdk/models/webhook-dto-credit-note-webhook-payload.ts +6 -6
- package/src/sdk/models/webhook-dto-credit-note.ts +85 -0
- package/src/sdk/models/webhook-dto-customer-webhook-payload.ts +6 -9
- package/src/sdk/models/webhook-dto-customer.ts +70 -0
- package/src/sdk/models/webhook-dto-entitlement-webhook-payload.ts +6 -6
- package/src/sdk/models/webhook-dto-entitlement.ts +76 -0
- package/src/sdk/models/webhook-dto-feature-webhook-payload.ts +6 -6
- package/src/sdk/models/webhook-dto-feature.ts +62 -0
- package/src/sdk/models/webhook-dto-invoice-line-item.ts +57 -0
- package/src/sdk/models/webhook-dto-invoice.ts +130 -0
- package/src/sdk/models/webhook-dto-payment-webhook-payload.ts +6 -6
- package/src/sdk/models/webhook-dto-payment.ts +87 -0
- package/src/sdk/models/webhook-dto-rejected-event-data.ts +53 -0
- package/src/sdk/models/webhook-dto-rejected-event-webhook-payload.ts +56 -0
- package/src/sdk/models/webhook-dto-spend-alert-event.ts +64 -0
- package/src/sdk/models/webhook-dto-subscription-phase-webhook-payload.ts +5 -5
- package/src/sdk/models/webhook-dto-subscription-phase.ts +47 -0
- package/src/sdk/models/webhook-dto-subscription-webhook-payload.ts +5 -5
- package/src/sdk/models/webhook-dto-subscription.ts +122 -0
- package/src/sdk/models/webhook-dto-transaction-updated-webhook-payload.ts +56 -0
- package/src/sdk/models/webhook-dto-transaction-webhook-payload.ts +5 -11
- package/src/sdk/models/webhook-dto-wallet-transaction.ts +94 -0
- package/src/sdk/models/webhook-dto-wallet-webhook-payload.ts +6 -15
- package/src/sdk/models/webhook-dto-wallet.ts +61 -0
- package/src/sdk/models/webhook-event-name.ts +19 -0
- package/src/sdk/rbac.ts +3 -0
- package/src/sdk/sdk.ts +23 -5
- package/src/sdk/subscriptions.ts +55 -3
- package/src/sdk/tasks.ts +0 -18
- package/src/sdk/tax-rates.ts +1 -1
- package/src/sdk/users.ts +20 -0
- package/src/sdk/webhook-events.ts +254 -0
- package/docs/sdk/models/create-task-request.md +0 -25
- package/esm/funcs/costs-get-detailed-cost-analytics-v2.d.ts +0 -17
- package/esm/funcs/costs-get-detailed-cost-analytics-v2.d.ts.map +0 -1
- package/esm/funcs/tasks-create-task.d.ts.map +0 -1
- package/esm/funcs/tasks-create-task.js.map +0 -1
- package/esm/sdk/models/coupon.d.ts +0 -38
- package/esm/sdk/models/coupon.d.ts.map +0 -1
- package/esm/sdk/models/coupon.js +0 -56
- package/esm/sdk/models/coupon.js.map +0 -1
- package/esm/sdk/models/create-task-request.d.ts +0 -29
- package/esm/sdk/models/create-task-request.d.ts.map +0 -1
- package/esm/sdk/models/create-task-request.js +0 -29
- package/esm/sdk/models/create-task-request.js.map +0 -1
- package/src/sdk/models/coupon.ts +0 -97
- package/src/sdk/models/create-task-request.ts +0 -60
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
### Available Operations
|
|
6
6
|
|
|
7
|
+
* [postWebhookEventsCheckoutSessionCompleted](#postwebhookeventscheckoutsessioncompleted) - checkout.session.completed
|
|
8
|
+
* [postWebhookEventsCheckoutSessionExpired](#postwebhookeventscheckoutsessionexpired) - checkout.session.expired
|
|
9
|
+
* [postWebhookEventsCheckoutSessionFailed](#postwebhookeventscheckoutsessionfailed) - checkout.session.failed
|
|
10
|
+
* [postWebhookEventsCheckoutSessionInitiated](#postwebhookeventscheckoutsessioninitiated) - checkout.session.initiated
|
|
7
11
|
* [postWebhookEventsCreditNoteCreated](#postwebhookeventscreditnotecreated) - credit_note.created
|
|
8
12
|
* [postWebhookEventsCreditNoteUpdated](#postwebhookeventscreditnoteupdated) - credit_note.updated
|
|
9
13
|
* [postWebhookEventsCustomerCreated](#postwebhookeventscustomercreated) - customer.created
|
|
@@ -12,11 +16,13 @@
|
|
|
12
16
|
* [postWebhookEventsEntitlementCreated](#postwebhookeventsentitlementcreated) - entitlement.created
|
|
13
17
|
* [postWebhookEventsEntitlementDeleted](#postwebhookeventsentitlementdeleted) - entitlement.deleted
|
|
14
18
|
* [postWebhookEventsEntitlementUpdated](#postwebhookeventsentitlementupdated) - entitlement.updated
|
|
19
|
+
* [postWebhookEventsEventRejected](#postwebhookeventseventrejected) - event.rejected
|
|
15
20
|
* [postWebhookEventsFeatureCreated](#postwebhookeventsfeaturecreated) - feature.created
|
|
16
21
|
* [postWebhookEventsFeatureDeleted](#postwebhookeventsfeaturedeleted) - feature.deleted
|
|
17
22
|
* [postWebhookEventsFeatureUpdated](#postwebhookeventsfeatureupdated) - feature.updated
|
|
18
23
|
* [postWebhookEventsFeatureWalletBalanceAlert](#postwebhookeventsfeaturewalletbalancealert) - feature.wallet_balance.alert
|
|
19
24
|
* [postWebhookEventsInvoiceCommunicationTriggered](#postwebhookeventsinvoicecommunicationtriggered) - invoice.communication.triggered
|
|
25
|
+
* [postWebhookEventsInvoiceCreateDrafted](#postwebhookeventsinvoicecreatedrafted) - invoice.create.drafted
|
|
20
26
|
* [postWebhookEventsInvoicePaymentOverdue](#postwebhookeventsinvoicepaymentoverdue) - invoice.payment.overdue
|
|
21
27
|
* [postWebhookEventsInvoiceUpdate](#postwebhookeventsinvoiceupdate) - invoice.update
|
|
22
28
|
* [postWebhookEventsInvoiceUpdateFinalized](#postwebhookeventsinvoiceupdatefinalized) - invoice.update.finalized
|
|
@@ -31,29 +37,38 @@
|
|
|
31
37
|
* [postWebhookEventsSubscriptionCancelled](#postwebhookeventssubscriptioncancelled) - subscription.cancelled
|
|
32
38
|
* [postWebhookEventsSubscriptionCreated](#postwebhookeventssubscriptioncreated) - subscription.created
|
|
33
39
|
* [postWebhookEventsSubscriptionDraftCreated](#postwebhookeventssubscriptiondraftcreated) - subscription.draft.created
|
|
40
|
+
* [postWebhookEventsSubscriptionGroupSpendThresholdReached](#postwebhookeventssubscriptiongroupspendthresholdreached) - subscription.group_spend.threshold_reached
|
|
41
|
+
* [postWebhookEventsSubscriptionGroupSpendThresholdRecovered](#postwebhookeventssubscriptiongroupspendthresholdrecovered) - subscription.group_spend.threshold_recovered
|
|
42
|
+
* [postWebhookEventsSubscriptionLineItemSpendThresholdReached](#postwebhookeventssubscriptionlineitemspendthresholdreached) - subscription.line_item_spend.threshold_reached
|
|
43
|
+
* [postWebhookEventsSubscriptionLineItemSpendThresholdRecovered](#postwebhookeventssubscriptionlineitemspendthresholdrecovered) - subscription.line_item_spend.threshold_recovered
|
|
34
44
|
* [postWebhookEventsSubscriptionPaused](#postwebhookeventssubscriptionpaused) - subscription.paused
|
|
35
45
|
* [postWebhookEventsSubscriptionPhaseCreated](#postwebhookeventssubscriptionphasecreated) - subscription.phase.created
|
|
36
46
|
* [postWebhookEventsSubscriptionPhaseDeleted](#postwebhookeventssubscriptionphasedeleted) - subscription.phase.deleted
|
|
37
47
|
* [postWebhookEventsSubscriptionPhaseUpdated](#postwebhookeventssubscriptionphaseupdated) - subscription.phase.updated
|
|
48
|
+
* [postWebhookEventsSubscriptionPlanChanged](#postwebhookeventssubscriptionplanchanged) - subscription.plan_changed
|
|
38
49
|
* [postWebhookEventsSubscriptionRenewalDue](#postwebhookeventssubscriptionrenewaldue) - subscription.renewal.due
|
|
39
50
|
* [postWebhookEventsSubscriptionResumed](#postwebhookeventssubscriptionresumed) - subscription.resumed
|
|
51
|
+
* [postWebhookEventsSubscriptionSpendThresholdReached](#postwebhookeventssubscriptionspendthresholdreached) - subscription.spend.threshold_reached
|
|
52
|
+
* [postWebhookEventsSubscriptionSpendThresholdRecovered](#postwebhookeventssubscriptionspendthresholdrecovered) - subscription.spend.threshold_recovered
|
|
40
53
|
* [postWebhookEventsSubscriptionUpdated](#postwebhookeventssubscriptionupdated) - subscription.updated
|
|
41
54
|
* [postWebhookEventsWalletCreated](#postwebhookeventswalletcreated) - wallet.created
|
|
42
55
|
* [postWebhookEventsWalletCreditBalanceDropped](#postwebhookeventswalletcreditbalancedropped) - wallet.credit_balance.dropped
|
|
43
56
|
* [postWebhookEventsWalletCreditBalanceRecovered](#postwebhookeventswalletcreditbalancerecovered) - wallet.credit_balance.recovered
|
|
44
57
|
* [postWebhookEventsWalletOngoingBalanceDropped](#postwebhookeventswalletongoingbalancedropped) - wallet.ongoing_balance.dropped
|
|
45
58
|
* [postWebhookEventsWalletOngoingBalanceRecovered](#postwebhookeventswalletongoingbalancerecovered) - wallet.ongoing_balance.recovered
|
|
59
|
+
* [postWebhookEventsWalletOngoingBalanceUpdated](#postwebhookeventswalletongoingbalanceupdated) - wallet.ongoing_balance.updated
|
|
46
60
|
* [postWebhookEventsWalletTerminated](#postwebhookeventswalletterminated) - wallet.terminated
|
|
47
61
|
* [postWebhookEventsWalletTransactionCreated](#postwebhookeventswallettransactioncreated) - wallet.transaction.created
|
|
62
|
+
* [postWebhookEventsWalletTransactionUpdated](#postwebhookeventswallettransactionupdated) - wallet.transaction.updated
|
|
48
63
|
* [postWebhookEventsWalletUpdated](#postwebhookeventswalletupdated) - wallet.updated
|
|
49
64
|
|
|
50
|
-
##
|
|
65
|
+
## postWebhookEventsCheckoutSessionCompleted
|
|
51
66
|
|
|
52
|
-
Fired when
|
|
67
|
+
Fired when payment is confirmed; the subscription is now active and the invoice is finalized. Doc-only for parsing.
|
|
53
68
|
|
|
54
69
|
### Example Usage
|
|
55
70
|
|
|
56
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
71
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/checkout.session.completed" method="post" path="/webhook-events/checkout.session.completed" -->
|
|
57
72
|
```typescript
|
|
58
73
|
import { Flexprice } from "@flexprice/sdk";
|
|
59
74
|
|
|
@@ -62,7 +77,7 @@ const flexprice = new Flexprice({
|
|
|
62
77
|
});
|
|
63
78
|
|
|
64
79
|
async function run() {
|
|
65
|
-
const result = await flexprice.webhookEvents.
|
|
80
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCheckoutSessionCompleted();
|
|
66
81
|
|
|
67
82
|
console.log(result);
|
|
68
83
|
}
|
|
@@ -76,7 +91,7 @@ The standalone function version of this method:
|
|
|
76
91
|
|
|
77
92
|
```typescript
|
|
78
93
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
79
|
-
import {
|
|
94
|
+
import { webhookEventsPostWebhookEventsCheckoutSessionCompleted } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-checkout-session-completed.js";
|
|
80
95
|
|
|
81
96
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
82
97
|
// You can create one instance of it to use across an application.
|
|
@@ -85,12 +100,12 @@ const flexprice = new FlexpriceCore({
|
|
|
85
100
|
});
|
|
86
101
|
|
|
87
102
|
async function run() {
|
|
88
|
-
const res = await
|
|
103
|
+
const res = await webhookEventsPostWebhookEventsCheckoutSessionCompleted(flexprice);
|
|
89
104
|
if (res.ok) {
|
|
90
105
|
const { value: result } = res;
|
|
91
106
|
console.log(result);
|
|
92
107
|
} else {
|
|
93
|
-
console.log("
|
|
108
|
+
console.log("webhookEventsPostWebhookEventsCheckoutSessionCompleted failed:", res.error);
|
|
94
109
|
}
|
|
95
110
|
}
|
|
96
111
|
|
|
@@ -107,7 +122,7 @@ run();
|
|
|
107
122
|
|
|
108
123
|
### Response
|
|
109
124
|
|
|
110
|
-
**Promise\<[models.
|
|
125
|
+
**Promise\<[models.WebhookDtoCheckoutSessionWebhookPayload](../../sdk/models/webhook-dto-checkout-session-webhook-payload.md)\>**
|
|
111
126
|
|
|
112
127
|
### Errors
|
|
113
128
|
|
|
@@ -115,13 +130,13 @@ run();
|
|
|
115
130
|
| --------------- | --------------- | --------------- |
|
|
116
131
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
117
132
|
|
|
118
|
-
##
|
|
133
|
+
## postWebhookEventsCheckoutSessionExpired
|
|
119
134
|
|
|
120
|
-
Fired when a
|
|
135
|
+
Fired when a Checkout Session times out without payment; draft records are cleaned up. Doc-only for parsing.
|
|
121
136
|
|
|
122
137
|
### Example Usage
|
|
123
138
|
|
|
124
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
139
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/checkout.session.expired" method="post" path="/webhook-events/checkout.session.expired" -->
|
|
125
140
|
```typescript
|
|
126
141
|
import { Flexprice } from "@flexprice/sdk";
|
|
127
142
|
|
|
@@ -130,7 +145,7 @@ const flexprice = new Flexprice({
|
|
|
130
145
|
});
|
|
131
146
|
|
|
132
147
|
async function run() {
|
|
133
|
-
const result = await flexprice.webhookEvents.
|
|
148
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCheckoutSessionExpired();
|
|
134
149
|
|
|
135
150
|
console.log(result);
|
|
136
151
|
}
|
|
@@ -144,7 +159,7 @@ The standalone function version of this method:
|
|
|
144
159
|
|
|
145
160
|
```typescript
|
|
146
161
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
147
|
-
import {
|
|
162
|
+
import { webhookEventsPostWebhookEventsCheckoutSessionExpired } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-checkout-session-expired.js";
|
|
148
163
|
|
|
149
164
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
150
165
|
// You can create one instance of it to use across an application.
|
|
@@ -153,12 +168,12 @@ const flexprice = new FlexpriceCore({
|
|
|
153
168
|
});
|
|
154
169
|
|
|
155
170
|
async function run() {
|
|
156
|
-
const res = await
|
|
171
|
+
const res = await webhookEventsPostWebhookEventsCheckoutSessionExpired(flexprice);
|
|
157
172
|
if (res.ok) {
|
|
158
173
|
const { value: result } = res;
|
|
159
174
|
console.log(result);
|
|
160
175
|
} else {
|
|
161
|
-
console.log("
|
|
176
|
+
console.log("webhookEventsPostWebhookEventsCheckoutSessionExpired failed:", res.error);
|
|
162
177
|
}
|
|
163
178
|
}
|
|
164
179
|
|
|
@@ -175,7 +190,7 @@ run();
|
|
|
175
190
|
|
|
176
191
|
### Response
|
|
177
192
|
|
|
178
|
-
**Promise\<[models.
|
|
193
|
+
**Promise\<[models.WebhookDtoCheckoutSessionWebhookPayload](../../sdk/models/webhook-dto-checkout-session-webhook-payload.md)\>**
|
|
179
194
|
|
|
180
195
|
### Errors
|
|
181
196
|
|
|
@@ -183,13 +198,13 @@ run();
|
|
|
183
198
|
| --------------- | --------------- | --------------- |
|
|
184
199
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
185
200
|
|
|
186
|
-
##
|
|
201
|
+
## postWebhookEventsCheckoutSessionFailed
|
|
187
202
|
|
|
188
|
-
Fired when
|
|
203
|
+
Fired when payment fails or the provider cancels the payment link. Doc-only for parsing.
|
|
189
204
|
|
|
190
205
|
### Example Usage
|
|
191
206
|
|
|
192
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
207
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/checkout.session.failed" method="post" path="/webhook-events/checkout.session.failed" -->
|
|
193
208
|
```typescript
|
|
194
209
|
import { Flexprice } from "@flexprice/sdk";
|
|
195
210
|
|
|
@@ -198,7 +213,7 @@ const flexprice = new Flexprice({
|
|
|
198
213
|
});
|
|
199
214
|
|
|
200
215
|
async function run() {
|
|
201
|
-
const result = await flexprice.webhookEvents.
|
|
216
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCheckoutSessionFailed();
|
|
202
217
|
|
|
203
218
|
console.log(result);
|
|
204
219
|
}
|
|
@@ -212,7 +227,7 @@ The standalone function version of this method:
|
|
|
212
227
|
|
|
213
228
|
```typescript
|
|
214
229
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
215
|
-
import {
|
|
230
|
+
import { webhookEventsPostWebhookEventsCheckoutSessionFailed } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-checkout-session-failed.js";
|
|
216
231
|
|
|
217
232
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
218
233
|
// You can create one instance of it to use across an application.
|
|
@@ -221,12 +236,12 @@ const flexprice = new FlexpriceCore({
|
|
|
221
236
|
});
|
|
222
237
|
|
|
223
238
|
async function run() {
|
|
224
|
-
const res = await
|
|
239
|
+
const res = await webhookEventsPostWebhookEventsCheckoutSessionFailed(flexprice);
|
|
225
240
|
if (res.ok) {
|
|
226
241
|
const { value: result } = res;
|
|
227
242
|
console.log(result);
|
|
228
243
|
} else {
|
|
229
|
-
console.log("
|
|
244
|
+
console.log("webhookEventsPostWebhookEventsCheckoutSessionFailed failed:", res.error);
|
|
230
245
|
}
|
|
231
246
|
}
|
|
232
247
|
|
|
@@ -243,7 +258,7 @@ run();
|
|
|
243
258
|
|
|
244
259
|
### Response
|
|
245
260
|
|
|
246
|
-
**Promise\<[models.
|
|
261
|
+
**Promise\<[models.WebhookDtoCheckoutSessionWebhookPayload](../../sdk/models/webhook-dto-checkout-session-webhook-payload.md)\>**
|
|
247
262
|
|
|
248
263
|
### Errors
|
|
249
264
|
|
|
@@ -251,13 +266,13 @@ run();
|
|
|
251
266
|
| --------------- | --------------- | --------------- |
|
|
252
267
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
253
268
|
|
|
254
|
-
##
|
|
269
|
+
## postWebhookEventsCheckoutSessionInitiated
|
|
255
270
|
|
|
256
|
-
Fired when a
|
|
271
|
+
Fired when a Checkout Session is created and a payment URL is returned to the customer. Doc-only for parsing.
|
|
257
272
|
|
|
258
273
|
### Example Usage
|
|
259
274
|
|
|
260
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
275
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/checkout.session.initiated" method="post" path="/webhook-events/checkout.session.initiated" -->
|
|
261
276
|
```typescript
|
|
262
277
|
import { Flexprice } from "@flexprice/sdk";
|
|
263
278
|
|
|
@@ -266,7 +281,7 @@ const flexprice = new Flexprice({
|
|
|
266
281
|
});
|
|
267
282
|
|
|
268
283
|
async function run() {
|
|
269
|
-
const result = await flexprice.webhookEvents.
|
|
284
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCheckoutSessionInitiated();
|
|
270
285
|
|
|
271
286
|
console.log(result);
|
|
272
287
|
}
|
|
@@ -280,7 +295,7 @@ The standalone function version of this method:
|
|
|
280
295
|
|
|
281
296
|
```typescript
|
|
282
297
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
283
|
-
import {
|
|
298
|
+
import { webhookEventsPostWebhookEventsCheckoutSessionInitiated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-checkout-session-initiated.js";
|
|
284
299
|
|
|
285
300
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
286
301
|
// You can create one instance of it to use across an application.
|
|
@@ -289,12 +304,12 @@ const flexprice = new FlexpriceCore({
|
|
|
289
304
|
});
|
|
290
305
|
|
|
291
306
|
async function run() {
|
|
292
|
-
const res = await
|
|
307
|
+
const res = await webhookEventsPostWebhookEventsCheckoutSessionInitiated(flexprice);
|
|
293
308
|
if (res.ok) {
|
|
294
309
|
const { value: result } = res;
|
|
295
310
|
console.log(result);
|
|
296
311
|
} else {
|
|
297
|
-
console.log("
|
|
312
|
+
console.log("webhookEventsPostWebhookEventsCheckoutSessionInitiated failed:", res.error);
|
|
298
313
|
}
|
|
299
314
|
}
|
|
300
315
|
|
|
@@ -311,7 +326,7 @@ run();
|
|
|
311
326
|
|
|
312
327
|
### Response
|
|
313
328
|
|
|
314
|
-
**Promise\<[models.
|
|
329
|
+
**Promise\<[models.WebhookDtoCheckoutSessionWebhookPayload](../../sdk/models/webhook-dto-checkout-session-webhook-payload.md)\>**
|
|
315
330
|
|
|
316
331
|
### Errors
|
|
317
332
|
|
|
@@ -319,13 +334,13 @@ run();
|
|
|
319
334
|
| --------------- | --------------- | --------------- |
|
|
320
335
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
321
336
|
|
|
322
|
-
##
|
|
337
|
+
## postWebhookEventsCreditNoteCreated
|
|
323
338
|
|
|
324
|
-
Fired when a
|
|
339
|
+
Fired when a new credit note is created. Doc-only for parsing.
|
|
325
340
|
|
|
326
341
|
### Example Usage
|
|
327
342
|
|
|
328
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
343
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/credit_note.created" method="post" path="/webhook-events/credit_note.created" -->
|
|
329
344
|
```typescript
|
|
330
345
|
import { Flexprice } from "@flexprice/sdk";
|
|
331
346
|
|
|
@@ -334,7 +349,7 @@ const flexprice = new Flexprice({
|
|
|
334
349
|
});
|
|
335
350
|
|
|
336
351
|
async function run() {
|
|
337
|
-
const result = await flexprice.webhookEvents.
|
|
352
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCreditNoteCreated();
|
|
338
353
|
|
|
339
354
|
console.log(result);
|
|
340
355
|
}
|
|
@@ -348,7 +363,7 @@ The standalone function version of this method:
|
|
|
348
363
|
|
|
349
364
|
```typescript
|
|
350
365
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
351
|
-
import {
|
|
366
|
+
import { webhookEventsPostWebhookEventsCreditNoteCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-credit-note-created.js";
|
|
352
367
|
|
|
353
368
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
354
369
|
// You can create one instance of it to use across an application.
|
|
@@ -357,12 +372,12 @@ const flexprice = new FlexpriceCore({
|
|
|
357
372
|
});
|
|
358
373
|
|
|
359
374
|
async function run() {
|
|
360
|
-
const res = await
|
|
375
|
+
const res = await webhookEventsPostWebhookEventsCreditNoteCreated(flexprice);
|
|
361
376
|
if (res.ok) {
|
|
362
377
|
const { value: result } = res;
|
|
363
378
|
console.log(result);
|
|
364
379
|
} else {
|
|
365
|
-
console.log("
|
|
380
|
+
console.log("webhookEventsPostWebhookEventsCreditNoteCreated failed:", res.error);
|
|
366
381
|
}
|
|
367
382
|
}
|
|
368
383
|
|
|
@@ -379,7 +394,7 @@ run();
|
|
|
379
394
|
|
|
380
395
|
### Response
|
|
381
396
|
|
|
382
|
-
**Promise\<[models.
|
|
397
|
+
**Promise\<[models.WebhookDtoCreditNoteWebhookPayload](../../sdk/models/webhook-dto-credit-note-webhook-payload.md)\>**
|
|
383
398
|
|
|
384
399
|
### Errors
|
|
385
400
|
|
|
@@ -387,13 +402,13 @@ run();
|
|
|
387
402
|
| --------------- | --------------- | --------------- |
|
|
388
403
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
389
404
|
|
|
390
|
-
##
|
|
405
|
+
## postWebhookEventsCreditNoteUpdated
|
|
391
406
|
|
|
392
|
-
Fired when a
|
|
407
|
+
Fired when a credit note is updated. Doc-only for parsing.
|
|
393
408
|
|
|
394
409
|
### Example Usage
|
|
395
410
|
|
|
396
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
411
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/credit_note.updated" method="post" path="/webhook-events/credit_note.updated" -->
|
|
397
412
|
```typescript
|
|
398
413
|
import { Flexprice } from "@flexprice/sdk";
|
|
399
414
|
|
|
@@ -402,7 +417,7 @@ const flexprice = new Flexprice({
|
|
|
402
417
|
});
|
|
403
418
|
|
|
404
419
|
async function run() {
|
|
405
|
-
const result = await flexprice.webhookEvents.
|
|
420
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCreditNoteUpdated();
|
|
406
421
|
|
|
407
422
|
console.log(result);
|
|
408
423
|
}
|
|
@@ -416,7 +431,7 @@ The standalone function version of this method:
|
|
|
416
431
|
|
|
417
432
|
```typescript
|
|
418
433
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
419
|
-
import {
|
|
434
|
+
import { webhookEventsPostWebhookEventsCreditNoteUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-credit-note-updated.js";
|
|
420
435
|
|
|
421
436
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
422
437
|
// You can create one instance of it to use across an application.
|
|
@@ -425,12 +440,12 @@ const flexprice = new FlexpriceCore({
|
|
|
425
440
|
});
|
|
426
441
|
|
|
427
442
|
async function run() {
|
|
428
|
-
const res = await
|
|
443
|
+
const res = await webhookEventsPostWebhookEventsCreditNoteUpdated(flexprice);
|
|
429
444
|
if (res.ok) {
|
|
430
445
|
const { value: result } = res;
|
|
431
446
|
console.log(result);
|
|
432
447
|
} else {
|
|
433
|
-
console.log("
|
|
448
|
+
console.log("webhookEventsPostWebhookEventsCreditNoteUpdated failed:", res.error);
|
|
434
449
|
}
|
|
435
450
|
}
|
|
436
451
|
|
|
@@ -447,7 +462,7 @@ run();
|
|
|
447
462
|
|
|
448
463
|
### Response
|
|
449
464
|
|
|
450
|
-
**Promise\<[models.
|
|
465
|
+
**Promise\<[models.WebhookDtoCreditNoteWebhookPayload](../../sdk/models/webhook-dto-credit-note-webhook-payload.md)\>**
|
|
451
466
|
|
|
452
467
|
### Errors
|
|
453
468
|
|
|
@@ -455,13 +470,13 @@ run();
|
|
|
455
470
|
| --------------- | --------------- | --------------- |
|
|
456
471
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
457
472
|
|
|
458
|
-
##
|
|
473
|
+
## postWebhookEventsCustomerCreated
|
|
459
474
|
|
|
460
|
-
Fired when
|
|
475
|
+
Fired when a new customer is created. Doc-only for parsing.
|
|
461
476
|
|
|
462
477
|
### Example Usage
|
|
463
478
|
|
|
464
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
479
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/customer.created" method="post" path="/webhook-events/customer.created" -->
|
|
465
480
|
```typescript
|
|
466
481
|
import { Flexprice } from "@flexprice/sdk";
|
|
467
482
|
|
|
@@ -470,7 +485,7 @@ const flexprice = new Flexprice({
|
|
|
470
485
|
});
|
|
471
486
|
|
|
472
487
|
async function run() {
|
|
473
|
-
const result = await flexprice.webhookEvents.
|
|
488
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCustomerCreated();
|
|
474
489
|
|
|
475
490
|
console.log(result);
|
|
476
491
|
}
|
|
@@ -484,7 +499,7 @@ The standalone function version of this method:
|
|
|
484
499
|
|
|
485
500
|
```typescript
|
|
486
501
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
487
|
-
import {
|
|
502
|
+
import { webhookEventsPostWebhookEventsCustomerCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-customer-created.js";
|
|
488
503
|
|
|
489
504
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
490
505
|
// You can create one instance of it to use across an application.
|
|
@@ -493,12 +508,12 @@ const flexprice = new FlexpriceCore({
|
|
|
493
508
|
});
|
|
494
509
|
|
|
495
510
|
async function run() {
|
|
496
|
-
const res = await
|
|
511
|
+
const res = await webhookEventsPostWebhookEventsCustomerCreated(flexprice);
|
|
497
512
|
if (res.ok) {
|
|
498
513
|
const { value: result } = res;
|
|
499
514
|
console.log(result);
|
|
500
515
|
} else {
|
|
501
|
-
console.log("
|
|
516
|
+
console.log("webhookEventsPostWebhookEventsCustomerCreated failed:", res.error);
|
|
502
517
|
}
|
|
503
518
|
}
|
|
504
519
|
|
|
@@ -515,7 +530,7 @@ run();
|
|
|
515
530
|
|
|
516
531
|
### Response
|
|
517
532
|
|
|
518
|
-
**Promise\<[models.
|
|
533
|
+
**Promise\<[models.WebhookDtoCustomerWebhookPayload](../../sdk/models/webhook-dto-customer-webhook-payload.md)\>**
|
|
519
534
|
|
|
520
535
|
### Errors
|
|
521
536
|
|
|
@@ -523,13 +538,13 @@ run();
|
|
|
523
538
|
| --------------- | --------------- | --------------- |
|
|
524
539
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
525
540
|
|
|
526
|
-
##
|
|
541
|
+
## postWebhookEventsCustomerDeleted
|
|
527
542
|
|
|
528
|
-
Fired when
|
|
543
|
+
Fired when a customer is deleted. Doc-only for parsing.
|
|
529
544
|
|
|
530
545
|
### Example Usage
|
|
531
546
|
|
|
532
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
547
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/customer.deleted" method="post" path="/webhook-events/customer.deleted" -->
|
|
533
548
|
```typescript
|
|
534
549
|
import { Flexprice } from "@flexprice/sdk";
|
|
535
550
|
|
|
@@ -538,7 +553,7 @@ const flexprice = new Flexprice({
|
|
|
538
553
|
});
|
|
539
554
|
|
|
540
555
|
async function run() {
|
|
541
|
-
const result = await flexprice.webhookEvents.
|
|
556
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCustomerDeleted();
|
|
542
557
|
|
|
543
558
|
console.log(result);
|
|
544
559
|
}
|
|
@@ -552,7 +567,7 @@ The standalone function version of this method:
|
|
|
552
567
|
|
|
553
568
|
```typescript
|
|
554
569
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
555
|
-
import {
|
|
570
|
+
import { webhookEventsPostWebhookEventsCustomerDeleted } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-customer-deleted.js";
|
|
556
571
|
|
|
557
572
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
558
573
|
// You can create one instance of it to use across an application.
|
|
@@ -561,12 +576,12 @@ const flexprice = new FlexpriceCore({
|
|
|
561
576
|
});
|
|
562
577
|
|
|
563
578
|
async function run() {
|
|
564
|
-
const res = await
|
|
579
|
+
const res = await webhookEventsPostWebhookEventsCustomerDeleted(flexprice);
|
|
565
580
|
if (res.ok) {
|
|
566
581
|
const { value: result } = res;
|
|
567
582
|
console.log(result);
|
|
568
583
|
} else {
|
|
569
|
-
console.log("
|
|
584
|
+
console.log("webhookEventsPostWebhookEventsCustomerDeleted failed:", res.error);
|
|
570
585
|
}
|
|
571
586
|
}
|
|
572
587
|
|
|
@@ -583,7 +598,7 @@ run();
|
|
|
583
598
|
|
|
584
599
|
### Response
|
|
585
600
|
|
|
586
|
-
**Promise\<[models.
|
|
601
|
+
**Promise\<[models.WebhookDtoCustomerWebhookPayload](../../sdk/models/webhook-dto-customer-webhook-payload.md)\>**
|
|
587
602
|
|
|
588
603
|
### Errors
|
|
589
604
|
|
|
@@ -591,13 +606,13 @@ run();
|
|
|
591
606
|
| --------------- | --------------- | --------------- |
|
|
592
607
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
593
608
|
|
|
594
|
-
##
|
|
609
|
+
## postWebhookEventsCustomerUpdated
|
|
595
610
|
|
|
596
|
-
Fired when a
|
|
611
|
+
Fired when a customer is updated. Doc-only for parsing.
|
|
597
612
|
|
|
598
613
|
### Example Usage
|
|
599
614
|
|
|
600
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
615
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/customer.updated" method="post" path="/webhook-events/customer.updated" -->
|
|
601
616
|
```typescript
|
|
602
617
|
import { Flexprice } from "@flexprice/sdk";
|
|
603
618
|
|
|
@@ -606,7 +621,7 @@ const flexprice = new Flexprice({
|
|
|
606
621
|
});
|
|
607
622
|
|
|
608
623
|
async function run() {
|
|
609
|
-
const result = await flexprice.webhookEvents.
|
|
624
|
+
const result = await flexprice.webhookEvents.postWebhookEventsCustomerUpdated();
|
|
610
625
|
|
|
611
626
|
console.log(result);
|
|
612
627
|
}
|
|
@@ -620,7 +635,7 @@ The standalone function version of this method:
|
|
|
620
635
|
|
|
621
636
|
```typescript
|
|
622
637
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
623
|
-
import {
|
|
638
|
+
import { webhookEventsPostWebhookEventsCustomerUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-customer-updated.js";
|
|
624
639
|
|
|
625
640
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
626
641
|
// You can create one instance of it to use across an application.
|
|
@@ -629,12 +644,12 @@ const flexprice = new FlexpriceCore({
|
|
|
629
644
|
});
|
|
630
645
|
|
|
631
646
|
async function run() {
|
|
632
|
-
const res = await
|
|
647
|
+
const res = await webhookEventsPostWebhookEventsCustomerUpdated(flexprice);
|
|
633
648
|
if (res.ok) {
|
|
634
649
|
const { value: result } = res;
|
|
635
650
|
console.log(result);
|
|
636
651
|
} else {
|
|
637
|
-
console.log("
|
|
652
|
+
console.log("webhookEventsPostWebhookEventsCustomerUpdated failed:", res.error);
|
|
638
653
|
}
|
|
639
654
|
}
|
|
640
655
|
|
|
@@ -651,7 +666,7 @@ run();
|
|
|
651
666
|
|
|
652
667
|
### Response
|
|
653
668
|
|
|
654
|
-
**Promise\<[models.
|
|
669
|
+
**Promise\<[models.WebhookDtoCustomerWebhookPayload](../../sdk/models/webhook-dto-customer-webhook-payload.md)\>**
|
|
655
670
|
|
|
656
671
|
### Errors
|
|
657
672
|
|
|
@@ -659,13 +674,13 @@ run();
|
|
|
659
674
|
| --------------- | --------------- | --------------- |
|
|
660
675
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
661
676
|
|
|
662
|
-
##
|
|
677
|
+
## postWebhookEventsEntitlementCreated
|
|
663
678
|
|
|
664
|
-
Fired when a
|
|
679
|
+
Fired when a new entitlement is created. Doc-only for parsing.
|
|
665
680
|
|
|
666
681
|
### Example Usage
|
|
667
682
|
|
|
668
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
683
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/entitlement.created" method="post" path="/webhook-events/entitlement.created" -->
|
|
669
684
|
```typescript
|
|
670
685
|
import { Flexprice } from "@flexprice/sdk";
|
|
671
686
|
|
|
@@ -674,7 +689,7 @@ const flexprice = new Flexprice({
|
|
|
674
689
|
});
|
|
675
690
|
|
|
676
691
|
async function run() {
|
|
677
|
-
const result = await flexprice.webhookEvents.
|
|
692
|
+
const result = await flexprice.webhookEvents.postWebhookEventsEntitlementCreated();
|
|
678
693
|
|
|
679
694
|
console.log(result);
|
|
680
695
|
}
|
|
@@ -688,7 +703,7 @@ The standalone function version of this method:
|
|
|
688
703
|
|
|
689
704
|
```typescript
|
|
690
705
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
691
|
-
import {
|
|
706
|
+
import { webhookEventsPostWebhookEventsEntitlementCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-entitlement-created.js";
|
|
692
707
|
|
|
693
708
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
694
709
|
// You can create one instance of it to use across an application.
|
|
@@ -697,12 +712,12 @@ const flexprice = new FlexpriceCore({
|
|
|
697
712
|
});
|
|
698
713
|
|
|
699
714
|
async function run() {
|
|
700
|
-
const res = await
|
|
715
|
+
const res = await webhookEventsPostWebhookEventsEntitlementCreated(flexprice);
|
|
701
716
|
if (res.ok) {
|
|
702
717
|
const { value: result } = res;
|
|
703
718
|
console.log(result);
|
|
704
719
|
} else {
|
|
705
|
-
console.log("
|
|
720
|
+
console.log("webhookEventsPostWebhookEventsEntitlementCreated failed:", res.error);
|
|
706
721
|
}
|
|
707
722
|
}
|
|
708
723
|
|
|
@@ -719,7 +734,7 @@ run();
|
|
|
719
734
|
|
|
720
735
|
### Response
|
|
721
736
|
|
|
722
|
-
**Promise\<[models.
|
|
737
|
+
**Promise\<[models.WebhookDtoEntitlementWebhookPayload](../../sdk/models/webhook-dto-entitlement-webhook-payload.md)\>**
|
|
723
738
|
|
|
724
739
|
### Errors
|
|
725
740
|
|
|
@@ -727,13 +742,13 @@ run();
|
|
|
727
742
|
| --------------- | --------------- | --------------- |
|
|
728
743
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
729
744
|
|
|
730
|
-
##
|
|
745
|
+
## postWebhookEventsEntitlementDeleted
|
|
731
746
|
|
|
732
|
-
Fired when
|
|
747
|
+
Fired when an entitlement is deleted. Doc-only for parsing.
|
|
733
748
|
|
|
734
749
|
### Example Usage
|
|
735
750
|
|
|
736
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
751
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/entitlement.deleted" method="post" path="/webhook-events/entitlement.deleted" -->
|
|
737
752
|
```typescript
|
|
738
753
|
import { Flexprice } from "@flexprice/sdk";
|
|
739
754
|
|
|
@@ -742,7 +757,7 @@ const flexprice = new Flexprice({
|
|
|
742
757
|
});
|
|
743
758
|
|
|
744
759
|
async function run() {
|
|
745
|
-
const result = await flexprice.webhookEvents.
|
|
760
|
+
const result = await flexprice.webhookEvents.postWebhookEventsEntitlementDeleted();
|
|
746
761
|
|
|
747
762
|
console.log(result);
|
|
748
763
|
}
|
|
@@ -756,7 +771,7 @@ The standalone function version of this method:
|
|
|
756
771
|
|
|
757
772
|
```typescript
|
|
758
773
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
759
|
-
import {
|
|
774
|
+
import { webhookEventsPostWebhookEventsEntitlementDeleted } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-entitlement-deleted.js";
|
|
760
775
|
|
|
761
776
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
762
777
|
// You can create one instance of it to use across an application.
|
|
@@ -765,12 +780,12 @@ const flexprice = new FlexpriceCore({
|
|
|
765
780
|
});
|
|
766
781
|
|
|
767
782
|
async function run() {
|
|
768
|
-
const res = await
|
|
783
|
+
const res = await webhookEventsPostWebhookEventsEntitlementDeleted(flexprice);
|
|
769
784
|
if (res.ok) {
|
|
770
785
|
const { value: result } = res;
|
|
771
786
|
console.log(result);
|
|
772
787
|
} else {
|
|
773
|
-
console.log("
|
|
788
|
+
console.log("webhookEventsPostWebhookEventsEntitlementDeleted failed:", res.error);
|
|
774
789
|
}
|
|
775
790
|
}
|
|
776
791
|
|
|
@@ -787,7 +802,7 @@ run();
|
|
|
787
802
|
|
|
788
803
|
### Response
|
|
789
804
|
|
|
790
|
-
**Promise\<[models.
|
|
805
|
+
**Promise\<[models.WebhookDtoEntitlementWebhookPayload](../../sdk/models/webhook-dto-entitlement-webhook-payload.md)\>**
|
|
791
806
|
|
|
792
807
|
### Errors
|
|
793
808
|
|
|
@@ -795,13 +810,13 @@ run();
|
|
|
795
810
|
| --------------- | --------------- | --------------- |
|
|
796
811
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
797
812
|
|
|
798
|
-
##
|
|
813
|
+
## postWebhookEventsEntitlementUpdated
|
|
799
814
|
|
|
800
|
-
Fired when
|
|
815
|
+
Fired when an entitlement is updated. Doc-only for parsing.
|
|
801
816
|
|
|
802
817
|
### Example Usage
|
|
803
818
|
|
|
804
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
819
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/entitlement.updated" method="post" path="/webhook-events/entitlement.updated" -->
|
|
805
820
|
```typescript
|
|
806
821
|
import { Flexprice } from "@flexprice/sdk";
|
|
807
822
|
|
|
@@ -810,7 +825,7 @@ const flexprice = new Flexprice({
|
|
|
810
825
|
});
|
|
811
826
|
|
|
812
827
|
async function run() {
|
|
813
|
-
const result = await flexprice.webhookEvents.
|
|
828
|
+
const result = await flexprice.webhookEvents.postWebhookEventsEntitlementUpdated();
|
|
814
829
|
|
|
815
830
|
console.log(result);
|
|
816
831
|
}
|
|
@@ -824,7 +839,7 @@ The standalone function version of this method:
|
|
|
824
839
|
|
|
825
840
|
```typescript
|
|
826
841
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
827
|
-
import {
|
|
842
|
+
import { webhookEventsPostWebhookEventsEntitlementUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-entitlement-updated.js";
|
|
828
843
|
|
|
829
844
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
830
845
|
// You can create one instance of it to use across an application.
|
|
@@ -833,12 +848,12 @@ const flexprice = new FlexpriceCore({
|
|
|
833
848
|
});
|
|
834
849
|
|
|
835
850
|
async function run() {
|
|
836
|
-
const res = await
|
|
851
|
+
const res = await webhookEventsPostWebhookEventsEntitlementUpdated(flexprice);
|
|
837
852
|
if (res.ok) {
|
|
838
853
|
const { value: result } = res;
|
|
839
854
|
console.log(result);
|
|
840
855
|
} else {
|
|
841
|
-
console.log("
|
|
856
|
+
console.log("webhookEventsPostWebhookEventsEntitlementUpdated failed:", res.error);
|
|
842
857
|
}
|
|
843
858
|
}
|
|
844
859
|
|
|
@@ -855,7 +870,7 @@ run();
|
|
|
855
870
|
|
|
856
871
|
### Response
|
|
857
872
|
|
|
858
|
-
**Promise\<[models.
|
|
873
|
+
**Promise\<[models.WebhookDtoEntitlementWebhookPayload](../../sdk/models/webhook-dto-entitlement-webhook-payload.md)\>**
|
|
859
874
|
|
|
860
875
|
### Errors
|
|
861
876
|
|
|
@@ -863,13 +878,13 @@ run();
|
|
|
863
878
|
| --------------- | --------------- | --------------- |
|
|
864
879
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
865
880
|
|
|
866
|
-
##
|
|
881
|
+
## postWebhookEventsEventRejected
|
|
867
882
|
|
|
868
|
-
Fired when an
|
|
883
|
+
Fired when an ingested usage event produces no meter usage — either no meter is registered for its event name, or meters exist for the name but the event matched none of their filters. Throttled to at most once per configured window per event name. Doc-only for parsing.
|
|
869
884
|
|
|
870
885
|
### Example Usage
|
|
871
886
|
|
|
872
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
887
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/event.rejected" method="post" path="/webhook-events/event.rejected" -->
|
|
873
888
|
```typescript
|
|
874
889
|
import { Flexprice } from "@flexprice/sdk";
|
|
875
890
|
|
|
@@ -878,7 +893,7 @@ const flexprice = new Flexprice({
|
|
|
878
893
|
});
|
|
879
894
|
|
|
880
895
|
async function run() {
|
|
881
|
-
const result = await flexprice.webhookEvents.
|
|
896
|
+
const result = await flexprice.webhookEvents.postWebhookEventsEventRejected();
|
|
882
897
|
|
|
883
898
|
console.log(result);
|
|
884
899
|
}
|
|
@@ -892,7 +907,7 @@ The standalone function version of this method:
|
|
|
892
907
|
|
|
893
908
|
```typescript
|
|
894
909
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
895
|
-
import {
|
|
910
|
+
import { webhookEventsPostWebhookEventsEventRejected } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-event-rejected.js";
|
|
896
911
|
|
|
897
912
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
898
913
|
// You can create one instance of it to use across an application.
|
|
@@ -901,12 +916,12 @@ const flexprice = new FlexpriceCore({
|
|
|
901
916
|
});
|
|
902
917
|
|
|
903
918
|
async function run() {
|
|
904
|
-
const res = await
|
|
919
|
+
const res = await webhookEventsPostWebhookEventsEventRejected(flexprice);
|
|
905
920
|
if (res.ok) {
|
|
906
921
|
const { value: result } = res;
|
|
907
922
|
console.log(result);
|
|
908
923
|
} else {
|
|
909
|
-
console.log("
|
|
924
|
+
console.log("webhookEventsPostWebhookEventsEventRejected failed:", res.error);
|
|
910
925
|
}
|
|
911
926
|
}
|
|
912
927
|
|
|
@@ -923,7 +938,7 @@ run();
|
|
|
923
938
|
|
|
924
939
|
### Response
|
|
925
940
|
|
|
926
|
-
**Promise\<[models.
|
|
941
|
+
**Promise\<[models.WebhookDtoRejectedEventWebhookPayload](../../sdk/models/webhook-dto-rejected-event-webhook-payload.md)\>**
|
|
927
942
|
|
|
928
943
|
### Errors
|
|
929
944
|
|
|
@@ -931,13 +946,13 @@ run();
|
|
|
931
946
|
| --------------- | --------------- | --------------- |
|
|
932
947
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
933
948
|
|
|
934
|
-
##
|
|
949
|
+
## postWebhookEventsFeatureCreated
|
|
935
950
|
|
|
936
|
-
Fired when
|
|
951
|
+
Fired when a new feature is created. Doc-only for parsing.
|
|
937
952
|
|
|
938
953
|
### Example Usage
|
|
939
954
|
|
|
940
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
955
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/feature.created" method="post" path="/webhook-events/feature.created" -->
|
|
941
956
|
```typescript
|
|
942
957
|
import { Flexprice } from "@flexprice/sdk";
|
|
943
958
|
|
|
@@ -946,7 +961,7 @@ const flexprice = new Flexprice({
|
|
|
946
961
|
});
|
|
947
962
|
|
|
948
963
|
async function run() {
|
|
949
|
-
const result = await flexprice.webhookEvents.
|
|
964
|
+
const result = await flexprice.webhookEvents.postWebhookEventsFeatureCreated();
|
|
950
965
|
|
|
951
966
|
console.log(result);
|
|
952
967
|
}
|
|
@@ -960,7 +975,7 @@ The standalone function version of this method:
|
|
|
960
975
|
|
|
961
976
|
```typescript
|
|
962
977
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
963
|
-
import {
|
|
978
|
+
import { webhookEventsPostWebhookEventsFeatureCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-feature-created.js";
|
|
964
979
|
|
|
965
980
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
966
981
|
// You can create one instance of it to use across an application.
|
|
@@ -969,12 +984,12 @@ const flexprice = new FlexpriceCore({
|
|
|
969
984
|
});
|
|
970
985
|
|
|
971
986
|
async function run() {
|
|
972
|
-
const res = await
|
|
987
|
+
const res = await webhookEventsPostWebhookEventsFeatureCreated(flexprice);
|
|
973
988
|
if (res.ok) {
|
|
974
989
|
const { value: result } = res;
|
|
975
990
|
console.log(result);
|
|
976
991
|
} else {
|
|
977
|
-
console.log("
|
|
992
|
+
console.log("webhookEventsPostWebhookEventsFeatureCreated failed:", res.error);
|
|
978
993
|
}
|
|
979
994
|
}
|
|
980
995
|
|
|
@@ -991,7 +1006,7 @@ run();
|
|
|
991
1006
|
|
|
992
1007
|
### Response
|
|
993
1008
|
|
|
994
|
-
**Promise\<[models.
|
|
1009
|
+
**Promise\<[models.WebhookDtoFeatureWebhookPayload](../../sdk/models/webhook-dto-feature-webhook-payload.md)\>**
|
|
995
1010
|
|
|
996
1011
|
### Errors
|
|
997
1012
|
|
|
@@ -999,13 +1014,13 @@ run();
|
|
|
999
1014
|
| --------------- | --------------- | --------------- |
|
|
1000
1015
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1001
1016
|
|
|
1002
|
-
##
|
|
1017
|
+
## postWebhookEventsFeatureDeleted
|
|
1003
1018
|
|
|
1004
|
-
Fired when
|
|
1019
|
+
Fired when a feature is deleted. Doc-only for parsing.
|
|
1005
1020
|
|
|
1006
1021
|
### Example Usage
|
|
1007
1022
|
|
|
1008
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
1023
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/feature.deleted" method="post" path="/webhook-events/feature.deleted" -->
|
|
1009
1024
|
```typescript
|
|
1010
1025
|
import { Flexprice } from "@flexprice/sdk";
|
|
1011
1026
|
|
|
@@ -1014,7 +1029,7 @@ const flexprice = new Flexprice({
|
|
|
1014
1029
|
});
|
|
1015
1030
|
|
|
1016
1031
|
async function run() {
|
|
1017
|
-
const result = await flexprice.webhookEvents.
|
|
1032
|
+
const result = await flexprice.webhookEvents.postWebhookEventsFeatureDeleted();
|
|
1018
1033
|
|
|
1019
1034
|
console.log(result);
|
|
1020
1035
|
}
|
|
@@ -1028,7 +1043,7 @@ The standalone function version of this method:
|
|
|
1028
1043
|
|
|
1029
1044
|
```typescript
|
|
1030
1045
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1031
|
-
import {
|
|
1046
|
+
import { webhookEventsPostWebhookEventsFeatureDeleted } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-feature-deleted.js";
|
|
1032
1047
|
|
|
1033
1048
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1034
1049
|
// You can create one instance of it to use across an application.
|
|
@@ -1037,12 +1052,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1037
1052
|
});
|
|
1038
1053
|
|
|
1039
1054
|
async function run() {
|
|
1040
|
-
const res = await
|
|
1055
|
+
const res = await webhookEventsPostWebhookEventsFeatureDeleted(flexprice);
|
|
1041
1056
|
if (res.ok) {
|
|
1042
1057
|
const { value: result } = res;
|
|
1043
1058
|
console.log(result);
|
|
1044
1059
|
} else {
|
|
1045
|
-
console.log("
|
|
1060
|
+
console.log("webhookEventsPostWebhookEventsFeatureDeleted failed:", res.error);
|
|
1046
1061
|
}
|
|
1047
1062
|
}
|
|
1048
1063
|
|
|
@@ -1059,7 +1074,7 @@ run();
|
|
|
1059
1074
|
|
|
1060
1075
|
### Response
|
|
1061
1076
|
|
|
1062
|
-
**Promise\<[models.
|
|
1077
|
+
**Promise\<[models.WebhookDtoFeatureWebhookPayload](../../sdk/models/webhook-dto-feature-webhook-payload.md)\>**
|
|
1063
1078
|
|
|
1064
1079
|
### Errors
|
|
1065
1080
|
|
|
@@ -1067,13 +1082,13 @@ run();
|
|
|
1067
1082
|
| --------------- | --------------- | --------------- |
|
|
1068
1083
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1069
1084
|
|
|
1070
|
-
##
|
|
1085
|
+
## postWebhookEventsFeatureUpdated
|
|
1071
1086
|
|
|
1072
|
-
Fired when
|
|
1087
|
+
Fired when a feature is updated. Doc-only for parsing.
|
|
1073
1088
|
|
|
1074
1089
|
### Example Usage
|
|
1075
1090
|
|
|
1076
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
1091
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/feature.updated" method="post" path="/webhook-events/feature.updated" -->
|
|
1077
1092
|
```typescript
|
|
1078
1093
|
import { Flexprice } from "@flexprice/sdk";
|
|
1079
1094
|
|
|
@@ -1082,7 +1097,7 @@ const flexprice = new Flexprice({
|
|
|
1082
1097
|
});
|
|
1083
1098
|
|
|
1084
1099
|
async function run() {
|
|
1085
|
-
const result = await flexprice.webhookEvents.
|
|
1100
|
+
const result = await flexprice.webhookEvents.postWebhookEventsFeatureUpdated();
|
|
1086
1101
|
|
|
1087
1102
|
console.log(result);
|
|
1088
1103
|
}
|
|
@@ -1096,7 +1111,7 @@ The standalone function version of this method:
|
|
|
1096
1111
|
|
|
1097
1112
|
```typescript
|
|
1098
1113
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1099
|
-
import {
|
|
1114
|
+
import { webhookEventsPostWebhookEventsFeatureUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-feature-updated.js";
|
|
1100
1115
|
|
|
1101
1116
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1102
1117
|
// You can create one instance of it to use across an application.
|
|
@@ -1105,12 +1120,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1105
1120
|
});
|
|
1106
1121
|
|
|
1107
1122
|
async function run() {
|
|
1108
|
-
const res = await
|
|
1123
|
+
const res = await webhookEventsPostWebhookEventsFeatureUpdated(flexprice);
|
|
1109
1124
|
if (res.ok) {
|
|
1110
1125
|
const { value: result } = res;
|
|
1111
1126
|
console.log(result);
|
|
1112
1127
|
} else {
|
|
1113
|
-
console.log("
|
|
1128
|
+
console.log("webhookEventsPostWebhookEventsFeatureUpdated failed:", res.error);
|
|
1114
1129
|
}
|
|
1115
1130
|
}
|
|
1116
1131
|
|
|
@@ -1127,7 +1142,7 @@ run();
|
|
|
1127
1142
|
|
|
1128
1143
|
### Response
|
|
1129
1144
|
|
|
1130
|
-
**Promise\<[models.
|
|
1145
|
+
**Promise\<[models.WebhookDtoFeatureWebhookPayload](../../sdk/models/webhook-dto-feature-webhook-payload.md)\>**
|
|
1131
1146
|
|
|
1132
1147
|
### Errors
|
|
1133
1148
|
|
|
@@ -1135,13 +1150,13 @@ run();
|
|
|
1135
1150
|
| --------------- | --------------- | --------------- |
|
|
1136
1151
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1137
1152
|
|
|
1138
|
-
##
|
|
1153
|
+
## postWebhookEventsFeatureWalletBalanceAlert
|
|
1139
1154
|
|
|
1140
|
-
Fired when
|
|
1155
|
+
Fired when a feature's associated wallet balance crosses an alert threshold. Doc-only for parsing.
|
|
1141
1156
|
|
|
1142
1157
|
### Example Usage
|
|
1143
1158
|
|
|
1144
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
1159
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/feature.wallet_balance.alert" method="post" path="/webhook-events/feature.wallet_balance.alert" -->
|
|
1145
1160
|
```typescript
|
|
1146
1161
|
import { Flexprice } from "@flexprice/sdk";
|
|
1147
1162
|
|
|
@@ -1150,7 +1165,7 @@ const flexprice = new Flexprice({
|
|
|
1150
1165
|
});
|
|
1151
1166
|
|
|
1152
1167
|
async function run() {
|
|
1153
|
-
const result = await flexprice.webhookEvents.
|
|
1168
|
+
const result = await flexprice.webhookEvents.postWebhookEventsFeatureWalletBalanceAlert();
|
|
1154
1169
|
|
|
1155
1170
|
console.log(result);
|
|
1156
1171
|
}
|
|
@@ -1164,7 +1179,7 @@ The standalone function version of this method:
|
|
|
1164
1179
|
|
|
1165
1180
|
```typescript
|
|
1166
1181
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1167
|
-
import {
|
|
1182
|
+
import { webhookEventsPostWebhookEventsFeatureWalletBalanceAlert } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js";
|
|
1168
1183
|
|
|
1169
1184
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1170
1185
|
// You can create one instance of it to use across an application.
|
|
@@ -1173,12 +1188,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1173
1188
|
});
|
|
1174
1189
|
|
|
1175
1190
|
async function run() {
|
|
1176
|
-
const res = await
|
|
1191
|
+
const res = await webhookEventsPostWebhookEventsFeatureWalletBalanceAlert(flexprice);
|
|
1177
1192
|
if (res.ok) {
|
|
1178
1193
|
const { value: result } = res;
|
|
1179
1194
|
console.log(result);
|
|
1180
1195
|
} else {
|
|
1181
|
-
console.log("
|
|
1196
|
+
console.log("webhookEventsPostWebhookEventsFeatureWalletBalanceAlert failed:", res.error);
|
|
1182
1197
|
}
|
|
1183
1198
|
}
|
|
1184
1199
|
|
|
@@ -1195,7 +1210,7 @@ run();
|
|
|
1195
1210
|
|
|
1196
1211
|
### Response
|
|
1197
1212
|
|
|
1198
|
-
**Promise\<[models.
|
|
1213
|
+
**Promise\<[models.WebhookDtoAlertWebhookPayload](../../sdk/models/webhook-dto-alert-webhook-payload.md)\>**
|
|
1199
1214
|
|
|
1200
1215
|
### Errors
|
|
1201
1216
|
|
|
@@ -1203,13 +1218,13 @@ run();
|
|
|
1203
1218
|
| --------------- | --------------- | --------------- |
|
|
1204
1219
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1205
1220
|
|
|
1206
|
-
##
|
|
1221
|
+
## postWebhookEventsInvoiceCommunicationTriggered
|
|
1207
1222
|
|
|
1208
|
-
Fired when an invoice
|
|
1223
|
+
Fired when an invoice communication (e.g. email notification) is triggered. Doc-only for parsing.
|
|
1209
1224
|
|
|
1210
1225
|
### Example Usage
|
|
1211
1226
|
|
|
1212
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.
|
|
1227
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.communication.triggered" method="post" path="/webhook-events/invoice.communication.triggered" -->
|
|
1213
1228
|
```typescript
|
|
1214
1229
|
import { Flexprice } from "@flexprice/sdk";
|
|
1215
1230
|
|
|
@@ -1218,7 +1233,7 @@ const flexprice = new Flexprice({
|
|
|
1218
1233
|
});
|
|
1219
1234
|
|
|
1220
1235
|
async function run() {
|
|
1221
|
-
const result = await flexprice.webhookEvents.
|
|
1236
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoiceCommunicationTriggered();
|
|
1222
1237
|
|
|
1223
1238
|
console.log(result);
|
|
1224
1239
|
}
|
|
@@ -1232,7 +1247,7 @@ The standalone function version of this method:
|
|
|
1232
1247
|
|
|
1233
1248
|
```typescript
|
|
1234
1249
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1235
|
-
import {
|
|
1250
|
+
import { webhookEventsPostWebhookEventsInvoiceCommunicationTriggered } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.js";
|
|
1236
1251
|
|
|
1237
1252
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1238
1253
|
// You can create one instance of it to use across an application.
|
|
@@ -1241,12 +1256,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1241
1256
|
});
|
|
1242
1257
|
|
|
1243
1258
|
async function run() {
|
|
1244
|
-
const res = await
|
|
1259
|
+
const res = await webhookEventsPostWebhookEventsInvoiceCommunicationTriggered(flexprice);
|
|
1245
1260
|
if (res.ok) {
|
|
1246
1261
|
const { value: result } = res;
|
|
1247
1262
|
console.log(result);
|
|
1248
1263
|
} else {
|
|
1249
|
-
console.log("
|
|
1264
|
+
console.log("webhookEventsPostWebhookEventsInvoiceCommunicationTriggered failed:", res.error);
|
|
1250
1265
|
}
|
|
1251
1266
|
}
|
|
1252
1267
|
|
|
@@ -1263,7 +1278,7 @@ run();
|
|
|
1263
1278
|
|
|
1264
1279
|
### Response
|
|
1265
1280
|
|
|
1266
|
-
**Promise\<[models.
|
|
1281
|
+
**Promise\<[models.WebhookDtoCommunicationWebhookPayload](../../sdk/models/webhook-dto-communication-webhook-payload.md)\>**
|
|
1267
1282
|
|
|
1268
1283
|
### Errors
|
|
1269
1284
|
|
|
@@ -1271,13 +1286,13 @@ run();
|
|
|
1271
1286
|
| --------------- | --------------- | --------------- |
|
|
1272
1287
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1273
1288
|
|
|
1274
|
-
##
|
|
1289
|
+
## postWebhookEventsInvoiceCreateDrafted
|
|
1275
1290
|
|
|
1276
|
-
Fired when a new
|
|
1291
|
+
Fired when a new invoice is created in draft state. Doc-only for parsing.
|
|
1277
1292
|
|
|
1278
1293
|
### Example Usage
|
|
1279
1294
|
|
|
1280
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
1295
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.create.drafted" method="post" path="/webhook-events/invoice.create.drafted" -->
|
|
1281
1296
|
```typescript
|
|
1282
1297
|
import { Flexprice } from "@flexprice/sdk";
|
|
1283
1298
|
|
|
@@ -1286,7 +1301,7 @@ const flexprice = new Flexprice({
|
|
|
1286
1301
|
});
|
|
1287
1302
|
|
|
1288
1303
|
async function run() {
|
|
1289
|
-
const result = await flexprice.webhookEvents.
|
|
1304
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoiceCreateDrafted();
|
|
1290
1305
|
|
|
1291
1306
|
console.log(result);
|
|
1292
1307
|
}
|
|
@@ -1300,7 +1315,7 @@ The standalone function version of this method:
|
|
|
1300
1315
|
|
|
1301
1316
|
```typescript
|
|
1302
1317
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1303
|
-
import {
|
|
1318
|
+
import { webhookEventsPostWebhookEventsInvoiceCreateDrafted } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-create-drafted.js";
|
|
1304
1319
|
|
|
1305
1320
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1306
1321
|
// You can create one instance of it to use across an application.
|
|
@@ -1309,12 +1324,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1309
1324
|
});
|
|
1310
1325
|
|
|
1311
1326
|
async function run() {
|
|
1312
|
-
const res = await
|
|
1327
|
+
const res = await webhookEventsPostWebhookEventsInvoiceCreateDrafted(flexprice);
|
|
1313
1328
|
if (res.ok) {
|
|
1314
1329
|
const { value: result } = res;
|
|
1315
1330
|
console.log(result);
|
|
1316
1331
|
} else {
|
|
1317
|
-
console.log("
|
|
1332
|
+
console.log("webhookEventsPostWebhookEventsInvoiceCreateDrafted failed:", res.error);
|
|
1318
1333
|
}
|
|
1319
1334
|
}
|
|
1320
1335
|
|
|
@@ -1331,7 +1346,7 @@ run();
|
|
|
1331
1346
|
|
|
1332
1347
|
### Response
|
|
1333
1348
|
|
|
1334
|
-
**Promise\<[models.
|
|
1349
|
+
**Promise\<[models.WebhookDtoInvoiceWebhookPayload](../../sdk/models/webhook-dto-invoice-webhook-payload.md)\>**
|
|
1335
1350
|
|
|
1336
1351
|
### Errors
|
|
1337
1352
|
|
|
@@ -1339,13 +1354,13 @@ run();
|
|
|
1339
1354
|
| --------------- | --------------- | --------------- |
|
|
1340
1355
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1341
1356
|
|
|
1342
|
-
##
|
|
1357
|
+
## postWebhookEventsInvoicePaymentOverdue
|
|
1343
1358
|
|
|
1344
|
-
Fired when
|
|
1359
|
+
Fired when an invoice payment is overdue past the due date. Doc-only for parsing.
|
|
1345
1360
|
|
|
1346
1361
|
### Example Usage
|
|
1347
1362
|
|
|
1348
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/payment.
|
|
1363
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.payment.overdue" method="post" path="/webhook-events/invoice.payment.overdue" -->
|
|
1349
1364
|
```typescript
|
|
1350
1365
|
import { Flexprice } from "@flexprice/sdk";
|
|
1351
1366
|
|
|
@@ -1354,7 +1369,7 @@ const flexprice = new Flexprice({
|
|
|
1354
1369
|
});
|
|
1355
1370
|
|
|
1356
1371
|
async function run() {
|
|
1357
|
-
const result = await flexprice.webhookEvents.
|
|
1372
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoicePaymentOverdue();
|
|
1358
1373
|
|
|
1359
1374
|
console.log(result);
|
|
1360
1375
|
}
|
|
@@ -1368,7 +1383,7 @@ The standalone function version of this method:
|
|
|
1368
1383
|
|
|
1369
1384
|
```typescript
|
|
1370
1385
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1371
|
-
import {
|
|
1386
|
+
import { webhookEventsPostWebhookEventsInvoicePaymentOverdue } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js";
|
|
1372
1387
|
|
|
1373
1388
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1374
1389
|
// You can create one instance of it to use across an application.
|
|
@@ -1377,12 +1392,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1377
1392
|
});
|
|
1378
1393
|
|
|
1379
1394
|
async function run() {
|
|
1380
|
-
const res = await
|
|
1395
|
+
const res = await webhookEventsPostWebhookEventsInvoicePaymentOverdue(flexprice);
|
|
1381
1396
|
if (res.ok) {
|
|
1382
1397
|
const { value: result } = res;
|
|
1383
1398
|
console.log(result);
|
|
1384
1399
|
} else {
|
|
1385
|
-
console.log("
|
|
1400
|
+
console.log("webhookEventsPostWebhookEventsInvoicePaymentOverdue failed:", res.error);
|
|
1386
1401
|
}
|
|
1387
1402
|
}
|
|
1388
1403
|
|
|
@@ -1399,7 +1414,7 @@ run();
|
|
|
1399
1414
|
|
|
1400
1415
|
### Response
|
|
1401
1416
|
|
|
1402
|
-
**Promise\<[models.
|
|
1417
|
+
**Promise\<[models.WebhookDtoInvoiceWebhookPayload](../../sdk/models/webhook-dto-invoice-webhook-payload.md)\>**
|
|
1403
1418
|
|
|
1404
1419
|
### Errors
|
|
1405
1420
|
|
|
@@ -1407,13 +1422,13 @@ run();
|
|
|
1407
1422
|
| --------------- | --------------- | --------------- |
|
|
1408
1423
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1409
1424
|
|
|
1410
|
-
##
|
|
1425
|
+
## postWebhookEventsInvoiceUpdate
|
|
1411
1426
|
|
|
1412
|
-
Fired when
|
|
1427
|
+
Fired when an invoice is updated. Doc-only for parsing.
|
|
1413
1428
|
|
|
1414
1429
|
### Example Usage
|
|
1415
1430
|
|
|
1416
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
1431
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.update" method="post" path="/webhook-events/invoice.update" -->
|
|
1417
1432
|
```typescript
|
|
1418
1433
|
import { Flexprice } from "@flexprice/sdk";
|
|
1419
1434
|
|
|
@@ -1422,7 +1437,7 @@ const flexprice = new Flexprice({
|
|
|
1422
1437
|
});
|
|
1423
1438
|
|
|
1424
1439
|
async function run() {
|
|
1425
|
-
const result = await flexprice.webhookEvents.
|
|
1440
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoiceUpdate();
|
|
1426
1441
|
|
|
1427
1442
|
console.log(result);
|
|
1428
1443
|
}
|
|
@@ -1436,7 +1451,7 @@ The standalone function version of this method:
|
|
|
1436
1451
|
|
|
1437
1452
|
```typescript
|
|
1438
1453
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1439
|
-
import {
|
|
1454
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdate } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-update.js";
|
|
1440
1455
|
|
|
1441
1456
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1442
1457
|
// You can create one instance of it to use across an application.
|
|
@@ -1445,12 +1460,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1445
1460
|
});
|
|
1446
1461
|
|
|
1447
1462
|
async function run() {
|
|
1448
|
-
const res = await
|
|
1463
|
+
const res = await webhookEventsPostWebhookEventsInvoiceUpdate(flexprice);
|
|
1449
1464
|
if (res.ok) {
|
|
1450
1465
|
const { value: result } = res;
|
|
1451
1466
|
console.log(result);
|
|
1452
1467
|
} else {
|
|
1453
|
-
console.log("
|
|
1468
|
+
console.log("webhookEventsPostWebhookEventsInvoiceUpdate failed:", res.error);
|
|
1454
1469
|
}
|
|
1455
1470
|
}
|
|
1456
1471
|
|
|
@@ -1467,7 +1482,7 @@ run();
|
|
|
1467
1482
|
|
|
1468
1483
|
### Response
|
|
1469
1484
|
|
|
1470
|
-
**Promise\<[models.
|
|
1485
|
+
**Promise\<[models.WebhookDtoInvoiceWebhookPayload](../../sdk/models/webhook-dto-invoice-webhook-payload.md)\>**
|
|
1471
1486
|
|
|
1472
1487
|
### Errors
|
|
1473
1488
|
|
|
@@ -1475,13 +1490,13 @@ run();
|
|
|
1475
1490
|
| --------------- | --------------- | --------------- |
|
|
1476
1491
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1477
1492
|
|
|
1478
|
-
##
|
|
1493
|
+
## postWebhookEventsInvoiceUpdateFinalized
|
|
1479
1494
|
|
|
1480
|
-
Fired when
|
|
1495
|
+
Fired when an invoice is finalized and locked for payment. Doc-only for parsing.
|
|
1481
1496
|
|
|
1482
1497
|
### Example Usage
|
|
1483
1498
|
|
|
1484
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
1499
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.update.finalized" method="post" path="/webhook-events/invoice.update.finalized" -->
|
|
1485
1500
|
```typescript
|
|
1486
1501
|
import { Flexprice } from "@flexprice/sdk";
|
|
1487
1502
|
|
|
@@ -1490,7 +1505,7 @@ const flexprice = new Flexprice({
|
|
|
1490
1505
|
});
|
|
1491
1506
|
|
|
1492
1507
|
async function run() {
|
|
1493
|
-
const result = await flexprice.webhookEvents.
|
|
1508
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoiceUpdateFinalized();
|
|
1494
1509
|
|
|
1495
1510
|
console.log(result);
|
|
1496
1511
|
}
|
|
@@ -1504,7 +1519,7 @@ The standalone function version of this method:
|
|
|
1504
1519
|
|
|
1505
1520
|
```typescript
|
|
1506
1521
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1507
|
-
import {
|
|
1522
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdateFinalized } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-update-finalized.js";
|
|
1508
1523
|
|
|
1509
1524
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1510
1525
|
// You can create one instance of it to use across an application.
|
|
@@ -1513,12 +1528,216 @@ const flexprice = new FlexpriceCore({
|
|
|
1513
1528
|
});
|
|
1514
1529
|
|
|
1515
1530
|
async function run() {
|
|
1516
|
-
const res = await
|
|
1531
|
+
const res = await webhookEventsPostWebhookEventsInvoiceUpdateFinalized(flexprice);
|
|
1517
1532
|
if (res.ok) {
|
|
1518
1533
|
const { value: result } = res;
|
|
1519
1534
|
console.log(result);
|
|
1520
1535
|
} else {
|
|
1521
|
-
console.log("
|
|
1536
|
+
console.log("webhookEventsPostWebhookEventsInvoiceUpdateFinalized failed:", res.error);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
run();
|
|
1541
|
+
```
|
|
1542
|
+
|
|
1543
|
+
### Parameters
|
|
1544
|
+
|
|
1545
|
+
| Parameter | Type | Required | Description |
|
|
1546
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1547
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1548
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1549
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1550
|
+
|
|
1551
|
+
### Response
|
|
1552
|
+
|
|
1553
|
+
**Promise\<[models.WebhookDtoInvoiceWebhookPayload](../../sdk/models/webhook-dto-invoice-webhook-payload.md)\>**
|
|
1554
|
+
|
|
1555
|
+
### Errors
|
|
1556
|
+
|
|
1557
|
+
| Error Type | Status Code | Content Type |
|
|
1558
|
+
| --------------- | --------------- | --------------- |
|
|
1559
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1560
|
+
|
|
1561
|
+
## postWebhookEventsInvoiceUpdatePayment
|
|
1562
|
+
|
|
1563
|
+
Fired when an invoice payment status changes. Doc-only for parsing.
|
|
1564
|
+
|
|
1565
|
+
### Example Usage
|
|
1566
|
+
|
|
1567
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.update.payment" method="post" path="/webhook-events/invoice.update.payment" -->
|
|
1568
|
+
```typescript
|
|
1569
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1570
|
+
|
|
1571
|
+
const flexprice = new Flexprice({
|
|
1572
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1573
|
+
});
|
|
1574
|
+
|
|
1575
|
+
async function run() {
|
|
1576
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoiceUpdatePayment();
|
|
1577
|
+
|
|
1578
|
+
console.log(result);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
run();
|
|
1582
|
+
```
|
|
1583
|
+
|
|
1584
|
+
### Standalone function
|
|
1585
|
+
|
|
1586
|
+
The standalone function version of this method:
|
|
1587
|
+
|
|
1588
|
+
```typescript
|
|
1589
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1590
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdatePayment } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-update-payment.js";
|
|
1591
|
+
|
|
1592
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1593
|
+
// You can create one instance of it to use across an application.
|
|
1594
|
+
const flexprice = new FlexpriceCore({
|
|
1595
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1596
|
+
});
|
|
1597
|
+
|
|
1598
|
+
async function run() {
|
|
1599
|
+
const res = await webhookEventsPostWebhookEventsInvoiceUpdatePayment(flexprice);
|
|
1600
|
+
if (res.ok) {
|
|
1601
|
+
const { value: result } = res;
|
|
1602
|
+
console.log(result);
|
|
1603
|
+
} else {
|
|
1604
|
+
console.log("webhookEventsPostWebhookEventsInvoiceUpdatePayment failed:", res.error);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
run();
|
|
1609
|
+
```
|
|
1610
|
+
|
|
1611
|
+
### Parameters
|
|
1612
|
+
|
|
1613
|
+
| Parameter | Type | Required | Description |
|
|
1614
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1615
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1616
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1617
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1618
|
+
|
|
1619
|
+
### Response
|
|
1620
|
+
|
|
1621
|
+
**Promise\<[models.WebhookDtoInvoiceWebhookPayload](../../sdk/models/webhook-dto-invoice-webhook-payload.md)\>**
|
|
1622
|
+
|
|
1623
|
+
### Errors
|
|
1624
|
+
|
|
1625
|
+
| Error Type | Status Code | Content Type |
|
|
1626
|
+
| --------------- | --------------- | --------------- |
|
|
1627
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1628
|
+
|
|
1629
|
+
## postWebhookEventsInvoiceUpdateVoided
|
|
1630
|
+
|
|
1631
|
+
Fired when an invoice is voided (e.g. order cancelled or duplicate). Doc-only for parsing.
|
|
1632
|
+
|
|
1633
|
+
### Example Usage
|
|
1634
|
+
|
|
1635
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/invoice.update.voided" method="post" path="/webhook-events/invoice.update.voided" -->
|
|
1636
|
+
```typescript
|
|
1637
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1638
|
+
|
|
1639
|
+
const flexprice = new Flexprice({
|
|
1640
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1641
|
+
});
|
|
1642
|
+
|
|
1643
|
+
async function run() {
|
|
1644
|
+
const result = await flexprice.webhookEvents.postWebhookEventsInvoiceUpdateVoided();
|
|
1645
|
+
|
|
1646
|
+
console.log(result);
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
run();
|
|
1650
|
+
```
|
|
1651
|
+
|
|
1652
|
+
### Standalone function
|
|
1653
|
+
|
|
1654
|
+
The standalone function version of this method:
|
|
1655
|
+
|
|
1656
|
+
```typescript
|
|
1657
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1658
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdateVoided } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-invoice-update-voided.js";
|
|
1659
|
+
|
|
1660
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1661
|
+
// You can create one instance of it to use across an application.
|
|
1662
|
+
const flexprice = new FlexpriceCore({
|
|
1663
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1664
|
+
});
|
|
1665
|
+
|
|
1666
|
+
async function run() {
|
|
1667
|
+
const res = await webhookEventsPostWebhookEventsInvoiceUpdateVoided(flexprice);
|
|
1668
|
+
if (res.ok) {
|
|
1669
|
+
const { value: result } = res;
|
|
1670
|
+
console.log(result);
|
|
1671
|
+
} else {
|
|
1672
|
+
console.log("webhookEventsPostWebhookEventsInvoiceUpdateVoided failed:", res.error);
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
run();
|
|
1677
|
+
```
|
|
1678
|
+
|
|
1679
|
+
### Parameters
|
|
1680
|
+
|
|
1681
|
+
| Parameter | Type | Required | Description |
|
|
1682
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1683
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1684
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1685
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1686
|
+
|
|
1687
|
+
### Response
|
|
1688
|
+
|
|
1689
|
+
**Promise\<[models.WebhookDtoInvoiceWebhookPayload](../../sdk/models/webhook-dto-invoice-webhook-payload.md)\>**
|
|
1690
|
+
|
|
1691
|
+
### Errors
|
|
1692
|
+
|
|
1693
|
+
| Error Type | Status Code | Content Type |
|
|
1694
|
+
| --------------- | --------------- | --------------- |
|
|
1695
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1696
|
+
|
|
1697
|
+
## postWebhookEventsPaymentCreated
|
|
1698
|
+
|
|
1699
|
+
Fired when a new payment is created. Doc-only for parsing.
|
|
1700
|
+
|
|
1701
|
+
### Example Usage
|
|
1702
|
+
|
|
1703
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/payment.created" method="post" path="/webhook-events/payment.created" -->
|
|
1704
|
+
```typescript
|
|
1705
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1706
|
+
|
|
1707
|
+
const flexprice = new Flexprice({
|
|
1708
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1709
|
+
});
|
|
1710
|
+
|
|
1711
|
+
async function run() {
|
|
1712
|
+
const result = await flexprice.webhookEvents.postWebhookEventsPaymentCreated();
|
|
1713
|
+
|
|
1714
|
+
console.log(result);
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
run();
|
|
1718
|
+
```
|
|
1719
|
+
|
|
1720
|
+
### Standalone function
|
|
1721
|
+
|
|
1722
|
+
The standalone function version of this method:
|
|
1723
|
+
|
|
1724
|
+
```typescript
|
|
1725
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1726
|
+
import { webhookEventsPostWebhookEventsPaymentCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-payment-created.js";
|
|
1727
|
+
|
|
1728
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1729
|
+
// You can create one instance of it to use across an application.
|
|
1730
|
+
const flexprice = new FlexpriceCore({
|
|
1731
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1732
|
+
});
|
|
1733
|
+
|
|
1734
|
+
async function run() {
|
|
1735
|
+
const res = await webhookEventsPostWebhookEventsPaymentCreated(flexprice);
|
|
1736
|
+
if (res.ok) {
|
|
1737
|
+
const { value: result } = res;
|
|
1738
|
+
console.log(result);
|
|
1739
|
+
} else {
|
|
1740
|
+
console.log("webhookEventsPostWebhookEventsPaymentCreated failed:", res.error);
|
|
1522
1741
|
}
|
|
1523
1742
|
}
|
|
1524
1743
|
|
|
@@ -1543,13 +1762,693 @@ run();
|
|
|
1543
1762
|
| --------------- | --------------- | --------------- |
|
|
1544
1763
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1545
1764
|
|
|
1546
|
-
##
|
|
1765
|
+
## postWebhookEventsPaymentFailed
|
|
1766
|
+
|
|
1767
|
+
Fired when a payment fails. Doc-only for parsing.
|
|
1768
|
+
|
|
1769
|
+
### Example Usage
|
|
1770
|
+
|
|
1771
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/payment.failed" method="post" path="/webhook-events/payment.failed" -->
|
|
1772
|
+
```typescript
|
|
1773
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1774
|
+
|
|
1775
|
+
const flexprice = new Flexprice({
|
|
1776
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1777
|
+
});
|
|
1778
|
+
|
|
1779
|
+
async function run() {
|
|
1780
|
+
const result = await flexprice.webhookEvents.postWebhookEventsPaymentFailed();
|
|
1781
|
+
|
|
1782
|
+
console.log(result);
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
run();
|
|
1786
|
+
```
|
|
1787
|
+
|
|
1788
|
+
### Standalone function
|
|
1789
|
+
|
|
1790
|
+
The standalone function version of this method:
|
|
1791
|
+
|
|
1792
|
+
```typescript
|
|
1793
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1794
|
+
import { webhookEventsPostWebhookEventsPaymentFailed } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-payment-failed.js";
|
|
1795
|
+
|
|
1796
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1797
|
+
// You can create one instance of it to use across an application.
|
|
1798
|
+
const flexprice = new FlexpriceCore({
|
|
1799
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1800
|
+
});
|
|
1801
|
+
|
|
1802
|
+
async function run() {
|
|
1803
|
+
const res = await webhookEventsPostWebhookEventsPaymentFailed(flexprice);
|
|
1804
|
+
if (res.ok) {
|
|
1805
|
+
const { value: result } = res;
|
|
1806
|
+
console.log(result);
|
|
1807
|
+
} else {
|
|
1808
|
+
console.log("webhookEventsPostWebhookEventsPaymentFailed failed:", res.error);
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
run();
|
|
1813
|
+
```
|
|
1814
|
+
|
|
1815
|
+
### Parameters
|
|
1816
|
+
|
|
1817
|
+
| Parameter | Type | Required | Description |
|
|
1818
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1819
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1820
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1821
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1822
|
+
|
|
1823
|
+
### Response
|
|
1824
|
+
|
|
1825
|
+
**Promise\<[models.WebhookDtoPaymentWebhookPayload](../../sdk/models/webhook-dto-payment-webhook-payload.md)\>**
|
|
1826
|
+
|
|
1827
|
+
### Errors
|
|
1828
|
+
|
|
1829
|
+
| Error Type | Status Code | Content Type |
|
|
1830
|
+
| --------------- | --------------- | --------------- |
|
|
1831
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1832
|
+
|
|
1833
|
+
## postWebhookEventsPaymentPending
|
|
1834
|
+
|
|
1835
|
+
Fired when a payment is pending processing. Doc-only for parsing.
|
|
1836
|
+
|
|
1837
|
+
### Example Usage
|
|
1838
|
+
|
|
1839
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/payment.pending" method="post" path="/webhook-events/payment.pending" -->
|
|
1840
|
+
```typescript
|
|
1841
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1842
|
+
|
|
1843
|
+
const flexprice = new Flexprice({
|
|
1844
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1845
|
+
});
|
|
1846
|
+
|
|
1847
|
+
async function run() {
|
|
1848
|
+
const result = await flexprice.webhookEvents.postWebhookEventsPaymentPending();
|
|
1849
|
+
|
|
1850
|
+
console.log(result);
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
run();
|
|
1854
|
+
```
|
|
1855
|
+
|
|
1856
|
+
### Standalone function
|
|
1857
|
+
|
|
1858
|
+
The standalone function version of this method:
|
|
1859
|
+
|
|
1860
|
+
```typescript
|
|
1861
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1862
|
+
import { webhookEventsPostWebhookEventsPaymentPending } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-payment-pending.js";
|
|
1863
|
+
|
|
1864
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1865
|
+
// You can create one instance of it to use across an application.
|
|
1866
|
+
const flexprice = new FlexpriceCore({
|
|
1867
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1868
|
+
});
|
|
1869
|
+
|
|
1870
|
+
async function run() {
|
|
1871
|
+
const res = await webhookEventsPostWebhookEventsPaymentPending(flexprice);
|
|
1872
|
+
if (res.ok) {
|
|
1873
|
+
const { value: result } = res;
|
|
1874
|
+
console.log(result);
|
|
1875
|
+
} else {
|
|
1876
|
+
console.log("webhookEventsPostWebhookEventsPaymentPending failed:", res.error);
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1880
|
+
run();
|
|
1881
|
+
```
|
|
1882
|
+
|
|
1883
|
+
### Parameters
|
|
1884
|
+
|
|
1885
|
+
| Parameter | Type | Required | Description |
|
|
1886
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1887
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1888
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1889
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1890
|
+
|
|
1891
|
+
### Response
|
|
1892
|
+
|
|
1893
|
+
**Promise\<[models.WebhookDtoPaymentWebhookPayload](../../sdk/models/webhook-dto-payment-webhook-payload.md)\>**
|
|
1894
|
+
|
|
1895
|
+
### Errors
|
|
1896
|
+
|
|
1897
|
+
| Error Type | Status Code | Content Type |
|
|
1898
|
+
| --------------- | --------------- | --------------- |
|
|
1899
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1900
|
+
|
|
1901
|
+
## postWebhookEventsPaymentSuccess
|
|
1902
|
+
|
|
1903
|
+
Fired when a payment succeeds. Doc-only for parsing.
|
|
1904
|
+
|
|
1905
|
+
### Example Usage
|
|
1906
|
+
|
|
1907
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/payment.success" method="post" path="/webhook-events/payment.success" -->
|
|
1908
|
+
```typescript
|
|
1909
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1910
|
+
|
|
1911
|
+
const flexprice = new Flexprice({
|
|
1912
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1913
|
+
});
|
|
1914
|
+
|
|
1915
|
+
async function run() {
|
|
1916
|
+
const result = await flexprice.webhookEvents.postWebhookEventsPaymentSuccess();
|
|
1917
|
+
|
|
1918
|
+
console.log(result);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
run();
|
|
1922
|
+
```
|
|
1923
|
+
|
|
1924
|
+
### Standalone function
|
|
1925
|
+
|
|
1926
|
+
The standalone function version of this method:
|
|
1927
|
+
|
|
1928
|
+
```typescript
|
|
1929
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1930
|
+
import { webhookEventsPostWebhookEventsPaymentSuccess } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-payment-success.js";
|
|
1931
|
+
|
|
1932
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1933
|
+
// You can create one instance of it to use across an application.
|
|
1934
|
+
const flexprice = new FlexpriceCore({
|
|
1935
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1936
|
+
});
|
|
1937
|
+
|
|
1938
|
+
async function run() {
|
|
1939
|
+
const res = await webhookEventsPostWebhookEventsPaymentSuccess(flexprice);
|
|
1940
|
+
if (res.ok) {
|
|
1941
|
+
const { value: result } = res;
|
|
1942
|
+
console.log(result);
|
|
1943
|
+
} else {
|
|
1944
|
+
console.log("webhookEventsPostWebhookEventsPaymentSuccess failed:", res.error);
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
run();
|
|
1949
|
+
```
|
|
1950
|
+
|
|
1951
|
+
### Parameters
|
|
1952
|
+
|
|
1953
|
+
| Parameter | Type | Required | Description |
|
|
1954
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1955
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1956
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1957
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1958
|
+
|
|
1959
|
+
### Response
|
|
1960
|
+
|
|
1961
|
+
**Promise\<[models.WebhookDtoPaymentWebhookPayload](../../sdk/models/webhook-dto-payment-webhook-payload.md)\>**
|
|
1962
|
+
|
|
1963
|
+
### Errors
|
|
1964
|
+
|
|
1965
|
+
| Error Type | Status Code | Content Type |
|
|
1966
|
+
| --------------- | --------------- | --------------- |
|
|
1967
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1968
|
+
|
|
1969
|
+
## postWebhookEventsPaymentUpdated
|
|
1970
|
+
|
|
1971
|
+
Fired when a payment is updated. Doc-only for parsing.
|
|
1972
|
+
|
|
1973
|
+
### Example Usage
|
|
1974
|
+
|
|
1975
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/payment.updated" method="post" path="/webhook-events/payment.updated" -->
|
|
1976
|
+
```typescript
|
|
1977
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
1978
|
+
|
|
1979
|
+
const flexprice = new Flexprice({
|
|
1980
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
1981
|
+
});
|
|
1982
|
+
|
|
1983
|
+
async function run() {
|
|
1984
|
+
const result = await flexprice.webhookEvents.postWebhookEventsPaymentUpdated();
|
|
1985
|
+
|
|
1986
|
+
console.log(result);
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
run();
|
|
1990
|
+
```
|
|
1991
|
+
|
|
1992
|
+
### Standalone function
|
|
1993
|
+
|
|
1994
|
+
The standalone function version of this method:
|
|
1995
|
+
|
|
1996
|
+
```typescript
|
|
1997
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1998
|
+
import { webhookEventsPostWebhookEventsPaymentUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-payment-updated.js";
|
|
1999
|
+
|
|
2000
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2001
|
+
// You can create one instance of it to use across an application.
|
|
2002
|
+
const flexprice = new FlexpriceCore({
|
|
2003
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2004
|
+
});
|
|
2005
|
+
|
|
2006
|
+
async function run() {
|
|
2007
|
+
const res = await webhookEventsPostWebhookEventsPaymentUpdated(flexprice);
|
|
2008
|
+
if (res.ok) {
|
|
2009
|
+
const { value: result } = res;
|
|
2010
|
+
console.log(result);
|
|
2011
|
+
} else {
|
|
2012
|
+
console.log("webhookEventsPostWebhookEventsPaymentUpdated failed:", res.error);
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
run();
|
|
2017
|
+
```
|
|
2018
|
+
|
|
2019
|
+
### Parameters
|
|
2020
|
+
|
|
2021
|
+
| Parameter | Type | Required | Description |
|
|
2022
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2023
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2024
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2025
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2026
|
+
|
|
2027
|
+
### Response
|
|
2028
|
+
|
|
2029
|
+
**Promise\<[models.WebhookDtoPaymentWebhookPayload](../../sdk/models/webhook-dto-payment-webhook-payload.md)\>**
|
|
2030
|
+
|
|
2031
|
+
### Errors
|
|
2032
|
+
|
|
2033
|
+
| Error Type | Status Code | Content Type |
|
|
2034
|
+
| --------------- | --------------- | --------------- |
|
|
2035
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2036
|
+
|
|
2037
|
+
## postWebhookEventsSubscriptionActivated
|
|
2038
|
+
|
|
2039
|
+
Fired when a draft subscription is activated. Doc-only for parsing.
|
|
2040
|
+
|
|
2041
|
+
### Example Usage
|
|
2042
|
+
|
|
2043
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.activated" method="post" path="/webhook-events/subscription.activated" -->
|
|
2044
|
+
```typescript
|
|
2045
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
2046
|
+
|
|
2047
|
+
const flexprice = new Flexprice({
|
|
2048
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2049
|
+
});
|
|
2050
|
+
|
|
2051
|
+
async function run() {
|
|
2052
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionActivated();
|
|
2053
|
+
|
|
2054
|
+
console.log(result);
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2057
|
+
run();
|
|
2058
|
+
```
|
|
2059
|
+
|
|
2060
|
+
### Standalone function
|
|
2061
|
+
|
|
2062
|
+
The standalone function version of this method:
|
|
2063
|
+
|
|
2064
|
+
```typescript
|
|
2065
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2066
|
+
import { webhookEventsPostWebhookEventsSubscriptionActivated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-activated.js";
|
|
2067
|
+
|
|
2068
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2069
|
+
// You can create one instance of it to use across an application.
|
|
2070
|
+
const flexprice = new FlexpriceCore({
|
|
2071
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2072
|
+
});
|
|
2073
|
+
|
|
2074
|
+
async function run() {
|
|
2075
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionActivated(flexprice);
|
|
2076
|
+
if (res.ok) {
|
|
2077
|
+
const { value: result } = res;
|
|
2078
|
+
console.log(result);
|
|
2079
|
+
} else {
|
|
2080
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionActivated failed:", res.error);
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
|
|
2084
|
+
run();
|
|
2085
|
+
```
|
|
2086
|
+
|
|
2087
|
+
### Parameters
|
|
2088
|
+
|
|
2089
|
+
| Parameter | Type | Required | Description |
|
|
2090
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2091
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2092
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2093
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2094
|
+
|
|
2095
|
+
### Response
|
|
2096
|
+
|
|
2097
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2098
|
+
|
|
2099
|
+
### Errors
|
|
2100
|
+
|
|
2101
|
+
| Error Type | Status Code | Content Type |
|
|
2102
|
+
| --------------- | --------------- | --------------- |
|
|
2103
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2104
|
+
|
|
2105
|
+
## postWebhookEventsSubscriptionCancelled
|
|
2106
|
+
|
|
2107
|
+
Fired when a subscription is cancelled (immediately or end-of-period). Doc-only for parsing.
|
|
2108
|
+
|
|
2109
|
+
### Example Usage
|
|
2110
|
+
|
|
2111
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.cancelled" method="post" path="/webhook-events/subscription.cancelled" -->
|
|
2112
|
+
```typescript
|
|
2113
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
2114
|
+
|
|
2115
|
+
const flexprice = new Flexprice({
|
|
2116
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2117
|
+
});
|
|
2118
|
+
|
|
2119
|
+
async function run() {
|
|
2120
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionCancelled();
|
|
2121
|
+
|
|
2122
|
+
console.log(result);
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
run();
|
|
2126
|
+
```
|
|
2127
|
+
|
|
2128
|
+
### Standalone function
|
|
2129
|
+
|
|
2130
|
+
The standalone function version of this method:
|
|
2131
|
+
|
|
2132
|
+
```typescript
|
|
2133
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2134
|
+
import { webhookEventsPostWebhookEventsSubscriptionCancelled } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-cancelled.js";
|
|
2135
|
+
|
|
2136
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2137
|
+
// You can create one instance of it to use across an application.
|
|
2138
|
+
const flexprice = new FlexpriceCore({
|
|
2139
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2140
|
+
});
|
|
2141
|
+
|
|
2142
|
+
async function run() {
|
|
2143
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionCancelled(flexprice);
|
|
2144
|
+
if (res.ok) {
|
|
2145
|
+
const { value: result } = res;
|
|
2146
|
+
console.log(result);
|
|
2147
|
+
} else {
|
|
2148
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionCancelled failed:", res.error);
|
|
2149
|
+
}
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
run();
|
|
2153
|
+
```
|
|
2154
|
+
|
|
2155
|
+
### Parameters
|
|
2156
|
+
|
|
2157
|
+
| Parameter | Type | Required | Description |
|
|
2158
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2159
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2160
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2161
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2162
|
+
|
|
2163
|
+
### Response
|
|
2164
|
+
|
|
2165
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2166
|
+
|
|
2167
|
+
### Errors
|
|
2168
|
+
|
|
2169
|
+
| Error Type | Status Code | Content Type |
|
|
2170
|
+
| --------------- | --------------- | --------------- |
|
|
2171
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2172
|
+
|
|
2173
|
+
## postWebhookEventsSubscriptionCreated
|
|
2174
|
+
|
|
2175
|
+
Fired when a new subscription is created. Doc-only for parsing.
|
|
2176
|
+
|
|
2177
|
+
### Example Usage
|
|
2178
|
+
|
|
2179
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.created" method="post" path="/webhook-events/subscription.created" -->
|
|
2180
|
+
```typescript
|
|
2181
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
2182
|
+
|
|
2183
|
+
const flexprice = new Flexprice({
|
|
2184
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2185
|
+
});
|
|
2186
|
+
|
|
2187
|
+
async function run() {
|
|
2188
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionCreated();
|
|
2189
|
+
|
|
2190
|
+
console.log(result);
|
|
2191
|
+
}
|
|
2192
|
+
|
|
2193
|
+
run();
|
|
2194
|
+
```
|
|
2195
|
+
|
|
2196
|
+
### Standalone function
|
|
2197
|
+
|
|
2198
|
+
The standalone function version of this method:
|
|
2199
|
+
|
|
2200
|
+
```typescript
|
|
2201
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2202
|
+
import { webhookEventsPostWebhookEventsSubscriptionCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-created.js";
|
|
2203
|
+
|
|
2204
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2205
|
+
// You can create one instance of it to use across an application.
|
|
2206
|
+
const flexprice = new FlexpriceCore({
|
|
2207
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2208
|
+
});
|
|
2209
|
+
|
|
2210
|
+
async function run() {
|
|
2211
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionCreated(flexprice);
|
|
2212
|
+
if (res.ok) {
|
|
2213
|
+
const { value: result } = res;
|
|
2214
|
+
console.log(result);
|
|
2215
|
+
} else {
|
|
2216
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionCreated failed:", res.error);
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
run();
|
|
2221
|
+
```
|
|
2222
|
+
|
|
2223
|
+
### Parameters
|
|
2224
|
+
|
|
2225
|
+
| Parameter | Type | Required | Description |
|
|
2226
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2227
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2228
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2229
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2230
|
+
|
|
2231
|
+
### Response
|
|
2232
|
+
|
|
2233
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2234
|
+
|
|
2235
|
+
### Errors
|
|
2236
|
+
|
|
2237
|
+
| Error Type | Status Code | Content Type |
|
|
2238
|
+
| --------------- | --------------- | --------------- |
|
|
2239
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2240
|
+
|
|
2241
|
+
## postWebhookEventsSubscriptionDraftCreated
|
|
2242
|
+
|
|
2243
|
+
Fired when a new draft subscription is created (not yet activated). Doc-only for parsing.
|
|
2244
|
+
|
|
2245
|
+
### Example Usage
|
|
2246
|
+
|
|
2247
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.draft.created" method="post" path="/webhook-events/subscription.draft.created" -->
|
|
2248
|
+
```typescript
|
|
2249
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
2250
|
+
|
|
2251
|
+
const flexprice = new Flexprice({
|
|
2252
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2253
|
+
});
|
|
2254
|
+
|
|
2255
|
+
async function run() {
|
|
2256
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionDraftCreated();
|
|
2257
|
+
|
|
2258
|
+
console.log(result);
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
run();
|
|
2262
|
+
```
|
|
2263
|
+
|
|
2264
|
+
### Standalone function
|
|
2265
|
+
|
|
2266
|
+
The standalone function version of this method:
|
|
2267
|
+
|
|
2268
|
+
```typescript
|
|
2269
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2270
|
+
import { webhookEventsPostWebhookEventsSubscriptionDraftCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-draft-created.js";
|
|
2271
|
+
|
|
2272
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2273
|
+
// You can create one instance of it to use across an application.
|
|
2274
|
+
const flexprice = new FlexpriceCore({
|
|
2275
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2276
|
+
});
|
|
2277
|
+
|
|
2278
|
+
async function run() {
|
|
2279
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionDraftCreated(flexprice);
|
|
2280
|
+
if (res.ok) {
|
|
2281
|
+
const { value: result } = res;
|
|
2282
|
+
console.log(result);
|
|
2283
|
+
} else {
|
|
2284
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionDraftCreated failed:", res.error);
|
|
2285
|
+
}
|
|
2286
|
+
}
|
|
2287
|
+
|
|
2288
|
+
run();
|
|
2289
|
+
```
|
|
2290
|
+
|
|
2291
|
+
### Parameters
|
|
2292
|
+
|
|
2293
|
+
| Parameter | Type | Required | Description |
|
|
2294
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2295
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2296
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2297
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2298
|
+
|
|
2299
|
+
### Response
|
|
2300
|
+
|
|
2301
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2302
|
+
|
|
2303
|
+
### Errors
|
|
2304
|
+
|
|
2305
|
+
| Error Type | Status Code | Content Type |
|
|
2306
|
+
| --------------- | --------------- | --------------- |
|
|
2307
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2308
|
+
|
|
2309
|
+
## postWebhookEventsSubscriptionGroupSpendThresholdReached
|
|
2310
|
+
|
|
2311
|
+
Fired when a feature group's total metered spend on a subscription crosses an alert threshold (critical, warning, or info) for the current billing period. Doc-only for parsing.
|
|
2312
|
+
|
|
2313
|
+
### Example Usage
|
|
2314
|
+
|
|
2315
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.group_spend.threshold_reached" method="post" path="/webhook-events/subscription.group_spend.threshold_reached" -->
|
|
2316
|
+
```typescript
|
|
2317
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
2318
|
+
|
|
2319
|
+
const flexprice = new Flexprice({
|
|
2320
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2321
|
+
});
|
|
2322
|
+
|
|
2323
|
+
async function run() {
|
|
2324
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionGroupSpendThresholdReached();
|
|
2325
|
+
|
|
2326
|
+
console.log(result);
|
|
2327
|
+
}
|
|
2328
|
+
|
|
2329
|
+
run();
|
|
2330
|
+
```
|
|
2331
|
+
|
|
2332
|
+
### Standalone function
|
|
2333
|
+
|
|
2334
|
+
The standalone function version of this method:
|
|
2335
|
+
|
|
2336
|
+
```typescript
|
|
2337
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2338
|
+
import { webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdReached } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.js";
|
|
2339
|
+
|
|
2340
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2341
|
+
// You can create one instance of it to use across an application.
|
|
2342
|
+
const flexprice = new FlexpriceCore({
|
|
2343
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2344
|
+
});
|
|
2345
|
+
|
|
2346
|
+
async function run() {
|
|
2347
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdReached(flexprice);
|
|
2348
|
+
if (res.ok) {
|
|
2349
|
+
const { value: result } = res;
|
|
2350
|
+
console.log(result);
|
|
2351
|
+
} else {
|
|
2352
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdReached failed:", res.error);
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
run();
|
|
2357
|
+
```
|
|
2358
|
+
|
|
2359
|
+
### Parameters
|
|
2360
|
+
|
|
2361
|
+
| Parameter | Type | Required | Description |
|
|
2362
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2363
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2364
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2365
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2366
|
+
|
|
2367
|
+
### Response
|
|
2368
|
+
|
|
2369
|
+
**Promise\<[models.WebhookDtoSpendAlertEvent](../../sdk/models/webhook-dto-spend-alert-event.md)\>**
|
|
2370
|
+
|
|
2371
|
+
### Errors
|
|
2372
|
+
|
|
2373
|
+
| Error Type | Status Code | Content Type |
|
|
2374
|
+
| --------------- | --------------- | --------------- |
|
|
2375
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2376
|
+
|
|
2377
|
+
## postWebhookEventsSubscriptionGroupSpendThresholdRecovered
|
|
2378
|
+
|
|
2379
|
+
Fired when a feature group's total metered spend on a subscription falls back below all configured alert thresholds for the current billing period. Doc-only for parsing.
|
|
2380
|
+
|
|
2381
|
+
### Example Usage
|
|
2382
|
+
|
|
2383
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.group_spend.threshold_recovered" method="post" path="/webhook-events/subscription.group_spend.threshold_recovered" -->
|
|
2384
|
+
```typescript
|
|
2385
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
2386
|
+
|
|
2387
|
+
const flexprice = new Flexprice({
|
|
2388
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2389
|
+
});
|
|
2390
|
+
|
|
2391
|
+
async function run() {
|
|
2392
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionGroupSpendThresholdRecovered();
|
|
2393
|
+
|
|
2394
|
+
console.log(result);
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
run();
|
|
2398
|
+
```
|
|
2399
|
+
|
|
2400
|
+
### Standalone function
|
|
2401
|
+
|
|
2402
|
+
The standalone function version of this method:
|
|
2403
|
+
|
|
2404
|
+
```typescript
|
|
2405
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2406
|
+
import { webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdRecovered } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.js";
|
|
2407
|
+
|
|
2408
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2409
|
+
// You can create one instance of it to use across an application.
|
|
2410
|
+
const flexprice = new FlexpriceCore({
|
|
2411
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
2412
|
+
});
|
|
2413
|
+
|
|
2414
|
+
async function run() {
|
|
2415
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdRecovered(flexprice);
|
|
2416
|
+
if (res.ok) {
|
|
2417
|
+
const { value: result } = res;
|
|
2418
|
+
console.log(result);
|
|
2419
|
+
} else {
|
|
2420
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdRecovered failed:", res.error);
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
run();
|
|
2425
|
+
```
|
|
2426
|
+
|
|
2427
|
+
### Parameters
|
|
2428
|
+
|
|
2429
|
+
| Parameter | Type | Required | Description |
|
|
2430
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2431
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
2432
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
2433
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
2434
|
+
|
|
2435
|
+
### Response
|
|
2436
|
+
|
|
2437
|
+
**Promise\<[models.WebhookDtoSpendAlertEvent](../../sdk/models/webhook-dto-spend-alert-event.md)\>**
|
|
2438
|
+
|
|
2439
|
+
### Errors
|
|
2440
|
+
|
|
2441
|
+
| Error Type | Status Code | Content Type |
|
|
2442
|
+
| --------------- | --------------- | --------------- |
|
|
2443
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2444
|
+
|
|
2445
|
+
## postWebhookEventsSubscriptionLineItemSpendThresholdReached
|
|
1547
2446
|
|
|
1548
|
-
Fired when a
|
|
2447
|
+
Fired when a subscription line item's metered spend crosses an alert threshold (critical, warning, or info) for the current billing period. Doc-only for parsing.
|
|
1549
2448
|
|
|
1550
2449
|
### Example Usage
|
|
1551
2450
|
|
|
1552
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/
|
|
2451
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.line_item_spend.threshold_reached" method="post" path="/webhook-events/subscription.line_item_spend.threshold_reached" -->
|
|
1553
2452
|
```typescript
|
|
1554
2453
|
import { Flexprice } from "@flexprice/sdk";
|
|
1555
2454
|
|
|
@@ -1558,7 +2457,7 @@ const flexprice = new Flexprice({
|
|
|
1558
2457
|
});
|
|
1559
2458
|
|
|
1560
2459
|
async function run() {
|
|
1561
|
-
const result = await flexprice.webhookEvents.
|
|
2460
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionLineItemSpendThresholdReached();
|
|
1562
2461
|
|
|
1563
2462
|
console.log(result);
|
|
1564
2463
|
}
|
|
@@ -1572,7 +2471,7 @@ The standalone function version of this method:
|
|
|
1572
2471
|
|
|
1573
2472
|
```typescript
|
|
1574
2473
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1575
|
-
import {
|
|
2474
|
+
import { webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdReached } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.js";
|
|
1576
2475
|
|
|
1577
2476
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1578
2477
|
// You can create one instance of it to use across an application.
|
|
@@ -1581,12 +2480,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1581
2480
|
});
|
|
1582
2481
|
|
|
1583
2482
|
async function run() {
|
|
1584
|
-
const res = await
|
|
2483
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdReached(flexprice);
|
|
1585
2484
|
if (res.ok) {
|
|
1586
2485
|
const { value: result } = res;
|
|
1587
2486
|
console.log(result);
|
|
1588
2487
|
} else {
|
|
1589
|
-
console.log("
|
|
2488
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdReached failed:", res.error);
|
|
1590
2489
|
}
|
|
1591
2490
|
}
|
|
1592
2491
|
|
|
@@ -1603,7 +2502,7 @@ run();
|
|
|
1603
2502
|
|
|
1604
2503
|
### Response
|
|
1605
2504
|
|
|
1606
|
-
**Promise\<[models.
|
|
2505
|
+
**Promise\<[models.WebhookDtoSpendAlertEvent](../../sdk/models/webhook-dto-spend-alert-event.md)\>**
|
|
1607
2506
|
|
|
1608
2507
|
### Errors
|
|
1609
2508
|
|
|
@@ -1611,13 +2510,13 @@ run();
|
|
|
1611
2510
|
| --------------- | --------------- | --------------- |
|
|
1612
2511
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1613
2512
|
|
|
1614
|
-
##
|
|
2513
|
+
## postWebhookEventsSubscriptionLineItemSpendThresholdRecovered
|
|
1615
2514
|
|
|
1616
|
-
Fired when a
|
|
2515
|
+
Fired when a subscription line item's metered spend falls back below all configured alert thresholds for the current billing period. Doc-only for parsing.
|
|
1617
2516
|
|
|
1618
2517
|
### Example Usage
|
|
1619
2518
|
|
|
1620
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2519
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.line_item_spend.threshold_recovered" method="post" path="/webhook-events/subscription.line_item_spend.threshold_recovered" -->
|
|
1621
2520
|
```typescript
|
|
1622
2521
|
import { Flexprice } from "@flexprice/sdk";
|
|
1623
2522
|
|
|
@@ -1626,7 +2525,7 @@ const flexprice = new Flexprice({
|
|
|
1626
2525
|
});
|
|
1627
2526
|
|
|
1628
2527
|
async function run() {
|
|
1629
|
-
const result = await flexprice.webhookEvents.
|
|
2528
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionLineItemSpendThresholdRecovered();
|
|
1630
2529
|
|
|
1631
2530
|
console.log(result);
|
|
1632
2531
|
}
|
|
@@ -1640,7 +2539,7 @@ The standalone function version of this method:
|
|
|
1640
2539
|
|
|
1641
2540
|
```typescript
|
|
1642
2541
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1643
|
-
import {
|
|
2542
|
+
import { webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdRecovered } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.js";
|
|
1644
2543
|
|
|
1645
2544
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1646
2545
|
// You can create one instance of it to use across an application.
|
|
@@ -1649,12 +2548,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1649
2548
|
});
|
|
1650
2549
|
|
|
1651
2550
|
async function run() {
|
|
1652
|
-
const res = await
|
|
2551
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdRecovered(flexprice);
|
|
1653
2552
|
if (res.ok) {
|
|
1654
2553
|
const { value: result } = res;
|
|
1655
2554
|
console.log(result);
|
|
1656
2555
|
} else {
|
|
1657
|
-
console.log("
|
|
2556
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdRecovered failed:", res.error);
|
|
1658
2557
|
}
|
|
1659
2558
|
}
|
|
1660
2559
|
|
|
@@ -1671,7 +2570,7 @@ run();
|
|
|
1671
2570
|
|
|
1672
2571
|
### Response
|
|
1673
2572
|
|
|
1674
|
-
**Promise\<[models.
|
|
2573
|
+
**Promise\<[models.WebhookDtoSpendAlertEvent](../../sdk/models/webhook-dto-spend-alert-event.md)\>**
|
|
1675
2574
|
|
|
1676
2575
|
### Errors
|
|
1677
2576
|
|
|
@@ -1679,13 +2578,13 @@ run();
|
|
|
1679
2578
|
| --------------- | --------------- | --------------- |
|
|
1680
2579
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1681
2580
|
|
|
1682
|
-
##
|
|
2581
|
+
## postWebhookEventsSubscriptionPaused
|
|
1683
2582
|
|
|
1684
|
-
Fired when a subscription is
|
|
2583
|
+
Fired when a subscription is paused. Doc-only for parsing.
|
|
1685
2584
|
|
|
1686
2585
|
### Example Usage
|
|
1687
2586
|
|
|
1688
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2587
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.paused" method="post" path="/webhook-events/subscription.paused" -->
|
|
1689
2588
|
```typescript
|
|
1690
2589
|
import { Flexprice } from "@flexprice/sdk";
|
|
1691
2590
|
|
|
@@ -1694,7 +2593,7 @@ const flexprice = new Flexprice({
|
|
|
1694
2593
|
});
|
|
1695
2594
|
|
|
1696
2595
|
async function run() {
|
|
1697
|
-
const result = await flexprice.webhookEvents.
|
|
2596
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionPaused();
|
|
1698
2597
|
|
|
1699
2598
|
console.log(result);
|
|
1700
2599
|
}
|
|
@@ -1708,7 +2607,7 @@ The standalone function version of this method:
|
|
|
1708
2607
|
|
|
1709
2608
|
```typescript
|
|
1710
2609
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1711
|
-
import {
|
|
2610
|
+
import { webhookEventsPostWebhookEventsSubscriptionPaused } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-paused.js";
|
|
1712
2611
|
|
|
1713
2612
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1714
2613
|
// You can create one instance of it to use across an application.
|
|
@@ -1717,12 +2616,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1717
2616
|
});
|
|
1718
2617
|
|
|
1719
2618
|
async function run() {
|
|
1720
|
-
const res = await
|
|
2619
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionPaused(flexprice);
|
|
1721
2620
|
if (res.ok) {
|
|
1722
2621
|
const { value: result } = res;
|
|
1723
2622
|
console.log(result);
|
|
1724
2623
|
} else {
|
|
1725
|
-
console.log("
|
|
2624
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionPaused failed:", res.error);
|
|
1726
2625
|
}
|
|
1727
2626
|
}
|
|
1728
2627
|
|
|
@@ -1747,13 +2646,13 @@ run();
|
|
|
1747
2646
|
| --------------- | --------------- | --------------- |
|
|
1748
2647
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1749
2648
|
|
|
1750
|
-
##
|
|
2649
|
+
## postWebhookEventsSubscriptionPhaseCreated
|
|
1751
2650
|
|
|
1752
|
-
Fired when a new subscription is created. Doc-only for parsing.
|
|
2651
|
+
Fired when a new subscription phase is created. Doc-only for parsing.
|
|
1753
2652
|
|
|
1754
2653
|
### Example Usage
|
|
1755
2654
|
|
|
1756
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.created" method="post" path="/webhook-events/subscription.created" -->
|
|
2655
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.phase.created" method="post" path="/webhook-events/subscription.phase.created" -->
|
|
1757
2656
|
```typescript
|
|
1758
2657
|
import { Flexprice } from "@flexprice/sdk";
|
|
1759
2658
|
|
|
@@ -1762,7 +2661,7 @@ const flexprice = new Flexprice({
|
|
|
1762
2661
|
});
|
|
1763
2662
|
|
|
1764
2663
|
async function run() {
|
|
1765
|
-
const result = await flexprice.webhookEvents.
|
|
2664
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionPhaseCreated();
|
|
1766
2665
|
|
|
1767
2666
|
console.log(result);
|
|
1768
2667
|
}
|
|
@@ -1776,7 +2675,7 @@ The standalone function version of this method:
|
|
|
1776
2675
|
|
|
1777
2676
|
```typescript
|
|
1778
2677
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1779
|
-
import {
|
|
2678
|
+
import { webhookEventsPostWebhookEventsSubscriptionPhaseCreated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-phase-created.js";
|
|
1780
2679
|
|
|
1781
2680
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1782
2681
|
// You can create one instance of it to use across an application.
|
|
@@ -1785,12 +2684,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1785
2684
|
});
|
|
1786
2685
|
|
|
1787
2686
|
async function run() {
|
|
1788
|
-
const res = await
|
|
2687
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionPhaseCreated(flexprice);
|
|
1789
2688
|
if (res.ok) {
|
|
1790
2689
|
const { value: result } = res;
|
|
1791
2690
|
console.log(result);
|
|
1792
2691
|
} else {
|
|
1793
|
-
console.log("
|
|
2692
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionPhaseCreated failed:", res.error);
|
|
1794
2693
|
}
|
|
1795
2694
|
}
|
|
1796
2695
|
|
|
@@ -1807,7 +2706,7 @@ run();
|
|
|
1807
2706
|
|
|
1808
2707
|
### Response
|
|
1809
2708
|
|
|
1810
|
-
**Promise\<[models.
|
|
2709
|
+
**Promise\<[models.WebhookDtoSubscriptionPhaseWebhookPayload](../../sdk/models/webhook-dto-subscription-phase-webhook-payload.md)\>**
|
|
1811
2710
|
|
|
1812
2711
|
### Errors
|
|
1813
2712
|
|
|
@@ -1815,13 +2714,13 @@ run();
|
|
|
1815
2714
|
| --------------- | --------------- | --------------- |
|
|
1816
2715
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1817
2716
|
|
|
1818
|
-
##
|
|
2717
|
+
## postWebhookEventsSubscriptionPhaseDeleted
|
|
1819
2718
|
|
|
1820
|
-
Fired when a
|
|
2719
|
+
Fired when a subscription phase is deleted. Doc-only for parsing.
|
|
1821
2720
|
|
|
1822
2721
|
### Example Usage
|
|
1823
2722
|
|
|
1824
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2723
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.phase.deleted" method="post" path="/webhook-events/subscription.phase.deleted" -->
|
|
1825
2724
|
```typescript
|
|
1826
2725
|
import { Flexprice } from "@flexprice/sdk";
|
|
1827
2726
|
|
|
@@ -1830,7 +2729,7 @@ const flexprice = new Flexprice({
|
|
|
1830
2729
|
});
|
|
1831
2730
|
|
|
1832
2731
|
async function run() {
|
|
1833
|
-
const result = await flexprice.webhookEvents.
|
|
2732
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionPhaseDeleted();
|
|
1834
2733
|
|
|
1835
2734
|
console.log(result);
|
|
1836
2735
|
}
|
|
@@ -1844,7 +2743,7 @@ The standalone function version of this method:
|
|
|
1844
2743
|
|
|
1845
2744
|
```typescript
|
|
1846
2745
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1847
|
-
import {
|
|
2746
|
+
import { webhookEventsPostWebhookEventsSubscriptionPhaseDeleted } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js";
|
|
1848
2747
|
|
|
1849
2748
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1850
2749
|
// You can create one instance of it to use across an application.
|
|
@@ -1853,12 +2752,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1853
2752
|
});
|
|
1854
2753
|
|
|
1855
2754
|
async function run() {
|
|
1856
|
-
const res = await
|
|
2755
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionPhaseDeleted(flexprice);
|
|
1857
2756
|
if (res.ok) {
|
|
1858
2757
|
const { value: result } = res;
|
|
1859
2758
|
console.log(result);
|
|
1860
2759
|
} else {
|
|
1861
|
-
console.log("
|
|
2760
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionPhaseDeleted failed:", res.error);
|
|
1862
2761
|
}
|
|
1863
2762
|
}
|
|
1864
2763
|
|
|
@@ -1875,7 +2774,7 @@ run();
|
|
|
1875
2774
|
|
|
1876
2775
|
### Response
|
|
1877
2776
|
|
|
1878
|
-
**Promise\<[models.
|
|
2777
|
+
**Promise\<[models.WebhookDtoSubscriptionPhaseWebhookPayload](../../sdk/models/webhook-dto-subscription-phase-webhook-payload.md)\>**
|
|
1879
2778
|
|
|
1880
2779
|
### Errors
|
|
1881
2780
|
|
|
@@ -1883,13 +2782,13 @@ run();
|
|
|
1883
2782
|
| --------------- | --------------- | --------------- |
|
|
1884
2783
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1885
2784
|
|
|
1886
|
-
##
|
|
2785
|
+
## postWebhookEventsSubscriptionPhaseUpdated
|
|
1887
2786
|
|
|
1888
|
-
Fired when a subscription is
|
|
2787
|
+
Fired when a subscription phase is updated. Doc-only for parsing.
|
|
1889
2788
|
|
|
1890
2789
|
### Example Usage
|
|
1891
2790
|
|
|
1892
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2791
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.phase.updated" method="post" path="/webhook-events/subscription.phase.updated" -->
|
|
1893
2792
|
```typescript
|
|
1894
2793
|
import { Flexprice } from "@flexprice/sdk";
|
|
1895
2794
|
|
|
@@ -1898,7 +2797,7 @@ const flexprice = new Flexprice({
|
|
|
1898
2797
|
});
|
|
1899
2798
|
|
|
1900
2799
|
async function run() {
|
|
1901
|
-
const result = await flexprice.webhookEvents.
|
|
2800
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionPhaseUpdated();
|
|
1902
2801
|
|
|
1903
2802
|
console.log(result);
|
|
1904
2803
|
}
|
|
@@ -1912,7 +2811,7 @@ The standalone function version of this method:
|
|
|
1912
2811
|
|
|
1913
2812
|
```typescript
|
|
1914
2813
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1915
|
-
import {
|
|
2814
|
+
import { webhookEventsPostWebhookEventsSubscriptionPhaseUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-phase-updated.js";
|
|
1916
2815
|
|
|
1917
2816
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1918
2817
|
// You can create one instance of it to use across an application.
|
|
@@ -1921,12 +2820,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1921
2820
|
});
|
|
1922
2821
|
|
|
1923
2822
|
async function run() {
|
|
1924
|
-
const res = await
|
|
2823
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionPhaseUpdated(flexprice);
|
|
1925
2824
|
if (res.ok) {
|
|
1926
2825
|
const { value: result } = res;
|
|
1927
2826
|
console.log(result);
|
|
1928
2827
|
} else {
|
|
1929
|
-
console.log("
|
|
2828
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionPhaseUpdated failed:", res.error);
|
|
1930
2829
|
}
|
|
1931
2830
|
}
|
|
1932
2831
|
|
|
@@ -1943,7 +2842,7 @@ run();
|
|
|
1943
2842
|
|
|
1944
2843
|
### Response
|
|
1945
2844
|
|
|
1946
|
-
**Promise\<[models.
|
|
2845
|
+
**Promise\<[models.WebhookDtoSubscriptionPhaseWebhookPayload](../../sdk/models/webhook-dto-subscription-phase-webhook-payload.md)\>**
|
|
1947
2846
|
|
|
1948
2847
|
### Errors
|
|
1949
2848
|
|
|
@@ -1951,13 +2850,13 @@ run();
|
|
|
1951
2850
|
| --------------- | --------------- | --------------- |
|
|
1952
2851
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
1953
2852
|
|
|
1954
|
-
##
|
|
2853
|
+
## postWebhookEventsSubscriptionPlanChanged
|
|
1955
2854
|
|
|
1956
|
-
Fired when a
|
|
2855
|
+
Fired when a subscription plan changes in place (id/anchor preserved; not cancelled+created). Doc-only for parsing.
|
|
1957
2856
|
|
|
1958
2857
|
### Example Usage
|
|
1959
2858
|
|
|
1960
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2859
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.plan_changed" method="post" path="/webhook-events/subscription.plan_changed" -->
|
|
1961
2860
|
```typescript
|
|
1962
2861
|
import { Flexprice } from "@flexprice/sdk";
|
|
1963
2862
|
|
|
@@ -1966,7 +2865,7 @@ const flexprice = new Flexprice({
|
|
|
1966
2865
|
});
|
|
1967
2866
|
|
|
1968
2867
|
async function run() {
|
|
1969
|
-
const result = await flexprice.webhookEvents.
|
|
2868
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionPlanChanged();
|
|
1970
2869
|
|
|
1971
2870
|
console.log(result);
|
|
1972
2871
|
}
|
|
@@ -1980,7 +2879,7 @@ The standalone function version of this method:
|
|
|
1980
2879
|
|
|
1981
2880
|
```typescript
|
|
1982
2881
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
1983
|
-
import {
|
|
2882
|
+
import { webhookEventsPostWebhookEventsSubscriptionPlanChanged } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-plan-changed.js";
|
|
1984
2883
|
|
|
1985
2884
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
1986
2885
|
// You can create one instance of it to use across an application.
|
|
@@ -1989,12 +2888,12 @@ const flexprice = new FlexpriceCore({
|
|
|
1989
2888
|
});
|
|
1990
2889
|
|
|
1991
2890
|
async function run() {
|
|
1992
|
-
const res = await
|
|
2891
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionPlanChanged(flexprice);
|
|
1993
2892
|
if (res.ok) {
|
|
1994
2893
|
const { value: result } = res;
|
|
1995
2894
|
console.log(result);
|
|
1996
2895
|
} else {
|
|
1997
|
-
console.log("
|
|
2896
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionPlanChanged failed:", res.error);
|
|
1998
2897
|
}
|
|
1999
2898
|
}
|
|
2000
2899
|
|
|
@@ -2011,7 +2910,7 @@ run();
|
|
|
2011
2910
|
|
|
2012
2911
|
### Response
|
|
2013
2912
|
|
|
2014
|
-
**Promise\<[models.
|
|
2913
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2015
2914
|
|
|
2016
2915
|
### Errors
|
|
2017
2916
|
|
|
@@ -2019,13 +2918,13 @@ run();
|
|
|
2019
2918
|
| --------------- | --------------- | --------------- |
|
|
2020
2919
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2021
2920
|
|
|
2022
|
-
##
|
|
2921
|
+
## postWebhookEventsSubscriptionRenewalDue
|
|
2023
2922
|
|
|
2024
|
-
Fired when a subscription
|
|
2923
|
+
Fired when a subscription renewal is upcoming (cron-driven). Doc-only for parsing.
|
|
2025
2924
|
|
|
2026
2925
|
### Example Usage
|
|
2027
2926
|
|
|
2028
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2927
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.renewal.due" method="post" path="/webhook-events/subscription.renewal.due" -->
|
|
2029
2928
|
```typescript
|
|
2030
2929
|
import { Flexprice } from "@flexprice/sdk";
|
|
2031
2930
|
|
|
@@ -2034,7 +2933,7 @@ const flexprice = new Flexprice({
|
|
|
2034
2933
|
});
|
|
2035
2934
|
|
|
2036
2935
|
async function run() {
|
|
2037
|
-
const result = await flexprice.webhookEvents.
|
|
2936
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionRenewalDue();
|
|
2038
2937
|
|
|
2039
2938
|
console.log(result);
|
|
2040
2939
|
}
|
|
@@ -2048,7 +2947,7 @@ The standalone function version of this method:
|
|
|
2048
2947
|
|
|
2049
2948
|
```typescript
|
|
2050
2949
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2051
|
-
import {
|
|
2950
|
+
import { webhookEventsPostWebhookEventsSubscriptionRenewalDue } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-renewal-due.js";
|
|
2052
2951
|
|
|
2053
2952
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2054
2953
|
// You can create one instance of it to use across an application.
|
|
@@ -2057,12 +2956,12 @@ const flexprice = new FlexpriceCore({
|
|
|
2057
2956
|
});
|
|
2058
2957
|
|
|
2059
2958
|
async function run() {
|
|
2060
|
-
const res = await
|
|
2959
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionRenewalDue(flexprice);
|
|
2061
2960
|
if (res.ok) {
|
|
2062
2961
|
const { value: result } = res;
|
|
2063
2962
|
console.log(result);
|
|
2064
2963
|
} else {
|
|
2065
|
-
console.log("
|
|
2964
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionRenewalDue failed:", res.error);
|
|
2066
2965
|
}
|
|
2067
2966
|
}
|
|
2068
2967
|
|
|
@@ -2079,7 +2978,7 @@ run();
|
|
|
2079
2978
|
|
|
2080
2979
|
### Response
|
|
2081
2980
|
|
|
2082
|
-
**Promise\<[models.
|
|
2981
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2083
2982
|
|
|
2084
2983
|
### Errors
|
|
2085
2984
|
|
|
@@ -2087,13 +2986,13 @@ run();
|
|
|
2087
2986
|
| --------------- | --------------- | --------------- |
|
|
2088
2987
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2089
2988
|
|
|
2090
|
-
##
|
|
2989
|
+
## postWebhookEventsSubscriptionResumed
|
|
2091
2990
|
|
|
2092
|
-
Fired when a subscription
|
|
2991
|
+
Fired when a paused subscription is resumed. Doc-only for parsing.
|
|
2093
2992
|
|
|
2094
2993
|
### Example Usage
|
|
2095
2994
|
|
|
2096
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
2995
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.resumed" method="post" path="/webhook-events/subscription.resumed" -->
|
|
2097
2996
|
```typescript
|
|
2098
2997
|
import { Flexprice } from "@flexprice/sdk";
|
|
2099
2998
|
|
|
@@ -2102,7 +3001,7 @@ const flexprice = new Flexprice({
|
|
|
2102
3001
|
});
|
|
2103
3002
|
|
|
2104
3003
|
async function run() {
|
|
2105
|
-
const result = await flexprice.webhookEvents.
|
|
3004
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionResumed();
|
|
2106
3005
|
|
|
2107
3006
|
console.log(result);
|
|
2108
3007
|
}
|
|
@@ -2116,7 +3015,7 @@ The standalone function version of this method:
|
|
|
2116
3015
|
|
|
2117
3016
|
```typescript
|
|
2118
3017
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2119
|
-
import {
|
|
3018
|
+
import { webhookEventsPostWebhookEventsSubscriptionResumed } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-resumed.js";
|
|
2120
3019
|
|
|
2121
3020
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2122
3021
|
// You can create one instance of it to use across an application.
|
|
@@ -2125,12 +3024,12 @@ const flexprice = new FlexpriceCore({
|
|
|
2125
3024
|
});
|
|
2126
3025
|
|
|
2127
3026
|
async function run() {
|
|
2128
|
-
const res = await
|
|
3027
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionResumed(flexprice);
|
|
2129
3028
|
if (res.ok) {
|
|
2130
3029
|
const { value: result } = res;
|
|
2131
3030
|
console.log(result);
|
|
2132
3031
|
} else {
|
|
2133
|
-
console.log("
|
|
3032
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionResumed failed:", res.error);
|
|
2134
3033
|
}
|
|
2135
3034
|
}
|
|
2136
3035
|
|
|
@@ -2147,7 +3046,7 @@ run();
|
|
|
2147
3046
|
|
|
2148
3047
|
### Response
|
|
2149
3048
|
|
|
2150
|
-
**Promise\<[models.
|
|
3049
|
+
**Promise\<[models.WebhookDtoSubscriptionWebhookPayload](../../sdk/models/webhook-dto-subscription-webhook-payload.md)\>**
|
|
2151
3050
|
|
|
2152
3051
|
### Errors
|
|
2153
3052
|
|
|
@@ -2155,13 +3054,13 @@ run();
|
|
|
2155
3054
|
| --------------- | --------------- | --------------- |
|
|
2156
3055
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2157
3056
|
|
|
2158
|
-
##
|
|
3057
|
+
## postWebhookEventsSubscriptionSpendThresholdReached
|
|
2159
3058
|
|
|
2160
|
-
Fired when a subscription
|
|
3059
|
+
Fired when a subscription's total metered spend crosses an alert threshold (critical, warning, or info) for the current billing period. Doc-only for parsing.
|
|
2161
3060
|
|
|
2162
3061
|
### Example Usage
|
|
2163
3062
|
|
|
2164
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
3063
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.spend.threshold_reached" method="post" path="/webhook-events/subscription.spend.threshold_reached" -->
|
|
2165
3064
|
```typescript
|
|
2166
3065
|
import { Flexprice } from "@flexprice/sdk";
|
|
2167
3066
|
|
|
@@ -2170,7 +3069,7 @@ const flexprice = new Flexprice({
|
|
|
2170
3069
|
});
|
|
2171
3070
|
|
|
2172
3071
|
async function run() {
|
|
2173
|
-
const result = await flexprice.webhookEvents.
|
|
3072
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionSpendThresholdReached();
|
|
2174
3073
|
|
|
2175
3074
|
console.log(result);
|
|
2176
3075
|
}
|
|
@@ -2184,7 +3083,7 @@ The standalone function version of this method:
|
|
|
2184
3083
|
|
|
2185
3084
|
```typescript
|
|
2186
3085
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2187
|
-
import {
|
|
3086
|
+
import { webhookEventsPostWebhookEventsSubscriptionSpendThresholdReached } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.js";
|
|
2188
3087
|
|
|
2189
3088
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2190
3089
|
// You can create one instance of it to use across an application.
|
|
@@ -2193,12 +3092,12 @@ const flexprice = new FlexpriceCore({
|
|
|
2193
3092
|
});
|
|
2194
3093
|
|
|
2195
3094
|
async function run() {
|
|
2196
|
-
const res = await
|
|
3095
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionSpendThresholdReached(flexprice);
|
|
2197
3096
|
if (res.ok) {
|
|
2198
3097
|
const { value: result } = res;
|
|
2199
3098
|
console.log(result);
|
|
2200
3099
|
} else {
|
|
2201
|
-
console.log("
|
|
3100
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionSpendThresholdReached failed:", res.error);
|
|
2202
3101
|
}
|
|
2203
3102
|
}
|
|
2204
3103
|
|
|
@@ -2215,7 +3114,7 @@ run();
|
|
|
2215
3114
|
|
|
2216
3115
|
### Response
|
|
2217
3116
|
|
|
2218
|
-
**Promise\<[models.
|
|
3117
|
+
**Promise\<[models.WebhookDtoSpendAlertEvent](../../sdk/models/webhook-dto-spend-alert-event.md)\>**
|
|
2219
3118
|
|
|
2220
3119
|
### Errors
|
|
2221
3120
|
|
|
@@ -2223,13 +3122,13 @@ run();
|
|
|
2223
3122
|
| --------------- | --------------- | --------------- |
|
|
2224
3123
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2225
3124
|
|
|
2226
|
-
##
|
|
3125
|
+
## postWebhookEventsSubscriptionSpendThresholdRecovered
|
|
2227
3126
|
|
|
2228
|
-
Fired when a
|
|
3127
|
+
Fired when a subscription's total metered spend falls back below all configured alert thresholds for the current billing period. Doc-only for parsing.
|
|
2229
3128
|
|
|
2230
3129
|
### Example Usage
|
|
2231
3130
|
|
|
2232
|
-
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.
|
|
3131
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/subscription.spend.threshold_recovered" method="post" path="/webhook-events/subscription.spend.threshold_recovered" -->
|
|
2233
3132
|
```typescript
|
|
2234
3133
|
import { Flexprice } from "@flexprice/sdk";
|
|
2235
3134
|
|
|
@@ -2238,7 +3137,7 @@ const flexprice = new Flexprice({
|
|
|
2238
3137
|
});
|
|
2239
3138
|
|
|
2240
3139
|
async function run() {
|
|
2241
|
-
const result = await flexprice.webhookEvents.
|
|
3140
|
+
const result = await flexprice.webhookEvents.postWebhookEventsSubscriptionSpendThresholdRecovered();
|
|
2242
3141
|
|
|
2243
3142
|
console.log(result);
|
|
2244
3143
|
}
|
|
@@ -2252,7 +3151,7 @@ The standalone function version of this method:
|
|
|
2252
3151
|
|
|
2253
3152
|
```typescript
|
|
2254
3153
|
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
2255
|
-
import {
|
|
3154
|
+
import { webhookEventsPostWebhookEventsSubscriptionSpendThresholdRecovered } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.js";
|
|
2256
3155
|
|
|
2257
3156
|
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
2258
3157
|
// You can create one instance of it to use across an application.
|
|
@@ -2261,12 +3160,12 @@ const flexprice = new FlexpriceCore({
|
|
|
2261
3160
|
});
|
|
2262
3161
|
|
|
2263
3162
|
async function run() {
|
|
2264
|
-
const res = await
|
|
3163
|
+
const res = await webhookEventsPostWebhookEventsSubscriptionSpendThresholdRecovered(flexprice);
|
|
2265
3164
|
if (res.ok) {
|
|
2266
3165
|
const { value: result } = res;
|
|
2267
3166
|
console.log(result);
|
|
2268
3167
|
} else {
|
|
2269
|
-
console.log("
|
|
3168
|
+
console.log("webhookEventsPostWebhookEventsSubscriptionSpendThresholdRecovered failed:", res.error);
|
|
2270
3169
|
}
|
|
2271
3170
|
}
|
|
2272
3171
|
|
|
@@ -2283,7 +3182,7 @@ run();
|
|
|
2283
3182
|
|
|
2284
3183
|
### Response
|
|
2285
3184
|
|
|
2286
|
-
**Promise\<[models.
|
|
3185
|
+
**Promise\<[models.WebhookDtoSpendAlertEvent](../../sdk/models/webhook-dto-spend-alert-event.md)\>**
|
|
2287
3186
|
|
|
2288
3187
|
### Errors
|
|
2289
3188
|
|
|
@@ -2699,6 +3598,74 @@ run();
|
|
|
2699
3598
|
| --------------- | --------------- | --------------- |
|
|
2700
3599
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2701
3600
|
|
|
3601
|
+
## postWebhookEventsWalletOngoingBalanceUpdated
|
|
3602
|
+
|
|
3603
|
+
Fired when a wallet's ongoing (real-time) balance changes. Doc-only for parsing.
|
|
3604
|
+
|
|
3605
|
+
### Example Usage
|
|
3606
|
+
|
|
3607
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/wallet.ongoing_balance.updated" method="post" path="/webhook-events/wallet.ongoing_balance.updated" -->
|
|
3608
|
+
```typescript
|
|
3609
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
3610
|
+
|
|
3611
|
+
const flexprice = new Flexprice({
|
|
3612
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
3613
|
+
});
|
|
3614
|
+
|
|
3615
|
+
async function run() {
|
|
3616
|
+
const result = await flexprice.webhookEvents.postWebhookEventsWalletOngoingBalanceUpdated();
|
|
3617
|
+
|
|
3618
|
+
console.log(result);
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
run();
|
|
3622
|
+
```
|
|
3623
|
+
|
|
3624
|
+
### Standalone function
|
|
3625
|
+
|
|
3626
|
+
The standalone function version of this method:
|
|
3627
|
+
|
|
3628
|
+
```typescript
|
|
3629
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
3630
|
+
import { webhookEventsPostWebhookEventsWalletOngoingBalanceUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.js";
|
|
3631
|
+
|
|
3632
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
3633
|
+
// You can create one instance of it to use across an application.
|
|
3634
|
+
const flexprice = new FlexpriceCore({
|
|
3635
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
3636
|
+
});
|
|
3637
|
+
|
|
3638
|
+
async function run() {
|
|
3639
|
+
const res = await webhookEventsPostWebhookEventsWalletOngoingBalanceUpdated(flexprice);
|
|
3640
|
+
if (res.ok) {
|
|
3641
|
+
const { value: result } = res;
|
|
3642
|
+
console.log(result);
|
|
3643
|
+
} else {
|
|
3644
|
+
console.log("webhookEventsPostWebhookEventsWalletOngoingBalanceUpdated failed:", res.error);
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3648
|
+
run();
|
|
3649
|
+
```
|
|
3650
|
+
|
|
3651
|
+
### Parameters
|
|
3652
|
+
|
|
3653
|
+
| Parameter | Type | Required | Description |
|
|
3654
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
3655
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
3656
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
3657
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
3658
|
+
|
|
3659
|
+
### Response
|
|
3660
|
+
|
|
3661
|
+
**Promise\<[models.WebhookDtoWalletWebhookPayload](../../sdk/models/webhook-dto-wallet-webhook-payload.md)\>**
|
|
3662
|
+
|
|
3663
|
+
### Errors
|
|
3664
|
+
|
|
3665
|
+
| Error Type | Status Code | Content Type |
|
|
3666
|
+
| --------------- | --------------- | --------------- |
|
|
3667
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
3668
|
+
|
|
2702
3669
|
## postWebhookEventsWalletTerminated
|
|
2703
3670
|
|
|
2704
3671
|
Fired when a wallet is terminated. Doc-only for parsing.
|
|
@@ -2835,6 +3802,74 @@ run();
|
|
|
2835
3802
|
| --------------- | --------------- | --------------- |
|
|
2836
3803
|
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
2837
3804
|
|
|
3805
|
+
## postWebhookEventsWalletTransactionUpdated
|
|
3806
|
+
|
|
3807
|
+
Fired when an existing wallet transaction is updated (e.g. pending to completed). Doc-only for parsing.
|
|
3808
|
+
|
|
3809
|
+
### Example Usage
|
|
3810
|
+
|
|
3811
|
+
<!-- UsageSnippet language="typescript" operationID="post_/webhook-events/wallet.transaction.updated" method="post" path="/webhook-events/wallet.transaction.updated" -->
|
|
3812
|
+
```typescript
|
|
3813
|
+
import { Flexprice } from "@flexprice/sdk";
|
|
3814
|
+
|
|
3815
|
+
const flexprice = new Flexprice({
|
|
3816
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
3817
|
+
});
|
|
3818
|
+
|
|
3819
|
+
async function run() {
|
|
3820
|
+
const result = await flexprice.webhookEvents.postWebhookEventsWalletTransactionUpdated();
|
|
3821
|
+
|
|
3822
|
+
console.log(result);
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
run();
|
|
3826
|
+
```
|
|
3827
|
+
|
|
3828
|
+
### Standalone function
|
|
3829
|
+
|
|
3830
|
+
The standalone function version of this method:
|
|
3831
|
+
|
|
3832
|
+
```typescript
|
|
3833
|
+
import { FlexpriceCore } from "@flexprice/sdk/core.js";
|
|
3834
|
+
import { webhookEventsPostWebhookEventsWalletTransactionUpdated } from "@flexprice/sdk/funcs/webhook-events-post-webhook-events-wallet-transaction-updated.js";
|
|
3835
|
+
|
|
3836
|
+
// Use `FlexpriceCore` for best tree-shaking performance.
|
|
3837
|
+
// You can create one instance of it to use across an application.
|
|
3838
|
+
const flexprice = new FlexpriceCore({
|
|
3839
|
+
apiKeyAuth: "<YOUR_API_KEY_HERE>",
|
|
3840
|
+
});
|
|
3841
|
+
|
|
3842
|
+
async function run() {
|
|
3843
|
+
const res = await webhookEventsPostWebhookEventsWalletTransactionUpdated(flexprice);
|
|
3844
|
+
if (res.ok) {
|
|
3845
|
+
const { value: result } = res;
|
|
3846
|
+
console.log(result);
|
|
3847
|
+
} else {
|
|
3848
|
+
console.log("webhookEventsPostWebhookEventsWalletTransactionUpdated failed:", res.error);
|
|
3849
|
+
}
|
|
3850
|
+
}
|
|
3851
|
+
|
|
3852
|
+
run();
|
|
3853
|
+
```
|
|
3854
|
+
|
|
3855
|
+
### Parameters
|
|
3856
|
+
|
|
3857
|
+
| Parameter | Type | Required | Description |
|
|
3858
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
3859
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
3860
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
3861
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
3862
|
+
|
|
3863
|
+
### Response
|
|
3864
|
+
|
|
3865
|
+
**Promise\<[models.WebhookDtoTransactionUpdatedWebhookPayload](../../sdk/models/webhook-dto-transaction-updated-webhook-payload.md)\>**
|
|
3866
|
+
|
|
3867
|
+
### Errors
|
|
3868
|
+
|
|
3869
|
+
| Error Type | Status Code | Content Type |
|
|
3870
|
+
| --------------- | --------------- | --------------- |
|
|
3871
|
+
| models.SDKError | 4XX, 5XX | \*/\* |
|
|
3872
|
+
|
|
2838
3873
|
## postWebhookEventsWalletUpdated
|
|
2839
3874
|
|
|
2840
3875
|
Fired when a wallet is updated. Doc-only for parsing.
|