mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-22 04:46:03 +03:00
Merge pull request #12 from DmitryZagorulko/master
Integrations struct update, minor bug fixes
This commit is contained in:
commit
a2437831bf
40
v5/types.go
40
v5/types.go
@ -762,32 +762,33 @@ type DeliveryShipment struct {
|
|||||||
|
|
||||||
// IntegrationModule type
|
// IntegrationModule type
|
||||||
type IntegrationModule struct {
|
type IntegrationModule struct {
|
||||||
Code string `json:"code,omitempty"`
|
Code string `json:"code,omitempty"`
|
||||||
IntegrationCode string `json:"integrationCode,omitempty"`
|
IntegrationCode string `json:"integrationCode,omitempty"`
|
||||||
Active bool `json:"active,omitempty"`
|
Active bool `json:"active,omitempty"`
|
||||||
Freeze bool `json:"freeze,omitempty"`
|
Freeze bool `json:"freeze,omitempty"`
|
||||||
Native bool `json:"native,omitempty"`
|
Native bool `json:"native,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
Logo string `json:"logo,omitempty"`
|
Logo string `json:"logo,omitempty"`
|
||||||
ClientID string `json:"clientId,omitempty"`
|
ClientID string `json:"clientId,omitempty"`
|
||||||
BaseURL string `json:"baseUrl,omitempty"`
|
BaseURL string `json:"baseUrl,omitempty"`
|
||||||
AccountURL string `json:"accountUrl,omitempty"`
|
AccountURL string `json:"accountUrl,omitempty"`
|
||||||
AvailableCountries []string `json:"availableCountries,omitempty"`
|
AvailableCountries []string `json:"availableCountries,omitempty"`
|
||||||
Actions []string `json:"actions,omitempty"`
|
Actions map[string]string `json:"actions,omitempty"`
|
||||||
Integrations *Integrations `json:"integrations,omitempty"`
|
Integrations *Integrations `json:"integrations,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Integrations type
|
// Integrations type
|
||||||
type Integrations struct {
|
type Integrations struct {
|
||||||
Telephony *Telephony `json:"telephony,omitempty"`
|
Telephony *Telephony `json:"telephony,omitempty"`
|
||||||
Delivery *Delivery `json:"delivery,omitempty"`
|
Delivery *Delivery `json:"delivery,omitempty"`
|
||||||
Store *Warehouse `json:"store,omitempty"`
|
Store *Warehouse `json:"store,omitempty"`
|
||||||
|
MgTransport *MgTransport `json:"mgTransport,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delivery type
|
// Delivery type
|
||||||
type Delivery struct {
|
type Delivery struct {
|
||||||
Description string `json:"description,omitempty"`
|
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"`
|
PayerType []string `json:"payerType,omitempty,brackets"`
|
||||||
PlatePrintLimit int `json:"platePrintLimit,omitempty"`
|
PlatePrintLimit int `json:"platePrintLimit,omitempty"`
|
||||||
RateDeliveryCost bool `json:"rateDeliveryCost,omitempty"`
|
RateDeliveryCost bool `json:"rateDeliveryCost,omitempty"`
|
||||||
@ -865,6 +866,11 @@ type Action struct {
|
|||||||
CallPoints []string `json:"callPoints,omitempty"`
|
CallPoints []string `json:"callPoints,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MgTransport type
|
||||||
|
type MgTransport struct {
|
||||||
|
WebhookUrl string `json:"webhookUrl,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Cost related types
|
Cost related types
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user