From edac912c3b2a17e6d313690e4b0a76f552b4a655 Mon Sep 17 00:00:00 2001 From: ajay-plivo Date: Tue, 28 Mar 2023 15:01:24 +0530 Subject: [PATCH] VT-5438 --- lib/plivo/resources/calls.rb | 2 +- spec/mocks/callGetResponse.json | 2 +- spec/mocks/callListResponse.json | 4 ++-- spec/resource_calls_spec.rb | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/plivo/resources/calls.rb b/lib/plivo/resources/calls.rb index c1eba313..42b2c97a 100644 --- a/lib/plivo/resources/calls.rb +++ b/lib/plivo/resources/calls.rb @@ -233,7 +233,7 @@ def to_s caller_name: @caller_name, stir_verification: @stir_verification, stir_attestation: @stir_attestation, - cnam_lookup_number_config: @cnam_lookup_number_config + cnam_lookup: @cnam_lookup } 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 8f9d7c42..f40ec17e 100644 --- a/spec/mocks/callGetResponse.json +++ b/spec/mocks/callGetResponse.json @@ -16,5 +16,5 @@ "total_rate": "0.03570", "stir_verification": "Verified", "stir_attestation": "A", - "cnam_lookup_number_config": "" + "cnam_lookup": "disabled" } \ No newline at end of file diff --git a/spec/mocks/callListResponse.json b/spec/mocks/callListResponse.json index 856a6f0d..dba9a865 100644 --- a/spec/mocks/callListResponse.json +++ b/spec/mocks/callListResponse.json @@ -26,7 +26,7 @@ "total_rate": "0.00850", "stir_verification": "Not Verified", "stir_attestation": "", - "cnam_lookup_number_config": "" + "cnam_lookup": "disabled" }, { "answer_time": "2015-07-26 16:45:02+05:30", @@ -46,7 +46,7 @@ "total_rate": "0.00850", "stir_verification": "Not Applicable", "stir_attestation": "", - "cnam_lookup_number_config": "" + "cnam_lookup": "disabled" } ] } \ No newline at end of file diff --git a/spec/resource_calls_spec.rb b/spec/resource_calls_spec.rb index 65b6f4cd..b2a59cbd 100644 --- a/spec/resource_calls_spec.rb +++ b/spec/resource_calls_spec.rb @@ -20,7 +20,7 @@ def to_json(call) total_rate: call.total_rate, stir_verification: call.stir_verification, stir_attestation:call.stir_attestation, - cnam_lookup_number_config:call.cnam_lookup_number_config + cnam_lookup:call.cnam_lookup }.to_json end