Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Refund ¶
type Refund struct {
mixin.Model
Amount int64 `json:"amount"`
Currency currency.Type `json:"currency"`
Status Status `json:"status"`
ProviderRef string `json:"providerRef"`
Reason string `json:"reason,omitempty"`
ReceiptNumber string `json:"receiptNumber,omitempty"`
FailureReason string `json:"failureReason,omitempty"`
PaymentIntentId string `json:"paymentIntentId,omitempty"`
InvoiceId string `json:"invoiceId,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
}
Refund represents a reversal of a previous payment.
func (*Refund) MarkFailed ¶
MarkFailed transitions the refund to Failed with a reason.
func (*Refund) MarkSucceeded ¶
MarkSucceeded transitions the refund to Succeeded.
Click to show internal directories.
Click to hide internal directories.