cart and checkout
This commit is contained in:
@@ -101,6 +101,16 @@ type Return struct {
|
||||
RequestedAt string `json:"requestedAt,omitempty"`
|
||||
}
|
||||
|
||||
// Exchange records an exchange request.
|
||||
type Exchange struct {
|
||||
ID string `json:"id"`
|
||||
ReturnID string `json:"returnId"`
|
||||
Reason string `json:"reason,omitempty"`
|
||||
ReturnLines []FulfillmentEntry `json:"returnLines,omitempty"`
|
||||
NewLines []Line `json:"newLines,omitempty"`
|
||||
RequestedAt string `json:"requestedAt,omitempty"`
|
||||
}
|
||||
|
||||
// Refund records a refund issued against the order.
|
||||
type Refund struct {
|
||||
Provider string `json:"provider"`
|
||||
@@ -137,8 +147,10 @@ type OrderGrain struct {
|
||||
Payments []*Payment `json:"payments,omitempty"`
|
||||
Fulfillments []Fulfillment `json:"fulfillments,omitempty"`
|
||||
Returns []Return `json:"returns,omitempty"`
|
||||
Exchanges []Exchange `json:"exchanges,omitempty"`
|
||||
Refunds []Refund `json:"refunds,omitempty"`
|
||||
|
||||
|
||||
CapturedAmount int64 `json:"capturedAmount"`
|
||||
RefundedAmount int64 `json:"refundedAmount"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user