fixed type bugs

This commit is contained in:
Frosin 2019-08-20 11:47:53 +03:00
parent 64c42ae1fd
commit 1ca8df9800

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"`
} }