Skip to content

Commit

Permalink
added_new_param_in_getCallDetails_api
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-plivo committed Mar 16, 2023
1 parent 5dccd39 commit 09f7039
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Change Log
## [4.38.2](https://github.com/plivo/plivo-ruby/tree/v4.38.2) (2023-03-16)
**Feature : Added new param in getCallDetail api**
- From now on we can see CNAM(Caller_id name) details at CDR level.

## [4.38.1](https://github.com/plivo/plivo-ruby/tree/v4.38.1) (2023-03-06)
**Bug fix on create message**
- Bulk send message fix
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.38.1'
gem 'plivo', '>= 4.38.2'
```

And then execute:
Expand Down
3 changes: 2 additions & 1 deletion lib/plivo/resources/calls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,8 @@ def to_s
direction: @direction,
caller_name: @caller_name,
stir_verification: @stir_verification,
stir_attestation: @stir_attestation
stir_attestation: @stir_attestation,
cnam_lookup_number_config: @cnam_lookup_number_config
}
call_details = call_details.select {|k, v| !v.nil? }
call_details.to_s
Expand Down
2 changes: 1 addition & 1 deletion lib/plivo/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Plivo
VERSION = "4.38.1".freeze
VERSION = "4.38.2".freeze
end
3 changes: 2 additions & 1 deletion spec/mocks/callGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
"total_amount": "0.00000",
"total_rate": "0.03570",
"stir_verification": "Verified",
"stir_attestation": "A"
"stir_attestation": "A",
"cnam_lookup_number_config": ""
}
6 changes: 4 additions & 2 deletions spec/mocks/callListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"total_amount": "0.13600",
"total_rate": "0.00850",
"stir_verification": "Not Verified",
"stir_attestation": ""
"stir_attestation": "",
"cnam_lookup_number_config": ""
},
{
"answer_time": "2015-07-26 16:45:02+05:30",
Expand All @@ -44,7 +45,8 @@
"total_amount": "0.13600",
"total_rate": "0.00850",
"stir_verification": "Not Applicable",
"stir_attestation": ""
"stir_attestation": "",
"cnam_lookup_number_config": ""
}
]
}
3 changes: 2 additions & 1 deletion spec/resource_calls_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def to_json(call)
total_amount: call.total_amount,
total_rate: call.total_rate,
stir_verification: call.stir_verification,
stir_attestation:call.stir_attestation
stir_attestation:call.stir_attestation,
cnam_lookup_number_config:call.cnam_lookup_number_config
}.to_json
end

Expand Down

0 comments on commit 09f7039

Please sign in to comment.