mirror of
https://github.com/retailcrm/api-client-go.git
synced 2025-04-02 20:56:17 +03:00
add field of currency in order
This commit is contained in:
parent
280f078632
commit
b79317c810
2 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
1
types.go
1
types.go
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue