diff --git a/CHANGELOG.md b/CHANGELOG.md index 283895e9..03d0c647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.28.0](https://github.com/plivo/plivo-go/tree/v4.28.0) (2022-07-11) +**Feature - STIR Attestation** +- Add stir attestation param as part of Get CDR and Get live call APIs Response + ## [4.27.1](https://github.com/plivo/plivo-ruby/tree/v4.27.1) (2022-06-30) - `from_number`, `to_number` and `stir_verification` added to filter param [Retrieve all calls] (https://www.plivo.com/docs/voice/api/call#retrieve-all-calls) diff --git a/README.md b/README.md index 37ee2780..f18170d3 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a Add this line to your application's Gemfile: ```ruby -gem 'plivo', '>= 4.27.1' +gem 'plivo', '>= 4.28.0' ``` And then execute: diff --git a/lib/plivo/resources/calls.rb b/lib/plivo/resources/calls.rb index e1037714..f86e8cae 100644 --- a/lib/plivo/resources/calls.rb +++ b/lib/plivo/resources/calls.rb @@ -231,7 +231,8 @@ def to_s request_uuid: @request_uuid, direction: @direction, caller_name: @caller_name, - stir_verification: @stir_verification + stir_verification: @stir_verification, + stir_attestation: @stir_attestation } call_details = call_details.select {|k, v| !v.nil? } call_details.to_s diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index 973b1064..c55a20bb 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.27.1".freeze + VERSION = "4.28.0".freeze end diff --git a/spec/mocks/callGetResponse.json b/spec/mocks/callGetResponse.json index 1d32b108..c3d57f64 100644 --- a/spec/mocks/callGetResponse.json +++ b/spec/mocks/callGetResponse.json @@ -14,5 +14,6 @@ "to_number": "919999999999", "total_amount": "0.00000", "total_rate": "0.03570", - "stir_verification": "Verified" + "stir_verification": "Verified", + "stir_attestation": "A" } \ No newline at end of file diff --git a/spec/mocks/callListResponse.json b/spec/mocks/callListResponse.json index 3455bc16..b195cbad 100644 --- a/spec/mocks/callListResponse.json +++ b/spec/mocks/callListResponse.json @@ -24,7 +24,8 @@ "to_number": "14153268174", "total_amount": "0.13600", "total_rate": "0.00850", - "stir_verification": "Not Verified" + "stir_verification": "Not Verified", + "stir_attestation": "" }, { "answer_time": "2015-07-26 16:45:02+05:30", @@ -42,7 +43,8 @@ "to_number": "14153268174", "total_amount": "0.13600", "total_rate": "0.00850", - "stir_verification": "Not Applicable" + "stir_verification": "Not Applicable", + "stir_attestation": "" } ] } \ No newline at end of file diff --git a/spec/mocks/liveCallGetResponse.json b/spec/mocks/liveCallGetResponse.json index 3011b338..a77b95a4 100644 --- a/spec/mocks/liveCallGetResponse.json +++ b/spec/mocks/liveCallGetResponse.json @@ -8,5 +8,6 @@ "request_uuid": "d0a87a1a-b0e9-4ab2-ac07-c22ee87cd04a", "session_start": "2017-05-22 13:17:49.050872", "to": "919798990001", - "stir_verification": "Not Applicable" + "stir_verification": "Not Applicable", + "stir_attestation": "" } \ No newline at end of file diff --git a/spec/resource_calls_spec.rb b/spec/resource_calls_spec.rb index 42d68faf..35f0a4b8 100644 --- a/spec/resource_calls_spec.rb +++ b/spec/resource_calls_spec.rb @@ -18,7 +18,8 @@ def to_json(call) to_number: call.to_number, total_amount: call.total_amount, total_rate: call.total_rate, - stir_verification: call.stir_verification + stir_verification: call.stir_verification, + stir_attestation:call.stir_attestation }.to_json end @@ -33,7 +34,8 @@ def to_json_live(call) call_uuid: call.call_uuid, request_uuid: call.request_uuid, session_start: call.session_start, - stir_verification: call.stir_verification + stir_verification: call.stir_verification, + stir_attestation: call.stir_attestation }.to_json end