webhookDto

package
v1.0.53 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertWebhookPayload added in v1.0.32

type AlertWebhookPayload struct {
	EventType   string                `json:"event_type"`
	AlertType   string                `json:"alert_type"`
	AlertStatus string                `json:"alert_status"`
	Feature     *dto.FeatureResponse  `json:"feature,omitempty"`
	Wallet      *dto.WalletResponse   `json:"wallet,omitempty"`
	Customer    *dto.CustomerResponse `json:"customer,omitempty"`
}

func NewAlertWebhookPayload added in v1.0.32

func NewAlertWebhookPayload(feature *dto.FeatureResponse, wallet *dto.WalletResponse, customer *dto.CustomerResponse, alertType string, alertStatus string, eventType string) *AlertWebhookPayload

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 CreditNoteWebhookPayload added in v1.0.27

type CreditNoteWebhookPayload struct {
	EventType  string                  `json:"event_type"`
	CreditNote *dto.CreditNoteResponse `json:"credit_note"`
}

func NewCreditNoteWebhookPayload added in v1.0.27

func NewCreditNoteWebhookPayload(creditNote *dto.CreditNoteResponse, eventType string) *CreditNoteWebhookPayload

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 InternalAlertEvent added in v1.0.32

type InternalAlertEvent struct {
	FeatureID   string `json:"feature_id,omitempty"`
	WalletID    string `json:"wallet_id,omitempty"`
	CustomerID  string `json:"customer_id,omitempty"`
	AlertType   string `json:"alert_type"`
	AlertStatus string `json:"alert_status"`
}

type InternalCommunicationEvent added in v1.0.21

type InternalCommunicationEvent struct {
	InvoiceID string `json:"invoice_id"`
	TenantID  string `json:"tenant_id"`
}

type InternalCreditNoteEvent added in v1.0.27

type InternalCreditNoteEvent struct {
	CreditNoteID string `json:"credit_note_id"`
	TenantID     string `json:"tenant_id"`
}

type InternalCustomerEvent

type InternalCustomerEvent struct {
	CustomerID string `json:"customer_id"`
	TenantID   string `json:"tenant_id"`
}

type InternalEntitlementEvent added in v1.0.19

type InternalEntitlementEvent struct {
	EntitlementID string `json:"entitlement_id"`
	TenantID      string `json:"tenant_id"`
}

type InternalFeatureEvent added in v1.0.19

type InternalFeatureEvent struct {
	FeatureID string `json:"feature_id"`
	TenantID  string `json:"tenant_id"`
}

type InternalInvoiceEvent

type InternalInvoiceEvent struct {
	InvoiceID string `json:"invoice_id"`
	TenantID  string `json:"tenant_id"`
}

type InternalPaymentEvent added in v1.0.19

type InternalPaymentEvent struct {
	PaymentID string `json:"payment_id"`
	TenantID  string `json:"tenant_id"`
}

type InternalSubscriptionEvent

type InternalSubscriptionEvent struct {
	EventType      string `json:"event_type"`
	SubscriptionID string `json:"subscription_id"`
	TenantID       string `json:"tenant_id"`
	EnvironmentID  string `json:"environment_id"`
}

type InternalSubscriptionPhaseEvent added in v1.0.38

type InternalSubscriptionPhaseEvent struct {
	PhaseID  string `json:"phase_id"`
	TenantID string `json:"tenant_id"`
}

type InternalTransactionEvent

type InternalTransactionEvent struct {
	EventType     string `json:"event_type"`
	TransactionID string `json:"transaction_id"`
	TenantID      string `json:"tenant_id"`
}

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 SubscriptionPhaseWebhookPayload added in v1.0.38

type SubscriptionPhaseWebhookPayload struct {
	EventType string                         `json:"event_type"`
	Phase     *dto.SubscriptionPhaseResponse `json:"phase"`
}

func NewSubscriptionPhaseWebhookPayload added in v1.0.38

func NewSubscriptionPhaseWebhookPayload(phase *dto.SubscriptionPhaseResponse, eventType string) *SubscriptionPhaseWebhookPayload

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"`
	Customer  *dto.CustomerResponse `json:"customer,omitempty"`
	Alert     *WalletAlertInfo      `json:"alert,omitempty"`
}

WalletWebhookPayload represents the detailed payload for wallet webhooks

func NewWalletWebhookPayload

func NewWalletWebhookPayload(wallet *dto.WalletResponse, customer *dto.CustomerResponse, alert *WalletAlertInfo, eventType string) *WalletWebhookPayload

Jump to

Keyboard shortcuts

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