diff --git a/CHANGELOG.md b/CHANGELOG.md index aad7a85..7733852 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 5aebd85..62f6e42 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 c415f8b..327d9cb 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"`