mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-25 14:26:04 +03:00
commit
ddf8ee7cef
@ -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)
|
||||||
|
|
||||||
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user