mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-24 13:56:04 +03:00
add field refreshToken for mg integrations
This commit is contained in:
parent
76135226fb
commit
77b49e04ab
@ -5660,6 +5660,13 @@ func TestClient_IntegrationModule(t *testing.T) {
|
||||
ClientID: RandomString(10),
|
||||
Logo: "https://cdn.worldvectorlogo.com/logos/github-icon.svg",
|
||||
Integrations: &Integrations{
|
||||
MgBot: &MgBot{
|
||||
RefreshToken: true,
|
||||
},
|
||||
MgTransport: &MgTransport{
|
||||
WebhookURL: "https://loc.example.local/webhook",
|
||||
RefreshToken: true,
|
||||
},
|
||||
Delivery: &Delivery{
|
||||
StatusList: []DeliveryStatus{
|
||||
{
|
||||
|
5
types.go
5
types.go
@ -1255,10 +1255,13 @@ type Action struct {
|
||||
// MgTransport type.
|
||||
type MgTransport struct {
|
||||
WebhookURL string `json:"webhookUrl,omitempty"`
|
||||
RefreshToken bool `json:"refreshToken,omitempty"`
|
||||
}
|
||||
|
||||
// MgBot type.
|
||||
type MgBot struct{}
|
||||
type MgBot struct {
|
||||
RefreshToken bool `json:"refreshToken,omitempty"`
|
||||
}
|
||||
|
||||
/**
|
||||
Cost related types
|
||||
|
Loading…
Reference in New Issue
Block a user