@flexprice/sdk 2.0.10 → 2.0.12
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/webhook-event-name.md +17 -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 +14 -8
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +14 -8
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts +22 -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 +30 -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 +13 -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 +22 -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 +13 -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 +23 -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 +16 -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 +22 -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 +13 -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 +22 -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 +13 -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 +22 -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 +13 -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 +22 -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 +13 -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 +22 -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 +13 -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 +22 -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 +13 -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 +22 -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 +15 -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 +24 -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 +20 -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 +26 -0
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js.map +1 -0
- package/esm/sdk/models/webhook-event-name.d.ts +51 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -0
- package/esm/sdk/models/webhook-event-name.js +52 -0
- package/esm/sdk/models/webhook-event-name.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 +14 -8
- package/src/sdk/models/webhook-dto-alert-webhook-payload.ts +70 -0
- package/src/sdk/models/webhook-dto-communication-webhook-payload.ts +50 -0
- package/src/sdk/models/webhook-dto-credit-note-webhook-payload.ts +51 -0
- package/src/sdk/models/webhook-dto-customer-webhook-payload.ts +52 -0
- package/src/sdk/models/webhook-dto-entitlement-webhook-payload.ts +50 -0
- package/src/sdk/models/webhook-dto-feature-webhook-payload.ts +49 -0
- package/src/sdk/models/webhook-dto-invoice-webhook-payload.ts +49 -0
- package/src/sdk/models/webhook-dto-payment-webhook-payload.ts +49 -0
- package/src/sdk/models/webhook-dto-subscription-phase-webhook-payload.ts +53 -0
- package/src/sdk/models/webhook-dto-subscription-webhook-payload.ts +50 -0
- package/src/sdk/models/webhook-dto-transaction-webhook-payload.ts +56 -0
- package/src/sdk/models/webhook-dto-wallet-alert-info.ts +54 -0
- package/src/sdk/models/webhook-dto-wallet-webhook-payload.ts +64 -0
- package/src/sdk/models/webhook-event-name.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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-chargebee-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-chargebee-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAOA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-chargebee-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-chargebee-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAC5C,MAAqB,EACrB,QAAgB,EAChB,aAAqB,EACrB,OAAwB,EAaxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,QAAQ,EACR,aAAa,EACb,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAqB,EACrB,QAAgB,EAChB,aAAqB,EACrB,OAAwB,EAgBxB;IACA,MAAM,KAAK,GAAyC;QAClD,QAAQ,EAAE,QAAQ;QAClB,aAAa,EAAE,aAAa;KAC7B,CAAC;IAEF,MAAM,MAAM,GAAG,SAAS,CACtB,KAAK,EACL,CAAC,KAAK,EAAE,EA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EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAC1C,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,EACzB,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FlexpriceCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle HubSpot webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the HubSpot webhook endpoint URL. Receives deal and customer events (e.g. deal closed won) to create or update customers in FlexPrice.
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandleHubspotWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, xHubSpotSignatureV3: string, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-hubspot-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-hubspot-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-hubspot-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,mBAAmB,EAAE,MAAM,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { compactMap } from "../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.js";
|
|
9
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
-
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import * as models from "../sdk/models/index.js";
|
|
12
|
-
import { APIPromise } from "../types/async.js";
|
|
13
|
-
/**
|
|
14
|
-
* Handle HubSpot webhook events
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* Use as the HubSpot webhook endpoint URL. Receives deal and customer events (e.g. deal closed won) to create or update customers in FlexPrice.
|
|
18
|
-
*/
|
|
19
|
-
export function webhooksHandleHubspotWebhook(client, tenantId, environmentId, xHubSpotSignatureV3, options) {
|
|
20
|
-
return new APIPromise($do(client, tenantId, environmentId, xHubSpotSignatureV3, options));
|
|
21
|
-
}
|
|
22
|
-
async function $do(client, tenantId, environmentId, xHubSpotSignatureV3, options) {
|
|
23
|
-
const input = {
|
|
24
|
-
tenantId: tenantId,
|
|
25
|
-
environmentId: environmentId,
|
|
26
|
-
xHubSpotSignatureV3: xHubSpotSignatureV3,
|
|
27
|
-
};
|
|
28
|
-
const parsed = safeParse(input, (value) => z.parse(models.HandleHubspotWebhookRequest$outboundSchema, value), "Input validation failed");
|
|
29
|
-
if (!parsed.ok) {
|
|
30
|
-
return [parsed, { status: "invalid" }];
|
|
31
|
-
}
|
|
32
|
-
const payload = parsed.value;
|
|
33
|
-
const body = null;
|
|
34
|
-
const pathParams = {
|
|
35
|
-
environment_id: encodeSimple("environment_id", payload.environment_id, {
|
|
36
|
-
explode: false,
|
|
37
|
-
charEncoding: "percent",
|
|
38
|
-
}),
|
|
39
|
-
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
40
|
-
explode: false,
|
|
41
|
-
charEncoding: "percent",
|
|
42
|
-
}),
|
|
43
|
-
};
|
|
44
|
-
const path = pathToFunc("/webhooks/hubspot/{tenant_id}/{environment_id}")(pathParams);
|
|
45
|
-
const headers = new Headers(compactMap({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
"X-HubSpot-Signature-v3": encodeSimple("X-HubSpot-Signature-v3", payload["X-HubSpot-Signature-v3"], { explode: false, charEncoding: "none" }),
|
|
48
|
-
}));
|
|
49
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
50
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
51
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
52
|
-
const context = {
|
|
53
|
-
options: client._options,
|
|
54
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
55
|
-
operationID: "handleHubspotWebhook",
|
|
56
|
-
oAuth2Scopes: null,
|
|
57
|
-
resolvedSecurity: requestSecurity,
|
|
58
|
-
securitySource: client._options.apiKeyAuth,
|
|
59
|
-
retryConfig: options?.retries
|
|
60
|
-
|| client._options.retryConfig
|
|
61
|
-
|| { strategy: "none" },
|
|
62
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
63
|
-
};
|
|
64
|
-
const requestRes = client._createRequest(context, {
|
|
65
|
-
security: requestSecurity,
|
|
66
|
-
method: "POST",
|
|
67
|
-
baseURL: options?.serverURL,
|
|
68
|
-
path: path,
|
|
69
|
-
headers: headers,
|
|
70
|
-
body: body,
|
|
71
|
-
userAgent: client._options.userAgent,
|
|
72
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
73
|
-
}, options);
|
|
74
|
-
if (!requestRes.ok) {
|
|
75
|
-
return [requestRes, { status: "invalid" }];
|
|
76
|
-
}
|
|
77
|
-
const req = requestRes.value;
|
|
78
|
-
const doResult = await client._do(req, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["4XX", "5XX"],
|
|
81
|
-
retryConfig: context.retryConfig,
|
|
82
|
-
retryCodes: context.retryCodes,
|
|
83
|
-
});
|
|
84
|
-
if (!doResult.ok) {
|
|
85
|
-
return [doResult, { status: "request-error", request: req }];
|
|
86
|
-
}
|
|
87
|
-
const response = doResult.value;
|
|
88
|
-
const [result] = await M.match(M.json(200, z.record(z.string(), z.any())), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
89
|
-
if (!result.ok) {
|
|
90
|
-
return [result, { status: "complete", request: req, response }];
|
|
91
|
-
}
|
|
92
|
-
return [result, { status: "complete", request: req, response }];
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=webhooks-handle-hubspot-webhook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-hubspot-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-hubspot-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AA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AAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FlexpriceCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle Moyasar webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the Moyasar webhook endpoint URL. Receives payment events from Moyasar to update payment status in FlexPrice.
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandleMoyasarWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, xMoyasarSignature?: string | undefined, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-moyasar-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-moyasar-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-moyasar-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-moyasar-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-moyasar-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oB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MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FlexpriceCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle Nomod webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the Nomod webhook endpoint URL. Receives payment and invoice events from Nomod to keep FlexPrice in sync.
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandleNomodWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, xApiKey?: string | undefined, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-nomod-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-nomod-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-nomod-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-nomod-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-nomod-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO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,CAAC,CAAC,EACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FlexpriceCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle Paddle webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the Paddle webhook endpoint URL. Receives transaction.completed events from Paddle to update payment status in FlexPrice.
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandlePaddleWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, paddleSignature: string, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-paddle-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-paddle-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-paddle-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-paddle-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-paddle-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,K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AAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAC1C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FlexpriceCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle QuickBooks webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the QuickBooks webhook endpoint URL. Receives payment events from QuickBooks to sync payment status into FlexPrice.
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandleQuickbooksWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, intuitSignature?: string | undefined, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-quickbooks-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-quickbooks-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-quickbooks-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { compactMap } from "../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.js";
|
|
9
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
-
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import * as models from "../sdk/models/index.js";
|
|
12
|
-
import { APIPromise } from "../types/async.js";
|
|
13
|
-
/**
|
|
14
|
-
* Handle QuickBooks webhook events
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* Use as the QuickBooks webhook endpoint URL. Receives payment events from QuickBooks to sync payment status into FlexPrice.
|
|
18
|
-
*/
|
|
19
|
-
export function webhooksHandleQuickbooksWebhook(client, tenantId, environmentId, intuitSignature, options) {
|
|
20
|
-
return new APIPromise($do(client, tenantId, environmentId, intuitSignature, options));
|
|
21
|
-
}
|
|
22
|
-
async function $do(client, tenantId, environmentId, intuitSignature, options) {
|
|
23
|
-
const input = {
|
|
24
|
-
tenantId: tenantId,
|
|
25
|
-
environmentId: environmentId,
|
|
26
|
-
intuitSignature: intuitSignature,
|
|
27
|
-
};
|
|
28
|
-
const parsed = safeParse(input, (value) => z.parse(models.HandleQuickbooksWebhookRequest$outboundSchema, value), "Input validation failed");
|
|
29
|
-
if (!parsed.ok) {
|
|
30
|
-
return [parsed, { status: "invalid" }];
|
|
31
|
-
}
|
|
32
|
-
const payload = parsed.value;
|
|
33
|
-
const body = null;
|
|
34
|
-
const pathParams = {
|
|
35
|
-
environment_id: encodeSimple("environment_id", payload.environment_id, {
|
|
36
|
-
explode: false,
|
|
37
|
-
charEncoding: "percent",
|
|
38
|
-
}),
|
|
39
|
-
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
40
|
-
explode: false,
|
|
41
|
-
charEncoding: "percent",
|
|
42
|
-
}),
|
|
43
|
-
};
|
|
44
|
-
const path = pathToFunc("/webhooks/quickbooks/{tenant_id}/{environment_id}")(pathParams);
|
|
45
|
-
const headers = new Headers(compactMap({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
"intuit-signature": encodeSimple("intuit-signature", payload["intuit-signature"], { explode: false, charEncoding: "none" }),
|
|
48
|
-
}));
|
|
49
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
50
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
51
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
52
|
-
const context = {
|
|
53
|
-
options: client._options,
|
|
54
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
55
|
-
operationID: "handleQuickbooksWebhook",
|
|
56
|
-
oAuth2Scopes: null,
|
|
57
|
-
resolvedSecurity: requestSecurity,
|
|
58
|
-
securitySource: client._options.apiKeyAuth,
|
|
59
|
-
retryConfig: options?.retries
|
|
60
|
-
|| client._options.retryConfig
|
|
61
|
-
|| { strategy: "none" },
|
|
62
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
63
|
-
};
|
|
64
|
-
const requestRes = client._createRequest(context, {
|
|
65
|
-
security: requestSecurity,
|
|
66
|
-
method: "POST",
|
|
67
|
-
baseURL: options?.serverURL,
|
|
68
|
-
path: path,
|
|
69
|
-
headers: headers,
|
|
70
|
-
body: body,
|
|
71
|
-
userAgent: client._options.userAgent,
|
|
72
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
73
|
-
}, options);
|
|
74
|
-
if (!requestRes.ok) {
|
|
75
|
-
return [requestRes, { status: "invalid" }];
|
|
76
|
-
}
|
|
77
|
-
const req = requestRes.value;
|
|
78
|
-
const doResult = await client._do(req, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["400", "401", "4XX", "500", "5XX"],
|
|
81
|
-
retryConfig: context.retryConfig,
|
|
82
|
-
retryCodes: context.retryCodes,
|
|
83
|
-
});
|
|
84
|
-
if (!doResult.ok) {
|
|
85
|
-
return [doResult, { status: "request-error", request: req }];
|
|
86
|
-
}
|
|
87
|
-
const response = doResult.value;
|
|
88
|
-
const [result] = await M.match(M.json(200, z.record(z.string(), z.any())), M.fail([400, 401, "4XX"]), M.fail([500, "5XX"]))(response, req);
|
|
89
|
-
if (!result.ok) {
|
|
90
|
-
return [result, { status: "complete", request: req, response }];
|
|
91
|
-
}
|
|
92
|
-
return [result, { status: "complete", request: req, response }];
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=webhooks-handle-quickbooks-webhook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-quickbooks-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-quickbooks-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,OAAO,KAAK,MAAM,MAAM,wBAAwB,CAAC;AAGjD,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGxD;;;;;GAKG;AACH,MAAM,UAAU,+BAA+B,CAC7C,MAAqB,EACrB,QAAgB,EAChB,aAAqB,EACrB,eAAoC,EACpC,OAAwB,EAaxB;IACA,OAAO,IAAI,UAAU,CAAC,GAAG,CACvB,MAAM,EACN,QAAQ,EACR,aAAa,EACb,eAAe,EACf,OAAO,CACR,CAAC,CAAC;AAAA,CACJ;AAED,KAAK,UAAU,GAAG,CAChB,MAAqB,EACrB,QAAgB,EAChB,aAAqB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.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle Razorpay webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the Razorpay webhook endpoint URL. Receives payment capture and failure events to update invoice or payment status in FlexPrice.
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandleRazorpayWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, xRazorpaySignature: string, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-razorpay-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-razorpay-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-razorpay-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v4-mini";
|
|
5
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
-
import * as M from "../lib/matchers.js";
|
|
7
|
-
import { compactMap } from "../lib/primitives.js";
|
|
8
|
-
import { safeParse } from "../lib/schemas.js";
|
|
9
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
|
-
import { pathToFunc } from "../lib/url.js";
|
|
11
|
-
import * as models from "../sdk/models/index.js";
|
|
12
|
-
import { APIPromise } from "../types/async.js";
|
|
13
|
-
/**
|
|
14
|
-
* Handle Razorpay webhook events
|
|
15
|
-
*
|
|
16
|
-
* @remarks
|
|
17
|
-
* Use as the Razorpay webhook endpoint URL. Receives payment capture and failure events to update invoice or payment status in FlexPrice.
|
|
18
|
-
*/
|
|
19
|
-
export function webhooksHandleRazorpayWebhook(client, tenantId, environmentId, xRazorpaySignature, options) {
|
|
20
|
-
return new APIPromise($do(client, tenantId, environmentId, xRazorpaySignature, options));
|
|
21
|
-
}
|
|
22
|
-
async function $do(client, tenantId, environmentId, xRazorpaySignature, options) {
|
|
23
|
-
const input = {
|
|
24
|
-
tenantId: tenantId,
|
|
25
|
-
environmentId: environmentId,
|
|
26
|
-
xRazorpaySignature: xRazorpaySignature,
|
|
27
|
-
};
|
|
28
|
-
const parsed = safeParse(input, (value) => z.parse(models.HandleRazorpayWebhookRequest$outboundSchema, value), "Input validation failed");
|
|
29
|
-
if (!parsed.ok) {
|
|
30
|
-
return [parsed, { status: "invalid" }];
|
|
31
|
-
}
|
|
32
|
-
const payload = parsed.value;
|
|
33
|
-
const body = null;
|
|
34
|
-
const pathParams = {
|
|
35
|
-
environment_id: encodeSimple("environment_id", payload.environment_id, {
|
|
36
|
-
explode: false,
|
|
37
|
-
charEncoding: "percent",
|
|
38
|
-
}),
|
|
39
|
-
tenant_id: encodeSimple("tenant_id", payload.tenant_id, {
|
|
40
|
-
explode: false,
|
|
41
|
-
charEncoding: "percent",
|
|
42
|
-
}),
|
|
43
|
-
};
|
|
44
|
-
const path = pathToFunc("/webhooks/razorpay/{tenant_id}/{environment_id}")(pathParams);
|
|
45
|
-
const headers = new Headers(compactMap({
|
|
46
|
-
Accept: "application/json",
|
|
47
|
-
"X-Razorpay-Signature": encodeSimple("X-Razorpay-Signature", payload["X-Razorpay-Signature"], { explode: false, charEncoding: "none" }),
|
|
48
|
-
}));
|
|
49
|
-
const secConfig = await extractSecurity(client._options.apiKeyAuth);
|
|
50
|
-
const securityInput = secConfig == null ? {} : { apiKeyAuth: secConfig };
|
|
51
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
52
|
-
const context = {
|
|
53
|
-
options: client._options,
|
|
54
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
55
|
-
operationID: "handleRazorpayWebhook",
|
|
56
|
-
oAuth2Scopes: null,
|
|
57
|
-
resolvedSecurity: requestSecurity,
|
|
58
|
-
securitySource: client._options.apiKeyAuth,
|
|
59
|
-
retryConfig: options?.retries
|
|
60
|
-
|| client._options.retryConfig
|
|
61
|
-
|| { strategy: "none" },
|
|
62
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
63
|
-
};
|
|
64
|
-
const requestRes = client._createRequest(context, {
|
|
65
|
-
security: requestSecurity,
|
|
66
|
-
method: "POST",
|
|
67
|
-
baseURL: options?.serverURL,
|
|
68
|
-
path: path,
|
|
69
|
-
headers: headers,
|
|
70
|
-
body: body,
|
|
71
|
-
userAgent: client._options.userAgent,
|
|
72
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
73
|
-
}, options);
|
|
74
|
-
if (!requestRes.ok) {
|
|
75
|
-
return [requestRes, { status: "invalid" }];
|
|
76
|
-
}
|
|
77
|
-
const req = requestRes.value;
|
|
78
|
-
const doResult = await client._do(req, {
|
|
79
|
-
context,
|
|
80
|
-
errorCodes: ["4XX", "5XX"],
|
|
81
|
-
retryConfig: context.retryConfig,
|
|
82
|
-
retryCodes: context.retryCodes,
|
|
83
|
-
});
|
|
84
|
-
if (!doResult.ok) {
|
|
85
|
-
return [doResult, { status: "request-error", request: req }];
|
|
86
|
-
}
|
|
87
|
-
const response = doResult.value;
|
|
88
|
-
const [result] = await M.match(M.json(200, z.record(z.string(), z.any())), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
89
|
-
if (!result.ok) {
|
|
90
|
-
return [result, { status: "complete", request: req, response }];
|
|
91
|
-
}
|
|
92
|
-
return [result, { status: "complete", request: req, response }];
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=webhooks-handle-razorpay-webhook.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-razorpay-webhook.js","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-razorpay-webhook.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,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AC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,EAC1C,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FlexpriceCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { FlexPriceError } from "../sdk/models/flex-price-error.js";
|
|
4
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/http-client-errors.js";
|
|
5
|
-
import { ResponseValidationError } from "../sdk/models/response-validation-error.js";
|
|
6
|
-
import { SDKValidationError } from "../sdk/models/sdk-validation-error.js";
|
|
7
|
-
import { APIPromise } from "../types/async.js";
|
|
8
|
-
import { Result } from "../types/fp.js";
|
|
9
|
-
/**
|
|
10
|
-
* Handle Stripe webhook events
|
|
11
|
-
*
|
|
12
|
-
* @remarks
|
|
13
|
-
* Use as the Stripe webhook endpoint URL. Receives payment and customer events from Stripe to keep FlexPrice in sync (e.g. payment succeeded, customer created).
|
|
14
|
-
*/
|
|
15
|
-
export declare function webhooksHandleStripeWebhook(client: FlexpriceCore, tenantId: string, environmentId: string, stripeSignature: string, options?: RequestOptions): APIPromise<Result<{
|
|
16
|
-
[k: string]: any;
|
|
17
|
-
}, FlexPriceError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
-
//# sourceMappingURL=webhooks-handle-stripe-webhook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-handle-stripe-webhook.d.ts","sourceRoot":"","sources":["../../src/funcs/webhooks-handle-stripe-webhook.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAK3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClB,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAQA"}
|