From c3099e10376e7e2114a0ab4f75fda337a44e51dc Mon Sep 17 00:00:00 2001 From: abinaya-plivo Date: Tue, 7 Dec 2021 12:56:21 +0530 Subject: [PATCH 1/3] VT-3755 StirShaken phase 2 - SDK implementation --- lib/plivo/resources/calls.rb | 3 ++- spec/mocks/callGetResponse.json | 3 ++- spec/mocks/callListResponse.json | 6 ++++-- spec/mocks/liveCallGetResponse.json | 3 ++- spec/resource_calls_spec.rb | 6 ++++-- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/lib/plivo/resources/calls.rb b/lib/plivo/resources/calls.rb index 3047ddee..9b292c1f 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/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 From 17656e29e53172cea6e1ce068c35663ac37c5a3d Mon Sep 17 00:00:00 2001 From: abinaya-plivo Date: Wed, 6 Jul 2022 11:11:56 +0530 Subject: [PATCH 2/3] added versions --- CHANGELOG.md | 3 +++ README.md | 2 +- lib/plivo/version.rb | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 283895e9..f138cd51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## [4.28.0](https://github.com/plivo/plivo-go/tree/v4.28.0) (2022-07-06) +- Add stir attestation param as part of Get CDR and live call APIs + ## [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/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 From 65d514342581c6f529537a978512a26d59717637 Mon Sep 17 00:00:00 2001 From: Rachana GK Date: Mon, 11 Jul 2022 10:14:51 +0530 Subject: [PATCH 3/3] update release date in changelog --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f138cd51..03d0c647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ # Change Log -## [4.28.0](https://github.com/plivo/plivo-go/tree/v4.28.0) (2022-07-06) -- Add stir attestation param as part of Get CDR and live call APIs +## [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)