Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookEvent ¶
type WebhookEvent[T yoopayment.Payment | yoopayout.Payout] struct { Type WebhookType `json:"type"` Event WebhookEventType `json:"event"` Object T `json:"object"` }
type WebhookEventType ¶
type WebhookEventType string
const ( EventPaymentSucceeded WebhookEventType = "payment.succeeded" EventPaymentWaitingForCapture WebhookEventType = "payment.waiting_for_capture" EventPaymentCanceled WebhookEventType = "payment.canceled" EventRefundSucceeded WebhookEventType = "refund.succeeded" EventPayoutSucceeded WebhookEventType = "payout.succeeded" EventPayoutCanceled WebhookEventType = "payout.canceled" )
type WebhookType ¶
type WebhookType string
const (
WebhookTypeNotification WebhookType = "notification"
)
Click to show internal directories.
Click to hide internal directories.