Merge pull request #26 from Frosin/master

Исправлена опечатка
This commit is contained in:
Alex Lushpai 2019-09-07 17:43:33 +03:00 committed by GitHub
commit ddf8ee7cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 101 additions and 101 deletions

View File

@ -1320,8 +1320,8 @@ func (c *Client) OrdersFixExternalIds(orders []IdentifiersPair) (SuccessfulRespo
// for _, value := range data.History { // for _, value := range data.History {
// fmt.Printf("%v\n", value) // fmt.Printf("%v\n", value)
// } // }
func (c *Client) OrdersHistory(parameters OrdersHistoryRequest) (CustomersHistoryResponse, int, *errs.Failure) { func (c *Client) OrdersHistory(parameters OrdersHistoryRequest) (OrdersHistoryResponse, int, *errs.Failure) {
var resp CustomersHistoryResponse var resp OrdersHistoryResponse
params, _ := query.Values(parameters) params, _ := query.Values(parameters)

View File

@ -143,7 +143,7 @@ type Customer struct {
BrowserID string `json:"browserId,omitempty"` BrowserID string `json:"browserId,omitempty"`
MgCustomerID string `json:"mgCustomerId,omitempty"` MgCustomerID string `json:"mgCustomerId,omitempty"`
PhotoURL string `json:"photoUrl,omitempty"` PhotoURL string `json:"photoUrl,omitempty"`
CustomFields []map[string]string `json:"customFields,omitempty,brackets"` CustomFields map[string]string `json:"customFields,omitempty,brackets"`
} }
// Phone type // Phone type
@ -217,8 +217,8 @@ type Order struct {
Delivery *OrderDelivery `json:"delivery,omitempty"` Delivery *OrderDelivery `json:"delivery,omitempty"`
Marketplace *OrderMarketplace `json:"marketplace,omitempty"` Marketplace *OrderMarketplace `json:"marketplace,omitempty"`
Items []OrderItem `json:"items,omitempty,brackets"` Items []OrderItem `json:"items,omitempty,brackets"`
CustomFields []map[string]string `json:"customFields,omitempty,brackets"` CustomFields map[string]string `json:"customFields,omitempty,brackets"`
Payments []OrderPayment `json:"payments,omitempty,brackets"` Payments map[string]OrderPayment `json:"payments,omitempty,brackets"`
} }
// OrderDelivery type // OrderDelivery type
@ -290,7 +290,7 @@ type OrderItem struct {
Comment string `json:"comment,omitempty"` Comment string `json:"comment,omitempty"`
IsCanceled bool `json:"isCanceled,omitempty"` IsCanceled bool `json:"isCanceled,omitempty"`
Offer Offer `json:"offer,omitempty"` Offer Offer `json:"offer,omitempty"`
Properties []Property `json:"properties,omitempty,brackets"` Properties map[string]Property `json:"properties,omitempty,brackets"`
PriceType *PriceType `json:"priceType,omitempty"` PriceType *PriceType `json:"priceType,omitempty"`
} }