From 71b645b843e4ffb7d945df1cce1ce16d6479263a Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Fri, 17 Mar 2023 14:36:30 +0530 Subject: [PATCH 1/3] version update for created_at field in list, get brand, campaign, profile api response --- CHANGELOG.md | 4 ++++ plivo/version.py | 2 +- setup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6249f3e6..38a845e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [4.34.0](https://github.com/plivo/plivo-python/tree/v4.34.0) (2023-17-03) +**Added new param - 'created_at' in list and get Profile, Brand, Campaign details api response** +- Added New Param `created_at` to the response of the [list all profiles API], [get profile API], [list all brands API], [get brand API], [list all campaigns API] and the [get campaign API] + ## [4.33.0](https://github.com/plivo/plivo-python/tree/v4.33.0) (2023-02-23) **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response diff --git a/plivo/version.py b/plivo/version.py index 261b3b5b..79d846da 100644 --- a/plivo/version.py +++ b/plivo/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = '4.33.0' +__version__ = '4.34.0' diff --git a/setup.py b/setup.py index 53dbe328..dc6fe286 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='plivo', - version='4.33.0', + version='4.34.0', description='A Python SDK to make voice calls & send SMS using Plivo and to generate Plivo XML', long_description=long_description, url='https://github.com/plivo/plivo-python', From b1d019f9931d917d89c397ac8d2ccf9840f30770 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Mon, 20 Mar 2023 11:23:33 +0530 Subject: [PATCH 2/3] Adding created_at field in fixtures --- CHANGELOG.md | 2 +- .../resources/fixtures/brandGetResponse.json | 3 +- .../resources/fixtures/brandListResponse.json | 30 ++++++++++++------- .../fixtures/campaignGetResponse.json | 3 +- .../fixtures/campaignListResponse.json | 30 ++++++++++++------- .../fixtures/campaignUpdateResponse.json | 3 +- .../fixtures/profileGetResponse.json | 3 +- .../fixtures/profileListResponse.json | 30 ++++++++++++------- .../fixtures/profileUpdateResponse.json | 3 +- 9 files changed, 71 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38a845e0..37f04825 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [4.34.0](https://github.com/plivo/plivo-python/tree/v4.34.0) (2023-17-03) +## [4.34.0](https://github.com/plivo/plivo-python/tree/v4.34.0) (2023-20-03) **Added new param - 'created_at' in list and get Profile, Brand, Campaign details api response** - Added New Param `created_at` to the response of the [list all profiles API], [get profile API], [list all brands API], [get brand API], [list all campaigns API] and the [get campaign API] diff --git a/tests/resources/fixtures/brandGetResponse.json b/tests/resources/fixtures/brandGetResponse.json index 62a3ac38..216349b1 100644 --- a/tests/resources/fixtures/brandGetResponse.json +++ b/tests/resources/fixtures/brandGetResponse.json @@ -22,6 +22,7 @@ "entity_type": "INDIVIDUAL", "profile_uuid": "6e9a16c7-27ae-44b4-8b1f-e6b9b007426b", "registration_status": "COMPLETED", - "vertical": "ENERGY" + "vertical": "ENERGY", + "created_at": "2023-03-07T11:25:28.262701Z" } } \ No newline at end of file diff --git a/tests/resources/fixtures/brandListResponse.json b/tests/resources/fixtures/brandListResponse.json index 46ce0e8e..31509807 100644 --- a/tests/resources/fixtures/brandListResponse.json +++ b/tests/resources/fixtures/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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "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-03-07T11:25:28.262701Z" }, { "address": { @@ -207,7 +215,8 @@ "registration_status": "COMPLETED", "vertical": "PROFESSIONAL", "vetting_score": 80, - "vetting_status": "ACTIVE" + "vetting_status": "ACTIVE", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -226,7 +235,8 @@ "ein_issuing_country": "nil", "profile_uuid": "f9ee4193-a8b7-49e6-aed1-2a286c7f5c4b", "registration_status": "COMPLETED", - "vertical": "nil" + "vertical": "nil", + "created_at": "2023-03-07T11:25:28.262701Z" } ], "meta": { diff --git a/tests/resources/fixtures/campaignGetResponse.json b/tests/resources/fixtures/campaignGetResponse.json index e19478bb..ebd77daa 100644 --- a/tests/resources/fixtures/campaignGetResponse.json +++ b/tests/resources/fixtures/campaignGetResponse.json @@ -20,6 +20,7 @@ "registration_status": "ACTIVE", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-03-07T11:25:28.262701Z" } } \ No newline at end of file diff --git a/tests/resources/fixtures/campaignListResponse.json b/tests/resources/fixtures/campaignListResponse.json index f69ef46f..4f9012a1 100644 --- a/tests/resources/fixtures/campaignListResponse.json +++ b/tests/resources/fixtures/campaignListResponse.json @@ -21,7 +21,8 @@ "registration_status": "ACTIVE", "reseller_id": "RFWG6CB", "sub_usecase": "CUSTOMER_CARE", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BNOOLMO", @@ -43,7 +44,8 @@ "registration_status": "FAILED", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BWDWMAC", @@ -65,7 +67,8 @@ "registration_status": "ACTIVE", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BCKWPKX", @@ -87,7 +90,8 @@ "registration_status": "PROCESSING", "reseller_id": "", "sub_usecase": "2FA,MARKETING", - "usecase": "MIXED" + "usecase": "MIXED", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "B2IYFNC", @@ -109,7 +113,8 @@ "registration_status": "PROCESSING", "reseller_id": "", "sub_usecase": "2FA", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BK98MJL", @@ -129,7 +134,8 @@ } }, "registration_status": "ACTIVE", - "reseller_id": "" + "reseller_id": "", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "B3WKVGC", @@ -151,7 +157,8 @@ "registration_status": "PROCESSING", "reseller_id": "RFWG6CB", "sub_usecase": "CUSTOMER_CARE", - "usecase": "STARTER" + "usecase": "STARTER", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BBYQU0Z", @@ -172,7 +179,8 @@ }, "registration_status": "PROCESSING", "reseller_id": "", - "usecase": "2FA" + "usecase": "2FA", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BBYQU0Z", @@ -193,7 +201,8 @@ }, "registration_status": "ACTIVE", "reseller_id": "", - "usecase": "2FA" + "usecase": "2FA", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "brand_id": "BBYQU0Z", @@ -214,7 +223,8 @@ }, "registration_status": "ACTIVE", "reseller_id": "", - "usecase": "2FA" + "usecase": "2FA", + "created_at": "2023-03-07T11:25:28.262701Z" } ], "meta": { diff --git a/tests/resources/fixtures/campaignUpdateResponse.json b/tests/resources/fixtures/campaignUpdateResponse.json index 9e802ce4..f820305f 100644 --- a/tests/resources/fixtures/campaignUpdateResponse.json +++ b/tests/resources/fixtures/campaignUpdateResponse.json @@ -34,6 +34,7 @@ }, "message_flow": "message flowmessage flowmessage flowmessage flowmessage flowmessage flowmessage flowmessage flowmessage flow", "help_message": "help message 2help message 2help message 2help message 2help message 2help message 2help message 2help message 2", - "help_keywords": "HELP UPDATE" + "help_keywords": "HELP UPDATE", + "created_at": "2023-03-07T11:25:28.262701Z" } } \ No newline at end of file diff --git a/tests/resources/fixtures/profileGetResponse.json b/tests/resources/fixtures/profileGetResponse.json index 66c84d02..f54aab29 100644 --- a/tests/resources/fixtures/profileGetResponse.json +++ b/tests/resources/fixtures/profileGetResponse.json @@ -14,6 +14,7 @@ "profile_type": "SECONDARY", "profile_uuid": "201faedc-7df9-4840-9ab1-3997ce3f7cf4", "stock_symbol": "ABC", - "vertical": "ENERGY" + "vertical": "ENERGY", + "created_at": "2023-03-07T11:25:28.262701Z" } } \ No newline at end of file diff --git a/tests/resources/fixtures/profileListResponse.json b/tests/resources/fixtures/profileListResponse.json index bcc98c7e..376f4257 100644 --- a/tests/resources/fixtures/profileListResponse.json +++ b/tests/resources/fixtures/profileListResponse.json @@ -36,7 +36,8 @@ "stock_exchange": "NYSE", "stock_symbol": "TESLA", "vertical": "ENTERTAINMENT", - "website": "hibye.com" + "website": "hibye.com", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -67,7 +68,8 @@ "stock_exchange": "NYSE", "stock_symbol": "TESLA", "vertical": "ENTERTAINMENT", - "website": "hibye.com" + "website": "hibye.com", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -90,7 +92,8 @@ "profile_type": "SECONDARY", "profile_uuid": "21ac739e-57fa-4945-a465-0ace7d43d9f1", "vertical": "HEALTHCARE", - "website": "http://www.barkersleep.com/" + "website": "http://www.barkersleep.com/", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -120,7 +123,8 @@ "profile_uuid": "56711bac-af40-450a-b713-60cbd23ac28b", "stock_exchange": "NSE", "stock_symbol": "ABC", - "vertical": "PROFESSIONAL" + "vertical": "PROFESSIONAL", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -150,7 +154,8 @@ "profile_uuid": "287bc61b-10c2-452a-9137-4c1772292d6a", "stock_exchange": "NSE", "stock_symbol": "ABC", - "vertical": "PROFESSIONAL" + "vertical": "PROFESSIONAL", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -180,7 +185,8 @@ "stock_exchange": "NYSE", "stock_symbol": "NSE", "vertical": "TECHNOLOGY", - "website": "www.facebook.com" + "website": "www.facebook.com", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -210,7 +216,8 @@ "profile_uuid": "55cce8f9-2a0c-4b29-9ed5-a5f4c684e883", "stock_exchange": "NSE", "stock_symbol": "ABC", - "vertical": "PROFESSIONAL" + "vertical": "PROFESSIONAL", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -241,7 +248,8 @@ "stock_exchange": "NSE", "stock_symbol": "ABC", "vertical": "ENERGY", - "website": "www.google.com" + "website": "www.google.com", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -273,7 +281,8 @@ "stock_exchange": "NSE", "stock_symbol": "ABC", "vertical": "ENERGY", - "website": "www.google.com" + "website": "www.google.com", + "created_at": "2023-03-07T11:25:28.262701Z" }, { "address": { @@ -305,7 +314,8 @@ "stock_exchange": "NSE", "stock_symbol": "ABC", "vertical": "ENERGY", - "website": "www.google.com" + "website": "www.google.com", + "created_at": "2023-03-07T11:25:28.262701Z" } ] } \ No newline at end of file diff --git a/tests/resources/fixtures/profileUpdateResponse.json b/tests/resources/fixtures/profileUpdateResponse.json index 0fff2ca4..c70cfcab 100644 --- a/tests/resources/fixtures/profileUpdateResponse.json +++ b/tests/resources/fixtures/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-03-07T11:25:28.262701Z" } } \ No newline at end of file From b70a22c5764f4dd4211b7615b5dc145e56293754 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Fri, 24 Mar 2023 15:46:40 +0530 Subject: [PATCH 3/3] Updating log date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 37f04825..fa2bc43e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [4.34.0](https://github.com/plivo/plivo-python/tree/v4.34.0) (2023-20-03) +## [4.34.0](https://github.com/plivo/plivo-python/tree/v4.34.0) (2023-24-03) **Added new param - 'created_at' in list and get Profile, Brand, Campaign details api response** - Added New Param `created_at` to the response of the [list all profiles API], [get profile API], [list all brands API], [get brand API], [list all campaigns API] and the [get campaign API]