Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit c2c6765

Browse files
committed
Add new checkout breakdown models
1 parent 9e17a66 commit c2c6765

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

repo/checkout.go

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package repo
2+
3+
type CheckoutVariant struct {
4+
Name string `json:"name"`
5+
Value string `json:"value"`
6+
Price string `json:"price"`
7+
}
8+
9+
type CheckoutCurrency struct {
10+
Code string `json:"code"`
11+
Divisibility int `json:"divisibility"`
12+
}
13+
14+
type CheckoutBreakdown struct {
15+
BasePrice string `json:"basePrice"`
16+
Coupon string `json:"coupon"`
17+
OptionSurcharge string `json:"optionSurcharge"`
18+
PriceCurrency CheckoutCurrency `json:"priceCurrency"`
19+
Quantity string `json:"quantity"`
20+
ShippingPrice string `json:"shippingPrice"`
21+
Tax string `json:"tax"`
22+
TotalPrice string `json:"totalPrice"`
23+
}

0 commit comments

Comments
 (0)