From 77b49e04abe05fdd9f135b11892c94349df3fe7c Mon Sep 17 00:00:00 2001 From: Ruslan Efanov Date: Mon, 2 Sep 2024 11:13:24 +0300 Subject: [PATCH] add field refreshToken for mg integrations --- client_test.go | 7 +++++++ types.go | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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