diff --git a/CHANGELOG.md b/CHANGELOG.md index 3832333..91c2b2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log + +## [7.37.0](https://github.com/plivo/plivo-go/tree/v7.37.0) (2023-08-25) +**Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs** +- Added new params on message get and list response + ## [7.36.0] (https://github.com/plivo/plivo-go/tree/v7.36.0) (2023-08-10) **Feature - Verify** - Added Create Session API diff --git a/baseclient.go b/baseclient.go index e65f7fb..b1940ff 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "7.36.0" +const sdkVersion = "7.37.0" const lookupBaseUrl = "lookup.plivo.com" diff --git a/fixtures/messageGetResponse.json b/fixtures/messageGetResponse.json index 58fcfde..4bc717d 100644 --- a/fixtures/messageGetResponse.json +++ b/fixtures/messageGetResponse.json @@ -19,6 +19,9 @@ "dlt_template_category": "service_implicit", "conversation_id": "9876", "conversation_origin": "utility", - "conversation_expiration_timestamp": "2023-08-03 23:02:00+05:30" + "conversation_expiration_timestamp": "2023-08-03 23:02:00+05:30", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" } diff --git a/fixtures/messageListResponse.json b/fixtures/messageListResponse.json index 2481ad8..e90815e 100644 --- a/fixtures/messageListResponse.json +++ b/fixtures/messageListResponse.json @@ -27,7 +27,10 @@ "dlt_template_category": "promotional", "conversation_id": "0079", "conversation_origin": "marketing", - "conversation_expiration_timestamp": "2023-08-03 23:02:00+05:30" + "conversation_expiration_timestamp": "2023-08-03 23:02:00+05:30", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -49,7 +52,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -71,7 +77,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -93,7 +102,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -115,7 +127,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -137,7 +152,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -159,7 +177,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -181,7 +202,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -203,7 +227,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -225,7 +252,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -247,7 +277,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -269,7 +302,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -291,7 +327,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -313,7 +352,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -335,7 +377,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": null, @@ -357,7 +402,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -379,7 +427,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -401,7 +452,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -423,7 +477,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" }, { "error_code": "000", @@ -445,7 +502,10 @@ "dlt_template_category": "", "conversation_id": "", "conversation_origin": "", - "conversation_expiration_timestamp": "" + "conversation_expiration_timestamp": "", + "destination_network": "", + "carrier_fees": "0.00000", + "carrier_fees_rate": "0.00000" } ] } diff --git a/messages.go b/messages.go index 4754483..f2da8d9 100644 --- a/messages.go +++ b/messages.go @@ -58,6 +58,9 @@ type Message struct { DLTEntityID string `json:"dlt_entity_id" url:"dlt_entity_id,omitempty"` DLTTemplateID string `json:"dlt_template_id" url:"dlt_template_id,omitempty"` DLTTemplateCategory string `json:"dlt_template_category" url:"dlt_template_category,omitempty"` + DestinationNetwork string `json:"destination_network" url:"destination_network,omitempty"` + CarrierFeesRate string `json:"carrier_fees_rate" url:"carrier_fees_rate,omitempty"` + CarrierFees string `json:"carrier_fees" url:"carrier_fees,omitempty"` } // Stores response for ending a message.