mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-24 05:46:05 +03:00
Merge branch 'master' into add-mgTransport-callbacks
This commit is contained in:
commit
3282ab045e
@ -5660,6 +5660,13 @@ func TestClient_IntegrationModule(t *testing.T) {
|
|||||||
ClientID: RandomString(10),
|
ClientID: RandomString(10),
|
||||||
Logo: "https://cdn.worldvectorlogo.com/logos/github-icon.svg",
|
Logo: "https://cdn.worldvectorlogo.com/logos/github-icon.svg",
|
||||||
Integrations: &Integrations{
|
Integrations: &Integrations{
|
||||||
|
MgBot: &MgBot{
|
||||||
|
RefreshToken: true,
|
||||||
|
},
|
||||||
|
MgTransport: &MgTransport{
|
||||||
|
WebhookURL: "https://loc.example.local/webhook",
|
||||||
|
RefreshToken: true,
|
||||||
|
},
|
||||||
Delivery: &Delivery{
|
Delivery: &Delivery{
|
||||||
StatusList: []DeliveryStatus{
|
StatusList: []DeliveryStatus{
|
||||||
{
|
{
|
||||||
|
9
types.go
9
types.go
@ -1254,8 +1254,9 @@ type Action struct {
|
|||||||
|
|
||||||
// MgTransport type.
|
// MgTransport type.
|
||||||
type MgTransport struct {
|
type MgTransport struct {
|
||||||
WebhookURL string `json:"webhookUrl,omitempty"`
|
WebhookURL string `json:"webhookUrl,omitempty"`
|
||||||
Actions *MgTransportActions `json:"actions,omitempty"`
|
RefreshToken bool `json:"refreshToken,omitempty"`
|
||||||
|
Actions *MgTransportActions `json:"actions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MgTransportActions struct {
|
type MgTransportActions struct {
|
||||||
@ -1264,7 +1265,9 @@ type MgTransportActions struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// MgBot type.
|
// MgBot type.
|
||||||
type MgBot struct{}
|
type MgBot struct {
|
||||||
|
RefreshToken bool `json:"refreshToken,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Cost related types
|
Cost related types
|
||||||
|
Loading…
Reference in New Issue
Block a user