twilio-ruby 5.34.0 → 5.38.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 +4 -4
- data/CHANGES.md +126 -0
- data/README.md +24 -3
- data/lib/twilio-ruby.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +47 -9
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +38 -3
- data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +12 -12
- data/lib/twilio-ruby/rest/autopilot.rb +6 -0
- data/lib/twilio-ruby/rest/autopilot/v1.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +0 -16
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +12 -3
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +198 -0
- data/lib/twilio-ruby/rest/client.rb +35 -15
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +28 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service.rb +20 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +26 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +324 -0
- data/lib/twilio-ruby/rest/preview.rb +6 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +193 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
- data/lib/twilio-ruby/rest/{autopilot/v1/assistant/export_assistant.rb → preview/trusted_comms/business/brand.rb} +88 -71
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +194 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
- data/lib/twilio-ruby/rest/supersim.rb +18 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +30 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +63 -16
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
- data/lib/twilio-ruby/rest/{authy/v1/service.rb → supersim/v1/network_access_profile.rb} +95 -121
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/form.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service.rb +74 -3
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity.rb +32 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity/access_token.rb +141 -0
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor.rb +8 -8
- data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor/challenge.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +425 -0
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
- data/lib/twilio-ruby/rest/voice.rb +36 -0
- data/lib/twilio-ruby/rest/voice/v1.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +513 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +379 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +458 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +366 -0
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +346 -0
- data/lib/twilio-ruby/util/configuration.rb +9 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +5 -5
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +177 -0
- data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
- data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -14
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +12 -4
- data/spec/integration/api/v2010/account/token_spec.rb +23 -11
- data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
- data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -4
- data/spec/integration/autopilot/v1/assistant_spec.rb +4 -8
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +53 -0
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +16 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +623 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +4 -0
- data/spec/integration/preview/trusted_comms/brands_information_spec.rb +44 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
- data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
- data/spec/integration/supersim/v1/fleet_spec.rb +16 -7
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +223 -0
- data/spec/integration/supersim/v1/network_spec.rb +139 -0
- data/spec/integration/supersim/v1/sim_spec.rb +78 -6
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
- data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
- data/spec/integration/{authy/v1 → verify/v2}/form_spec.rb +4 -4
- data/spec/integration/verify/v2/service/entity/access_token_spec.rb +46 -0
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor/challenge_spec.rb +73 -73
- data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor_spec.rb +54 -54
- data/spec/integration/verify/v2/service/entity_spec.rb +204 -0
- data/spec/integration/verify/v2/service/webhook_spec.rb +262 -0
- data/spec/integration/verify/v2/service_spec.rb +32 -4
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +250 -0
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +246 -0
- data/spec/integration/voice/v1/connection_policy_spec.rb +226 -0
- data/spec/integration/voice/v1/ip_record_spec.rb +223 -0
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +219 -0
- data/spec/rest/client_spec.rb +168 -58
- data/spec/util/configuration_spec.rb +12 -0
- data/twilio-ruby.gemspec +1 -1
- metadata +63 -23
- data/lib/twilio-ruby/rest/authy.rb +0 -55
- data/lib/twilio-ruby/rest/authy/v1.rb +0 -59
- data/spec/integration/authy/v1/service/entity_spec.rb +0 -201
- data/spec/integration/authy/v1/service_spec.rb +0 -231
- data/spec/integration/autopilot/v1/assistant/export_assistant_spec.rb +0 -49
@@ -363,6 +363,8 @@ module Twilio
|
|
363
363
|
'status' => payload['status'],
|
364
364
|
'uri' => payload['uri'],
|
365
365
|
'subresource_uris' => payload['subresource_uris'],
|
366
|
+
'reason_conference_ended' => payload['reason_conference_ended'],
|
367
|
+
'call_sid_ending_conference' => payload['call_sid_ending_conference'],
|
366
368
|
}
|
367
369
|
|
368
370
|
# Context
|
@@ -441,6 +443,18 @@ module Twilio
|
|
441
443
|
@properties['subresource_uris']
|
442
444
|
end
|
443
445
|
|
446
|
+
##
|
447
|
+
# @return [conference.ReasonConferenceEnded] The reason why a conference ended.
|
448
|
+
def reason_conference_ended
|
449
|
+
@properties['reason_conference_ended']
|
450
|
+
end
|
451
|
+
|
452
|
+
##
|
453
|
+
# @return [String] The call SID that caused the conference to end
|
454
|
+
def call_sid_ending_conference
|
455
|
+
@properties['call_sid_ending_conference']
|
456
|
+
end
|
457
|
+
|
444
458
|
##
|
445
459
|
# Fetch a ConferenceInstance
|
446
460
|
# @return [ConferenceInstance] Fetched ConferenceInstance
|
@@ -32,10 +32,21 @@ module Twilio
|
|
32
32
|
##
|
33
33
|
# Retrieve a single page of ParticipantInstance records from the API.
|
34
34
|
# Request is executed immediately.
|
35
|
-
# @param [String] from The
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
35
|
+
# @param [String] from The phone number, Client identifier, or username portion of
|
36
|
+
# SIP address that made this call. Phone numbers are in
|
37
|
+
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g.,
|
38
|
+
# +16175551212). Client identifiers are formatted `client:name`. If using a phone
|
39
|
+
# number, it must be a Twilio number or a Verified [outgoing caller
|
40
|
+
# id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account.
|
41
|
+
# If the `to` parameter is a phone number, `from` must also be a phone number. If
|
42
|
+
# `to` is sip address, this value of `from` should be a username portion to be
|
43
|
+
# used to populate the P-Asserted-Identity header that is passed to the SIP
|
44
|
+
# endpoint.
|
45
|
+
# @param [String] to The phone number, SIP address, or Client identifier that
|
46
|
+
# received this call. Phone numbers are in
|
47
|
+
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g.,
|
48
|
+
# +16175551212). SIP addresses are formatted as `sip:name@company.com`. Client
|
49
|
+
# identifiers are formatted `client:name`. [Custom
|
39
50
|
# parameters](https://www.twilio.com/docs/voice/api/conference-participant-resource#custom-parameters) may also be specified.
|
40
51
|
# @param [String] status_callback The URL we should call using the
|
41
52
|
# `status_callback_method` to send status information to your application.
|
@@ -45,6 +56,8 @@ module Twilio
|
|
45
56
|
# generate a call to `status_callback`. Can be: `initiated`, `ringing`,
|
46
57
|
# `answered`, and `completed`. Separate multiple values with a space. The default
|
47
58
|
# value is `completed`.
|
59
|
+
# @param [String] label A label for this participant. If one is supplied, it may
|
60
|
+
# subsequently be used to fetch, update or delete the participant.
|
48
61
|
# @param [String] timeout The number of seconds that we should allow the phone to
|
49
62
|
# ring before assuming there is no answer. Can be an integer between `5` and
|
50
63
|
# `600`, inclusive. The default value is `60`. We always add a 5-second timeout
|
@@ -128,17 +141,31 @@ module Twilio
|
|
128
141
|
# @param [String] call_sid_to_coach The SID of the participant who is being
|
129
142
|
# `coached`. The participant being coached is the only participant who can hear
|
130
143
|
# the participant who is `coaching`.
|
144
|
+
# @param [String] jitter_buffer_size Jitter buffer size for the connecting
|
145
|
+
# participant. Twilio will use this setting to apply Jitter Buffer before
|
146
|
+
# participant's audio is mixed into the conference. Can be: `off`, `small`,
|
147
|
+
# `medium`, and `large`. Default to `large`.
|
131
148
|
# @param [String] byoc The SID of a BYOC (Bring Your Own Carrier) trunk to route
|
132
149
|
# this call with. Note that `byoc` is only meaningful when `to` is a phone number;
|
133
150
|
# it will otherwise be ignored. (Beta)
|
151
|
+
# @param [String] caller_id The phone number, Client identifier, or username
|
152
|
+
# portion of SIP address that made this call. Phone numbers are in
|
153
|
+
# [E.164](https://www.twilio.com/docs/glossary/what-e164) format (e.g.,
|
154
|
+
# +16175551212). Client identifiers are formatted `client:name`. If using a phone
|
155
|
+
# number, it must be a Twilio number or a Verified [outgoing caller
|
156
|
+
# id](https://www.twilio.com/docs/voice/api/outgoing-caller-ids) for your account.
|
157
|
+
# If the `to` parameter is a phone number, `callerId` must also be a phone number.
|
158
|
+
# If `to` is sip address, this value of `callerId` should be a username portion to
|
159
|
+
# be used to populate the From header that is passed to the SIP endpoint.
|
134
160
|
# @return [ParticipantInstance] Newly created ParticipantInstance
|
135
|
-
def create(from: nil, to: nil, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_record: :unset, conference_trim: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, region: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, recording_status_callback_event: :unset, conference_recording_status_callback_event: :unset, coaching: :unset, call_sid_to_coach: :unset, byoc: :unset)
|
161
|
+
def create(from: nil, to: nil, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, label: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_record: :unset, conference_trim: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, region: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, recording_status_callback_event: :unset, conference_recording_status_callback_event: :unset, coaching: :unset, call_sid_to_coach: :unset, jitter_buffer_size: :unset, byoc: :unset, caller_id: :unset)
|
136
162
|
data = Twilio::Values.of({
|
137
163
|
'From' => from,
|
138
164
|
'To' => to,
|
139
165
|
'StatusCallback' => status_callback,
|
140
166
|
'StatusCallbackMethod' => status_callback_method,
|
141
167
|
'StatusCallbackEvent' => Twilio.serialize_list(status_callback_event) { |e| e },
|
168
|
+
'Label' => label,
|
142
169
|
'Timeout' => timeout,
|
143
170
|
'Record' => record,
|
144
171
|
'Muted' => muted,
|
@@ -166,7 +193,9 @@ module Twilio
|
|
166
193
|
'ConferenceRecordingStatusCallbackEvent' => Twilio.serialize_list(conference_recording_status_callback_event) { |e| e },
|
167
194
|
'Coaching' => coaching,
|
168
195
|
'CallSidToCoach' => call_sid_to_coach,
|
196
|
+
'JitterBufferSize' => jitter_buffer_size,
|
169
197
|
'Byoc' => byoc,
|
198
|
+
'CallerId' => caller_id,
|
170
199
|
})
|
171
200
|
|
172
201
|
payload = @version.create(
|
@@ -343,8 +372,9 @@ module Twilio
|
|
343
372
|
# @param [String] conference_sid The SID of the conference with the participant to
|
344
373
|
# fetch.
|
345
374
|
# @param [String] call_sid The
|
346
|
-
# [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the
|
347
|
-
# to fetch.
|
375
|
+
# [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the
|
376
|
+
# participant to fetch. Non URL safe characters in a label must be percent
|
377
|
+
# encoded, for example, a space character is represented as %20.
|
348
378
|
# @return [ParticipantContext] ParticipantContext
|
349
379
|
def initialize(version, account_sid, conference_sid, call_sid)
|
350
380
|
super(version)
|
@@ -475,8 +505,9 @@ module Twilio
|
|
475
505
|
# Participant resource.
|
476
506
|
# @param [String] conference_sid The SID of the conference the participant is in.
|
477
507
|
# @param [String] call_sid The
|
478
|
-
# [Call](https://www.twilio.com/docs/voice/api/call-resource) SID of the
|
479
|
-
# to fetch.
|
508
|
+
# [Call](https://www.twilio.com/docs/voice/api/call-resource) SID or label of the
|
509
|
+
# participant to fetch. Non URL safe characters in a label must be percent
|
510
|
+
# encoded, for example, a space character is represented as %20.
|
480
511
|
# @return [ParticipantInstance] ParticipantInstance
|
481
512
|
def initialize(version, payload, account_sid: nil, conference_sid: nil, call_sid: nil)
|
482
513
|
super(version)
|
@@ -485,6 +516,7 @@ module Twilio
|
|
485
516
|
@properties = {
|
486
517
|
'account_sid' => payload['account_sid'],
|
487
518
|
'call_sid' => payload['call_sid'],
|
519
|
+
'label' => payload['label'],
|
488
520
|
'call_sid_to_coach' => payload['call_sid_to_coach'],
|
489
521
|
'coaching' => payload['coaching'],
|
490
522
|
'conference_sid' => payload['conference_sid'],
|
@@ -535,6 +567,12 @@ module Twilio
|
|
535
567
|
@properties['call_sid']
|
536
568
|
end
|
537
569
|
|
570
|
+
##
|
571
|
+
# @return [String] The label of this participant
|
572
|
+
def label
|
573
|
+
@properties['label']
|
574
|
+
end
|
575
|
+
|
538
576
|
##
|
539
577
|
# @return [String] The SID of the participant who is being `coached`
|
540
578
|
def call_sid_to_coach
|
@@ -413,26 +413,26 @@ module Twilio
|
|
413
413
|
|
414
414
|
# Marshaled Properties
|
415
415
|
@properties = {
|
416
|
-
'account_sid' => payload['account_sid'],
|
417
|
-
'api_version' => payload['api_version'],
|
418
416
|
'body' => payload['body'],
|
419
|
-
'
|
420
|
-
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
421
|
-
'date_sent' => Twilio.deserialize_rfc2822(payload['date_sent']),
|
417
|
+
'num_segments' => payload['num_segments'],
|
422
418
|
'direction' => payload['direction'],
|
423
|
-
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
424
|
-
'error_message' => payload['error_message'],
|
425
419
|
'from' => payload['from'],
|
426
|
-
'
|
427
|
-
'
|
428
|
-
'num_segments' => payload['num_segments'],
|
420
|
+
'to' => payload['to'],
|
421
|
+
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
429
422
|
'price' => payload['price'],
|
430
|
-
'
|
431
|
-
'
|
423
|
+
'error_message' => payload['error_message'],
|
424
|
+
'uri' => payload['uri'],
|
425
|
+
'account_sid' => payload['account_sid'],
|
426
|
+
'num_media' => payload['num_media'],
|
432
427
|
'status' => payload['status'],
|
428
|
+
'messaging_service_sid' => payload['messaging_service_sid'],
|
429
|
+
'sid' => payload['sid'],
|
430
|
+
'date_sent' => Twilio.deserialize_rfc2822(payload['date_sent']),
|
431
|
+
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
432
|
+
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
433
|
+
'price_unit' => payload['price_unit'],
|
434
|
+
'api_version' => payload['api_version'],
|
433
435
|
'subresource_uris' => payload['subresource_uris'],
|
434
|
-
'to' => payload['to'],
|
435
|
-
'uri' => payload['uri'],
|
436
436
|
}
|
437
437
|
|
438
438
|
# Context
|
@@ -451,18 +451,6 @@ module Twilio
|
|
451
451
|
@instance_context
|
452
452
|
end
|
453
453
|
|
454
|
-
##
|
455
|
-
# @return [String] The SID of the Account that created the resource
|
456
|
-
def account_sid
|
457
|
-
@properties['account_sid']
|
458
|
-
end
|
459
|
-
|
460
|
-
##
|
461
|
-
# @return [String] The API version used to process the message
|
462
|
-
def api_version
|
463
|
-
@properties['api_version']
|
464
|
-
end
|
465
|
-
|
466
454
|
##
|
467
455
|
# @return [String] The message text
|
468
456
|
def body
|
@@ -470,33 +458,39 @@ module Twilio
|
|
470
458
|
end
|
471
459
|
|
472
460
|
##
|
473
|
-
# @return [
|
474
|
-
def
|
475
|
-
@properties['
|
461
|
+
# @return [String] The number of messages used to deliver the message body
|
462
|
+
def num_segments
|
463
|
+
@properties['num_segments']
|
476
464
|
end
|
477
465
|
|
478
466
|
##
|
479
|
-
# @return [
|
480
|
-
def
|
481
|
-
@properties['
|
467
|
+
# @return [message.Direction] The direction of the message
|
468
|
+
def direction
|
469
|
+
@properties['direction']
|
482
470
|
end
|
483
471
|
|
484
472
|
##
|
485
|
-
# @return [
|
486
|
-
def
|
487
|
-
@properties['
|
473
|
+
# @return [String] The phone number that initiated the message
|
474
|
+
def from
|
475
|
+
@properties['from']
|
488
476
|
end
|
489
477
|
|
490
478
|
##
|
491
|
-
# @return [
|
492
|
-
def
|
493
|
-
@properties['
|
479
|
+
# @return [String] The phone number that received the message
|
480
|
+
def to
|
481
|
+
@properties['to']
|
494
482
|
end
|
495
483
|
|
496
484
|
##
|
497
|
-
# @return [
|
498
|
-
def
|
499
|
-
@properties['
|
485
|
+
# @return [Time] The RFC 2822 date and time in GMT that the resource was last updated
|
486
|
+
def date_updated
|
487
|
+
@properties['date_updated']
|
488
|
+
end
|
489
|
+
|
490
|
+
##
|
491
|
+
# @return [String] The amount billed for the message
|
492
|
+
def price
|
493
|
+
@properties['price']
|
500
494
|
end
|
501
495
|
|
502
496
|
##
|
@@ -506,15 +500,15 @@ module Twilio
|
|
506
500
|
end
|
507
501
|
|
508
502
|
##
|
509
|
-
# @return [String] The
|
510
|
-
def
|
511
|
-
@properties['
|
503
|
+
# @return [String] The URI of the resource, relative to `https://api.twilio.com`
|
504
|
+
def uri
|
505
|
+
@properties['uri']
|
512
506
|
end
|
513
507
|
|
514
508
|
##
|
515
|
-
# @return [String] The SID of the
|
516
|
-
def
|
517
|
-
@properties['
|
509
|
+
# @return [String] The SID of the Account that created the resource
|
510
|
+
def account_sid
|
511
|
+
@properties['account_sid']
|
518
512
|
end
|
519
513
|
|
520
514
|
##
|
@@ -524,21 +518,15 @@ module Twilio
|
|
524
518
|
end
|
525
519
|
|
526
520
|
##
|
527
|
-
# @return [
|
528
|
-
def
|
529
|
-
@properties['
|
530
|
-
end
|
531
|
-
|
532
|
-
##
|
533
|
-
# @return [String] The amount billed for the message
|
534
|
-
def price
|
535
|
-
@properties['price']
|
521
|
+
# @return [message.Status] The status of the message
|
522
|
+
def status
|
523
|
+
@properties['status']
|
536
524
|
end
|
537
525
|
|
538
526
|
##
|
539
|
-
# @return [String] The
|
540
|
-
def
|
541
|
-
@properties['
|
527
|
+
# @return [String] The SID of the Messaging Service used with the message.
|
528
|
+
def messaging_service_sid
|
529
|
+
@properties['messaging_service_sid']
|
542
530
|
end
|
543
531
|
|
544
532
|
##
|
@@ -548,27 +536,39 @@ module Twilio
|
|
548
536
|
end
|
549
537
|
|
550
538
|
##
|
551
|
-
# @return [
|
552
|
-
def
|
553
|
-
@properties['
|
539
|
+
# @return [Time] The RFC 2822 date and time in GMT when the message was sent
|
540
|
+
def date_sent
|
541
|
+
@properties['date_sent']
|
554
542
|
end
|
555
543
|
|
556
544
|
##
|
557
|
-
# @return [
|
558
|
-
def
|
559
|
-
@properties['
|
545
|
+
# @return [Time] The RFC 2822 date and time in GMT that the resource was created
|
546
|
+
def date_created
|
547
|
+
@properties['date_created']
|
560
548
|
end
|
561
549
|
|
562
550
|
##
|
563
|
-
# @return [String] The
|
564
|
-
def
|
565
|
-
@properties['
|
551
|
+
# @return [String] The error code associated with the message
|
552
|
+
def error_code
|
553
|
+
@properties['error_code']
|
566
554
|
end
|
567
555
|
|
568
556
|
##
|
569
|
-
# @return [String] The
|
570
|
-
def
|
571
|
-
@properties['
|
557
|
+
# @return [String] The currency in which price is measured
|
558
|
+
def price_unit
|
559
|
+
@properties['price_unit']
|
560
|
+
end
|
561
|
+
|
562
|
+
##
|
563
|
+
# @return [String] The API version used to process the message
|
564
|
+
def api_version
|
565
|
+
@properties['api_version']
|
566
|
+
end
|
567
|
+
|
568
|
+
##
|
569
|
+
# @return [String] A list of related resources identified by their relative URIs
|
570
|
+
def subresource_uris
|
571
|
+
@properties['subresource_uris']
|
572
572
|
end
|
573
573
|
|
574
574
|
##
|
@@ -280,15 +280,15 @@ module Twilio
|
|
280
280
|
|
281
281
|
# Marshaled Properties
|
282
282
|
@properties = {
|
283
|
+
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
284
|
+
'current_size' => payload['current_size'].to_i,
|
285
|
+
'friendly_name' => payload['friendly_name'],
|
286
|
+
'uri' => payload['uri'],
|
283
287
|
'account_sid' => payload['account_sid'],
|
284
288
|
'average_wait_time' => payload['average_wait_time'].to_i,
|
285
|
-
'
|
289
|
+
'sid' => payload['sid'],
|
286
290
|
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
287
|
-
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
288
|
-
'friendly_name' => payload['friendly_name'],
|
289
291
|
'max_size' => payload['max_size'].to_i,
|
290
|
-
'sid' => payload['sid'],
|
291
|
-
'uri' => payload['uri'],
|
292
292
|
}
|
293
293
|
|
294
294
|
# Context
|
@@ -308,15 +308,9 @@ module Twilio
|
|
308
308
|
end
|
309
309
|
|
310
310
|
##
|
311
|
-
# @return [
|
312
|
-
def
|
313
|
-
@properties['
|
314
|
-
end
|
315
|
-
|
316
|
-
##
|
317
|
-
# @return [String] Average wait time of members in the queue
|
318
|
-
def average_wait_time
|
319
|
-
@properties['average_wait_time']
|
311
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was last updated
|
312
|
+
def date_updated
|
313
|
+
@properties['date_updated']
|
320
314
|
end
|
321
315
|
|
322
316
|
##
|
@@ -326,27 +320,27 @@ module Twilio
|
|
326
320
|
end
|
327
321
|
|
328
322
|
##
|
329
|
-
# @return [
|
330
|
-
def
|
331
|
-
@properties['
|
323
|
+
# @return [String] A string that you assigned to describe this resource
|
324
|
+
def friendly_name
|
325
|
+
@properties['friendly_name']
|
332
326
|
end
|
333
327
|
|
334
328
|
##
|
335
|
-
# @return [
|
336
|
-
def
|
337
|
-
@properties['
|
329
|
+
# @return [String] The URI of this resource, relative to `https://api.twilio.com`
|
330
|
+
def uri
|
331
|
+
@properties['uri']
|
338
332
|
end
|
339
333
|
|
340
334
|
##
|
341
|
-
# @return [String]
|
342
|
-
def
|
343
|
-
@properties['
|
335
|
+
# @return [String] The SID of the Account that created this resource
|
336
|
+
def account_sid
|
337
|
+
@properties['account_sid']
|
344
338
|
end
|
345
339
|
|
346
340
|
##
|
347
|
-
# @return [String]
|
348
|
-
def
|
349
|
-
@properties['
|
341
|
+
# @return [String] Average wait time of members in the queue
|
342
|
+
def average_wait_time
|
343
|
+
@properties['average_wait_time']
|
350
344
|
end
|
351
345
|
|
352
346
|
##
|
@@ -356,9 +350,15 @@ module Twilio
|
|
356
350
|
end
|
357
351
|
|
358
352
|
##
|
359
|
-
# @return [
|
360
|
-
def
|
361
|
-
@properties['
|
353
|
+
# @return [Time] The RFC 2822 date and time in GMT that this resource was created
|
354
|
+
def date_created
|
355
|
+
@properties['date_created']
|
356
|
+
end
|
357
|
+
|
358
|
+
##
|
359
|
+
# @return [String] The max number of calls allowed in the queue
|
360
|
+
def max_size
|
361
|
+
@properties['max_size']
|
362
362
|
end
|
363
363
|
|
364
364
|
##
|