/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { webhookEventsPostWebhookEventsCheckoutSessionCompleted } from "../funcs/webhook-events-post-webhook-events-checkout-session-completed.js"; import { webhookEventsPostWebhookEventsCheckoutSessionExpired } from "../funcs/webhook-events-post-webhook-events-checkout-session-expired.js"; import { webhookEventsPostWebhookEventsCheckoutSessionFailed } from "../funcs/webhook-events-post-webhook-events-checkout-session-failed.js"; import { webhookEventsPostWebhookEventsCheckoutSessionInitiated } from "../funcs/webhook-events-post-webhook-events-checkout-session-initiated.js"; import { webhookEventsPostWebhookEventsCreditNoteCreated } from "../funcs/webhook-events-post-webhook-events-credit-note-created.js"; import { webhookEventsPostWebhookEventsCreditNoteUpdated } from "../funcs/webhook-events-post-webhook-events-credit-note-updated.js"; import { webhookEventsPostWebhookEventsCustomerCreated } from "../funcs/webhook-events-post-webhook-events-customer-created.js"; import { webhookEventsPostWebhookEventsCustomerDeleted } from "../funcs/webhook-events-post-webhook-events-customer-deleted.js"; import { webhookEventsPostWebhookEventsCustomerUpdated } from "../funcs/webhook-events-post-webhook-events-customer-updated.js"; import { webhookEventsPostWebhookEventsEntitlementCreated } from "../funcs/webhook-events-post-webhook-events-entitlement-created.js"; import { webhookEventsPostWebhookEventsEntitlementDeleted } from "../funcs/webhook-events-post-webhook-events-entitlement-deleted.js"; import { webhookEventsPostWebhookEventsEntitlementUpdated } from "../funcs/webhook-events-post-webhook-events-entitlement-updated.js"; import { webhookEventsPostWebhookEventsEventRejected } from "../funcs/webhook-events-post-webhook-events-event-rejected.js"; import { webhookEventsPostWebhookEventsFeatureCreated } from "../funcs/webhook-events-post-webhook-events-feature-created.js"; import { webhookEventsPostWebhookEventsFeatureDeleted } from "../funcs/webhook-events-post-webhook-events-feature-deleted.js"; import { webhookEventsPostWebhookEventsFeatureUpdated } from "../funcs/webhook-events-post-webhook-events-feature-updated.js"; import { webhookEventsPostWebhookEventsFeatureWalletBalanceAlert } from "../funcs/webhook-events-post-webhook-events-feature-wallet-balance-alert.js"; import { webhookEventsPostWebhookEventsInvoiceCommunicationTriggered } from "../funcs/webhook-events-post-webhook-events-invoice-communication-triggered.js"; import { webhookEventsPostWebhookEventsInvoiceCreateDrafted } from "../funcs/webhook-events-post-webhook-events-invoice-create-drafted.js"; import { webhookEventsPostWebhookEventsInvoicePaymentOverdue } from "../funcs/webhook-events-post-webhook-events-invoice-payment-overdue.js"; import { webhookEventsPostWebhookEventsInvoiceUpdateFinalized } from "../funcs/webhook-events-post-webhook-events-invoice-update-finalized.js"; import { webhookEventsPostWebhookEventsInvoiceUpdatePayment } from "../funcs/webhook-events-post-webhook-events-invoice-update-payment.js"; import { webhookEventsPostWebhookEventsInvoiceUpdateVoided } from "../funcs/webhook-events-post-webhook-events-invoice-update-voided.js"; import { webhookEventsPostWebhookEventsInvoiceUpdate } from "../funcs/webhook-events-post-webhook-events-invoice-update.js"; import { webhookEventsPostWebhookEventsPaymentCreated } from "../funcs/webhook-events-post-webhook-events-payment-created.js"; import { webhookEventsPostWebhookEventsPaymentFailed } from "../funcs/webhook-events-post-webhook-events-payment-failed.js"; import { webhookEventsPostWebhookEventsPaymentPending } from "../funcs/webhook-events-post-webhook-events-payment-pending.js"; import { webhookEventsPostWebhookEventsPaymentSuccess } from "../funcs/webhook-events-post-webhook-events-payment-success.js"; import { webhookEventsPostWebhookEventsPaymentUpdated } from "../funcs/webhook-events-post-webhook-events-payment-updated.js"; import { webhookEventsPostWebhookEventsSubscriptionActivated } from "../funcs/webhook-events-post-webhook-events-subscription-activated.js"; import { webhookEventsPostWebhookEventsSubscriptionCancelled } from "../funcs/webhook-events-post-webhook-events-subscription-cancelled.js"; import { webhookEventsPostWebhookEventsSubscriptionCreated } from "../funcs/webhook-events-post-webhook-events-subscription-created.js"; import { webhookEventsPostWebhookEventsSubscriptionDraftCreated } from "../funcs/webhook-events-post-webhook-events-subscription-draft-created.js"; import { webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdReached } from "../funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-reached.js"; import { webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdRecovered } from "../funcs/webhook-events-post-webhook-events-subscription-group-spend-threshold-recovered.js"; import { webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdReached } from "../funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-reached.js"; import { webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdRecovered } from "../funcs/webhook-events-post-webhook-events-subscription-line-item-spend-threshold-recovered.js"; import { webhookEventsPostWebhookEventsSubscriptionPaused } from "../funcs/webhook-events-post-webhook-events-subscription-paused.js"; import { webhookEventsPostWebhookEventsSubscriptionPhaseCreated } from "../funcs/webhook-events-post-webhook-events-subscription-phase-created.js"; import { webhookEventsPostWebhookEventsSubscriptionPhaseDeleted } from "../funcs/webhook-events-post-webhook-events-subscription-phase-deleted.js"; import { webhookEventsPostWebhookEventsSubscriptionPhaseUpdated } from "../funcs/webhook-events-post-webhook-events-subscription-phase-updated.js"; import { webhookEventsPostWebhookEventsSubscriptionPlanChanged } from "../funcs/webhook-events-post-webhook-events-subscription-plan-changed.js"; import { webhookEventsPostWebhookEventsSubscriptionRenewalDue } from "../funcs/webhook-events-post-webhook-events-subscription-renewal-due.js"; import { webhookEventsPostWebhookEventsSubscriptionResumed } from "../funcs/webhook-events-post-webhook-events-subscription-resumed.js"; import { webhookEventsPostWebhookEventsSubscriptionSpendThresholdReached } from "../funcs/webhook-events-post-webhook-events-subscription-spend-threshold-reached.js"; import { webhookEventsPostWebhookEventsSubscriptionSpendThresholdRecovered } from "../funcs/webhook-events-post-webhook-events-subscription-spend-threshold-recovered.js"; import { webhookEventsPostWebhookEventsSubscriptionUpdated } from "../funcs/webhook-events-post-webhook-events-subscription-updated.js"; import { webhookEventsPostWebhookEventsWalletCreated } from "../funcs/webhook-events-post-webhook-events-wallet-created.js"; import { webhookEventsPostWebhookEventsWalletCreditBalanceDropped } from "../funcs/webhook-events-post-webhook-events-wallet-credit-balance-dropped.js"; import { webhookEventsPostWebhookEventsWalletCreditBalanceRecovered } from "../funcs/webhook-events-post-webhook-events-wallet-credit-balance-recovered.js"; import { webhookEventsPostWebhookEventsWalletOngoingBalanceDropped } from "../funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-dropped.js"; import { webhookEventsPostWebhookEventsWalletOngoingBalanceRecovered } from "../funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-recovered.js"; import { webhookEventsPostWebhookEventsWalletOngoingBalanceUpdated } from "../funcs/webhook-events-post-webhook-events-wallet-ongoing-balance-updated.js"; import { webhookEventsPostWebhookEventsWalletTerminated } from "../funcs/webhook-events-post-webhook-events-wallet-terminated.js"; import { webhookEventsPostWebhookEventsWalletTransactionCreated } from "../funcs/webhook-events-post-webhook-events-wallet-transaction-created.js"; import { webhookEventsPostWebhookEventsWalletTransactionUpdated } from "../funcs/webhook-events-post-webhook-events-wallet-transaction-updated.js"; import { webhookEventsPostWebhookEventsWalletUpdated } from "../funcs/webhook-events-post-webhook-events-wallet-updated.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import { unwrapAsync } from "../types/fp.js"; import * as models from "./models/index.js"; export class WebhookEvents extends ClientSDK { /** * checkout.session.completed * * @remarks * Fired when payment is confirmed; the subscription is now active and the invoice is finalized. Doc-only for parsing. */ async postWebhookEventsCheckoutSessionCompleted( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCheckoutSessionCompleted( this, options, )); } /** * checkout.session.expired * * @remarks * Fired when a Checkout Session times out without payment; draft records are cleaned up. Doc-only for parsing. */ async postWebhookEventsCheckoutSessionExpired( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCheckoutSessionExpired( this, options, )); } /** * checkout.session.failed * * @remarks * Fired when payment fails or the provider cancels the payment link. Doc-only for parsing. */ async postWebhookEventsCheckoutSessionFailed( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCheckoutSessionFailed( this, options, )); } /** * checkout.session.initiated * * @remarks * Fired when a Checkout Session is created and a payment URL is returned to the customer. Doc-only for parsing. */ async postWebhookEventsCheckoutSessionInitiated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCheckoutSessionInitiated( this, options, )); } /** * credit_note.created * * @remarks * Fired when a new credit note is created. Doc-only for parsing. */ async postWebhookEventsCreditNoteCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCreditNoteCreated( this, options, )); } /** * credit_note.updated * * @remarks * Fired when a credit note is updated. Doc-only for parsing. */ async postWebhookEventsCreditNoteUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCreditNoteUpdated( this, options, )); } /** * customer.created * * @remarks * Fired when a new customer is created. Doc-only for parsing. */ async postWebhookEventsCustomerCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCustomerCreated( this, options, )); } /** * customer.deleted * * @remarks * Fired when a customer is deleted. Doc-only for parsing. */ async postWebhookEventsCustomerDeleted( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCustomerDeleted( this, options, )); } /** * customer.updated * * @remarks * Fired when a customer is updated. Doc-only for parsing. */ async postWebhookEventsCustomerUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsCustomerUpdated( this, options, )); } /** * entitlement.created * * @remarks * Fired when a new entitlement is created. Doc-only for parsing. */ async postWebhookEventsEntitlementCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsEntitlementCreated( this, options, )); } /** * entitlement.deleted * * @remarks * Fired when an entitlement is deleted. Doc-only for parsing. */ async postWebhookEventsEntitlementDeleted( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsEntitlementDeleted( this, options, )); } /** * entitlement.updated * * @remarks * Fired when an entitlement is updated. Doc-only for parsing. */ async postWebhookEventsEntitlementUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsEntitlementUpdated( this, options, )); } /** * event.rejected * * @remarks * Fired when an ingested usage event produces no meter usage — either no meter is registered for its event name, or meters exist for the name but the event matched none of their filters. Throttled to at most once per configured window per event name. Doc-only for parsing. */ async postWebhookEventsEventRejected( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsEventRejected( this, options, )); } /** * feature.created * * @remarks * Fired when a new feature is created. Doc-only for parsing. */ async postWebhookEventsFeatureCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsFeatureCreated( this, options, )); } /** * feature.deleted * * @remarks * Fired when a feature is deleted. Doc-only for parsing. */ async postWebhookEventsFeatureDeleted( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsFeatureDeleted( this, options, )); } /** * feature.updated * * @remarks * Fired when a feature is updated. Doc-only for parsing. */ async postWebhookEventsFeatureUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsFeatureUpdated( this, options, )); } /** * feature.wallet_balance.alert * * @remarks * Fired when a feature's associated wallet balance crosses an alert threshold. Doc-only for parsing. */ async postWebhookEventsFeatureWalletBalanceAlert( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsFeatureWalletBalanceAlert( this, options, )); } /** * invoice.communication.triggered * * @remarks * Fired when an invoice communication (e.g. email notification) is triggered. Doc-only for parsing. */ async postWebhookEventsInvoiceCommunicationTriggered( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsInvoiceCommunicationTriggered( this, options, ), ); } /** * invoice.create.drafted * * @remarks * Fired when a new invoice is created in draft state. Doc-only for parsing. */ async postWebhookEventsInvoiceCreateDrafted( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsInvoiceCreateDrafted( this, options, )); } /** * invoice.payment.overdue * * @remarks * Fired when an invoice payment is overdue past the due date. Doc-only for parsing. */ async postWebhookEventsInvoicePaymentOverdue( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsInvoicePaymentOverdue( this, options, )); } /** * invoice.update * * @remarks * Fired when an invoice is updated. Doc-only for parsing. */ async postWebhookEventsInvoiceUpdate( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdate( this, options, )); } /** * invoice.update.finalized * * @remarks * Fired when an invoice is finalized and locked for payment. Doc-only for parsing. */ async postWebhookEventsInvoiceUpdateFinalized( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdateFinalized( this, options, )); } /** * invoice.update.payment * * @remarks * Fired when an invoice payment status changes. Doc-only for parsing. */ async postWebhookEventsInvoiceUpdatePayment( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdatePayment( this, options, )); } /** * invoice.update.voided * * @remarks * Fired when an invoice is voided (e.g. order cancelled or duplicate). Doc-only for parsing. */ async postWebhookEventsInvoiceUpdateVoided( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsInvoiceUpdateVoided( this, options, )); } /** * payment.created * * @remarks * Fired when a new payment is created. Doc-only for parsing. */ async postWebhookEventsPaymentCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsPaymentCreated( this, options, )); } /** * payment.failed * * @remarks * Fired when a payment fails. Doc-only for parsing. */ async postWebhookEventsPaymentFailed( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsPaymentFailed( this, options, )); } /** * payment.pending * * @remarks * Fired when a payment is pending processing. Doc-only for parsing. */ async postWebhookEventsPaymentPending( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsPaymentPending( this, options, )); } /** * payment.success * * @remarks * Fired when a payment succeeds. Doc-only for parsing. */ async postWebhookEventsPaymentSuccess( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsPaymentSuccess( this, options, )); } /** * payment.updated * * @remarks * Fired when a payment is updated. Doc-only for parsing. */ async postWebhookEventsPaymentUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsPaymentUpdated( this, options, )); } /** * subscription.activated * * @remarks * Fired when a draft subscription is activated. Doc-only for parsing. */ async postWebhookEventsSubscriptionActivated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionActivated( this, options, )); } /** * subscription.cancelled * * @remarks * Fired when a subscription is cancelled (immediately or end-of-period). Doc-only for parsing. */ async postWebhookEventsSubscriptionCancelled( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionCancelled( this, options, )); } /** * subscription.created * * @remarks * Fired when a new subscription is created. Doc-only for parsing. */ async postWebhookEventsSubscriptionCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionCreated( this, options, )); } /** * subscription.draft.created * * @remarks * Fired when a new draft subscription is created (not yet activated). Doc-only for parsing. */ async postWebhookEventsSubscriptionDraftCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionDraftCreated( this, options, )); } /** * subscription.group_spend.threshold_reached * * @remarks * Fired when a feature group's total metered spend on a subscription crosses an alert threshold (critical, warning, or info) for the current billing period. Doc-only for parsing. */ async postWebhookEventsSubscriptionGroupSpendThresholdReached( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdReached( this, options, ), ); } /** * subscription.group_spend.threshold_recovered * * @remarks * Fired when a feature group's total metered spend on a subscription falls back below all configured alert thresholds for the current billing period. Doc-only for parsing. */ async postWebhookEventsSubscriptionGroupSpendThresholdRecovered( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsSubscriptionGroupSpendThresholdRecovered( this, options, ), ); } /** * subscription.line_item_spend.threshold_reached * * @remarks * Fired when a subscription line item's metered spend crosses an alert threshold (critical, warning, or info) for the current billing period. Doc-only for parsing. */ async postWebhookEventsSubscriptionLineItemSpendThresholdReached( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdReached( this, options, ), ); } /** * subscription.line_item_spend.threshold_recovered * * @remarks * Fired when a subscription line item's metered spend falls back below all configured alert thresholds for the current billing period. Doc-only for parsing. */ async postWebhookEventsSubscriptionLineItemSpendThresholdRecovered( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsSubscriptionLineItemSpendThresholdRecovered( this, options, ), ); } /** * subscription.paused * * @remarks * Fired when a subscription is paused. Doc-only for parsing. */ async postWebhookEventsSubscriptionPaused( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPaused( this, options, )); } /** * subscription.phase.created * * @remarks * Fired when a new subscription phase is created. Doc-only for parsing. */ async postWebhookEventsSubscriptionPhaseCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPhaseCreated( this, options, )); } /** * subscription.phase.deleted * * @remarks * Fired when a subscription phase is deleted. Doc-only for parsing. */ async postWebhookEventsSubscriptionPhaseDeleted( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPhaseDeleted( this, options, )); } /** * subscription.phase.updated * * @remarks * Fired when a subscription phase is updated. Doc-only for parsing. */ async postWebhookEventsSubscriptionPhaseUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPhaseUpdated( this, options, )); } /** * subscription.plan_changed * * @remarks * Fired when a subscription plan changes in place (id/anchor preserved; not cancelled+created). Doc-only for parsing. */ async postWebhookEventsSubscriptionPlanChanged( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionPlanChanged( this, options, )); } /** * subscription.renewal.due * * @remarks * Fired when a subscription renewal is upcoming (cron-driven). Doc-only for parsing. */ async postWebhookEventsSubscriptionRenewalDue( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionRenewalDue( this, options, )); } /** * subscription.resumed * * @remarks * Fired when a paused subscription is resumed. Doc-only for parsing. */ async postWebhookEventsSubscriptionResumed( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionResumed( this, options, )); } /** * subscription.spend.threshold_reached * * @remarks * Fired when a subscription's total metered spend crosses an alert threshold (critical, warning, or info) for the current billing period. Doc-only for parsing. */ async postWebhookEventsSubscriptionSpendThresholdReached( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsSubscriptionSpendThresholdReached( this, options, ), ); } /** * subscription.spend.threshold_recovered * * @remarks * Fired when a subscription's total metered spend falls back below all configured alert thresholds for the current billing period. Doc-only for parsing. */ async postWebhookEventsSubscriptionSpendThresholdRecovered( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsSubscriptionSpendThresholdRecovered( this, options, ), ); } /** * subscription.updated * * @remarks * Fired when a subscription is updated (e.g. quantity, billing anchor, or metadata changes). Doc-only for parsing. */ async postWebhookEventsSubscriptionUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsSubscriptionUpdated( this, options, )); } /** * wallet.created * * @remarks * Fired when a new wallet is created. Doc-only for parsing. */ async postWebhookEventsWalletCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsWalletCreated( this, options, )); } /** * wallet.credit_balance.dropped * * @remarks * Fired when a wallet's credit balance drops below an alert threshold. Doc-only for parsing. */ async postWebhookEventsWalletCreditBalanceDropped( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsWalletCreditBalanceDropped( this, options, )); } /** * wallet.credit_balance.recovered * * @remarks * Fired when a wallet's credit balance recovers above an alert threshold. Doc-only for parsing. */ async postWebhookEventsWalletCreditBalanceRecovered( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsWalletCreditBalanceRecovered( this, options, ), ); } /** * wallet.ongoing_balance.dropped * * @remarks * Fired when a wallet's ongoing balance drops below an alert threshold. Doc-only for parsing. */ async postWebhookEventsWalletOngoingBalanceDropped( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsWalletOngoingBalanceDropped( this, options, ), ); } /** * wallet.ongoing_balance.recovered * * @remarks * Fired when a wallet's ongoing balance recovers above an alert threshold. Doc-only for parsing. */ async postWebhookEventsWalletOngoingBalanceRecovered( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsWalletOngoingBalanceRecovered( this, options, ), ); } /** * wallet.ongoing_balance.updated * * @remarks * Fired when a wallet's ongoing (real-time) balance changes. Doc-only for parsing. */ async postWebhookEventsWalletOngoingBalanceUpdated( options?: RequestOptions, ): Promise { return unwrapAsync( webhookEventsPostWebhookEventsWalletOngoingBalanceUpdated( this, options, ), ); } /** * wallet.terminated * * @remarks * Fired when a wallet is terminated. Doc-only for parsing. */ async postWebhookEventsWalletTerminated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsWalletTerminated( this, options, )); } /** * wallet.transaction.created * * @remarks * Fired when a new wallet transaction is created (top-up, deduction, etc.). Doc-only for parsing. */ async postWebhookEventsWalletTransactionCreated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsWalletTransactionCreated( this, options, )); } /** * wallet.transaction.updated * * @remarks * Fired when an existing wallet transaction is updated (e.g. pending to completed). Doc-only for parsing. */ async postWebhookEventsWalletTransactionUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsWalletTransactionUpdated( this, options, )); } /** * wallet.updated * * @remarks * Fired when a wallet is updated. Doc-only for parsing. */ async postWebhookEventsWalletUpdated( options?: RequestOptions, ): Promise { return unwrapAsync(webhookEventsPostWebhookEventsWalletUpdated( this, options, )); } }