yoowebhook

package
v0.0.0-...-d4840ec Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 2 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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