mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-22 04:46:03 +03:00
update types with new fields
This commit is contained in:
parent
a51bab6df4
commit
107a4d150b
20
types.go
20
types.go
@ -251,9 +251,19 @@ type CustomerHistoryRecord struct {
|
|||||||
Deleted bool `json:"deleted,omitempty"`
|
Deleted bool `json:"deleted,omitempty"`
|
||||||
Source string `json:"source,omitempty"`
|
Source string `json:"source,omitempty"`
|
||||||
Field string `json:"field,omitempty"`
|
Field string `json:"field,omitempty"`
|
||||||
|
OldValue interface{} `json:"oldValue,omitempty"`
|
||||||
|
NewValue interface{} `json:"newValue,omitempty"`
|
||||||
User *User `json:"user,omitempty"`
|
User *User `json:"user,omitempty"`
|
||||||
APIKey *APIKey `json:"apiKey,omitempty"`
|
APIKey *APIKey `json:"apiKey,omitempty"`
|
||||||
Customer *Customer `json:"customer,omitempty"`
|
Customer *Customer `json:"customer,omitempty"`
|
||||||
|
Address *CustomerAddressWithIsMain `json:"address,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type CustomerAddressWithIsMain struct {
|
||||||
|
ID int `json:"id"`
|
||||||
|
ExternalID string `json:"externalId,omitempty"`
|
||||||
|
Name string `json:"name,omitempty"`
|
||||||
|
IsMain bool `json:"isMain"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CorporateCustomerHistoryRecord type.
|
// CorporateCustomerHistoryRecord type.
|
||||||
@ -264,6 +274,8 @@ type CorporateCustomerHistoryRecord struct {
|
|||||||
Deleted bool `json:"deleted,omitempty"`
|
Deleted bool `json:"deleted,omitempty"`
|
||||||
Source string `json:"source,omitempty"`
|
Source string `json:"source,omitempty"`
|
||||||
Field string `json:"field,omitempty"`
|
Field string `json:"field,omitempty"`
|
||||||
|
OldValue interface{} `json:"oldValue,omitempty"`
|
||||||
|
NewValue interface{} `json:"newValue,omitempty"`
|
||||||
User *User `json:"user,omitempty"`
|
User *User `json:"user,omitempty"`
|
||||||
APIKey *APIKey `json:"apiKey,omitempty"`
|
APIKey *APIKey `json:"apiKey,omitempty"`
|
||||||
CorporateCustomer *CorporateCustomer `json:"corporateCustomer,omitempty"`
|
CorporateCustomer *CorporateCustomer `json:"corporateCustomer,omitempty"`
|
||||||
@ -471,9 +483,15 @@ type OrdersHistoryRecord struct {
|
|||||||
Deleted bool `json:"deleted,omitempty"`
|
Deleted bool `json:"deleted,omitempty"`
|
||||||
Source string `json:"source,omitempty"`
|
Source string `json:"source,omitempty"`
|
||||||
Field string `json:"field,omitempty"`
|
Field string `json:"field,omitempty"`
|
||||||
|
OldValue interface{} `json:"oldValue,omitempty"`
|
||||||
|
NewValue interface{} `json:"newValue,omitempty"`
|
||||||
User *User `json:"user,omitempty"`
|
User *User `json:"user,omitempty"`
|
||||||
APIKey *APIKey `json:"apiKey,omitempty"`
|
APIKey *APIKey `json:"apiKey,omitempty"`
|
||||||
Order *Order `json:"order,omitempty"`
|
Order *Order `json:"order,omitempty"`
|
||||||
|
Ancestor *Order `json:"ancestor,omitempty"`
|
||||||
|
Item *OrderItem `json:"item,omitempty"`
|
||||||
|
Payment *Payment `json:"payment"`
|
||||||
|
CombinedTo *Order `json:"combinedTo,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pack type.
|
// Pack type.
|
||||||
@ -505,6 +523,8 @@ type PacksHistoryRecord struct {
|
|||||||
Deleted bool `json:"deleted,omitempty"`
|
Deleted bool `json:"deleted,omitempty"`
|
||||||
Source string `json:"source,omitempty"`
|
Source string `json:"source,omitempty"`
|
||||||
Field string `json:"field,omitempty"`
|
Field string `json:"field,omitempty"`
|
||||||
|
OldValue interface{} `json:"oldValue,omitempty"`
|
||||||
|
NewValue interface{} `json:"newValue,omitempty"`
|
||||||
User *User `json:"user,omitempty"`
|
User *User `json:"user,omitempty"`
|
||||||
Pack *Pack `json:"pack,omitempty"`
|
Pack *Pack `json:"pack,omitempty"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user