twilio-ruby 5.44.0 → 5.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +97 -0
  4. data/LICENSE +1 -1
  5. data/README.md +16 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -9
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +10 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +17 -12
  12. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  14. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
  16. data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
  17. data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
  18. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
  19. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
  20. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
  22. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
  24. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
  25. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
  27. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
  28. data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
  29. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  30. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  31. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
  32. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  33. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
  34. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
  35. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
  36. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  39. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  41. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  42. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  43. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  44. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  46. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  47. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  48. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  49. data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -2
  50. data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -2
  51. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  52. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  53. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  54. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
  55. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  56. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  57. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  58. data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
  59. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  60. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  61. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  62. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  63. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  64. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  65. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  66. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  67. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  68. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  69. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  70. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  71. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  72. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  73. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  74. data/lib/twilio-ruby/rest/messaging.rb +22 -0
  75. data/lib/twilio-ruby/rest/messaging/v1.rb +37 -0
  76. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  77. data/lib/twilio-ruby/rest/messaging/v1/campaign.rb +387 -0
  78. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  79. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  80. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  81. data/lib/twilio-ruby/rest/messaging/v1/use_case.rb +198 -0
  82. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  83. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  84. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  85. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  86. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  87. data/lib/twilio-ruby/rest/preview.rb +4 -23
  88. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
  89. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  90. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  91. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  92. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  93. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  94. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  95. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  96. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  97. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  98. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
  99. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  100. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  101. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  102. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  103. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  104. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  105. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  106. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  107. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
  108. data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
  109. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  110. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  111. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  112. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  113. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
  114. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  115. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  116. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  117. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
  118. data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
  119. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
  120. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
  121. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  122. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  123. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  124. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +16 -36
  125. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  126. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -25
  127. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +24 -43
  128. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  129. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -25
  130. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +25 -44
  131. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
  132. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -23
  133. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  137. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  138. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  139. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  140. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  141. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  142. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
  143. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  144. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  145. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  146. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  147. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
  148. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  149. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
  150. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  151. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  152. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  153. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  154. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  155. data/lib/twilio-ruby/twiml/voice_response.rb +18 -8
  156. data/lib/twilio-ruby/version.rb +1 -1
  157. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  158. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  159. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  160. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  161. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  162. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  163. data/spec/integration/events/v1/sink_spec.rb +14 -0
  164. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  165. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  166. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  167. data/spec/integration/messaging/v1/campaign_spec.rb +194 -0
  168. data/spec/integration/messaging/v1/use_case_spec.rb +55 -0
  169. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  170. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  171. data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
  172. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  173. data/spec/integration/video/v1/room_spec.rb +5 -0
  174. data/spec/twiml/voice_response_spec.rb +1 -1
  175. metadata +11 -17
  176. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
  177. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
  178. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
  179. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
  180. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
  181. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
  182. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
  183. data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
  184. data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
  185. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -296,7 +296,7 @@ module Twilio
296
296
  end
297
297
 
298
298
  ##
299
- # @return [String] An array of values that describe whether the number can receive calls or messages
299
+ # @return [Array[String]] An array of values that describe whether the number can receive calls or messages
300
300
  def capabilities
301
301
  @properties['capabilities']
302
302
  end
@@ -302,7 +302,7 @@ module Twilio
302
302
  end
303
303
 
304
304
  ##
305
- # @return [String] An array of values that describe whether the number can receive calls or messages
305
+ # @return [Array[String]] An array of values that describe whether the number can receive calls or messages
306
306
  def capabilities
307
307
  @properties['capabilities']
308
308
  end
@@ -297,7 +297,7 @@ module Twilio
297
297
  end
298
298
 
299
299
  ##
300
- # @return [String] An array of values that describe whether the number can receive calls or messages
300
+ # @return [Array[String]] An array of values that describe whether the number can receive calls or messages
301
301
  def capabilities
302
302
  @properties['capabilities']
303
303
  end
@@ -0,0 +1,198 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ module Twilio
10
+ module REST
11
+ class Messaging < Domain
12
+ class V1 < Version
13
+ ##
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
+ class UseCaseList < ListResource
16
+ ##
17
+ # Initialize the UseCaseList
18
+ # @param [Version] version Version that contains the resource
19
+ # @return [UseCaseList] UseCaseList
20
+ def initialize(version)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {}
25
+ @uri = "/a2p/UseCases"
26
+ end
27
+
28
+ ##
29
+ # Lists UseCaseInstance records from the API as a list.
30
+ # Unlike stream(), this operation is eager and will load `limit` records into
31
+ # memory before returning.
32
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
33
+ # guarantees to never return more than limit. Default is no limit
34
+ # @param [Integer] page_size Number of records to fetch per request, when
35
+ # not set will use the default value of 50 records. If no page_size is defined
36
+ # but a limit is defined, stream() will attempt to read the limit with the most
37
+ # efficient page size, i.e. min(limit, 1000)
38
+ # @return [Array] Array of up to limit results
39
+ def list(limit: nil, page_size: nil)
40
+ self.stream(limit: limit, page_size: page_size).entries
41
+ end
42
+
43
+ ##
44
+ # Streams UseCaseInstance records from the API as an Enumerable.
45
+ # This operation lazily loads records as efficiently as possible until the limit
46
+ # is reached.
47
+ # @param [Integer] limit Upper limit for the number of records to return. stream()
48
+ # guarantees to never return more than limit. Default is no limit.
49
+ # @param [Integer] page_size Number of records to fetch per request, when
50
+ # not set will use the default value of 50 records. If no page_size is defined
51
+ # but a limit is defined, stream() will attempt to read the limit with the most
52
+ # efficient page size, i.e. min(limit, 1000)
53
+ # @return [Enumerable] Enumerable that will yield up to limit results
54
+ def stream(limit: nil, page_size: nil)
55
+ limits = @version.read_limits(limit, page_size)
56
+
57
+ page = self.page(page_size: limits[:page_size], )
58
+
59
+ @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
60
+ end
61
+
62
+ ##
63
+ # When passed a block, yields UseCaseInstance records from the API.
64
+ # This operation lazily loads records as efficiently as possible until the limit
65
+ # is reached.
66
+ def each
67
+ limits = @version.read_limits
68
+
69
+ page = self.page(page_size: limits[:page_size], )
70
+
71
+ @version.stream(page,
72
+ limit: limits[:limit],
73
+ page_limit: limits[:page_limit]).each {|x| yield x}
74
+ end
75
+
76
+ ##
77
+ # Retrieve a single page of UseCaseInstance records from the API.
78
+ # Request is executed immediately.
79
+ # @param [String] page_token PageToken provided by the API
80
+ # @param [Integer] page_number Page Number, this value is simply for client state
81
+ # @param [Integer] page_size Number of records to return, defaults to 50
82
+ # @return [Page] Page of UseCaseInstance
83
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
84
+ params = Twilio::Values.of({
85
+ 'PageToken' => page_token,
86
+ 'Page' => page_number,
87
+ 'PageSize' => page_size,
88
+ })
89
+
90
+ response = @version.page('GET', @uri, params: params)
91
+
92
+ UseCasePage.new(@version, response, @solution)
93
+ end
94
+
95
+ ##
96
+ # Retrieve a single page of UseCaseInstance records from the API.
97
+ # Request is executed immediately.
98
+ # @param [String] target_url API-generated URL for the requested results page
99
+ # @return [Page] Page of UseCaseInstance
100
+ def get_page(target_url)
101
+ response = @version.domain.request(
102
+ 'GET',
103
+ target_url
104
+ )
105
+ UseCasePage.new(@version, response, @solution)
106
+ end
107
+
108
+ ##
109
+ # Provide a user friendly representation
110
+ def to_s
111
+ '#<Twilio.Messaging.V1.UseCaseList>'
112
+ end
113
+ end
114
+
115
+ ##
116
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
117
+ class UseCasePage < Page
118
+ ##
119
+ # Initialize the UseCasePage
120
+ # @param [Version] version Version that contains the resource
121
+ # @param [Response] response Response from the API
122
+ # @param [Hash] solution Path solution for the resource
123
+ # @return [UseCasePage] UseCasePage
124
+ def initialize(version, response, solution)
125
+ super(version, response)
126
+
127
+ # Path Solution
128
+ @solution = solution
129
+ end
130
+
131
+ ##
132
+ # Build an instance of UseCaseInstance
133
+ # @param [Hash] payload Payload response from the API
134
+ # @return [UseCaseInstance] UseCaseInstance
135
+ def get_instance(payload)
136
+ UseCaseInstance.new(@version, payload, )
137
+ end
138
+
139
+ ##
140
+ # Provide a user friendly representation
141
+ def to_s
142
+ '<Twilio.Messaging.V1.UseCasePage>'
143
+ end
144
+ end
145
+
146
+ ##
147
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
148
+ class UseCaseInstance < InstanceResource
149
+ ##
150
+ # Initialize the UseCaseInstance
151
+ # @param [Version] version Version that contains the resource
152
+ # @param [Hash] payload payload that contains response from Twilio
153
+ # @return [UseCaseInstance] UseCaseInstance
154
+ def initialize(version, payload)
155
+ super(version)
156
+
157
+ # Marshaled Properties
158
+ @properties = {
159
+ 'name' => payload['name'],
160
+ 'code' => payload['code'],
161
+ 'description' => payload['description'],
162
+ }
163
+ end
164
+
165
+ ##
166
+ # @return [String] Human readable name
167
+ def name
168
+ @properties['name']
169
+ end
170
+
171
+ ##
172
+ # @return [String] Unique Use Case code
173
+ def code
174
+ @properties['code']
175
+ end
176
+
177
+ ##
178
+ # @return [String] Description of Use Case
179
+ def description
180
+ @properties['description']
181
+ end
182
+
183
+ ##
184
+ # Provide a user friendly representation
185
+ def to_s
186
+ "<Twilio.Messaging.V1.UseCaseInstance>"
187
+ end
188
+
189
+ ##
190
+ # Provide a detailed, user friendly representation
191
+ def inspect
192
+ "<Twilio.Messaging.V1.UseCaseInstance>"
193
+ end
194
+ end
195
+ end
196
+ end
197
+ end
198
+ end
@@ -41,8 +41,9 @@ module Twilio
41
41
  # token. For FCM and GCM, the registration token. For SMS, a phone number in E.164
42
42
  # format. For Facebook Messenger, the Messenger ID of the user or a phone number
43
43
  # in E.164 format.
44
- # @param [String] tag A tag that can be used to select the Bindings to notify.
45
- # Repeat this parameter to specify more than one tag, up to a total of 20 tags.
44
+ # @param [Array[String]] tag A tag that can be used to select the Bindings to
45
+ # notify. Repeat this parameter to specify more than one tag, up to a total of 20
46
+ # tags.
46
47
  # @param [String] notification_protocol_version The protocol version to use to
47
48
  # send the notification. This defaults to the value of
48
49
  # `default_xxxx_notification_protocol_version` for the protocol in the
@@ -81,12 +82,12 @@ module Twilio
81
82
  # date. Specify the date in GMT and format as `YYYY-MM-DD`.
82
83
  # @param [Date] end_date Only include usage that occurred on or before this date.
83
84
  # Specify the date in GMT and format as `YYYY-MM-DD`.
84
- # @param [String] identity The
85
+ # @param [Array[String]] identity The
85
86
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
86
87
  # of the resources to read.
87
- # @param [String] tag Only list Bindings that have all of the specified Tags. The
88
- # following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`,
89
- # `facebook-messenger`. Up to 5 tags are allowed.
88
+ # @param [Array[String]] tag Only list Bindings that have all of the specified
89
+ # Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
90
+ # `sms`, `facebook-messenger`. Up to 5 tags are allowed.
90
91
  # @param [Integer] limit Upper limit for the number of records to return. stream()
91
92
  # guarantees to never return more than limit. Default is no limit
92
93
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -113,12 +114,12 @@ module Twilio
113
114
  # date. Specify the date in GMT and format as `YYYY-MM-DD`.
114
115
  # @param [Date] end_date Only include usage that occurred on or before this date.
115
116
  # Specify the date in GMT and format as `YYYY-MM-DD`.
116
- # @param [String] identity The
117
+ # @param [Array[String]] identity The
117
118
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
118
119
  # of the resources to read.
119
- # @param [String] tag Only list Bindings that have all of the specified Tags. The
120
- # following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`,
121
- # `facebook-messenger`. Up to 5 tags are allowed.
120
+ # @param [Array[String]] tag Only list Bindings that have all of the specified
121
+ # Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
122
+ # `sms`, `facebook-messenger`. Up to 5 tags are allowed.
122
123
  # @param [Integer] limit Upper limit for the number of records to return. stream()
123
124
  # guarantees to never return more than limit. Default is no limit.
124
125
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -161,12 +162,12 @@ module Twilio
161
162
  # date. Specify the date in GMT and format as `YYYY-MM-DD`.
162
163
  # @param [Date] end_date Only include usage that occurred on or before this date.
163
164
  # Specify the date in GMT and format as `YYYY-MM-DD`.
164
- # @param [String] identity The
165
+ # @param [Array[String]] identity The
165
166
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
166
167
  # of the resources to read.
167
- # @param [String] tag Only list Bindings that have all of the specified Tags. The
168
- # following implicit tags are available: `all`, `apn`, `fcm`, `gcm`, `sms`,
169
- # `facebook-messenger`. Up to 5 tags are allowed.
168
+ # @param [Array[String]] tag Only list Bindings that have all of the specified
169
+ # Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
170
+ # `sms`, `facebook-messenger`. Up to 5 tags are allowed.
170
171
  # @param [String] page_token PageToken provided by the API
171
172
  # @param [Integer] page_number Page Number, this value is simply for client state
172
173
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -406,7 +407,7 @@ module Twilio
406
407
  end
407
408
 
408
409
  ##
409
- # @return [String] The list of tags associated with this Binding
410
+ # @return [Array[String]] The list of tags associated with this Binding
410
411
  def tags
411
412
  @properties['tags']
412
413
  end
@@ -107,24 +107,24 @@ module Twilio
107
107
  # FCM also {reserves certain
108
108
  # keys}[https://firebase.google.com/docs/cloud-messaging/http-server-ref], which
109
109
  # cannot be used in that channel.
110
- # @param [String] segment The Segment resource is deprecated. Use the `tag`
110
+ # @param [Array[String]] segment The Segment resource is deprecated. Use the `tag`
111
111
  # parameter, instead.
112
112
  # @param [Hash] alexa Deprecated.
113
- # @param [String] to_binding The destination address specified as a JSON string.
114
- # Multiple `to_binding` parameters can be included but the total size of the
115
- # request entity should not exceed 1MB. This is typically sufficient for 10,000
116
- # phone numbers.
113
+ # @param [Array[String]] to_binding The destination address specified as a JSON
114
+ # string. Multiple `to_binding` parameters can be included but the total size of
115
+ # the request entity should not exceed 1MB. This is typically sufficient for
116
+ # 10,000 phone numbers.
117
117
  # @param [String] delivery_callback_url URL to send webhooks.
118
- # @param [String] identity The `identity` value that uniquely identifies the new
119
- # resource's {User}[https://www.twilio.com/docs/chat/rest/user-resource] within
120
- # the {Service}[https://www.twilio.com/docs/notify/api/service-resource]. Delivery
121
- # will be attempted only to Bindings with an Identity in this list. No more than
122
- # 20 items are allowed in this list.
123
- # @param [String] tag A tag that selects the Bindings to notify. Repeat this
124
- # parameter to specify more than one tag, up to a total of 5 tags. The implicit
125
- # tag `all` is available to notify all Bindings in a Service instance. Similarly,
126
- # the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger` are
127
- # available to notify all Bindings in a specific channel.
118
+ # @param [Array[String]] identity The `identity` value that uniquely identifies
119
+ # the new resource's {User}[https://www.twilio.com/docs/chat/rest/user-resource]
120
+ # within the {Service}[https://www.twilio.com/docs/notify/api/service-resource].
121
+ # Delivery will be attempted only to Bindings with an Identity in this list. No
122
+ # more than 20 items are allowed in this list.
123
+ # @param [Array[String]] tag A tag that selects the Bindings to notify. Repeat
124
+ # this parameter to specify more than one tag, up to a total of 5 tags. The
125
+ # implicit tag `all` is available to notify all Bindings in a Service instance.
126
+ # Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger`
127
+ # are available to notify all Bindings in a specific channel.
128
128
  # @return [NotificationInstance] Created NotificationInstance
129
129
  def create(body: :unset, priority: :unset, ttl: :unset, title: :unset, sound: :unset, action: :unset, data: :unset, apn: :unset, gcm: :unset, sms: :unset, facebook_messenger: :unset, fcm: :unset, segment: :unset, alexa: :unset, to_binding: :unset, delivery_callback_url: :unset, identity: :unset, tag: :unset)
130
130
  data = Twilio::Values.of({
@@ -255,19 +255,19 @@ module Twilio
255
255
  end
256
256
 
257
257
  ##
258
- # @return [String] The list of identity values of the Users to notify
258
+ # @return [Array[String]] The list of identity values of the Users to notify
259
259
  def identities
260
260
  @properties['identities']
261
261
  end
262
262
 
263
263
  ##
264
- # @return [String] The tags that select the Bindings to notify
264
+ # @return [Array[String]] The tags that select the Bindings to notify
265
265
  def tags
266
266
  @properties['tags']
267
267
  end
268
268
 
269
269
  ##
270
- # @return [String] The list of Segments to notify
270
+ # @return [Array[String]] The list of Segments to notify
271
271
  def segments
272
272
  @properties['segments']
273
273
  end
@@ -263,7 +263,7 @@ module Twilio
263
263
  end
264
264
 
265
265
  ##
266
- # @return [Hash] The results of the Evaluation resource
266
+ # @return [Array[Hash]] The results of the Evaluation resource
267
267
  def results
268
268
  @properties['results']
269
269
  end
@@ -234,7 +234,7 @@ module Twilio
234
234
  end
235
235
 
236
236
  ##
237
- # @return [Hash] The required information for creating an End-User.
237
+ # @return [Array[Hash]] The required information for creating an End-User.
238
238
  def fields
239
239
  @properties['fields']
240
240
  end
@@ -234,7 +234,7 @@ module Twilio
234
234
  end
235
235
 
236
236
  ##
237
- # @return [Hash] The required information for creating a Supporting Document
237
+ # @return [Array[Hash]] The required information for creating a Supporting Document
238
238
  def fields
239
239
  @properties['fields']
240
240
  end
@@ -78,7 +78,8 @@ module Twilio
78
78
  end
79
79
 
80
80
  ##
81
- # @param [String] resource_type The type of communication – Messages, Calls
81
+ # @param [String] resource_type The type of communication – Messages, Calls,
82
+ # Conferences, and Participants
82
83
  # @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
83
84
  # @return [Twilio::REST::Preview::BulkExports::ExportList]
84
85
  def exports(resource_type=:unset)
@@ -86,7 +87,8 @@ module Twilio
86
87
  end
87
88
 
88
89
  ##
89
- # @param [String] resource_type The type of communication – Messages, Calls
90
+ # @param [String] resource_type The type of communication – Messages, Calls,
91
+ # Conferences, and Participants
90
92
  # @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
91
93
  # @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
92
94
  def export_configuration(resource_type=:unset)
@@ -180,12 +182,6 @@ module Twilio
180
182
  self.wireless.sims(sid)
181
183
  end
182
184
 
183
- ##
184
- # @return [Twilio::REST::Preview::TrustedComms::BrandedCallInstance]
185
- def branded_calls
186
- self.trusted_comms.branded_calls()
187
- end
188
-
189
185
  ##
190
186
  # @param [String] sid The unique SID identifier of the Branded Channel.
191
187
  # @return [Twilio::REST::Preview::TrustedComms::BrandedChannelInstance] if sid was passed.
@@ -200,15 +196,6 @@ module Twilio
200
196
  self.trusted_comms.brands_information()
201
197
  end
202
198
 
203
- ##
204
- # @param [String] sid A 34 character string that uniquely identifies this
205
- # Business.
206
- # @return [Twilio::REST::Preview::TrustedComms::BusinessInstance] if sid was passed.
207
- # @return [Twilio::REST::Preview::TrustedComms::BusinessList]
208
- def businesses(sid=:unset)
209
- self.trusted_comms.businesses(sid)
210
- end
211
-
212
199
  ##
213
200
  # @return [Twilio::REST::Preview::TrustedComms::CpsInstance]
214
201
  def cps
@@ -221,12 +208,6 @@ module Twilio
221
208
  self.trusted_comms.current_calls()
222
209
  end
223
210
 
224
- ##
225
- # @return [Twilio::REST::Preview::TrustedComms::PhoneCallInstance]
226
- def phone_calls
227
- self.trusted_comms.phone_calls()
228
- end
229
-
230
211
  ##
231
212
  # Provide a user friendly representation
232
213
  def to_s