twilio-ruby 6.7.0 → 6.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +9 -0
- data/CONTRIBUTING.md +1 -1
- data/LICENSE +1 -1
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +0 -10
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +232 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +15 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40fcd99caa55549b7edc431ca3175fc950dad965
|
4
|
+
data.tar.gz: 495adf34fe4bd97e63a761191c22d3210c295024
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5a200844db95cb5d6c68763126e0dc1ea976f8a20e963cefb2805bab50cf2e749e141a910ff3cae4ff2bf0532d218628cdb47ef7546d7364eecccde78a515cf
|
7
|
+
data.tar.gz: a4c5a49ac9b4b5e886c4395f6882ccd7230a76ddbbd8c73b0a539be3df1450c0fa38905574451bb5fe5ea364da71aeaec131dcda695ba75e0bd71185029ed719
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-10-05] Version 6.7.1
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #678](https://github.com/twilio/twilio-ruby/pull/678): twilio help changes. Thanks to [@kridai](https://github.com/kridai)!
|
8
|
+
|
9
|
+
**Lookups**
|
10
|
+
- Add test api support for Lookup v2
|
11
|
+
|
12
|
+
|
4
13
|
[2023-09-21] Version 6.7.0
|
5
14
|
--------------------------
|
6
15
|
**Conversations**
|
data/CONTRIBUTING.md
CHANGED
@@ -22,7 +22,7 @@ it can be.
|
|
22
22
|
|
23
23
|
If you have questions about how to use `twilio-ruby`, please see our
|
24
24
|
[docs](./README.md), and if you don't find the answer there, please contact
|
25
|
-
[
|
25
|
+
[Twilio Support](https://www.twilio.com/help/contact) with any issues you have.
|
26
26
|
|
27
27
|
## <a name="issue"></a> Found an Issue?
|
28
28
|
|
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (C) 2023, Twilio, Inc. <
|
3
|
+
Copyright (C) 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 6.7.
|
42
|
+
gem 'twilio-ruby', '~> 6.7.1'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 6.7.
|
48
|
+
gem install twilio-ruby -v 6.7.1
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -50,7 +50,6 @@ module Twilio
|
|
50
50
|
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
|
51
51
|
# @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
|
52
52
|
# @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
|
53
|
-
# @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
|
54
53
|
# @param [RiskCheck] risk_check
|
55
54
|
# @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
|
56
55
|
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
|
@@ -76,7 +75,6 @@ module Twilio
|
|
76
75
|
send_at: :unset,
|
77
76
|
send_as_mms: :unset,
|
78
77
|
content_variables: :unset,
|
79
|
-
tags: :unset,
|
80
78
|
risk_check: :unset,
|
81
79
|
from: :unset,
|
82
80
|
messaging_service_sid: :unset,
|
@@ -103,7 +101,6 @@ module Twilio
|
|
103
101
|
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
|
104
102
|
'SendAsMms' => send_as_mms,
|
105
103
|
'ContentVariables' => content_variables,
|
106
|
-
'Tags' => tags,
|
107
104
|
'RiskCheck' => risk_check,
|
108
105
|
'From' => from,
|
109
106
|
'MessagingServiceSid' => messaging_service_sid,
|
@@ -417,7 +414,6 @@ module Twilio
|
|
417
414
|
'price_unit' => payload['price_unit'],
|
418
415
|
'api_version' => payload['api_version'],
|
419
416
|
'subresource_uris' => payload['subresource_uris'],
|
420
|
-
'tags' => payload['tags'],
|
421
417
|
}
|
422
418
|
|
423
419
|
# Context
|
@@ -556,12 +552,6 @@ module Twilio
|
|
556
552
|
@properties['subresource_uris']
|
557
553
|
end
|
558
554
|
|
559
|
-
##
|
560
|
-
# @return [Hash] A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
|
561
|
-
def tags
|
562
|
-
@properties['tags']
|
563
|
-
end
|
564
|
-
|
565
555
|
##
|
566
556
|
# Delete the MessageInstance
|
567
557
|
# @return [Boolean] True if delete succeeds, false otherwise
|
@@ -0,0 +1,232 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Trusthub
|
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 Trusthub < TrusthubBase
|
19
|
+
class V1 < Version
|
20
|
+
class ComplianceInquiriesList < ListResource
|
21
|
+
##
|
22
|
+
# Initialize the ComplianceInquiriesList
|
23
|
+
# @param [Version] version Version that contains the resource
|
24
|
+
# @return [ComplianceInquiriesList] ComplianceInquiriesList
|
25
|
+
def initialize(version)
|
26
|
+
super(version)
|
27
|
+
# Path Solution
|
28
|
+
@solution = { }
|
29
|
+
@uri = "/ComplianceInquiries/Customers/Initialize"
|
30
|
+
|
31
|
+
end
|
32
|
+
##
|
33
|
+
# Create the ComplianceInquiriesInstance
|
34
|
+
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
35
|
+
# @return [ComplianceInquiriesInstance] Created ComplianceInquiriesInstance
|
36
|
+
def create(
|
37
|
+
primary_profile_sid: nil
|
38
|
+
)
|
39
|
+
|
40
|
+
data = Twilio::Values.of({
|
41
|
+
'PrimaryProfileSid' => primary_profile_sid,
|
42
|
+
})
|
43
|
+
|
44
|
+
payload = @version.create('POST', @uri, data: data)
|
45
|
+
ComplianceInquiriesInstance.new(
|
46
|
+
@version,
|
47
|
+
payload,
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
# Provide a user friendly representation
|
55
|
+
def to_s
|
56
|
+
'#<Twilio.Trusthub.V1.ComplianceInquiriesList>'
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
|
61
|
+
class ComplianceInquiriesContext < InstanceContext
|
62
|
+
##
|
63
|
+
# Initialize the ComplianceInquiriesContext
|
64
|
+
# @param [Version] version Version that contains the resource
|
65
|
+
# @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
|
66
|
+
# @return [ComplianceInquiriesContext] ComplianceInquiriesContext
|
67
|
+
def initialize(version, customer_id)
|
68
|
+
super(version)
|
69
|
+
|
70
|
+
# Path Solution
|
71
|
+
@solution = { customer_id: customer_id, }
|
72
|
+
@uri = "/ComplianceInquiries/Customers/#{@solution[:customer_id]}/Initialize"
|
73
|
+
|
74
|
+
|
75
|
+
end
|
76
|
+
##
|
77
|
+
# Update the ComplianceInquiriesInstance
|
78
|
+
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
79
|
+
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
|
80
|
+
def update(
|
81
|
+
primary_profile_sid: nil
|
82
|
+
)
|
83
|
+
|
84
|
+
data = Twilio::Values.of({
|
85
|
+
'PrimaryProfileSid' => primary_profile_sid,
|
86
|
+
})
|
87
|
+
|
88
|
+
payload = @version.update('POST', @uri, data: data)
|
89
|
+
ComplianceInquiriesInstance.new(
|
90
|
+
@version,
|
91
|
+
payload,
|
92
|
+
customer_id: @solution[:customer_id],
|
93
|
+
)
|
94
|
+
end
|
95
|
+
|
96
|
+
|
97
|
+
##
|
98
|
+
# Provide a user friendly representation
|
99
|
+
def to_s
|
100
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
101
|
+
"#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>"
|
102
|
+
end
|
103
|
+
|
104
|
+
##
|
105
|
+
# Provide a detailed, user friendly representation
|
106
|
+
def inspect
|
107
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
108
|
+
"#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>"
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class ComplianceInquiriesPage < Page
|
113
|
+
##
|
114
|
+
# Initialize the ComplianceInquiriesPage
|
115
|
+
# @param [Version] version Version that contains the resource
|
116
|
+
# @param [Response] response Response from the API
|
117
|
+
# @param [Hash] solution Path solution for the resource
|
118
|
+
# @return [ComplianceInquiriesPage] ComplianceInquiriesPage
|
119
|
+
def initialize(version, response, solution)
|
120
|
+
super(version, response)
|
121
|
+
|
122
|
+
# Path Solution
|
123
|
+
@solution = solution
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Build an instance of ComplianceInquiriesInstance
|
128
|
+
# @param [Hash] payload Payload response from the API
|
129
|
+
# @return [ComplianceInquiriesInstance] ComplianceInquiriesInstance
|
130
|
+
def get_instance(payload)
|
131
|
+
ComplianceInquiriesInstance.new(@version, payload)
|
132
|
+
end
|
133
|
+
|
134
|
+
##
|
135
|
+
# Provide a user friendly representation
|
136
|
+
def to_s
|
137
|
+
'<Twilio.Trusthub.V1.ComplianceInquiriesPage>'
|
138
|
+
end
|
139
|
+
end
|
140
|
+
class ComplianceInquiriesInstance < InstanceResource
|
141
|
+
##
|
142
|
+
# Initialize the ComplianceInquiriesInstance
|
143
|
+
# @param [Version] version Version that contains the resource
|
144
|
+
# @param [Hash] payload payload that contains response from Twilio
|
145
|
+
# @param [String] account_sid The SID of the
|
146
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ComplianceInquiries
|
147
|
+
# resource.
|
148
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
149
|
+
# @return [ComplianceInquiriesInstance] ComplianceInquiriesInstance
|
150
|
+
def initialize(version, payload , customer_id: nil)
|
151
|
+
super(version)
|
152
|
+
|
153
|
+
# Marshaled Properties
|
154
|
+
@properties = {
|
155
|
+
'inquiry_id' => payload['inquiry_id'],
|
156
|
+
'inquiry_session_token' => payload['inquiry_session_token'],
|
157
|
+
'customer_id' => payload['customer_id'],
|
158
|
+
'url' => payload['url'],
|
159
|
+
}
|
160
|
+
|
161
|
+
# Context
|
162
|
+
@instance_context = nil
|
163
|
+
@params = { 'customer_id' => customer_id || @properties['customer_id'] , }
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# Generate an instance context for the instance, the context is capable of
|
168
|
+
# performing various actions. All instance actions are proxied to the context
|
169
|
+
# @return [ComplianceInquiriesContext] CallContext for this CallInstance
|
170
|
+
def context
|
171
|
+
unless @instance_context
|
172
|
+
@instance_context = ComplianceInquiriesContext.new(@version , @params['customer_id'])
|
173
|
+
end
|
174
|
+
@instance_context
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# @return [String] The unique ID used to start an embedded compliance registration session.
|
179
|
+
def inquiry_id
|
180
|
+
@properties['inquiry_id']
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# @return [String] The session token used to start an embedded compliance registration session.
|
185
|
+
def inquiry_session_token
|
186
|
+
@properties['inquiry_session_token']
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [String] The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
|
191
|
+
def customer_id
|
192
|
+
@properties['customer_id']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [String] The URL of this resource.
|
197
|
+
def url
|
198
|
+
@properties['url']
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# Update the ComplianceInquiriesInstance
|
203
|
+
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
204
|
+
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
|
205
|
+
def update(
|
206
|
+
primary_profile_sid: nil
|
207
|
+
)
|
208
|
+
|
209
|
+
context.update(
|
210
|
+
primary_profile_sid: primary_profile_sid,
|
211
|
+
)
|
212
|
+
end
|
213
|
+
|
214
|
+
##
|
215
|
+
# Provide a user friendly representation
|
216
|
+
def to_s
|
217
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
218
|
+
"<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>"
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# Provide a detailed, user friendly representation
|
223
|
+
def inspect
|
224
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
225
|
+
"<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>"
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
@@ -21,6 +21,7 @@ module Twilio
|
|
21
21
|
def initialize(domain)
|
22
22
|
super
|
23
23
|
@version = 'v1'
|
24
|
+
@compliance_inquiries = nil
|
24
25
|
@customer_profiles = nil
|
25
26
|
@end_users = nil
|
26
27
|
@end_user_types = nil
|
@@ -30,6 +31,20 @@ module Twilio
|
|
30
31
|
@trust_products = nil
|
31
32
|
end
|
32
33
|
|
34
|
+
##
|
35
|
+
# @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
|
36
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesContext] if customerId was passed.
|
37
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesList]
|
38
|
+
def compliance_inquiries(customer_id=:unset)
|
39
|
+
if customer_id.nil?
|
40
|
+
raise ArgumentError, 'customer_id cannot be nil'
|
41
|
+
end
|
42
|
+
if customer_id == :unset
|
43
|
+
@compliance_inquiries ||= ComplianceInquiriesList.new self
|
44
|
+
else
|
45
|
+
ComplianceInquiriesContext.new(self, customer_id)
|
46
|
+
end
|
47
|
+
end
|
33
48
|
##
|
34
49
|
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
|
35
50
|
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
|
data/lib/twilio-ruby/version.rb
CHANGED
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: 6.7.
|
4
|
+
version: 6.7.1
|
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-
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -781,6 +781,7 @@ files:
|
|
781
781
|
- lib/twilio-ruby/rest/trunking_base.rb
|
782
782
|
- lib/twilio-ruby/rest/trusthub.rb
|
783
783
|
- lib/twilio-ruby/rest/trusthub/v1.rb
|
784
|
+
- lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
|
784
785
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb
|
785
786
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb
|
786
787
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb
|