From 0dc474c85b5d1b70179047de9e1536873e19fb42 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Tue, 14 Mar 2023 11:54:23 +0530 Subject: [PATCH 1/5] Adding CreatedAt field in get and list brand/profile api --- spec/mocks/brandGetResponse.json | 3 ++- spec/mocks/brandListResponse.json | 27 ++++++++++++++++++--------- spec/mocks/profileGetResponse.json | 3 ++- spec/mocks/profileListResponse.json | 6 ++++-- spec/resource_brand_spec.rb | 3 ++- spec/resource_profile_spec.rb | 3 ++- 6 files changed, 30 insertions(+), 15 deletions(-) diff --git a/spec/mocks/brandGetResponse.json b/spec/mocks/brandGetResponse.json index e4901079..8804a20d 100644 --- a/spec/mocks/brandGetResponse.json +++ b/spec/mocks/brandGetResponse.json @@ -12,6 +12,7 @@ "brand_id": "BPL3KN9", "brand_type": "STARTER", "ein_issuing_country": "US", - "registration_status": "COMPLETED" + "registration_status": "COMPLETED", + "created_at": "2023-01-16T06:22:35.195487Z" } } \ No newline at end of file diff --git a/spec/mocks/brandListResponse.json b/spec/mocks/brandListResponse.json index 3fe8a5a2..07b37385 100644 --- a/spec/mocks/brandListResponse.json +++ b/spec/mocks/brandListResponse.json @@ -14,7 +14,8 @@ "brand_id": "BPL3KN9", "brand_type": "STARTER", "ein_issuing_country": "US", - "registration_status": "COMPLETED" + "registration_status": "COMPLETED", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -39,7 +40,8 @@ "entity_type": "INDIVIDUAL", "profile_uuid": "55515d72-2852-4016-9ed9-c64bd1c0c055", "registration_status": "COMPLETED", - "vertical": "ENERGY" + "vertical": "ENERGY", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -64,7 +66,8 @@ "entity_type": "INDIVIDUAL", "profile_uuid": "71a18795-77fa-4623-9735-44bbd08d86c4", "registration_status": "COMPLETED", - "vertical": "ENTERTAINMENT" + "vertical": "ENTERTAINMENT", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -81,7 +84,8 @@ "ein_issuing_country": "IN", "profile_uuid": "d3d85b2d-a4c2-4f7b-a66f-83002a5fd5e8", "registration_status": "COMPLETED", - "vertical": "ENTERTAINMENT" + "vertical": "ENTERTAINMENT", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -100,7 +104,8 @@ "ein_issuing_country": "US", "profile_uuid": "709a4b1c-bbde-40e6-be36-164b1dc8f718", "registration_status": "COMPLETED", - "vertical": "ENTERTAINMENT" + "vertical": "ENTERTAINMENT", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -127,7 +132,8 @@ "entity_type": "PRIVATE", "profile_uuid": "a28b5892-4d8b-4098-9fe7-6f786fb0be1f", "registration_status": "COMPLETED", - "vertical": "ENTERTAINMENT" + "vertical": "ENTERTAINMENT", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -152,7 +158,8 @@ "entity_type": "GOVERNMENT", "profile_uuid": "ca01734d-a86a-4ed4-aa5a-8723cbb595b3", "registration_status": "COMPLETED", - "vertical": "ENERGY" + "vertical": "ENERGY", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -178,7 +185,8 @@ "profile_uuid": "c1a1c66a-2bc4-4150-a3f3-033ec41efc5d", "registration_status": "COMPLETED", "vertical": "ENTERTAINMENT", - "website": "hibye.com" + "website": "hibye.com", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -207,7 +215,8 @@ "registration_status": "COMPLETED", "vertical": "PROFESSIONAL", "vetting_score": 80, - "vetting_status": "ACTIVE" + "vetting_status": "ACTIVE", + "created_at": "2023-01-16T06:22:35.195487Z" } ] } \ No newline at end of file diff --git a/spec/mocks/profileGetResponse.json b/spec/mocks/profileGetResponse.json index a67d9417..a72a3b2d 100644 --- a/spec/mocks/profileGetResponse.json +++ b/spec/mocks/profileGetResponse.json @@ -29,6 +29,7 @@ "stock_exchange": "NASDAQ", "stock_symbol": "ABC", "vertical": "PROFESSIONAL", - "website": "google.com" + "website": "google.com", + "created_at": "2023-01-16T06:22:35.195487Z" } } \ No newline at end of file diff --git a/spec/mocks/profileListResponse.json b/spec/mocks/profileListResponse.json index ada8d2f8..4154d0b4 100644 --- a/spec/mocks/profileListResponse.json +++ b/spec/mocks/profileListResponse.json @@ -31,7 +31,8 @@ "stock_exchange": "NYSE", "stock_symbol": "TESLA", "vertical": "ENTERTAINMENT", - "website": "hibye.com" + "website": "hibye.com", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "address": { @@ -62,7 +63,8 @@ "stock_exchange": "NYSE", "stock_symbol": "TESLA", "vertical": "ENTERTAINMENT", - "website": "hibye.com" + "website": "hibye.com", + "created_at": "2023-01-16T06:22:35.195487Z" } ] } \ No newline at end of file diff --git a/spec/resource_brand_spec.rb b/spec/resource_brand_spec.rb index 7e554216..638dd794 100644 --- a/spec/resource_brand_spec.rb +++ b/spec/resource_brand_spec.rb @@ -24,7 +24,8 @@ def to_json_brand(obj) entity_type: obj['entity_type'], ein: obj['ein'], website: obj['website'], - company_name: obj['company_name'] + company_name: obj['company_name'], + created_at: obj['created_at'] }.reject { |_, v| v.nil? }.to_json end diff --git a/spec/resource_profile_spec.rb b/spec/resource_profile_spec.rb index 23137061..f211a800 100644 --- a/spec/resource_profile_spec.rb +++ b/spec/resource_profile_spec.rb @@ -27,7 +27,8 @@ def to_json_profile(obj) alt_business_id_type: obj['alt_business_id_type'], alt_business_id: obj['alt_business_id'], address: obj['address'], - authorized_contact: obj['authorized_contact'] + authorized_contact: obj['authorized_contact'], + created_at: obj['created_at'] }.reject { |_, v| v.nil? }.to_json end def to_json_list(list_object) From 77cec4802515dede95c193fdfdfc2a46a86d946e Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Thu, 16 Mar 2023 15:54:02 +0530 Subject: [PATCH 2/5] Adding created_at field in list and get campaign details api response --- spec/mocks/campaignGetResponse.json | 3 ++- spec/mocks/campaignListResponse.json | 30 +++++++++++++++++--------- spec/mocks/campaignUpdateResponse.json | 3 ++- spec/mocks/profileUpdateResponse.json | 3 ++- spec/resource_campaign_spec.rb | 3 ++- 5 files changed, 28 insertions(+), 14 deletions(-) diff --git a/spec/mocks/campaignGetResponse.json b/spec/mocks/campaignGetResponse.json index e19478bb..9ee3e283 100644 --- a/spec/mocks/campaignGetResponse.json +++ b/spec/mocks/campaignGetResponse.json @@ -20,6 +20,7 @@ "registration_status": "ACTIVE", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" } } \ No newline at end of file diff --git a/spec/mocks/campaignListResponse.json b/spec/mocks/campaignListResponse.json index d0c68101..f4d79370 100644 --- a/spec/mocks/campaignListResponse.json +++ b/spec/mocks/campaignListResponse.json @@ -21,7 +21,8 @@ "registration_status": "ACTIVE", "reseller_id": "RFWG6CB", "sub_usecase": "CUSTOMER_CARE", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BNOOLMO", @@ -43,7 +44,8 @@ "registration_status": "FAILED", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BWDWMAC", @@ -65,7 +67,8 @@ "registration_status": "ACTIVE", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BCKWPKX", @@ -87,7 +90,8 @@ "registration_status": "PROCESSING", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "MIXED" + "usecase": "MIXED", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "B2IYFNC", @@ -109,7 +113,8 @@ "registration_status": "PROCESSING", "reseller_id": "", "sub_usecase": "2FA", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BK98MJL", @@ -129,7 +134,8 @@ } }, "registration_status": "ACTIVE", - "reseller_id": "" + "reseller_id": "", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "B3WKVGC", @@ -151,7 +157,8 @@ "registration_status": "PROCESSING", "reseller_id": "RFWG6CB", "sub_usecase": "CUSTOMER_CARE", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BBYQU0Z", @@ -172,7 +179,8 @@ }, "registration_status": "PROCESSING", "reseller_id": "", - "usecase": "2FA" + "usecase": "2FA", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BBYQU0Z", @@ -193,7 +201,8 @@ }, "registration_status": "ACTIVE", "reseller_id": "", - "usecase": "2FA" + "usecase": "2FA", + "created_at": "2023-01-16T06:22:35.195487Z" }, { "brand_id": "BBYQU0Z", @@ -214,7 +223,8 @@ }, "registration_status": "ACTIVE", "reseller_id": "", - "usecase": "2FA" + "usecase": "2FA", + "created_at": "2023-01-16T06:22:35.195487Z" } ] } \ No newline at end of file diff --git a/spec/mocks/campaignUpdateResponse.json b/spec/mocks/campaignUpdateResponse.json index 6763b5d2..2156403e 100644 --- a/spec/mocks/campaignUpdateResponse.json +++ b/spec/mocks/campaignUpdateResponse.json @@ -20,6 +20,7 @@ "registration_status": "ACTIVE", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-01-16T06:22:35.195487Z" } } \ No newline at end of file diff --git a/spec/mocks/profileUpdateResponse.json b/spec/mocks/profileUpdateResponse.json index 0fff2ca4..980cdf73 100644 --- a/spec/mocks/profileUpdateResponse.json +++ b/spec/mocks/profileUpdateResponse.json @@ -27,6 +27,7 @@ "profile_type": "SECONDARY", "profile_uuid": "09322f43-fe16-4525-b8e4-4229c867795d", "vertical": "ENERGY", - "website": "www.google.com" + "website": "www.google.com", + "created_at": "2023-01-16T06:22:35.195487Z" } } \ No newline at end of file diff --git a/spec/resource_campaign_spec.rb b/spec/resource_campaign_spec.rb index d675eb04..ed1adc6d 100644 --- a/spec/resource_campaign_spec.rb +++ b/spec/resource_campaign_spec.rb @@ -16,7 +16,8 @@ def to_json_campaign(obj) reseller_id: obj['reseller_id'], usecase: obj['usecase'], registration_status: obj['registration_status'], - sub_usecase: obj['sub_usecase'] + sub_usecase: obj['sub_usecase'], + created_at: obj['created_at'] }.reject { |_, v| v.nil? }.to_json end def to_json_list(list_object) From b60f97e5f0dfe9f081fefc7e6935dbb4a947023d Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Fri, 17 Mar 2023 12:55:13 +0530 Subject: [PATCH 3/5] version update --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/plivo/version.rb | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20478171..58cbb289 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Change Log +## [4.38.2](https://github.com/plivo/plivo-ruby/tree/v4.38.2) (2023-03-16) +**Adding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs** +- dding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs + ## [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 diff --git a/README.md b/README.md index e5748a63..d6d01fd0 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.38.1' +gem 'plivo', '>= 4.38.2' ``` And then execute: diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index 3edc1ff6..f6e00127 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.38.1".freeze + VERSION = "4.38.2".freeze end From 973ef799125815fe9a18ca8ade66f99fa1758eff Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Fri, 17 Mar 2023 13:10:52 +0530 Subject: [PATCH 4/5] date change --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58cbb289..68676e7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [4.38.2](https://github.com/plivo/plivo-ruby/tree/v4.38.2) (2023-03-16) +## [4.38.2](https://github.com/plivo/plivo-ruby/tree/v4.38.2) (2023-03-17) **Adding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs** - dding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs From 5a166a1ff4c26dfe9bf77e74ab135404e8734722 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Fri, 17 Mar 2023 13:29:24 +0530 Subject: [PATCH 5/5] version update --- CHANGELOG.md | 2 +- README.md | 2 +- lib/plivo/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68676e7b..c59391dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [4.38.2](https://github.com/plivo/plivo-ruby/tree/v4.38.2) (2023-03-17) +## [4.39.0](https://github.com/plivo/plivo-ruby/tree/v4.39.0) (2023-03-17) **Adding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs** - dding new attribute - 'created_at' in List Profiles, Get Profile, List Brands, Get Brand, List Campaigns and Get Campaign APIs diff --git a/README.md b/README.md index d6d01fd0..85f9ac35 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.38.2' +gem 'plivo', '>= 4.39.0' ``` And then execute: diff --git a/lib/plivo/version.rb b/lib/plivo/version.rb index f6e00127..e3ad5a3b 100644 --- a/lib/plivo/version.rb +++ b/lib/plivo/version.rb @@ -1,3 +1,3 @@ module Plivo - VERSION = "4.38.2".freeze + VERSION = "4.39.0".freeze end