mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-22 04:46:03 +03:00
commit
ddf8ee7cef
@ -1320,8 +1320,8 @@ func (c *Client) OrdersFixExternalIds(orders []IdentifiersPair) (SuccessfulRespo
|
||||
// for _, value := range data.History {
|
||||
// fmt.Printf("%v\n", value)
|
||||
// }
|
||||
func (c *Client) OrdersHistory(parameters OrdersHistoryRequest) (CustomersHistoryResponse, int, *errs.Failure) {
|
||||
var resp CustomersHistoryResponse
|
||||
func (c *Client) OrdersHistory(parameters OrdersHistoryRequest) (OrdersHistoryResponse, int, *errs.Failure) {
|
||||
var resp OrdersHistoryResponse
|
||||
|
||||
params, _ := query.Values(parameters)
|
||||
|
||||
|
@ -143,7 +143,7 @@ type Customer struct {
|
||||
BrowserID string `json:"browserId,omitempty"`
|
||||
MgCustomerID string `json:"mgCustomerId,omitempty"`
|
||||
PhotoURL string `json:"photoUrl,omitempty"`
|
||||
CustomFields []map[string]string `json:"customFields,omitempty,brackets"`
|
||||
CustomFields map[string]string `json:"customFields,omitempty,brackets"`
|
||||
}
|
||||
|
||||
// Phone type
|
||||
@ -217,8 +217,8 @@ type Order struct {
|
||||
Delivery *OrderDelivery `json:"delivery,omitempty"`
|
||||
Marketplace *OrderMarketplace `json:"marketplace,omitempty"`
|
||||
Items []OrderItem `json:"items,omitempty,brackets"`
|
||||
CustomFields []map[string]string `json:"customFields,omitempty,brackets"`
|
||||
Payments []OrderPayment `json:"payments,omitempty,brackets"`
|
||||
CustomFields map[string]string `json:"customFields,omitempty,brackets"`
|
||||
Payments map[string]OrderPayment `json:"payments,omitempty,brackets"`
|
||||
}
|
||||
|
||||
// OrderDelivery type
|
||||
@ -290,7 +290,7 @@ type OrderItem struct {
|
||||
Comment string `json:"comment,omitempty"`
|
||||
IsCanceled bool `json:"isCanceled,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"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user