Skip to content

Commit

Permalink
Merge pull request #255 from plivo/SMS-6066-message-sdks
Browse files Browse the repository at this point in the history
SMS-6066 - Carrier details in message object
  • Loading branch information
renoldthomas-plivo authored Aug 25, 2023
2 parents 584b2f7 + cac23f8 commit ee6a0dc
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [5.30.0](https://github.com/plivo/plivo-java/tree/v5.30.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

## [5.29.0](https://github.com/plivo/plivo-java/tree/v5.29.0) (2023-08-03)
**Feature - DLT parameters**
- Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the [send message API](https://www.plivo.com/docs/sms/api/message/send-a-message/)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ The Plivo Java SDK makes it simpler to integrate communications into your Java a

### To Install Stable release

You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.29.0/plivo-java-5.29.0.jar).
You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.30.0/plivo-java-5.30.0.jar).

If you are using Maven, use the following XML to include the Plivo SDK as a dependency.

```xml
<dependency>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.29.0</version>
<version>5.30.0</version>
</dependency>
```

If you are using Gradle, use the following line in your dependencies.
```
compile 'com.plivo:plivo-java:5.29.0'
compile 'com.plivo:plivo-java:5.30.0'
```

### To Install Beta release
Expand Down
2 changes: 1 addition & 1 deletion pom.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Written manually.

version=5.29.0
version=5.30.0
groupId=com.plivo
artifactId=plivo-java
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.plivo</groupId>
<artifactId>plivo-java</artifactId>
<version>5.29.0</version>
<version>5.30.0</version>
<name>plivo-java</name>
<description>A Java SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML</description>
<licenses>
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/com/plivo/api/models/message/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public class Message extends BaseResource {
private String tendlcCampaignID;
private String tendlcRegistrationStatus;
private String destinationCountryIso2;
private String destinationNetwork;
private String carrierFeesRate;
private String carrierFees;
private String requesterIP;
private Boolean isDomestic;
private String replacedSender;
Expand Down Expand Up @@ -81,6 +84,18 @@ public String getDestinationCountryIso2() {
return destinationCountryIso2;
}

public String getDestinationNetwork() {
return destinationNetwork;
}

public String getCarrierFeesRate() {
return carrierFeesRate;
}

public String getCarrierFees() {
return carrierFees;
}

public String getFromNumber() {
return fromNumber;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ public String destinationCountryIso2() {
return this.destinationCountryIso2;
}


public MessageLister subaccount(final String subaccount) {
this.subaccount = subaccount;
return this;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/com/plivo/api/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.29.0
5.30.0

0 comments on commit ee6a0dc

Please sign in to comment.