twilio-ruby 7.11.3 → 7.12.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.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +76 -0
  3. data/Gemfile.lock +2 -2
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +4 -4
  6. data/lib/twilio-ruby/rest/content/v1/content.rb +2 -2
  7. data/lib/twilio-ruby/rest/conversations/v2/action.rb +9 -2
  8. data/lib/twilio-ruby/rest/conversations/v2/communication.rb +4 -1
  9. data/lib/twilio-ruby/rest/conversations/v2/configuration.rb +14 -0
  10. data/lib/twilio-ruby/rest/conversations/v2/conversation.rb +35 -3
  11. data/lib/twilio-ruby/rest/insights/v1/call/call_summary.rb +1 -1
  12. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +1 -1
  13. data/lib/twilio-ruby/rest/insights/v3/custom_field_mapping.rb +512 -17
  14. data/lib/twilio-ruby/rest/insights/v3/{capacity.rb → custom_field_mappings_capacity.rb} +26 -26
  15. data/lib/twilio-ruby/rest/insights/v3.rb +17 -7
  16. data/lib/twilio-ruby/rest/memory/v1/conversation_summary.rb +5 -5
  17. data/lib/twilio-ruby/rest/memory/v1/observation.rb +9 -9
  18. data/lib/twilio-ruby/rest/memory/v1/revision.rb +1 -1
  19. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +30 -2
  20. data/lib/twilio-ruby/rest/numbers/v1/sms_verification.rb +30 -6
  21. data/lib/twilio-ruby/rest/numbers/v1/sms_verification_check.rb +30 -6
  22. data/lib/twilio-ruby/rest/numbers/v1/voice_verification.rb +45 -6
  23. data/lib/twilio-ruby/rest/numbers/v1.rb +0 -6
  24. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +40 -0
  25. data/lib/twilio-ruby/rest/routes/v3/iso_country_code.rb +402 -0
  26. data/lib/twilio-ruby/rest/routes/v3.rb +43 -0
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. metadata +4 -4
  29. data/lib/twilio-ruby/rest/numbers/v1/voice_verification_check.rb +0 -165
@@ -1,165 +0,0 @@
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 VoiceVerificationCheckList < ListResource
21
-
22
- ##
23
- # Initialize the VoiceVerificationCheckList
24
- # @param [Version] version Version that contains the resource
25
- # @return [VoiceVerificationCheckList] VoiceVerificationCheckList
26
- def initialize(version)
27
- super(version)
28
-
29
- # Path Solution
30
- @solution = { }
31
- @uri = "/CallerIds/VoiceVerificationChecks"
32
-
33
- end
34
- ##
35
- # Create the VoiceVerificationCheckInstance
36
- # @return [VoiceVerificationCheckInstance] Created VoiceVerificationCheckInstance
37
- def create
38
-
39
- headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
40
-
41
-
42
-
43
-
44
-
45
- payload = @version.create('POST', @uri, headers: headers)
46
- VoiceVerificationCheckInstance.new(
47
- @version,
48
- payload,
49
- )
50
- end
51
-
52
- ##
53
- # Create the VoiceVerificationCheckInstanceMetadata
54
- # @return [VoiceVerificationCheckInstance] Created VoiceVerificationCheckInstance
55
- def create_with_metadata
56
-
57
- headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
58
-
59
-
60
-
61
-
62
-
63
- response = @version.create_with_metadata('POST', @uri, headers: headers)
64
- voice_verification_check_instance = VoiceVerificationCheckInstance.new(
65
- @version,
66
- response.body,
67
- )
68
- VoiceVerificationCheckInstanceMetadata.new(
69
- @version,
70
- voice_verification_check_instance,
71
- response.headers,
72
- response.status_code
73
- )
74
- end
75
-
76
-
77
-
78
-
79
- # Provide a user friendly representation
80
- def to_s
81
- '#<Twilio.Numbers.V1.VoiceVerificationCheckList>'
82
- end
83
- end
84
-
85
- class VoiceVerificationCheckPage < Page
86
- ##
87
- # Initialize the VoiceVerificationCheckPage
88
- # @param [Version] version Version that contains the resource
89
- # @param [Response] response Response from the API
90
- # @param [Hash] solution Path solution for the resource
91
- # @return [VoiceVerificationCheckPage] VoiceVerificationCheckPage
92
- def initialize(version, response, solution)
93
- super(version, response)
94
-
95
-
96
- # Path Solution
97
- @solution = solution
98
- end
99
-
100
- ##
101
- # Build an instance of VoiceVerificationCheckInstance
102
- # @param [Hash] payload Payload response from the API
103
- # @return [VoiceVerificationCheckInstance] VoiceVerificationCheckInstance
104
- def get_instance(payload)
105
- VoiceVerificationCheckInstance.new(@version, payload)
106
- end
107
-
108
- ##
109
- # Provide a user friendly representation
110
- def to_s
111
- '<Twilio.Numbers.V1.VoiceVerificationCheckPage>'
112
- end
113
- end
114
-
115
- class VoiceVerificationCheckInstance < InstanceResource
116
- ##
117
- # Initialize the VoiceVerificationCheckInstance
118
- # @param [Version] version Version that contains the resource
119
- # @param [Hash] payload payload that contains response from Twilio
120
- # @param [String] account_sid The SID of the
121
- # {Account}[https://www.twilio.com/docs/iam/api/account] that created this VoiceVerificationCheck
122
- # resource.
123
- # @param [String] sid The SID of the Call resource to fetch.
124
- # @return [VoiceVerificationCheckInstance] VoiceVerificationCheckInstance
125
- def initialize(version, payload )
126
- super(version)
127
-
128
-
129
- # Marshaled Properties
130
- @properties = {
131
- 'to' => payload['to'],
132
- 'caller_id_sid' => payload['caller_id_sid'],
133
- }
134
- end
135
-
136
-
137
- ##
138
- # @return [String] The phone number that was verified in E.164 format.
139
- def to
140
- @properties['to']
141
- end
142
-
143
- ##
144
- # @return [String] The Caller ID SID created upon successful verification.
145
- def caller_id_sid
146
- @properties['caller_id_sid']
147
- end
148
-
149
- ##
150
- # Provide a user friendly representation
151
- def to_s
152
- "<Twilio.Numbers.V1.VoiceVerificationCheckInstance>"
153
- end
154
-
155
- ##
156
- # Provide a detailed, user friendly representation
157
- def inspect
158
- "<Twilio.Numbers.V1.VoiceVerificationCheckInstance>"
159
- end
160
- end
161
-
162
- end
163
- end
164
- end
165
- end