twilio-ruby 5.35.0 → 5.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +28 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +87 -87
  5. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
  6. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +71 -71
  7. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
  8. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
  9. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
  10. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  11. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +6 -3
  12. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
  13. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +239 -0
  14. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
  15. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +197 -0
  16. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
  17. data/lib/twilio-ruby/rest/supersim.rb +11 -1
  18. data/lib/twilio-ruby/rest/supersim/v1.rb +16 -1
  19. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +10 -1
  20. data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
  21. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +53 -12
  22. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
  23. data/lib/twilio-ruby/rest/verify.rb +9 -0
  24. data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
  25. data/lib/twilio-ruby/rest/verify/v2/form.rb +197 -0
  26. data/lib/twilio-ruby/rest/verify/v2/service.rb +26 -0
  27. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +379 -0
  28. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +500 -0
  29. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb +494 -0
  30. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -4
  31. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -4
  32. data/lib/twilio-ruby/version.rb +1 -1
  33. data/spec/integration/api/v2010/account/call_spec.rb +5 -5
  34. data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
  35. data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
  36. data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
  37. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
  38. data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
  39. data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
  40. data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
  41. data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
  42. data/spec/integration/supersim/v1/fleet_spec.rb +4 -0
  43. data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
  44. data/spec/integration/supersim/v1/network_access_profile_spec.rb +20 -5
  45. data/spec/integration/supersim/v1/network_spec.rb +139 -0
  46. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
  47. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
  48. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
  49. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
  50. data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
  51. data/spec/integration/verify/v2/form_spec.rb +48 -0
  52. data/spec/integration/verify/v2/service/entity/factor/challenge_spec.rb +353 -0
  53. data/spec/integration/verify/v2/service/entity/factor_spec.rb +298 -0
  54. data/spec/integration/verify/v2/service/entity_spec.rb +201 -0
  55. data/spec/integration/verify/v2/service_spec.rb +24 -4
  56. metadata +29 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a3e996f0e5e03d78e9be169b6254e444bac36f39c70a6c8ff1a0a682b672866
4
- data.tar.gz: 3ccf875613f2bcce4316fa3e35ccdfa25bb5eefb0aeb1f424a388f5cf9e9ae23
3
+ metadata.gz: e0442d91ae15369f07249085856a03505c1beb0a71d76c88862ad992e3fcb390
4
+ data.tar.gz: 01f4add7958ec84a106489a68aece150618496782c1902720ed61722c95b9eb1
5
5
  SHA512:
6
- metadata.gz: 98f01d3f1f616b93ae64d25bdd6de991dc85c6c5b7a774b059aa60d07b3fe28650b05e0a73e234dbff7f16c4d405af298c7547596c7e19eda03bc618a875ffcd
7
- data.tar.gz: 6a4ed10718140c2c528f0b053f2f34167d39d40283fc226b59bb7f0563137e953019ad0fd84d27f731f1994f64a8b1c2b0c3391aeed4b096cec6d1b7b252a68d
6
+ metadata.gz: 5a38fb1c3693fa9ce9450d37447d75fb7000f7c547f46b2a1af638327f8ca3ecc639755caf2ddbf1145f366d4ecb9b78cfaab139adc0d45c97854a9a7fbdbcc8
7
+ data.tar.gz: 991079bc47595a00e3f2bc02063891af980dec39f2a814fd80d04d5a895d1c5d87839f3bc4c278ee66fa291bd7a3b14494326fc81d178f554891266f500d17aa
data/CHANGES.md CHANGED
@@ -1,6 +1,34 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2020-05-27] Version 5.36.0
5
+ ---------------------------
6
+ **Api**
7
+ - Added `reason_conference_ended` and `call_sid_ending_conference` to Conference read/fetch/update
8
+ - Fixed some examples to use the correct "TK" SID prefix for Trunk resources.
9
+
10
+ **Authy**
11
+ - Renamed `twilio_authy_sandbox_mode` headers to `twilio_sandbox_mode` **(breaking change)**
12
+ - Renamed `Twilio-Authy-*` headers to `Twilio-Veriry-*` **(breaking change)**
13
+
14
+ **Flex**
15
+ - Adding `flex_service_instance_sid` to Flex Configuration
16
+
17
+ **Preview**
18
+ - Removed insights preview API from API Definitions **(breaking change)**
19
+ - Added `Channels` endpoint to brand a phone number for BrandedCalls
20
+
21
+ **Serverless**
22
+ - Add Build Sid to Log results
23
+
24
+ **Supersim**
25
+ - Add Network Access Profile resource Networks subresource
26
+ - Allow specifying a Data Limit on Fleets
27
+
28
+ **Trunking**
29
+ - Fixed some examples to use the correct "TK" SID prefix for Trunk resources.
30
+
31
+
4
32
  [2020-05-20] Version 5.35.0
5
33
  ---------------------------
6
34
  **Library - Feature**
data/README.md CHANGED
@@ -32,13 +32,13 @@ This library supports the following Ruby implementations:
32
32
  To install using [Bundler][bundler] grab the latest stable version:
33
33
 
34
34
  ```ruby
35
- gem 'twilio-ruby', '~> 5.35.0'
35
+ gem 'twilio-ruby', '~> 5.36.0'
36
36
  ```
37
37
 
38
38
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
39
39
 
40
40
  ```bash
41
- gem install twilio-ruby -v 5.35.0
41
+ gem install twilio-ruby -v 5.36.0
42
42
  ```
43
43
 
44
44
  To build and install the development branch yourself from the latest source:
@@ -614,33 +614,33 @@ module Twilio
614
614
 
615
615
  # Marshaled Properties
616
616
  @properties = {
617
- 'account_sid' => payload['account_sid'],
618
- 'annotation' => payload['annotation'],
619
- 'answered_by' => payload['answered_by'],
620
- 'api_version' => payload['api_version'],
621
- 'caller_name' => payload['caller_name'],
617
+ 'sid' => payload['sid'],
622
618
  'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
623
619
  'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
624
- 'direction' => payload['direction'],
625
- 'duration' => payload['duration'],
626
- 'end_time' => Twilio.deserialize_rfc2822(payload['end_time']),
627
- 'forwarded_from' => payload['forwarded_from'],
620
+ 'parent_call_sid' => payload['parent_call_sid'],
621
+ 'account_sid' => payload['account_sid'],
622
+ 'to' => payload['to'],
623
+ 'to_formatted' => payload['to_formatted'],
628
624
  'from' => payload['from'],
629
625
  'from_formatted' => payload['from_formatted'],
630
- 'group_sid' => payload['group_sid'],
631
- 'parent_call_sid' => payload['parent_call_sid'],
632
626
  'phone_number_sid' => payload['phone_number_sid'],
627
+ 'status' => payload['status'],
628
+ 'start_time' => Twilio.deserialize_rfc2822(payload['start_time']),
629
+ 'end_time' => Twilio.deserialize_rfc2822(payload['end_time']),
630
+ 'duration' => payload['duration'],
633
631
  'price' => payload['price'],
634
632
  'price_unit' => payload['price_unit'],
635
- 'sid' => payload['sid'],
636
- 'start_time' => Twilio.deserialize_rfc2822(payload['start_time']),
637
- 'status' => payload['status'],
638
- 'subresource_uris' => payload['subresource_uris'],
639
- 'to' => payload['to'],
640
- 'to_formatted' => payload['to_formatted'],
633
+ 'direction' => payload['direction'],
634
+ 'answered_by' => payload['answered_by'],
635
+ 'annotation' => payload['annotation'],
636
+ 'api_version' => payload['api_version'],
637
+ 'forwarded_from' => payload['forwarded_from'],
638
+ 'group_sid' => payload['group_sid'],
639
+ 'caller_name' => payload['caller_name'],
640
+ 'queue_time' => payload['queue_time'],
641
641
  'trunk_sid' => payload['trunk_sid'],
642
642
  'uri' => payload['uri'],
643
- 'queue_time' => payload['queue_time'],
643
+ 'subresource_uris' => payload['subresource_uris'],
644
644
  }
645
645
 
646
646
  # Context
@@ -660,33 +660,9 @@ module Twilio
660
660
  end
661
661
 
662
662
  ##
663
- # @return [String] The SID of the Account that created this resource
664
- def account_sid
665
- @properties['account_sid']
666
- end
667
-
668
- ##
669
- # @return [String] The annotation provided for the call
670
- def annotation
671
- @properties['annotation']
672
- end
673
-
674
- ##
675
- # @return [String] Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise.
676
- def answered_by
677
- @properties['answered_by']
678
- end
679
-
680
- ##
681
- # @return [String] The API Version used to create the call
682
- def api_version
683
- @properties['api_version']
684
- end
685
-
686
- ##
687
- # @return [String] The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.
688
- def caller_name
689
- @properties['caller_name']
663
+ # @return [String] The unique string that identifies this resource
664
+ def sid
665
+ @properties['sid']
690
666
  end
691
667
 
692
668
  ##
@@ -702,27 +678,27 @@ module Twilio
702
678
  end
703
679
 
704
680
  ##
705
- # @return [String] A string describing the direction of the call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb.
706
- def direction
707
- @properties['direction']
681
+ # @return [String] The SID that identifies the call that created this leg.
682
+ def parent_call_sid
683
+ @properties['parent_call_sid']
708
684
  end
709
685
 
710
686
  ##
711
- # @return [String] The length of the call in seconds.
712
- def duration
713
- @properties['duration']
687
+ # @return [String] The SID of the Account that created this resource
688
+ def account_sid
689
+ @properties['account_sid']
714
690
  end
715
691
 
716
692
  ##
717
- # @return [Time] The end time of the call. Null if the call did not complete successfully.
718
- def end_time
719
- @properties['end_time']
693
+ # @return [String] The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
694
+ def to
695
+ @properties['to']
720
696
  end
721
697
 
722
698
  ##
723
- # @return [String] The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.
724
- def forwarded_from
725
- @properties['forwarded_from']
699
+ # @return [String] The phone number, SIP address or Client identifier that received this call. Formatted for display.
700
+ def to_formatted
701
+ @properties['to_formatted']
726
702
  end
727
703
 
728
704
  ##
@@ -738,21 +714,33 @@ module Twilio
738
714
  end
739
715
 
740
716
  ##
741
- # @return [String] The Group SID associated with this call. If no Group is associated with the call, the field is empty.
742
- def group_sid
743
- @properties['group_sid']
717
+ # @return [String] If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.
718
+ def phone_number_sid
719
+ @properties['phone_number_sid']
744
720
  end
745
721
 
746
722
  ##
747
- # @return [String] The SID that identifies the call that created this leg.
748
- def parent_call_sid
749
- @properties['parent_call_sid']
723
+ # @return [call.Status] The status of this call.
724
+ def status
725
+ @properties['status']
750
726
  end
751
727
 
752
728
  ##
753
- # @return [String] If the call was inbound, this is the SID of the IncomingPhoneNumber resource that received the call. If the call was outbound, it is the SID of the OutgoingCallerId resource from which the call was placed.
754
- def phone_number_sid
755
- @properties['phone_number_sid']
729
+ # @return [Time] The start time of the call. Null if the call has not yet been dialed.
730
+ def start_time
731
+ @properties['start_time']
732
+ end
733
+
734
+ ##
735
+ # @return [Time] The end time of the call. Null if the call did not complete successfully.
736
+ def end_time
737
+ @properties['end_time']
738
+ end
739
+
740
+ ##
741
+ # @return [String] The length of the call in seconds.
742
+ def duration
743
+ @properties['duration']
756
744
  end
757
745
 
758
746
  ##
@@ -768,39 +756,51 @@ module Twilio
768
756
  end
769
757
 
770
758
  ##
771
- # @return [String] The unique string that identifies this resource
772
- def sid
773
- @properties['sid']
759
+ # @return [String] A string describing the direction of the call. `inbound` for inbound calls, `outbound-api` for calls initiated via the REST API or `outbound-dial` for calls initiated by a `Dial` verb.
760
+ def direction
761
+ @properties['direction']
774
762
  end
775
763
 
776
764
  ##
777
- # @return [Time] The start time of the call. Null if the call has not yet been dialed.
778
- def start_time
779
- @properties['start_time']
765
+ # @return [String] Either `human` or `machine` if this call was initiated with answering machine detection. Empty otherwise.
766
+ def answered_by
767
+ @properties['answered_by']
780
768
  end
781
769
 
782
770
  ##
783
- # @return [call.Status] The status of this call.
784
- def status
785
- @properties['status']
771
+ # @return [String] The annotation provided for the call
772
+ def annotation
773
+ @properties['annotation']
786
774
  end
787
775
 
788
776
  ##
789
- # @return [String] A list of related subresources identified by their relative URIs
790
- def subresource_uris
791
- @properties['subresource_uris']
777
+ # @return [String] The API Version used to create the call
778
+ def api_version
779
+ @properties['api_version']
792
780
  end
793
781
 
794
782
  ##
795
- # @return [String] The phone number, SIP address or Client identifier that received this call. Phone numbers are in E.164 format (e.g., +16175551212). SIP addresses are formatted as `name@company.com`. Client identifiers are formatted `client:name`.
796
- def to
797
- @properties['to']
783
+ # @return [String] The forwarding phone number if this call was an incoming call forwarded from another number (depends on carrier supporting forwarding). Otherwise, empty.
784
+ def forwarded_from
785
+ @properties['forwarded_from']
798
786
  end
799
787
 
800
788
  ##
801
- # @return [String] The phone number, SIP address or Client identifier that received this call. Formatted for display.
802
- def to_formatted
803
- @properties['to_formatted']
789
+ # @return [String] The Group SID associated with this call. If no Group is associated with the call, the field is empty.
790
+ def group_sid
791
+ @properties['group_sid']
792
+ end
793
+
794
+ ##
795
+ # @return [String] The caller's name if this call was an incoming call to a phone number with caller ID Lookup enabled. Otherwise, empty.
796
+ def caller_name
797
+ @properties['caller_name']
798
+ end
799
+
800
+ ##
801
+ # @return [String] The wait time in milliseconds before the call is placed.
802
+ def queue_time
803
+ @properties['queue_time']
804
804
  end
805
805
 
806
806
  ##
@@ -816,9 +816,9 @@ module Twilio
816
816
  end
817
817
 
818
818
  ##
819
- # @return [String] The wait time in milliseconds before the call is placed.
820
- def queue_time
821
- @properties['queue_time']
819
+ # @return [String] A list of related subresources identified by their relative URIs
820
+ def subresource_uris
821
+ @properties['subresource_uris']
822
822
  end
823
823
 
824
824
  ##
@@ -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
@@ -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
- 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
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
- 'messaging_service_sid' => payload['messaging_service_sid'],
427
- 'num_media' => payload['num_media'],
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
- 'price_unit' => payload['price_unit'],
431
- 'sid' => payload['sid'],
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 [Time] The RFC 2822 date and time in GMT that the resource was created
474
- def date_created
475
- @properties['date_created']
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 [Time] The RFC 2822 date and time in GMT that the resource was last updated
480
- def date_updated
481
- @properties['date_updated']
467
+ # @return [message.Direction] The direction of the message
468
+ def direction
469
+ @properties['direction']
482
470
  end
483
471
 
484
472
  ##
485
- # @return [Time] The RFC 2822 date and time in GMT when the message was sent
486
- def date_sent
487
- @properties['date_sent']
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 [message.Direction] The direction of the message
492
- def direction
493
- @properties['direction']
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 [String] The error code associated with the message
498
- def error_code
499
- @properties['error_code']
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 phone number that initiated the message
510
- def from
511
- @properties['from']
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 Messaging Service used with the message.
516
- def messaging_service_sid
517
- @properties['messaging_service_sid']
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 [String] The number of messages used to deliver the message body
528
- def num_segments
529
- @properties['num_segments']
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 currency in which price is measured
540
- def price_unit
541
- @properties['price_unit']
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 [message.Status] The status of the message
552
- def status
553
- @properties['status']
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 [String] A list of related resources identified by their relative URIs
558
- def subresource_uris
559
- @properties['subresource_uris']
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 phone number that received the message
564
- def to
565
- @properties['to']
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 URI of the resource, relative to `https://api.twilio.com`
570
- def uri
571
- @properties['uri']
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
  ##