-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from plivo/brand-api
brand creation api
- Loading branch information
Showing
4 changed files
with
92 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1216,18 +1216,30 @@ export function Request(config) { | |
resolve({ | ||
response: {}, | ||
body: { | ||
api_id: "71aa47e0-3750-11ec-8e4c-0242ac110002", | ||
brand: { | ||
brand_id: "BRPXS6E", | ||
company_name: "ABC Inc.", | ||
ein: "111111111", | ||
ein_issuing_country: "US", | ||
email: "[email protected]", | ||
entity_type: "PRIVATE_PROFIT", | ||
registration_status: "COMPLETED", | ||
vertical: "RETAIL", | ||
website: "http://www.abcmobile.com" | ||
} | ||
api_id: "4bac497c-b963-11ec-b7ca-0242ac110002", | ||
brand: { | ||
address: { | ||
city: "New York", | ||
country: "IN", | ||
postal_code: "10001", | ||
state: "NY", | ||
street: "123" | ||
}, | ||
authorized_contact: { | ||
email: "[email protected]", | ||
first_nam: "vishnu", | ||
last_name: "Doe", | ||
phone: "919742763781", | ||
seniority: "admin", | ||
title: "Doe" | ||
}, | ||
brand_id: "B1QSGGS", | ||
ein_issuing_country: "IN", | ||
entity_type: "SOLE_PROPRIETOR", | ||
profile_uuid: "3cf3e991-2f94-4910-9712-61442987a2d0", | ||
registration_status: "COMPLETED", | ||
vertical: "ENTERTAINMENT" | ||
} | ||
} | ||
}); | ||
} | ||
|
@@ -1249,7 +1261,8 @@ export function Request(config) { | |
Verizon_Wireless: {} | ||
}, | ||
reseller_id: "RPDPPUM", | ||
usecase: "ACCOUNT_NOTIFICATION" | ||
usecase: "ACCOUNT_NOTIFICATION", | ||
sub_usecase: "2FA,ACCOUNT_NOTIFICATION" | ||
} | ||
} | ||
}); | ||
|
@@ -1260,28 +1273,48 @@ export function Request(config) { | |
body: { | ||
api_id: "b9df43c0-374c-11ec-97b3-0242ac110002", | ||
brands: [ | ||
{ | ||
brand_id: "ABCDEFG", | ||
company_name: "ABC Inc.", | ||
ein: "111111111", | ||
ein_issuing_country: "US", | ||
email: "[email protected]", | ||
entity_type: "PRIVATE_PROFIT", | ||
registration_status: "COMPLETED", | ||
vertical: "RETAIL", | ||
website: "http://www.abcmobile.com" | ||
{ | ||
address: { | ||
city: "", | ||
country: "", | ||
postal_code: "", | ||
state: "", | ||
street: "" | ||
}, | ||
{ | ||
brand_id: "QWERTYU", | ||
company_name: "ABC Inc.", | ||
ein: "111111111", | ||
ein_issuing_country: "US", | ||
email: "[email protected]", | ||
entity_type: "PRIVATE_PROFIT", | ||
registration_status: "COMPLETED", | ||
vertical: "RETAIL", | ||
website: "http://www.abcmobile.com" | ||
} | ||
authorized_contact: {}, | ||
brand_alias: "Ren_With_Vetting", | ||
brand_id: "BXZRASW", | ||
company_name: "Ren_With_Vetting", | ||
ein: "2342334534231", | ||
ein_issuing_country: "IN", | ||
entity_type: "NON_PROFIT", | ||
registration_status: "COMPLETED", | ||
vertical: "COMMUNICATION", | ||
vetting_score: 80, | ||
vetting_status: "ACTIVE", | ||
website: "www.renold.com" | ||
}, | ||
{ | ||
address: { | ||
city: "", | ||
country: "", | ||
postal_code: "", | ||
state: "", | ||
street: "" | ||
}, | ||
authorized_contact: {}, | ||
brand_alias: "CSP Testing 003", | ||
brand_id: "BMIORKY", | ||
company_name: "CSP Testing 003", | ||
ein: "234234234", | ||
ein_issuing_country: "IN", | ||
entity_type: "PUBLIC_PROFIT", | ||
registration_status: "COMPLETED", | ||
vertical: "COMMUNICATION", | ||
vetting_score: 80, | ||
vetting_status: "ACTIVE", | ||
website: "www.standard1.com" | ||
} | ||
] | ||
} | ||
}); | ||
|
@@ -1305,7 +1338,8 @@ export function Request(config) { | |
Verizon_Wireless: {} | ||
}, | ||
reseller_id: "RPDPPUM", | ||
usecase: "ACCOUNT_NOTIFICATION" | ||
usecase: "ACCOUNT_NOTIFICATION", | ||
sub_usecase: "2FA,ACCOUNT_NOTIFICATION" | ||
}, | ||
{ | ||
brand_id: "B8OD95Z", | ||
|
@@ -1321,7 +1355,8 @@ export function Request(config) { | |
Verizon_Wireless: {} | ||
}, | ||
reseller_id: "", | ||
usecase: "MIXED" | ||
usecase: "MIXED", | ||
sub_usecase: "2FA,ACCOUNT_NOTIFICATION" | ||
} | ||
] | ||
} | ||
|
@@ -1331,27 +1366,9 @@ export function Request(config) { | |
resolve({ | ||
response: {}, | ||
body: { | ||
api_id: "a52a5398-3751-11ec-8e4c-0242ac110002", | ||
brand: { | ||
alt_business_id_type: "GIIN", | ||
brand_id: "BVI0UQA", | ||
city: "New York", | ||
country: "US", | ||
ein_issuing_country: "US", | ||
email: "[email protected]", | ||
entity_type: "SOLE_PROPRIETOR", | ||
first_name: "John", | ||
last_name: "Doe", | ||
phone: "+11234567890", | ||
postal_code: "10001", | ||
registration_status: "PENDING", | ||
state: "NY", | ||
stock_exchange: "NASDAQ", | ||
stock_symbol: "ABC", | ||
street: "123", | ||
vertical: "RETAIL", | ||
website: "http://www.abcmobile.com" | ||
} | ||
api_id: "ab2e4754-b951-11ec-b7ca-0242ac110002", | ||
brand_id: "B1QSGGS", | ||
message: "Request to create brand was received and is being processed." | ||
} | ||
}); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ import { | |
it('should get brand', function () { | ||
return client.brand.get('BRPXS6E') | ||
.then(function (brand) { | ||
assert.equal(brand.brand.brandId, 'BRPXS6E') | ||
assert.equal(brand.brand.brandId, 'B1QSGGS') | ||
}) | ||
}); | ||
|
||
|
@@ -25,10 +25,9 @@ import { | |
}); | ||
|
||
it('create brand', function () { | ||
return client.brand.create("New York","ABC Inc.", "US", "111111111","US","[email protected]","PRIVATE_PROFIT","+11234567890","10001","PENDING", | ||
"NY", "NASDAQ","ABC","123", "RETAIL") | ||
return client.brand.create("vishnu128", "3cf3e991-2f94-4910-9712-61442987a2d0","starter", false) | ||
.then(function (brand) { | ||
assert.equal(brand.brand.brandId, 'BVI0UQA') | ||
assert.equal(brand.brandId, 'B1QSGGS') | ||
}) | ||
}); | ||
|
||
|