Documentation
¶
Index ¶
- type CommunicationWebhookPayload
- type CustomerWebhookPayload
- type EntitlementWebhookPayload
- type FeatureWebhookPayload
- type InternalCommunicationEvent
- type InternalCustomerEvent
- type InternalEntitlementEvent
- type InternalFeatureEvent
- type InternalInvoiceEvent
- type InternalPaymentEvent
- type InternalSubscriptionEvent
- type InternalTransactionEvent
- type InternalWalletEvent
- type InvoiceWebhookPayload
- type PaymentWebhookPayload
- type SubscriptionWebhookPayload
- type TransactionWebhookPayload
- type WalletAlertInfo
- type WalletWebhookPayload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommunicationWebhookPayload ¶ added in v1.0.21
type CommunicationWebhookPayload struct {
EventType string `json:"event_type"`
Invoice *dto.InvoiceResponse `json:"invoice"`
}
func NewCommunicationWebhookPayload ¶ added in v1.0.21
func NewCommunicationWebhookPayload(invoice *dto.InvoiceResponse, eventType string) *CommunicationWebhookPayload
type CustomerWebhookPayload ¶
type CustomerWebhookPayload struct {
EventType string `json:"event_type"`
Customer *dto.CustomerResponse `json:"customer"`
}
func NewCustomerWebhookPayload ¶
func NewCustomerWebhookPayload(customer *dto.CustomerResponse, eventType string) *CustomerWebhookPayload
type EntitlementWebhookPayload ¶ added in v1.0.19
type EntitlementWebhookPayload struct {
EventType string `json:"event_type"`
Entitlement *dto.EntitlementResponse `json:"entitlement"`
}
func NewEntitlementWebhookPayload ¶ added in v1.0.19
func NewEntitlementWebhookPayload(entitlement *dto.EntitlementResponse, eventType string) *EntitlementWebhookPayload
type FeatureWebhookPayload ¶ added in v1.0.19
type FeatureWebhookPayload struct {
EventType string `json:"event_type"`
Feature *dto.FeatureResponse `json:"feature"`
}
func NewFeatureWebhookPayload ¶ added in v1.0.19
func NewFeatureWebhookPayload(feature *dto.FeatureResponse, eventType string) *FeatureWebhookPayload
type InternalCommunicationEvent ¶ added in v1.0.21
type InternalCustomerEvent ¶
type InternalEntitlementEvent ¶ added in v1.0.19
type InternalFeatureEvent ¶ added in v1.0.19
type InternalInvoiceEvent ¶
type InternalPaymentEvent ¶ added in v1.0.19
type InternalWalletEvent ¶
type InternalWalletEvent struct {
EventType string `json:"event_type"`
WalletID string `json:"wallet_id"`
TenantID string `json:"tenant_id"`
Alert *WalletAlertInfo `json:"alert,omitempty"`
Balance *dto.WalletBalanceResponse `json:"balance,omitempty"`
}
type InvoiceWebhookPayload ¶
type InvoiceWebhookPayload struct {
EventType string `json:"event_type"`
Invoice *dto.InvoiceResponse `json:"invoice"`
}
func NewInvoiceWebhookPayload ¶
func NewInvoiceWebhookPayload(invoice *dto.InvoiceResponse, eventType string) *InvoiceWebhookPayload
type PaymentWebhookPayload ¶ added in v1.0.19
type PaymentWebhookPayload struct {
EventType string `json:"event_type"`
Payment *dto.PaymentResponse `json:"payment"`
}
func NewPaymentWebhookPayload ¶ added in v1.0.19
func NewPaymentWebhookPayload(payment *dto.PaymentResponse, eventType string) *PaymentWebhookPayload
type SubscriptionWebhookPayload ¶
type SubscriptionWebhookPayload struct {
EventType string `json:"event_type"`
Subscription *dto.SubscriptionResponse `json:"subscription"`
}
SubscriptionWebhookPayload represents the detailed payload for subscription payment webhooks
func NewSubscriptionWebhookPayload ¶
func NewSubscriptionWebhookPayload(subscription *dto.SubscriptionResponse, eventType string) *SubscriptionWebhookPayload
type TransactionWebhookPayload ¶
type TransactionWebhookPayload struct {
EventType string `json:"event_type"`
Transaction *dto.WalletTransactionResponse `json:"transaction"`
Wallet *dto.WalletResponse `json:"wallet"`
}
func NewTransactionWebhookPayload ¶
func NewTransactionWebhookPayload(transaction *dto.WalletTransactionResponse, wallet *dto.WalletResponse, eventType string) *TransactionWebhookPayload
type WalletAlertInfo ¶ added in v1.0.21
type WalletAlertInfo struct {
State string `json:"state"`
Threshold decimal.Decimal `json:"threshold"`
CurrentBalance decimal.Decimal `json:"current_balance"`
CreditBalance decimal.Decimal `json:"credit_balance"`
AlertType string `json:"alert_type,omitempty"`
AlertConfig *types.AlertConfig `json:"alert_config,omitempty"`
}
WalletAlertInfo contains details about the wallet alert
type WalletWebhookPayload ¶
type WalletWebhookPayload struct {
EventType string `json:"event_type"`
Wallet *dto.WalletResponse `json:"wallet"`
Alert *WalletAlertInfo `json:"alert,omitempty"`
}
WalletWebhookPayload represents the detailed payload for wallet webhooks
func NewWalletWebhookPayload ¶
func NewWalletWebhookPayload(wallet *dto.WalletResponse, alert *WalletAlertInfo, eventType string) *WalletWebhookPayload
Click to show internal directories.
Click to hide internal directories.