bandwidth-sdk 12.0.0 → 13.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -2
- data/Gemfile.lock +13 -22
- data/README.md +3 -1
- data/Rakefile +4 -12
- data/bandwidth-sdk.gemspec +3 -1
- data/bandwidth.yml +48 -33
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +1333 -1598
- data/coverage/index.html +6890 -9805
- data/custom_templates/Gemfile.mustache +1 -2
- data/custom_templates/gemspec.mustache +2 -0
- data/docs/AnswerCallback.md +2 -2
- data/docs/BridgeCompleteCallback.md +2 -2
- data/docs/BridgeTargetCompleteCallback.md +2 -2
- data/docs/CallRecordingMetadata.md +4 -4
- data/docs/CallState.md +1 -1
- data/docs/CallTranscription.md +6 -6
- data/docs/CallTranscriptionDetectedLanguageEnum.md +15 -0
- data/docs/CallTranscriptionResponse.md +2 -2
- data/docs/CallTranscriptionTrackEnum.md +15 -0
- data/docs/CallsApi.md +1 -1
- data/docs/ConferenceMemberExitCallback.md +1 -1
- data/docs/ConferenceMemberJoinCallback.md +1 -1
- data/docs/ConferenceRecordingAvailableCallback.md +1 -1
- data/docs/ConferenceRecordingMetadata.md +1 -1
- data/docs/CreateCall.md +5 -3
- data/docs/DisconnectCallback.md +2 -2
- data/docs/DtmfCallback.md +4 -4
- data/docs/GatherCallback.md +4 -4
- data/docs/InitiateCallback.md +2 -2
- data/docs/MachineDetectionCompleteCallback.md +2 -2
- data/docs/MessagingCodeResponse.md +1 -1
- data/docs/RecordingAvailableCallback.md +4 -4
- data/docs/RecordingCompleteCallback.md +4 -4
- data/docs/RecordingTranscriptionMetadata.md +1 -1
- data/docs/RedirectCallback.md +4 -4
- data/docs/TranscriptionAvailableCallback.md +4 -4
- data/docs/TranscriptionsApi.md +1 -1
- data/docs/TransferAnswerCallback.md +4 -4
- data/docs/TransferCompleteCallback.md +4 -4
- data/docs/TransferDisconnectCallback.md +4 -4
- data/lib/bandwidth-sdk/api/calls_api.rb +1 -1
- data/lib/bandwidth-sdk/api/conferences_api.rb +1 -1
- data/lib/bandwidth-sdk/api/media_api.rb +1 -1
- data/lib/bandwidth-sdk/api/messages_api.rb +1 -1
- data/lib/bandwidth-sdk/api/mfa_api.rb +1 -1
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +1 -1
- data/lib/bandwidth-sdk/api/recordings_api.rb +1 -1
- data/lib/bandwidth-sdk/api/statistics_api.rb +1 -1
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +3 -3
- data/lib/bandwidth-sdk/api_client.rb +44 -41
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/configuration.rb +11 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +2 -2
- data/lib/bandwidth-sdk/models/answer_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/bxml/root.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/gather.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/start_stream.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/start_transcription.rb +0 -6
- data/lib/bandwidth-sdk/models/bxml/verbs/transfer.rb +0 -6
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +4 -4
- data/lib/bandwidth-sdk/models/call_state.rb +2 -2
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +11 -37
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +41 -0
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +2 -2
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +2 -2
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +40 -0
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +2 -2
- data/lib/bandwidth-sdk/models/conference.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/create_call.rb +16 -5
- data/lib/bandwidth-sdk/models/create_call_response.rb +2 -2
- data/lib/bandwidth-sdk/models/create_lookup_response.rb +2 -2
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/deferred_result.rb +2 -2
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/diversion.rb +2 -2
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/field_error.rb +2 -2
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/inbound_message_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/initiate_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_request.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_result.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_status.rb +2 -2
- data/lib/bandwidth-sdk/models/lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +3 -3
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +3 -3
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +2 -2
- data/lib/bandwidth-sdk/models/media.rb +2 -2
- data/lib/bandwidth-sdk/models/message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_delivered_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_failed_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_failed_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_request.rb +2 -2
- data/lib/bandwidth-sdk/models/message_sending_callback.rb +2 -2
- data/lib/bandwidth-sdk/models/message_sending_callback_message.rb +2 -2
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +2 -2
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +2 -2
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/page_info.rb +2 -2
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +3 -3
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +2 -2
- data/lib/bandwidth-sdk/models/redirect_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/stir_shaken.rb +2 -2
- data/lib/bandwidth-sdk/models/tag.rb +2 -2
- data/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +2 -2
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription.rb +2 -2
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +4 -4
- data/lib/bandwidth-sdk/models/update_call.rb +2 -2
- data/lib/bandwidth-sdk/models/update_call_recording.rb +2 -2
- data/lib/bandwidth-sdk/models/update_conference.rb +2 -2
- data/lib/bandwidth-sdk/models/update_conference_member.rb +2 -2
- data/lib/bandwidth-sdk/models/verify_code_request.rb +2 -2
- data/lib/bandwidth-sdk/models/verify_code_response.rb +2 -2
- data/lib/bandwidth-sdk/models/voice_api_error.rb +2 -2
- data/lib/bandwidth-sdk/models/voice_code_response.rb +2 -2
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +3 -1
- data/openapitools.json +1 -1
- data/spec/call_utils.rb +1 -1
- data/spec/{integration/calls_api_integration_spec.rb → smoke/calls_api_spec.rb} +3 -6
- data/spec/{integration/conferences_api_integration_spec.rb → smoke/conferences_api_spec.rb} +0 -5
- data/spec/{integration/media_api_integration_spec.rb → smoke/media_api_spec.rb} +0 -5
- data/spec/{integration/messages_api_integration_spec.rb → smoke/messages_api_spec.rb} +0 -5
- data/spec/{integration/mfa_api_integration_spec.rb → smoke/mfa_api_spec.rb} +0 -5
- data/spec/{integration/phone_number_lookup_api_integration_spec.rb → smoke/phone_number_lookup_api_spec.rb} +0 -5
- data/spec/{integration/recordings_api_integration_spec.rb → smoke/recordings_api_spec.rb} +0 -5
- data/spec/{integration/statistics_api_integration_spec.rb → smoke/statistics_api_spec.rb} +0 -5
- data/spec/{integration/transcriptions_api_integration_spec.rb → smoke/transcriptions_api_spec.rb} +0 -5
- data/spec/spec_helper.rb +13 -6
- data/spec/unit/api/calls_api_spec.rb +233 -0
- data/spec/unit/api/conferences_api_spec.rb +330 -0
- data/spec/{api → unit/api}/media_api_spec.rb +17 -32
- data/spec/unit/api/messages_api_spec.rb +103 -0
- data/spec/{api → unit/api}/mfa_api_spec.rb +8 -24
- data/spec/unit/api/phone_number_lookup_api_spec.rb +86 -0
- data/spec/{api → unit/api}/recordings_api_spec.rb +83 -110
- data/spec/unit/api/statistics_api_spec.rb +37 -0
- data/spec/{api → unit/api}/transcriptions_api_spec.rb +18 -37
- data/spec/{api_client_spec.rb → unit/client/api_client_spec.rb} +4 -4
- metadata +136 -118
- data/spec/api/calls_api_spec.rb +0 -261
- data/spec/api/conferences_api_spec.rb +0 -393
- data/spec/api/messages_api_spec.rb +0 -193
- data/spec/api/phone_number_lookup_api_spec.rb +0 -100
- data/spec/api/statistics_api_spec.rb +0 -45
- /data/spec/{api_error_spec.rb → unit/client/api_error_spec.rb} +0 -0
- /data/spec/{configuration_spec.rb → unit/client/configuration_spec.rb} +0 -0
- /data/spec/{models → unit/models}/bxml/bxml_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/nestable_verb_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/response_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verb_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/bridge_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/conference_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/custom_param_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/forward_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/gather_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/hangup_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/pause_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/pause_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/phone_number_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/play_audio_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/record_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/redirect_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/resume_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/ring_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/send_dtmf_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/sip_uri_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/speak_sentence_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_gather_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_stream_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/start_transcription_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_gather_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_recording_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_stream_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stop_transcription_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/stream_param_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/tag_spec.rb +0 -0
- /data/spec/{models → unit/models}/bxml/verbs/transfer_spec.rb +0 -0
- /data/spec/{models → unit/models}/call_state_enum_spec.rb +0 -0
- /data/spec/{models → unit/models}/call_state_spec.rb +0 -0
- /data/spec/{models → unit/models}/deferred_result_spec.rb +0 -0
- /data/spec/{models → unit/models}/message_spec.rb +0 -0
- /data/spec/{models → unit/models}/verify_code_request_spec.rb +0 -0
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,14 +15,12 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Bandwidth
|
17
17
|
class CallTranscription
|
18
|
-
# The detected language for this transcription.
|
19
18
|
attr_accessor :detected_language
|
20
19
|
|
21
|
-
# Which `track` this transcription is derived from.
|
22
20
|
attr_accessor :track
|
23
21
|
|
24
22
|
# The transcription itself.
|
25
|
-
attr_accessor :
|
23
|
+
attr_accessor :transcript
|
26
24
|
|
27
25
|
# How confident the transcription engine was in transcribing the associated audio (from `0` to `1`).
|
28
26
|
attr_accessor :confidence
|
@@ -54,7 +52,7 @@ module Bandwidth
|
|
54
52
|
{
|
55
53
|
:'detected_language' => :'detectedLanguage',
|
56
54
|
:'track' => :'track',
|
57
|
-
:'
|
55
|
+
:'transcript' => :'transcript',
|
58
56
|
:'confidence' => :'confidence'
|
59
57
|
}
|
60
58
|
end
|
@@ -67,9 +65,9 @@ module Bandwidth
|
|
67
65
|
# Attribute type mapping.
|
68
66
|
def self.openapi_types
|
69
67
|
{
|
70
|
-
:'detected_language' => :'
|
71
|
-
:'track' => :'
|
72
|
-
:'
|
68
|
+
:'detected_language' => :'CallTranscriptionDetectedLanguageEnum',
|
69
|
+
:'track' => :'CallTranscriptionTrackEnum',
|
70
|
+
:'transcript' => :'String',
|
73
71
|
:'confidence' => :'Float'
|
74
72
|
}
|
75
73
|
end
|
@@ -103,8 +101,8 @@ module Bandwidth
|
|
103
101
|
self.track = attributes[:'track']
|
104
102
|
end
|
105
103
|
|
106
|
-
if attributes.key?(:'
|
107
|
-
self.
|
104
|
+
if attributes.key?(:'transcript')
|
105
|
+
self.transcript = attributes[:'transcript']
|
108
106
|
end
|
109
107
|
|
110
108
|
if attributes.key?(:'confidence')
|
@@ -132,35 +130,11 @@ module Bandwidth
|
|
132
130
|
# @return true if the model is valid
|
133
131
|
def valid?
|
134
132
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
135
|
-
detected_language_validator = EnumAttributeValidator.new('String', ['en-US', 'es-US', 'fr-FR'])
|
136
|
-
return false unless detected_language_validator.valid?(@detected_language)
|
137
|
-
track_validator = EnumAttributeValidator.new('String', ['inbound', 'outbound'])
|
138
|
-
return false unless track_validator.valid?(@track)
|
139
133
|
return false if !@confidence.nil? && @confidence > 1
|
140
134
|
return false if !@confidence.nil? && @confidence < 0
|
141
135
|
true
|
142
136
|
end
|
143
137
|
|
144
|
-
# Custom attribute writer method checking allowed values (enum).
|
145
|
-
# @param [Object] detected_language Object to be assigned
|
146
|
-
def detected_language=(detected_language)
|
147
|
-
validator = EnumAttributeValidator.new('String', ['en-US', 'es-US', 'fr-FR'])
|
148
|
-
unless validator.valid?(detected_language)
|
149
|
-
fail ArgumentError, "invalid value for \"detected_language\", must be one of #{validator.allowable_values}."
|
150
|
-
end
|
151
|
-
@detected_language = detected_language
|
152
|
-
end
|
153
|
-
|
154
|
-
# Custom attribute writer method checking allowed values (enum).
|
155
|
-
# @param [Object] track Object to be assigned
|
156
|
-
def track=(track)
|
157
|
-
validator = EnumAttributeValidator.new('String', ['inbound', 'outbound'])
|
158
|
-
unless validator.valid?(track)
|
159
|
-
fail ArgumentError, "invalid value for \"track\", must be one of #{validator.allowable_values}."
|
160
|
-
end
|
161
|
-
@track = track
|
162
|
-
end
|
163
|
-
|
164
138
|
# Custom attribute writer method with validation
|
165
139
|
# @param [Object] confidence Value to be assigned
|
166
140
|
def confidence=(confidence)
|
@@ -186,7 +160,7 @@ module Bandwidth
|
|
186
160
|
self.class == o.class &&
|
187
161
|
detected_language == o.detected_language &&
|
188
162
|
track == o.track &&
|
189
|
-
|
163
|
+
transcript == o.transcript &&
|
190
164
|
confidence == o.confidence
|
191
165
|
end
|
192
166
|
|
@@ -199,7 +173,7 @@ module Bandwidth
|
|
199
173
|
# Calculates hash code according to all attributes.
|
200
174
|
# @return [Integer] Hash code
|
201
175
|
def hash
|
202
|
-
[detected_language, track,
|
176
|
+
[detected_language, track, transcript, confidence].hash
|
203
177
|
end
|
204
178
|
|
205
179
|
# Builds the object from hash
|
@@ -264,7 +238,7 @@ module Bandwidth
|
|
264
238
|
else # model
|
265
239
|
# models (e.g. Pet) or oneOf
|
266
240
|
klass = Bandwidth.const_get(type)
|
267
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
241
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
268
242
|
end
|
269
243
|
end
|
270
244
|
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Bandwidth
|
3
|
+
|
4
|
+
#Bandwidth's Communication APIs
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: letstalk@bandwidth.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Bandwidth
|
17
|
+
class CallTranscriptionDetectedLanguageEnum
|
18
|
+
EN_US = 'en-US'.freeze
|
19
|
+
ES_US = 'es-US'.freeze
|
20
|
+
FR_FR = 'fr-FR'.freeze
|
21
|
+
|
22
|
+
def self.all_vars
|
23
|
+
@all_vars ||= [EN_US, ES_US, FR_FR].freeze
|
24
|
+
end
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def self.build_from_hash(value)
|
30
|
+
new.build_from_hash(value)
|
31
|
+
end
|
32
|
+
|
33
|
+
# Builds the enum from string
|
34
|
+
# @param [String] The enum value in the form of the string
|
35
|
+
# @return [String] The enum value
|
36
|
+
def build_from_hash(value)
|
37
|
+
return value if CallTranscriptionDetectedLanguageEnum.all_vars.include?(value)
|
38
|
+
raise "Invalid ENUM value #{value} for class #CallTranscriptionDetectedLanguageEnum"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -170,7 +170,7 @@ module Bandwidth
|
|
170
170
|
else # model
|
171
171
|
# models (e.g. Pet) or oneOf
|
172
172
|
klass = Bandwidth.const_get(type)
|
173
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -191,7 +191,7 @@ module Bandwidth
|
|
191
191
|
else # model
|
192
192
|
# models (e.g. Pet) or oneOf
|
193
193
|
klass = Bandwidth.const_get(type)
|
194
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
194
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
195
|
end
|
196
196
|
end
|
197
197
|
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
#Bandwidth
|
3
|
+
|
4
|
+
#Bandwidth's Communication APIs
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: letstalk@bandwidth.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.7.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Bandwidth
|
17
|
+
class CallTranscriptionTrackEnum
|
18
|
+
INBOUND = 'inbound'.freeze
|
19
|
+
OUTBOUND = 'outbound'.freeze
|
20
|
+
|
21
|
+
def self.all_vars
|
22
|
+
@all_vars ||= [INBOUND, OUTBOUND].freeze
|
23
|
+
end
|
24
|
+
|
25
|
+
# Builds the enum from string
|
26
|
+
# @param [String] The enum value in the form of the string
|
27
|
+
# @return [String] The enum value
|
28
|
+
def self.build_from_hash(value)
|
29
|
+
new.build_from_hash(value)
|
30
|
+
end
|
31
|
+
|
32
|
+
# Builds the enum from string
|
33
|
+
# @param [String] The enum value in the form of the string
|
34
|
+
# @return [String] The enum value
|
35
|
+
def build_from_hash(value)
|
36
|
+
return value if CallTranscriptionTrackEnum.all_vars.include?(value)
|
37
|
+
raise "Invalid ENUM value #{value} for class #CallTranscriptionTrackEnum"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -381,7 +381,7 @@ module Bandwidth
|
|
381
381
|
else # model
|
382
382
|
# models (e.g. Pet) or oneOf
|
383
383
|
klass = Bandwidth.const_get(type)
|
384
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
384
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
385
385
|
end
|
386
386
|
end
|
387
387
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -260,7 +260,7 @@ module Bandwidth
|
|
260
260
|
else # model
|
261
261
|
# models (e.g. Pet) or oneOf
|
262
262
|
klass = Bandwidth.const_get(type)
|
263
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
263
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
264
264
|
end
|
265
265
|
end
|
266
266
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -202,7 +202,7 @@ module Bandwidth
|
|
202
202
|
else # model
|
203
203
|
# models (e.g. Pet) or oneOf
|
204
204
|
klass = Bandwidth.const_get(type)
|
205
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -202,7 +202,7 @@ module Bandwidth
|
|
202
202
|
else # model
|
203
203
|
# models (e.g. Pet) or oneOf
|
204
204
|
klass = Bandwidth.const_get(type)
|
205
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -213,7 +213,7 @@ module Bandwidth
|
|
213
213
|
else # model
|
214
214
|
# models (e.g. Pet) or oneOf
|
215
215
|
klass = Bandwidth.const_get(type)
|
216
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
217
217
|
end
|
218
218
|
end
|
219
219
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,7 +28,7 @@ module Bandwidth
|
|
28
28
|
# The user-specified name of the conference that was recorded
|
29
29
|
attr_accessor :name
|
30
30
|
|
31
|
-
# The provided identifier of the caller
|
31
|
+
# The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555).
|
32
32
|
attr_accessor :from
|
33
33
|
|
34
34
|
# The phone number that received the call, in E.164 format (e.g. +15555555555).
|
@@ -232,7 +232,7 @@ module Bandwidth
|
|
232
232
|
else # model
|
233
233
|
# models (e.g. Pet) or oneOf
|
234
234
|
klass = Bandwidth.const_get(type)
|
235
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
235
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
236
236
|
end
|
237
237
|
end
|
238
238
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,7 +28,7 @@ module Bandwidth
|
|
28
28
|
# The user-specified name of the conference that was recorded
|
29
29
|
attr_accessor :name
|
30
30
|
|
31
|
-
# The provided identifier of the caller
|
31
|
+
# The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555).
|
32
32
|
attr_accessor :from
|
33
33
|
|
34
34
|
# The phone number that received the call, in E.164 format (e.g. +15555555555).
|
@@ -232,7 +232,7 @@ module Bandwidth
|
|
232
232
|
else # model
|
233
233
|
# models (e.g. Pet) or oneOf
|
234
234
|
klass = Bandwidth.const_get(type)
|
235
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
235
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
236
236
|
end
|
237
237
|
end
|
238
238
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -314,7 +314,7 @@ module Bandwidth
|
|
314
314
|
else # model
|
315
315
|
# models (e.g. Pet) or oneOf
|
316
316
|
klass = Bandwidth.const_get(type)
|
317
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
317
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
318
318
|
end
|
319
319
|
end
|
320
320
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -282,7 +282,7 @@ module Bandwidth
|
|
282
282
|
else # model
|
283
283
|
# models (e.g. Pet) or oneOf
|
284
284
|
klass = Bandwidth.const_get(type)
|
285
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
285
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
286
286
|
end
|
287
287
|
end
|
288
288
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -202,7 +202,7 @@ module Bandwidth
|
|
202
202
|
else # model
|
203
203
|
# models (e.g. Pet) or oneOf
|
204
204
|
klass = Bandwidth.const_get(type)
|
205
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
206
206
|
end
|
207
207
|
end
|
208
208
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,10 +18,13 @@ module Bandwidth
|
|
18
18
|
# The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)).
|
19
19
|
attr_accessor :to
|
20
20
|
|
21
|
-
# A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212
|
21
|
+
# A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true.
|
22
22
|
attr_accessor :from
|
23
23
|
|
24
|
-
#
|
24
|
+
# Hide the calling number. The `displayName` field can be used to customize the displayed name.
|
25
|
+
attr_accessor :privacy
|
26
|
+
|
27
|
+
# The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`.
|
25
28
|
attr_accessor :display_name
|
26
29
|
|
27
30
|
# A comma-separated list of 'User-To-User' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an 'encoding' parameter as described in <a href='https://tools.ietf.org/html/rfc7433'>RFC 7433</a>. Only 'jwt' and 'base64' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators.
|
@@ -98,6 +101,7 @@ module Bandwidth
|
|
98
101
|
{
|
99
102
|
:'to' => :'to',
|
100
103
|
:'from' => :'from',
|
104
|
+
:'privacy' => :'privacy',
|
101
105
|
:'display_name' => :'displayName',
|
102
106
|
:'uui' => :'uui',
|
103
107
|
:'application_id' => :'applicationId',
|
@@ -129,6 +133,7 @@ module Bandwidth
|
|
129
133
|
{
|
130
134
|
:'to' => :'String',
|
131
135
|
:'from' => :'String',
|
136
|
+
:'privacy' => :'Boolean',
|
132
137
|
:'display_name' => :'String',
|
133
138
|
:'uui' => :'String',
|
134
139
|
:'application_id' => :'String',
|
@@ -153,6 +158,7 @@ module Bandwidth
|
|
153
158
|
# List of attributes with nullable: true
|
154
159
|
def self.openapi_nullable
|
155
160
|
Set.new([
|
161
|
+
:'privacy',
|
156
162
|
:'display_name',
|
157
163
|
:'uui',
|
158
164
|
:'answer_method',
|
@@ -198,6 +204,10 @@ module Bandwidth
|
|
198
204
|
self.from = nil
|
199
205
|
end
|
200
206
|
|
207
|
+
if attributes.key?(:'privacy')
|
208
|
+
self.privacy = attributes[:'privacy']
|
209
|
+
end
|
210
|
+
|
201
211
|
if attributes.key?(:'display_name')
|
202
212
|
self.display_name = attributes[:'display_name']
|
203
213
|
end
|
@@ -540,6 +550,7 @@ module Bandwidth
|
|
540
550
|
self.class == o.class &&
|
541
551
|
to == o.to &&
|
542
552
|
from == o.from &&
|
553
|
+
privacy == o.privacy &&
|
543
554
|
display_name == o.display_name &&
|
544
555
|
uui == o.uui &&
|
545
556
|
application_id == o.application_id &&
|
@@ -569,7 +580,7 @@ module Bandwidth
|
|
569
580
|
# Calculates hash code according to all attributes.
|
570
581
|
# @return [Integer] Hash code
|
571
582
|
def hash
|
572
|
-
[to, from, display_name, uui, application_id, answer_url, answer_method, username, password, answer_fallback_url, answer_fallback_method, fallback_username, fallback_password, disconnect_url, disconnect_method, call_timeout, callback_timeout, machine_detection, priority, tag].hash
|
583
|
+
[to, from, privacy, display_name, uui, application_id, answer_url, answer_method, username, password, answer_fallback_url, answer_fallback_method, fallback_username, fallback_password, disconnect_url, disconnect_method, call_timeout, callback_timeout, machine_detection, priority, tag].hash
|
573
584
|
end
|
574
585
|
|
575
586
|
# Builds the object from hash
|
@@ -634,7 +645,7 @@ module Bandwidth
|
|
634
645
|
else # model
|
635
646
|
# models (e.g. Pet) or oneOf
|
636
647
|
klass = Bandwidth.const_get(type)
|
637
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
648
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
638
649
|
end
|
639
650
|
end
|
640
651
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -506,7 +506,7 @@ module Bandwidth
|
|
506
506
|
else # model
|
507
507
|
# models (e.g. Pet) or oneOf
|
508
508
|
klass = Bandwidth.const_get(type)
|
509
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
509
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
510
510
|
end
|
511
511
|
end
|
512
512
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -192,7 +192,7 @@ module Bandwidth
|
|
192
192
|
else # model
|
193
193
|
# models (e.g. Pet) or oneOf
|
194
194
|
klass = Bandwidth.const_get(type)
|
195
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
196
196
|
end
|
197
197
|
end
|
198
198
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -193,7 +193,7 @@ module Bandwidth
|
|
193
193
|
else # model
|
194
194
|
# models (e.g. Pet) or oneOf
|
195
195
|
klass = Bandwidth.const_get(type)
|
196
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
196
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
197
197
|
end
|
198
198
|
end
|
199
199
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -168,7 +168,7 @@ module Bandwidth
|
|
168
168
|
else # model
|
169
169
|
# models (e.g. Pet) or oneOf
|
170
170
|
klass = Bandwidth.const_get(type)
|
171
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -28,7 +28,7 @@ module Bandwidth
|
|
28
28
|
# The id of the application associated with the call.
|
29
29
|
attr_accessor :application_id
|
30
30
|
|
31
|
-
# The provided identifier of the caller
|
31
|
+
# The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555).
|
32
32
|
attr_accessor :from
|
33
33
|
|
34
34
|
# The phone number that received the call, in E.164 format (e.g. +15555555555).
|
@@ -347,7 +347,7 @@ module Bandwidth
|
|
347
347
|
else # model
|
348
348
|
# models (e.g. Pet) or oneOf
|
349
349
|
klass = Bandwidth.const_get(type)
|
350
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
350
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
351
351
|
end
|
352
352
|
end
|
353
353
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: letstalk@bandwidth.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.7.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -220,7 +220,7 @@ module Bandwidth
|
|
220
220
|
else # model
|
221
221
|
# models (e.g. Pet) or oneOf
|
222
222
|
klass = Bandwidth.const_get(type)
|
223
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
223
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|