diff --git a/examples/hostedMessagingNumber.js b/examples/hostedMessagingNumber.js index 332f789..534982f 100644 --- a/examples/hostedMessagingNumber.js +++ b/examples/hostedMessagingNumber.js @@ -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) diff --git a/examples/loa.js b/examples/loa.js index 3216fe6..e074f71 100644 --- a/examples/loa.js +++ b/examples/loa.js @@ -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) diff --git a/lib/resources/hostedMessagingNumber.js b/lib/resources/hostedMessagingNumber.js index 8f2ece9..086e586 100644 --- a/lib/resources/hostedMessagingNumber.js +++ b/lib/resources/hostedMessagingNumber.js @@ -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; } } diff --git a/lib/resources/loa.js b/lib/resources/loa.js index aec1d60..3236904 100644 --- a/lib/resources/loa.js +++ b/lib/resources/loa.js @@ -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; } } diff --git a/types/resources/hostedMessagingNumber.d.ts b/types/resources/hostedMessagingNumber.d.ts index 1cd0d5b..3b5c2d1 100644 --- a/types/resources/hostedMessagingNumber.d.ts +++ b/types/resources/hostedMessagingNumber.d.ts @@ -7,6 +7,7 @@ export class HostedMessagingNumberResponse { file: string; createdAt: string; linkedNumbers: Array; + 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 { diff --git a/types/resources/loa.d.ts b/types/resources/loa.d.ts index d87918a..f64392d 100644 --- a/types/resources/loa.d.ts +++ b/types/resources/loa.d.ts @@ -7,6 +7,7 @@ export class LOAResponse { file: string; createdAt: string; linkedNumbers: Array; + 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 {