Documentation
¶
Index ¶
- type Error
- func AmbiguousMatch() *Error
- func CapacityExhausted() *Error
- func IdempotencyConflict() *Error
- func InvalidAmount() *Error
- func InvalidExternalID() *Error
- func InvalidIdempotencyKey() *Error
- func InvalidMetadata() *Error
- func InvalidSMS(message string) *Error
- func New(code, message string, status int) *Error
- func PaymentNotFound() *Error
- func PaymentResolved(status string) *Error
- type ParsedSMS
- type Payment
- type PaymentStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Code string `json:"code"`
Message string `json:"message"`
Status int `json:"-"`
Details map[string]any `json:"details,omitempty"`
}
func AmbiguousMatch ¶
func AmbiguousMatch() *Error
func CapacityExhausted ¶
func CapacityExhausted() *Error
func IdempotencyConflict ¶
func IdempotencyConflict() *Error
func InvalidAmount ¶
func InvalidAmount() *Error
func InvalidExternalID ¶
func InvalidExternalID() *Error
func InvalidIdempotencyKey ¶
func InvalidIdempotencyKey() *Error
func InvalidMetadata ¶
func InvalidMetadata() *Error
func InvalidSMS ¶
func PaymentNotFound ¶
func PaymentNotFound() *Error
func PaymentResolved ¶
type PaymentStatus ¶
type PaymentStatus string
const ( StatusPending PaymentStatus = "pending" StatusPaid PaymentStatus = "paid" StatusExpired PaymentStatus = "expired" StatusCancelled PaymentStatus = "cancelled" StatusLate PaymentStatus = "late" )
Click to show internal directories.
Click to hide internal directories.