twilio-ruby 7.1.0 → 7.1.1
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 +4 -4
- data/CHANGES.md +15 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +5 -0
- data/lib/twilio-ruby/rest/content/v2/content.rb +60 -3
- data/lib/twilio-ruby/rest/content/v2/content_and_approvals.rb +60 -3
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb +308 -0
- data/lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb +335 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb +350 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +169 -0
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb +461 -0
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +282 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +79 -0
- data/lib/twilio-ruby/rest/marketplace.rb +6 -0
- data/lib/twilio-ruby/rest/marketplace_base.rb +38 -0
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +15 -3
- data/lib/twilio-ruby/rest/messaging/v1.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +176 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +12 -2
@@ -0,0 +1,282 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Marketplace
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class Marketplace < MarketplaceBase
|
19
|
+
class V1 < Version
|
20
|
+
class ModuleDataManagementList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the ModuleDataManagementList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [ModuleDataManagementList] ModuleDataManagementList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
# Provide a user friendly representation
|
37
|
+
def to_s
|
38
|
+
'#<Twilio.Marketplace.V1.ModuleDataManagementList>'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
class ModuleDataManagementContext < InstanceContext
|
44
|
+
##
|
45
|
+
# Initialize the ModuleDataManagementContext
|
46
|
+
# @param [Version] version Version that contains the resource
|
47
|
+
# @param [String] sid
|
48
|
+
# @return [ModuleDataManagementContext] ModuleDataManagementContext
|
49
|
+
def initialize(version, sid)
|
50
|
+
super(version)
|
51
|
+
|
52
|
+
# Path Solution
|
53
|
+
@solution = { sid: sid, }
|
54
|
+
@uri = "/Listing/#{@solution[:sid]}"
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
##
|
59
|
+
# Fetch the ModuleDataManagementInstance
|
60
|
+
# @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
|
61
|
+
def fetch
|
62
|
+
|
63
|
+
|
64
|
+
payload = @version.fetch('GET', @uri)
|
65
|
+
ModuleDataManagementInstance.new(
|
66
|
+
@version,
|
67
|
+
payload,
|
68
|
+
sid: @solution[:sid],
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
72
|
+
##
|
73
|
+
# Update the ModuleDataManagementInstance
|
74
|
+
# @param [String] module_info
|
75
|
+
# @param [String] description
|
76
|
+
# @param [String] documentation
|
77
|
+
# @param [String] policies
|
78
|
+
# @param [String] support
|
79
|
+
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
80
|
+
def update(
|
81
|
+
module_info: :unset,
|
82
|
+
description: :unset,
|
83
|
+
documentation: :unset,
|
84
|
+
policies: :unset,
|
85
|
+
support: :unset
|
86
|
+
)
|
87
|
+
|
88
|
+
data = Twilio::Values.of({
|
89
|
+
'ModuleInfo' => module_info,
|
90
|
+
'Description' => description,
|
91
|
+
'Documentation' => documentation,
|
92
|
+
'Policies' => policies,
|
93
|
+
'Support' => support,
|
94
|
+
})
|
95
|
+
|
96
|
+
|
97
|
+
payload = @version.update('POST', @uri, data: data)
|
98
|
+
ModuleDataManagementInstance.new(
|
99
|
+
@version,
|
100
|
+
payload,
|
101
|
+
sid: @solution[:sid],
|
102
|
+
)
|
103
|
+
end
|
104
|
+
|
105
|
+
|
106
|
+
##
|
107
|
+
# Provide a user friendly representation
|
108
|
+
def to_s
|
109
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
110
|
+
"#<Twilio.Marketplace.V1.ModuleDataManagementContext #{context}>"
|
111
|
+
end
|
112
|
+
|
113
|
+
##
|
114
|
+
# Provide a detailed, user friendly representation
|
115
|
+
def inspect
|
116
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
117
|
+
"#<Twilio.Marketplace.V1.ModuleDataManagementContext #{context}>"
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
class ModuleDataManagementPage < Page
|
122
|
+
##
|
123
|
+
# Initialize the ModuleDataManagementPage
|
124
|
+
# @param [Version] version Version that contains the resource
|
125
|
+
# @param [Response] response Response from the API
|
126
|
+
# @param [Hash] solution Path solution for the resource
|
127
|
+
# @return [ModuleDataManagementPage] ModuleDataManagementPage
|
128
|
+
def initialize(version, response, solution)
|
129
|
+
super(version, response)
|
130
|
+
|
131
|
+
# Path Solution
|
132
|
+
@solution = solution
|
133
|
+
end
|
134
|
+
|
135
|
+
##
|
136
|
+
# Build an instance of ModuleDataManagementInstance
|
137
|
+
# @param [Hash] payload Payload response from the API
|
138
|
+
# @return [ModuleDataManagementInstance] ModuleDataManagementInstance
|
139
|
+
def get_instance(payload)
|
140
|
+
ModuleDataManagementInstance.new(@version, payload)
|
141
|
+
end
|
142
|
+
|
143
|
+
##
|
144
|
+
# Provide a user friendly representation
|
145
|
+
def to_s
|
146
|
+
'<Twilio.Marketplace.V1.ModuleDataManagementPage>'
|
147
|
+
end
|
148
|
+
end
|
149
|
+
class ModuleDataManagementInstance < InstanceResource
|
150
|
+
##
|
151
|
+
# Initialize the ModuleDataManagementInstance
|
152
|
+
# @param [Version] version Version that contains the resource
|
153
|
+
# @param [Hash] payload payload that contains response from Twilio
|
154
|
+
# @param [String] account_sid The SID of the
|
155
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ModuleDataManagement
|
156
|
+
# resource.
|
157
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
158
|
+
# @return [ModuleDataManagementInstance] ModuleDataManagementInstance
|
159
|
+
def initialize(version, payload , sid: nil)
|
160
|
+
super(version)
|
161
|
+
|
162
|
+
# Marshaled Properties
|
163
|
+
@properties = {
|
164
|
+
'url' => payload['url'],
|
165
|
+
'sid' => payload['sid'],
|
166
|
+
'description' => payload['description'],
|
167
|
+
'support' => payload['support'],
|
168
|
+
'policies' => payload['policies'],
|
169
|
+
'module_info' => payload['module_info'],
|
170
|
+
'documentation' => payload['documentation'],
|
171
|
+
}
|
172
|
+
|
173
|
+
# Context
|
174
|
+
@instance_context = nil
|
175
|
+
@params = { 'sid' => sid || @properties['sid'] , }
|
176
|
+
end
|
177
|
+
|
178
|
+
##
|
179
|
+
# Generate an instance context for the instance, the context is capable of
|
180
|
+
# performing various actions. All instance actions are proxied to the context
|
181
|
+
# @return [ModuleDataManagementContext] CallContext for this CallInstance
|
182
|
+
def context
|
183
|
+
unless @instance_context
|
184
|
+
@instance_context = ModuleDataManagementContext.new(@version , @params['sid'])
|
185
|
+
end
|
186
|
+
@instance_context
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [String]
|
191
|
+
def url
|
192
|
+
@properties['url']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [String]
|
197
|
+
def sid
|
198
|
+
@properties['sid']
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# @return [Hash]
|
203
|
+
def description
|
204
|
+
@properties['description']
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# @return [Hash]
|
209
|
+
def support
|
210
|
+
@properties['support']
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# @return [Hash]
|
215
|
+
def policies
|
216
|
+
@properties['policies']
|
217
|
+
end
|
218
|
+
|
219
|
+
##
|
220
|
+
# @return [Hash]
|
221
|
+
def module_info
|
222
|
+
@properties['module_info']
|
223
|
+
end
|
224
|
+
|
225
|
+
##
|
226
|
+
# @return [Hash]
|
227
|
+
def documentation
|
228
|
+
@properties['documentation']
|
229
|
+
end
|
230
|
+
|
231
|
+
##
|
232
|
+
# Fetch the ModuleDataManagementInstance
|
233
|
+
# @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
|
234
|
+
def fetch
|
235
|
+
|
236
|
+
context.fetch
|
237
|
+
end
|
238
|
+
|
239
|
+
##
|
240
|
+
# Update the ModuleDataManagementInstance
|
241
|
+
# @param [String] module_info
|
242
|
+
# @param [String] description
|
243
|
+
# @param [String] documentation
|
244
|
+
# @param [String] policies
|
245
|
+
# @param [String] support
|
246
|
+
# @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
|
247
|
+
def update(
|
248
|
+
module_info: :unset,
|
249
|
+
description: :unset,
|
250
|
+
documentation: :unset,
|
251
|
+
policies: :unset,
|
252
|
+
support: :unset
|
253
|
+
)
|
254
|
+
|
255
|
+
context.update(
|
256
|
+
module_info: module_info,
|
257
|
+
description: description,
|
258
|
+
documentation: documentation,
|
259
|
+
policies: policies,
|
260
|
+
support: support,
|
261
|
+
)
|
262
|
+
end
|
263
|
+
|
264
|
+
##
|
265
|
+
# Provide a user friendly representation
|
266
|
+
def to_s
|
267
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
268
|
+
"<Twilio.Marketplace.V1.ModuleDataManagementInstance #{values}>"
|
269
|
+
end
|
270
|
+
|
271
|
+
##
|
272
|
+
# Provide a detailed, user friendly representation
|
273
|
+
def inspect
|
274
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
275
|
+
"<Twilio.Marketplace.V1.ModuleDataManagementInstance #{values}>"
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
end
|
280
|
+
end
|
281
|
+
end
|
282
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Marketplace
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
module Twilio
|
16
|
+
module REST
|
17
|
+
class Marketplace
|
18
|
+
class V1 < Version
|
19
|
+
##
|
20
|
+
# Initialize the V1 version of Marketplace
|
21
|
+
def initialize(domain)
|
22
|
+
super
|
23
|
+
@version = 'v1'
|
24
|
+
@available_add_ons = nil
|
25
|
+
@installed_add_ons = nil
|
26
|
+
@module_data_management = nil
|
27
|
+
end
|
28
|
+
|
29
|
+
##
|
30
|
+
# @param [String] sid The SID of the AvailableAddOn resource to fetch.
|
31
|
+
# @return [Twilio::REST::Marketplace::V1::AvailableAddOnContext] if sid was passed.
|
32
|
+
# @return [Twilio::REST::Marketplace::V1::AvailableAddOnList]
|
33
|
+
def available_add_ons(sid=:unset)
|
34
|
+
if sid.nil?
|
35
|
+
raise ArgumentError, 'sid cannot be nil'
|
36
|
+
end
|
37
|
+
if sid == :unset
|
38
|
+
@available_add_ons ||= AvailableAddOnList.new self
|
39
|
+
else
|
40
|
+
AvailableAddOnContext.new(self, sid)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
##
|
44
|
+
# @param [String] sid The SID of the InstalledAddOn resource to fetch.
|
45
|
+
# @return [Twilio::REST::Marketplace::V1::InstalledAddOnContext] if sid was passed.
|
46
|
+
# @return [Twilio::REST::Marketplace::V1::InstalledAddOnList]
|
47
|
+
def installed_add_ons(sid=:unset)
|
48
|
+
if sid.nil?
|
49
|
+
raise ArgumentError, 'sid cannot be nil'
|
50
|
+
end
|
51
|
+
if sid == :unset
|
52
|
+
@installed_add_ons ||= InstalledAddOnList.new self
|
53
|
+
else
|
54
|
+
InstalledAddOnContext.new(self, sid)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
##
|
58
|
+
# @param [String] sid
|
59
|
+
# @return [Twilio::REST::Marketplace::V1::ModuleDataManagementContext] if sid was passed.
|
60
|
+
# @return [Twilio::REST::Marketplace::V1::ModuleDataManagementList]
|
61
|
+
def module_data_management(sid=:unset)
|
62
|
+
if sid.nil?
|
63
|
+
raise ArgumentError, 'sid cannot be nil'
|
64
|
+
end
|
65
|
+
if sid == :unset
|
66
|
+
@module_data_management ||= ModuleDataManagementList.new self
|
67
|
+
else
|
68
|
+
ModuleDataManagementContext.new(self, sid)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
##
|
72
|
+
# Provide a user friendly representation
|
73
|
+
def to_s
|
74
|
+
'<Twilio::REST::Marketplace::V1>';
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
8
|
+
# https://openapi-generator.tech
|
9
|
+
# Do not edit the class manually.
|
10
|
+
# frozen_string_literal: true
|
11
|
+
module Twilio
|
12
|
+
module REST
|
13
|
+
class MarketplaceBase < Domain
|
14
|
+
##
|
15
|
+
# Initialize marketplace domain
|
16
|
+
#
|
17
|
+
# @param twilio - The twilio client
|
18
|
+
#
|
19
|
+
def initialize(twilio)
|
20
|
+
super(twilio)
|
21
|
+
@base_url = "https://marketplace.twilio.com"
|
22
|
+
@host = "marketplace.twilio.com"
|
23
|
+
@port = 443
|
24
|
+
@v1 = nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def v1
|
28
|
+
@v1 ||= Marketplace::V1.new self
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# Provide a user friendly representation
|
33
|
+
def to_s
|
34
|
+
'<Twilio::REST::Marketplace::V1>';
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -123,6 +123,8 @@ module Twilio
|
|
123
123
|
# memory before returning.
|
124
124
|
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
125
125
|
# @param [Status] status The compliance status of the Tollfree Verification record.
|
126
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
127
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
126
128
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
127
129
|
# guarantees to never return more than limit. Default is no limit
|
128
130
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -130,10 +132,12 @@ module Twilio
|
|
130
132
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
131
133
|
# efficient page size, i.e. min(limit, 1000)
|
132
134
|
# @return [Array] Array of up to limit results
|
133
|
-
def list(tollfree_phone_number_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
135
|
+
def list(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, limit: nil, page_size: nil)
|
134
136
|
self.stream(
|
135
137
|
tollfree_phone_number_sid: tollfree_phone_number_sid,
|
136
138
|
status: status,
|
139
|
+
external_reference_id: external_reference_id,
|
140
|
+
include_sub_accounts: include_sub_accounts,
|
137
141
|
limit: limit,
|
138
142
|
page_size: page_size
|
139
143
|
).entries
|
@@ -145,6 +149,8 @@ module Twilio
|
|
145
149
|
# is reached.
|
146
150
|
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
147
151
|
# @param [Status] status The compliance status of the Tollfree Verification record.
|
152
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
153
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
148
154
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
149
155
|
# guarantees to never return more than limit. Default is no limit
|
150
156
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -152,12 +158,14 @@ module Twilio
|
|
152
158
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
153
159
|
# efficient page size, i.e. min(limit, 1000)
|
154
160
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
155
|
-
def stream(tollfree_phone_number_sid: :unset, status: :unset, limit: nil, page_size: nil)
|
161
|
+
def stream(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, limit: nil, page_size: nil)
|
156
162
|
limits = @version.read_limits(limit, page_size)
|
157
163
|
|
158
164
|
page = self.page(
|
159
165
|
tollfree_phone_number_sid: tollfree_phone_number_sid,
|
160
166
|
status: status,
|
167
|
+
external_reference_id: external_reference_id,
|
168
|
+
include_sub_accounts: include_sub_accounts,
|
161
169
|
page_size: limits[:page_size], )
|
162
170
|
|
163
171
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
@@ -182,14 +190,18 @@ module Twilio
|
|
182
190
|
# Request is executed immediately.
|
183
191
|
# @param [String] tollfree_phone_number_sid The SID of the Phone Number associated with the Tollfree Verification.
|
184
192
|
# @param [Status] status The compliance status of the Tollfree Verification record.
|
193
|
+
# @param [String] external_reference_id Customer supplied reference id for the Tollfree Verification record.
|
194
|
+
# @param [Boolean] include_sub_accounts Whether to include Tollfree Verifications from sub accounts in list response.
|
185
195
|
# @param [String] page_token PageToken provided by the API
|
186
196
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
187
197
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
188
198
|
# @return [Page] Page of TollfreeVerificationInstance
|
189
|
-
def page(tollfree_phone_number_sid: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
199
|
+
def page(tollfree_phone_number_sid: :unset, status: :unset, external_reference_id: :unset, include_sub_accounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
190
200
|
params = Twilio::Values.of({
|
191
201
|
'TollfreePhoneNumberSid' => tollfree_phone_number_sid,
|
192
202
|
'Status' => status,
|
203
|
+
'ExternalReferenceId' => external_reference_id,
|
204
|
+
'IncludeSubAccounts' => include_sub_accounts,
|
193
205
|
'PageToken' => page_token,
|
194
206
|
'Page' => page_number,
|
195
207
|
'PageSize' => page_size,
|
@@ -165,7 +165,7 @@ module Twilio
|
|
165
165
|
end
|
166
166
|
end
|
167
167
|
##
|
168
|
-
# @param [String] sid
|
168
|
+
# @param [String] sid A unique string identifying a Tollfree Verification.
|
169
169
|
# @return [Twilio::REST::Messaging::V1::TollfreeVerificationContext] if sid was passed.
|
170
170
|
# @return [Twilio::REST::Messaging::V1::TollfreeVerificationList]
|
171
171
|
def tollfree_verifications(sid=:unset)
|
@@ -0,0 +1,176 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Numbers
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class Numbers < NumbersBase
|
19
|
+
class V1 < Version
|
20
|
+
class SigningRequestConfigurationList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the SigningRequestConfigurationList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [SigningRequestConfigurationList] SigningRequestConfigurationList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
@uri = "/SigningRequest/Configuration"
|
31
|
+
|
32
|
+
end
|
33
|
+
##
|
34
|
+
# Create the SigningRequestConfigurationInstance
|
35
|
+
# @param [Object] body
|
36
|
+
# @return [SigningRequestConfigurationInstance] Created SigningRequestConfigurationInstance
|
37
|
+
def create(body: :unset
|
38
|
+
)
|
39
|
+
|
40
|
+
headers = Twilio::Values.of({"Content-Type"=> "application/json"})
|
41
|
+
payload = @version.create('POST', @uri, data: body.to_json, headers: headers)
|
42
|
+
SigningRequestConfigurationInstance.new(
|
43
|
+
@version,
|
44
|
+
payload,
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
# Provide a user friendly representation
|
52
|
+
def to_s
|
53
|
+
'#<Twilio.Numbers.V1.SigningRequestConfigurationList>'
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
class SigningRequestConfigurationPage < Page
|
58
|
+
##
|
59
|
+
# Initialize the SigningRequestConfigurationPage
|
60
|
+
# @param [Version] version Version that contains the resource
|
61
|
+
# @param [Response] response Response from the API
|
62
|
+
# @param [Hash] solution Path solution for the resource
|
63
|
+
# @return [SigningRequestConfigurationPage] SigningRequestConfigurationPage
|
64
|
+
def initialize(version, response, solution)
|
65
|
+
super(version, response)
|
66
|
+
|
67
|
+
# Path Solution
|
68
|
+
@solution = solution
|
69
|
+
end
|
70
|
+
|
71
|
+
##
|
72
|
+
# Build an instance of SigningRequestConfigurationInstance
|
73
|
+
# @param [Hash] payload Payload response from the API
|
74
|
+
# @return [SigningRequestConfigurationInstance] SigningRequestConfigurationInstance
|
75
|
+
def get_instance(payload)
|
76
|
+
SigningRequestConfigurationInstance.new(@version, payload)
|
77
|
+
end
|
78
|
+
|
79
|
+
##
|
80
|
+
# Provide a user friendly representation
|
81
|
+
def to_s
|
82
|
+
'<Twilio.Numbers.V1.SigningRequestConfigurationPage>'
|
83
|
+
end
|
84
|
+
end
|
85
|
+
class SigningRequestConfigurationInstance < InstanceResource
|
86
|
+
##
|
87
|
+
# Initialize the SigningRequestConfigurationInstance
|
88
|
+
# @param [Version] version Version that contains the resource
|
89
|
+
# @param [Hash] payload payload that contains response from Twilio
|
90
|
+
# @param [String] account_sid The SID of the
|
91
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this SigningRequestConfiguration
|
92
|
+
# resource.
|
93
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
94
|
+
# @return [SigningRequestConfigurationInstance] SigningRequestConfigurationInstance
|
95
|
+
def initialize(version, payload )
|
96
|
+
super(version)
|
97
|
+
|
98
|
+
# Marshaled Properties
|
99
|
+
@properties = {
|
100
|
+
'logo_sid' => payload['logo_sid'],
|
101
|
+
'friendly_name' => payload['friendly_name'],
|
102
|
+
'product' => payload['product'],
|
103
|
+
'country' => payload['country'],
|
104
|
+
'email_subject' => payload['email_subject'],
|
105
|
+
'email_message' => payload['email_message'],
|
106
|
+
'url_redirection' => payload['url_redirection'],
|
107
|
+
'url' => payload['url'],
|
108
|
+
}
|
109
|
+
end
|
110
|
+
|
111
|
+
|
112
|
+
##
|
113
|
+
# @return [String] The SID of the document that includes the logo that will appear in the LOA. To upload documents follow the following guide: https://www.twilio.com/docs/phone-numbers/regulatory/getting-started/create-new-bundle-public-rest-apis#supporting-document-create
|
114
|
+
def logo_sid
|
115
|
+
@properties['logo_sid']
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# @return [String] This is the string that you assigned as a friendly name for describing the creation of the configuration.
|
120
|
+
def friendly_name
|
121
|
+
@properties['friendly_name']
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# @return [String] The product or service for which is requesting the signature.
|
126
|
+
def product
|
127
|
+
@properties['product']
|
128
|
+
end
|
129
|
+
|
130
|
+
##
|
131
|
+
# @return [String] The country ISO code to apply the configuration.
|
132
|
+
def country
|
133
|
+
@properties['country']
|
134
|
+
end
|
135
|
+
|
136
|
+
##
|
137
|
+
# @return [String] Subject of the email that the end client will receive ex: “Twilio Hosting Request”, maximum length of 255 characters.
|
138
|
+
def email_subject
|
139
|
+
@properties['email_subject']
|
140
|
+
end
|
141
|
+
|
142
|
+
##
|
143
|
+
# @return [String] Content of the email that the end client will receive ex: “This is a Hosting request from Twilio, please check the document and sign it”, maximum length of 5,000 characters.
|
144
|
+
def email_message
|
145
|
+
@properties['email_message']
|
146
|
+
end
|
147
|
+
|
148
|
+
##
|
149
|
+
# @return [String] Url the end client will be redirected after signing a document.
|
150
|
+
def url_redirection
|
151
|
+
@properties['url_redirection']
|
152
|
+
end
|
153
|
+
|
154
|
+
##
|
155
|
+
# @return [String]
|
156
|
+
def url
|
157
|
+
@properties['url']
|
158
|
+
end
|
159
|
+
|
160
|
+
##
|
161
|
+
# Provide a user friendly representation
|
162
|
+
def to_s
|
163
|
+
"<Twilio.Numbers.V1.SigningRequestConfigurationInstance>"
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# Provide a detailed, user friendly representation
|
168
|
+
def inspect
|
169
|
+
"<Twilio.Numbers.V1.SigningRequestConfigurationInstance>"
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
@@ -29,6 +29,7 @@ module Twilio
|
|
29
29
|
@porting_webhook_configurations = nil
|
30
30
|
@porting_webhook_configurations_delete = nil
|
31
31
|
@porting_webhook_configuration_fetch = nil
|
32
|
+
@signing_request_configurations = nil
|
32
33
|
end
|
33
34
|
|
34
35
|
##
|
@@ -139,6 +140,11 @@ module Twilio
|
|
139
140
|
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
|
140
141
|
end
|
141
142
|
##
|
143
|
+
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
144
|
+
def signing_request_configurations
|
145
|
+
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
146
|
+
end
|
147
|
+
##
|
142
148
|
# Provide a user friendly representation
|
143
149
|
def to_s
|
144
150
|
'<Twilio::REST::Numbers::V1>';
|