twilio-ruby 6.5.0 → 6.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +19 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +10 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +4 -4
- data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +11 -18
- data/lib/twilio-ruby/rest/numbers/v2.rb +7 -7
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 342853723bf8d9a243b81e603c11cdaff04fc230
|
4
|
+
data.tar.gz: 38e211b1f826265046247bbd71f1542f34bbea78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bea2ea6fa4daeb7c8cbf435b2fbdbb562a8f7ab76c4f0b260875beb3293d7e48093de1930e5dcf40d8d4c4acccf01ba23d13566a3b7c680b508fd65b42539ad8
|
7
|
+
data.tar.gz: f949bd0bf82da86466909a3d7cce04bee87cbed4882169db07e7e4dbd264bc0d02d3f7b7d9f33e79596582a662f3acdfa3e255754ead30241509365b77a4c7db
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,25 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-09-07] Version 6.6.0
|
5
|
+
--------------------------
|
6
|
+
**Api**
|
7
|
+
- Make message tagging parameters public **(breaking change)**
|
8
|
+
|
9
|
+
**Flex**
|
10
|
+
- Adding `agent_conv_end_methods` to Flex Configuration
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Mark Mesasging Services fallback_to_long_code feature obsolete
|
14
|
+
|
15
|
+
**Numbers**
|
16
|
+
- Add Create Port In request api
|
17
|
+
- Renaming sid for bulk_hosting_sid and remove account_sid response field in numbers/v2/BulkHostedNumberOrders **(breaking change)**
|
18
|
+
|
19
|
+
**Pricing**
|
20
|
+
- gate resources behind a beta_feature
|
21
|
+
|
22
|
+
|
4
23
|
[2023-08-24] Version 6.5.0
|
5
24
|
--------------------------
|
6
25
|
**Api**
|
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.
|
42
|
+
gem 'twilio-ruby', '~> 6.6.0'
|
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.
|
48
|
+
gem install twilio-ruby -v 6.6.0
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -116,13 +116,13 @@ module Twilio
|
|
116
116
|
|
117
117
|
|
118
118
|
##
|
119
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account)
|
119
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
|
120
120
|
def account_sid
|
121
121
|
@properties['account_sid']
|
122
122
|
end
|
123
123
|
|
124
124
|
##
|
125
|
-
# @return [String] The SID of the Message resource
|
125
|
+
# @return [String] The SID of the Message resource associated with this MessageFeedback resource.
|
126
126
|
def message_sid
|
127
127
|
@properties['message_sid']
|
128
128
|
end
|
@@ -134,13 +134,13 @@ module Twilio
|
|
134
134
|
end
|
135
135
|
|
136
136
|
##
|
137
|
-
# @return [Time] The date and time in GMT
|
137
|
+
# @return [Time] The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
138
138
|
def date_created
|
139
139
|
@properties['date_created']
|
140
140
|
end
|
141
141
|
|
142
142
|
##
|
143
|
-
# @return [Time] The date and time in GMT
|
143
|
+
# @return [Time] The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
144
144
|
def date_updated
|
145
145
|
@properties['date_updated']
|
146
146
|
end
|
@@ -50,6 +50,7 @@ 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.
|
53
54
|
# @param [RiskCheck] risk_check
|
54
55
|
# @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 belong 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.
|
55
56
|
# @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.
|
@@ -75,6 +76,7 @@ module Twilio
|
|
75
76
|
send_at: :unset,
|
76
77
|
send_as_mms: :unset,
|
77
78
|
content_variables: :unset,
|
79
|
+
tags: :unset,
|
78
80
|
risk_check: :unset,
|
79
81
|
from: :unset,
|
80
82
|
messaging_service_sid: :unset,
|
@@ -101,6 +103,7 @@ module Twilio
|
|
101
103
|
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
|
102
104
|
'SendAsMms' => send_as_mms,
|
103
105
|
'ContentVariables' => content_variables,
|
106
|
+
'Tags' => tags,
|
104
107
|
'RiskCheck' => risk_check,
|
105
108
|
'From' => from,
|
106
109
|
'MessagingServiceSid' => messaging_service_sid,
|
@@ -414,6 +417,7 @@ module Twilio
|
|
414
417
|
'price_unit' => payload['price_unit'],
|
415
418
|
'api_version' => payload['api_version'],
|
416
419
|
'subresource_uris' => payload['subresource_uris'],
|
420
|
+
'tags' => payload['tags'],
|
417
421
|
}
|
418
422
|
|
419
423
|
# Context
|
@@ -552,6 +556,12 @@ module Twilio
|
|
552
556
|
@properties['subresource_uris']
|
553
557
|
end
|
554
558
|
|
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
|
+
|
555
565
|
##
|
556
566
|
# Delete the MessageInstance
|
557
567
|
# @return [Boolean] True if delete succeeds, false otherwise
|
@@ -175,6 +175,7 @@ module Twilio
|
|
175
175
|
'channel_configs' => payload['channel_configs'],
|
176
176
|
'debugger_integration' => payload['debugger_integration'],
|
177
177
|
'flex_ui_status_report' => payload['flex_ui_status_report'],
|
178
|
+
'agent_conv_end_methods' => payload['agent_conv_end_methods'],
|
178
179
|
}
|
179
180
|
|
180
181
|
# Context
|
@@ -463,6 +464,12 @@ module Twilio
|
|
463
464
|
@properties['flex_ui_status_report']
|
464
465
|
end
|
465
466
|
|
467
|
+
##
|
468
|
+
# @return [Hash] Agent conversation end methods.
|
469
|
+
def agent_conv_end_methods
|
470
|
+
@properties['agent_conv_end_methods']
|
471
|
+
end
|
472
|
+
|
466
473
|
##
|
467
474
|
# Fetch the ConfigurationInstance
|
468
475
|
# @param [String] ui_version The Pinned UI version of the Configuration resource to fetch.
|
@@ -41,7 +41,7 @@ module Twilio
|
|
41
41
|
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
42
42
|
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
43
43
|
# @param [ScanMessageContent] scan_message_content
|
44
|
-
# @param [Boolean] fallback_to_long_code
|
44
|
+
# @param [Boolean] fallback_to_long_code [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
45
45
|
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
46
46
|
# @param [String] validity_period How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
47
47
|
# @param [Boolean] synchronous_validation Reserved.
|
@@ -243,7 +243,7 @@ module Twilio
|
|
243
243
|
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
244
244
|
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
245
245
|
# @param [ScanMessageContent] scan_message_content
|
246
|
-
# @param [Boolean] fallback_to_long_code
|
246
|
+
# @param [Boolean] fallback_to_long_code [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
247
247
|
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
248
248
|
# @param [String] validity_period How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
249
249
|
# @param [Boolean] synchronous_validation Reserved.
|
@@ -587,7 +587,7 @@ module Twilio
|
|
587
587
|
end
|
588
588
|
|
589
589
|
##
|
590
|
-
# @return [Boolean]
|
590
|
+
# @return [Boolean] [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
591
591
|
def fallback_to_long_code
|
592
592
|
@properties['fallback_to_long_code']
|
593
593
|
end
|
@@ -668,7 +668,7 @@ module Twilio
|
|
668
668
|
# @param [Boolean] mms_converter Whether to enable the [MMS Converter](https://www.twilio.com/docs/messaging/services#mms-converter) for messages sent through the Service instance.
|
669
669
|
# @param [Boolean] smart_encoding Whether to enable [Smart Encoding](https://www.twilio.com/docs/messaging/services#smart-encoding) for messages sent through the Service instance.
|
670
670
|
# @param [ScanMessageContent] scan_message_content
|
671
|
-
# @param [Boolean] fallback_to_long_code
|
671
|
+
# @param [Boolean] fallback_to_long_code [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
|
672
672
|
# @param [Boolean] area_code_geomatch Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance.
|
673
673
|
# @param [String] validity_period How long, in seconds, messages sent from the Service are valid. Can be an integer from `1` to `14,400`.
|
674
674
|
# @param [Boolean] synchronous_validation Reserved.
|
@@ -45,14 +45,14 @@ module Twilio
|
|
45
45
|
##
|
46
46
|
# Initialize the BulkHostedNumberOrderContext
|
47
47
|
# @param [Version] version Version that contains the resource
|
48
|
-
# @param [String]
|
48
|
+
# @param [String] bulk_hosting_sid A 34 character string that uniquely identifies this BulkHostedNumberOrder.
|
49
49
|
# @return [BulkHostedNumberOrderContext] BulkHostedNumberOrderContext
|
50
|
-
def initialize(version,
|
50
|
+
def initialize(version, bulk_hosting_sid)
|
51
51
|
super(version)
|
52
52
|
|
53
53
|
# Path Solution
|
54
|
-
@solution = {
|
55
|
-
@uri = "/HostedNumber/Orders/Bulk/#{@solution[:
|
54
|
+
@solution = { bulk_hosting_sid: bulk_hosting_sid, }
|
55
|
+
@uri = "/HostedNumber/Orders/Bulk/#{@solution[:bulk_hosting_sid]}"
|
56
56
|
|
57
57
|
|
58
58
|
end
|
@@ -71,7 +71,7 @@ module Twilio
|
|
71
71
|
BulkHostedNumberOrderInstance.new(
|
72
72
|
@version,
|
73
73
|
payload,
|
74
|
-
|
74
|
+
bulk_hosting_sid: @solution[:bulk_hosting_sid],
|
75
75
|
)
|
76
76
|
end
|
77
77
|
|
@@ -129,13 +129,12 @@ module Twilio
|
|
129
129
|
# resource.
|
130
130
|
# @param [String] sid The SID of the Call resource to fetch.
|
131
131
|
# @return [BulkHostedNumberOrderInstance] BulkHostedNumberOrderInstance
|
132
|
-
def initialize(version, payload ,
|
132
|
+
def initialize(version, payload , bulk_hosting_sid: nil)
|
133
133
|
super(version)
|
134
134
|
|
135
135
|
# Marshaled Properties
|
136
136
|
@properties = {
|
137
|
-
'
|
138
|
-
'account_sid' => payload['account_sid'],
|
137
|
+
'bulk_hosting_sid' => payload['bulk_hosting_sid'],
|
139
138
|
'request_status' => payload['request_status'],
|
140
139
|
'friendly_name' => payload['friendly_name'],
|
141
140
|
'notification_email' => payload['notification_email'],
|
@@ -148,7 +147,7 @@ module Twilio
|
|
148
147
|
|
149
148
|
# Context
|
150
149
|
@instance_context = nil
|
151
|
-
@params = { '
|
150
|
+
@params = { 'bulk_hosting_sid' => bulk_hosting_sid || @properties['bulk_hosting_sid'] , }
|
152
151
|
end
|
153
152
|
|
154
153
|
##
|
@@ -157,21 +156,15 @@ module Twilio
|
|
157
156
|
# @return [BulkHostedNumberOrderContext] CallContext for this CallInstance
|
158
157
|
def context
|
159
158
|
unless @instance_context
|
160
|
-
@instance_context = BulkHostedNumberOrderContext.new(@version , @params['
|
159
|
+
@instance_context = BulkHostedNumberOrderContext.new(@version , @params['bulk_hosting_sid'])
|
161
160
|
end
|
162
161
|
@instance_context
|
163
162
|
end
|
164
163
|
|
165
164
|
##
|
166
165
|
# @return [String] A 34 character string that uniquely identifies this BulkHostedNumberOrder.
|
167
|
-
def
|
168
|
-
@properties['
|
169
|
-
end
|
170
|
-
|
171
|
-
##
|
172
|
-
# @return [String] A 34 character string that uniquely identifies the account.
|
173
|
-
def account_sid
|
174
|
-
@properties['account_sid']
|
166
|
+
def bulk_hosting_sid
|
167
|
+
@properties['bulk_hosting_sid']
|
175
168
|
end
|
176
169
|
|
177
170
|
##
|
@@ -42,17 +42,17 @@ module Twilio
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
##
|
45
|
-
# @param [String]
|
46
|
-
# @return [Twilio::REST::Numbers::V2::BulkHostedNumberOrderContext] if
|
45
|
+
# @param [String] bulk_hosting_sid A 34 character string that uniquely identifies this BulkHostedNumberOrder.
|
46
|
+
# @return [Twilio::REST::Numbers::V2::BulkHostedNumberOrderContext] if bulkHostingSid was passed.
|
47
47
|
# @return [Twilio::REST::Numbers::V2::BulkHostedNumberOrderList]
|
48
|
-
def bulk_hosted_number_orders(
|
49
|
-
if
|
50
|
-
raise ArgumentError, '
|
48
|
+
def bulk_hosted_number_orders(bulk_hosting_sid=:unset)
|
49
|
+
if bulk_hosting_sid.nil?
|
50
|
+
raise ArgumentError, 'bulk_hosting_sid cannot be nil'
|
51
51
|
end
|
52
|
-
if
|
52
|
+
if bulk_hosting_sid == :unset
|
53
53
|
@bulk_hosted_number_orders ||= BulkHostedNumberOrderList.new self
|
54
54
|
else
|
55
|
-
BulkHostedNumberOrderContext.new(self,
|
55
|
+
BulkHostedNumberOrderContext.new(self, bulk_hosting_sid)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
##
|
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.
|
4
|
+
version: 6.6.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-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|