twilio-ruby 5.75.0 → 5.76.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a57741b264ef9fc43e6be40e817be88de8db660
4
- data.tar.gz: 34ecc7f79c806fbc514bb8fd4931e9440a1ede56
3
+ metadata.gz: bb7665ff7bea86c44edbe2b4951108e92eab4ade
4
+ data.tar.gz: a25d219b549fbf644d775f95d11cbe700986771a
5
5
  SHA512:
6
- metadata.gz: 7504504307b32b86498a8ec7848a018951c5e1d4bbd657e9f9cd91e463431502b0f38c2b2d05fd866a83b91feda322a50d4de5e2de5a566671ccc1a994c194a4
7
- data.tar.gz: aa97372cf161a1b53a7101646c8412cc4c350e13a8076bc547a1310ab2feac255365022b6034cc78630548911c70f778edf7758cb5593ee196c38c7c75186555
6
+ metadata.gz: 51097797236229d44715a06d7f40719a7a6ec83162d6d3946261da44b5cc80336f35339a2a437430a3cf878387155bedbf82b7b52605523752e66d9d8638bce4
7
+ data.tar.gz: 1de2ed593ff359e2b2ab5e588f7b3b34d6089f45bbcb9ab81fef38982112717f3ce57d07c79670939e89a836f65722b8fbb36738086cd0f501c896552b48df94
data/CHANGES.md CHANGED
@@ -1,6 +1,24 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2023-04-05] Version 5.76.0
5
+ ---------------------------
6
+ **Conversations**
7
+ - Expose query parameters `start_date`, `end_date` and `state` in list operation on Conversations resource for sorting and filtering
8
+
9
+ **Insights**
10
+ - Added answered by filter in Call Summaries
11
+
12
+ **Lookups**
13
+ - Remove `disposable_phone_number_risk` package **(breaking change)**
14
+
15
+ **Messaging**
16
+ - Add support for `SOLE_PROPRIETOR` brand type and `SOLE_PROPRIETOR` campaign use case.
17
+ - New Sole Proprietor Brands should be created with `SOLE_PROPRIETOR` brand type. Brand registration requests with `STARTER` brand type will be rejected.
18
+ - New Sole Proprietor Campaigns should be created with `SOLE_PROPRIETOR` campaign use case. Campaign registration requests with `STARTER` campaign use case will be rejected.
19
+ - Add Brand Registrations OTP API
20
+
21
+
4
22
  [2023-03-22] Version 5.75.0
5
23
  ---------------------------
6
24
  **Library - Chore**
data/README.md CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
34
34
  To install using [Bundler][bundler] grab the latest stable version:
35
35
 
36
36
  ```ruby
37
- gem 'twilio-ruby', '~> 5.75.0'
37
+ gem 'twilio-ruby', '~> 5.76.0'
38
38
  ```
39
39
 
40
40
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
41
41
 
42
42
  ```bash
43
- gem install twilio-ruby -v 5.75.0
43
+ gem install twilio-ruby -v 5.76.0
44
44
  ```
45
45
 
46
46
  To build and install the development branch yourself from the latest source:
@@ -71,6 +71,12 @@ module Twilio
71
71
  # Lists ConversationInstance records from the API as a list.
72
72
  # Unlike stream(), this operation is eager and will load `limit` records into
73
73
  # memory before returning.
74
+ # @param [String] start_date Start date in ISO8601 format for sorting and
75
+ # filtering list of Conversations.
76
+ # @param [String] end_date End date in ISO8601 format for sorting and filtering
77
+ # list of Conversations.
78
+ # @param [conversation.State] state State for sorting and filtering list of
79
+ # Conversations. Can be `active`, `inactive` or `closed`
74
80
  # @param [Integer] limit Upper limit for the number of records to return. stream()
75
81
  # guarantees to never return more than limit. Default is no limit
76
82
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -78,14 +84,26 @@ module Twilio
78
84
  # but a limit is defined, stream() will attempt to read the limit with the most
79
85
  # efficient page size, i.e. min(limit, 1000)
80
86
  # @return [Array] Array of up to limit results
81
- def list(limit: nil, page_size: nil)
82
- self.stream(limit: limit, page_size: page_size).entries
87
+ def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
88
+ self.stream(
89
+ start_date: start_date,
90
+ end_date: end_date,
91
+ state: state,
92
+ limit: limit,
93
+ page_size: page_size
94
+ ).entries
83
95
  end
84
96
 
85
97
  ##
86
98
  # Streams ConversationInstance records from the API as an Enumerable.
87
99
  # This operation lazily loads records as efficiently as possible until the limit
88
100
  # is reached.
101
+ # @param [String] start_date Start date in ISO8601 format for sorting and
102
+ # filtering list of Conversations.
103
+ # @param [String] end_date End date in ISO8601 format for sorting and filtering
104
+ # list of Conversations.
105
+ # @param [conversation.State] state State for sorting and filtering list of
106
+ # Conversations. Can be `active`, `inactive` or `closed`
89
107
  # @param [Integer] limit Upper limit for the number of records to return. stream()
90
108
  # guarantees to never return more than limit. Default is no limit.
91
109
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,10 +111,15 @@ module Twilio
93
111
  # but a limit is defined, stream() will attempt to read the limit with the most
94
112
  # efficient page size, i.e. min(limit, 1000)
95
113
  # @return [Enumerable] Enumerable that will yield up to limit results
96
- def stream(limit: nil, page_size: nil)
114
+ def stream(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
97
115
  limits = @version.read_limits(limit, page_size)
98
116
 
99
- page = self.page(page_size: limits[:page_size], )
117
+ page = self.page(
118
+ start_date: start_date,
119
+ end_date: end_date,
120
+ state: state,
121
+ page_size: limits[:page_size],
122
+ )
100
123
 
101
124
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
102
125
  end
@@ -118,12 +141,21 @@ module Twilio
118
141
  ##
119
142
  # Retrieve a single page of ConversationInstance records from the API.
120
143
  # Request is executed immediately.
144
+ # @param [String] start_date Start date in ISO8601 format for sorting and
145
+ # filtering list of Conversations.
146
+ # @param [String] end_date End date in ISO8601 format for sorting and filtering
147
+ # list of Conversations.
148
+ # @param [conversation.State] state State for sorting and filtering list of
149
+ # Conversations. Can be `active`, `inactive` or `closed`
121
150
  # @param [String] page_token PageToken provided by the API
122
151
  # @param [Integer] page_number Page Number, this value is simply for client state
123
152
  # @param [Integer] page_size Number of records to return, defaults to 50
124
153
  # @return [Page] Page of ConversationInstance
125
- def page(page_token: :unset, page_number: :unset, page_size: :unset)
154
+ def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
126
155
  params = Twilio::Values.of({
156
+ 'StartDate' => start_date,
157
+ 'EndDate' => end_date,
158
+ 'State' => state,
127
159
  'PageToken' => page_token,
128
160
  'Page' => page_number,
129
161
  'PageSize' => page_size,
@@ -75,6 +75,12 @@ module Twilio
75
75
  # Lists ConversationInstance records from the API as a list.
76
76
  # Unlike stream(), this operation is eager and will load `limit` records into
77
77
  # memory before returning.
78
+ # @param [String] start_date Start date in ISO8601 format for sorting and
79
+ # filtering list of Conversations.
80
+ # @param [String] end_date End date in ISO8601 format for sorting and filtering
81
+ # list of Conversations.
82
+ # @param [conversation.State] state State for sorting and filtering list of
83
+ # Conversations. Can be `active`, `inactive` or `closed`
78
84
  # @param [Integer] limit Upper limit for the number of records to return. stream()
79
85
  # guarantees to never return more than limit. Default is no limit
80
86
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -82,14 +88,26 @@ module Twilio
82
88
  # but a limit is defined, stream() will attempt to read the limit with the most
83
89
  # efficient page size, i.e. min(limit, 1000)
84
90
  # @return [Array] Array of up to limit results
85
- def list(limit: nil, page_size: nil)
86
- self.stream(limit: limit, page_size: page_size).entries
91
+ def list(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
92
+ self.stream(
93
+ start_date: start_date,
94
+ end_date: end_date,
95
+ state: state,
96
+ limit: limit,
97
+ page_size: page_size
98
+ ).entries
87
99
  end
88
100
 
89
101
  ##
90
102
  # Streams ConversationInstance records from the API as an Enumerable.
91
103
  # This operation lazily loads records as efficiently as possible until the limit
92
104
  # is reached.
105
+ # @param [String] start_date Start date in ISO8601 format for sorting and
106
+ # filtering list of Conversations.
107
+ # @param [String] end_date End date in ISO8601 format for sorting and filtering
108
+ # list of Conversations.
109
+ # @param [conversation.State] state State for sorting and filtering list of
110
+ # Conversations. Can be `active`, `inactive` or `closed`
93
111
  # @param [Integer] limit Upper limit for the number of records to return. stream()
94
112
  # guarantees to never return more than limit. Default is no limit.
95
113
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -97,10 +115,15 @@ module Twilio
97
115
  # but a limit is defined, stream() will attempt to read the limit with the most
98
116
  # efficient page size, i.e. min(limit, 1000)
99
117
  # @return [Enumerable] Enumerable that will yield up to limit results
100
- def stream(limit: nil, page_size: nil)
118
+ def stream(start_date: :unset, end_date: :unset, state: :unset, limit: nil, page_size: nil)
101
119
  limits = @version.read_limits(limit, page_size)
102
120
 
103
- page = self.page(page_size: limits[:page_size], )
121
+ page = self.page(
122
+ start_date: start_date,
123
+ end_date: end_date,
124
+ state: state,
125
+ page_size: limits[:page_size],
126
+ )
104
127
 
105
128
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
106
129
  end
@@ -122,12 +145,21 @@ module Twilio
122
145
  ##
123
146
  # Retrieve a single page of ConversationInstance records from the API.
124
147
  # Request is executed immediately.
148
+ # @param [String] start_date Start date in ISO8601 format for sorting and
149
+ # filtering list of Conversations.
150
+ # @param [String] end_date End date in ISO8601 format for sorting and filtering
151
+ # list of Conversations.
152
+ # @param [conversation.State] state State for sorting and filtering list of
153
+ # Conversations. Can be `active`, `inactive` or `closed`
125
154
  # @param [String] page_token PageToken provided by the API
126
155
  # @param [Integer] page_number Page Number, this value is simply for client state
127
156
  # @param [Integer] page_size Number of records to return, defaults to 50
128
157
  # @return [Page] Page of ConversationInstance
129
- def page(page_token: :unset, page_number: :unset, page_size: :unset)
158
+ def page(start_date: :unset, end_date: :unset, state: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
130
159
  params = Twilio::Values.of({
160
+ 'StartDate' => start_date,
161
+ 'EndDate' => end_date,
162
+ 'State' => state,
131
163
  'PageToken' => page_token,
132
164
  'Page' => page_number,
133
165
  'PageSize' => page_size,
@@ -46,6 +46,7 @@ module Twilio
46
46
  # @param [call_summaries.SortBy] sort_by The sort_by
47
47
  # @param [String] subaccount The subaccount
48
48
  # @param [Boolean] abnormal_session The abnormal_session
49
+ # @param [call_summaries.AnsweredBy] answered_by The answered_by
49
50
  # @param [Integer] limit Upper limit for the number of records to return. stream()
50
51
  # guarantees to never return more than limit. Default is no limit
51
52
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -53,7 +54,7 @@ module Twilio
53
54
  # but a limit is defined, stream() will attempt to read the limit with the most
54
55
  # efficient page size, i.e. min(limit, 1000)
55
56
  # @return [Array] Array of up to limit results
56
- def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, limit: nil, page_size: nil)
57
+ def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, limit: nil, page_size: nil)
57
58
  self.stream(
58
59
  from: from,
59
60
  to: to,
@@ -73,6 +74,7 @@ module Twilio
73
74
  sort_by: sort_by,
74
75
  subaccount: subaccount,
75
76
  abnormal_session: abnormal_session,
77
+ answered_by: answered_by,
76
78
  limit: limit,
77
79
  page_size: page_size
78
80
  ).entries
@@ -101,6 +103,7 @@ module Twilio
101
103
  # @param [call_summaries.SortBy] sort_by The sort_by
102
104
  # @param [String] subaccount The subaccount
103
105
  # @param [Boolean] abnormal_session The abnormal_session
106
+ # @param [call_summaries.AnsweredBy] answered_by The answered_by
104
107
  # @param [Integer] limit Upper limit for the number of records to return. stream()
105
108
  # guarantees to never return more than limit. Default is no limit.
106
109
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -108,7 +111,7 @@ module Twilio
108
111
  # but a limit is defined, stream() will attempt to read the limit with the most
109
112
  # efficient page size, i.e. min(limit, 1000)
110
113
  # @return [Enumerable] Enumerable that will yield up to limit results
111
- def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, limit: nil, page_size: nil)
114
+ def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, limit: nil, page_size: nil)
112
115
  limits = @version.read_limits(limit, page_size)
113
116
 
114
117
  page = self.page(
@@ -130,6 +133,7 @@ module Twilio
130
133
  sort_by: sort_by,
131
134
  subaccount: subaccount,
132
135
  abnormal_session: abnormal_session,
136
+ answered_by: answered_by,
133
137
  page_size: limits[:page_size],
134
138
  )
135
139
 
@@ -172,11 +176,12 @@ module Twilio
172
176
  # @param [call_summaries.SortBy] sort_by The sort_by
173
177
  # @param [String] subaccount The subaccount
174
178
  # @param [Boolean] abnormal_session The abnormal_session
179
+ # @param [call_summaries.AnsweredBy] answered_by The answered_by
175
180
  # @param [String] page_token PageToken provided by the API
176
181
  # @param [Integer] page_number Page Number, this value is simply for client state
177
182
  # @param [Integer] page_size Number of records to return, defaults to 50
178
183
  # @return [Page] Page of CallSummariesInstance
179
- def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
184
+ def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, branded: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
180
185
  params = Twilio::Values.of({
181
186
  'From' => from,
182
187
  'To' => to,
@@ -196,6 +201,7 @@ module Twilio
196
201
  'SortBy' => sort_by,
197
202
  'Subaccount' => subaccount,
198
203
  'AbnormalSession' => abnormal_session,
204
+ 'AnsweredBy' => answered_by,
199
205
  'PageToken' => page_token,
200
206
  'Page' => page_number,
201
207
  'PageSize' => page_size,
@@ -173,7 +173,6 @@ module Twilio
173
173
  'line_type_intelligence' => payload['line_type_intelligence'],
174
174
  'identity_match' => payload['identity_match'],
175
175
  'sms_pumping_risk' => payload['sms_pumping_risk'],
176
- 'disposable_phone_number_risk' => payload['disposable_phone_number_risk'],
177
176
  'url' => payload['url'],
178
177
  }
179
178
 
@@ -271,12 +270,6 @@ module Twilio
271
270
  @properties['sms_pumping_risk']
272
271
  end
273
272
 
274
- ##
275
- # @return [Hash] An object that contains disposable phone number risk information
276
- def disposable_phone_number_risk
277
- @properties['disposable_phone_number_risk']
278
- end
279
-
280
273
  ##
281
274
  # @return [String] The absolute URL of the resource
282
275
  def url
@@ -0,0 +1,134 @@
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
+ class BrandRegistrationContext < InstanceContext
14
+ ##
15
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
+ class BrandRegistrationOtpList < ListResource
17
+ ##
18
+ # Initialize the BrandRegistrationOtpList
19
+ # @param [Version] version Version that contains the resource
20
+ # @param [String] brand_registration_sid The unique string to identify Brand
21
+ # Registration of Sole Proprietor Brand
22
+ # @return [BrandRegistrationOtpList] BrandRegistrationOtpList
23
+ def initialize(version, brand_registration_sid: nil)
24
+ super(version)
25
+
26
+ # Path Solution
27
+ @solution = {brand_registration_sid: brand_registration_sid}
28
+ @uri = "/a2p/BrandRegistrations/#{@solution[:brand_registration_sid]}/SmsOtp"
29
+ end
30
+
31
+ ##
32
+ # Create the BrandRegistrationOtpInstance
33
+ # @return [BrandRegistrationOtpInstance] Created BrandRegistrationOtpInstance
34
+ def create
35
+ payload = @version.create('POST', @uri)
36
+
37
+ BrandRegistrationOtpInstance.new(
38
+ @version,
39
+ payload,
40
+ brand_registration_sid: @solution[:brand_registration_sid],
41
+ )
42
+ end
43
+
44
+ ##
45
+ # Provide a user friendly representation
46
+ def to_s
47
+ '#<Twilio.Messaging.V1.BrandRegistrationOtpList>'
48
+ end
49
+ end
50
+
51
+ ##
52
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
53
+ class BrandRegistrationOtpPage < Page
54
+ ##
55
+ # Initialize the BrandRegistrationOtpPage
56
+ # @param [Version] version Version that contains the resource
57
+ # @param [Response] response Response from the API
58
+ # @param [Hash] solution Path solution for the resource
59
+ # @return [BrandRegistrationOtpPage] BrandRegistrationOtpPage
60
+ def initialize(version, response, solution)
61
+ super(version, response)
62
+
63
+ # Path Solution
64
+ @solution = solution
65
+ end
66
+
67
+ ##
68
+ # Build an instance of BrandRegistrationOtpInstance
69
+ # @param [Hash] payload Payload response from the API
70
+ # @return [BrandRegistrationOtpInstance] BrandRegistrationOtpInstance
71
+ def get_instance(payload)
72
+ BrandRegistrationOtpInstance.new(
73
+ @version,
74
+ payload,
75
+ brand_registration_sid: @solution[:brand_registration_sid],
76
+ )
77
+ end
78
+
79
+ ##
80
+ # Provide a user friendly representation
81
+ def to_s
82
+ '<Twilio.Messaging.V1.BrandRegistrationOtpPage>'
83
+ end
84
+ end
85
+
86
+ ##
87
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
88
+ class BrandRegistrationOtpInstance < InstanceResource
89
+ ##
90
+ # Initialize the BrandRegistrationOtpInstance
91
+ # @param [Version] version Version that contains the resource
92
+ # @param [Hash] payload payload that contains response from Twilio
93
+ # @param [String] brand_registration_sid The unique string to identify Brand
94
+ # Registration of Sole Proprietor Brand
95
+ # @return [BrandRegistrationOtpInstance] BrandRegistrationOtpInstance
96
+ def initialize(version, payload, brand_registration_sid: nil)
97
+ super(version)
98
+
99
+ # Marshaled Properties
100
+ @properties = {
101
+ 'account_sid' => payload['account_sid'],
102
+ 'brand_registration_sid' => payload['brand_registration_sid'],
103
+ }
104
+ end
105
+
106
+ ##
107
+ # @return [String] The SID of the Account that created the vetting
108
+ def account_sid
109
+ @properties['account_sid']
110
+ end
111
+
112
+ ##
113
+ # @return [String] Brand Registration Sid
114
+ def brand_registration_sid
115
+ @properties['brand_registration_sid']
116
+ end
117
+
118
+ ##
119
+ # Provide a user friendly representation
120
+ def to_s
121
+ "<Twilio.Messaging.V1.BrandRegistrationOtpInstance>"
122
+ end
123
+
124
+ ##
125
+ # Provide a detailed, user friendly representation
126
+ def inspect
127
+ "<Twilio.Messaging.V1.BrandRegistrationOtpInstance>"
128
+ end
129
+ end
130
+ end
131
+ end
132
+ end
133
+ end
134
+ end
@@ -110,8 +110,8 @@ module Twilio
110
110
  # @param [String] customer_profile_bundle_sid Customer Profile Bundle Sid.
111
111
  # @param [String] a2p_profile_bundle_sid A2P Messaging Profile Bundle Sid.
112
112
  # @param [String] brand_type Type of brand being created. One of: "STANDARD",
113
- # "STARTER". STARTER is for low volume, starter use cases. STANDARD is for all
114
- # other use cases.
113
+ # "SOLE_PROPRIETOR". SOLE_PROPRIETOR is for low volume, SOLE_PROPRIETOR use cases.
114
+ # STANDARD is for all other use cases.
115
115
  # @param [Boolean] mock A boolean that specifies whether brand should be a mock or
116
116
  # not. If true, brand will be registered as a mock brand. Defaults to false if no
117
117
  # value is provided.
@@ -187,6 +187,7 @@ module Twilio
187
187
 
188
188
  # Dependents
189
189
  @brand_vettings = nil
190
+ @brand_registration_otps = nil
190
191
  end
191
192
 
192
193
  ##
@@ -225,6 +226,21 @@ module Twilio
225
226
  @brand_vettings
226
227
  end
227
228
 
229
+ ##
230
+ # Access the brand_registration_otps
231
+ # @return [BrandRegistrationOtpList]
232
+ # @return [BrandRegistrationOtpContext]
233
+ def brand_registration_otps
234
+ unless @brand_registration_otps
235
+ @brand_registration_otps = BrandRegistrationOtpList.new(
236
+ @version,
237
+ brand_registration_sid: @solution[:sid],
238
+ )
239
+ end
240
+
241
+ @brand_registration_otps
242
+ end
243
+
228
244
  ##
229
245
  # Provide a user friendly representation
230
246
  def to_s
@@ -329,7 +345,7 @@ module Twilio
329
345
  end
330
346
 
331
347
  ##
332
- # @return [String] Type of brand. One of: "STANDARD", "STARTER".
348
+ # @return [String] Type of brand. One of: "STANDARD", "SOLE_PROPRIETOR".
333
349
  def brand_type
334
350
  @properties['brand_type']
335
351
  end
@@ -433,6 +449,13 @@ module Twilio
433
449
  context.brand_vettings
434
450
  end
435
451
 
452
+ ##
453
+ # Access the brand_registration_otps
454
+ # @return [brand_registration_otps] brand_registration_otps
455
+ def brand_registration_otps
456
+ context.brand_registration_otps
457
+ end
458
+
436
459
  ##
437
460
  # Provide a user friendly representation
438
461
  def to_s
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.75.0'
2
+ VERSION = '5.76.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.75.0
4
+ version: 5.76.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-22 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -503,6 +503,7 @@ files:
503
503
  - lib/twilio-ruby/rest/messaging.rb
504
504
  - lib/twilio-ruby/rest/messaging/v1.rb
505
505
  - lib/twilio-ruby/rest/messaging/v1/brand_registration.rb
506
+ - lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb
506
507
  - lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb
507
508
  - lib/twilio-ruby/rest/messaging/v1/deactivation.rb
508
509
  - lib/twilio-ruby/rest/messaging/v1/domain_cert.rb