@flexprice/sdk 2.0.10 → 2.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdk/models/cancellation-type.md +2 -2
- package/docs/sdk/models/dto-cancel-subscription-request.md +8 -7
- package/docs/sdk/models/dto-create-customer-request.md +17 -17
- package/docs/sdk/models/dto-create-subscription-request.md +41 -39
- package/docs/sdk/models/dto-customer-response.md +22 -22
- package/docs/sdk/models/dto-update-customer-request.md +15 -15
- package/docs/sdk/models/github-com-flexprice-flexprice-internal-domain-customer-customer.md +21 -21
- package/docs/sdk/models/webhook-dto-alert-webhook-payload.md +32 -0
- package/docs/sdk/models/webhook-dto-communication-webhook-payload.md +27 -0
- package/docs/sdk/models/webhook-dto-credit-note-webhook-payload.md +37 -0
- package/docs/sdk/models/webhook-dto-customer-webhook-payload.md +16 -0
- package/docs/sdk/models/webhook-dto-entitlement-webhook-payload.md +48 -0
- package/docs/sdk/models/webhook-dto-feature-webhook-payload.md +28 -0
- package/docs/sdk/models/webhook-dto-invoice-webhook-payload.md +27 -0
- package/docs/sdk/models/webhook-dto-payment-webhook-payload.md +16 -0
- package/docs/sdk/models/webhook-dto-subscription-phase-webhook-payload.md +16 -0
- package/docs/sdk/models/webhook-dto-subscription-webhook-payload.md +25 -0
- package/docs/sdk/models/webhook-dto-transaction-webhook-payload.md +17 -0
- package/docs/sdk/models/webhook-dto-wallet-alert-info.md +19 -0
- package/docs/sdk/models/webhook-dto-wallet-webhook-payload.md +18 -0
- package/docs/sdk/models/window-size.md +2 -2
- package/docs/sdks/webhookevents/README.md +2973 -0
- package/esm/funcs/addons-delete-addon.js.map +1 -1
- package/esm/funcs/addons-get-addon-by-lookup-key.js.map +1 -1
- package/esm/funcs/addons-get-addon.js.map +1 -1
- package/esm/funcs/addons-update-addon.js.map +1 -1
- package/esm/funcs/costs-delete-costsheet.js.map +1 -1
- package/esm/funcs/costs-get-costsheet.js.map +1 -1
- package/esm/funcs/costs-update-costsheet.js.map +1 -1
- package/esm/funcs/coupons-delete-coupon.js.map +1 -1
- package/esm/funcs/coupons-get-coupon.js.map +1 -1
- package/esm/funcs/coupons-update-coupon.js.map +1 -1
- package/esm/funcs/credit-grants-delete-credit-grant.js.map +1 -1
- package/esm/funcs/credit-grants-get-credit-grant.js.map +1 -1
- package/esm/funcs/credit-grants-get-plan-credit-grants.js.map +1 -1
- package/esm/funcs/credit-grants-update-credit-grant.js.map +1 -1
- package/esm/funcs/credit-notes-get-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.js.map +1 -1
- package/esm/funcs/customers-delete-customer.js.map +1 -1
- package/esm/funcs/customers-get-customer-by-external-id.js.map +1 -1
- package/esm/funcs/customers-get-customer-entitlements.js.map +1 -1
- package/esm/funcs/customers-get-customer-upcoming-grants.js.map +1 -1
- package/esm/funcs/customers-get-customer.js.map +1 -1
- package/esm/funcs/entitlements-delete-entitlement.js.map +1 -1
- package/esm/funcs/entitlements-get-addon-entitlements.js.map +1 -1
- package/esm/funcs/entitlements-get-entitlement.js.map +1 -1
- package/esm/funcs/entitlements-get-plan-entitlements.js.map +1 -1
- package/esm/funcs/entitlements-update-entitlement.js.map +1 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js.map +1 -1
- package/esm/funcs/events-get-event.js.map +1 -1
- package/esm/funcs/features-delete-feature.js.map +1 -1
- package/esm/funcs/features-update-feature.js.map +1 -1
- package/esm/funcs/groups-delete-group.js.map +1 -1
- package/esm/funcs/groups-get-group.js.map +1 -1
- package/esm/funcs/integrations-create-or-update-integration.js.map +1 -1
- package/esm/funcs/integrations-delete-integration.js.map +1 -1
- package/esm/funcs/integrations-get-integration.js.map +1 -1
- package/esm/funcs/invoices-attempt-invoice-payment.js.map +1 -1
- package/esm/funcs/invoices-finalize-invoice.js.map +1 -1
- package/esm/funcs/invoices-get-customer-invoice-summary.js.map +1 -1
- package/esm/funcs/invoices-get-invoice-pdf.js.map +1 -1
- package/esm/funcs/invoices-get-invoice.js.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice-v2.js.map +1 -1
- package/esm/funcs/invoices-recalculate-invoice.js.map +1 -1
- package/esm/funcs/invoices-trigger-invoice-comms-webhook.js.map +1 -1
- package/esm/funcs/invoices-update-invoice-payment-status.js.map +1 -1
- package/esm/funcs/invoices-update-invoice.js.map +1 -1
- package/esm/funcs/invoices-void-invoice.js.map +1 -1
- package/esm/funcs/payments-delete-payment.js.map +1 -1
- package/esm/funcs/payments-get-payment.js.map +1 -1
- package/esm/funcs/payments-process-payment.js.map +1 -1
- package/esm/funcs/payments-update-payment.js.map +1 -1
- package/esm/funcs/plans-delete-plan.js.map +1 -1
- package/esm/funcs/plans-get-plan.js.map +1 -1
- package/esm/funcs/plans-post-plans-id-clone.js.map +1 -1
- package/esm/funcs/plans-sync-plan-prices.js.map +1 -1
- package/esm/funcs/plans-update-plan.js.map +1 -1
- package/esm/funcs/price-units-delete-price-unit.js.map +1 -1
- package/esm/funcs/price-units-get-price-unit-by-code.js.map +1 -1
- package/esm/funcs/price-units-get-price-unit.js.map +1 -1
- package/esm/funcs/price-units-update-price-unit.js.map +1 -1
- package/esm/funcs/prices-delete-price.js.map +1 -1
- package/esm/funcs/prices-get-price-by-lookup-key.js.map +1 -1
- package/esm/funcs/prices-get-price.js.map +1 -1
- package/esm/funcs/prices-update-price.js.map +1 -1
- package/esm/funcs/rbac-get-rbac-role.js.map +1 -1
- package/esm/funcs/scheduled-tasks-delete-scheduled-task.js.map +1 -1
- package/esm/funcs/scheduled-tasks-get-scheduled-task.js.map +1 -1
- package/esm/funcs/scheduled-tasks-trigger-scheduled-task-run.js.map +1 -1
- package/esm/funcs/scheduled-tasks-update-scheduled-task.js.map +1 -1
- package/esm/funcs/secrets-delete-api-key.js.map +1 -1
- package/esm/funcs/subscriptions-activate-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-cancel-subscription-schedule.js.map +1 -1
- package/esm/funcs/subscriptions-cancel-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-create-subscription-line-item.js.map +1 -1
- package/esm/funcs/subscriptions-delete-subscription-line-item.js.map +1 -1
- package/esm/funcs/subscriptions-execute-subscription-change.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-addon-associations.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-entitlements.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-schedule.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-upcoming-grants.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription-v2.js.map +1 -1
- package/esm/funcs/subscriptions-get-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-list-subscription-pauses.js.map +1 -1
- package/esm/funcs/subscriptions-list-subscription-schedules.js.map +1 -1
- package/esm/funcs/subscriptions-pause-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-preview-subscription-change.js.map +1 -1
- package/esm/funcs/subscriptions-resume-subscription.js.map +1 -1
- package/esm/funcs/subscriptions-update-subscription-line-item.js.map +1 -1
- package/esm/funcs/subscriptions-update-subscription.js.map +1 -1
- package/esm/funcs/tasks-download-task-export.js.map +1 -1
- package/esm/funcs/tasks-get-task.js.map +1 -1
- package/esm/funcs/tasks-update-task-status.js.map +1 -1
- package/esm/funcs/tax-associations-delete-tax-association.js.map +1 -1
- package/esm/funcs/tax-associations-get-tax-association.js.map +1 -1
- package/esm/funcs/tax-associations-update-tax-association.js.map +1 -1
- package/esm/funcs/tax-rates-delete-tax-rate.js.map +1 -1
- package/esm/funcs/tax-rates-get-tax-rate.js.map +1 -1
- package/esm/funcs/tax-rates-update-tax-rate.js.map +1 -1
- package/esm/funcs/tenants-get-tenant-by-id.js.map +1 -1
- package/esm/funcs/wallets-get-wallet-balance.js.map +1 -1
- package/esm/funcs/wallets-get-wallet-transactions.js.map +1 -1
- package/esm/funcs/wallets-get-wallet.js.map +1 -1
- package/esm/funcs/wallets-get-wallets-by-customer-id.js.map +1 -1
- package/esm/funcs/wallets-terminate-wallet.js.map +1 -1
- package/esm/funcs/wallets-top-up-wallet.js.map +1 -1
- package/esm/funcs/wallets-update-wallet.js.map +1 -1
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-created.d.ts.map +1 -0
- package/esm/funcs/{webhooks-handle-chargebee-webhook.js → webhook-events-post-webhook-events-credit-note-created.js} +10 -34
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-updated.d.ts.map +1 -0
- package/esm/funcs/{webhooks-handle-paddle-webhook.js → webhook-events-post-webhook-events-credit-note-updated.js} +9 -35
- package/esm/funcs/webhook-events-post-webhook-events-credit-note-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-created.d.ts.map +1 -0
- package/esm/funcs/{webhooks-handle-moyasar-webhook.js → webhook-events-post-webhook-events-customer-created.js} +9 -35
- package/esm/funcs/webhook-events-post-webhook-events-customer-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-deleted.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-deleted.d.ts.map +1 -0
- package/esm/funcs/{webhooks-handle-nomod-webhook.js → webhook-events-post-webhook-events-customer-deleted.js} +10 -39
- package/esm/funcs/webhook-events-post-webhook-events-customer-deleted.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-customer-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-deleted.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-entitlement-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-deleted.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.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 +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-create-drafted.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-finalized.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-payment.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update-voided.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-invoice-update.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-failed.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-pending.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-success.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-payment-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-activated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-cancelled.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-draft-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-paused.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-phase-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-renewal-due.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-resumed.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-subscription-updated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-terminated.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-transaction-created.js.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.d.ts +17 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.d.ts.map +1 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.js +68 -0
- package/esm/funcs/webhook-events-post-webhook-events-wallet-updated.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/encodings.d.ts.map +1 -1
- package/esm/lib/encodings.js +20 -5
- package/esm/lib/encodings.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +8 -4
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +4 -2
- package/esm/lib/url.js.map +1 -1
- package/esm/sdk/models/cancellation-type.d.ts +1 -0
- package/esm/sdk/models/cancellation-type.d.ts.map +1 -1
- package/esm/sdk/models/cancellation-type.js +1 -0
- package/esm/sdk/models/cancellation-type.js.map +1 -1
- package/esm/sdk/models/dto-cancel-subscription-request.d.ts +8 -0
- package/esm/sdk/models/dto-cancel-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-cancel-subscription-request.js +2 -0
- package/esm/sdk/models/dto-cancel-subscription-request.js.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.d.ts +8 -3
- package/esm/sdk/models/dto-create-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.js.map +1 -1
- package/esm/sdk/models/dto-create-subscription-request.d.ts +18 -0
- package/esm/sdk/models/dto-create-subscription-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-create-subscription-request.js +4 -0
- package/esm/sdk/models/dto-create-subscription-request.js.map +1 -1
- package/esm/sdk/models/dto-customer-response.d.ts +5 -1
- package/esm/sdk/models/dto-customer-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-customer-response.js.map +1 -1
- package/esm/sdk/models/dto-update-customer-request.d.ts +9 -4
- package/esm/sdk/models/dto-update-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-update-customer-request.js.map +1 -1
- package/esm/sdk/models/github-com-flexprice-flexprice-internal-domain-customer-customer.d.ts +5 -1
- package/esm/sdk/models/github-com-flexprice-flexprice-internal-domain-customer-customer.d.ts.map +1 -1
- package/esm/sdk/models/github-com-flexprice-flexprice-internal-domain-customer-customer.js.map +1 -1
- package/esm/sdk/models/index.d.ts +13 -8
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +13 -8
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts +21 -0
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js +29 -0
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js +22 -0
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts +15 -0
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts +12 -0
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js +21 -0
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts +14 -0
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js +23 -0
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet-alert-info.d.ts +15 -0
- package/esm/sdk/models/webhook-dto-wallet-alert-info.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet-alert-info.js +27 -0
- package/esm/sdk/models/webhook-dto-wallet-alert-info.js.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts +19 -0
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts.map +1 -0
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js +25 -0
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js.map +1 -0
- package/esm/sdk/models/window-size.d.ts +1 -1
- package/esm/sdk/models/window-size.js +1 -1
- package/esm/sdk/models/window-size.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/webhook-events.d.ts +306 -0
- package/esm/sdk/webhook-events.d.ts.map +1 -0
- package/esm/sdk/webhook-events.js +438 -0
- package/esm/sdk/webhook-events.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/addons-delete-addon.ts +0 -1
- package/src/funcs/addons-get-addon-by-lookup-key.ts +0 -1
- package/src/funcs/addons-get-addon.ts +0 -1
- package/src/funcs/addons-update-addon.ts +0 -1
- package/src/funcs/costs-delete-costsheet.ts +0 -1
- package/src/funcs/costs-get-costsheet.ts +0 -1
- package/src/funcs/costs-update-costsheet.ts +0 -1
- package/src/funcs/coupons-delete-coupon.ts +0 -1
- package/src/funcs/coupons-get-coupon.ts +0 -1
- package/src/funcs/coupons-update-coupon.ts +0 -1
- package/src/funcs/credit-grants-delete-credit-grant.ts +0 -1
- package/src/funcs/credit-grants-get-credit-grant.ts +0 -1
- package/src/funcs/credit-grants-get-plan-credit-grants.ts +0 -1
- package/src/funcs/credit-grants-update-credit-grant.ts +0 -1
- package/src/funcs/credit-notes-get-credit-note.ts +0 -1
- package/src/funcs/credit-notes-process-credit-note.ts +0 -1
- package/src/funcs/credit-notes-void-credit-note.ts +0 -1
- package/src/funcs/customers-delete-customer.ts +0 -1
- package/src/funcs/customers-get-customer-by-external-id.ts +0 -1
- package/src/funcs/customers-get-customer-entitlements.ts +0 -1
- package/src/funcs/customers-get-customer-upcoming-grants.ts +0 -1
- package/src/funcs/customers-get-customer.ts +0 -1
- package/src/funcs/entitlements-delete-entitlement.ts +0 -1
- package/src/funcs/entitlements-get-addon-entitlements.ts +0 -1
- package/src/funcs/entitlements-get-entitlement.ts +0 -1
- package/src/funcs/entitlements-get-plan-entitlements.ts +0 -1
- package/src/funcs/entitlements-update-entitlement.ts +0 -1
- package/src/funcs/entity-integration-mappings-delete-entity-integration-mapping.ts +0 -1
- package/src/funcs/events-get-event.ts +0 -1
- package/src/funcs/features-delete-feature.ts +0 -1
- package/src/funcs/features-update-feature.ts +0 -1
- package/src/funcs/groups-delete-group.ts +0 -1
- package/src/funcs/groups-get-group.ts +0 -1
- package/src/funcs/integrations-create-or-update-integration.ts +0 -1
- package/src/funcs/integrations-delete-integration.ts +0 -1
- package/src/funcs/integrations-get-integration.ts +0 -1
- package/src/funcs/invoices-attempt-invoice-payment.ts +0 -1
- package/src/funcs/invoices-finalize-invoice.ts +0 -1
- package/src/funcs/invoices-get-customer-invoice-summary.ts +0 -1
- package/src/funcs/invoices-get-invoice-pdf.ts +0 -1
- package/src/funcs/invoices-get-invoice.ts +0 -1
- package/src/funcs/invoices-recalculate-invoice-v2.ts +0 -1
- package/src/funcs/invoices-recalculate-invoice.ts +0 -1
- package/src/funcs/invoices-trigger-invoice-comms-webhook.ts +0 -1
- package/src/funcs/invoices-update-invoice-payment-status.ts +0 -1
- package/src/funcs/invoices-update-invoice.ts +0 -1
- package/src/funcs/invoices-void-invoice.ts +0 -1
- package/src/funcs/payments-delete-payment.ts +0 -1
- package/src/funcs/payments-get-payment.ts +0 -1
- package/src/funcs/payments-process-payment.ts +0 -1
- package/src/funcs/payments-update-payment.ts +0 -1
- package/src/funcs/plans-delete-plan.ts +0 -1
- package/src/funcs/plans-get-plan.ts +0 -1
- package/src/funcs/plans-post-plans-id-clone.ts +0 -1
- package/src/funcs/plans-sync-plan-prices.ts +0 -1
- package/src/funcs/plans-update-plan.ts +0 -1
- package/src/funcs/price-units-delete-price-unit.ts +0 -1
- package/src/funcs/price-units-get-price-unit-by-code.ts +0 -1
- package/src/funcs/price-units-get-price-unit.ts +0 -1
- package/src/funcs/price-units-update-price-unit.ts +0 -1
- package/src/funcs/prices-delete-price.ts +0 -1
- package/src/funcs/prices-get-price-by-lookup-key.ts +0 -1
- package/src/funcs/prices-get-price.ts +0 -1
- package/src/funcs/prices-update-price.ts +0 -1
- package/src/funcs/rbac-get-rbac-role.ts +0 -1
- package/src/funcs/scheduled-tasks-delete-scheduled-task.ts +0 -1
- package/src/funcs/scheduled-tasks-get-scheduled-task.ts +0 -1
- package/src/funcs/scheduled-tasks-trigger-scheduled-task-run.ts +0 -1
- package/src/funcs/scheduled-tasks-update-scheduled-task.ts +0 -1
- package/src/funcs/secrets-delete-api-key.ts +0 -1
- package/src/funcs/subscriptions-activate-subscription.ts +0 -1
- package/src/funcs/subscriptions-cancel-subscription-schedule.ts +0 -1
- package/src/funcs/subscriptions-cancel-subscription.ts +0 -1
- package/src/funcs/subscriptions-create-subscription-line-item.ts +0 -1
- package/src/funcs/subscriptions-delete-subscription-line-item.ts +0 -1
- package/src/funcs/subscriptions-execute-subscription-change.ts +0 -1
- package/src/funcs/subscriptions-get-subscription-addon-associations.ts +0 -1
- package/src/funcs/subscriptions-get-subscription-entitlements.ts +0 -1
- package/src/funcs/subscriptions-get-subscription-schedule.ts +0 -1
- package/src/funcs/subscriptions-get-subscription-upcoming-grants.ts +0 -1
- package/src/funcs/subscriptions-get-subscription-v2.ts +0 -1
- package/src/funcs/subscriptions-get-subscription.ts +0 -1
- package/src/funcs/subscriptions-list-subscription-pauses.ts +0 -1
- package/src/funcs/subscriptions-list-subscription-schedules.ts +0 -1
- package/src/funcs/subscriptions-pause-subscription.ts +0 -1
- package/src/funcs/subscriptions-preview-subscription-change.ts +0 -1
- package/src/funcs/subscriptions-resume-subscription.ts +0 -1
- package/src/funcs/subscriptions-update-subscription-line-item.ts +0 -1
- package/src/funcs/subscriptions-update-subscription.ts +0 -1
- package/src/funcs/tasks-download-task-export.ts +0 -1
- package/src/funcs/tasks-get-task.ts +0 -1
- package/src/funcs/tasks-update-task-status.ts +0 -1
- package/src/funcs/tax-associations-delete-tax-association.ts +0 -1
- package/src/funcs/tax-associations-get-tax-association.ts +0 -1
- package/src/funcs/tax-associations-update-tax-association.ts +0 -1
- package/src/funcs/tax-rates-delete-tax-rate.ts +0 -1
- package/src/funcs/tax-rates-get-tax-rate.ts +0 -1
- package/src/funcs/tax-rates-update-tax-rate.ts +0 -1
- package/src/funcs/tenants-get-tenant-by-id.ts +0 -1
- package/src/funcs/wallets-get-wallet-balance.ts +0 -1
- package/src/funcs/wallets-get-wallet-transactions.ts +0 -1
- package/src/funcs/wallets-get-wallet.ts +0 -1
- package/src/funcs/wallets-get-wallets-by-customer-id.ts +0 -1
- package/src/funcs/wallets-terminate-wallet.ts +0 -1
- package/src/funcs/wallets-top-up-wallet.ts +0 -1
- package/src/funcs/wallets-update-wallet.ts +0 -1
- package/src/funcs/{webhooks-handle-chargebee-webhook.ts → webhook-events-post-webhook-events-credit-note-created.ts} +12 -52
- package/src/funcs/{webhooks-handle-paddle-webhook.ts → webhook-events-post-webhook-events-credit-note-updated.ts} +9 -57
- package/src/funcs/{webhooks-handle-nomod-webhook.ts → webhook-events-post-webhook-events-customer-created.ts} +11 -58
- package/src/funcs/{webhooks-handle-moyasar-webhook.ts → webhook-events-post-webhook-events-customer-deleted.ts} +9 -58
- package/src/funcs/webhook-events-post-webhook-events-customer-updated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-entitlement-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-entitlement-deleted.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-entitlement-updated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-feature-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-feature-deleted.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-feature-updated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-communication-triggered.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-create-drafted.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-payment-overdue.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-update-finalized.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-update-payment.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-update-voided.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-invoice-update.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-payment-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-payment-failed.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-payment-pending.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-payment-success.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-payment-updated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-activated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-cancelled.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-draft-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-paused.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-phase-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-phase-deleted.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-phase-updated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-renewal-due.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-resumed.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-subscription-updated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-terminated.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-transaction-created.ts +142 -0
- package/src/funcs/webhook-events-post-webhook-events-wallet-updated.ts +142 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/lib/sdks.ts +7 -5
- package/src/lib/url.ts +16 -14
- package/src/sdk/models/cancellation-type.ts +1 -0
- package/src/sdk/models/dto-cancel-subscription-request.ts +10 -0
- package/src/sdk/models/dto-create-customer-request.ts +8 -3
- package/src/sdk/models/dto-create-subscription-request.ts +22 -0
- package/src/sdk/models/dto-customer-response.ts +5 -1
- package/src/sdk/models/dto-update-customer-request.ts +9 -4
- package/src/sdk/models/github-com-flexprice-flexprice-internal-domain-customer-customer.ts +5 -1
- package/src/sdk/models/index.ts +13 -8
- package/src/sdk/models/webhook-dto-alert-webhook-payload.ts +66 -0
- package/src/sdk/models/webhook-dto-communication-webhook-payload.ts +46 -0
- package/src/sdk/models/webhook-dto-credit-note-webhook-payload.ts +47 -0
- package/src/sdk/models/webhook-dto-customer-webhook-payload.ts +48 -0
- package/src/sdk/models/webhook-dto-entitlement-webhook-payload.ts +46 -0
- package/src/sdk/models/webhook-dto-feature-webhook-payload.ts +45 -0
- package/src/sdk/models/webhook-dto-invoice-webhook-payload.ts +45 -0
- package/src/sdk/models/webhook-dto-payment-webhook-payload.ts +45 -0
- package/src/sdk/models/webhook-dto-subscription-phase-webhook-payload.ts +49 -0
- package/src/sdk/models/webhook-dto-subscription-webhook-payload.ts +46 -0
- package/src/sdk/models/webhook-dto-transaction-webhook-payload.ts +52 -0
- package/src/sdk/models/webhook-dto-wallet-alert-info.ts +54 -0
- package/src/sdk/models/webhook-dto-wallet-webhook-payload.ts +60 -0
- package/src/sdk/models/window-size.ts +1 -1
- package/src/sdk/sdk.ts +4 -4
- package/src/sdk/webhook-events.ts +705 -0
- package/docs/sdk/models/handle-chargebee-webhook-request.md +0 -19
- package/docs/sdk/models/handle-hubspot-webhook-request.md +0 -21
- package/docs/sdk/models/handle-moyasar-webhook-request.md +0 -20
- package/docs/sdk/models/handle-nomod-webhook-request.md +0 -20
- package/docs/sdk/models/handle-paddle-webhook-request.md +0 -21
- package/docs/sdk/models/handle-quickbooks-webhook-request.md +0 -20
- package/docs/sdk/models/handle-razorpay-webhook-request.md +0 -21
- package/docs/sdk/models/handle-stripe-webhook-request.md +0 -21
- package/docs/sdks/webhooks/README.md +0 -581
- package/esm/funcs/webhooks-handle-chargebee-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-chargebee-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-chargebee-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-hubspot-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-hubspot-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-hubspot-webhook.js +0 -94
- package/esm/funcs/webhooks-handle-hubspot-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-moyasar-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-moyasar-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-moyasar-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-nomod-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-nomod-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-nomod-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-paddle-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-paddle-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-paddle-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-quickbooks-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-quickbooks-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-quickbooks-webhook.js +0 -94
- package/esm/funcs/webhooks-handle-quickbooks-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-razorpay-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-razorpay-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-razorpay-webhook.js +0 -94
- package/esm/funcs/webhooks-handle-razorpay-webhook.js.map +0 -1
- package/esm/funcs/webhooks-handle-stripe-webhook.d.ts +0 -18
- package/esm/funcs/webhooks-handle-stripe-webhook.d.ts.map +0 -1
- package/esm/funcs/webhooks-handle-stripe-webhook.js +0 -94
- package/esm/funcs/webhooks-handle-stripe-webhook.js.map +0 -1
- package/esm/sdk/models/handle-chargebee-webhook-op.d.ts +0 -20
- package/esm/sdk/models/handle-chargebee-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-chargebee-webhook-op.js +0 -19
- package/esm/sdk/models/handle-chargebee-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-hubspot-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-hubspot-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-hubspot-webhook-op.js +0 -21
- package/esm/sdk/models/handle-hubspot-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-moyasar-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-moyasar-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-moyasar-webhook-op.js +0 -21
- package/esm/sdk/models/handle-moyasar-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-nomod-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-nomod-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-nomod-webhook-op.js +0 -21
- package/esm/sdk/models/handle-nomod-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-paddle-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-paddle-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-paddle-webhook-op.js +0 -21
- package/esm/sdk/models/handle-paddle-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-quickbooks-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-quickbooks-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-quickbooks-webhook-op.js +0 -21
- package/esm/sdk/models/handle-quickbooks-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-razorpay-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-razorpay-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-razorpay-webhook-op.js +0 -21
- package/esm/sdk/models/handle-razorpay-webhook-op.js.map +0 -1
- package/esm/sdk/models/handle-stripe-webhook-op.d.ts +0 -25
- package/esm/sdk/models/handle-stripe-webhook-op.d.ts.map +0 -1
- package/esm/sdk/models/handle-stripe-webhook-op.js +0 -21
- package/esm/sdk/models/handle-stripe-webhook-op.js.map +0 -1
- package/esm/sdk/webhooks.d.ts +0 -76
- package/esm/sdk/webhooks.d.ts.map +0 -1
- package/esm/sdk/webhooks.js +0 -88
- package/esm/sdk/webhooks.js.map +0 -1
- package/src/funcs/webhooks-handle-hubspot-webhook.ts +0 -191
- package/src/funcs/webhooks-handle-quickbooks-webhook.ts +0 -191
- package/src/funcs/webhooks-handle-razorpay-webhook.ts +0 -191
- package/src/funcs/webhooks-handle-stripe-webhook.ts +0 -190
- package/src/sdk/models/handle-chargebee-webhook-op.ts +0 -50
- package/src/sdk/models/handle-hubspot-webhook-op.ts +0 -57
- package/src/sdk/models/handle-moyasar-webhook-op.ts +0 -57
- package/src/sdk/models/handle-nomod-webhook-op.ts +0 -55
- package/src/sdk/models/handle-paddle-webhook-op.ts +0 -55
- package/src/sdk/models/handle-quickbooks-webhook-op.ts +0 -57
- package/src/sdk/models/handle-razorpay-webhook-op.ts +0 -57
- package/src/sdk/models/handle-stripe-webhook-op.ts +0 -55
- package/src/sdk/webhooks.ts +0 -182
|
@@ -0,0 +1,705 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhookEventsPostWebhookEventsCreditNoteCreated } from "../funcs/webhook-events-post-webhook-events-credit-note-created.js";
|
|
6
|
+
import { webhookEventsPostWebhookEventsCreditNoteUpdated } from "../funcs/webhook-events-post-webhook-events-credit-note-updated.js";
|
|
7
|
+
import { webhookEventsPostWebhookEventsCustomerCreated } from "../funcs/webhook-events-post-webhook-events-customer-created.js";
|
|
8
|
+
import { webhookEventsPostWebhookEventsCustomerDeleted } from "../funcs/webhook-events-post-webhook-events-customer-deleted.js";
|
|
9
|
+
import { webhookEventsPostWebhookEventsCustomerUpdated } from "../funcs/webhook-events-post-webhook-events-customer-updated.js";
|
|
10
|
+
import { webhookEventsPostWebhookEventsEntitlementCreated } from "../funcs/webhook-events-post-webhook-events-entitlement-created.js";
|
|
11
|
+
import { webhookEventsPostWebhookEventsEntitlementDeleted } from "../funcs/webhook-events-post-webhook-events-entitlement-deleted.js";
|
|
12
|
+
import { webhookEventsPostWebhookEventsEntitlementUpdated } from "../funcs/webhook-events-post-webhook-events-entitlement-updated.js";
|
|
13
|
+
import { webhookEventsPostWebhookEventsFeatureCreated } from "../funcs/webhook-events-post-webhook-events-feature-created.js";
|
|
14
|
+
import { webhookEventsPostWebhookEventsFeatureDeleted } from "../funcs/webhook-events-post-webhook-events-feature-deleted.js";
|
|
15
|
+
import { webhookEventsPostWebhookEventsFeatureUpdated } from "../funcs/webhook-events-post-webhook-events-feature-updated.js";
|
|
16
|
+
import { webhookEventsPostWebhookEventsFeatureWalletBalanceAlert } from "../funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js";
|
|
17
|
+
import { webhookEventsPostWebhookEventsInvoiceCommunicationTriggered } from "../funcs/webhook-events-post-webhook-events-invoice-communication-triggered.js";
|
|
18
|
+
import { webhookEventsPostWebhookEventsInvoiceCreateDrafted } from "../funcs/webhook-events-post-webhook-events-invoice-create-drafted.js";
|
|
19
|
+
import { webhookEventsPostWebhookEventsInvoicePaymentOverdue } from "../funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js";
|
|
20
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdateFinalized } from "../funcs/webhook-events-post-webhook-events-invoice-update-finalized.js";
|
|
21
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdatePayment } from "../funcs/webhook-events-post-webhook-events-invoice-update-payment.js";
|
|
22
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdateVoided } from "../funcs/webhook-events-post-webhook-events-invoice-update-voided.js";
|
|
23
|
+
import { webhookEventsPostWebhookEventsInvoiceUpdate } from "../funcs/webhook-events-post-webhook-events-invoice-update.js";
|
|
24
|
+
import { webhookEventsPostWebhookEventsPaymentCreated } from "../funcs/webhook-events-post-webhook-events-payment-created.js";
|
|
25
|
+
import { webhookEventsPostWebhookEventsPaymentFailed } from "../funcs/webhook-events-post-webhook-events-payment-failed.js";
|
|
26
|
+
import { webhookEventsPostWebhookEventsPaymentPending } from "../funcs/webhook-events-post-webhook-events-payment-pending.js";
|
|
27
|
+
import { webhookEventsPostWebhookEventsPaymentSuccess } from "../funcs/webhook-events-post-webhook-events-payment-success.js";
|
|
28
|
+
import { webhookEventsPostWebhookEventsPaymentUpdated } from "../funcs/webhook-events-post-webhook-events-payment-updated.js";
|
|
29
|
+
import { webhookEventsPostWebhookEventsSubscriptionActivated } from "../funcs/webhook-events-post-webhook-events-subscription-activated.js";
|
|
30
|
+
import { webhookEventsPostWebhookEventsSubscriptionCancelled } from "../funcs/webhook-events-post-webhook-events-subscription-cancelled.js";
|
|
31
|
+
import { webhookEventsPostWebhookEventsSubscriptionCreated } from "../funcs/webhook-events-post-webhook-events-subscription-created.js";
|
|
32
|
+
import { webhookEventsPostWebhookEventsSubscriptionDraftCreated } from "../funcs/webhook-events-post-webhook-events-subscription-draft-created.js";
|
|
33
|
+
import { webhookEventsPostWebhookEventsSubscriptionPaused } from "../funcs/webhook-events-post-webhook-events-subscription-paused.js";
|
|
34
|
+
import { webhookEventsPostWebhookEventsSubscriptionPhaseCreated } from "../funcs/webhook-events-post-webhook-events-subscription-phase-created.js";
|
|
35
|
+
import { webhookEventsPostWebhookEventsSubscriptionPhaseDeleted } from "../funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js";
|
|
36
|
+
import { webhookEventsPostWebhookEventsSubscriptionPhaseUpdated } from "../funcs/webhook-events-post-webhook-events-subscription-phase-updated.js";
|
|
37
|
+
import { webhookEventsPostWebhookEventsSubscriptionRenewalDue } from "../funcs/webhook-events-post-webhook-events-subscription-renewal-due.js";
|
|
38
|
+
import { webhookEventsPostWebhookEventsSubscriptionResumed } from "../funcs/webhook-events-post-webhook-events-subscription-resumed.js";
|
|
39
|
+
import { webhookEventsPostWebhookEventsSubscriptionUpdated } from "../funcs/webhook-events-post-webhook-events-subscription-updated.js";
|
|
40
|
+
import { webhookEventsPostWebhookEventsWalletCreated } from "../funcs/webhook-events-post-webhook-events-wallet-created.js";
|
|
41
|
+
import { webhookEventsPostWebhookEventsWalletCreditBalanceDropped } from "../funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.js";
|
|
42
|
+
import { webhookEventsPostWebhookEventsWalletCreditBalanceRecovered } from "../funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.js";
|
|
43
|
+
import { webhookEventsPostWebhookEventsWalletOngoingBalanceDropped } from "../funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.js";
|
|
44
|
+
import { webhookEventsPostWebhookEventsWalletOngoingBalanceRecovered } from "../funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.js";
|
|
45
|
+
import { webhookEventsPostWebhookEventsWalletTerminated } from "../funcs/webhook-events-post-webhook-events-wallet-terminated.js";
|
|
46
|
+
import { webhookEventsPostWebhookEventsWalletTransactionCreated } from "../funcs/webhook-events-post-webhook-events-wallet-transaction-created.js";
|
|
47
|
+
import { webhookEventsPostWebhookEventsWalletUpdated } from "../funcs/webhook-events-post-webhook-events-wallet-updated.js";
|
|
48
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
49
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
50
|
+
import * as models from "./models/index.js";
|
|
51
|
+
|
|
52
|
+
export class WebhookEvents extends ClientSDK {
|
|
53
|
+
/**
|
|
54
|
+
* credit_note.created
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Fired when a new credit note is created. Doc-only for parsing.
|
|
58
|
+
*/
|
|
59
|
+
async postWebhookEventsCreditNoteCreated(
|
|
60
|
+
options?: RequestOptions,
|
|
61
|
+
): Promise<models.WebhookDtoCreditNoteWebhookPayload> {
|
|
62
|
+
return unwrapAsync(webhookEventsPostWebhookEventsCreditNoteCreated(
|
|
63
|
+
this,
|
|
64
|
+
options,
|
|
65
|
+
));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* credit_note.updated
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Fired when a credit note is updated. Doc-only for parsing.
|
|
73
|
+
*/
|
|
74
|
+
async postWebhookEventsCreditNoteUpdated(
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<models.WebhookDtoCreditNoteWebhookPayload> {
|
|
77
|
+
return unwrapAsync(webhookEventsPostWebhookEventsCreditNoteUpdated(
|
|
78
|
+
this,
|
|
79
|
+
options,
|
|
80
|
+
));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* customer.created
|
|
85
|
+
*
|
|
86
|
+
* @remarks
|
|
87
|
+
* Fired when a new customer is created. Doc-only for parsing.
|
|
88
|
+
*/
|
|
89
|
+
async postWebhookEventsCustomerCreated(
|
|
90
|
+
options?: RequestOptions,
|
|
91
|
+
): Promise<models.WebhookDtoCustomerWebhookPayload> {
|
|
92
|
+
return unwrapAsync(webhookEventsPostWebhookEventsCustomerCreated(
|
|
93
|
+
this,
|
|
94
|
+
options,
|
|
95
|
+
));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* customer.deleted
|
|
100
|
+
*
|
|
101
|
+
* @remarks
|
|
102
|
+
* Fired when a customer is deleted. Doc-only for parsing.
|
|
103
|
+
*/
|
|
104
|
+
async postWebhookEventsCustomerDeleted(
|
|
105
|
+
options?: RequestOptions,
|
|
106
|
+
): Promise<models.WebhookDtoCustomerWebhookPayload> {
|
|
107
|
+
return unwrapAsync(webhookEventsPostWebhookEventsCustomerDeleted(
|
|
108
|
+
this,
|
|
109
|
+
options,
|
|
110
|
+
));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* customer.updated
|
|
115
|
+
*
|
|
116
|
+
* @remarks
|
|
117
|
+
* Fired when a customer is updated. Doc-only for parsing.
|
|
118
|
+
*/
|
|
119
|
+
async postWebhookEventsCustomerUpdated(
|
|
120
|
+
options?: RequestOptions,
|
|
121
|
+
): Promise<models.WebhookDtoCustomerWebhookPayload> {
|
|
122
|
+
return unwrapAsync(webhookEventsPostWebhookEventsCustomerUpdated(
|
|
123
|
+
this,
|
|
124
|
+
options,
|
|
125
|
+
));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* entitlement.created
|
|
130
|
+
*
|
|
131
|
+
* @remarks
|
|
132
|
+
* Fired when a new entitlement is created. Doc-only for parsing.
|
|
133
|
+
*/
|
|
134
|
+
async postWebhookEventsEntitlementCreated(
|
|
135
|
+
options?: RequestOptions,
|
|
136
|
+
): Promise<models.WebhookDtoEntitlementWebhookPayload> {
|
|
137
|
+
return unwrapAsync(webhookEventsPostWebhookEventsEntitlementCreated(
|
|
138
|
+
this,
|
|
139
|
+
options,
|
|
140
|
+
));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* entitlement.deleted
|
|
145
|
+
*
|
|
146
|
+
* @remarks
|
|
147
|
+
* Fired when an entitlement is deleted. Doc-only for parsing.
|
|
148
|
+
*/
|
|
149
|
+
async postWebhookEventsEntitlementDeleted(
|
|
150
|
+
options?: RequestOptions,
|
|
151
|
+
): Promise<models.WebhookDtoEntitlementWebhookPayload> {
|
|
152
|
+
return unwrapAsync(webhookEventsPostWebhookEventsEntitlementDeleted(
|
|
153
|
+
this,
|
|
154
|
+
options,
|
|
155
|
+
));
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* entitlement.updated
|
|
160
|
+
*
|
|
161
|
+
* @remarks
|
|
162
|
+
* Fired when an entitlement is updated. Doc-only for parsing.
|
|
163
|
+
*/
|
|
164
|
+
async postWebhookEventsEntitlementUpdated(
|
|
165
|
+
options?: RequestOptions,
|
|
166
|
+
): Promise<models.WebhookDtoEntitlementWebhookPayload> {
|
|
167
|
+
return unwrapAsync(webhookEventsPostWebhookEventsEntitlementUpdated(
|
|
168
|
+
this,
|
|
169
|
+
options,
|
|
170
|
+
));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* feature.created
|
|
175
|
+
*
|
|
176
|
+
* @remarks
|
|
177
|
+
* Fired when a new feature is created. Doc-only for parsing.
|
|
178
|
+
*/
|
|
179
|
+
async postWebhookEventsFeatureCreated(
|
|
180
|
+
options?: RequestOptions,
|
|
181
|
+
): Promise<models.WebhookDtoFeatureWebhookPayload> {
|
|
182
|
+
return unwrapAsync(webhookEventsPostWebhookEventsFeatureCreated(
|
|
183
|
+
this,
|
|
184
|
+
options,
|
|
185
|
+
));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* feature.deleted
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
* Fired when a feature is deleted. Doc-only for parsing.
|
|
193
|
+
*/
|
|
194
|
+
async postWebhookEventsFeatureDeleted(
|
|
195
|
+
options?: RequestOptions,
|
|
196
|
+
): Promise<models.WebhookDtoFeatureWebhookPayload> {
|
|
197
|
+
return unwrapAsync(webhookEventsPostWebhookEventsFeatureDeleted(
|
|
198
|
+
this,
|
|
199
|
+
options,
|
|
200
|
+
));
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* feature.updated
|
|
205
|
+
*
|
|
206
|
+
* @remarks
|
|
207
|
+
* Fired when a feature is updated. Doc-only for parsing.
|
|
208
|
+
*/
|
|
209
|
+
async postWebhookEventsFeatureUpdated(
|
|
210
|
+
options?: RequestOptions,
|
|
211
|
+
): Promise<models.WebhookDtoFeatureWebhookPayload> {
|
|
212
|
+
return unwrapAsync(webhookEventsPostWebhookEventsFeatureUpdated(
|
|
213
|
+
this,
|
|
214
|
+
options,
|
|
215
|
+
));
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* feature.wallet_balance.alert
|
|
220
|
+
*
|
|
221
|
+
* @remarks
|
|
222
|
+
* Fired when a feature's associated wallet balance crosses an alert threshold. Doc-only for parsing.
|
|
223
|
+
*/
|
|
224
|
+
async postWebhookEventsFeatureWalletBalanceAlert(
|
|
225
|
+
options?: RequestOptions,
|
|
226
|
+
): Promise<models.WebhookDtoAlertWebhookPayload> {
|
|
227
|
+
return unwrapAsync(webhookEventsPostWebhookEventsFeatureWalletBalanceAlert(
|
|
228
|
+
this,
|
|
229
|
+
options,
|
|
230
|
+
));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* invoice.communication.triggered
|
|
235
|
+
*
|
|
236
|
+
* @remarks
|
|
237
|
+
* Fired when an invoice communication (e.g. email notification) is triggered. Doc-only for parsing.
|
|
238
|
+
*/
|
|
239
|
+
async postWebhookEventsInvoiceCommunicationTriggered(
|
|
240
|
+
options?: RequestOptions,
|
|
241
|
+
): Promise<models.WebhookDtoCommunicationWebhookPayload> {
|
|
242
|
+
return unwrapAsync(
|
|
243
|
+
webhookEventsPostWebhookEventsInvoiceCommunicationTriggered(
|
|
244
|
+
this,
|
|
245
|
+
options,
|
|
246
|
+
),
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* invoice.create.drafted
|
|
252
|
+
*
|
|
253
|
+
* @remarks
|
|
254
|
+
* Fired when a new invoice is created in draft status. Doc-only for parsing.
|
|
255
|
+
*/
|
|
256
|
+
async postWebhookEventsInvoiceCreateDrafted(
|
|
257
|
+
options?: RequestOptions,
|
|
258
|
+
): Promise<models.WebhookDtoInvoiceWebhookPayload> {
|
|
259
|
+
return unwrapAsync(webhookEventsPostWebhookEventsInvoiceCreateDrafted(
|
|
260
|
+
this,
|
|
261
|
+
options,
|
|
262
|
+
));
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* invoice.payment.overdue
|
|
267
|
+
*
|
|
268
|
+
* @remarks
|
|
269
|
+
* Fired when an invoice payment is overdue past the due date. Doc-only for parsing.
|
|
270
|
+
*/
|
|
271
|
+
async postWebhookEventsInvoicePaymentOverdue(
|
|
272
|
+
options?: RequestOptions,
|
|
273
|
+
): Promise<models.WebhookDtoInvoiceWebhookPayload> {
|
|
274
|
+
return unwrapAsync(webhookEventsPostWebhookEventsInvoicePaymentOverdue(
|
|
275
|
+
this,
|
|
276
|
+
options,
|
|
277
|
+
));
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* invoice.update
|
|
282
|
+
*
|
|
283
|
+
* @remarks
|
|
284
|
+
* Fired when an invoice is updated. Doc-only for parsing.
|
|
285
|
+
*/
|
|
286
|
+
async postWebhookEventsInvoiceUpdate(
|
|
287
|
+
options?: RequestOptions,
|
|
288
|
+
): Promise<models.WebhookDtoInvoiceWebhookPayload> {
|
|
289
|
+
return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdate(
|
|
290
|
+
this,
|
|
291
|
+
options,
|
|
292
|
+
));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* invoice.update.finalized
|
|
297
|
+
*
|
|
298
|
+
* @remarks
|
|
299
|
+
* Fired when an invoice is finalized and locked for payment. Doc-only for parsing.
|
|
300
|
+
*/
|
|
301
|
+
async postWebhookEventsInvoiceUpdateFinalized(
|
|
302
|
+
options?: RequestOptions,
|
|
303
|
+
): Promise<models.WebhookDtoInvoiceWebhookPayload> {
|
|
304
|
+
return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdateFinalized(
|
|
305
|
+
this,
|
|
306
|
+
options,
|
|
307
|
+
));
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* invoice.update.payment
|
|
312
|
+
*
|
|
313
|
+
* @remarks
|
|
314
|
+
* Fired when an invoice payment status changes. Doc-only for parsing.
|
|
315
|
+
*/
|
|
316
|
+
async postWebhookEventsInvoiceUpdatePayment(
|
|
317
|
+
options?: RequestOptions,
|
|
318
|
+
): Promise<models.WebhookDtoInvoiceWebhookPayload> {
|
|
319
|
+
return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdatePayment(
|
|
320
|
+
this,
|
|
321
|
+
options,
|
|
322
|
+
));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* invoice.update.voided
|
|
327
|
+
*
|
|
328
|
+
* @remarks
|
|
329
|
+
* Fired when an invoice is voided (e.g. order cancelled or duplicate). Doc-only for parsing.
|
|
330
|
+
*/
|
|
331
|
+
async postWebhookEventsInvoiceUpdateVoided(
|
|
332
|
+
options?: RequestOptions,
|
|
333
|
+
): Promise<models.WebhookDtoInvoiceWebhookPayload> {
|
|
334
|
+
return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdateVoided(
|
|
335
|
+
this,
|
|
336
|
+
options,
|
|
337
|
+
));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* payment.created
|
|
342
|
+
*
|
|
343
|
+
* @remarks
|
|
344
|
+
* Fired when a new payment is created. Doc-only for parsing.
|
|
345
|
+
*/
|
|
346
|
+
async postWebhookEventsPaymentCreated(
|
|
347
|
+
options?: RequestOptions,
|
|
348
|
+
): Promise<models.WebhookDtoPaymentWebhookPayload> {
|
|
349
|
+
return unwrapAsync(webhookEventsPostWebhookEventsPaymentCreated(
|
|
350
|
+
this,
|
|
351
|
+
options,
|
|
352
|
+
));
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* payment.failed
|
|
357
|
+
*
|
|
358
|
+
* @remarks
|
|
359
|
+
* Fired when a payment fails. Doc-only for parsing.
|
|
360
|
+
*/
|
|
361
|
+
async postWebhookEventsPaymentFailed(
|
|
362
|
+
options?: RequestOptions,
|
|
363
|
+
): Promise<models.WebhookDtoPaymentWebhookPayload> {
|
|
364
|
+
return unwrapAsync(webhookEventsPostWebhookEventsPaymentFailed(
|
|
365
|
+
this,
|
|
366
|
+
options,
|
|
367
|
+
));
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* payment.pending
|
|
372
|
+
*
|
|
373
|
+
* @remarks
|
|
374
|
+
* Fired when a payment is pending processing. Doc-only for parsing.
|
|
375
|
+
*/
|
|
376
|
+
async postWebhookEventsPaymentPending(
|
|
377
|
+
options?: RequestOptions,
|
|
378
|
+
): Promise<models.WebhookDtoPaymentWebhookPayload> {
|
|
379
|
+
return unwrapAsync(webhookEventsPostWebhookEventsPaymentPending(
|
|
380
|
+
this,
|
|
381
|
+
options,
|
|
382
|
+
));
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* payment.success
|
|
387
|
+
*
|
|
388
|
+
* @remarks
|
|
389
|
+
* Fired when a payment succeeds. Doc-only for parsing.
|
|
390
|
+
*/
|
|
391
|
+
async postWebhookEventsPaymentSuccess(
|
|
392
|
+
options?: RequestOptions,
|
|
393
|
+
): Promise<models.WebhookDtoPaymentWebhookPayload> {
|
|
394
|
+
return unwrapAsync(webhookEventsPostWebhookEventsPaymentSuccess(
|
|
395
|
+
this,
|
|
396
|
+
options,
|
|
397
|
+
));
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* payment.updated
|
|
402
|
+
*
|
|
403
|
+
* @remarks
|
|
404
|
+
* Fired when a payment is updated. Doc-only for parsing.
|
|
405
|
+
*/
|
|
406
|
+
async postWebhookEventsPaymentUpdated(
|
|
407
|
+
options?: RequestOptions,
|
|
408
|
+
): Promise<models.WebhookDtoPaymentWebhookPayload> {
|
|
409
|
+
return unwrapAsync(webhookEventsPostWebhookEventsPaymentUpdated(
|
|
410
|
+
this,
|
|
411
|
+
options,
|
|
412
|
+
));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* subscription.activated
|
|
417
|
+
*
|
|
418
|
+
* @remarks
|
|
419
|
+
* Fired when a draft subscription is activated. Doc-only for parsing.
|
|
420
|
+
*/
|
|
421
|
+
async postWebhookEventsSubscriptionActivated(
|
|
422
|
+
options?: RequestOptions,
|
|
423
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
424
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionActivated(
|
|
425
|
+
this,
|
|
426
|
+
options,
|
|
427
|
+
));
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* subscription.cancelled
|
|
432
|
+
*
|
|
433
|
+
* @remarks
|
|
434
|
+
* Fired when a subscription is cancelled (immediately or end-of-period). Doc-only for parsing.
|
|
435
|
+
*/
|
|
436
|
+
async postWebhookEventsSubscriptionCancelled(
|
|
437
|
+
options?: RequestOptions,
|
|
438
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
439
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionCancelled(
|
|
440
|
+
this,
|
|
441
|
+
options,
|
|
442
|
+
));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* subscription.created
|
|
447
|
+
*
|
|
448
|
+
* @remarks
|
|
449
|
+
* Fired when a new subscription is created. Doc-only for parsing.
|
|
450
|
+
*/
|
|
451
|
+
async postWebhookEventsSubscriptionCreated(
|
|
452
|
+
options?: RequestOptions,
|
|
453
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
454
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionCreated(
|
|
455
|
+
this,
|
|
456
|
+
options,
|
|
457
|
+
));
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* subscription.draft.created
|
|
462
|
+
*
|
|
463
|
+
* @remarks
|
|
464
|
+
* Fired when a new draft subscription is created (not yet activated). Doc-only for parsing.
|
|
465
|
+
*/
|
|
466
|
+
async postWebhookEventsSubscriptionDraftCreated(
|
|
467
|
+
options?: RequestOptions,
|
|
468
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
469
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionDraftCreated(
|
|
470
|
+
this,
|
|
471
|
+
options,
|
|
472
|
+
));
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* subscription.paused
|
|
477
|
+
*
|
|
478
|
+
* @remarks
|
|
479
|
+
* Fired when a subscription is paused. Doc-only for parsing.
|
|
480
|
+
*/
|
|
481
|
+
async postWebhookEventsSubscriptionPaused(
|
|
482
|
+
options?: RequestOptions,
|
|
483
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
484
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPaused(
|
|
485
|
+
this,
|
|
486
|
+
options,
|
|
487
|
+
));
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* subscription.phase.created
|
|
492
|
+
*
|
|
493
|
+
* @remarks
|
|
494
|
+
* Fired when a new subscription phase is created. Doc-only for parsing.
|
|
495
|
+
*/
|
|
496
|
+
async postWebhookEventsSubscriptionPhaseCreated(
|
|
497
|
+
options?: RequestOptions,
|
|
498
|
+
): Promise<models.WebhookDtoSubscriptionPhaseWebhookPayload> {
|
|
499
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPhaseCreated(
|
|
500
|
+
this,
|
|
501
|
+
options,
|
|
502
|
+
));
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* subscription.phase.deleted
|
|
507
|
+
*
|
|
508
|
+
* @remarks
|
|
509
|
+
* Fired when a subscription phase is deleted. Doc-only for parsing.
|
|
510
|
+
*/
|
|
511
|
+
async postWebhookEventsSubscriptionPhaseDeleted(
|
|
512
|
+
options?: RequestOptions,
|
|
513
|
+
): Promise<models.WebhookDtoSubscriptionPhaseWebhookPayload> {
|
|
514
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPhaseDeleted(
|
|
515
|
+
this,
|
|
516
|
+
options,
|
|
517
|
+
));
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* subscription.phase.updated
|
|
522
|
+
*
|
|
523
|
+
* @remarks
|
|
524
|
+
* Fired when a subscription phase is updated. Doc-only for parsing.
|
|
525
|
+
*/
|
|
526
|
+
async postWebhookEventsSubscriptionPhaseUpdated(
|
|
527
|
+
options?: RequestOptions,
|
|
528
|
+
): Promise<models.WebhookDtoSubscriptionPhaseWebhookPayload> {
|
|
529
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPhaseUpdated(
|
|
530
|
+
this,
|
|
531
|
+
options,
|
|
532
|
+
));
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
/**
|
|
536
|
+
* subscription.renewal.due
|
|
537
|
+
*
|
|
538
|
+
* @remarks
|
|
539
|
+
* Fired when a subscription renewal is upcoming (cron-driven). Doc-only for parsing.
|
|
540
|
+
*/
|
|
541
|
+
async postWebhookEventsSubscriptionRenewalDue(
|
|
542
|
+
options?: RequestOptions,
|
|
543
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
544
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionRenewalDue(
|
|
545
|
+
this,
|
|
546
|
+
options,
|
|
547
|
+
));
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* subscription.resumed
|
|
552
|
+
*
|
|
553
|
+
* @remarks
|
|
554
|
+
* Fired when a paused subscription is resumed. Doc-only for parsing.
|
|
555
|
+
*/
|
|
556
|
+
async postWebhookEventsSubscriptionResumed(
|
|
557
|
+
options?: RequestOptions,
|
|
558
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
559
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionResumed(
|
|
560
|
+
this,
|
|
561
|
+
options,
|
|
562
|
+
));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* subscription.updated
|
|
567
|
+
*
|
|
568
|
+
* @remarks
|
|
569
|
+
* Fired when a subscription is updated (e.g. quantity, billing anchor, or metadata changes). Doc-only for parsing.
|
|
570
|
+
*/
|
|
571
|
+
async postWebhookEventsSubscriptionUpdated(
|
|
572
|
+
options?: RequestOptions,
|
|
573
|
+
): Promise<models.WebhookDtoSubscriptionWebhookPayload> {
|
|
574
|
+
return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionUpdated(
|
|
575
|
+
this,
|
|
576
|
+
options,
|
|
577
|
+
));
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* wallet.created
|
|
582
|
+
*
|
|
583
|
+
* @remarks
|
|
584
|
+
* Fired when a new wallet is created. Doc-only for parsing.
|
|
585
|
+
*/
|
|
586
|
+
async postWebhookEventsWalletCreated(
|
|
587
|
+
options?: RequestOptions,
|
|
588
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
589
|
+
return unwrapAsync(webhookEventsPostWebhookEventsWalletCreated(
|
|
590
|
+
this,
|
|
591
|
+
options,
|
|
592
|
+
));
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* wallet.credit_balance.dropped
|
|
597
|
+
*
|
|
598
|
+
* @remarks
|
|
599
|
+
* Fired when a wallet's credit balance drops below an alert threshold. Doc-only for parsing.
|
|
600
|
+
*/
|
|
601
|
+
async postWebhookEventsWalletCreditBalanceDropped(
|
|
602
|
+
options?: RequestOptions,
|
|
603
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
604
|
+
return unwrapAsync(webhookEventsPostWebhookEventsWalletCreditBalanceDropped(
|
|
605
|
+
this,
|
|
606
|
+
options,
|
|
607
|
+
));
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* wallet.credit_balance.recovered
|
|
612
|
+
*
|
|
613
|
+
* @remarks
|
|
614
|
+
* Fired when a wallet's credit balance recovers above an alert threshold. Doc-only for parsing.
|
|
615
|
+
*/
|
|
616
|
+
async postWebhookEventsWalletCreditBalanceRecovered(
|
|
617
|
+
options?: RequestOptions,
|
|
618
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
619
|
+
return unwrapAsync(
|
|
620
|
+
webhookEventsPostWebhookEventsWalletCreditBalanceRecovered(
|
|
621
|
+
this,
|
|
622
|
+
options,
|
|
623
|
+
),
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* wallet.ongoing_balance.dropped
|
|
629
|
+
*
|
|
630
|
+
* @remarks
|
|
631
|
+
* Fired when a wallet's ongoing balance drops below an alert threshold. Doc-only for parsing.
|
|
632
|
+
*/
|
|
633
|
+
async postWebhookEventsWalletOngoingBalanceDropped(
|
|
634
|
+
options?: RequestOptions,
|
|
635
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
636
|
+
return unwrapAsync(
|
|
637
|
+
webhookEventsPostWebhookEventsWalletOngoingBalanceDropped(
|
|
638
|
+
this,
|
|
639
|
+
options,
|
|
640
|
+
),
|
|
641
|
+
);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* wallet.ongoing_balance.recovered
|
|
646
|
+
*
|
|
647
|
+
* @remarks
|
|
648
|
+
* Fired when a wallet's ongoing balance recovers above an alert threshold. Doc-only for parsing.
|
|
649
|
+
*/
|
|
650
|
+
async postWebhookEventsWalletOngoingBalanceRecovered(
|
|
651
|
+
options?: RequestOptions,
|
|
652
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
653
|
+
return unwrapAsync(
|
|
654
|
+
webhookEventsPostWebhookEventsWalletOngoingBalanceRecovered(
|
|
655
|
+
this,
|
|
656
|
+
options,
|
|
657
|
+
),
|
|
658
|
+
);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* wallet.terminated
|
|
663
|
+
*
|
|
664
|
+
* @remarks
|
|
665
|
+
* Fired when a wallet is terminated. Doc-only for parsing.
|
|
666
|
+
*/
|
|
667
|
+
async postWebhookEventsWalletTerminated(
|
|
668
|
+
options?: RequestOptions,
|
|
669
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
670
|
+
return unwrapAsync(webhookEventsPostWebhookEventsWalletTerminated(
|
|
671
|
+
this,
|
|
672
|
+
options,
|
|
673
|
+
));
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* wallet.transaction.created
|
|
678
|
+
*
|
|
679
|
+
* @remarks
|
|
680
|
+
* Fired when a new wallet transaction is created (top-up, deduction, etc.). Doc-only for parsing.
|
|
681
|
+
*/
|
|
682
|
+
async postWebhookEventsWalletTransactionCreated(
|
|
683
|
+
options?: RequestOptions,
|
|
684
|
+
): Promise<models.WebhookDtoTransactionWebhookPayload> {
|
|
685
|
+
return unwrapAsync(webhookEventsPostWebhookEventsWalletTransactionCreated(
|
|
686
|
+
this,
|
|
687
|
+
options,
|
|
688
|
+
));
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* wallet.updated
|
|
693
|
+
*
|
|
694
|
+
* @remarks
|
|
695
|
+
* Fired when a wallet is updated. Doc-only for parsing.
|
|
696
|
+
*/
|
|
697
|
+
async postWebhookEventsWalletUpdated(
|
|
698
|
+
options?: RequestOptions,
|
|
699
|
+
): Promise<models.WebhookDtoWalletWebhookPayload> {
|
|
700
|
+
return unwrapAsync(webhookEventsPostWebhookEventsWalletUpdated(
|
|
701
|
+
this,
|
|
702
|
+
options,
|
|
703
|
+
));
|
|
704
|
+
}
|
|
705
|
+
}
|