Skip to content

Commit

Permalink
SMS-6997: add brand_name and app_hash in create and get/list session …
Browse files Browse the repository at this point in the history
…response
  • Loading branch information
ashutoshkumar-plivo committed Aug 12, 2024
1 parent ca5817b commit c990d58
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/resources/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class SessionInterface extends PlivoResourceInterface {
create(sessionReq){

var isObject = arguments.length;
var app_uuid, recipient, url, method, channel, locale
var app_uuid, recipient, url, method, channel, locale , brand_name, app_hash

if (isObject === 1) {
app_uuid = sessionReq.app_uuid
Expand All @@ -149,6 +149,8 @@ export class SessionInterface extends PlivoResourceInterface {
method = sessionReq.method
channel = sessionReq.channel
locale = sessionReq.locale
brand_name = sessionReq.brand_name
app_hash = sessionReq.app_hash
}

let errors = validate([{
Expand Down Expand Up @@ -182,6 +184,12 @@ export class SessionInterface extends PlivoResourceInterface {
if(method) {
params.method = method
}
if(brand_name) {
params.brand_name = brand_name
}
if(app_hash) {
params.app_hash = app_hash
}
}

let client = this[clientKey];
Expand Down

0 comments on commit c990d58

Please sign in to comment.