added missing fields

This commit is contained in:
kapilp93 2022-02-16 18:30:34 +05:30
parent 2dca4a96db
commit 787dd74463
6 changed files with 15 additions and 3 deletions

View file

@ -20,7 +20,7 @@ var listParams = {
client.hostedMessagingNumber.create(createParams)
.then(function (hmn) {
console.log("\n============ created ===========\n", hmn)
return client.hostedMessagingNumber.get(hmn.id);
return client.hostedMessagingNumber.get(hmn.hostedMessagingNumberId);
})
.then(function (hmn) {
console.log("\n============ get ===========\n", hmn)

View file

@ -17,11 +17,11 @@ var listParams = {
client.loa.create(createParams)
.then(function (loa) {
console.log("\n============ created ===========\n", loa)
return client.loa.get(loa.id);
return client.loa.get(loa.loaId);
})
.then(function (loa) {
console.log("\n============ get ===========\n", loa)
return client.loa.delete(loa.id);
return client.loa.delete(loa.loaId);
})
.then(function (result) {
console.log("\n============ deleted ===========\n", result)

View file

@ -22,6 +22,7 @@ export class HostedMessagingNumberResponse {
this.number = params.number;
this.hostedStatus = params.hostedStatus;
this.linkedNumbers = params.linkedNumbers;
this.resourceUri = params.resourceUri;
this.createdAt = params.createdAt;
}
}
@ -39,6 +40,8 @@ export class CreateHostedMessagingNumberResponse {
this.number = params.number;
this.hostedStatus = params.hostedStatus;
this.linkedNumbers = params.linkedNumbers;
this.resourceUri = params.resourceUri;
this.message = params.message;
this.createdAt = params.createdAt;
}
}

View file

@ -18,6 +18,7 @@ export class LOAResponse {
this.loaId = params.loaId;
this.linkedNumbers = params.linkedNumbers;
this.createdAt = params.createdAt;
this.resourceUri = params.resourceUri;
}
}
@ -29,6 +30,8 @@ export class CreateLOAResponse {
this.file = params.file;
this.linkedNumbers = params.linkedNumbers;
this.createdAt = params.createdAt;
this.resourceUri = params.resourceUri;
this.message = params.message;
}
}

View file

@ -7,6 +7,7 @@ export class HostedMessagingNumberResponse {
file: string;
createdAt: string;
linkedNumbers: Array<string>;
resourceUri:string;
}
export class CreateHostedMessagingNumberResponse {
@ -18,6 +19,8 @@ export class CreateHostedMessagingNumberResponse {
file: string;
createdAt: string;
linkedNumbers: string[];
resourceUri:string;
message:string;
}
export class ListHostedMessagingNumberResponse {

View file

@ -7,6 +7,7 @@ export class LOAResponse {
file: string;
createdAt: string;
linkedNumbers: Array<string>;
resourceUri: string;
}
export class CreateLOAResponse {
@ -18,6 +19,8 @@ export class CreateLOAResponse {
file: string;
createdAt: string;
linkedNumbers: string[];
resourceUri: string;
message: string;
}
export class ListLOAResponse {