refund

package
v0.0.0-...-64e7420 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Refund

type Refund struct {
	Items []RefundRequestItem
}

type RefundManager

type RefundManager interface {
	CreateRefund(orderID string, req Refund)
	GetRefund(orderID string) Refund
}

func New

func New() RefundManager

type RefundRequestItem

type RefundRequestItem struct {
	LineItemId string
	Quantity   int32
	Amount     RefundRequestItemAmount
}

type RefundRequestItemAmount

type RefundRequestItemAmount struct {
	Amount   float64
	Currency string
}

type RefundRes

type RefundRes struct {
	Items         []RefundRequestItem
	RefundID      string
	TransactionID string
}

Jump to

Keyboard shortcuts

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