add field refreshToken for mg integrations

This commit is contained in:
Ruslan Efanov 2024-09-02 11:13:24 +03:00
parent 76135226fb
commit 77b49e04ab
2 changed files with 12 additions and 2 deletions

View File

@ -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{
{ {

View File

@ -1255,10 +1255,13 @@ type Action struct {
// MgTransport type. // MgTransport type.
type MgTransport struct { type MgTransport struct {
WebhookURL string `json:"webhookUrl,omitempty"` WebhookURL string `json:"webhookUrl,omitempty"`
RefreshToken bool `json:"refreshToken,omitempty"`
} }
// MgBot type. // MgBot type.
type MgBot struct{} type MgBot struct {
RefreshToken bool `json:"refreshToken,omitempty"`
}
/** /**
Cost related types Cost related types