From e69fb01b150903d935f5e0401305fb30ef082b29 Mon Sep 17 00:00:00 2001 From: eshangupta-plivo <136313079+eshangupta-plivo@users.noreply.github.com> Date: Thu, 30 Nov 2023 12:52:27 +0530 Subject: [PATCH] SMS-6495 Ppk Bug Fix (#191) * SMS-6495 Ppk Bug Fix * Changelog and version updated --- CHANGELOG.md | 4 ++++ baseclient.go | 2 +- powerpacks.go | 10 +++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aad7a853..77338526 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [7.43.0](https://github.com/plivo/plivo-go/tree/v7.43.0) (2023-11-29) +**Bug Fix - Create Powerpack and Update Powerpack** +- Create Powerpack and Update Powerpack now take boolean inputs for sticky sender and local connect. + ## [7.42.0](https://github.com/plivo/plivo-go/tree/v7.42.0) (2023-11-07) **Feature - Campaign List API Enhancements** - registration_status field in LIST API diff --git a/baseclient.go b/baseclient.go index 5aebd851..62f6e42f 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.42.0" +const sdkVersion = "7.43.0" const lookupBaseUrl = "lookup.plivo.com" diff --git a/powerpacks.go b/powerpacks.go index c415f8bb..327d9cbc 100644 --- a/powerpacks.go +++ b/powerpacks.go @@ -25,8 +25,8 @@ type NumberPriority struct { type PowerackCreateParams struct { Name string `json:"name,omitempty"` // Optional parameters. - StickySender string `json:"sticky_sender,omitempty"` - LocalConnect string `json:"local_connect,omitempty"` + StickySender bool `json:"sticky_sender,omitempty"` + LocalConnect bool `json:"local_connect,omitempty"` ApplicationType string `json:"application_type,omitempty"` ApplicationID string `json:"application_id,omitempty"` NumberPriorities []NumberPriority `json:"number_priority,omitempty"` @@ -35,8 +35,8 @@ type PowerackCreateParams struct { type PowerackUpdateParams struct { // Optional parameters. Name string `json:"name,omitempty"` - StickySender string `json:"sticky_sender,omitempty"` - LocalConnect string `json:"local_connect,omitempty"` + StickySender bool `json:"sticky_sender,omitempty"` + LocalConnect bool `json:"local_connect,omitempty"` ApplicationType string `json:"application_type,omitempty"` ApplicationID string `json:"application_id,omitempty"` NumberPriorities []NumberPriority `json:"number_priority,omitempty"` @@ -161,7 +161,7 @@ type PowerpackUpdateResponse struct { PowerpackCreateResponseBody } -//powerpack list +// powerpack list type PowerpackList struct { BaseListPPKResponse Objects []Powerpack `json:"objects" url:"objects"`