Merge branch 'master' into add-mgTransport-callbacks

This commit is contained in:
Pavel 2024-09-04 13:25:44 +03:00 committed by GitHub
commit 3282ab045e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 3 deletions

View File

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

View File

@ -1255,6 +1255,7 @@ type Action struct {
// MgTransport type.
type MgTransport struct {
WebhookURL string `json:"webhookUrl,omitempty"`
RefreshToken bool `json:"refreshToken,omitempty"`
Actions *MgTransportActions `json:"actions,omitempty"`
}
@ -1264,7 +1265,9 @@ type MgTransportActions struct {
}
// MgBot type.
type MgBot struct{}
type MgBot struct {
RefreshToken bool `json:"refreshToken,omitempty"`
}
/**
Cost related types