diff --git a/client_test.go b/client_test.go index ce64aa6..f864b39 100644 --- a/client_test.go +++ b/client_test.go @@ -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{ { diff --git a/types.go b/types.go index bb51ef2..62018b8 100644 --- a/types.go +++ b/types.go @@ -1254,11 +1254,14 @@ type Action struct { // MgTransport type. type MgTransport struct { - WebhookURL string `json:"webhookUrl,omitempty"` + 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