webhook

package
v3.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 63 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicAuthErrorHandler

func BasicAuthErrorHandler(w http.ResponseWriter, r *http.Request, err error)

BasicAuthErrorHandler creates an OnError handler that returns 401 Unauthorized for auth errors

func BasicAuthValidator

func BasicAuthValidator(validateCredentials func(username, password string) bool) func(*http.Request) error

func ParseEventType

func ParseEventType(body []byte) (enum.EventType, error)

ParseEventType reads only the event_type (and validates api_version) from the webhook payload

Types

type AddUsagesReminderContent

type AddUsagesReminderContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type AddUsagesReminderEvent

type AddUsagesReminderEvent struct {
	BaseEvent
	Content *AddUsagesReminderContent `json:"content"`
}

AddUsagesReminderEvent represents a add_usages_reminder webhook event

type AddonCreatedContent

type AddonCreatedContent struct {
	Addon *addon.Addon `json:"addon,omitempty"`
}

type AddonCreatedEvent

type AddonCreatedEvent struct {
	BaseEvent
	Content *AddonCreatedContent `json:"content"`
}

AddonCreatedEvent represents a addon_created webhook event

type AddonDeletedContent

type AddonDeletedContent struct {
	Addon *addon.Addon `json:"addon,omitempty"`
}

type AddonDeletedEvent

type AddonDeletedEvent struct {
	BaseEvent
	Content *AddonDeletedContent `json:"content"`
}

AddonDeletedEvent represents a addon_deleted webhook event

type AddonUpdatedContent

type AddonUpdatedContent struct {
	Addon *addon.Addon `json:"addon,omitempty"`
}

type AddonUpdatedEvent

type AddonUpdatedEvent struct {
	BaseEvent
	Content *AddonUpdatedContent `json:"content"`
}

AddonUpdatedEvent represents a addon_updated webhook event

type AttachedItemCreatedContent

type AttachedItemCreatedContent struct {
	AttachedItem *attacheditem.AttachedItem `json:"attached_item,omitempty"`
}

type AttachedItemCreatedEvent

type AttachedItemCreatedEvent struct {
	BaseEvent
	Content *AttachedItemCreatedContent `json:"content"`
}

AttachedItemCreatedEvent represents a attached_item_created webhook event

type AttachedItemDeletedContent

type AttachedItemDeletedContent struct {
	AttachedItem *attacheditem.AttachedItem `json:"attached_item,omitempty"`
}

type AttachedItemDeletedEvent

type AttachedItemDeletedEvent struct {
	BaseEvent
	Content *AttachedItemDeletedContent `json:"content"`
}

AttachedItemDeletedEvent represents a attached_item_deleted webhook event

type AttachedItemUpdatedContent

type AttachedItemUpdatedContent struct {
	AttachedItem *attacheditem.AttachedItem `json:"attached_item,omitempty"`
}

type AttachedItemUpdatedEvent

type AttachedItemUpdatedEvent struct {
	BaseEvent
	Content *AttachedItemUpdatedContent `json:"content"`
}

AttachedItemUpdatedEvent represents a attached_item_updated webhook event

type AuthorizationSucceededContent

type AuthorizationSucceededContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`
}

type AuthorizationSucceededEvent

type AuthorizationSucceededEvent struct {
	BaseEvent
	Content *AuthorizationSucceededContent `json:"content"`
}

AuthorizationSucceededEvent represents a authorization_succeeded webhook event

type AuthorizationVoidedContent

type AuthorizationVoidedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`
}

type AuthorizationVoidedEvent

type AuthorizationVoidedEvent struct {
	BaseEvent
	Content *AuthorizationVoidedContent `json:"content"`
}

AuthorizationVoidedEvent represents a authorization_voided webhook event

type BaseEvent

type BaseEvent struct {
	Id            string `json:"id"`
	OccurredAt    int64  `json:"occurred_at"`
	Source        string `json:"source"`
	Object        string `json:"object"`
	ApiVersion    string `json:"api_version"`
	EventType     string `json:"event_type"`
	WebhookStatus string `json:"webhook_status"`
}

func (*BaseEvent) GetOccurredAtTime

func (e *BaseEvent) GetOccurredAtTime() time.Time

type BusinessEntityCreatedContent

type BusinessEntityCreatedContent struct {
	BusinessEntity *businessentity.BusinessEntity `json:"business_entity,omitempty"`
}

type BusinessEntityCreatedEvent

type BusinessEntityCreatedEvent struct {
	BaseEvent
	Content *BusinessEntityCreatedContent `json:"content"`
}

BusinessEntityCreatedEvent represents a business_entity_created webhook event

type BusinessEntityDeletedContent

type BusinessEntityDeletedContent struct {
	BusinessEntity *businessentity.BusinessEntity `json:"business_entity,omitempty"`
}

type BusinessEntityDeletedEvent

type BusinessEntityDeletedEvent struct {
	BaseEvent
	Content *BusinessEntityDeletedContent `json:"content"`
}

BusinessEntityDeletedEvent represents a business_entity_deleted webhook event

type BusinessEntityUpdatedContent

type BusinessEntityUpdatedContent struct {
	BusinessEntity *businessentity.BusinessEntity `json:"business_entity,omitempty"`
}

type BusinessEntityUpdatedEvent

type BusinessEntityUpdatedEvent struct {
	BaseEvent
	Content *BusinessEntityUpdatedContent `json:"content"`
}

BusinessEntityUpdatedEvent represents a business_entity_updated webhook event

type CardAddedContent

type CardAddedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CardAddedEvent

type CardAddedEvent struct {
	BaseEvent
	Content *CardAddedContent `json:"content"`
}

CardAddedEvent represents a card_added webhook event

type CardDeletedContent

type CardDeletedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CardDeletedEvent

type CardDeletedEvent struct {
	BaseEvent
	Content *CardDeletedContent `json:"content"`
}

CardDeletedEvent represents a card_deleted webhook event

type CardExpiredContent

type CardExpiredContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CardExpiredEvent

type CardExpiredEvent struct {
	BaseEvent
	Content *CardExpiredContent `json:"content"`
}

CardExpiredEvent represents a card_expired webhook event

type CardExpiryReminderContent

type CardExpiryReminderContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CardExpiryReminderEvent

type CardExpiryReminderEvent struct {
	BaseEvent
	Content *CardExpiryReminderContent `json:"content"`
}

CardExpiryReminderEvent represents a card_expiry_reminder webhook event

type CardUpdatedContent

type CardUpdatedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CardUpdatedEvent

type CardUpdatedEvent struct {
	BaseEvent
	Content *CardUpdatedContent `json:"content"`
}

CardUpdatedEvent represents a card_updated webhook event

type ContractTermCancelledContent

type ContractTermCancelledContent struct {
	ContractTerm *contractterm.ContractTerm `json:"contract_term,omitempty"`
}

type ContractTermCancelledEvent

type ContractTermCancelledEvent struct {
	BaseEvent
	Content *ContractTermCancelledContent `json:"content"`
}

ContractTermCancelledEvent represents a contract_term_cancelled webhook event

type ContractTermCompletedContent

type ContractTermCompletedContent struct {
	ContractTerm *contractterm.ContractTerm `json:"contract_term,omitempty"`
}

type ContractTermCompletedEvent

type ContractTermCompletedEvent struct {
	BaseEvent
	Content *ContractTermCompletedContent `json:"content"`
}

ContractTermCompletedEvent represents a contract_term_completed webhook event

type ContractTermCreatedContent

type ContractTermCreatedContent struct {
	ContractTerm *contractterm.ContractTerm `json:"contract_term,omitempty"`
}

type ContractTermCreatedEvent

type ContractTermCreatedEvent struct {
	BaseEvent
	Content *ContractTermCreatedContent `json:"content"`
}

ContractTermCreatedEvent represents a contract_term_created webhook event

type ContractTermRenewedContent

type ContractTermRenewedContent struct {
	ContractTerm *contractterm.ContractTerm `json:"contract_term,omitempty"`
}

type ContractTermRenewedEvent

type ContractTermRenewedEvent struct {
	BaseEvent
	Content *ContractTermRenewedContent `json:"content"`
}

ContractTermRenewedEvent represents a contract_term_renewed webhook event

type ContractTermTerminatedContent

type ContractTermTerminatedContent struct {
	ContractTerm *contractterm.ContractTerm `json:"contract_term,omitempty"`
}

type ContractTermTerminatedEvent

type ContractTermTerminatedEvent struct {
	BaseEvent
	Content *ContractTermTerminatedContent `json:"content"`
}

ContractTermTerminatedEvent represents a contract_term_terminated webhook event

type CouponCodesAddedContent

type CouponCodesAddedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`

	CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`
}

type CouponCodesAddedEvent

type CouponCodesAddedEvent struct {
	BaseEvent
	Content *CouponCodesAddedContent `json:"content"`
}

CouponCodesAddedEvent represents a coupon_codes_added webhook event

type CouponCodesDeletedContent

type CouponCodesDeletedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`

	CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`

	CouponCode *couponcode.CouponCode `json:"coupon_code,omitempty"`
}

type CouponCodesDeletedEvent

type CouponCodesDeletedEvent struct {
	BaseEvent
	Content *CouponCodesDeletedContent `json:"content"`
}

CouponCodesDeletedEvent represents a coupon_codes_deleted webhook event

type CouponCodesUpdatedContent

type CouponCodesUpdatedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`

	CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`
}

type CouponCodesUpdatedEvent

type CouponCodesUpdatedEvent struct {
	BaseEvent
	Content *CouponCodesUpdatedContent `json:"content"`
}

CouponCodesUpdatedEvent represents a coupon_codes_updated webhook event

type CouponCreatedContent

type CouponCreatedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`
}

type CouponCreatedEvent

type CouponCreatedEvent struct {
	BaseEvent
	Content *CouponCreatedContent `json:"content"`
}

CouponCreatedEvent represents a coupon_created webhook event

type CouponDeletedContent

type CouponDeletedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`
}

type CouponDeletedEvent

type CouponDeletedEvent struct {
	BaseEvent
	Content *CouponDeletedContent `json:"content"`
}

CouponDeletedEvent represents a coupon_deleted webhook event

type CouponSetCreatedContent

type CouponSetCreatedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`

	CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`
}

type CouponSetCreatedEvent

type CouponSetCreatedEvent struct {
	BaseEvent
	Content *CouponSetCreatedContent `json:"content"`
}

CouponSetCreatedEvent represents a coupon_set_created webhook event

type CouponSetDeletedContent

type CouponSetDeletedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`

	CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`
}

type CouponSetDeletedEvent

type CouponSetDeletedEvent struct {
	BaseEvent
	Content *CouponSetDeletedContent `json:"content"`
}

CouponSetDeletedEvent represents a coupon_set_deleted webhook event

type CouponSetUpdatedContent

type CouponSetUpdatedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`

	CouponSet *couponset.CouponSet `json:"coupon_set,omitempty"`
}

type CouponSetUpdatedEvent

type CouponSetUpdatedEvent struct {
	BaseEvent
	Content *CouponSetUpdatedContent `json:"content"`
}

CouponSetUpdatedEvent represents a coupon_set_updated webhook event

type CouponUpdatedContent

type CouponUpdatedContent struct {
	Coupon *coupon.Coupon `json:"coupon,omitempty"`
}

type CouponUpdatedEvent

type CouponUpdatedEvent struct {
	BaseEvent
	Content *CouponUpdatedContent `json:"content"`
}

CouponUpdatedEvent represents a coupon_updated webhook event

type CreditNoteCreatedContent

type CreditNoteCreatedContent struct {
	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type CreditNoteCreatedEvent

type CreditNoteCreatedEvent struct {
	BaseEvent
	Content *CreditNoteCreatedContent `json:"content"`
}

CreditNoteCreatedEvent represents a credit_note_created webhook event

type CreditNoteCreatedWithBackdatingContent

type CreditNoteCreatedWithBackdatingContent struct {
	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type CreditNoteCreatedWithBackdatingEvent

type CreditNoteCreatedWithBackdatingEvent struct {
	BaseEvent
	Content *CreditNoteCreatedWithBackdatingContent `json:"content"`
}

CreditNoteCreatedWithBackdatingEvent represents a credit_note_created_with_backdating webhook event

type CreditNoteDeletedContent

type CreditNoteDeletedContent struct {
	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type CreditNoteDeletedEvent

type CreditNoteDeletedEvent struct {
	BaseEvent
	Content *CreditNoteDeletedContent `json:"content"`
}

CreditNoteDeletedEvent represents a credit_note_deleted webhook event

type CreditNoteUpdatedContent

type CreditNoteUpdatedContent struct {
	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type CreditNoteUpdatedEvent

type CreditNoteUpdatedEvent struct {
	BaseEvent
	Content *CreditNoteUpdatedContent `json:"content"`
}

CreditNoteUpdatedEvent represents a credit_note_updated webhook event

type CustomerBusinessEntityChangedContent

type CustomerBusinessEntityChangedContent struct {
	BusinessEntityTransfer *businessentitytransfer.BusinessEntityTransfer `json:"business_entity_transfer,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type CustomerBusinessEntityChangedEvent

type CustomerBusinessEntityChangedEvent struct {
	BaseEvent
	Content *CustomerBusinessEntityChangedContent `json:"content"`
}

CustomerBusinessEntityChangedEvent represents a customer_business_entity_changed webhook event

type CustomerChangedContent

type CustomerChangedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CustomerChangedEvent

type CustomerChangedEvent struct {
	BaseEvent
	Content *CustomerChangedContent `json:"content"`
}

CustomerChangedEvent represents a customer_changed webhook event

type CustomerCreatedContent

type CustomerCreatedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CustomerCreatedEvent

type CustomerCreatedEvent struct {
	BaseEvent
	Content *CustomerCreatedContent `json:"content"`
}

CustomerCreatedEvent represents a customer_created webhook event

type CustomerDeletedContent

type CustomerDeletedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Subscription []*subscription.Subscription `json:"subscription,omitempty"`
}

type CustomerDeletedEvent

type CustomerDeletedEvent struct {
	BaseEvent
	Content *CustomerDeletedContent `json:"content"`
}

CustomerDeletedEvent represents a customer_deleted webhook event

type CustomerEntitlementsUpdatedContent

type CustomerEntitlementsUpdatedContent struct {
	ImpactedCustomer *impactedcustomer.ImpactedCustomer `json:"impacted_customer,omitempty"`
}

type CustomerEntitlementsUpdatedEvent

type CustomerEntitlementsUpdatedEvent struct {
	BaseEvent
	Content *CustomerEntitlementsUpdatedContent `json:"content"`
}

CustomerEntitlementsUpdatedEvent represents a customer_entitlements_updated webhook event

type CustomerMovedInContent

type CustomerMovedInContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CustomerMovedInEvent

type CustomerMovedInEvent struct {
	BaseEvent
	Content *CustomerMovedInContent `json:"content"`
}

CustomerMovedInEvent represents a customer_moved_in webhook event

type CustomerMovedOutContent

type CustomerMovedOutContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type CustomerMovedOutEvent

type CustomerMovedOutEvent struct {
	BaseEvent
	Content *CustomerMovedOutContent `json:"content"`
}

CustomerMovedOutEvent represents a customer_moved_out webhook event

type DifferentialPriceCreatedContent

type DifferentialPriceCreatedContent struct {
	DifferentialPrice *differentialprice.DifferentialPrice `json:"differential_price,omitempty"`
}

type DifferentialPriceCreatedEvent

type DifferentialPriceCreatedEvent struct {
	BaseEvent
	Content *DifferentialPriceCreatedContent `json:"content"`
}

DifferentialPriceCreatedEvent represents a differential_price_created webhook event

type DifferentialPriceDeletedContent

type DifferentialPriceDeletedContent struct {
	DifferentialPrice *differentialprice.DifferentialPrice `json:"differential_price,omitempty"`
}

type DifferentialPriceDeletedEvent

type DifferentialPriceDeletedEvent struct {
	BaseEvent
	Content *DifferentialPriceDeletedContent `json:"content"`
}

DifferentialPriceDeletedEvent represents a differential_price_deleted webhook event

type DifferentialPriceUpdatedContent

type DifferentialPriceUpdatedContent struct {
	DifferentialPrice *differentialprice.DifferentialPrice `json:"differential_price,omitempty"`
}

type DifferentialPriceUpdatedEvent

type DifferentialPriceUpdatedEvent struct {
	BaseEvent
	Content *DifferentialPriceUpdatedContent `json:"content"`
}

DifferentialPriceUpdatedEvent represents a differential_price_updated webhook event

type DunningUpdatedContent

type DunningUpdatedContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type DunningUpdatedEvent

type DunningUpdatedEvent struct {
	BaseEvent
	Content *DunningUpdatedContent `json:"content"`
}

DunningUpdatedEvent represents a dunning_updated webhook event

type EntitlementOverridesAutoRemovedContent

type EntitlementOverridesAutoRemovedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItem *impacteditem.ImpactedItem `json:"impacted_item,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type EntitlementOverridesAutoRemovedEvent

type EntitlementOverridesAutoRemovedEvent struct {
	BaseEvent
	Content *EntitlementOverridesAutoRemovedContent `json:"content"`
}

EntitlementOverridesAutoRemovedEvent represents a entitlement_overrides_auto_removed webhook event

type EntitlementOverridesRemovedContent

type EntitlementOverridesRemovedContent struct {
	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`
}

type EntitlementOverridesRemovedEvent

type EntitlementOverridesRemovedEvent struct {
	BaseEvent
	Content *EntitlementOverridesRemovedContent `json:"content"`
}

EntitlementOverridesRemovedEvent represents a entitlement_overrides_removed webhook event

type EntitlementOverridesUpdatedContent

type EntitlementOverridesUpdatedContent struct {
	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`
}

type EntitlementOverridesUpdatedEvent

type EntitlementOverridesUpdatedEvent struct {
	BaseEvent
	Content *EntitlementOverridesUpdatedContent `json:"content"`
}

EntitlementOverridesUpdatedEvent represents a entitlement_overrides_updated webhook event

type FeatureActivatedContent

type FeatureActivatedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItem *impacteditem.ImpactedItem `json:"impacted_item,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type FeatureActivatedEvent

type FeatureActivatedEvent struct {
	BaseEvent
	Content *FeatureActivatedContent `json:"content"`
}

FeatureActivatedEvent represents a feature_activated webhook event

type FeatureArchivedContent

type FeatureArchivedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`
}

type FeatureArchivedEvent

type FeatureArchivedEvent struct {
	BaseEvent
	Content *FeatureArchivedContent `json:"content"`
}

FeatureArchivedEvent represents a feature_archived webhook event

type FeatureCreatedContent

type FeatureCreatedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItem *impacteditem.ImpactedItem `json:"impacted_item,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type FeatureCreatedEvent

type FeatureCreatedEvent struct {
	BaseEvent
	Content *FeatureCreatedContent `json:"content"`
}

FeatureCreatedEvent represents a feature_created webhook event

type FeatureDeletedContent

type FeatureDeletedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItem *impacteditem.ImpactedItem `json:"impacted_item,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type FeatureDeletedEvent

type FeatureDeletedEvent struct {
	BaseEvent
	Content *FeatureDeletedContent `json:"content"`
}

FeatureDeletedEvent represents a feature_deleted webhook event

type FeatureReactivatedContent

type FeatureReactivatedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`
}

type FeatureReactivatedEvent

type FeatureReactivatedEvent struct {
	BaseEvent
	Content *FeatureReactivatedContent `json:"content"`
}

FeatureReactivatedEvent represents a feature_reactivated webhook event

type FeatureUpdatedContent

type FeatureUpdatedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`
}

type FeatureUpdatedEvent

type FeatureUpdatedEvent struct {
	BaseEvent
	Content *FeatureUpdatedContent `json:"content"`
}

FeatureUpdatedEvent represents a feature_updated webhook event

type GiftCancelledContent

type GiftCancelledContent struct {
	Gift *gift.Gift `json:"gift,omitempty"`
}

type GiftCancelledEvent

type GiftCancelledEvent struct {
	BaseEvent
	Content *GiftCancelledContent `json:"content"`
}

GiftCancelledEvent represents a gift_cancelled webhook event

type GiftClaimedContent

type GiftClaimedContent struct {
	Gift *gift.Gift `json:"gift,omitempty"`
}

type GiftClaimedEvent

type GiftClaimedEvent struct {
	BaseEvent
	Content *GiftClaimedContent `json:"content"`
}

GiftClaimedEvent represents a gift_claimed webhook event

type GiftExpiredContent

type GiftExpiredContent struct {
	Gift *gift.Gift `json:"gift,omitempty"`
}

type GiftExpiredEvent

type GiftExpiredEvent struct {
	BaseEvent
	Content *GiftExpiredContent `json:"content"`
}

GiftExpiredEvent represents a gift_expired webhook event

type GiftScheduledContent

type GiftScheduledContent struct {
	Gift *gift.Gift `json:"gift,omitempty"`
}

type GiftScheduledEvent

type GiftScheduledEvent struct {
	BaseEvent
	Content *GiftScheduledContent `json:"content"`
}

GiftScheduledEvent represents a gift_scheduled webhook event

type GiftUnclaimedContent

type GiftUnclaimedContent struct {
	Gift *gift.Gift `json:"gift,omitempty"`
}

type GiftUnclaimedEvent

type GiftUnclaimedEvent struct {
	BaseEvent
	Content *GiftUnclaimedContent `json:"content"`
}

GiftUnclaimedEvent represents a gift_unclaimed webhook event

type GiftUpdatedContent

type GiftUpdatedContent struct {
	Gift *gift.Gift `json:"gift,omitempty"`
}

type GiftUpdatedEvent

type GiftUpdatedEvent struct {
	BaseEvent
	Content *GiftUpdatedContent `json:"content"`
}

GiftUpdatedEvent represents a gift_updated webhook event

type HierarchyCreatedContent

type HierarchyCreatedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`
}

type HierarchyCreatedEvent

type HierarchyCreatedEvent struct {
	BaseEvent
	Content *HierarchyCreatedContent `json:"content"`
}

HierarchyCreatedEvent represents a hierarchy_created webhook event

type HierarchyDeletedContent

type HierarchyDeletedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`
}

type HierarchyDeletedEvent

type HierarchyDeletedEvent struct {
	BaseEvent
	Content *HierarchyDeletedContent `json:"content"`
}

HierarchyDeletedEvent represents a hierarchy_deleted webhook event

type InvoiceDeletedContent

type InvoiceDeletedContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type InvoiceDeletedEvent

type InvoiceDeletedEvent struct {
	BaseEvent
	Content *InvoiceDeletedContent `json:"content"`
}

InvoiceDeletedEvent represents a invoice_deleted webhook event

type InvoiceGeneratedContent

type InvoiceGeneratedContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type InvoiceGeneratedEvent

type InvoiceGeneratedEvent struct {
	BaseEvent
	Content *InvoiceGeneratedContent `json:"content"`
}

InvoiceGeneratedEvent represents a invoice_generated webhook event

type InvoiceGeneratedWithBackdatingContent

type InvoiceGeneratedWithBackdatingContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type InvoiceGeneratedWithBackdatingEvent

type InvoiceGeneratedWithBackdatingEvent struct {
	BaseEvent
	Content *InvoiceGeneratedWithBackdatingContent `json:"content"`
}

InvoiceGeneratedWithBackdatingEvent represents a invoice_generated_with_backdating webhook event

type InvoiceUpdatedContent

type InvoiceUpdatedContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type InvoiceUpdatedEvent

type InvoiceUpdatedEvent struct {
	BaseEvent
	Content *InvoiceUpdatedContent `json:"content"`
}

InvoiceUpdatedEvent represents a invoice_updated webhook event

type ItemCreatedContent

type ItemCreatedContent struct {
	Item *item.Item `json:"item,omitempty"`
}

type ItemCreatedEvent

type ItemCreatedEvent struct {
	BaseEvent
	Content *ItemCreatedContent `json:"content"`
}

ItemCreatedEvent represents a item_created webhook event

type ItemDeletedContent

type ItemDeletedContent struct {
	Item *item.Item `json:"item,omitempty"`
}

type ItemDeletedEvent

type ItemDeletedEvent struct {
	BaseEvent
	Content *ItemDeletedContent `json:"content"`
}

ItemDeletedEvent represents a item_deleted webhook event

type ItemEntitlementsRemovedContent

type ItemEntitlementsRemovedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItem *impacteditem.ImpactedItem `json:"impacted_item,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type ItemEntitlementsRemovedEvent

type ItemEntitlementsRemovedEvent struct {
	BaseEvent
	Content *ItemEntitlementsRemovedContent `json:"content"`
}

ItemEntitlementsRemovedEvent represents a item_entitlements_removed webhook event

type ItemEntitlementsUpdatedContent

type ItemEntitlementsUpdatedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItem *impacteditem.ImpactedItem `json:"impacted_item,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type ItemEntitlementsUpdatedEvent

type ItemEntitlementsUpdatedEvent struct {
	BaseEvent
	Content *ItemEntitlementsUpdatedContent `json:"content"`
}

ItemEntitlementsUpdatedEvent represents a item_entitlements_updated webhook event

type ItemFamilyCreatedContent

type ItemFamilyCreatedContent struct {
	ItemFamily *itemfamily.ItemFamily `json:"item_family,omitempty"`
}

type ItemFamilyCreatedEvent

type ItemFamilyCreatedEvent struct {
	BaseEvent
	Content *ItemFamilyCreatedContent `json:"content"`
}

ItemFamilyCreatedEvent represents a item_family_created webhook event

type ItemFamilyDeletedContent

type ItemFamilyDeletedContent struct {
	ItemFamily *itemfamily.ItemFamily `json:"item_family,omitempty"`
}

type ItemFamilyDeletedEvent

type ItemFamilyDeletedEvent struct {
	BaseEvent
	Content *ItemFamilyDeletedContent `json:"content"`
}

ItemFamilyDeletedEvent represents a item_family_deleted webhook event

type ItemFamilyUpdatedContent

type ItemFamilyUpdatedContent struct {
	ItemFamily *itemfamily.ItemFamily `json:"item_family,omitempty"`
}

type ItemFamilyUpdatedEvent

type ItemFamilyUpdatedEvent struct {
	BaseEvent
	Content *ItemFamilyUpdatedContent `json:"content"`
}

ItemFamilyUpdatedEvent represents a item_family_updated webhook event

type ItemPriceCreatedContent

type ItemPriceCreatedContent struct {
	ItemPrice *itemprice.ItemPrice `json:"item_price,omitempty"`
}

type ItemPriceCreatedEvent

type ItemPriceCreatedEvent struct {
	BaseEvent
	Content *ItemPriceCreatedContent `json:"content"`
}

ItemPriceCreatedEvent represents a item_price_created webhook event

type ItemPriceDeletedContent

type ItemPriceDeletedContent struct {
	ItemPrice *itemprice.ItemPrice `json:"item_price,omitempty"`
}

type ItemPriceDeletedEvent

type ItemPriceDeletedEvent struct {
	BaseEvent
	Content *ItemPriceDeletedContent `json:"content"`
}

ItemPriceDeletedEvent represents a item_price_deleted webhook event

type ItemPriceEntitlementsRemovedContent

type ItemPriceEntitlementsRemovedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItemPrice *impacteditemprice.ImpactedItemPrice `json:"impacted_item_price,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type ItemPriceEntitlementsRemovedEvent

type ItemPriceEntitlementsRemovedEvent struct {
	BaseEvent
	Content *ItemPriceEntitlementsRemovedContent `json:"content"`
}

ItemPriceEntitlementsRemovedEvent represents a item_price_entitlements_removed webhook event

type ItemPriceEntitlementsUpdatedContent

type ItemPriceEntitlementsUpdatedContent struct {
	Feature *feature.Feature `json:"feature,omitempty"`

	Metadata *metadata.Metadata `json:"metadata,omitempty"`

	ImpactedItemPrice *impacteditemprice.ImpactedItemPrice `json:"impacted_item_price,omitempty"`

	ImpactedSubscription *impactedsubscription.ImpactedSubscription `json:"impacted_subscription,omitempty"`
}

type ItemPriceEntitlementsUpdatedEvent

type ItemPriceEntitlementsUpdatedEvent struct {
	BaseEvent
	Content *ItemPriceEntitlementsUpdatedContent `json:"content"`
}

ItemPriceEntitlementsUpdatedEvent represents a item_price_entitlements_updated webhook event

type ItemPriceUpdatedContent

type ItemPriceUpdatedContent struct {
	ItemPrice *itemprice.ItemPrice `json:"item_price,omitempty"`
}

type ItemPriceUpdatedEvent

type ItemPriceUpdatedEvent struct {
	BaseEvent
	Content *ItemPriceUpdatedContent `json:"content"`
}

ItemPriceUpdatedEvent represents a item_price_updated webhook event

type ItemUpdatedContent

type ItemUpdatedContent struct {
	Item *item.Item `json:"item,omitempty"`
}

type ItemUpdatedEvent

type ItemUpdatedEvent struct {
	BaseEvent
	Content *ItemUpdatedContent `json:"content"`
}

ItemUpdatedEvent represents a item_updated webhook event

type MrrUpdatedContent

type MrrUpdatedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`
}

type MrrUpdatedEvent

type MrrUpdatedEvent struct {
	BaseEvent
	Content *MrrUpdatedContent `json:"content"`
}

MrrUpdatedEvent represents a mrr_updated webhook event

type NetdPaymentDueReminderContent

type NetdPaymentDueReminderContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type NetdPaymentDueReminderEvent

type NetdPaymentDueReminderEvent struct {
	BaseEvent
	Content *NetdPaymentDueReminderContent `json:"content"`
}

NetdPaymentDueReminderEvent represents a netd_payment_due_reminder webhook event

type OmnichannelOneTimeOrderCreatedContent

type OmnichannelOneTimeOrderCreatedContent struct {
	OmnichannelOneTimeOrder *omnichannelonetimeorder.OmnichannelOneTimeOrder `json:"omnichannel_one_time_order,omitempty"`

	OmnichannelOneTimeOrderItem *omnichannelonetimeorderitem.OmnichannelOneTimeOrderItem `json:"omnichannel_one_time_order_item,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelOneTimeOrderCreatedEvent

type OmnichannelOneTimeOrderCreatedEvent struct {
	BaseEvent
	Content *OmnichannelOneTimeOrderCreatedContent `json:"content"`
}

OmnichannelOneTimeOrderCreatedEvent represents a omnichannel_one_time_order_created webhook event

type OmnichannelOneTimeOrderItemCancelledContent

type OmnichannelOneTimeOrderItemCancelledContent struct {
	OmnichannelOneTimeOrder *omnichannelonetimeorder.OmnichannelOneTimeOrder `json:"omnichannel_one_time_order,omitempty"`

	OmnichannelOneTimeOrderItem *omnichannelonetimeorderitem.OmnichannelOneTimeOrderItem `json:"omnichannel_one_time_order_item,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelOneTimeOrderItemCancelledEvent

type OmnichannelOneTimeOrderItemCancelledEvent struct {
	BaseEvent
	Content *OmnichannelOneTimeOrderItemCancelledContent `json:"content"`
}

OmnichannelOneTimeOrderItemCancelledEvent represents a omnichannel_one_time_order_item_cancelled webhook event

type OmnichannelSubscriptionCreatedContent

type OmnichannelSubscriptionCreatedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionCreatedEvent

type OmnichannelSubscriptionCreatedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionCreatedContent `json:"content"`
}

OmnichannelSubscriptionCreatedEvent represents a omnichannel_subscription_created webhook event

type OmnichannelSubscriptionImportedContent

type OmnichannelSubscriptionImportedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionImportedEvent

type OmnichannelSubscriptionImportedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionImportedContent `json:"content"`
}

OmnichannelSubscriptionImportedEvent represents a omnichannel_subscription_imported webhook event

type OmnichannelSubscriptionItemCancellationScheduledContent

type OmnichannelSubscriptionItemCancellationScheduledContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemCancellationScheduledEvent

type OmnichannelSubscriptionItemCancellationScheduledEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemCancellationScheduledContent `json:"content"`
}

OmnichannelSubscriptionItemCancellationScheduledEvent represents a omnichannel_subscription_item_cancellation_scheduled webhook event

type OmnichannelSubscriptionItemCancelledContent

type OmnichannelSubscriptionItemCancelledContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemCancelledEvent

type OmnichannelSubscriptionItemCancelledEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemCancelledContent `json:"content"`
}

OmnichannelSubscriptionItemCancelledEvent represents a omnichannel_subscription_item_cancelled webhook event

type OmnichannelSubscriptionItemChangeScheduledContent

type OmnichannelSubscriptionItemChangeScheduledContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemChangeScheduledEvent

type OmnichannelSubscriptionItemChangeScheduledEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemChangeScheduledContent `json:"content"`
}

OmnichannelSubscriptionItemChangeScheduledEvent represents a omnichannel_subscription_item_change_scheduled webhook event

type OmnichannelSubscriptionItemChangedContent

type OmnichannelSubscriptionItemChangedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemChangedEvent

type OmnichannelSubscriptionItemChangedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemChangedContent `json:"content"`
}

OmnichannelSubscriptionItemChangedEvent represents a omnichannel_subscription_item_changed webhook event

type OmnichannelSubscriptionItemDowngradeScheduledContent

type OmnichannelSubscriptionItemDowngradeScheduledContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemDowngradeScheduledEvent

type OmnichannelSubscriptionItemDowngradeScheduledEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemDowngradeScheduledContent `json:"content"`
}

OmnichannelSubscriptionItemDowngradeScheduledEvent represents a omnichannel_subscription_item_downgrade_scheduled webhook event

type OmnichannelSubscriptionItemDowngradedContent

type OmnichannelSubscriptionItemDowngradedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemDowngradedEvent

type OmnichannelSubscriptionItemDowngradedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemDowngradedContent `json:"content"`
}

OmnichannelSubscriptionItemDowngradedEvent represents a omnichannel_subscription_item_downgraded webhook event

type OmnichannelSubscriptionItemDunningExpiredContent

type OmnichannelSubscriptionItemDunningExpiredContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemDunningExpiredEvent

type OmnichannelSubscriptionItemDunningExpiredEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemDunningExpiredContent `json:"content"`
}

OmnichannelSubscriptionItemDunningExpiredEvent represents a omnichannel_subscription_item_dunning_expired webhook event

type OmnichannelSubscriptionItemDunningStartedContent

type OmnichannelSubscriptionItemDunningStartedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemDunningStartedEvent

type OmnichannelSubscriptionItemDunningStartedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemDunningStartedContent `json:"content"`
}

OmnichannelSubscriptionItemDunningStartedEvent represents a omnichannel_subscription_item_dunning_started webhook event

type OmnichannelSubscriptionItemExpiredContent

type OmnichannelSubscriptionItemExpiredContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemExpiredEvent

type OmnichannelSubscriptionItemExpiredEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemExpiredContent `json:"content"`
}

OmnichannelSubscriptionItemExpiredEvent represents a omnichannel_subscription_item_expired webhook event

type OmnichannelSubscriptionItemGracePeriodExpiredContent

type OmnichannelSubscriptionItemGracePeriodExpiredContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemGracePeriodExpiredEvent

type OmnichannelSubscriptionItemGracePeriodExpiredEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemGracePeriodExpiredContent `json:"content"`
}

OmnichannelSubscriptionItemGracePeriodExpiredEvent represents a omnichannel_subscription_item_grace_period_expired webhook event

type OmnichannelSubscriptionItemGracePeriodStartedContent

type OmnichannelSubscriptionItemGracePeriodStartedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemGracePeriodStartedEvent

type OmnichannelSubscriptionItemGracePeriodStartedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemGracePeriodStartedContent `json:"content"`
}

OmnichannelSubscriptionItemGracePeriodStartedEvent represents a omnichannel_subscription_item_grace_period_started webhook event

type OmnichannelSubscriptionItemPauseScheduledContent

type OmnichannelSubscriptionItemPauseScheduledContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemPauseScheduledEvent

type OmnichannelSubscriptionItemPauseScheduledEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemPauseScheduledContent `json:"content"`
}

OmnichannelSubscriptionItemPauseScheduledEvent represents a omnichannel_subscription_item_pause_scheduled webhook event

type OmnichannelSubscriptionItemPausedContent

type OmnichannelSubscriptionItemPausedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemPausedEvent

type OmnichannelSubscriptionItemPausedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemPausedContent `json:"content"`
}

OmnichannelSubscriptionItemPausedEvent represents a omnichannel_subscription_item_paused webhook event

type OmnichannelSubscriptionItemReactivatedContent

type OmnichannelSubscriptionItemReactivatedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemReactivatedEvent

type OmnichannelSubscriptionItemReactivatedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemReactivatedContent `json:"content"`
}

OmnichannelSubscriptionItemReactivatedEvent represents a omnichannel_subscription_item_reactivated webhook event

type OmnichannelSubscriptionItemRenewedContent

type OmnichannelSubscriptionItemRenewedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemRenewedEvent

type OmnichannelSubscriptionItemRenewedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemRenewedContent `json:"content"`
}

OmnichannelSubscriptionItemRenewedEvent represents a omnichannel_subscription_item_renewed webhook event

type OmnichannelSubscriptionItemResubscribedContent

type OmnichannelSubscriptionItemResubscribedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemResubscribedEvent

type OmnichannelSubscriptionItemResubscribedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemResubscribedContent `json:"content"`
}

OmnichannelSubscriptionItemResubscribedEvent represents a omnichannel_subscription_item_resubscribed webhook event

type OmnichannelSubscriptionItemResumedContent

type OmnichannelSubscriptionItemResumedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemResumedEvent

type OmnichannelSubscriptionItemResumedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemResumedContent `json:"content"`
}

OmnichannelSubscriptionItemResumedEvent represents a omnichannel_subscription_item_resumed webhook event

type OmnichannelSubscriptionItemScheduledCancellationRemovedContent

type OmnichannelSubscriptionItemScheduledCancellationRemovedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemScheduledCancellationRemovedEvent

type OmnichannelSubscriptionItemScheduledCancellationRemovedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemScheduledCancellationRemovedContent `json:"content"`
}

OmnichannelSubscriptionItemScheduledCancellationRemovedEvent represents a omnichannel_subscription_item_scheduled_cancellation_removed webhook event

type OmnichannelSubscriptionItemScheduledChangeRemovedContent

type OmnichannelSubscriptionItemScheduledChangeRemovedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemScheduledChangeRemovedEvent

type OmnichannelSubscriptionItemScheduledChangeRemovedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemScheduledChangeRemovedContent `json:"content"`
}

OmnichannelSubscriptionItemScheduledChangeRemovedEvent represents a omnichannel_subscription_item_scheduled_change_removed webhook event

type OmnichannelSubscriptionItemScheduledDowngradeRemovedContent

type OmnichannelSubscriptionItemScheduledDowngradeRemovedContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemScheduledDowngradeRemovedEvent

type OmnichannelSubscriptionItemScheduledDowngradeRemovedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemScheduledDowngradeRemovedContent `json:"content"`
}

OmnichannelSubscriptionItemScheduledDowngradeRemovedEvent represents a omnichannel_subscription_item_scheduled_downgrade_removed webhook event

type OmnichannelSubscriptionItemUpgradedContent

type OmnichannelSubscriptionItemUpgradedContent struct {
	OmnichannelSubscriptionItem *omnichannelsubscriptionitem.OmnichannelSubscriptionItem `json:"omnichannel_subscription_item,omitempty"`

	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`

	OmnichannelSubscriptionItemScheduledChange *omnichannelsubscriptionitemscheduledchange.OmnichannelSubscriptionItemScheduledChange `json:"omnichannel_subscription_item_scheduled_change,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionItemUpgradedEvent

type OmnichannelSubscriptionItemUpgradedEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionItemUpgradedContent `json:"content"`
}

OmnichannelSubscriptionItemUpgradedEvent represents a omnichannel_subscription_item_upgraded webhook event

type OmnichannelSubscriptionMovedInContent

type OmnichannelSubscriptionMovedInContent struct {
	OmnichannelSubscription *omnichannelsubscription.OmnichannelSubscription `json:"omnichannel_subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type OmnichannelSubscriptionMovedInEvent

type OmnichannelSubscriptionMovedInEvent struct {
	BaseEvent
	Content *OmnichannelSubscriptionMovedInContent `json:"content"`
}

OmnichannelSubscriptionMovedInEvent represents a omnichannel_subscription_moved_in webhook event

type OmnichannelTransactionCreatedContent

type OmnichannelTransactionCreatedContent struct {
	OmnichannelTransaction *omnichanneltransaction.OmnichannelTransaction `json:"omnichannel_transaction,omitempty"`
}

type OmnichannelTransactionCreatedEvent

type OmnichannelTransactionCreatedEvent struct {
	BaseEvent
	Content *OmnichannelTransactionCreatedContent `json:"content"`
}

OmnichannelTransactionCreatedEvent represents a omnichannel_transaction_created webhook event

type OrderCancelledContent

type OrderCancelledContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderCancelledEvent

type OrderCancelledEvent struct {
	BaseEvent
	Content *OrderCancelledContent `json:"content"`
}

OrderCancelledEvent represents a order_cancelled webhook event

type OrderCreatedContent

type OrderCreatedContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderCreatedEvent

type OrderCreatedEvent struct {
	BaseEvent
	Content *OrderCreatedContent `json:"content"`
}

OrderCreatedEvent represents a order_created webhook event

type OrderDeletedContent

type OrderDeletedContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderDeletedEvent

type OrderDeletedEvent struct {
	BaseEvent
	Content *OrderDeletedContent `json:"content"`
}

OrderDeletedEvent represents a order_deleted webhook event

type OrderDeliveredContent

type OrderDeliveredContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderDeliveredEvent

type OrderDeliveredEvent struct {
	BaseEvent
	Content *OrderDeliveredContent `json:"content"`
}

OrderDeliveredEvent represents a order_delivered webhook event

type OrderReadyToProcessContent

type OrderReadyToProcessContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderReadyToProcessEvent

type OrderReadyToProcessEvent struct {
	BaseEvent
	Content *OrderReadyToProcessContent `json:"content"`
}

OrderReadyToProcessEvent represents a order_ready_to_process webhook event

type OrderReadyToShipContent

type OrderReadyToShipContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderReadyToShipEvent

type OrderReadyToShipEvent struct {
	BaseEvent
	Content *OrderReadyToShipContent `json:"content"`
}

OrderReadyToShipEvent represents a order_ready_to_ship webhook event

type OrderResentContent

type OrderResentContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderResentEvent

type OrderResentEvent struct {
	BaseEvent
	Content *OrderResentContent `json:"content"`
}

OrderResentEvent represents a order_resent webhook event

type OrderReturnedContent

type OrderReturnedContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderReturnedEvent

type OrderReturnedEvent struct {
	BaseEvent
	Content *OrderReturnedContent `json:"content"`
}

OrderReturnedEvent represents a order_returned webhook event

type OrderUpdatedContent

type OrderUpdatedContent struct {
	Order *order.Order `json:"order,omitempty"`
}

type OrderUpdatedEvent

type OrderUpdatedEvent struct {
	BaseEvent
	Content *OrderUpdatedContent `json:"content"`
}

OrderUpdatedEvent represents a order_updated webhook event

type PaymentDueReminderContent added in v3.45.0

type PaymentDueReminderContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type PaymentDueReminderEvent added in v3.45.0

type PaymentDueReminderEvent struct {
	BaseEvent
	Content *PaymentDueReminderContent `json:"content"`
}

PaymentDueReminderEvent represents a payment_due_reminder webhook event

type PaymentFailedContent

type PaymentFailedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type PaymentFailedEvent

type PaymentFailedEvent struct {
	BaseEvent
	Content *PaymentFailedContent `json:"content"`
}

PaymentFailedEvent represents a payment_failed webhook event

type PaymentInitiatedContent

type PaymentInitiatedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type PaymentInitiatedEvent

type PaymentInitiatedEvent struct {
	BaseEvent
	Content *PaymentInitiatedContent `json:"content"`
}

PaymentInitiatedEvent represents a payment_initiated webhook event

type PaymentIntentCreatedContent

type PaymentIntentCreatedContent struct {
	PaymentIntent *paymentintent.PaymentIntent `json:"payment_intent,omitempty"`
}

type PaymentIntentCreatedEvent

type PaymentIntentCreatedEvent struct {
	BaseEvent
	Content *PaymentIntentCreatedContent `json:"content"`
}

PaymentIntentCreatedEvent represents a payment_intent_created webhook event

type PaymentIntentUpdatedContent

type PaymentIntentUpdatedContent struct {
	PaymentIntent *paymentintent.PaymentIntent `json:"payment_intent,omitempty"`
}

type PaymentIntentUpdatedEvent

type PaymentIntentUpdatedEvent struct {
	BaseEvent
	Content *PaymentIntentUpdatedContent `json:"content"`
}

PaymentIntentUpdatedEvent represents a payment_intent_updated webhook event

type PaymentRefundedContent

type PaymentRefundedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type PaymentRefundedEvent

type PaymentRefundedEvent struct {
	BaseEvent
	Content *PaymentRefundedContent `json:"content"`
}

PaymentRefundedEvent represents a payment_refunded webhook event

type PaymentScheduleSchemeCreatedContent

type PaymentScheduleSchemeCreatedContent struct {
	PaymentScheduleScheme *paymentschedulescheme.PaymentScheduleScheme `json:"payment_schedule_scheme,omitempty"`
}

type PaymentScheduleSchemeCreatedEvent

type PaymentScheduleSchemeCreatedEvent struct {
	BaseEvent
	Content *PaymentScheduleSchemeCreatedContent `json:"content"`
}

PaymentScheduleSchemeCreatedEvent represents a payment_schedule_scheme_created webhook event

type PaymentScheduleSchemeDeletedContent

type PaymentScheduleSchemeDeletedContent struct {
	PaymentScheduleScheme *paymentschedulescheme.PaymentScheduleScheme `json:"payment_schedule_scheme,omitempty"`
}

type PaymentScheduleSchemeDeletedEvent

type PaymentScheduleSchemeDeletedEvent struct {
	BaseEvent
	Content *PaymentScheduleSchemeDeletedContent `json:"content"`
}

PaymentScheduleSchemeDeletedEvent represents a payment_schedule_scheme_deleted webhook event

type PaymentSchedulesCreatedContent

type PaymentSchedulesCreatedContent struct {
	PaymentSchedule *paymentschedule.PaymentSchedule `json:"payment_schedule,omitempty"`
}

type PaymentSchedulesCreatedEvent

type PaymentSchedulesCreatedEvent struct {
	BaseEvent
	Content *PaymentSchedulesCreatedContent `json:"content"`
}

PaymentSchedulesCreatedEvent represents a payment_schedules_created webhook event

type PaymentSchedulesUpdatedContent

type PaymentSchedulesUpdatedContent struct {
	PaymentSchedule *paymentschedule.PaymentSchedule `json:"payment_schedule,omitempty"`
}

type PaymentSchedulesUpdatedEvent

type PaymentSchedulesUpdatedEvent struct {
	BaseEvent
	Content *PaymentSchedulesUpdatedContent `json:"content"`
}

PaymentSchedulesUpdatedEvent represents a payment_schedules_updated webhook event

type PaymentSourceAddedContent

type PaymentSourceAddedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
}

type PaymentSourceAddedEvent

type PaymentSourceAddedEvent struct {
	BaseEvent
	Content *PaymentSourceAddedContent `json:"content"`
}

PaymentSourceAddedEvent represents a payment_source_added webhook event

type PaymentSourceDeletedContent

type PaymentSourceDeletedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
}

type PaymentSourceDeletedEvent

type PaymentSourceDeletedEvent struct {
	BaseEvent
	Content *PaymentSourceDeletedContent `json:"content"`
}

PaymentSourceDeletedEvent represents a payment_source_deleted webhook event

type PaymentSourceExpiredContent

type PaymentSourceExpiredContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
}

type PaymentSourceExpiredEvent

type PaymentSourceExpiredEvent struct {
	BaseEvent
	Content *PaymentSourceExpiredContent `json:"content"`
}

PaymentSourceExpiredEvent represents a payment_source_expired webhook event

type PaymentSourceExpiringContent

type PaymentSourceExpiringContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
}

type PaymentSourceExpiringEvent

type PaymentSourceExpiringEvent struct {
	BaseEvent
	Content *PaymentSourceExpiringContent `json:"content"`
}

PaymentSourceExpiringEvent represents a payment_source_expiring webhook event

type PaymentSourceLocallyDeletedContent

type PaymentSourceLocallyDeletedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
}

type PaymentSourceLocallyDeletedEvent

type PaymentSourceLocallyDeletedEvent struct {
	BaseEvent
	Content *PaymentSourceLocallyDeletedContent `json:"content"`
}

PaymentSourceLocallyDeletedEvent represents a payment_source_locally_deleted webhook event

type PaymentSourceUpdatedContent

type PaymentSourceUpdatedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PaymentSource *paymentsource.PaymentSource `json:"payment_source,omitempty"`
}

type PaymentSourceUpdatedEvent

type PaymentSourceUpdatedEvent struct {
	BaseEvent
	Content *PaymentSourceUpdatedContent `json:"content"`
}

PaymentSourceUpdatedEvent represents a payment_source_updated webhook event

type PaymentSucceededContent

type PaymentSucceededContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type PaymentSucceededEvent

type PaymentSucceededEvent struct {
	BaseEvent
	Content *PaymentSucceededContent `json:"content"`
}

PaymentSucceededEvent represents a payment_succeeded webhook event

type PendingInvoiceCreatedContent

type PendingInvoiceCreatedContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type PendingInvoiceCreatedEvent

type PendingInvoiceCreatedEvent struct {
	BaseEvent
	Content *PendingInvoiceCreatedContent `json:"content"`
}

PendingInvoiceCreatedEvent represents a pending_invoice_created webhook event

type PendingInvoiceUpdatedContent

type PendingInvoiceUpdatedContent struct {
	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type PendingInvoiceUpdatedEvent

type PendingInvoiceUpdatedEvent struct {
	BaseEvent
	Content *PendingInvoiceUpdatedContent `json:"content"`
}

PendingInvoiceUpdatedEvent represents a pending_invoice_updated webhook event

type PlanCreatedContent

type PlanCreatedContent struct {
	Plan *plan.Plan `json:"plan,omitempty"`
}

type PlanCreatedEvent

type PlanCreatedEvent struct {
	BaseEvent
	Content *PlanCreatedContent `json:"content"`
}

PlanCreatedEvent represents a plan_created webhook event

type PlanDeletedContent

type PlanDeletedContent struct {
	Plan *plan.Plan `json:"plan,omitempty"`
}

type PlanDeletedEvent

type PlanDeletedEvent struct {
	BaseEvent
	Content *PlanDeletedContent `json:"content"`
}

PlanDeletedEvent represents a plan_deleted webhook event

type PlanUpdatedContent

type PlanUpdatedContent struct {
	Plan *plan.Plan `json:"plan,omitempty"`
}

type PlanUpdatedEvent

type PlanUpdatedEvent struct {
	BaseEvent
	Content *PlanUpdatedContent `json:"content"`
}

PlanUpdatedEvent represents a plan_updated webhook event

type PriceVariantCreatedContent

type PriceVariantCreatedContent struct {
	PriceVariant *pricevariant.PriceVariant `json:"price_variant,omitempty"`

	Attribute *attribute.Attribute `json:"attribute,omitempty"`
}

type PriceVariantCreatedEvent

type PriceVariantCreatedEvent struct {
	BaseEvent
	Content *PriceVariantCreatedContent `json:"content"`
}

PriceVariantCreatedEvent represents a price_variant_created webhook event

type PriceVariantDeletedContent

type PriceVariantDeletedContent struct {
	PriceVariant *pricevariant.PriceVariant `json:"price_variant,omitempty"`

	Attribute *attribute.Attribute `json:"attribute,omitempty"`
}

type PriceVariantDeletedEvent

type PriceVariantDeletedEvent struct {
	BaseEvent
	Content *PriceVariantDeletedContent `json:"content"`
}

PriceVariantDeletedEvent represents a price_variant_deleted webhook event

type PriceVariantUpdatedContent

type PriceVariantUpdatedContent struct {
	PriceVariant *pricevariant.PriceVariant `json:"price_variant,omitempty"`

	Attribute *attribute.Attribute `json:"attribute,omitempty"`
}

type PriceVariantUpdatedEvent

type PriceVariantUpdatedEvent struct {
	BaseEvent
	Content *PriceVariantUpdatedContent `json:"content"`
}

PriceVariantUpdatedEvent represents a price_variant_updated webhook event

type ProductCreatedContent

type ProductCreatedContent struct {
}

type ProductCreatedEvent

type ProductCreatedEvent struct {
	BaseEvent
	Content *ProductCreatedContent `json:"content"`
}

ProductCreatedEvent represents a product_created webhook event

type ProductDeletedContent

type ProductDeletedContent struct {
}

type ProductDeletedEvent

type ProductDeletedEvent struct {
	BaseEvent
	Content *ProductDeletedContent `json:"content"`
}

ProductDeletedEvent represents a product_deleted webhook event

type ProductUpdatedContent

type ProductUpdatedContent struct {
}

type ProductUpdatedEvent

type ProductUpdatedEvent struct {
	BaseEvent
	Content *ProductUpdatedContent `json:"content"`
}

ProductUpdatedEvent represents a product_updated webhook event

type PromotionalCreditsAddedContent

type PromotionalCreditsAddedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PromotionalCredit *promotionalcredit.PromotionalCredit `json:"promotional_credit,omitempty"`
}

type PromotionalCreditsAddedEvent

type PromotionalCreditsAddedEvent struct {
	BaseEvent
	Content *PromotionalCreditsAddedContent `json:"content"`
}

PromotionalCreditsAddedEvent represents a promotional_credits_added webhook event

type PromotionalCreditsDeductedContent

type PromotionalCreditsDeductedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	PromotionalCredit *promotionalcredit.PromotionalCredit `json:"promotional_credit,omitempty"`
}

type PromotionalCreditsDeductedEvent

type PromotionalCreditsDeductedEvent struct {
	BaseEvent
	Content *PromotionalCreditsDeductedContent `json:"content"`
}

PromotionalCreditsDeductedEvent represents a promotional_credits_deducted webhook event

type PurchaseCreatedContent

type PurchaseCreatedContent struct {
	Purchase *purchase.Purchase `json:"purchase,omitempty"`
}

type PurchaseCreatedEvent

type PurchaseCreatedEvent struct {
	BaseEvent
	Content *PurchaseCreatedContent `json:"content"`
}

PurchaseCreatedEvent represents a purchase_created webhook event

type QuoteCreatedContent

type QuoteCreatedContent struct {
	Quote *quote.Quote `json:"quote,omitempty"`
}

type QuoteCreatedEvent

type QuoteCreatedEvent struct {
	BaseEvent
	Content *QuoteCreatedContent `json:"content"`
}

QuoteCreatedEvent represents a quote_created webhook event

type QuoteDeletedContent

type QuoteDeletedContent struct {
	Quote *quote.Quote `json:"quote,omitempty"`
}

type QuoteDeletedEvent

type QuoteDeletedEvent struct {
	BaseEvent
	Content *QuoteDeletedContent `json:"content"`
}

QuoteDeletedEvent represents a quote_deleted webhook event

type QuoteUpdatedContent

type QuoteUpdatedContent struct {
	Quote *quote.Quote `json:"quote,omitempty"`
}

type QuoteUpdatedEvent

type QuoteUpdatedEvent struct {
	BaseEvent
	Content *QuoteUpdatedContent `json:"content"`
}

QuoteUpdatedEvent represents a quote_updated webhook event

type RecordPurchaseFailedContent

type RecordPurchaseFailedContent struct {
	RecordedPurchase *recordedpurchase.RecordedPurchase `json:"recorded_purchase,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`
}

type RecordPurchaseFailedEvent

type RecordPurchaseFailedEvent struct {
	BaseEvent
	Content *RecordPurchaseFailedContent `json:"content"`
}

RecordPurchaseFailedEvent represents a record_purchase_failed webhook event

type RefundInitiatedContent

type RefundInitiatedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Card *card.Card `json:"card,omitempty"`
}

type RefundInitiatedEvent

type RefundInitiatedEvent struct {
	BaseEvent
	Content *RefundInitiatedContent `json:"content"`
}

RefundInitiatedEvent represents a refund_initiated webhook event

type RuleCreatedContent

type RuleCreatedContent struct {
	Rule *rule.Rule `json:"rule,omitempty"`
}

type RuleCreatedEvent

type RuleCreatedEvent struct {
	BaseEvent
	Content *RuleCreatedContent `json:"content"`
}

RuleCreatedEvent represents a rule_created webhook event

type RuleDeletedContent

type RuleDeletedContent struct {
	Rule *rule.Rule `json:"rule,omitempty"`
}

type RuleDeletedEvent

type RuleDeletedEvent struct {
	BaseEvent
	Content *RuleDeletedContent `json:"content"`
}

RuleDeletedEvent represents a rule_deleted webhook event

type RuleUpdatedContent

type RuleUpdatedContent struct {
	Rule *rule.Rule `json:"rule,omitempty"`
}

type RuleUpdatedEvent

type RuleUpdatedEvent struct {
	BaseEvent
	Content *RuleUpdatedContent `json:"content"`
}

RuleUpdatedEvent represents a rule_updated webhook event

type SalesOrderCreatedContent

type SalesOrderCreatedContent struct {
}

type SalesOrderCreatedEvent

type SalesOrderCreatedEvent struct {
	BaseEvent
	Content *SalesOrderCreatedContent `json:"content"`
}

SalesOrderCreatedEvent represents a sales_order_created webhook event

type SalesOrderUpdatedContent

type SalesOrderUpdatedContent struct {
}

type SalesOrderUpdatedEvent

type SalesOrderUpdatedEvent struct {
	BaseEvent
	Content *SalesOrderUpdatedContent `json:"content"`
}

SalesOrderUpdatedEvent represents a sales_order_updated webhook event

type SubscriptionActivatedContent

type SubscriptionActivatedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type SubscriptionActivatedEvent

type SubscriptionActivatedEvent struct {
	BaseEvent
	Content *SubscriptionActivatedContent `json:"content"`
}

SubscriptionActivatedEvent represents a subscription_activated webhook event

type SubscriptionActivatedWithBackdatingContent

type SubscriptionActivatedWithBackdatingContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionActivatedWithBackdatingEvent

type SubscriptionActivatedWithBackdatingEvent struct {
	BaseEvent
	Content *SubscriptionActivatedWithBackdatingContent `json:"content"`
}

SubscriptionActivatedWithBackdatingEvent represents a subscription_activated_with_backdating webhook event

type SubscriptionAdvanceInvoiceScheduleAddedContent

type SubscriptionAdvanceInvoiceScheduleAddedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	AdvanceInvoiceSchedule []*advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionAdvanceInvoiceScheduleAddedEvent

type SubscriptionAdvanceInvoiceScheduleAddedEvent struct {
	BaseEvent
	Content *SubscriptionAdvanceInvoiceScheduleAddedContent `json:"content"`
}

SubscriptionAdvanceInvoiceScheduleAddedEvent represents a subscription_advance_invoice_schedule_added webhook event

type SubscriptionAdvanceInvoiceScheduleRemovedContent

type SubscriptionAdvanceInvoiceScheduleRemovedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	AdvanceInvoiceSchedule []*advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionAdvanceInvoiceScheduleRemovedEvent

type SubscriptionAdvanceInvoiceScheduleRemovedEvent struct {
	BaseEvent
	Content *SubscriptionAdvanceInvoiceScheduleRemovedContent `json:"content"`
}

SubscriptionAdvanceInvoiceScheduleRemovedEvent represents a subscription_advance_invoice_schedule_removed webhook event

type SubscriptionAdvanceInvoiceScheduleUpdatedContent

type SubscriptionAdvanceInvoiceScheduleUpdatedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	AdvanceInvoiceSchedule []*advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionAdvanceInvoiceScheduleUpdatedEvent

type SubscriptionAdvanceInvoiceScheduleUpdatedEvent struct {
	BaseEvent
	Content *SubscriptionAdvanceInvoiceScheduleUpdatedContent `json:"content"`
}

SubscriptionAdvanceInvoiceScheduleUpdatedEvent represents a subscription_advance_invoice_schedule_updated webhook event

type SubscriptionBusinessEntityChangedContent

type SubscriptionBusinessEntityChangedContent struct {
	BusinessEntityTransfer *businessentitytransfer.BusinessEntityTransfer `json:"business_entity_transfer,omitempty"`

	Subscription *subscription.Subscription `json:"subscription,omitempty"`
}

type SubscriptionBusinessEntityChangedEvent

type SubscriptionBusinessEntityChangedEvent struct {
	BaseEvent
	Content *SubscriptionBusinessEntityChangedContent `json:"content"`
}

SubscriptionBusinessEntityChangedEvent represents a subscription_business_entity_changed webhook event

type SubscriptionCanceledWithBackdatingContent

type SubscriptionCanceledWithBackdatingContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote []*creditnote.CreditNote `json:"credit_note,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionCanceledWithBackdatingEvent

type SubscriptionCanceledWithBackdatingEvent struct {
	BaseEvent
	Content *SubscriptionCanceledWithBackdatingContent `json:"content"`
}

SubscriptionCanceledWithBackdatingEvent represents a subscription_canceled_with_backdating webhook event

type SubscriptionCancellationReminderContent

type SubscriptionCancellationReminderContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionCancellationReminderEvent

type SubscriptionCancellationReminderEvent struct {
	BaseEvent
	Content *SubscriptionCancellationReminderContent `json:"content"`
}

SubscriptionCancellationReminderEvent represents a subscription_cancellation_reminder webhook event

type SubscriptionCancellationScheduledContent

type SubscriptionCancellationScheduledContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionCancellationScheduledEvent

type SubscriptionCancellationScheduledEvent struct {
	BaseEvent
	Content *SubscriptionCancellationScheduledContent `json:"content"`
}

SubscriptionCancellationScheduledEvent represents a subscription_cancellation_scheduled webhook event

type SubscriptionCancelledContent

type SubscriptionCancelledContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote []*creditnote.CreditNote `json:"credit_note,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionCancelledEvent

type SubscriptionCancelledEvent struct {
	BaseEvent
	Content *SubscriptionCancelledContent `json:"content"`
}

SubscriptionCancelledEvent represents a subscription_cancelled webhook event

type SubscriptionChangedContent

type SubscriptionChangedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote []*creditnote.CreditNote `json:"credit_note,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionChangedEvent

type SubscriptionChangedEvent struct {
	BaseEvent
	Content *SubscriptionChangedContent `json:"content"`
}

SubscriptionChangedEvent represents a subscription_changed webhook event

type SubscriptionChangedWithBackdatingContent

type SubscriptionChangedWithBackdatingContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote []*creditnote.CreditNote `json:"credit_note,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionChangedWithBackdatingEvent

type SubscriptionChangedWithBackdatingEvent struct {
	BaseEvent
	Content *SubscriptionChangedWithBackdatingContent `json:"content"`
}

SubscriptionChangedWithBackdatingEvent represents a subscription_changed_with_backdating webhook event

type SubscriptionChangesScheduledContent

type SubscriptionChangesScheduledContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionChangesScheduledEvent

type SubscriptionChangesScheduledEvent struct {
	BaseEvent
	Content *SubscriptionChangesScheduledContent `json:"content"`
}

SubscriptionChangesScheduledEvent represents a subscription_changes_scheduled webhook event

type SubscriptionCreatedContent

type SubscriptionCreatedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionCreatedEvent

type SubscriptionCreatedEvent struct {
	BaseEvent
	Content *SubscriptionCreatedContent `json:"content"`
}

SubscriptionCreatedEvent represents a subscription_created webhook event

type SubscriptionCreatedWithBackdatingContent

type SubscriptionCreatedWithBackdatingContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionCreatedWithBackdatingEvent

type SubscriptionCreatedWithBackdatingEvent struct {
	BaseEvent
	Content *SubscriptionCreatedWithBackdatingContent `json:"content"`
}

SubscriptionCreatedWithBackdatingEvent represents a subscription_created_with_backdating webhook event

type SubscriptionDeletedContent

type SubscriptionDeletedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionDeletedEvent

type SubscriptionDeletedEvent struct {
	BaseEvent
	Content *SubscriptionDeletedContent `json:"content"`
}

SubscriptionDeletedEvent represents a subscription_deleted webhook event

type SubscriptionEntitlementsCreatedContent

type SubscriptionEntitlementsCreatedContent struct {
	SubscriptionEntitlementsCreatedDetail *subscriptionentitlementscreateddetail.SubscriptionEntitlementsCreatedDetail `json:"subscription_entitlements_created_detail,omitempty"`
}

type SubscriptionEntitlementsCreatedEvent

type SubscriptionEntitlementsCreatedEvent struct {
	BaseEvent
	Content *SubscriptionEntitlementsCreatedContent `json:"content"`
}

SubscriptionEntitlementsCreatedEvent represents a subscription_entitlements_created webhook event

type SubscriptionEntitlementsUpdatedContent

type SubscriptionEntitlementsUpdatedContent struct {
	SubscriptionEntitlementsUpdatedDetail *subscriptionentitlementsupdateddetail.SubscriptionEntitlementsUpdatedDetail `json:"subscription_entitlements_updated_detail,omitempty"`
}

type SubscriptionEntitlementsUpdatedEvent

type SubscriptionEntitlementsUpdatedEvent struct {
	BaseEvent
	Content *SubscriptionEntitlementsUpdatedContent `json:"content"`
}

SubscriptionEntitlementsUpdatedEvent represents a subscription_entitlements_updated webhook event

type SubscriptionItemsRenewedContent

type SubscriptionItemsRenewedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote []*creditnote.CreditNote `json:"credit_note,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionItemsRenewedEvent

type SubscriptionItemsRenewedEvent struct {
	BaseEvent
	Content *SubscriptionItemsRenewedContent `json:"content"`
}

SubscriptionItemsRenewedEvent represents a subscription_items_renewed webhook event

type SubscriptionMovedInContent

type SubscriptionMovedInContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`
}

type SubscriptionMovedInEvent

type SubscriptionMovedInEvent struct {
	BaseEvent
	Content *SubscriptionMovedInContent `json:"content"`
}

SubscriptionMovedInEvent represents a subscription_moved_in webhook event

type SubscriptionMovedOutContent

type SubscriptionMovedOutContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`
}

type SubscriptionMovedOutEvent

type SubscriptionMovedOutEvent struct {
	BaseEvent
	Content *SubscriptionMovedOutContent `json:"content"`
}

SubscriptionMovedOutEvent represents a subscription_moved_out webhook event

type SubscriptionMovementFailedContent

type SubscriptionMovementFailedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`
}

type SubscriptionMovementFailedEvent

type SubscriptionMovementFailedEvent struct {
	BaseEvent
	Content *SubscriptionMovementFailedContent `json:"content"`
}

SubscriptionMovementFailedEvent represents a subscription_movement_failed webhook event

type SubscriptionPauseScheduledContent

type SubscriptionPauseScheduledContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionPauseScheduledEvent

type SubscriptionPauseScheduledEvent struct {
	BaseEvent
	Content *SubscriptionPauseScheduledContent `json:"content"`
}

SubscriptionPauseScheduledEvent represents a subscription_pause_scheduled webhook event

type SubscriptionPausedContent

type SubscriptionPausedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote []*creditnote.CreditNote `json:"credit_note,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionPausedEvent

type SubscriptionPausedEvent struct {
	BaseEvent
	Content *SubscriptionPausedContent `json:"content"`
}

SubscriptionPausedEvent represents a subscription_paused webhook event

type SubscriptionRampAppliedContent

type SubscriptionRampAppliedContent struct {
	Ramp *ramp.Ramp `json:"ramp,omitempty"`
}

type SubscriptionRampAppliedEvent

type SubscriptionRampAppliedEvent struct {
	BaseEvent
	Content *SubscriptionRampAppliedContent `json:"content"`
}

SubscriptionRampAppliedEvent represents a subscription_ramp_applied webhook event

type SubscriptionRampCreatedContent

type SubscriptionRampCreatedContent struct {
	Ramp *ramp.Ramp `json:"ramp,omitempty"`
}

type SubscriptionRampCreatedEvent

type SubscriptionRampCreatedEvent struct {
	BaseEvent
	Content *SubscriptionRampCreatedContent `json:"content"`
}

SubscriptionRampCreatedEvent represents a subscription_ramp_created webhook event

type SubscriptionRampDeletedContent

type SubscriptionRampDeletedContent struct {
	Ramp *ramp.Ramp `json:"ramp,omitempty"`
}

type SubscriptionRampDeletedEvent

type SubscriptionRampDeletedEvent struct {
	BaseEvent
	Content *SubscriptionRampDeletedContent `json:"content"`
}

SubscriptionRampDeletedEvent represents a subscription_ramp_deleted webhook event

type SubscriptionRampDraftedContent

type SubscriptionRampDraftedContent struct {
	Ramp *ramp.Ramp `json:"ramp,omitempty"`
}

type SubscriptionRampDraftedEvent

type SubscriptionRampDraftedEvent struct {
	BaseEvent
	Content *SubscriptionRampDraftedContent `json:"content"`
}

SubscriptionRampDraftedEvent represents a subscription_ramp_drafted webhook event

type SubscriptionRampUpdatedContent

type SubscriptionRampUpdatedContent struct {
	Ramp *ramp.Ramp `json:"ramp,omitempty"`
}

type SubscriptionRampUpdatedEvent

type SubscriptionRampUpdatedEvent struct {
	BaseEvent
	Content *SubscriptionRampUpdatedContent `json:"content"`
}

SubscriptionRampUpdatedEvent represents a subscription_ramp_updated webhook event

type SubscriptionReactivatedContent

type SubscriptionReactivatedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionReactivatedEvent

type SubscriptionReactivatedEvent struct {
	BaseEvent
	Content *SubscriptionReactivatedContent `json:"content"`
}

SubscriptionReactivatedEvent represents a subscription_reactivated webhook event

type SubscriptionReactivatedWithBackdatingContent

type SubscriptionReactivatedWithBackdatingContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionReactivatedWithBackdatingEvent

type SubscriptionReactivatedWithBackdatingEvent struct {
	BaseEvent
	Content *SubscriptionReactivatedWithBackdatingContent `json:"content"`
}

SubscriptionReactivatedWithBackdatingEvent represents a subscription_reactivated_with_backdating webhook event

type SubscriptionRenewalReminderContent

type SubscriptionRenewalReminderContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionRenewalReminderEvent

type SubscriptionRenewalReminderEvent struct {
	BaseEvent
	Content *SubscriptionRenewalReminderContent `json:"content"`
}

SubscriptionRenewalReminderEvent represents a subscription_renewal_reminder webhook event

type SubscriptionRenewedContent

type SubscriptionRenewedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionRenewedEvent

type SubscriptionRenewedEvent struct {
	BaseEvent
	Content *SubscriptionRenewedContent `json:"content"`
}

SubscriptionRenewedEvent represents a subscription_renewed webhook event

type SubscriptionResumedContent

type SubscriptionResumedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type SubscriptionResumedEvent

type SubscriptionResumedEvent struct {
	BaseEvent
	Content *SubscriptionResumedContent `json:"content"`
}

SubscriptionResumedEvent represents a subscription_resumed webhook event

type SubscriptionResumptionScheduledContent

type SubscriptionResumptionScheduledContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionResumptionScheduledEvent

type SubscriptionResumptionScheduledEvent struct {
	BaseEvent
	Content *SubscriptionResumptionScheduledContent `json:"content"`
}

SubscriptionResumptionScheduledEvent represents a subscription_resumption_scheduled webhook event

type SubscriptionScheduledCancellationRemovedContent

type SubscriptionScheduledCancellationRemovedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionScheduledCancellationRemovedEvent

type SubscriptionScheduledCancellationRemovedEvent struct {
	BaseEvent
	Content *SubscriptionScheduledCancellationRemovedContent `json:"content"`
}

SubscriptionScheduledCancellationRemovedEvent represents a subscription_scheduled_cancellation_removed webhook event

type SubscriptionScheduledChangesRemovedContent

type SubscriptionScheduledChangesRemovedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionScheduledChangesRemovedEvent

type SubscriptionScheduledChangesRemovedEvent struct {
	BaseEvent
	Content *SubscriptionScheduledChangesRemovedContent `json:"content"`
}

SubscriptionScheduledChangesRemovedEvent represents a subscription_scheduled_changes_removed webhook event

type SubscriptionScheduledPauseRemovedContent

type SubscriptionScheduledPauseRemovedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionScheduledPauseRemovedEvent

type SubscriptionScheduledPauseRemovedEvent struct {
	BaseEvent
	Content *SubscriptionScheduledPauseRemovedContent `json:"content"`
}

SubscriptionScheduledPauseRemovedEvent represents a subscription_scheduled_pause_removed webhook event

type SubscriptionScheduledResumptionRemovedContent

type SubscriptionScheduledResumptionRemovedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionScheduledResumptionRemovedEvent

type SubscriptionScheduledResumptionRemovedEvent struct {
	BaseEvent
	Content *SubscriptionScheduledResumptionRemovedContent `json:"content"`
}

SubscriptionScheduledResumptionRemovedEvent represents a subscription_scheduled_resumption_removed webhook event

type SubscriptionShippingAddressUpdatedContent

type SubscriptionShippingAddressUpdatedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionShippingAddressUpdatedEvent

type SubscriptionShippingAddressUpdatedEvent struct {
	BaseEvent
	Content *SubscriptionShippingAddressUpdatedContent `json:"content"`
}

SubscriptionShippingAddressUpdatedEvent represents a subscription_shipping_address_updated webhook event

type SubscriptionStartedContent

type SubscriptionStartedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type SubscriptionStartedEvent

type SubscriptionStartedEvent struct {
	BaseEvent
	Content *SubscriptionStartedContent `json:"content"`
}

SubscriptionStartedEvent represents a subscription_started webhook event

type SubscriptionTrialEndReminderContent

type SubscriptionTrialEndReminderContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionTrialEndReminderEvent

type SubscriptionTrialEndReminderEvent struct {
	BaseEvent
	Content *SubscriptionTrialEndReminderContent `json:"content"`
}

SubscriptionTrialEndReminderEvent represents a subscription_trial_end_reminder webhook event

type SubscriptionTrialExtendedContent

type SubscriptionTrialExtendedContent struct {
	Subscription *subscription.Subscription `json:"subscription,omitempty"`

	Customer *customer.Customer `json:"customer,omitempty"`

	Card *card.Card `json:"card,omitempty"`

	AdvanceInvoiceSchedule *advanceinvoiceschedule.AdvanceInvoiceSchedule `json:"advance_invoice_schedule,omitempty"`
}

type SubscriptionTrialExtendedEvent

type SubscriptionTrialExtendedEvent struct {
	BaseEvent
	Content *SubscriptionTrialExtendedContent `json:"content"`
}

SubscriptionTrialExtendedEvent represents a subscription_trial_extended webhook event

type TaxWithheldDeletedContent

type TaxWithheldDeletedContent struct {
	TaxWithheld *taxwithheld.TaxWithheld `json:"tax_withheld,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type TaxWithheldDeletedEvent

type TaxWithheldDeletedEvent struct {
	BaseEvent
	Content *TaxWithheldDeletedContent `json:"content"`
}

TaxWithheldDeletedEvent represents a tax_withheld_deleted webhook event

type TaxWithheldRecordedContent

type TaxWithheldRecordedContent struct {
	TaxWithheld *taxwithheld.TaxWithheld `json:"tax_withheld,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type TaxWithheldRecordedEvent

type TaxWithheldRecordedEvent struct {
	BaseEvent
	Content *TaxWithheldRecordedContent `json:"content"`
}

TaxWithheldRecordedEvent represents a tax_withheld_recorded webhook event

type TaxWithheldRefundedContent

type TaxWithheldRefundedContent struct {
	TaxWithheld *taxwithheld.TaxWithheld `json:"tax_withheld,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`

	CreditNote *creditnote.CreditNote `json:"credit_note,omitempty"`
}

type TaxWithheldRefundedEvent

type TaxWithheldRefundedEvent struct {
	BaseEvent
	Content *TaxWithheldRefundedContent `json:"content"`
}

TaxWithheldRefundedEvent represents a tax_withheld_refunded webhook event

type TokenConsumedContent

type TokenConsumedContent struct {
	Token *token.Token `json:"token,omitempty"`
}

type TokenConsumedEvent

type TokenConsumedEvent struct {
	BaseEvent
	Content *TokenConsumedContent `json:"content"`
}

TokenConsumedEvent represents a token_consumed webhook event

type TokenCreatedContent

type TokenCreatedContent struct {
	Token *token.Token `json:"token,omitempty"`
}

type TokenCreatedEvent

type TokenCreatedEvent struct {
	BaseEvent
	Content *TokenCreatedContent `json:"content"`
}

TokenCreatedEvent represents a token_created webhook event

type TokenExpiredContent

type TokenExpiredContent struct {
	Token *token.Token `json:"token,omitempty"`
}

type TokenExpiredEvent

type TokenExpiredEvent struct {
	BaseEvent
	Content *TokenExpiredContent `json:"content"`
}

TokenExpiredEvent represents a token_expired webhook event

type TransactionCreatedContent

type TransactionCreatedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`
}

type TransactionCreatedEvent

type TransactionCreatedEvent struct {
	BaseEvent
	Content *TransactionCreatedContent `json:"content"`
}

TransactionCreatedEvent represents a transaction_created webhook event

type TransactionDeletedContent

type TransactionDeletedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`
}

type TransactionDeletedEvent

type TransactionDeletedEvent struct {
	BaseEvent
	Content *TransactionDeletedContent `json:"content"`
}

TransactionDeletedEvent represents a transaction_deleted webhook event

type TransactionUpdatedContent

type TransactionUpdatedContent struct {
	Transaction *transaction.Transaction `json:"transaction,omitempty"`
}

type TransactionUpdatedEvent

type TransactionUpdatedEvent struct {
	BaseEvent
	Content *TransactionUpdatedContent `json:"content"`
}

TransactionUpdatedEvent represents a transaction_updated webhook event

type UnbilledChargesCreatedContent

type UnbilledChargesCreatedContent struct {
	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type UnbilledChargesCreatedEvent

type UnbilledChargesCreatedEvent struct {
	BaseEvent
	Content *UnbilledChargesCreatedContent `json:"content"`
}

UnbilledChargesCreatedEvent represents a unbilled_charges_created webhook event

type UnbilledChargesDeletedContent

type UnbilledChargesDeletedContent struct {
	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type UnbilledChargesDeletedEvent

type UnbilledChargesDeletedEvent struct {
	BaseEvent
	Content *UnbilledChargesDeletedContent `json:"content"`
}

UnbilledChargesDeletedEvent represents a unbilled_charges_deleted webhook event

type UnbilledChargesInvoicedContent

type UnbilledChargesInvoicedContent struct {
	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`

	Invoice *invoice.Invoice `json:"invoice,omitempty"`
}

type UnbilledChargesInvoicedEvent

type UnbilledChargesInvoicedEvent struct {
	BaseEvent
	Content *UnbilledChargesInvoicedContent `json:"content"`
}

UnbilledChargesInvoicedEvent represents a unbilled_charges_invoiced webhook event

type UnbilledChargesVoidedContent

type UnbilledChargesVoidedContent struct {
	UnbilledCharge []*unbilledcharge.UnbilledCharge `json:"unbilled_charge,omitempty"`
}

type UnbilledChargesVoidedEvent

type UnbilledChargesVoidedEvent struct {
	BaseEvent
	Content *UnbilledChargesVoidedContent `json:"content"`
}

UnbilledChargesVoidedEvent represents a unbilled_charges_voided webhook event

type UsageFileIngestedContent

type UsageFileIngestedContent struct {
	UsageFile *usagefile.UsageFile `json:"usage_file,omitempty"`
}

type UsageFileIngestedEvent

type UsageFileIngestedEvent struct {
	BaseEvent
	Content *UsageFileIngestedContent `json:"content"`
}

UsageFileIngestedEvent represents a usage_file_ingested webhook event

type VariantCreatedContent

type VariantCreatedContent struct {
}

type VariantCreatedEvent

type VariantCreatedEvent struct {
	BaseEvent
	Content *VariantCreatedContent `json:"content"`
}

VariantCreatedEvent represents a variant_created webhook event

type VariantDeletedContent

type VariantDeletedContent struct {
}

type VariantDeletedEvent

type VariantDeletedEvent struct {
	BaseEvent
	Content *VariantDeletedContent `json:"content"`
}

VariantDeletedEvent represents a variant_deleted webhook event

type VariantUpdatedContent

type VariantUpdatedContent struct {
}

type VariantUpdatedEvent

type VariantUpdatedEvent struct {
	BaseEvent
	Content *VariantUpdatedContent `json:"content"`
}

VariantUpdatedEvent represents a variant_updated webhook event

type VirtualBankAccountAddedContent

type VirtualBankAccountAddedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	VirtualBankAccount *virtualbankaccount.VirtualBankAccount `json:"virtual_bank_account,omitempty"`
}

type VirtualBankAccountAddedEvent

type VirtualBankAccountAddedEvent struct {
	BaseEvent
	Content *VirtualBankAccountAddedContent `json:"content"`
}

VirtualBankAccountAddedEvent represents a virtual_bank_account_added webhook event

type VirtualBankAccountDeletedContent

type VirtualBankAccountDeletedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	VirtualBankAccount *virtualbankaccount.VirtualBankAccount `json:"virtual_bank_account,omitempty"`
}

type VirtualBankAccountDeletedEvent

type VirtualBankAccountDeletedEvent struct {
	BaseEvent
	Content *VirtualBankAccountDeletedContent `json:"content"`
}

VirtualBankAccountDeletedEvent represents a virtual_bank_account_deleted webhook event

type VirtualBankAccountUpdatedContent

type VirtualBankAccountUpdatedContent struct {
	Customer *customer.Customer `json:"customer,omitempty"`

	VirtualBankAccount *virtualbankaccount.VirtualBankAccount `json:"virtual_bank_account,omitempty"`
}

type VirtualBankAccountUpdatedEvent

type VirtualBankAccountUpdatedEvent struct {
	BaseEvent
	Content *VirtualBankAccountUpdatedContent `json:"content"`
}

VirtualBankAccountUpdatedEvent represents a virtual_bank_account_updated webhook event

type VoucherCreateFailedContent

type VoucherCreateFailedContent struct {
	PaymentVoucher *paymentvoucher.PaymentVoucher `json:"payment_voucher,omitempty"`
}

type VoucherCreateFailedEvent

type VoucherCreateFailedEvent struct {
	BaseEvent
	Content *VoucherCreateFailedContent `json:"content"`
}

VoucherCreateFailedEvent represents a voucher_create_failed webhook event

type VoucherCreatedContent

type VoucherCreatedContent struct {
	PaymentVoucher *paymentvoucher.PaymentVoucher `json:"payment_voucher,omitempty"`
}

type VoucherCreatedEvent

type VoucherCreatedEvent struct {
	BaseEvent
	Content *VoucherCreatedContent `json:"content"`
}

VoucherCreatedEvent represents a voucher_created webhook event

type VoucherExpiredContent

type VoucherExpiredContent struct {
	PaymentVoucher *paymentvoucher.PaymentVoucher `json:"payment_voucher,omitempty"`
}

type VoucherExpiredEvent

type VoucherExpiredEvent struct {
	BaseEvent
	Content *VoucherExpiredContent `json:"content"`
}

VoucherExpiredEvent represents a voucher_expired webhook event

type WebhookHandler

type WebhookHandler struct {
	RequestValidator func(*http.Request) error
	OnError          func(http.ResponseWriter, *http.Request, error)
	OnUnhandledEvent func(enum.EventType, []byte) error

	OnAddUsagesReminder func(AddUsagesReminderEvent) error

	OnAddonCreated func(AddonCreatedEvent) error

	OnAddonDeleted func(AddonDeletedEvent) error

	OnAddonUpdated func(AddonUpdatedEvent) error

	OnAttachedItemCreated func(AttachedItemCreatedEvent) error

	OnAttachedItemDeleted func(AttachedItemDeletedEvent) error

	OnAttachedItemUpdated func(AttachedItemUpdatedEvent) error

	OnAuthorizationSucceeded func(AuthorizationSucceededEvent) error

	OnAuthorizationVoided func(AuthorizationVoidedEvent) error

	OnBusinessEntityCreated func(BusinessEntityCreatedEvent) error

	OnBusinessEntityDeleted func(BusinessEntityDeletedEvent) error

	OnBusinessEntityUpdated func(BusinessEntityUpdatedEvent) error

	OnCardAdded func(CardAddedEvent) error

	OnCardDeleted func(CardDeletedEvent) error

	OnCardExpired func(CardExpiredEvent) error

	OnCardExpiryReminder func(CardExpiryReminderEvent) error

	OnCardUpdated func(CardUpdatedEvent) error

	OnContractTermCancelled func(ContractTermCancelledEvent) error

	OnContractTermCompleted func(ContractTermCompletedEvent) error

	OnContractTermCreated func(ContractTermCreatedEvent) error

	OnContractTermRenewed func(ContractTermRenewedEvent) error

	OnContractTermTerminated func(ContractTermTerminatedEvent) error

	OnCouponCodesAdded func(CouponCodesAddedEvent) error

	OnCouponCodesDeleted func(CouponCodesDeletedEvent) error

	OnCouponCodesUpdated func(CouponCodesUpdatedEvent) error

	OnCouponCreated func(CouponCreatedEvent) error

	OnCouponDeleted func(CouponDeletedEvent) error

	OnCouponSetCreated func(CouponSetCreatedEvent) error

	OnCouponSetDeleted func(CouponSetDeletedEvent) error

	OnCouponSetUpdated func(CouponSetUpdatedEvent) error

	OnCouponUpdated func(CouponUpdatedEvent) error

	OnCreditNoteCreated func(CreditNoteCreatedEvent) error

	OnCreditNoteCreatedWithBackdating func(CreditNoteCreatedWithBackdatingEvent) error

	OnCreditNoteDeleted func(CreditNoteDeletedEvent) error

	OnCreditNoteUpdated func(CreditNoteUpdatedEvent) error

	OnCustomerBusinessEntityChanged func(CustomerBusinessEntityChangedEvent) error

	OnCustomerChanged func(CustomerChangedEvent) error

	OnCustomerCreated func(CustomerCreatedEvent) error

	OnCustomerDeleted func(CustomerDeletedEvent) error

	OnCustomerEntitlementsUpdated func(CustomerEntitlementsUpdatedEvent) error

	OnCustomerMovedIn func(CustomerMovedInEvent) error

	OnCustomerMovedOut func(CustomerMovedOutEvent) error

	OnDifferentialPriceCreated func(DifferentialPriceCreatedEvent) error

	OnDifferentialPriceDeleted func(DifferentialPriceDeletedEvent) error

	OnDifferentialPriceUpdated func(DifferentialPriceUpdatedEvent) error

	OnDunningUpdated func(DunningUpdatedEvent) error

	OnEntitlementOverridesAutoRemoved func(EntitlementOverridesAutoRemovedEvent) error

	OnEntitlementOverridesRemoved func(EntitlementOverridesRemovedEvent) error

	OnEntitlementOverridesUpdated func(EntitlementOverridesUpdatedEvent) error

	OnFeatureActivated func(FeatureActivatedEvent) error

	OnFeatureArchived func(FeatureArchivedEvent) error

	OnFeatureCreated func(FeatureCreatedEvent) error

	OnFeatureDeleted func(FeatureDeletedEvent) error

	OnFeatureReactivated func(FeatureReactivatedEvent) error

	OnFeatureUpdated func(FeatureUpdatedEvent) error

	OnGiftCancelled func(GiftCancelledEvent) error

	OnGiftClaimed func(GiftClaimedEvent) error

	OnGiftExpired func(GiftExpiredEvent) error

	OnGiftScheduled func(GiftScheduledEvent) error

	OnGiftUnclaimed func(GiftUnclaimedEvent) error

	OnGiftUpdated func(GiftUpdatedEvent) error

	OnHierarchyCreated func(HierarchyCreatedEvent) error

	OnHierarchyDeleted func(HierarchyDeletedEvent) error

	OnInvoiceDeleted func(InvoiceDeletedEvent) error

	OnInvoiceGenerated func(InvoiceGeneratedEvent) error

	OnInvoiceGeneratedWithBackdating func(InvoiceGeneratedWithBackdatingEvent) error

	OnInvoiceUpdated func(InvoiceUpdatedEvent) error

	OnItemCreated func(ItemCreatedEvent) error

	OnItemDeleted func(ItemDeletedEvent) error

	OnItemEntitlementsRemoved func(ItemEntitlementsRemovedEvent) error

	OnItemEntitlementsUpdated func(ItemEntitlementsUpdatedEvent) error

	OnItemFamilyCreated func(ItemFamilyCreatedEvent) error

	OnItemFamilyDeleted func(ItemFamilyDeletedEvent) error

	OnItemFamilyUpdated func(ItemFamilyUpdatedEvent) error

	OnItemPriceCreated func(ItemPriceCreatedEvent) error

	OnItemPriceDeleted func(ItemPriceDeletedEvent) error

	OnItemPriceEntitlementsRemoved func(ItemPriceEntitlementsRemovedEvent) error

	OnItemPriceEntitlementsUpdated func(ItemPriceEntitlementsUpdatedEvent) error

	OnItemPriceUpdated func(ItemPriceUpdatedEvent) error

	OnItemUpdated func(ItemUpdatedEvent) error

	OnMrrUpdated func(MrrUpdatedEvent) error

	OnNetdPaymentDueReminder func(NetdPaymentDueReminderEvent) error

	OnOmnichannelOneTimeOrderCreated func(OmnichannelOneTimeOrderCreatedEvent) error

	OnOmnichannelOneTimeOrderItemCancelled func(OmnichannelOneTimeOrderItemCancelledEvent) error

	OnOmnichannelSubscriptionCreated func(OmnichannelSubscriptionCreatedEvent) error

	OnOmnichannelSubscriptionImported func(OmnichannelSubscriptionImportedEvent) error

	OnOmnichannelSubscriptionItemCancellationScheduled func(OmnichannelSubscriptionItemCancellationScheduledEvent) error

	OnOmnichannelSubscriptionItemCancelled func(OmnichannelSubscriptionItemCancelledEvent) error

	OnOmnichannelSubscriptionItemChangeScheduled func(OmnichannelSubscriptionItemChangeScheduledEvent) error

	OnOmnichannelSubscriptionItemChanged func(OmnichannelSubscriptionItemChangedEvent) error

	OnOmnichannelSubscriptionItemDowngradeScheduled func(OmnichannelSubscriptionItemDowngradeScheduledEvent) error

	OnOmnichannelSubscriptionItemDowngraded func(OmnichannelSubscriptionItemDowngradedEvent) error

	OnOmnichannelSubscriptionItemDunningExpired func(OmnichannelSubscriptionItemDunningExpiredEvent) error

	OnOmnichannelSubscriptionItemDunningStarted func(OmnichannelSubscriptionItemDunningStartedEvent) error

	OnOmnichannelSubscriptionItemExpired func(OmnichannelSubscriptionItemExpiredEvent) error

	OnOmnichannelSubscriptionItemGracePeriodExpired func(OmnichannelSubscriptionItemGracePeriodExpiredEvent) error

	OnOmnichannelSubscriptionItemGracePeriodStarted func(OmnichannelSubscriptionItemGracePeriodStartedEvent) error

	OnOmnichannelSubscriptionItemPauseScheduled func(OmnichannelSubscriptionItemPauseScheduledEvent) error

	OnOmnichannelSubscriptionItemPaused func(OmnichannelSubscriptionItemPausedEvent) error

	OnOmnichannelSubscriptionItemReactivated func(OmnichannelSubscriptionItemReactivatedEvent) error

	OnOmnichannelSubscriptionItemRenewed func(OmnichannelSubscriptionItemRenewedEvent) error

	OnOmnichannelSubscriptionItemResubscribed func(OmnichannelSubscriptionItemResubscribedEvent) error

	OnOmnichannelSubscriptionItemResumed func(OmnichannelSubscriptionItemResumedEvent) error

	OnOmnichannelSubscriptionItemScheduledCancellationRemoved func(OmnichannelSubscriptionItemScheduledCancellationRemovedEvent) error

	OnOmnichannelSubscriptionItemScheduledChangeRemoved func(OmnichannelSubscriptionItemScheduledChangeRemovedEvent) error

	OnOmnichannelSubscriptionItemScheduledDowngradeRemoved func(OmnichannelSubscriptionItemScheduledDowngradeRemovedEvent) error

	OnOmnichannelSubscriptionItemUpgraded func(OmnichannelSubscriptionItemUpgradedEvent) error

	OnOmnichannelSubscriptionMovedIn func(OmnichannelSubscriptionMovedInEvent) error

	OnOmnichannelTransactionCreated func(OmnichannelTransactionCreatedEvent) error

	OnOrderCancelled func(OrderCancelledEvent) error

	OnOrderCreated func(OrderCreatedEvent) error

	OnOrderDeleted func(OrderDeletedEvent) error

	OnOrderDelivered func(OrderDeliveredEvent) error

	OnOrderReadyToProcess func(OrderReadyToProcessEvent) error

	OnOrderReadyToShip func(OrderReadyToShipEvent) error

	OnOrderResent func(OrderResentEvent) error

	OnOrderReturned func(OrderReturnedEvent) error

	OnOrderUpdated func(OrderUpdatedEvent) error

	OnPaymentDueReminder func(PaymentDueReminderEvent) error

	OnPaymentFailed func(PaymentFailedEvent) error

	OnPaymentInitiated func(PaymentInitiatedEvent) error

	OnPaymentIntentCreated func(PaymentIntentCreatedEvent) error

	OnPaymentIntentUpdated func(PaymentIntentUpdatedEvent) error

	OnPaymentRefunded func(PaymentRefundedEvent) error

	OnPaymentScheduleSchemeCreated func(PaymentScheduleSchemeCreatedEvent) error

	OnPaymentScheduleSchemeDeleted func(PaymentScheduleSchemeDeletedEvent) error

	OnPaymentSchedulesCreated func(PaymentSchedulesCreatedEvent) error

	OnPaymentSchedulesUpdated func(PaymentSchedulesUpdatedEvent) error

	OnPaymentSourceAdded func(PaymentSourceAddedEvent) error

	OnPaymentSourceDeleted func(PaymentSourceDeletedEvent) error

	OnPaymentSourceExpired func(PaymentSourceExpiredEvent) error

	OnPaymentSourceExpiring func(PaymentSourceExpiringEvent) error

	OnPaymentSourceLocallyDeleted func(PaymentSourceLocallyDeletedEvent) error

	OnPaymentSourceUpdated func(PaymentSourceUpdatedEvent) error

	OnPaymentSucceeded func(PaymentSucceededEvent) error

	OnPendingInvoiceCreated func(PendingInvoiceCreatedEvent) error

	OnPendingInvoiceUpdated func(PendingInvoiceUpdatedEvent) error

	OnPlanCreated func(PlanCreatedEvent) error

	OnPlanDeleted func(PlanDeletedEvent) error

	OnPlanUpdated func(PlanUpdatedEvent) error

	OnPriceVariantCreated func(PriceVariantCreatedEvent) error

	OnPriceVariantDeleted func(PriceVariantDeletedEvent) error

	OnPriceVariantUpdated func(PriceVariantUpdatedEvent) error

	OnProductCreated func(ProductCreatedEvent) error

	OnProductDeleted func(ProductDeletedEvent) error

	OnProductUpdated func(ProductUpdatedEvent) error

	OnPromotionalCreditsAdded func(PromotionalCreditsAddedEvent) error

	OnPromotionalCreditsDeducted func(PromotionalCreditsDeductedEvent) error

	OnPurchaseCreated func(PurchaseCreatedEvent) error

	OnQuoteCreated func(QuoteCreatedEvent) error

	OnQuoteDeleted func(QuoteDeletedEvent) error

	OnQuoteUpdated func(QuoteUpdatedEvent) error

	OnRecordPurchaseFailed func(RecordPurchaseFailedEvent) error

	OnRefundInitiated func(RefundInitiatedEvent) error

	OnRuleCreated func(RuleCreatedEvent) error

	OnRuleDeleted func(RuleDeletedEvent) error

	OnRuleUpdated func(RuleUpdatedEvent) error

	OnSalesOrderCreated func(SalesOrderCreatedEvent) error

	OnSalesOrderUpdated func(SalesOrderUpdatedEvent) error

	OnSubscriptionActivated func(SubscriptionActivatedEvent) error

	OnSubscriptionActivatedWithBackdating func(SubscriptionActivatedWithBackdatingEvent) error

	OnSubscriptionAdvanceInvoiceScheduleAdded func(SubscriptionAdvanceInvoiceScheduleAddedEvent) error

	OnSubscriptionAdvanceInvoiceScheduleRemoved func(SubscriptionAdvanceInvoiceScheduleRemovedEvent) error

	OnSubscriptionAdvanceInvoiceScheduleUpdated func(SubscriptionAdvanceInvoiceScheduleUpdatedEvent) error

	OnSubscriptionBusinessEntityChanged func(SubscriptionBusinessEntityChangedEvent) error

	OnSubscriptionCanceledWithBackdating func(SubscriptionCanceledWithBackdatingEvent) error

	OnSubscriptionCancellationReminder func(SubscriptionCancellationReminderEvent) error

	OnSubscriptionCancellationScheduled func(SubscriptionCancellationScheduledEvent) error

	OnSubscriptionCancelled func(SubscriptionCancelledEvent) error

	OnSubscriptionChanged func(SubscriptionChangedEvent) error

	OnSubscriptionChangedWithBackdating func(SubscriptionChangedWithBackdatingEvent) error

	OnSubscriptionChangesScheduled func(SubscriptionChangesScheduledEvent) error

	OnSubscriptionCreated func(SubscriptionCreatedEvent) error

	OnSubscriptionCreatedWithBackdating func(SubscriptionCreatedWithBackdatingEvent) error

	OnSubscriptionDeleted func(SubscriptionDeletedEvent) error

	OnSubscriptionEntitlementsCreated func(SubscriptionEntitlementsCreatedEvent) error

	OnSubscriptionEntitlementsUpdated func(SubscriptionEntitlementsUpdatedEvent) error

	OnSubscriptionItemsRenewed func(SubscriptionItemsRenewedEvent) error

	OnSubscriptionMovedIn func(SubscriptionMovedInEvent) error

	OnSubscriptionMovedOut func(SubscriptionMovedOutEvent) error

	OnSubscriptionMovementFailed func(SubscriptionMovementFailedEvent) error

	OnSubscriptionPauseScheduled func(SubscriptionPauseScheduledEvent) error

	OnSubscriptionPaused func(SubscriptionPausedEvent) error

	OnSubscriptionRampApplied func(SubscriptionRampAppliedEvent) error

	OnSubscriptionRampCreated func(SubscriptionRampCreatedEvent) error

	OnSubscriptionRampDeleted func(SubscriptionRampDeletedEvent) error

	OnSubscriptionRampDrafted func(SubscriptionRampDraftedEvent) error

	OnSubscriptionRampUpdated func(SubscriptionRampUpdatedEvent) error

	OnSubscriptionReactivated func(SubscriptionReactivatedEvent) error

	OnSubscriptionReactivatedWithBackdating func(SubscriptionReactivatedWithBackdatingEvent) error

	OnSubscriptionRenewalReminder func(SubscriptionRenewalReminderEvent) error

	OnSubscriptionRenewed func(SubscriptionRenewedEvent) error

	OnSubscriptionResumed func(SubscriptionResumedEvent) error

	OnSubscriptionResumptionScheduled func(SubscriptionResumptionScheduledEvent) error

	OnSubscriptionScheduledCancellationRemoved func(SubscriptionScheduledCancellationRemovedEvent) error

	OnSubscriptionScheduledChangesRemoved func(SubscriptionScheduledChangesRemovedEvent) error

	OnSubscriptionScheduledPauseRemoved func(SubscriptionScheduledPauseRemovedEvent) error

	OnSubscriptionScheduledResumptionRemoved func(SubscriptionScheduledResumptionRemovedEvent) error

	OnSubscriptionShippingAddressUpdated func(SubscriptionShippingAddressUpdatedEvent) error

	OnSubscriptionStarted func(SubscriptionStartedEvent) error

	OnSubscriptionTrialEndReminder func(SubscriptionTrialEndReminderEvent) error

	OnSubscriptionTrialExtended func(SubscriptionTrialExtendedEvent) error

	OnTaxWithheldDeleted func(TaxWithheldDeletedEvent) error

	OnTaxWithheldRecorded func(TaxWithheldRecordedEvent) error

	OnTaxWithheldRefunded func(TaxWithheldRefundedEvent) error

	OnTokenConsumed func(TokenConsumedEvent) error

	OnTokenCreated func(TokenCreatedEvent) error

	OnTokenExpired func(TokenExpiredEvent) error

	OnTransactionCreated func(TransactionCreatedEvent) error

	OnTransactionDeleted func(TransactionDeletedEvent) error

	OnTransactionUpdated func(TransactionUpdatedEvent) error

	OnUnbilledChargesCreated func(UnbilledChargesCreatedEvent) error

	OnUnbilledChargesDeleted func(UnbilledChargesDeletedEvent) error

	OnUnbilledChargesInvoiced func(UnbilledChargesInvoicedEvent) error

	OnUnbilledChargesVoided func(UnbilledChargesVoidedEvent) error

	OnUsageFileIngested func(UsageFileIngestedEvent) error

	OnVariantCreated func(VariantCreatedEvent) error

	OnVariantDeleted func(VariantDeletedEvent) error

	OnVariantUpdated func(VariantUpdatedEvent) error

	OnVirtualBankAccountAdded func(VirtualBankAccountAddedEvent) error

	OnVirtualBankAccountDeleted func(VirtualBankAccountDeletedEvent) error

	OnVirtualBankAccountUpdated func(VirtualBankAccountUpdatedEvent) error

	OnVoucherCreateFailed func(VoucherCreateFailedEvent) error

	OnVoucherCreated func(VoucherCreatedEvent) error

	OnVoucherExpired func(VoucherExpiredEvent) error
}

func (*WebhookHandler) HTTPHandler

func (h *WebhookHandler) HTTPHandler() http.Handler

func (*WebhookHandler) ParseAndDispatch

func (h *WebhookHandler) ParseAndDispatch(body []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL