mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-22 04:46:03 +03:00
improve struct Integrations, bugs fix
This commit is contained in:
parent
11a57e2e68
commit
0262578b6c
10
v5/types.go
10
v5/types.go
@ -773,7 +773,7 @@ type IntegrationModule struct {
|
||||
BaseURL string `json:"baseUrl,omitempty"`
|
||||
AccountURL string `json:"accountUrl,omitempty"`
|
||||
AvailableCountries []string `json:"availableCountries,omitempty"`
|
||||
Actions []string `json:"actions,omitempty"`
|
||||
Actions map[string]string `json:"actions,omitempty"`
|
||||
Integrations *Integrations `json:"integrations,omitempty"`
|
||||
}
|
||||
|
||||
@ -782,12 +782,13 @@ type Integrations struct {
|
||||
Telephony *Telephony `json:"telephony,omitempty"`
|
||||
Delivery *Delivery `json:"delivery,omitempty"`
|
||||
Store *Warehouse `json:"store,omitempty"`
|
||||
MgTransport *MgTransport `json:"mgTransport,omitempty"`
|
||||
}
|
||||
|
||||
// Delivery type
|
||||
type Delivery struct {
|
||||
Description string `json:"description,omitempty"`
|
||||
Actions []Action `json:"actions,omitempty,brackets"`
|
||||
Actions map[string]string `json:"actions,omitempty,brackets"`
|
||||
PayerType []string `json:"payerType,omitempty,brackets"`
|
||||
PlatePrintLimit int `json:"platePrintLimit,omitempty"`
|
||||
RateDeliveryCost bool `json:"rateDeliveryCost,omitempty"`
|
||||
@ -865,6 +866,11 @@ type Action struct {
|
||||
CallPoints []string `json:"callPoints,omitempty"`
|
||||
}
|
||||
|
||||
// MgTransport type
|
||||
type MgTransport struct {
|
||||
WebhookUrl string `json:"webhookUrl,omitempty"`
|
||||
}
|
||||
|
||||
/**
|
||||
Cost related types
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user