Created
This commit is contained in:
34
entity/order_refund.go
Normal file
34
entity/order_refund.go
Normal file
@@ -0,0 +1,34 @@
|
||||
package entity
|
||||
|
||||
// OrderRefund order refund properties
|
||||
type OrderRefund struct {
|
||||
ID int `json:"id"`
|
||||
DateCreated string `json:"date_created"`
|
||||
DateCreatedGMT string `json:"date_created_gmt"`
|
||||
Amount float64 `json:"amount"`
|
||||
Reason string `json:"reason"`
|
||||
RefundedBy int `json:"refunded_by"`
|
||||
RefundedPayment bool `json:"refunded_payment"`
|
||||
MetaData []Meta `json:"meta_data"`
|
||||
LineItems []OrderRefundLineItem `json:"line_items"`
|
||||
APIRefund bool `json:"api_refund"`
|
||||
}
|
||||
|
||||
// OrderRefundLineItem order refund line item properties
|
||||
type OrderRefundLineItem struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
ProductId int `json:"product_id"`
|
||||
VariationId int `json:"variation_id"`
|
||||
Quantity int `json:"quantity"`
|
||||
TaxClass int `json:"tax_class"`
|
||||
SubTotal float64 `json:"subtotal"`
|
||||
SubTotalTax float64 `json:"subtotal_tax"`
|
||||
Total float64 `json:"total"`
|
||||
TotalTax float64 `json:"total_tax"`
|
||||
Taxes []Tax `json:"taxes"`
|
||||
MetaData []Meta `json:"meta_data"`
|
||||
SKU string `json:"sku"`
|
||||
Price float64 `json:"price"`
|
||||
RefundTotal float64 `json:"refund_total"`
|
||||
}
|
||||
Reference in New Issue
Block a user