UNPKG

chargebee

Version:

A library for integrating with Chargebee.

1,334 lines (1,124 loc) 57.5 kB
///<reference path='./../core.d.ts'/> ///<reference path='./../index.d.ts'/> ///<reference path='./filter.d.ts'/> declare module 'chargebee' { export enum WebhookEventType { SubscriptionPauseScheduled = 'subscription_pause_scheduled', CustomerBusinessEntityChanged = 'customer_business_entity_changed', SubscriptionAdvanceInvoiceScheduleAdded = 'subscription_advance_invoice_schedule_added', GiftExpired = 'gift_expired', TaxWithheldDeleted = 'tax_withheld_deleted', UnbilledChargesDeleted = 'unbilled_charges_deleted', CouponUpdated = 'coupon_updated', OmnichannelSubscriptionItemReactivated = 'omnichannel_subscription_item_reactivated', OmnichannelSubscriptionItemRenewed = 'omnichannel_subscription_item_renewed', UnbilledChargesCreated = 'unbilled_charges_created', SubscriptionResumed = 'subscription_resumed', OmnichannelOneTimeOrderItemCancelled = 'omnichannel_one_time_order_item_cancelled', SubscriptionCancelled = 'subscription_cancelled', ItemEntitlementsRemoved = 'item_entitlements_removed', BusinessEntityCreated = 'business_entity_created', CouponSetUpdated = 'coupon_set_updated', DifferentialPriceUpdated = 'differential_price_updated', OmnichannelSubscriptionItemPaused = 'omnichannel_subscription_item_paused', EntitlementOverridesRemoved = 'entitlement_overrides_removed', SubscriptionActivatedWithBackdating = 'subscription_activated_with_backdating', SubscriptionTrialEndReminder = 'subscription_trial_end_reminder', SubscriptionShippingAddressUpdated = 'subscription_shipping_address_updated', VoucherCreateFailed = 'voucher_create_failed', GiftClaimed = 'gift_claimed', CustomerDeleted = 'customer_deleted', RefundInitiated = 'refund_initiated', InvoiceGeneratedWithBackdating = 'invoice_generated_with_backdating', OmnichannelTransactionCreated = 'omnichannel_transaction_created', AddUsagesReminder = 'add_usages_reminder', VoucherCreated = 'voucher_created', RuleUpdated = 'rule_updated', PaymentSchedulesCreated = 'payment_schedules_created', FeatureActivated = 'feature_activated', PaymentSourceLocallyDeleted = 'payment_source_locally_deleted', InvoiceGenerated = 'invoice_generated', VoucherExpired = 'voucher_expired', AuthorizationSucceeded = 'authorization_succeeded', GiftScheduled = 'gift_scheduled', SubscriptionChangesScheduled = 'subscription_changes_scheduled', SubscriptionChangedWithBackdating = 'subscription_changed_with_backdating', OmnichannelSubscriptionItemChanged = 'omnichannel_subscription_item_changed', GiftUnclaimed = 'gift_unclaimed', VirtualBankAccountAdded = 'virtual_bank_account_added', PaymentIntentCreated = 'payment_intent_created', CreditNoteCreatedWithBackdating = 'credit_note_created_with_backdating', ContractTermTerminated = 'contract_term_terminated', ItemFamilyUpdated = 'item_family_updated', OrderCreated = 'order_created', PriceVariantDeleted = 'price_variant_deleted', SubscriptionMovementFailed = 'subscription_movement_failed', CustomerMovedIn = 'customer_moved_in', SubscriptionAdvanceInvoiceScheduleUpdated = 'subscription_advance_invoice_schedule_updated', ItemDeleted = 'item_deleted', SubscriptionRampDrafted = 'subscription_ramp_drafted', DunningUpdated = 'dunning_updated', ItemEntitlementsUpdated = 'item_entitlements_updated', TokenConsumed = 'token_consumed', HierarchyDeleted = 'hierarchy_deleted', SubscriptionCancellationScheduled = 'subscription_cancellation_scheduled', SubscriptionRenewed = 'subscription_renewed', FeatureUpdated = 'feature_updated', FeatureDeleted = 'feature_deleted', ItemFamilyCreated = 'item_family_created', OmnichannelSubscriptionItemScheduledChangeRemoved = 'omnichannel_subscription_item_scheduled_change_removed', OmnichannelSubscriptionItemResumed = 'omnichannel_subscription_item_resumed', PurchaseCreated = 'purchase_created', EntitlementOverridesUpdated = 'entitlement_overrides_updated', ItemFamilyDeleted = 'item_family_deleted', SubscriptionResumptionScheduled = 'subscription_resumption_scheduled', FeatureReactivated = 'feature_reactivated', CouponCodesDeleted = 'coupon_codes_deleted', CardExpired = 'card_expired', CreditNoteUpdated = 'credit_note_updated', OmnichannelSubscriptionItemDowngraded = 'omnichannel_subscription_item_downgraded', PriceVariantUpdated = 'price_variant_updated', PromotionalCreditsDeducted = 'promotional_credits_deducted', SubscriptionRampApplied = 'subscription_ramp_applied', SubscriptionPaused = 'subscription_paused', OrderReadyToProcess = 'order_ready_to_process', FeatureCreated = 'feature_created', TransactionDeleted = 'transaction_deleted', CreditNoteCreated = 'credit_note_created', OmnichannelSubscriptionItemResubscribed = 'omnichannel_subscription_item_resubscribed', RecordPurchaseFailed = 'record_purchase_failed', ItemCreated = 'item_created', TransactionUpdated = 'transaction_updated', MrrUpdated = 'mrr_updated', UnbilledChargesInvoiced = 'unbilled_charges_invoiced', ItemPriceUpdated = 'item_price_updated', CouponCodesUpdated = 'coupon_codes_updated', VirtualBankAccountUpdated = 'virtual_bank_account_updated', ContractTermCreated = 'contract_term_created', SubscriptionChanged = 'subscription_changed', PaymentFailed = 'payment_failed', CreditNoteDeleted = 'credit_note_deleted', TaxWithheldRefunded = 'tax_withheld_refunded', ContractTermCompleted = 'contract_term_completed', PaymentSchedulesUpdated = 'payment_schedules_updated', OmnichannelSubscriptionItemExpired = 'omnichannel_subscription_item_expired', CardUpdated = 'card_updated', CustomerCreated = 'customer_created', SubscriptionRenewalReminder = 'subscription_renewal_reminder', OrderDelivered = 'order_delivered', OmnichannelSubscriptionItemCancellationScheduled = 'omnichannel_subscription_item_cancellation_scheduled', OmnichannelSubscriptionItemGracePeriodExpired = 'omnichannel_subscription_item_grace_period_expired', CouponCodesAdded = 'coupon_codes_added', GiftCancelled = 'gift_cancelled', OrderCancelled = 'order_cancelled', CouponDeleted = 'coupon_deleted', SubscriptionScheduledChangesRemoved = 'subscription_scheduled_changes_removed', PendingInvoiceCreated = 'pending_invoice_created', EntitlementOverridesAutoRemoved = 'entitlement_overrides_auto_removed', OmnichannelSubscriptionItemUpgraded = 'omnichannel_subscription_item_upgraded', SubscriptionBusinessEntityChanged = 'subscription_business_entity_changed', OmnichannelOneTimeOrderCreated = 'omnichannel_one_time_order_created', PaymentSourceDeleted = 'payment_source_deleted', OmnichannelSubscriptionItemCancelled = 'omnichannel_subscription_item_cancelled', QuoteDeleted = 'quote_deleted', InvoiceUpdated = 'invoice_updated', SubscriptionAdvanceInvoiceScheduleRemoved = 'subscription_advance_invoice_schedule_removed', CardDeleted = 'card_deleted', OrderReadyToShip = 'order_ready_to_ship', SubscriptionMovedOut = 'subscription_moved_out', PaymentScheduleSchemeCreated = 'payment_schedule_scheme_created', BusinessEntityUpdated = 'business_entity_updated', SubscriptionScheduledResumptionRemoved = 'subscription_scheduled_resumption_removed', PaymentInitiated = 'payment_initiated', FeatureArchived = 'feature_archived', SubscriptionReactivatedWithBackdating = 'subscription_reactivated_with_backdating', OmnichannelSubscriptionImported = 'omnichannel_subscription_imported', TokenExpired = 'token_expired', CardAdded = 'card_added', CouponCreated = 'coupon_created', RuleDeleted = 'rule_deleted', ItemPriceEntitlementsUpdated = 'item_price_entitlements_updated', ItemPriceDeleted = 'item_price_deleted', VirtualBankAccountDeleted = 'virtual_bank_account_deleted', PaymentScheduleSchemeDeleted = 'payment_schedule_scheme_deleted', SubscriptionCreated = 'subscription_created', SubscriptionEntitlementsCreated = 'subscription_entitlements_created', OrderReturned = 'order_returned', SubscriptionDeleted = 'subscription_deleted', PaymentSourceAdded = 'payment_source_added', SubscriptionMovedIn = 'subscription_moved_in', ItemPriceCreated = 'item_price_created', SubscriptionScheduledCancellationRemoved = 'subscription_scheduled_cancellation_removed', PaymentRefunded = 'payment_refunded', UsageFileIngested = 'usage_file_ingested', OmnichannelSubscriptionMovedIn = 'omnichannel_subscription_moved_in', DifferentialPriceCreated = 'differential_price_created', TransactionCreated = 'transaction_created', PaymentSucceeded = 'payment_succeeded', SubscriptionCanceledWithBackdating = 'subscription_canceled_with_backdating', UnbilledChargesVoided = 'unbilled_charges_voided', QuoteCreated = 'quote_created', CouponSetDeleted = 'coupon_set_deleted', AttachedItemCreated = 'attached_item_created', SalesOrderCreated = 'sales_order_created', CustomerChanged = 'customer_changed', SubscriptionStarted = 'subscription_started', SubscriptionActivated = 'subscription_activated', PaymentSourceExpiring = 'payment_source_expiring', SubscriptionReactivated = 'subscription_reactivated', OrderUpdated = 'order_updated', SubscriptionScheduledPauseRemoved = 'subscription_scheduled_pause_removed', SubscriptionCancellationReminder = 'subscription_cancellation_reminder', SubscriptionCreatedWithBackdating = 'subscription_created_with_backdating', SubscriptionRampCreated = 'subscription_ramp_created', OrderDeleted = 'order_deleted', OmnichannelSubscriptionItemPauseScheduled = 'omnichannel_subscription_item_pause_scheduled', GiftUpdated = 'gift_updated', SubscriptionTrialExtended = 'subscription_trial_extended', OmnichannelSubscriptionItemGracePeriodStarted = 'omnichannel_subscription_item_grace_period_started', CardExpiryReminder = 'card_expiry_reminder', TokenCreated = 'token_created', PromotionalCreditsAdded = 'promotional_credits_added', SubscriptionRampUpdated = 'subscription_ramp_updated', CustomerEntitlementsUpdated = 'customer_entitlements_updated', PaymentSourceExpired = 'payment_source_expired', CustomerMovedOut = 'customer_moved_out', SubscriptionEntitlementsUpdated = 'subscription_entitlements_updated', OmnichannelSubscriptionItemDunningExpired = 'omnichannel_subscription_item_dunning_expired', HierarchyCreated = 'hierarchy_created', AttachedItemDeleted = 'attached_item_deleted', OmnichannelSubscriptionItemScheduledCancellationRemoved = 'omnichannel_subscription_item_scheduled_cancellation_removed', ItemUpdated = 'item_updated', CouponSetCreated = 'coupon_set_created', PaymentIntentUpdated = 'payment_intent_updated', OrderResent = 'order_resent', OmnichannelSubscriptionCreated = 'omnichannel_subscription_created', TaxWithheldRecorded = 'tax_withheld_recorded', PriceVariantCreated = 'price_variant_created', DifferentialPriceDeleted = 'differential_price_deleted', SubscriptionItemsRenewed = 'subscription_items_renewed', RuleCreated = 'rule_created', ContractTermCancelled = 'contract_term_cancelled', ContractTermRenewed = 'contract_term_renewed', InvoiceDeleted = 'invoice_deleted', ItemPriceEntitlementsRemoved = 'item_price_entitlements_removed', SalesOrderUpdated = 'sales_order_updated', OmnichannelSubscriptionItemDunningStarted = 'omnichannel_subscription_item_dunning_started', OmnichannelSubscriptionItemChangeScheduled = 'omnichannel_subscription_item_change_scheduled', PendingInvoiceUpdated = 'pending_invoice_updated', QuoteUpdated = 'quote_updated', AttachedItemUpdated = 'attached_item_updated', PaymentSourceUpdated = 'payment_source_updated', BusinessEntityDeleted = 'business_entity_deleted', AuthorizationVoided = 'authorization_voided', SubscriptionRampDeleted = 'subscription_ramp_deleted', PlanDeleted = 'plan_deleted', AddonDeleted = 'addon_deleted', AddonUpdated = 'addon_updated', AddonCreated = 'addon_created', PlanCreated = 'plan_created', PlanUpdated = 'plan_updated', } /** * @deprecated Use WebhookEventType instead. */ export import WebhookContentType = WebhookEventType; export type WebhookContentMap = { [WebhookEventType.SubscriptionPauseScheduled]: SubscriptionPauseScheduledContent; [WebhookEventType.CustomerBusinessEntityChanged]: CustomerBusinessEntityChangedContent; [WebhookEventType.SubscriptionAdvanceInvoiceScheduleAdded]: SubscriptionAdvanceInvoiceScheduleAddedContent; [WebhookEventType.GiftExpired]: GiftExpiredContent; [WebhookEventType.TaxWithheldDeleted]: TaxWithheldDeletedContent; [WebhookEventType.UnbilledChargesDeleted]: UnbilledChargesDeletedContent; [WebhookEventType.CouponUpdated]: CouponUpdatedContent; [WebhookEventType.OmnichannelSubscriptionItemReactivated]: OmnichannelSubscriptionItemReactivatedContent; [WebhookEventType.OmnichannelSubscriptionItemRenewed]: OmnichannelSubscriptionItemRenewedContent; [WebhookEventType.UnbilledChargesCreated]: UnbilledChargesCreatedContent; [WebhookEventType.SubscriptionResumed]: SubscriptionResumedContent; [WebhookEventType.OmnichannelOneTimeOrderItemCancelled]: OmnichannelOneTimeOrderItemCancelledContent; [WebhookEventType.SubscriptionCancelled]: SubscriptionCancelledContent; [WebhookEventType.ItemEntitlementsRemoved]: ItemEntitlementsRemovedContent; [WebhookEventType.BusinessEntityCreated]: BusinessEntityCreatedContent; [WebhookEventType.CouponSetUpdated]: CouponSetUpdatedContent; [WebhookEventType.DifferentialPriceUpdated]: DifferentialPriceUpdatedContent; [WebhookEventType.OmnichannelSubscriptionItemPaused]: OmnichannelSubscriptionItemPausedContent; [WebhookEventType.EntitlementOverridesRemoved]: EntitlementOverridesRemovedContent; [WebhookEventType.SubscriptionActivatedWithBackdating]: SubscriptionActivatedWithBackdatingContent; [WebhookEventType.SubscriptionTrialEndReminder]: SubscriptionTrialEndReminderContent; [WebhookEventType.SubscriptionShippingAddressUpdated]: SubscriptionShippingAddressUpdatedContent; [WebhookEventType.VoucherCreateFailed]: VoucherCreateFailedContent; [WebhookEventType.GiftClaimed]: GiftClaimedContent; [WebhookEventType.CustomerDeleted]: CustomerDeletedContent; [WebhookEventType.RefundInitiated]: RefundInitiatedContent; [WebhookEventType.InvoiceGeneratedWithBackdating]: InvoiceGeneratedWithBackdatingContent; [WebhookEventType.OmnichannelTransactionCreated]: OmnichannelTransactionCreatedContent; [WebhookEventType.AddUsagesReminder]: AddUsagesReminderContent; [WebhookEventType.VoucherCreated]: VoucherCreatedContent; [WebhookEventType.RuleUpdated]: RuleUpdatedContent; [WebhookEventType.PaymentSchedulesCreated]: PaymentSchedulesCreatedContent; [WebhookEventType.FeatureActivated]: FeatureActivatedContent; [WebhookEventType.PaymentSourceLocallyDeleted]: PaymentSourceLocallyDeletedContent; [WebhookEventType.InvoiceGenerated]: InvoiceGeneratedContent; [WebhookEventType.VoucherExpired]: VoucherExpiredContent; [WebhookEventType.AuthorizationSucceeded]: AuthorizationSucceededContent; [WebhookEventType.GiftScheduled]: GiftScheduledContent; [WebhookEventType.SubscriptionChangesScheduled]: SubscriptionChangesScheduledContent; [WebhookEventType.SubscriptionChangedWithBackdating]: SubscriptionChangedWithBackdatingContent; [WebhookEventType.OmnichannelSubscriptionItemChanged]: OmnichannelSubscriptionItemChangedContent; [WebhookEventType.GiftUnclaimed]: GiftUnclaimedContent; [WebhookEventType.VirtualBankAccountAdded]: VirtualBankAccountAddedContent; [WebhookEventType.PaymentIntentCreated]: PaymentIntentCreatedContent; [WebhookEventType.CreditNoteCreatedWithBackdating]: CreditNoteCreatedWithBackdatingContent; [WebhookEventType.ContractTermTerminated]: ContractTermTerminatedContent; [WebhookEventType.ItemFamilyUpdated]: ItemFamilyUpdatedContent; [WebhookEventType.OrderCreated]: OrderCreatedContent; [WebhookEventType.PriceVariantDeleted]: PriceVariantDeletedContent; [WebhookEventType.SubscriptionMovementFailed]: SubscriptionMovementFailedContent; [WebhookEventType.CustomerMovedIn]: CustomerMovedInContent; [WebhookEventType.SubscriptionAdvanceInvoiceScheduleUpdated]: SubscriptionAdvanceInvoiceScheduleUpdatedContent; [WebhookEventType.ItemDeleted]: ItemDeletedContent; [WebhookEventType.SubscriptionRampDrafted]: SubscriptionRampDraftedContent; [WebhookEventType.DunningUpdated]: DunningUpdatedContent; [WebhookEventType.ItemEntitlementsUpdated]: ItemEntitlementsUpdatedContent; [WebhookEventType.TokenConsumed]: TokenConsumedContent; [WebhookEventType.HierarchyDeleted]: HierarchyDeletedContent; [WebhookEventType.SubscriptionCancellationScheduled]: SubscriptionCancellationScheduledContent; [WebhookEventType.SubscriptionRenewed]: SubscriptionRenewedContent; [WebhookEventType.FeatureUpdated]: FeatureUpdatedContent; [WebhookEventType.FeatureDeleted]: FeatureDeletedContent; [WebhookEventType.ItemFamilyCreated]: ItemFamilyCreatedContent; [WebhookEventType.OmnichannelSubscriptionItemScheduledChangeRemoved]: OmnichannelSubscriptionItemScheduledChangeRemovedContent; [WebhookEventType.OmnichannelSubscriptionItemResumed]: OmnichannelSubscriptionItemResumedContent; [WebhookEventType.PurchaseCreated]: PurchaseCreatedContent; [WebhookEventType.EntitlementOverridesUpdated]: EntitlementOverridesUpdatedContent; [WebhookEventType.ItemFamilyDeleted]: ItemFamilyDeletedContent; [WebhookEventType.SubscriptionResumptionScheduled]: SubscriptionResumptionScheduledContent; [WebhookEventType.FeatureReactivated]: FeatureReactivatedContent; [WebhookEventType.CouponCodesDeleted]: CouponCodesDeletedContent; [WebhookEventType.CardExpired]: CardExpiredContent; [WebhookEventType.CreditNoteUpdated]: CreditNoteUpdatedContent; [WebhookEventType.OmnichannelSubscriptionItemDowngraded]: OmnichannelSubscriptionItemDowngradedContent; [WebhookEventType.PriceVariantUpdated]: PriceVariantUpdatedContent; [WebhookEventType.PromotionalCreditsDeducted]: PromotionalCreditsDeductedContent; [WebhookEventType.SubscriptionRampApplied]: SubscriptionRampAppliedContent; [WebhookEventType.SubscriptionPaused]: SubscriptionPausedContent; [WebhookEventType.OrderReadyToProcess]: OrderReadyToProcessContent; [WebhookEventType.FeatureCreated]: FeatureCreatedContent; [WebhookEventType.TransactionDeleted]: TransactionDeletedContent; [WebhookEventType.CreditNoteCreated]: CreditNoteCreatedContent; [WebhookEventType.OmnichannelSubscriptionItemResubscribed]: OmnichannelSubscriptionItemResubscribedContent; [WebhookEventType.RecordPurchaseFailed]: RecordPurchaseFailedContent; [WebhookEventType.ItemCreated]: ItemCreatedContent; [WebhookEventType.TransactionUpdated]: TransactionUpdatedContent; [WebhookEventType.MrrUpdated]: MrrUpdatedContent; [WebhookEventType.UnbilledChargesInvoiced]: UnbilledChargesInvoicedContent; [WebhookEventType.ItemPriceUpdated]: ItemPriceUpdatedContent; [WebhookEventType.CouponCodesUpdated]: CouponCodesUpdatedContent; [WebhookEventType.VirtualBankAccountUpdated]: VirtualBankAccountUpdatedContent; [WebhookEventType.ContractTermCreated]: ContractTermCreatedContent; [WebhookEventType.SubscriptionChanged]: SubscriptionChangedContent; [WebhookEventType.PaymentFailed]: PaymentFailedContent; [WebhookEventType.CreditNoteDeleted]: CreditNoteDeletedContent; [WebhookEventType.TaxWithheldRefunded]: TaxWithheldRefundedContent; [WebhookEventType.ContractTermCompleted]: ContractTermCompletedContent; [WebhookEventType.PaymentSchedulesUpdated]: PaymentSchedulesUpdatedContent; [WebhookEventType.OmnichannelSubscriptionItemExpired]: OmnichannelSubscriptionItemExpiredContent; [WebhookEventType.CardUpdated]: CardUpdatedContent; [WebhookEventType.CustomerCreated]: CustomerCreatedContent; [WebhookEventType.SubscriptionRenewalReminder]: SubscriptionRenewalReminderContent; [WebhookEventType.OrderDelivered]: OrderDeliveredContent; [WebhookEventType.OmnichannelSubscriptionItemCancellationScheduled]: OmnichannelSubscriptionItemCancellationScheduledContent; [WebhookEventType.OmnichannelSubscriptionItemGracePeriodExpired]: OmnichannelSubscriptionItemGracePeriodExpiredContent; [WebhookEventType.CouponCodesAdded]: CouponCodesAddedContent; [WebhookEventType.GiftCancelled]: GiftCancelledContent; [WebhookEventType.OrderCancelled]: OrderCancelledContent; [WebhookEventType.CouponDeleted]: CouponDeletedContent; [WebhookEventType.SubscriptionScheduledChangesRemoved]: SubscriptionScheduledChangesRemovedContent; [WebhookEventType.PendingInvoiceCreated]: PendingInvoiceCreatedContent; [WebhookEventType.EntitlementOverridesAutoRemoved]: EntitlementOverridesAutoRemovedContent; [WebhookEventType.OmnichannelSubscriptionItemUpgraded]: OmnichannelSubscriptionItemUpgradedContent; [WebhookEventType.SubscriptionBusinessEntityChanged]: SubscriptionBusinessEntityChangedContent; [WebhookEventType.OmnichannelOneTimeOrderCreated]: OmnichannelOneTimeOrderCreatedContent; [WebhookEventType.PaymentSourceDeleted]: PaymentSourceDeletedContent; [WebhookEventType.OmnichannelSubscriptionItemCancelled]: OmnichannelSubscriptionItemCancelledContent; [WebhookEventType.QuoteDeleted]: QuoteDeletedContent; [WebhookEventType.InvoiceUpdated]: InvoiceUpdatedContent; [WebhookEventType.SubscriptionAdvanceInvoiceScheduleRemoved]: SubscriptionAdvanceInvoiceScheduleRemovedContent; [WebhookEventType.CardDeleted]: CardDeletedContent; [WebhookEventType.OrderReadyToShip]: OrderReadyToShipContent; [WebhookEventType.SubscriptionMovedOut]: SubscriptionMovedOutContent; [WebhookEventType.PaymentScheduleSchemeCreated]: PaymentScheduleSchemeCreatedContent; [WebhookEventType.BusinessEntityUpdated]: BusinessEntityUpdatedContent; [WebhookEventType.SubscriptionScheduledResumptionRemoved]: SubscriptionScheduledResumptionRemovedContent; [WebhookEventType.PaymentInitiated]: PaymentInitiatedContent; [WebhookEventType.FeatureArchived]: FeatureArchivedContent; [WebhookEventType.SubscriptionReactivatedWithBackdating]: SubscriptionReactivatedWithBackdatingContent; [WebhookEventType.OmnichannelSubscriptionImported]: OmnichannelSubscriptionImportedContent; [WebhookEventType.TokenExpired]: TokenExpiredContent; [WebhookEventType.CardAdded]: CardAddedContent; [WebhookEventType.CouponCreated]: CouponCreatedContent; [WebhookEventType.RuleDeleted]: RuleDeletedContent; [WebhookEventType.ItemPriceEntitlementsUpdated]: ItemPriceEntitlementsUpdatedContent; [WebhookEventType.ItemPriceDeleted]: ItemPriceDeletedContent; [WebhookEventType.VirtualBankAccountDeleted]: VirtualBankAccountDeletedContent; [WebhookEventType.PaymentScheduleSchemeDeleted]: PaymentScheduleSchemeDeletedContent; [WebhookEventType.SubscriptionCreated]: SubscriptionCreatedContent; [WebhookEventType.SubscriptionEntitlementsCreated]: SubscriptionEntitlementsCreatedContent; [WebhookEventType.OrderReturned]: OrderReturnedContent; [WebhookEventType.SubscriptionDeleted]: SubscriptionDeletedContent; [WebhookEventType.PaymentSourceAdded]: PaymentSourceAddedContent; [WebhookEventType.SubscriptionMovedIn]: SubscriptionMovedInContent; [WebhookEventType.ItemPriceCreated]: ItemPriceCreatedContent; [WebhookEventType.SubscriptionScheduledCancellationRemoved]: SubscriptionScheduledCancellationRemovedContent; [WebhookEventType.PaymentRefunded]: PaymentRefundedContent; [WebhookEventType.UsageFileIngested]: UsageFileIngestedContent; [WebhookEventType.OmnichannelSubscriptionMovedIn]: OmnichannelSubscriptionMovedInContent; [WebhookEventType.DifferentialPriceCreated]: DifferentialPriceCreatedContent; [WebhookEventType.TransactionCreated]: TransactionCreatedContent; [WebhookEventType.PaymentSucceeded]: PaymentSucceededContent; [WebhookEventType.SubscriptionCanceledWithBackdating]: SubscriptionCanceledWithBackdatingContent; [WebhookEventType.UnbilledChargesVoided]: UnbilledChargesVoidedContent; [WebhookEventType.QuoteCreated]: QuoteCreatedContent; [WebhookEventType.CouponSetDeleted]: CouponSetDeletedContent; [WebhookEventType.AttachedItemCreated]: AttachedItemCreatedContent; [WebhookEventType.SalesOrderCreated]: SalesOrderCreatedContent; [WebhookEventType.CustomerChanged]: CustomerChangedContent; [WebhookEventType.SubscriptionStarted]: SubscriptionStartedContent; [WebhookEventType.SubscriptionActivated]: SubscriptionActivatedContent; [WebhookEventType.PaymentSourceExpiring]: PaymentSourceExpiringContent; [WebhookEventType.SubscriptionReactivated]: SubscriptionReactivatedContent; [WebhookEventType.OrderUpdated]: OrderUpdatedContent; [WebhookEventType.SubscriptionScheduledPauseRemoved]: SubscriptionScheduledPauseRemovedContent; [WebhookEventType.SubscriptionCancellationReminder]: SubscriptionCancellationReminderContent; [WebhookEventType.SubscriptionCreatedWithBackdating]: SubscriptionCreatedWithBackdatingContent; [WebhookEventType.SubscriptionRampCreated]: SubscriptionRampCreatedContent; [WebhookEventType.OrderDeleted]: OrderDeletedContent; [WebhookEventType.OmnichannelSubscriptionItemPauseScheduled]: OmnichannelSubscriptionItemPauseScheduledContent; [WebhookEventType.GiftUpdated]: GiftUpdatedContent; [WebhookEventType.SubscriptionTrialExtended]: SubscriptionTrialExtendedContent; [WebhookEventType.OmnichannelSubscriptionItemGracePeriodStarted]: OmnichannelSubscriptionItemGracePeriodStartedContent; [WebhookEventType.CardExpiryReminder]: CardExpiryReminderContent; [WebhookEventType.TokenCreated]: TokenCreatedContent; [WebhookEventType.PromotionalCreditsAdded]: PromotionalCreditsAddedContent; [WebhookEventType.SubscriptionRampUpdated]: SubscriptionRampUpdatedContent; [WebhookEventType.CustomerEntitlementsUpdated]: CustomerEntitlementsUpdatedContent; [WebhookEventType.PaymentSourceExpired]: PaymentSourceExpiredContent; [WebhookEventType.CustomerMovedOut]: CustomerMovedOutContent; [WebhookEventType.SubscriptionEntitlementsUpdated]: SubscriptionEntitlementsUpdatedContent; [WebhookEventType.OmnichannelSubscriptionItemDunningExpired]: OmnichannelSubscriptionItemDunningExpiredContent; [WebhookEventType.HierarchyCreated]: HierarchyCreatedContent; [WebhookEventType.AttachedItemDeleted]: AttachedItemDeletedContent; [WebhookEventType.OmnichannelSubscriptionItemScheduledCancellationRemoved]: OmnichannelSubscriptionItemScheduledCancellationRemovedContent; [WebhookEventType.ItemUpdated]: ItemUpdatedContent; [WebhookEventType.CouponSetCreated]: CouponSetCreatedContent; [WebhookEventType.PaymentIntentUpdated]: PaymentIntentUpdatedContent; [WebhookEventType.OrderResent]: OrderResentContent; [WebhookEventType.OmnichannelSubscriptionCreated]: OmnichannelSubscriptionCreatedContent; [WebhookEventType.TaxWithheldRecorded]: TaxWithheldRecordedContent; [WebhookEventType.PriceVariantCreated]: PriceVariantCreatedContent; [WebhookEventType.DifferentialPriceDeleted]: DifferentialPriceDeletedContent; [WebhookEventType.SubscriptionItemsRenewed]: SubscriptionItemsRenewedContent; [WebhookEventType.RuleCreated]: RuleCreatedContent; [WebhookEventType.ContractTermCancelled]: ContractTermCancelledContent; [WebhookEventType.ContractTermRenewed]: ContractTermRenewedContent; [WebhookEventType.InvoiceDeleted]: InvoiceDeletedContent; [WebhookEventType.ItemPriceEntitlementsRemoved]: ItemPriceEntitlementsRemovedContent; [WebhookEventType.SalesOrderUpdated]: SalesOrderUpdatedContent; [WebhookEventType.OmnichannelSubscriptionItemDunningStarted]: OmnichannelSubscriptionItemDunningStartedContent; [WebhookEventType.OmnichannelSubscriptionItemChangeScheduled]: OmnichannelSubscriptionItemChangeScheduledContent; [WebhookEventType.PendingInvoiceUpdated]: PendingInvoiceUpdatedContent; [WebhookEventType.QuoteUpdated]: QuoteUpdatedContent; [WebhookEventType.AttachedItemUpdated]: AttachedItemUpdatedContent; [WebhookEventType.PaymentSourceUpdated]: PaymentSourceUpdatedContent; [WebhookEventType.BusinessEntityDeleted]: BusinessEntityDeletedContent; [WebhookEventType.AuthorizationVoided]: AuthorizationVoidedContent; [WebhookEventType.SubscriptionRampDeleted]: SubscriptionRampDeletedContent; [WebhookEventType.PlanDeleted]: PlanDeletedContent; [WebhookEventType.AddonDeleted]: AddonDeletedContent; [WebhookEventType.AddonUpdated]: AddonUpdatedContent; [WebhookEventType.AddonCreated]: AddonCreatedContent; [WebhookEventType.PlanCreated]: PlanCreatedContent; [WebhookEventType.PlanUpdated]: PlanUpdatedContent; }; export type ContentFor<T extends WebhookEventType> = WebhookContentMap[T]; export interface WebhookEvent<T extends WebhookEventType = WebhookEventType> { content: ContentFor<T>; id: string; occurred_at: number; source: SourceEnum; user?: string; webhook_status: | 'not_configured' | 'scheduled' | 'succeeded' | 're_scheduled' | 'failed' | 'skipped' | 'not_applicable' | 'disabled'; webhook_failure_reason?: string; webhooks?: Event.Webhook[]; event_type?: EventTypeEnum; api_version?: ApiVersionEnum; origin_user?: string; } export type SubscriptionPauseScheduledContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type CustomerBusinessEntityChangedContent = { business_entity_change: BusinessEntityChange; business_entity_transfer: BusinessEntityTransfer; customer: Customer; }; export type SubscriptionAdvanceInvoiceScheduleAddedContent = { subscription: Subscription; customer: Customer; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type GiftExpiredContent = { gift: Gift; }; export type TaxWithheldDeletedContent = { tax_withheld: TaxWithheld; invoice: Invoice; credit_note: CreditNote; }; export type UnbilledChargesDeletedContent = { unbilled_charge: UnbilledCharge; }; export type CouponUpdatedContent = { coupon: Coupon; }; export type OmnichannelSubscriptionItemReactivatedContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type OmnichannelSubscriptionItemRenewedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription: OmnichannelSubscription; omnichannel_transaction: OmnichannelTransaction; omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange; customer: Customer; }; export type UnbilledChargesCreatedContent = { unbilled_charge: UnbilledCharge; }; export type SubscriptionResumedContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; unbilled_charge: UnbilledCharge; }; export type OmnichannelOneTimeOrderItemCancelledContent = { omnichannel_one_time_order: OmnichannelOneTimeOrder; omnichannel_one_time_order_item: OmnichannelOneTimeOrderItem; omnichannel_transaction: OmnichannelTransaction; customer: Customer; }; export type SubscriptionCancelledContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; credit_note: CreditNote; unbilled_charge: UnbilledCharge; }; export type ItemEntitlementsRemovedContent = { feature: Feature; metadata: Metadata; impacted_item: ImpactedItem; impacted_subscription: ImpactedSubscription; }; export type BusinessEntityCreatedContent = { business_entity: BusinessEntity; }; export type CouponSetUpdatedContent = { coupon: Coupon; coupon_set: CouponSet; }; export type DifferentialPriceUpdatedContent = { differential_price: DifferentialPrice; }; export type OmnichannelSubscriptionItemPausedContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type EntitlementOverridesRemovedContent = { impacted_subscription: ImpactedSubscription; metadata: Metadata; }; export type SubscriptionActivatedWithBackdatingContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; unbilled_charge: UnbilledCharge; }; export type SubscriptionTrialEndReminderContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type SubscriptionShippingAddressUpdatedContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type VoucherCreateFailedContent = { payment_voucher: PaymentVoucher; }; export type GiftClaimedContent = { gift: Gift; }; export type CustomerDeletedContent = { customer: Customer; card: Card; subscription: Subscription; }; export type RefundInitiatedContent = { transaction: Transaction; invoice: Invoice; credit_note: CreditNote; customer: Customer; subscription: Subscription; card: Card; }; export type InvoiceGeneratedWithBackdatingContent = { invoice: Invoice; }; export type OmnichannelTransactionCreatedContent = { omnichannel_transaction: OmnichannelTransaction; }; export type AddUsagesReminderContent = { subscription: Subscription; customer: Customer; usage_reminder_info: UsageReminderInfo; }; export type VoucherCreatedContent = { payment_voucher: PaymentVoucher; }; export type RuleUpdatedContent = { rule: Rule; }; export type PaymentSchedulesCreatedContent = { payment_schedule: PaymentSchedule; }; export type FeatureActivatedContent = { feature: Feature; metadata: Metadata; impacted_item: ImpactedItem; impacted_subscription: ImpactedSubscription; }; export type PaymentSourceLocallyDeletedContent = { customer: Customer; payment_source: PaymentSource; }; export type InvoiceGeneratedContent = { invoice: Invoice; }; export type VoucherExpiredContent = { payment_voucher: PaymentVoucher; }; export type AuthorizationSucceededContent = { transaction: Transaction; }; export type GiftScheduledContent = { gift: Gift; }; export type SubscriptionChangesScheduledContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type SubscriptionChangedWithBackdatingContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; credit_note: CreditNote; unbilled_charge: UnbilledCharge; }; export type OmnichannelSubscriptionItemChangedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription: OmnichannelSubscription; omnichannel_transaction: OmnichannelTransaction; omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange; customer: Customer; }; export type GiftUnclaimedContent = { gift: Gift; }; export type VirtualBankAccountAddedContent = { customer: Customer; virtual_bank_account: VirtualBankAccount; }; export type PaymentIntentCreatedContent = { payment_intent: PaymentIntent; }; export type CreditNoteCreatedWithBackdatingContent = { credit_note: CreditNote; }; export type ContractTermTerminatedContent = { contract_term: ContractTerm; }; export type ItemFamilyUpdatedContent = { item_family: ItemFamily; }; export type OrderCreatedContent = { order: Order; }; export type PriceVariantDeletedContent = { price_variant: PriceVariant; attribute: Attribute; }; export type SubscriptionMovementFailedContent = { subscription: Subscription; }; export type CustomerMovedInContent = { customer: Customer; card: Card; }; export type SubscriptionAdvanceInvoiceScheduleUpdatedContent = { subscription: Subscription; customer: Customer; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type ItemDeletedContent = { item: Item; }; export type SubscriptionRampDraftedContent = { ramp: Ramp; }; export type DunningUpdatedContent = { invoice: Invoice; }; export type ItemEntitlementsUpdatedContent = { feature: Feature; metadata: Metadata; impacted_item: ImpactedItem; impacted_subscription: ImpactedSubscription; }; export type TokenConsumedContent = { token: Token; }; export type HierarchyDeletedContent = { customer: Customer; }; export type SubscriptionCancellationScheduledContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type SubscriptionRenewedContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; unbilled_charge: UnbilledCharge; }; export type FeatureUpdatedContent = { feature: Feature; metadata: Metadata; }; export type FeatureDeletedContent = { feature: Feature; metadata: Metadata; impacted_item: ImpactedItem; impacted_subscription: ImpactedSubscription; }; export type ItemFamilyCreatedContent = { item_family: ItemFamily; }; export type OmnichannelSubscriptionItemScheduledChangeRemovedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange; customer: Customer; }; export type OmnichannelSubscriptionItemResumedContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type PurchaseCreatedContent = { purchase: Purchase; }; export type EntitlementOverridesUpdatedContent = { impacted_subscription: ImpactedSubscription; metadata: Metadata; }; export type ItemFamilyDeletedContent = { item_family: ItemFamily; }; export type SubscriptionResumptionScheduledContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type FeatureReactivatedContent = { feature: Feature; metadata: Metadata; }; export type CouponCodesDeletedContent = { coupon: Coupon; coupon_set: CouponSet; coupon_code: CouponCode; }; export type CardExpiredContent = { customer: Customer; card: Card; }; export type CreditNoteUpdatedContent = { credit_note: CreditNote; }; export type OmnichannelSubscriptionItemDowngradedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription: OmnichannelSubscription; omnichannel_transaction: OmnichannelTransaction; customer: Customer; }; export type PriceVariantUpdatedContent = { price_variant: PriceVariant; attribute: Attribute; }; export type PromotionalCreditsDeductedContent = { customer: Customer; promotional_credit: PromotionalCredit; }; export type SubscriptionRampAppliedContent = { ramp: Ramp; }; export type SubscriptionPausedContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; credit_note: CreditNote; unbilled_charge: UnbilledCharge; }; export type OrderReadyToProcessContent = { order: Order; }; export type FeatureCreatedContent = { feature: Feature; metadata: Metadata; impacted_item: ImpactedItem; impacted_subscription: ImpactedSubscription; }; export type TransactionDeletedContent = { transaction: Transaction; }; export type CreditNoteCreatedContent = { credit_note: CreditNote; }; export type OmnichannelSubscriptionItemResubscribedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription: OmnichannelSubscription; omnichannel_transaction: OmnichannelTransaction; omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange; customer: Customer; }; export type RecordPurchaseFailedContent = { recorded_purchase: RecordedPurchase; customer: Customer; }; export type ItemCreatedContent = { item: Item; }; export type TransactionUpdatedContent = { transaction: Transaction; }; export type MrrUpdatedContent = { subscription: Subscription; }; export type UnbilledChargesInvoicedContent = { unbilled_charge: UnbilledCharge; invoice: Invoice; }; export type ItemPriceUpdatedContent = { item_price: ItemPrice; }; export type CouponCodesUpdatedContent = { coupon: Coupon; coupon_set: CouponSet; }; export type VirtualBankAccountUpdatedContent = { customer: Customer; virtual_bank_account: VirtualBankAccount; }; export type ContractTermCreatedContent = { contract_term: ContractTerm; }; export type SubscriptionChangedContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; credit_note: CreditNote; unbilled_charge: UnbilledCharge; }; export type PaymentFailedContent = { transaction: Transaction; invoice: Invoice; customer: Customer; subscription: Subscription; card: Card; }; export type CreditNoteDeletedContent = { credit_note: CreditNote; }; export type TaxWithheldRefundedContent = { tax_withheld: TaxWithheld; invoice: Invoice; credit_note: CreditNote; }; export type ContractTermCompletedContent = { contract_term: ContractTerm; }; export type PaymentSchedulesUpdatedContent = { payment_schedule: PaymentSchedule; }; export type OmnichannelSubscriptionItemExpiredContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type CardUpdatedContent = { customer: Customer; card: Card; }; export type CustomerCreatedContent = { customer: Customer; card: Card; }; export type SubscriptionRenewalReminderContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type OrderDeliveredContent = { order: Order; }; export type OmnichannelSubscriptionItemCancellationScheduledContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type OmnichannelSubscriptionItemGracePeriodExpiredContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type CouponCodesAddedContent = { coupon: Coupon; coupon_set: CouponSet; }; export type GiftCancelledContent = { gift: Gift; }; export type OrderCancelledContent = { order: Order; }; export type CouponDeletedContent = { coupon: Coupon; }; export type SubscriptionScheduledChangesRemovedContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type PendingInvoiceCreatedContent = { invoice: Invoice; }; export type EntitlementOverridesAutoRemovedContent = { feature: Feature; metadata: Metadata; impacted_item: ImpactedItem; impacted_subscription: ImpactedSubscription; }; export type OmnichannelSubscriptionItemUpgradedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription: OmnichannelSubscription; omnichannel_transaction: OmnichannelTransaction; omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange; customer: Customer; }; export type SubscriptionBusinessEntityChangedContent = { business_entity_change: BusinessEntityChange; business_entity_transfer: BusinessEntityTransfer; subscription: Subscription; }; export type OmnichannelOneTimeOrderCreatedContent = { omnichannel_one_time_order: OmnichannelOneTimeOrder; omnichannel_one_time_order_item: OmnichannelOneTimeOrderItem; omnichannel_transaction: OmnichannelTransaction; customer: Customer; }; export type PaymentSourceDeletedContent = { customer: Customer; payment_source: PaymentSource; }; export type OmnichannelSubscriptionItemCancelledContent = { omnichannel_subscription: OmnichannelSubscription; omnichannel_subscription_item: OmnichannelSubscriptionItem; customer: Customer; }; export type QuoteDeletedContent = { quote: Quote; }; export type InvoiceUpdatedContent = { invoice: Invoice; }; export type SubscriptionAdvanceInvoiceScheduleRemovedContent = { subscription: Subscription; customer: Customer; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type CardDeletedContent = { customer: Customer; card: Card; }; export type OrderReadyToShipContent = { order: Order; }; export type SubscriptionMovedOutContent = { subscription: Subscription; }; export type PaymentScheduleSchemeCreatedContent = { payment_schedule_scheme: PaymentScheduleScheme; }; export type BusinessEntityUpdatedContent = { business_entity: BusinessEntity; }; export type SubscriptionScheduledResumptionRemovedContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type PaymentInitiatedContent = { transaction: Transaction; invoice: Invoice; customer: Customer; subscription: Subscription; card: Card; }; export type FeatureArchivedContent = { feature: Feature; metadata: Metadata; }; export type SubscriptionReactivatedWithBackdatingContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; unbilled_charge: UnbilledCharge; }; export type OmnichannelSubscriptionImportedContent = { omnichannel_subscription_item: OmnichannelSubscriptionItem; omnichannel_subscription: OmnichannelSubscription; omnichannel_transaction: OmnichannelTransaction; omnichannel_subscription_item_scheduled_change: OmnichannelSubscriptionItemScheduledChange; customer: Customer; }; export type TokenExpiredContent = { token: Token; }; export type CardAddedContent = { customer: Customer; card: Card; }; export type CouponCreatedContent = { coupon: Coupon; }; export type RuleDeletedContent = { rule: Rule; }; export type ItemPriceEntitlementsUpdatedContent = { feature: Feature; metadata: Metadata; impacted_item_price: ImpactedItemPrice; impacted_subscription: ImpactedSubscription; }; export type ItemPriceDeletedContent = { item_price: ItemPrice; }; export type VirtualBankAccountDeletedContent = { customer: Customer; virtual_bank_account: VirtualBankAccount; }; export type PaymentScheduleSchemeDeletedContent = { payment_schedule_scheme: PaymentScheduleScheme; }; export type SubscriptionCreatedContent = { subscription: Subscription; customer: Customer; card: Card; invoice: Invoice; unbilled_charge: UnbilledCharge; }; export type SubscriptionEntitlementsCreatedContent = { subscription_entitlements_created_detail: SubscriptionEntitlementsCreatedDetail; }; export type OrderReturnedContent = { order: Order; }; export type SubscriptionDeletedContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type PaymentSourceAddedContent = { customer: Customer; payment_source: PaymentSource; }; export type SubscriptionMovedInContent = { subscription: Subscription; }; export type ItemPriceCreatedContent = { item_price: ItemPrice; }; export type SubscriptionScheduledCancellationRemovedContent = { subscription: Subscription; customer: Customer; card: Card; advance_invoice_schedule: AdvanceInvoiceSchedule; }; export type PaymentRefundedContent = { transaction: Transaction; invoice: Invoice; credit_note: CreditNote; customer: Customer; subscription: Subscription; card: Card; }; export type UsageFileIngestedContent = { usage_file: UsageFile; }; export type OmnichannelSubscriptionMovedInContent = { omnichannel_subscription: OmnichannelSubscription; customer: Customer; }; export type DifferentialPriceCreatedContent = { differential_price: DifferentialPrice; }; export type TransactionCreatedContent = { transaction: Transaction; }; export type PaymentSucceededContent = { transaction: Transaction; invoice: Invoice; cust