From 166bb25bf64719e1acc80d3f580144b70602057e Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Mon, 6 Nov 2023 19:49:08 +0530 Subject: [PATCH] Added registration_status filter to Ruby SDK --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/plivo/resources/campaign.rb | 3 ++- lib/plivo/version.rb | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71891159..669dc17f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.52.0](https://github.com/plivo/plivo-ruby/tree/v4.52.0) (2023-11-10) +**Feature - Added New Param 'registration_status' for Campaign List** +- Added new query param "registration_status" for campaign list + ## [4.51.0](https://github.com/plivo/plivo-ruby/tree/v4.51.0) (2023-10-16) **Introducing campaign_source & import partner camapign API** - New field campaign_source introduced diff --git a/README.md b/README.md index 9a401558..a8e001a3 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.51.0' +gem 'plivo', '>= 4.52.0' ``` And then execute: diff --git a/lib/plivo/resources/campaign.rb b/lib/plivo/resources/campaign.rb index 8dd4a248..bcd8daad 100644 --- a/lib/plivo/resources/campaign.rb +++ b/lib/plivo/resources/campaign.rb @@ -39,6 +39,7 @@ def get(campaign_id) # @option options [String] :brand_id # @option options [Status] :usecase # @option options [String] :campaign_source + # @option options [String] :registration_status # @option options [Status] :limit # @option options [Status] :offset # @return [Hash] @@ -46,7 +47,7 @@ def list(options=nil) return perform_list_without_object if options.nil? params = {} - %i[usecase brand_id campaign_source limit offset].each do |param| + %i[usecase brand_id campaign_source limit offset registration_status].each do |param| if options.key?(param) && valid_param?(param, options[param], [String, Integer], true) params[param] = options[param] diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index 7c6fd03b..fb2bc1f7 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.51.0".freeze + VERSION = "4.52.0".freeze end