diff --git a/models/bxml/verbs/Transfer.ts b/models/bxml/verbs/Transfer.ts index 9b8ddb5..a31f0ee 100644 --- a/models/bxml/verbs/Transfer.ts +++ b/models/bxml/verbs/Transfer.ts @@ -6,6 +6,7 @@ type NumberEntities = Array; interface TransferAttributes { transferCallerId?: string; + transferCallerDisplayName?: string; callTimeout?: number; transferCompleteUrl?: string; transferCompleteMethod?: string; diff --git a/tests/integration/bxml.test.js b/tests/integration/bxml.test.js index 154415d..2513234 100644 --- a/tests/integration/bxml.test.js +++ b/tests/integration/bxml.test.js @@ -108,6 +108,7 @@ describe('BXML Integration Tests', () => { const transferAttributes = { transferCallerId: '+19195551234', + transferCallerDisplayName: 'initialDisplayName', callTimeout: 5, transferCompleteUrl: 'https://initial.com', transferCompleteMethod: 'POST', diff --git a/tests/unit/bxml/verbs/Transfer.test.js b/tests/unit/bxml/verbs/Transfer.test.js index 8ae1bf7..da97fbe 100644 --- a/tests/unit/bxml/verbs/Transfer.test.js +++ b/tests/unit/bxml/verbs/Transfer.test.js @@ -6,6 +6,7 @@ const { Transfer } = require('../../../../models/bxml/verbs/Transfer'); describe('Transfer', () => { const attributes = { transferCallerId: '+19195551234', + transferCallerDisplayName: 'initialDisplayName', callTimeout: 5, transferCompleteUrl: 'https://initial.com', transferCompleteMethod: 'POST', @@ -25,7 +26,7 @@ describe('Transfer', () => { test('should create a Transfer Verb', () => { const transfer = new Transfer(attributes); - const expected = ''; + const expected = ''; expect(transfer).toBeInstanceOf(Transfer); expect(transfer).toBeInstanceOf(Verb); @@ -34,9 +35,9 @@ describe('Transfer', () => { test('should create a Transfer Verb with nested PhoneNumber and SipUri', () => { let transfer = new Transfer(attributes, phoneNumber); - const expected = '+19195551234'; - const expectedSingle = '+19195551234sip:1-999-123-4567@voip-provider.example.net'; - const expectedMultiple = '+19195551234sip:1-999-123-4567@voip-provider.example.netsip:1-999-123-4567@voip-provider.example.net+19195551234'; + const expected = '+19195551234'; + const expectedSingle = '+19195551234sip:1-999-123-4567@voip-provider.example.net'; + const expectedMultiple = '+19195551234sip:1-999-123-4567@voip-provider.example.netsip:1-999-123-4567@voip-provider.example.net+19195551234'; expect(transfer).toBeInstanceOf(Transfer); expect(transfer).toBeInstanceOf(Verb); @@ -51,7 +52,7 @@ describe('Transfer', () => { test('should test the addTransferRecipients method method when no verbs are initially nested', () => { const transfer = new Transfer(attributes); - const expected = '+19195551234'; + const expected = '+19195551234'; transfer.addTransferRecipients(phoneNumber); expect(transfer.toBxml()).toBe(expected);