diff --git a/CHANGELOG.md b/CHANGELOG.md index c487bbf..67c5ee6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [7.51.2](https://github.com/plivo/plivo-go/tree/v7.51.2) (2024-09-06) +**Feature - Adding support for brand_name, code_length and app_hash in Create,Get and List Session** +- Added new request param `brand_name`, `code_length` and `app_hash` in create Session API +- Added support for `brand_name` , `app_hash`, `code_length` param in get and list Session response + ## [7.51.1](https://github.com/plivo/plivo-go/tree/v7.51.1) (2024-09-05) **Feature - Adding new element for Audio Stream XML ** - Added `keepCallAlive` element in Audio Stream XML diff --git a/baseclient.go b/baseclient.go index 55069d3..996c465 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.51.1" +const sdkVersion = "7.51.2" const lookupBaseUrl = "lookup.plivo.com" diff --git a/verify.go b/verify.go index ce83a2c..e75fbe4 100644 --- a/verify.go +++ b/verify.go @@ -43,6 +43,9 @@ type AttemptDetails struct { Channel string `json:"channel,omitempty"` AttemptUUID string `json:"attempt_uuid,omitempty"` Status string `json:"status,omitempty"` + BrandName string `json:"brand_name,omitempty"` + AppHash string `json:"app_hash,omitempty"` + CodeLength int `json:"code_length,omitempty"` Time time.Time `json:"time,omitempty"` } @@ -61,12 +64,15 @@ type AttemptCharges struct { type SessionCreateParams struct { Recipient string `json:"recipient,omitempty"` // Optional parameters. - AppUUID string `json:"app_uuid,omitempty"` - Channel string `json:"channel,omitempty"` - URL string `json:"url,omitempty"` - Method string `json:"method,omitempty"` - Src string `json:"src,omitempty"` - Locale string `json:"locale,omitempty"` + AppUUID string `json:"app_uuid,omitempty"` + Channel string `json:"channel,omitempty"` + URL string `json:"url,omitempty"` + Method string `json:"method,omitempty"` + Src string `json:"src,omitempty"` + Locale string `json:"locale,omitempty"` + BrandName string `json:"brand_name,omitempty"` + AppHash string `json:"app_hash,omitempty"` + CodeLength int `json:"code_length,omitempty"` } type SessionCreateResponseBody struct { @@ -88,6 +94,8 @@ type SessionListParams struct { AppUUID string `url:"app_uuid,omitempty"` Country string `url:"country,omitempty"` Alias string `url:"alias,omitempty"` + BrandName string `json:"brand_name,omitempty"` + AppHash string `json:"app_hash,omitempty"` SessionTime string `url:"session_time,omitempty"` Subaccount string `url:"subaccount,omitempty"` SessionTimeGreaterThan string `url:"session_time__gt,omitempty"`