Skip to content

Commit

Permalink
SMS-6066 - adding new param on mdr object (#183)
Browse files Browse the repository at this point in the history
* adding new param on mdr object

* updated date

---------

Co-authored-by: renoldthomas-plivo <renold.thomas@plivo.com>
  • Loading branch information
narayana-plivo and renoldthomas-plivo authored Aug 25, 2023
1 parent 060fe62 commit ddad275
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 22 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion baseclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
5 changes: 4 additions & 1 deletion fixtures/messageGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"

}
100 changes: 80 additions & 20 deletions fixtures/messageListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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,
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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"
}
]
}
3 changes: 3 additions & 0 deletions messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ddad275

Please sign in to comment.