twilio-ruby 5.72.1 → 5.73.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +25 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +22 -16
  15. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
  18. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
  19. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
  20. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
  21. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  22. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
  23. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
  25. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
  26. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
  27. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
  28. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
  29. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
  30. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
  31. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
  32. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
  33. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
  34. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
  35. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
  36. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
  37. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  38. data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
  39. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
  40. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
  41. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
  42. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
  43. data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
  44. data/lib/twilio-ruby/rest/client.rb +7 -0
  45. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
  46. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  47. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
  48. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  49. data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
  50. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
  51. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
  52. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  53. data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
  54. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
  55. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
  56. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  57. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
  58. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
  59. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
  60. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
  61. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
  62. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
  63. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -2
  64. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +1 -1
  65. data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
  66. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  67. data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
  68. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
  69. data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
  70. data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
  71. data/lib/twilio-ruby/rest/oauth/v1.rb +56 -0
  72. data/lib/twilio-ruby/rest/oauth.rb +62 -0
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  74. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
  75. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
  76. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
  77. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
  78. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  79. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  80. data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
  81. data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
  82. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
  83. data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
  84. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +1 -1
  85. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +1 -1
  86. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +240 -0
  87. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
  88. data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
  89. data/lib/twilio-ruby/rest/supersim.rb +6 -0
  90. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
  91. data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
  92. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
  93. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
  94. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
  95. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
  96. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +1 -1
  97. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
  98. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
  99. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  100. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
  101. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
  102. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
  103. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
  104. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
  105. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
  106. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
  107. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
  108. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
  109. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
  110. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
  111. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
  112. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
  113. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
  114. data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
  115. data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
  116. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
  117. data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
  118. data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
  119. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
  120. data/lib/twilio-ruby/rest/video/v1/room.rb +4 -4
  121. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
  122. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
  123. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
  124. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  125. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
  126. data/lib/twilio-ruby/twiml/voice_response.rb +6 -4
  127. data/lib/twilio-ruby/version.rb +1 -1
  128. metadata +9 -2
@@ -158,24 +158,24 @@ module Twilio
158
158
  # Marshaled Properties
159
159
  @properties = {
160
160
  'account_sid' => payload['account_sid'],
161
- 'avg_task_acceptance_time' => payload['avg_task_acceptance_time'].to_i,
161
+ 'avg_task_acceptance_time' => payload['avg_task_acceptance_time'] == nil ? payload['avg_task_acceptance_time'] : payload['avg_task_acceptance_time'].to_i,
162
162
  'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
163
163
  'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
164
- 'reservations_created' => payload['reservations_created'].to_i,
165
- 'reservations_accepted' => payload['reservations_accepted'].to_i,
166
- 'reservations_rejected' => payload['reservations_rejected'].to_i,
167
- 'reservations_timed_out' => payload['reservations_timed_out'].to_i,
168
- 'reservations_canceled' => payload['reservations_canceled'].to_i,
169
- 'reservations_rescinded' => payload['reservations_rescinded'].to_i,
164
+ 'reservations_created' => payload['reservations_created'] == nil ? payload['reservations_created'] : payload['reservations_created'].to_i,
165
+ 'reservations_accepted' => payload['reservations_accepted'] == nil ? payload['reservations_accepted'] : payload['reservations_accepted'].to_i,
166
+ 'reservations_rejected' => payload['reservations_rejected'] == nil ? payload['reservations_rejected'] : payload['reservations_rejected'].to_i,
167
+ 'reservations_timed_out' => payload['reservations_timed_out'] == nil ? payload['reservations_timed_out'] : payload['reservations_timed_out'].to_i,
168
+ 'reservations_canceled' => payload['reservations_canceled'] == nil ? payload['reservations_canceled'] : payload['reservations_canceled'].to_i,
169
+ 'reservations_rescinded' => payload['reservations_rescinded'] == nil ? payload['reservations_rescinded'] : payload['reservations_rescinded'].to_i,
170
170
  'split_by_wait_time' => payload['split_by_wait_time'],
171
171
  'wait_duration_until_accepted' => payload['wait_duration_until_accepted'],
172
172
  'wait_duration_until_canceled' => payload['wait_duration_until_canceled'],
173
- 'tasks_canceled' => payload['tasks_canceled'].to_i,
174
- 'tasks_completed' => payload['tasks_completed'].to_i,
175
- 'tasks_entered' => payload['tasks_entered'].to_i,
176
- 'tasks_deleted' => payload['tasks_deleted'].to_i,
177
- 'tasks_moved' => payload['tasks_moved'].to_i,
178
- 'tasks_timed_out_in_workflow' => payload['tasks_timed_out_in_workflow'].to_i,
173
+ 'tasks_canceled' => payload['tasks_canceled'] == nil ? payload['tasks_canceled'] : payload['tasks_canceled'].to_i,
174
+ 'tasks_completed' => payload['tasks_completed'] == nil ? payload['tasks_completed'] : payload['tasks_completed'].to_i,
175
+ 'tasks_entered' => payload['tasks_entered'] == nil ? payload['tasks_entered'] : payload['tasks_entered'].to_i,
176
+ 'tasks_deleted' => payload['tasks_deleted'] == nil ? payload['tasks_deleted'] : payload['tasks_deleted'].to_i,
177
+ 'tasks_moved' => payload['tasks_moved'] == nil ? payload['tasks_moved'] : payload['tasks_moved'].to_i,
178
+ 'tasks_timed_out_in_workflow' => payload['tasks_timed_out_in_workflow'] == nil ? payload['tasks_timed_out_in_workflow'] : payload['tasks_timed_out_in_workflow'].to_i,
179
179
  'workflow_sid' => payload['workflow_sid'],
180
180
  'workspace_sid' => payload['workspace_sid'],
181
181
  'url' => payload['url'],
@@ -136,11 +136,11 @@ module Twilio
136
136
  # Marshaled Properties
137
137
  @properties = {
138
138
  'account_sid' => payload['account_sid'],
139
- 'longest_task_waiting_age' => payload['longest_task_waiting_age'].to_i,
139
+ 'longest_task_waiting_age' => payload['longest_task_waiting_age'] == nil ? payload['longest_task_waiting_age'] : payload['longest_task_waiting_age'].to_i,
140
140
  'longest_task_waiting_sid' => payload['longest_task_waiting_sid'],
141
141
  'tasks_by_priority' => payload['tasks_by_priority'],
142
142
  'tasks_by_status' => payload['tasks_by_status'],
143
- 'total_tasks' => payload['total_tasks'].to_i,
143
+ 'total_tasks' => payload['total_tasks'] == nil ? payload['total_tasks'] : payload['total_tasks'].to_i,
144
144
  'workflow_sid' => payload['workflow_sid'],
145
145
  'workspace_sid' => payload['workspace_sid'],
146
146
  'url' => payload['url'],
@@ -328,7 +328,7 @@ module Twilio
328
328
  'fallback_assignment_callback_url' => payload['fallback_assignment_callback_url'],
329
329
  'friendly_name' => payload['friendly_name'],
330
330
  'sid' => payload['sid'],
331
- 'task_reservation_timeout' => payload['task_reservation_timeout'].to_i,
331
+ 'task_reservation_timeout' => payload['task_reservation_timeout'] == nil ? payload['task_reservation_timeout'] : payload['task_reservation_timeout'].to_i,
332
332
  'workspace_sid' => payload['workspace_sid'],
333
333
  'url' => payload['url'],
334
334
  'links' => payload['links'],
@@ -146,24 +146,24 @@ module Twilio
146
146
  # Marshaled Properties
147
147
  @properties = {
148
148
  'account_sid' => payload['account_sid'],
149
- 'avg_task_acceptance_time' => payload['avg_task_acceptance_time'].to_i,
149
+ 'avg_task_acceptance_time' => payload['avg_task_acceptance_time'] == nil ? payload['avg_task_acceptance_time'] : payload['avg_task_acceptance_time'].to_i,
150
150
  'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
151
151
  'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
152
- 'reservations_created' => payload['reservations_created'].to_i,
153
- 'reservations_accepted' => payload['reservations_accepted'].to_i,
154
- 'reservations_rejected' => payload['reservations_rejected'].to_i,
155
- 'reservations_timed_out' => payload['reservations_timed_out'].to_i,
156
- 'reservations_canceled' => payload['reservations_canceled'].to_i,
157
- 'reservations_rescinded' => payload['reservations_rescinded'].to_i,
152
+ 'reservations_created' => payload['reservations_created'] == nil ? payload['reservations_created'] : payload['reservations_created'].to_i,
153
+ 'reservations_accepted' => payload['reservations_accepted'] == nil ? payload['reservations_accepted'] : payload['reservations_accepted'].to_i,
154
+ 'reservations_rejected' => payload['reservations_rejected'] == nil ? payload['reservations_rejected'] : payload['reservations_rejected'].to_i,
155
+ 'reservations_timed_out' => payload['reservations_timed_out'] == nil ? payload['reservations_timed_out'] : payload['reservations_timed_out'].to_i,
156
+ 'reservations_canceled' => payload['reservations_canceled'] == nil ? payload['reservations_canceled'] : payload['reservations_canceled'].to_i,
157
+ 'reservations_rescinded' => payload['reservations_rescinded'] == nil ? payload['reservations_rescinded'] : payload['reservations_rescinded'].to_i,
158
158
  'split_by_wait_time' => payload['split_by_wait_time'],
159
159
  'wait_duration_until_accepted' => payload['wait_duration_until_accepted'],
160
160
  'wait_duration_until_canceled' => payload['wait_duration_until_canceled'],
161
- 'tasks_canceled' => payload['tasks_canceled'].to_i,
162
- 'tasks_completed' => payload['tasks_completed'].to_i,
163
- 'tasks_created' => payload['tasks_created'].to_i,
164
- 'tasks_deleted' => payload['tasks_deleted'].to_i,
165
- 'tasks_moved' => payload['tasks_moved'].to_i,
166
- 'tasks_timed_out_in_workflow' => payload['tasks_timed_out_in_workflow'].to_i,
161
+ 'tasks_canceled' => payload['tasks_canceled'] == nil ? payload['tasks_canceled'] : payload['tasks_canceled'].to_i,
162
+ 'tasks_completed' => payload['tasks_completed'] == nil ? payload['tasks_completed'] : payload['tasks_completed'].to_i,
163
+ 'tasks_created' => payload['tasks_created'] == nil ? payload['tasks_created'] : payload['tasks_created'].to_i,
164
+ 'tasks_deleted' => payload['tasks_deleted'] == nil ? payload['tasks_deleted'] : payload['tasks_deleted'].to_i,
165
+ 'tasks_moved' => payload['tasks_moved'] == nil ? payload['tasks_moved'] : payload['tasks_moved'].to_i,
166
+ 'tasks_timed_out_in_workflow' => payload['tasks_timed_out_in_workflow'] == nil ? payload['tasks_timed_out_in_workflow'] : payload['tasks_timed_out_in_workflow'].to_i,
167
167
  'workspace_sid' => payload['workspace_sid'],
168
168
  'url' => payload['url'],
169
169
  }
@@ -117,12 +117,12 @@ module Twilio
117
117
  @properties = {
118
118
  'account_sid' => payload['account_sid'],
119
119
  'activity_statistics' => payload['activity_statistics'],
120
- 'longest_task_waiting_age' => payload['longest_task_waiting_age'].to_i,
120
+ 'longest_task_waiting_age' => payload['longest_task_waiting_age'] == nil ? payload['longest_task_waiting_age'] : payload['longest_task_waiting_age'].to_i,
121
121
  'longest_task_waiting_sid' => payload['longest_task_waiting_sid'],
122
122
  'tasks_by_priority' => payload['tasks_by_priority'],
123
123
  'tasks_by_status' => payload['tasks_by_status'],
124
- 'total_tasks' => payload['total_tasks'].to_i,
125
- 'total_workers' => payload['total_workers'].to_i,
124
+ 'total_tasks' => payload['total_tasks'] == nil ? payload['total_tasks'] : payload['total_tasks'].to_i,
125
+ 'total_workers' => payload['total_workers'] == nil ? payload['total_workers'] : payload['total_workers'].to_i,
126
126
  'workspace_sid' => payload['workspace_sid'],
127
127
  'url' => payload['url'],
128
128
  }
@@ -274,11 +274,11 @@ module Twilio
274
274
  'account_sid' => payload['account_sid'],
275
275
  'sid' => payload['sid'],
276
276
  'trunk_sid' => payload['trunk_sid'],
277
- 'weight' => payload['weight'].to_i,
277
+ 'weight' => payload['weight'] == nil ? payload['weight'] : payload['weight'].to_i,
278
278
  'enabled' => payload['enabled'],
279
279
  'sip_url' => payload['sip_url'],
280
280
  'friendly_name' => payload['friendly_name'],
281
- 'priority' => payload['priority'].to_i,
281
+ 'priority' => payload['priority'] == nil ? payload['priority'] : payload['priority'].to_i,
282
282
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
283
283
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
284
284
  'url' => payload['url'],
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Verify < Domain
12
12
  class V2 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class AccessTokenList < ListResource
17
15
  ##
18
16
  # Initialize the AccessTokenList
@@ -59,8 +57,6 @@ module Twilio
59
57
  end
60
58
  end
61
59
 
62
- ##
63
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
64
60
  class AccessTokenPage < Page
65
61
  ##
66
62
  # Initialize the AccessTokenPage
@@ -90,8 +86,6 @@ module Twilio
90
86
  end
91
87
  end
92
88
 
93
- ##
94
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
95
89
  class AccessTokenContext < InstanceContext
96
90
  ##
97
91
  # Initialize the AccessTokenContext
@@ -137,8 +131,6 @@ module Twilio
137
131
  end
138
132
  end
139
133
 
140
- ##
141
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
142
134
  class AccessTokenInstance < InstanceResource
143
135
  ##
144
136
  # Initialize the AccessTokenInstance
@@ -161,7 +153,7 @@ module Twilio
161
153
  'factor_friendly_name' => payload['factor_friendly_name'],
162
154
  'token' => payload['token'],
163
155
  'url' => payload['url'],
164
- 'ttl' => payload['ttl'].to_i,
156
+ 'ttl' => payload['ttl'] == nil ? payload['ttl'] : payload['ttl'].to_i,
165
157
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
166
158
  }
167
159
 
@@ -13,8 +13,6 @@ module Twilio
13
13
  class ServiceContext < InstanceContext
14
14
  class EntityContext < InstanceContext
15
15
  class ChallengeContext < InstanceContext
16
- ##
17
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
18
16
  class NotificationList < ListResource
19
17
  ##
20
18
  # Initialize the NotificationList
@@ -62,8 +60,6 @@ module Twilio
62
60
  end
63
61
  end
64
62
 
65
- ##
66
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
67
63
  class NotificationPage < Page
68
64
  ##
69
65
  # Initialize the NotificationPage
@@ -99,8 +95,6 @@ module Twilio
99
95
  end
100
96
  end
101
97
 
102
- ##
103
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
104
98
  class NotificationInstance < InstanceResource
105
99
  ##
106
100
  # Initialize the NotificationInstance
@@ -125,7 +119,7 @@ module Twilio
125
119
  'identity' => payload['identity'],
126
120
  'challenge_sid' => payload['challenge_sid'],
127
121
  'priority' => payload['priority'],
128
- 'ttl' => payload['ttl'].to_i,
122
+ 'ttl' => payload['ttl'] == nil ? payload['ttl'] : payload['ttl'].to_i,
129
123
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
130
124
  }
131
125
  end
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class EntityContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ChallengeList < ListResource
18
16
  ##
19
17
  # Initialize the ChallengeList
@@ -195,8 +193,6 @@ module Twilio
195
193
  end
196
194
  end
197
195
 
198
- ##
199
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
200
196
  class ChallengePage < Page
201
197
  ##
202
198
  # Initialize the ChallengePage
@@ -231,8 +227,6 @@ module Twilio
231
227
  end
232
228
  end
233
229
 
234
- ##
235
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
236
230
  class ChallengeContext < InstanceContext
237
231
  ##
238
232
  # Initialize the ChallengeContext
@@ -331,8 +325,6 @@ module Twilio
331
325
  end
332
326
  end
333
327
 
334
- ##
335
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
336
328
  class ChallengeInstance < InstanceResource
337
329
  ##
338
330
  # Initialize the ChallengeInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class EntityContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class FactorList < ListResource
18
16
  ##
19
17
  # Initialize the FactorList
@@ -119,8 +117,6 @@ module Twilio
119
117
  end
120
118
  end
121
119
 
122
- ##
123
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
124
120
  class FactorPage < Page
125
121
  ##
126
122
  # Initialize the FactorPage
@@ -155,8 +151,6 @@ module Twilio
155
151
  end
156
152
  end
157
153
 
158
- ##
159
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
160
154
  class FactorContext < InstanceContext
161
155
  ##
162
156
  # Initialize the FactorContext
@@ -263,8 +257,6 @@ module Twilio
263
257
  end
264
258
  end
265
259
 
266
- ##
267
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
268
260
  class FactorInstance < InstanceResource
269
261
  ##
270
262
  # Initialize the FactorInstance
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V2 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class EntityContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class NewFactorList < ListResource
18
16
  ##
19
17
  # Initialize the NewFactorList
@@ -134,8 +132,6 @@ module Twilio
134
132
  end
135
133
  end
136
134
 
137
- ##
138
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
139
135
  class NewFactorPage < Page
140
136
  ##
141
137
  # Initialize the NewFactorPage
@@ -170,8 +166,6 @@ module Twilio
170
166
  end
171
167
  end
172
168
 
173
- ##
174
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
175
169
  class NewFactorInstance < InstanceResource
176
170
  ##
177
171
  # Initialize the NewFactorInstance
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Verify < Domain
12
12
  class V2 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class EntityList < ListResource
17
15
  ##
18
16
  # Initialize the EntityList
@@ -129,8 +127,6 @@ module Twilio
129
127
  end
130
128
  end
131
129
 
132
- ##
133
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
134
130
  class EntityPage < Page
135
131
  ##
136
132
  # Initialize the EntityPage
@@ -160,8 +156,6 @@ module Twilio
160
156
  end
161
157
  end
162
158
 
163
- ##
164
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
165
159
  class EntityContext < InstanceContext
166
160
  ##
167
161
  # Initialize the EntityContext
@@ -281,8 +275,6 @@ module Twilio
281
275
  end
282
276
  end
283
277
 
284
- ##
285
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
286
278
  class EntityInstance < InstanceResource
287
279
  ##
288
280
  # Initialize the EntityInstance
@@ -267,8 +267,8 @@ module Twilio
267
267
  'rate_limit_sid' => payload['rate_limit_sid'],
268
268
  'service_sid' => payload['service_sid'],
269
269
  'account_sid' => payload['account_sid'],
270
- 'max' => payload['max'].to_i,
271
- 'interval' => payload['interval'].to_i,
270
+ 'max' => payload['max'] == nil ? payload['max'] : payload['max'].to_i,
271
+ 'interval' => payload['interval'] == nil ? payload['interval'] : payload['interval'].to_i,
272
272
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
273
273
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
274
274
  'url' => payload['url'],
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Verify < Domain
12
12
  class V2 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class WebhookList < ListResource
17
15
  ##
18
16
  # Initialize the WebhookList
@@ -142,8 +140,6 @@ module Twilio
142
140
  end
143
141
  end
144
142
 
145
- ##
146
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
147
143
  class WebhookPage < Page
148
144
  ##
149
145
  # Initialize the WebhookPage
@@ -173,8 +169,6 @@ module Twilio
173
169
  end
174
170
  end
175
171
 
176
- ##
177
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
178
172
  class WebhookContext < InstanceContext
179
173
  ##
180
174
  # Initialize the WebhookContext
@@ -250,8 +244,6 @@ module Twilio
250
244
  end
251
245
  end
252
246
 
253
- ##
254
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
255
247
  class WebhookInstance < InstanceResource
256
248
  ##
257
249
  # Initialize the WebhookInstance
@@ -491,7 +491,7 @@ module Twilio
491
491
  'sid' => payload['sid'],
492
492
  'account_sid' => payload['account_sid'],
493
493
  'friendly_name' => payload['friendly_name'],
494
- 'code_length' => payload['code_length'].to_i,
494
+ 'code_length' => payload['code_length'] == nil ? payload['code_length'] : payload['code_length'].to_i,
495
495
  'lookup_enabled' => payload['lookup_enabled'],
496
496
  'psd2_enabled' => payload['psd2_enabled'],
497
497
  'skip_sms_to_landlines' => payload['skip_sms_to_landlines'],
@@ -160,6 +160,7 @@ module Twilio
160
160
  'sid' => payload['sid'],
161
161
  'account_sid' => payload['account_sid'],
162
162
  'friendly_name' => payload['friendly_name'],
163
+ 'channels' => payload['channels'],
163
164
  'translations' => payload['translations'],
164
165
  }
165
166
  end
@@ -182,6 +183,12 @@ module Twilio
182
183
  @properties['friendly_name']
183
184
  end
184
185
 
186
+ ##
187
+ # @return [Array[String]] The channels
188
+ def channels
189
+ @properties['channels']
190
+ end
191
+
185
192
  ##
186
193
  # @return [Hash] Object with the template translations.
187
194
  def translations
@@ -131,10 +131,10 @@ module Twilio
131
131
 
132
132
  # Marshaled Properties
133
133
  @properties = {
134
- 'total_attempts' => payload['total_attempts'].to_i,
135
- 'total_converted' => payload['total_converted'].to_i,
136
- 'total_unconverted' => payload['total_unconverted'].to_i,
137
- 'conversion_rate_percentage' => payload['conversion_rate_percentage'].to_f,
134
+ 'total_attempts' => payload['total_attempts'] == nil ? payload['total_attempts'] : payload['total_attempts'].to_i,
135
+ 'total_converted' => payload['total_converted'] == nil ? payload['total_converted'] : payload['total_converted'].to_i,
136
+ 'total_unconverted' => payload['total_unconverted'] == nil ? payload['total_unconverted'] : payload['total_unconverted'].to_i,
137
+ 'conversion_rate_percentage' => payload['conversion_rate_percentage'] == nil ? payload['conversion_rate_percentage'] : payload['conversion_rate_percentage'].to_f,
138
138
  'url' => payload['url'],
139
139
  }
140
140
 
@@ -331,9 +331,9 @@ module Twilio
331
331
  'resolution' => payload['resolution'],
332
332
  'trim' => payload['trim'],
333
333
  'format' => payload['format'],
334
- 'bitrate' => payload['bitrate'].to_i,
335
- 'size' => payload['size'].to_i,
336
- 'duration' => payload['duration'].to_i,
334
+ 'bitrate' => payload['bitrate'] == nil ? payload['bitrate'] : payload['bitrate'].to_i,
335
+ 'size' => payload['size'] == nil ? payload['size'] : payload['size'].to_i,
336
+ 'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
337
337
  'media_external_location' => payload['media_external_location'],
338
338
  'status_callback' => payload['status_callback'],
339
339
  'status_callback_method' => payload['status_callback_method'],
@@ -263,7 +263,7 @@ module Twilio
263
263
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
264
264
  'sid' => payload['sid'],
265
265
  'source_sid' => payload['source_sid'],
266
- 'size' => payload['size'].to_i,
266
+ 'size' => payload['size'] == nil ? payload['size'] : payload['size'].to_i,
267
267
  'url' => payload['url'],
268
268
  'type' => payload['type'],
269
269
  'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
@@ -271,7 +271,7 @@ module Twilio
271
271
  'codec' => payload['codec'],
272
272
  'grouping_sids' => payload['grouping_sids'],
273
273
  'track_name' => payload['track_name'],
274
- 'offset' => payload['offset'].to_i,
274
+ 'offset' => payload['offset'] == nil ? payload['offset'] : payload['offset'].to_i,
275
275
  'media_external_location' => payload['media_external_location'],
276
276
  'status_callback' => payload['status_callback'],
277
277
  'status_callback_method' => payload['status_callback_method'],
@@ -246,7 +246,7 @@ module Twilio
246
246
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
247
247
  'sid' => payload['sid'],
248
248
  'source_sid' => payload['source_sid'],
249
- 'size' => payload['size'].to_i,
249
+ 'size' => payload['size'] == nil ? payload['size'] : payload['size'].to_i,
250
250
  'url' => payload['url'],
251
251
  'type' => payload['type'],
252
252
  'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
@@ -254,7 +254,7 @@ module Twilio
254
254
  'codec' => payload['codec'],
255
255
  'grouping_sids' => payload['grouping_sids'],
256
256
  'track_name' => payload['track_name'],
257
- 'offset' => payload['offset'].to_i,
257
+ 'offset' => payload['offset'] == nil ? payload['offset'] : payload['offset'].to_i,
258
258
  'media_external_location' => payload['media_external_location'],
259
259
  'room_sid' => payload['room_sid'],
260
260
  'links' => payload['links'],
@@ -381,15 +381,15 @@ module Twilio
381
381
  'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
382
382
  'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
383
383
  'type' => payload['type'],
384
- 'max_participants' => payload['max_participants'].to_i,
385
- 'max_participant_duration' => payload['max_participant_duration'].to_i,
384
+ 'max_participants' => payload['max_participants'] == nil ? payload['max_participants'] : payload['max_participants'].to_i,
385
+ 'max_participant_duration' => payload['max_participant_duration'] == nil ? payload['max_participant_duration'] : payload['max_participant_duration'].to_i,
386
386
  'max_concurrent_published_tracks' => payload['max_concurrent_published_tracks'] == nil ? payload['max_concurrent_published_tracks'] : payload['max_concurrent_published_tracks'].to_i,
387
387
  'record_participants_on_connect' => payload['record_participants_on_connect'],
388
388
  'video_codecs' => payload['video_codecs'],
389
389
  'media_region' => payload['media_region'],
390
390
  'audio_only' => payload['audio_only'],
391
- 'empty_room_timeout' => payload['empty_room_timeout'].to_i,
392
- 'unused_room_timeout' => payload['unused_room_timeout'].to_i,
391
+ 'empty_room_timeout' => payload['empty_room_timeout'] == nil ? payload['empty_room_timeout'] : payload['empty_room_timeout'].to_i,
392
+ 'unused_room_timeout' => payload['unused_room_timeout'] == nil ? payload['unused_room_timeout'] : payload['unused_room_timeout'].to_i,
393
393
  'large_room' => payload['large_room'],
394
394
  'url' => payload['url'],
395
395
  'links' => payload['links'],
@@ -287,8 +287,8 @@ module Twilio
287
287
  'sid' => payload['sid'],
288
288
  'friendly_name' => payload['friendly_name'],
289
289
  'target' => payload['target'],
290
- 'priority' => payload['priority'].to_i,
291
- 'weight' => payload['weight'].to_i,
290
+ 'priority' => payload['priority'] == nil ? payload['priority'] : payload['priority'].to_i,
291
+ 'weight' => payload['weight'] == nil ? payload['weight'] : payload['weight'].to_i,
292
292
  'enabled' => payload['enabled'],
293
293
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
294
294
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
@@ -92,7 +92,7 @@ module Twilio
92
92
 
93
93
  # Marshaled Properties
94
94
  @properties = {
95
- 'update_count' => payload['update_count'].to_i,
95
+ 'update_count' => payload['update_count'] == nil ? payload['update_count'] : payload['update_count'].to_i,
96
96
  'update_request' => payload['update_request'],
97
97
  }
98
98
  end
@@ -236,7 +236,7 @@ module Twilio
236
236
  'sid' => payload['sid'],
237
237
  'friendly_name' => payload['friendly_name'],
238
238
  'ip_address' => payload['ip_address'],
239
- 'cidr_prefix_length' => payload['cidr_prefix_length'].to_i,
239
+ 'cidr_prefix_length' => payload['cidr_prefix_length'] == nil ? payload['cidr_prefix_length'] : payload['cidr_prefix_length'].to_i,
240
240
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
241
241
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
242
242
  'url' => payload['url'],
@@ -276,13 +276,13 @@ module Twilio
276
276
  'friendly_name' => payload['friendly_name'],
277
277
  'data_enabled' => payload['data_enabled'],
278
278
  'data_metering' => payload['data_metering'],
279
- 'data_limit' => payload['data_limit'].to_i,
279
+ 'data_limit' => payload['data_limit'] == nil ? payload['data_limit'] : payload['data_limit'].to_i,
280
280
  'messaging_enabled' => payload['messaging_enabled'],
281
281
  'voice_enabled' => payload['voice_enabled'],
282
282
  'national_roaming_enabled' => payload['national_roaming_enabled'],
283
- 'national_roaming_data_limit' => payload['national_roaming_data_limit'].to_i,
283
+ 'national_roaming_data_limit' => payload['national_roaming_data_limit'] == nil ? payload['national_roaming_data_limit'] : payload['national_roaming_data_limit'].to_i,
284
284
  'international_roaming' => payload['international_roaming'],
285
- 'international_roaming_data_limit' => payload['international_roaming_data_limit'].to_i,
285
+ 'international_roaming_data_limit' => payload['international_roaming_data_limit'] == nil ? payload['international_roaming_data_limit'] : payload['international_roaming_data_limit'].to_i,
286
286
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
287
287
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
288
288
  'url' => payload['url'],
@@ -167,8 +167,8 @@ module Twilio
167
167
  'operator_name' => payload['operator_name'],
168
168
  'cell_id' => payload['cell_id'],
169
169
  'cell_location_estimate' => payload['cell_location_estimate'],
170
- 'packets_uploaded' => payload['packets_uploaded'].to_i,
171
- 'packets_downloaded' => payload['packets_downloaded'].to_i,
170
+ 'packets_uploaded' => payload['packets_uploaded'] == nil ? payload['packets_uploaded'] : payload['packets_uploaded'].to_i,
171
+ 'packets_downloaded' => payload['packets_downloaded'] == nil ? payload['packets_downloaded'] : payload['packets_downloaded'].to_i,
172
172
  'last_updated' => Twilio.deserialize_iso8601_datetime(payload['last_updated']),
173
173
  'start' => Twilio.deserialize_iso8601_datetime(payload['start']),
174
174
  'end_' => Twilio.deserialize_iso8601_datetime(payload['end']),
@@ -251,9 +251,10 @@ module Twilio
251
251
  # error_type:: Type of error
252
252
  # card_type:: Type of the credit card
253
253
  # attempt:: Current attempt count
254
+ # require_matching_inputs:: Require customer to input requested information twice and verify matching.
254
255
  # keyword_args:: additional attributes
255
- def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args)
256
- prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args)
256
+ def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, require_matching_inputs: nil, **keyword_args)
257
+ prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, require_matching_inputs: require_matching_inputs, **keyword_args)
257
258
 
258
259
  yield(prompt) if block_given?
259
260
  append(prompt)
@@ -1326,9 +1327,10 @@ module Twilio
1326
1327
  # error_type:: Type of error
1327
1328
  # card_type:: Type of the credit card
1328
1329
  # attempt:: Current attempt count
1330
+ # require_matching_inputs:: Require customer to input requested information twice and verify matching.
1329
1331
  # keyword_args:: additional attributes
1330
- def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, **keyword_args)
1331
- prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, **keyword_args)
1332
+ def prompt(for_: nil, error_type: nil, card_type: nil, attempt: nil, require_matching_inputs: nil, **keyword_args)
1333
+ prompt = Prompt.new(for_: for_, error_type: error_type, card_type: card_type, attempt: attempt, require_matching_inputs: require_matching_inputs, **keyword_args)
1332
1334
 
1333
1335
  yield(prompt) if block_given?
1334
1336
  append(prompt)