diff --git a/CHANGELOG.md b/CHANGELOG.md index 6326b031..fae03528 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [5.25.0](https://github.com/plivo/plivo-java/tree/v5.25.0) (2023-05-29) +- Added `monthly_recording_storage_amount`, `recording_storage_rate`, `rounded_recording_duration`, and `recording_storage_duration` parameters to the response for [get single recording API](https://www.plivo.com/docs/voice/api/recording#retrieve-a-recording) and [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) +- Added `recording_storage_duration` parameter as a filter option for [get all recordings API](https://www.plivo.com/docs/voice/api/recording#list-all-recordings) + ## [5.24.0](https://github.com/plivo/plivo-java/tree/v5.24.0) (2023-05-04) - Add New Param `renewalDate` to the response of the [list all numbers API], [list single number API] - Add 5 new filters to AccountPhoneNumber - list all my numbers API:`renewal_date`, `renewal_date__gt`, `renewal_date__gte`,`renewal_date__lt` and `renewal_date__lte` (https://www.plivo.com/docs/numbers/api/account-phone-number#list-all-my-numbers) diff --git a/README.md b/README.md index 57f7db32..e7561258 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ 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.23.0/plivo-java-5.23.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.25.0/plivo-java-5.25.0.jar). If you are using Maven, use the following XML to include the Plivo SDK as a dependency. @@ -18,13 +18,13 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe com.plivo plivo-java - 5.24.0 + 5.25.0 ``` If you are using Gradle, use the following line in your dependencies. ``` -compile 'com.plivo:plivo-java:5.24.0' +compile 'com.plivo:plivo-java:5.25.0' ``` ### To Install Beta release diff --git a/pom.properties b/pom.properties index ae544d88..72755a8b 100644 --- a/pom.properties +++ b/pom.properties @@ -1,5 +1,5 @@ # Written manually. -version=5.24.0 +version=5.25.0 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index c4ee8456..7872fefa 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.24.0 + 5.25.0 plivo-java A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML diff --git a/src/main/java/com/plivo/api/models/recording/Recording.java b/src/main/java/com/plivo/api/models/recording/Recording.java index 30dd7375..05a64581 100644 --- a/src/main/java/com/plivo/api/models/recording/Recording.java +++ b/src/main/java/com/plivo/api/models/recording/Recording.java @@ -7,6 +7,8 @@ public class Recording extends BaseResource { private String addTime; private String callUuid; private String conferenceName; + private Float monthlyRecordingStorageAmount; + private Integer recordingStorageDuration; private String recordingDurationMs; private String recordingEndMs; private String recordingFormat; @@ -15,6 +17,8 @@ public class Recording extends BaseResource { private String recordingUrl; private String resourceUri; private String recordingId; + private Float recordingStorageRate; + private Integer roundedRecordingDuration; private String fromNumber; private String toNumber; @@ -112,6 +116,22 @@ public String getRecordingUrl() { return recordingUrl; } + public Float getMonthlyRecordingStorageAmount() { + return monthlyRecordingStorageAmount; + } + + public Integer getRecordingStorageDuration() { + return recordingStorageDuration; + } + + public Float getRecordingStorageRate() { + return recordingStorageRate; + } + + public Integer getRoundedRecordingDuration() { + return roundedRecordingDuration; + } + public String getResourceUri() { return resourceUri; } diff --git a/src/main/java/com/plivo/api/models/recording/RecordingLister.java b/src/main/java/com/plivo/api/models/recording/RecordingLister.java index 399b694d..34f5e352 100644 --- a/src/main/java/com/plivo/api/models/recording/RecordingLister.java +++ b/src/main/java/com/plivo/api/models/recording/RecordingLister.java @@ -17,6 +17,7 @@ public class RecordingLister extends VoiceLister { private String conferenceUuid; private String mpcUuid; private PropertyFilter addTime; + private PropertyFilter recordingStorageDuration; public String subaccount() { return this.subaccount; @@ -54,6 +55,10 @@ public PropertyFilter addTime() { return this.addTime; } + public PropertyFilter recordingStorageDuration() { + return this.recordingStorageDuration; + } + /** * @param subaccount auth_id of the subaccount. Lists only those recordings of the main accounts * which are tied to the specified subaccount. @@ -127,6 +132,11 @@ public RecordingLister addTime(final PropertyFilter addTime) { return this; } + public RecordingLister recordingStorageDuration(final PropertyFilter recordingStorageDuration) { + this.recordingStorageDuration = recordingStorageDuration; + return this; + } + @Override protected Call> obtainCall() { return client().getVoiceApiService().recordingList(client().getAuthId(), toMap()); diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 95d5ae00..3092db61 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.24.0 +5.25.0 diff --git a/src/test/resources/com/plivo/api/recordingGetResponse.json b/src/test/resources/com/plivo/api/recordingGetResponse.json index 980e4e9f..3fc96d8e 100644 --- a/src/test/resources/com/plivo/api/recordingGetResponse.json +++ b/src/test/resources/com/plivo/api/recordingGetResponse.json @@ -12,5 +12,9 @@ "recording_url": "http://s3.amazonaws.com/recordings_2013/c2186400-1c8c-11e4-a664-0026b945b52x.mp3", "resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Recording/c2186400-1c8c-11e4-a664-0026b945b52x/", "from_number": "+919999323467", - "to_number": "+919891865130" + "to_number": "+919891865130", + "monthly_recording_storage_amount": 0.0008, + "rounded_recording_duration": 120, + "recording_storage_duration": 209, + "recording_storage_rate": 0.0004 } \ No newline at end of file diff --git a/src/test/resources/com/plivo/api/recordingListResponse.json b/src/test/resources/com/plivo/api/recordingListResponse.json index 0da01418..9d225ff2 100644 --- a/src/test/resources/com/plivo/api/recordingListResponse.json +++ b/src/test/resources/com/plivo/api/recordingListResponse.json @@ -21,7 +21,11 @@ "recording_url": "http://s3.amazonaws.com/recordings_2013/c2186400-1c8c-1124-a664-0026b945b522.mp3", "resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Recording/c2186400-1c8c-1124-a664-0026b945b522/", "from_number": "+919999323467", - "to_number": "+919891865130" + "to_number": "+919891865130", + "monthly_recording_storage_amount": 0.0008, + "rounded_recording_duration": 120, + "recording_storage_duration": 209, + "recording_storage_rate": 0.0004 }, { "add_time": "2014-08-05 16:05:21.993853+05:30", @@ -36,7 +40,11 @@ "recording_url": "http://s3.amazonaws.com/recordings_2013/fc2716b0-1c8b-11e4-bwad-842b2b17453e.mp3", "resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Recording/fc2716b0-1c8b-11e4-bwad-842b2b17453e/", "from_number": "+919999323467", - "to_number": "+919891865130" + "to_number": "+919891865130", + "monthly_recording_storage_amount": 0.0008, + "rounded_recording_duration": 120, + "recording_storage_duration": 209, + "recording_storage_rate": 0.0004 }, { "add_time": "2014-08-05 15:51:56.582492+05:30", @@ -51,7 +59,11 @@ "recording_url": "http://s3.amazonaws.com/recordings_2013/3e701c9e-1c8a-11e4-bwad-842b2b17453e.mp3", "resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Recording/3e701c9e-1c8a-11e4-bwad-842b2b17453e/", "from_number": "+919999323467", - "to_number": "+919891865130" + "to_number": "+919891865130", + "monthly_recording_storage_amount": 0.0008, + "rounded_recording_duration": 120, + "recording_storage_duration": 209, + "recording_storage_rate": 0.0004 } ] } \ No newline at end of file