Documentation
¶
Index ¶
- Variables
- type Balance
- func (b Balance) Apply(payment Payment) (balance Balance, err error)
- func (b Balance) CompletePayment(payment Payment) Balance
- func (b Balance) Refund(payment Payment) Balance
- func (b Balance) ReserveAmount(payment Payment) (Balance, error)
- func (b Balance) Transaction(tx Tx) (Balance, Payment, error)
- type Cancel
- type CanceledPayment
- type Complete
- type CompletedPayment
- type Event
- type FailedPayment
- type NewPayment
- type Payment
- type Reserve
- type ResultPayment
- type Tx
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Balance ¶
func (Balance) CompletePayment ¶
type CanceledPayment ¶
func (CanceledPayment) GetAmount ¶
func (p CanceledPayment) GetAmount() decimal.Decimal
func (CanceledPayment) GetID ¶
func (p CanceledPayment) GetID() uuid.UUID
type CompletedPayment ¶
func (CompletedPayment) GetAmount ¶
func (p CompletedPayment) GetAmount() decimal.Decimal
func (CompletedPayment) GetID ¶
func (p CompletedPayment) GetID() uuid.UUID
type FailedPayment ¶
func FailPayment ¶
func FailPayment(payment Payment) FailedPayment
func (FailedPayment) GetAmount ¶
func (p FailedPayment) GetAmount() decimal.Decimal
func (FailedPayment) GetID ¶
func (p FailedPayment) GetID() uuid.UUID
func (FailedPayment) GetOrderID ¶
func (p FailedPayment) GetOrderID() uuid.UUID
type NewPayment ¶
func (NewPayment) GetAmount ¶
func (p NewPayment) GetAmount() decimal.Decimal
func (NewPayment) GetID ¶
func (p NewPayment) GetID() uuid.UUID
func (NewPayment) GetOrderID ¶
func (p NewPayment) GetOrderID() uuid.UUID
type ResultPayment ¶
Click to show internal directories.
Click to hide internal directories.