Skip to content

Commit

Permalink
Merge pull request #310 from plivo/SMS-5098
Browse files Browse the repository at this point in the history
Sms 5098
  • Loading branch information
narayana-plivo authored Mar 24, 2023
2 parents 833c65d + 48282ed commit 0055aa9
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 28 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.44.0](https://github.com/plivo/plivo-php/tree/v4.44.0) (2023-24-03)
- 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]

## [v4.43.1](https://github.com/plivo/plivo-php/tree/v4.43.1) (2023-03-24)
- Fix brand registration create api param

Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Version
/**
* @const int PHP helper library minor version number
*/
const MINOR = 43;
const MINOR = 44;

/**
* @const int PHP helper library patch number
Expand Down
3 changes: 2 additions & 1 deletion tests/Mocks/brandGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"brand_type": "STARTER",
"profile_uuid": "3cf3e991-2f94-4910-9712-61442987a2d0",
"registration_status": "COMPLETED",
"vertical": "ENTERTAINMENT"
"vertical": "ENTERTAINMENT",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
30 changes: 20 additions & 10 deletions tests/Mocks/brandListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"vertical": "COMMUNICATION",
"vetting_score": 80,
"vetting_status": "ACTIVE",
"website": "www.renold.com"
"website": "www.renold.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -43,7 +44,8 @@
"vertical": "COMMUNICATION",
"vetting_score": 80,
"vetting_status": "ACTIVE",
"website": "www.standard1.com"
"website": "www.standard1.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -64,7 +66,8 @@
"registration_status": "COMPLETED",
"vertical": "ENERGY",
"vetting_score": 80,
"vetting_status": "ACTIVE"
"vetting_status": "ACTIVE",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -80,7 +83,8 @@
"ein_issuing_country": "US",
"entity_type": "INDIVIDUAL",
"brand_type": "STARTER",
"registration_status": "COMPLETED"
"registration_status": "COMPLETED",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -102,7 +106,8 @@
"vertical": "ENTERTAINMENT",
"vetting_score": 80,
"vetting_status": "ACTIVE",
"website": "http://www.automation.com"
"website": "http://www.automation.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand Down Expand Up @@ -131,7 +136,8 @@
"registration_status": "COMPLETED",
"vertical": "ENERGY",
"vetting_score": 80,
"vetting_status": "ACTIVE"
"vetting_status": "ACTIVE",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -153,7 +159,8 @@
"vertical": "RETAIL",
"vetting_score": 80,
"vetting_status": "ACTIVE",
"website": "http://www.abcmobile.com"
"website": "http://www.abcmobile.com",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -178,7 +185,8 @@
"brand_type": "STARTER",
"profile_uuid": "55515d72-2852-4016-9ed9-c64bd1c0c055",
"registration_status": "COMPLETED",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -196,7 +204,8 @@
"brand_type": "STARTER",
"profile_uuid": "3db43f63-270f-4d55-a591-27f7dc19b8e7",
"registration_status": "COMPLETED",
"vertical": "PROFESSIONAL"
"vertical": "PROFESSIONAL",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"address": {
Expand All @@ -218,7 +227,8 @@
"registration_status": "COMPLETED",
"vertical": "PROFESSIONAL",
"vetting_score": 80,
"vetting_status": "ACTIVE"
"vetting_status": "ACTIVE",
"created_at": "2023-03-07T11:25:28.262701Z"
}
],
"meta": {
Expand Down
3 changes: 2 additions & 1 deletion tests/Mocks/campaignGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"registration_status": "PROCESSING",
"reseller_id": "RPDPPUM",
"sub_usecase": "2FA,ACCOUNT_NOTIFICATION",
"usecase": "ACCOUNT_NOTIFICATION"
"usecase": "ACCOUNT_NOTIFICATION",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
30 changes: 20 additions & 10 deletions tests/Mocks/campaignListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"registration_status": "PROCESSING",
"reseller_id": "",
"usecase": "MARKETING"
"usecase": "MARKETING",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BHYYNCK",
Expand All @@ -42,7 +43,8 @@
"registration_status": "PROCESSING",
"reseller_id": "RPDPPUM",
"sub_usecase": "2FA,ACCOUNT_NOTIFICATION",
"usecase": "ACCOUNT_NOTIFICATION"
"usecase": "ACCOUNT_NOTIFICATION",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BHYYNCK",
Expand All @@ -64,7 +66,8 @@
"registration_status": "ACTIVE",
"reseller_id": "RPDPPUM",
"sub_usecase": "2FA,ACCOUNT_NOTIFICATION",
"usecase": "ACCOUNT_NOTIFICATION"
"usecase": "ACCOUNT_NOTIFICATION",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BHYYNCK",
Expand All @@ -86,7 +89,8 @@
"registration_status": "PROCESSING",
"reseller_id": "RPDPPUM",
"sub_usecase": "2FA,ACCOUNT_NOTIFICATION",
"usecase": "ACCOUNT_NOTIFICATION"
"usecase": "ACCOUNT_NOTIFICATION",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BJ6EHHH",
Expand All @@ -108,7 +112,8 @@
"registration_status": "PROCESSING",
"reseller_id": "",
"sub_usecase": "2FA,CUSTOMER_CARE,ACCOUNT_NOTIFICATION,DELIVERY_NOTIFICATION,MARKETING",
"usecase": "SOLE_PROPRIETOR"
"usecase": "SOLE_PROPRIETOR",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BMIORKY",
Expand All @@ -129,7 +134,8 @@
},
"registration_status": "PROCESSING",
"reseller_id": "",
"usecase": "2FA"
"usecase": "2FA",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BFJRJUN",
Expand All @@ -151,7 +157,8 @@
"registration_status": "PROCESSING",
"reseller_id": "",
"sub_usecase": "CUSTOMER_CARE,2FA",
"usecase": "MIXED"
"usecase": "MIXED",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BHYYNCK",
Expand All @@ -174,7 +181,8 @@
"registration_status": "ACTIVE",
"reseller_id": "",
"sub_usecase": "2FA,DELIVERY_NOTIFICATION",
"usecase": "MIXED"
"usecase": "MIXED",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BHYYNCK",
Expand All @@ -196,7 +204,8 @@
"registration_status": "PROCESSING",
"reseller_id": "",
"sub_usecase": "2FA",
"usecase": "2FA"
"usecase": "2FA",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"brand_id": "BHYYNCK",
Expand All @@ -217,7 +226,8 @@
},
"registration_status": "PROCESSING",
"reseller_id": "",
"usecase": "MARKETING"
"usecase": "MARKETING",
"created_at": "2023-03-07T11:25:28.262701Z"
}
],
"meta": {
Expand Down
3 changes: 2 additions & 1 deletion tests/Mocks/campaignUpdateResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"message_flow": "message flow",
"help_message": "help message",
"help_keywords": "HELP UPDATE"
"help_keywords": "HELP UPDATE",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
3 changes: 2 additions & 1 deletion tests/Mocks/profileGetResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"profile_type": "SECONDARY",
"profile_uuid": "06ecae31-4bf8-40b9-ac62-e902418e9935",
"stock_symbol": "ABC",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}
6 changes: 4 additions & 2 deletions tests/Mocks/profileListResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"profile_type": "SECONDARY",
"profile_uuid": "1c41faed-a38e-42a3-a966-fe7df34b51b9",
"stock_symbol": "ABC",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
},
{
"alt_business_id_type": "NONE",
Expand All @@ -38,7 +39,8 @@
"profile_type": "SECONDARY",
"profile_uuid": "1d77a5fe-bca4-4a6d-a7c4-58b70e8cd7a2",
"stock_symbol": "ABC",
"vertical": "ENERGY"
"vertical": "ENERGY",
"created_at": "2023-03-07T11:25:28.262701Z"
}
]
}
3 changes: 2 additions & 1 deletion tests/Mocks/profileUpdateResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"profile_uuid": "1c41faed-a38e-42a3-a966-fe7df34b51b9",
"stock_symbol": "ABC",
"vertical": "PROFESSIONAL",
"website": "google.com"
"website": "google.com",
"created_at": "2023-03-07T11:25:28.262701Z"
}
}

0 comments on commit 0055aa9

Please sign in to comment.