Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: twilio/twilio-node
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5289971ac2eb79dd81e36b590f74e569cac1f6f8
Choose a base ref
...
head repository: twilio/twilio-node
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 97f60c8e34f819f48c1f7f7a87ee11dd5d2d71ba
Choose a head ref
  • 16 commits
  • 120 files changed
  • 5 contributors

Commits on Nov 18, 2020

  1. Copy the full SHA
    4f2b4f9 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    42ee8d3 View commit details
  3. Release 3.52.0

    twilio-ci committed Nov 18, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    afec144 View commit details

Commits on Dec 2, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    221fba8 View commit details
  2. Release 3.53.0

    twilio-ci committed Dec 2, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a39b111 View commit details

Commits on Dec 8, 2020

  1. Copy the full SHA
    aab9558 View commit details
  2. Release 3.54.0

    twilio-ci committed Dec 8, 2020
    Copy the full SHA
    1cb33f1 View commit details

Commits on Dec 16, 2020

  1. Copy the full SHA
    58e69a6 View commit details
  2. Release 3.54.1

    twilio-ci committed Dec 16, 2020
    Copy the full SHA
    ae96ebe View commit details

Commits on Dec 28, 2020

  1. Update .travis.yml

    thinkingserious authored Dec 28, 2020
    Copy the full SHA
    c270737 View commit details
  2. Update .travis.yml

    Reverted until we add twilio-dx to the twilio org
    thinkingserious authored Dec 28, 2020
    Copy the full SHA
    bf4a89a View commit details
  3. Copy the full SHA
    10fa1ec View commit details

Commits on Jan 1, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c226431 View commit details

Commits on Jan 6, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9a7da3e View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8c0898c View commit details
  3. Release 3.54.2

    twilio-dx committed Jan 6, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    97f60c8 View commit details
Showing with 1,908 additions and 3,145 deletions.
  1. +78 −0 CHANGES.md
  2. +1 −1 LICENSE
  3. +0 −6 lib/rest/Preview.d.ts
  4. +0 −27 lib/rest/Preview.js
  5. +9 −0 lib/rest/api/v2010/account/call.d.ts
  6. +31 −1 lib/rest/api/v2010/account/call.js
  7. +238 −0 lib/rest/api/v2010/account/call/event.d.ts
  8. +438 −0 lib/rest/api/v2010/account/call/event.js
  9. +4 −0 lib/rest/api/v2010/account/call/recording.d.ts
  10. +6 −1 lib/rest/api/v2010/account/call/recording.js
  11. +2 −0 lib/rest/api/v2010/account/conference/participant.d.ts
  12. +3 −1 lib/rest/api/v2010/account/conference/participant.js
  13. +1 −1 lib/rest/api/v2010/account/usage/record.d.ts
  14. +1 −1 lib/rest/api/v2010/account/usage/record/allTime.d.ts
  15. +1 −1 lib/rest/api/v2010/account/usage/record/daily.d.ts
  16. +1 −1 lib/rest/api/v2010/account/usage/record/lastMonth.d.ts
  17. +1 −1 lib/rest/api/v2010/account/usage/record/monthly.d.ts
  18. +1 −1 lib/rest/api/v2010/account/usage/record/thisMonth.d.ts
  19. +1 −1 lib/rest/api/v2010/account/usage/record/today.d.ts
  20. +1 −1 lib/rest/api/v2010/account/usage/record/yearly.d.ts
  21. +1 −1 lib/rest/api/v2010/account/usage/record/yesterday.d.ts
  22. +1 −1 lib/rest/api/v2010/account/usage/trigger.d.ts
  23. +8 −0 lib/rest/conversations/v1/conversation/participant.d.ts
  24. +17 −1 lib/rest/conversations/v1/conversation/participant.js
  25. +4 −0 lib/rest/conversations/v1/service/configuration.d.ts
  26. +10 −1 lib/rest/conversations/v1/service/configuration.js
  27. +8 −0 lib/rest/conversations/v1/service/conversation/participant.d.ts
  28. +17 −1 lib/rest/conversations/v1/service/conversation/participant.js
  29. +2 −0 lib/rest/conversations/v1/service/user.d.ts
  30. +4 −1 lib/rest/conversations/v1/service/user.js
  31. +2 −0 lib/rest/conversations/v1/user.d.ts
  32. +4 −1 lib/rest/conversations/v1/user.js
  33. +6 −0 lib/rest/events/v1/subscription.d.ts
  34. +4 −0 lib/rest/events/v1/subscription.js
  35. +3 −3 lib/rest/flexApi/v1/channel.d.ts
  36. +5 −5 lib/rest/flexApi/v1/channel.js
  37. +20 −20 lib/rest/flexApi/v1/flexFlow.d.ts
  38. +31 −31 lib/rest/flexApi/v1/flexFlow.js
  39. +1 −1 lib/rest/flexApi/v1/webChannel.d.ts
  40. +2 −2 lib/rest/flexApi/v1/webChannel.js
  41. +1 −1 lib/rest/insights/v1/room.d.ts
  42. +4 −8 lib/rest/insights/v1/room/participant.d.ts
  43. +1 −3 lib/rest/insights/v1/room/participant.js
  44. +0 −9 lib/rest/preview/TrustedComms.d.ts
  45. +0 −36 lib/rest/preview/TrustedComms.js
  46. +0 −145 lib/rest/preview/trusted_comms/brandedCall.d.ts
  47. +0 −295 lib/rest/preview/trusted_comms/brandedCall.js
  48. +0 −146 lib/rest/preview/trusted_comms/business.d.ts
  49. +0 −355 lib/rest/preview/trusted_comms/business.js
  50. +0 −42 lib/rest/preview/trusted_comms/business/insights.d.ts
  51. +0 −89 lib/rest/preview/trusted_comms/business/insights.js
  52. +0 −182 lib/rest/preview/trusted_comms/business/insights/impressionsRate.d.ts
  53. +0 −372 lib/rest/preview/trusted_comms/business/insights/impressionsRate.js
  54. +0 −191 lib/rest/preview/trusted_comms/phoneCall.d.ts
  55. +0 −357 lib/rest/preview/trusted_comms/phoneCall.js
  56. +8 −12 lib/rest/serverless/v1/service.d.ts
  57. +8 −12 lib/rest/serverless/v1/service.js
  58. +8 −12 lib/rest/serverless/v1/service/asset.d.ts
  59. +8 −12 lib/rest/serverless/v1/service/asset.js
  60. +8 −12 lib/rest/serverless/v1/service/asset/assetVersion.d.ts
  61. +8 −12 lib/rest/serverless/v1/service/asset/assetVersion.js
  62. +8 −12 lib/rest/serverless/v1/service/build.d.ts
  63. +8 −12 lib/rest/serverless/v1/service/build.js
  64. +8 −12 lib/rest/serverless/v1/service/build/buildStatus.d.ts
  65. +8 −12 lib/rest/serverless/v1/service/build/buildStatus.js
  66. +8 −12 lib/rest/serverless/v1/service/environment.d.ts
  67. +8 −12 lib/rest/serverless/v1/service/environment.js
  68. +8 −12 lib/rest/serverless/v1/service/environment/deployment.d.ts
  69. +8 −12 lib/rest/serverless/v1/service/environment/deployment.js
  70. +8 −12 lib/rest/serverless/v1/service/environment/log.d.ts
  71. +8 −12 lib/rest/serverless/v1/service/environment/log.js
  72. +8 −12 lib/rest/serverless/v1/service/environment/variable.d.ts
  73. +8 −12 lib/rest/serverless/v1/service/environment/variable.js
  74. +8 −12 lib/rest/serverless/v1/service/function.d.ts
  75. +8 −12 lib/rest/serverless/v1/service/function.js
  76. +8 −12 lib/rest/serverless/v1/service/function/functionVersion.d.ts
  77. +8 −12 lib/rest/serverless/v1/service/function/functionVersion.js
  78. +8 −12 lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts
  79. +8 −12 lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js
  80. +9 −1 lib/rest/sync/v1/service/document.d.ts
  81. +7 −0 lib/rest/sync/v1/service/document.js
  82. +9 −1 lib/rest/sync/v1/service/syncList.d.ts
  83. +7 −0 lib/rest/sync/v1/service/syncList.js
  84. +9 −1 lib/rest/sync/v1/service/syncList/syncListItem.d.ts
  85. +7 −0 lib/rest/sync/v1/service/syncList/syncListItem.js
  86. +9 −1 lib/rest/sync/v1/service/syncMap.d.ts
  87. +7 −0 lib/rest/sync/v1/service/syncMap.js
  88. +9 −1 lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts
  89. +7 −0 lib/rest/sync/v1/service/syncMap/syncMapItem.js
  90. +9 −1 lib/rest/sync/v1/service/syncStream.d.ts
  91. +7 −0 lib/rest/sync/v1/service/syncStream.js
  92. +10 −10 lib/rest/taskrouter/v1/workspace/taskChannel.d.ts
  93. +15 −15 lib/rest/taskrouter/v1/workspace/taskChannel.js
  94. +28 −7 lib/rest/trunking/v1/trunk/recording.d.ts
  95. +24 −10 lib/rest/trunking/v1/trunk/recording.js
  96. +1 −1 lib/rest/verify/v2/service/entity/challenge.d.ts
  97. +2 −3 lib/rest/verify/v2/service/entity/challenge.js
  98. +12 −0 lib/twiml/VoiceResponse.d.ts
  99. +7 −0 lib/twiml/VoiceResponse.js
  100. +0 −2 lib/webhooks/webhooks.js
  101. +8 −4 package.json
  102. +32 −16 spec/integration/rest/api/v2010/account/call.spec.js
  103. +272 −0 spec/integration/rest/api/v2010/account/call/event.spec.js
  104. +7 −0 spec/integration/rest/api/v2010/account/call/recording.spec.js
  105. +33 −0 spec/integration/rest/api/v2010/account/conference/participant.spec.js
  106. +48 −16 spec/integration/rest/conversations/v1/conversation/participant.spec.js
  107. +2 −0 spec/integration/rest/conversations/v1/service/configuration.spec.js
  108. +48 −16 spec/integration/rest/conversations/v1/service/conversation/participant.spec.js
  109. +18 −7 spec/integration/rest/conversations/v1/service/user.spec.js
  110. +18 −7 spec/integration/rest/conversations/v1/user.spec.js
  111. +51 −0 spec/integration/rest/events/v1/subscription.spec.js
  112. +0 −5 spec/integration/rest/insights/v1/room/participant.spec.js
  113. +7 −7 spec/integration/rest/lookups/v1/phoneNumber.spec.js
  114. +0 −90 spec/integration/rest/preview/trusted_comms/brandedCall.spec.js
  115. +0 −75 spec/integration/rest/preview/trusted_comms/business.spec.js
  116. +0 −32 spec/integration/rest/preview/trusted_comms/business/insights.spec.js
  117. +0 −86 spec/integration/rest/preview/trusted_comms/business/insights/impressionsRate.spec.js
  118. +0 −90 spec/integration/rest/preview/trusted_comms/phoneCall.spec.js
  119. +1 −1 spec/integration/rest/taskrouter/v1/workspace/worker/workerChannel.spec.js
  120. +2 −6 spec/integration/rest/trunking/v1/trunk/recording.spec.js
78 changes: 78 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,84 @@
twilio-node changelog
=====================

[2021-01-06] Version 3.54.2
---------------------------
**Library - Fix**
- [PR #640](https://github.com/twilio/twilio-node/pull/640): axios update to v0.21.1. Thanks to [@ShelbyZ](https://github.com/ShelbyZ)!
- [PR #642](https://github.com/twilio/twilio-node/pull/642): url encoding for validateExpressRequest. Thanks to [@thinkingserious](https://github.com/thinkingserious)!


[2020-12-16] Version 3.54.1
---------------------------
**Api**
- Updated `call_event` default_output_properties to request and response.

**Conversations**
- Added `last_read_message_index` and `last_read_timestamp` to Participant's resource update operation
- Added `is_notifiable` and `is_online` to User's resource
- Added `reachability_enabled` parameters to update method for Conversation Service Configuration resource

**Messaging**
- Added WA template quick reply, URL, and phone number buttons

**Twiml**
- Add `sequential` to `Dial`.


[2020-12-08] Version 3.54.0
---------------------------
**Api**
- Added optional `RecordingTrack` parameter for create calls, create participants, and create call recordings
- Removed deprecated Programmable Chat usage record categories **(breaking change)**

**Twiml**
- Add `recordingTrack` to `Dial`.


[2020-12-02] Version 3.53.0
---------------------------
**Api**
- Remove `RecordingTrack` parameter for create calls, create participants, and create call recordings **(breaking change)**
- Added `RecordingTrack` parameter for create calls and create call recordings
- Add optional property `recording_track` in the participant create request

**Lookups**
- Changed `caller_name` and `carrier` properties type to object **(breaking change)**

**Trunking**
- Added dual channel recording options for Trunks.

**Twiml**
- Add `jitterBufferSize` and `participantLabel` to `Conference`.


[2020-11-18] Version 3.52.0
---------------------------
**Library - Chore**
- [PR #630](https://github.com/twilio/twilio-node/pull/630): Move @types dependencies to peerDependencies. Thanks to [@taxilian](https://github.com/taxilian)!

**Api**
- Add new call events resource - GET /2010-04-01/Accounts/{account_sid}/Calls/{call_sid}/Events.json

**Conversations**
- Fixed default response property issue for Service Notifications Configuration

**Insights**
- Removing call_sid from participant summary. **(breaking change)**

**Serverless**
- Allow Service unique name to be used in path (in place of SID) in Service update request

**Sync**
- Added HideExpired query parameter for filtering Sync Documents with expired

**Verify**
- Challenge `Details` and `HiddenDetails` properties are now marked as `PII`
- Challenge `expiration_date` attribute updated to set a default value of five (5) minutes and to allow max dates of one (1) hour after creation.
- Entity `identity` attribute updated to allow values between 8 and 64 characters.
- Verify Service frinedly_name attribute updated from 64 max lenght to 30 characters.


[2020-11-05] Version 3.51.0
---------------------------
**Library - Fix**
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2020, Twilio, Inc. <help@twilio.com>
Copyright (C) 2021, Twilio, Inc. <help@twilio.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
6 changes: 0 additions & 6 deletions lib/rest/Preview.d.ts
Original file line number Diff line number Diff line change
@@ -18,10 +18,8 @@ import Wireless = require('./preview/Wireless');
import { AssistantListInstance } from './preview/understand/assistant';
import { AuthorizationDocumentListInstance } from './preview/hosted_numbers/authorizationDocument';
import { AvailableAddOnListInstance } from './preview/marketplace/availableAddOn';
import { BrandedCallListInstance } from './preview/trusted_comms/brandedCall';
import { BrandedChannelListInstance } from './preview/trusted_comms/brandedChannel';
import { BrandsInformationListInstance } from './preview/trusted_comms/brandsInformation';
import { BusinessListInstance } from './preview/trusted_comms/business';
import { CommandListInstance } from './preview/wireless/command';
import { CpsListInstance } from './preview/trusted_comms/cps';
import { CurrentCallListInstance } from './preview/trusted_comms/currentCall';
@@ -30,7 +28,6 @@ import { ExportListInstance } from './preview/bulk_exports/export';
import { FleetListInstance } from './preview/deployed_devices/fleet';
import { HostedNumberOrderListInstance } from './preview/hosted_numbers/hostedNumberOrder';
import { InstalledAddOnListInstance } from './preview/marketplace/installedAddOn';
import { PhoneCallListInstance } from './preview/trusted_comms/phoneCall';
import { RatePlanListInstance } from './preview/wireless/ratePlan';
import { ServiceListInstance } from './preview/sync/service';
import { SimListInstance } from './preview/wireless/sim';
@@ -47,11 +44,9 @@ declare class Preview extends Domain {
readonly assistants: AssistantListInstance;
readonly authorizationDocuments: AuthorizationDocumentListInstance;
readonly availableAddOns: AvailableAddOnListInstance;
readonly brandedCalls: BrandedCallListInstance;
readonly brandedChannels: BrandedChannelListInstance;
readonly brandsInformation: BrandsInformationListInstance;
readonly bulk_exports: BulkExports;
readonly businesses: BusinessListInstance;
readonly commands: CommandListInstance;
readonly cps: CpsListInstance;
readonly currentCalls: CurrentCallListInstance;
@@ -63,7 +58,6 @@ declare class Preview extends Domain {
readonly hosted_numbers: HostedNumbers;
readonly installedAddOns: InstalledAddOnListInstance;
readonly marketplace: Marketplace;
readonly phoneCalls: PhoneCallListInstance;
readonly ratePlans: RatePlanListInstance;
readonly services: ServiceListInstance;
readonly sims: SimListInstance;
27 changes: 0 additions & 27 deletions lib/rest/Preview.js
Original file line number Diff line number Diff line change
@@ -56,19 +56,13 @@ var Wireless = require('./preview/Wireless'); /* jshint ignore:line */
* @property {Twilio.Preview.Wireless.CommandList} commands - commands resource
* @property {Twilio.Preview.Wireless.RatePlanList} ratePlans - ratePlans resource
* @property {Twilio.Preview.Wireless.SimList} sims - sims resource
* @property {Twilio.Preview.TrustedComms.BrandedCallList} brandedCalls -
* brandedCalls resource
* @property {Twilio.Preview.TrustedComms.BrandedChannelList} brandedChannels -
* brandedChannels resource
* @property {Twilio.Preview.TrustedComms.BrandsInformationList} brandsInformation -
* brandsInformation resource
* @property {Twilio.Preview.TrustedComms.BusinessList} businesses -
* businesses resource
* @property {Twilio.Preview.TrustedComms.CpsList} cps - cps resource
* @property {Twilio.Preview.TrustedComms.CurrentCallList} currentCalls -
* currentCalls resource
* @property {Twilio.Preview.TrustedComms.PhoneCallList} phoneCalls -
* phoneCalls resource
*
* @param {Twilio} twilio - The twilio client
*/
@@ -238,13 +232,6 @@ Object.defineProperty(Preview.prototype,
}
});

Object.defineProperty(Preview.prototype,
'brandedCalls', {
get: function() {
return this.trusted_comms.brandedCalls;
}
});

Object.defineProperty(Preview.prototype,
'brandedChannels', {
get: function() {
@@ -259,13 +246,6 @@ Object.defineProperty(Preview.prototype,
}
});

Object.defineProperty(Preview.prototype,
'businesses', {
get: function() {
return this.trusted_comms.businesses;
}
});

Object.defineProperty(Preview.prototype,
'cps', {
get: function() {
@@ -280,11 +260,4 @@ Object.defineProperty(Preview.prototype,
}
});

Object.defineProperty(Preview.prototype,
'phoneCalls', {
get: function() {
return this.trusted_comms.phoneCalls;
}
});

module.exports = Preview;
9 changes: 9 additions & 0 deletions lib/rest/api/v2010/account/call.d.ts
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@
import Page = require('../../../../base/Page');
import Response = require('../../../../http/response');
import V2010 = require('../../V2010');
import { EventList } from './call/event';
import { EventListInstance } from './call/event';
import { FeedbackList } from './call/feedback';
import { FeedbackListInstance } from './call/feedback';
import { FeedbackSummaryListInstance } from './call/feedbackSummary';
@@ -201,6 +203,7 @@ interface CallListInstance {
* @property recordingStatusCallback - The URL that we call when the recording is available to be accessed
* @property recordingStatusCallbackEvent - The recording status events that will trigger calls to the URL specified in `recording_status_callback`
* @property recordingStatusCallbackMethod - The HTTP method we should use when calling the `recording_status_callback` URL
* @property recordingTrack - Which track(s) to record
* @property sendDigits - The digits to dial after connecting to the number
* @property sipAuthPassword - The password required to authenticate the user account specified in `sip_auth_username`.
* @property sipAuthUsername - The username used to authenticate the caller making a SIP call
@@ -235,6 +238,7 @@ interface CallListInstanceCreateOptions {
recordingStatusCallback?: string;
recordingStatusCallbackEvent?: string | string[];
recordingStatusCallbackMethod?: string;
recordingTrack?: string;
sendDigits?: string;
sipAuthPassword?: string;
sipAuthUsername?: string;
@@ -413,6 +417,7 @@ declare class CallContext {
*/
constructor(version: V2010, accountSid: string, sid: string);

events: EventListInstance;
feedback: FeedbackListInstance;
/**
* fetch a CallInstance
@@ -471,6 +476,10 @@ declare class CallInstance extends SerializableClass {
direction: string;
duration: string;
endTime: Date;
/**
* Access the events
*/
events(): EventListInstance;
/**
* Access the feedback
*/
32 changes: 31 additions & 1 deletion lib/rest/api/v2010/account/call.js
Original file line number Diff line number Diff line change
@@ -12,6 +12,7 @@
var Q = require('q'); /* jshint ignore:line */
var _ = require('lodash'); /* jshint ignore:line */
var util = require('util'); /* jshint ignore:line */
var EventList = require('./call/event').EventList;
var FeedbackList = require('./call/feedback').FeedbackList;
var FeedbackSummaryList = require('./call/feedbackSummary').FeedbackSummaryList;
var NotificationList = require('./call/notification').NotificationList;
@@ -118,6 +119,7 @@ CallList = function CallList(version, accountSid) {
* HTTP Method to use with async_amd_status_callback
* @param {string} [opts.byoc] - BYOC trunk SID (Beta)
* @param {string} [opts.callReason] - Reason for the call (Branded Calls Beta)
* @param {string} [opts.recordingTrack] - Which track(s) to record
* @param {string} [opts.url] - The absolute URL that returns TwiML for this call
* @param {string} [opts.twiml] - TwiML instructions for the call
* @param {string} [opts.applicationSid] -
@@ -171,7 +173,8 @@ CallList = function CallList(version, accountSid) {
'AsyncAmdStatusCallback': _.get(opts, 'asyncAmdStatusCallback'),
'AsyncAmdStatusCallbackMethod': _.get(opts, 'asyncAmdStatusCallbackMethod'),
'Byoc': _.get(opts, 'byoc'),
'CallReason': _.get(opts, 'callReason')
'CallReason': _.get(opts, 'callReason'),
'RecordingTrack': _.get(opts, 'recordingTrack')
});

var promise = this._version.create({uri: this._uri, method: 'POST', data: data});
@@ -816,6 +819,20 @@ CallInstance.prototype.feedback = function feedback() {
return this._proxy.feedback;
};

/* jshint ignore:start */
/**
* Access the events
*
* @function events
* @memberof Twilio.Api.V2010.AccountContext.CallInstance#
*
* @returns {Twilio.Api.V2010.AccountContext.CallContext.EventList}
*/
/* jshint ignore:end */
CallInstance.prototype.events = function events() {
return this._proxy.events;
};

/* jshint ignore:start */
/**
* Access the payments
@@ -867,6 +884,8 @@ CallInstance.prototype[util.inspect.custom] = function inspect(depth, options) {
* notifications resource
* @property {Twilio.Api.V2010.AccountContext.CallContext.FeedbackList} feedback -
* feedback resource
* @property {Twilio.Api.V2010.AccountContext.CallContext.EventList} events -
* events resource
* @property {Twilio.Api.V2010.AccountContext.CallContext.PaymentList} payments -
* payments resource
*
@@ -887,6 +906,7 @@ CallContext = function CallContext(version, accountSid, sid) {
this._recordings = undefined;
this._notifications = undefined;
this._feedback = undefined;
this._events = undefined;
this._payments = undefined;
};

@@ -1056,6 +1076,16 @@ Object.defineProperty(CallContext.prototype,
}
});

Object.defineProperty(CallContext.prototype,
'events', {
get: function() {
if (!this._events) {
this._events = new EventList(this._version, this._solution.accountSid, this._solution.sid);
}
return this._events;
}
});

Object.defineProperty(CallContext.prototype,
'payments', {
get: function() {
Loading