Skip to content

Commit

Permalink
SMS-5391: Add replaced_sender in MDR Get and List apis (#170)
Browse files Browse the repository at this point in the history
* SMS-5391: Add replaced_sender in MDR Get and List apis

* Version bump

* Add api-id to Get MDR response
  • Loading branch information
mohsin-plivo authored May 3, 2023
1 parent ee1c17a commit 494b7d4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Change Log


## [7.27.0](https://github.com/plivo/plivo-go/tree/v7.27.0) (2023-04-25)
**Feature - Added New Param 'replaced_sender' in Get Message and List Message APIs**
- Add `replaced_sender` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)
- Add `api_id` to the response for the get message details API

## [7.26.0](https://github.com/plivo/plivo-go/tree/v7.26.0) (2023-04-11)
**Feature - Added New Param 'source_ip' in GetCall and ListCalls**
- Added `source_ip` to the response for the [retrieve a call details API](https://www.plivo.com/docs/voice/api/call#retrieve-a-call) and the [retreive all call details API]


## [7.25.0](https://github.com/plivo/plivo-go/tree/v7.25.0) (2023-17-03)
- Added New Param `created_at` to the response for the [list all profiles API](https://www.plivo.com/docs/sms/api/10dlc/profile#retrieve-all-profiles) and the [get profile API](https://www.plivo.com/docs/sms/api/10dlc/profile#retrieve-a-specific-profile) and the [list all brands API](https://www.plivo.com/docs/sms/api/10dlc/brand#retrieve-all-brands) and the [get brand API](https://www.plivo.com/docs/sms/api/10dlc/brand#retrieve-a-specific-brand)
and the [list all campaigns API](https://www.plivo.com/docs/sms/api/10dlc/campaign#retrieve-all-campaigns) and the [get campaign API](https://www.plivo.com/docs/sms/api/10dlc/campaign#retrieve-a-specific-campaign)
Expand Down
5 changes: 1 addition & 4 deletions baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import (
"github.com/google/go-querystring/query"
)



const sdkVersion = "7.26.0"

const sdkVersion = "7.27.0"

const lookupBaseUrl = "lookup.plivo.com"

Expand Down
2 changes: 2 additions & 0 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type MessageCreateParams struct {
}

type Message struct {
ApiID string `json:"api_id,omitempty" url:"api_id,omitempty"`
ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"`
FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"`
CloudRate string `json:"cloud_rate,omitempty" url:"cloud_rate,omitempty"`
Expand All @@ -43,6 +44,7 @@ type Message struct {
PowerpackID string `json:"powerpack_id,omitempty" url:"powerpack_id,omitempty"`
RequesterIP string `json:"requester_ip,omitempty" url:"requester_ip,omitempty"`
IsDomestic *bool `json:"is_domestic,omitempty" url:"is_domestic,omitempty"`
ReplacedSender string `json:"replaced_sender,omitempty" url:"replaced_sender,omitempty"`
TendlcCampaignID string `json:"tendlc_campaign_id" url:"tendlc_campaign_id,omitempty"`
TendlcRegistrationStatus string `json:"tendlc_registration_status" url:"tendlc_registration_status,omitempty"`
DestinationCountryISO2 string `json:"destination_country_iso2" url:"destination_country_iso2,omitempty"`
Expand Down

0 comments on commit 494b7d4

Please sign in to comment.