add field of currency in order

This commit is contained in:
Ruslan Efanov 2024-08-29 16:05:23 +03:00
parent 280f078632
commit b79317c810
2 changed files with 4 additions and 0 deletions

View file

@ -2021,6 +2021,7 @@ func TestClient_OrderChange(t *testing.T) {
"slug": 1,
"id": 1,
"number": "1A",
"currency": "RUB",
"orderMethod": "shopping-cart",
"countryIso": "RU",
"createdAt": "2020-07-14 11:44:43",
@ -2109,6 +2110,8 @@ func TestClient_OrderChange(t *testing.T) {
t.Errorf("invalid order number: got %s want %s", cr.Order.Number, "1A")
}
assert.Equal(t, "RUB", cr.Order.Currency)
f.ID = cr.ID
f.CustomerComment = "test comment"

View file

@ -342,6 +342,7 @@ type Order struct {
Payments OrderPayments `json:"payments,omitempty"`
ApplyRound *bool `json:"applyRound,omitempty"`
PrivilegeType string `json:"privilegeType,omitempty"`
Currency string `json:"currency,omitempty"`
}
// OrdersStatus type.