lib/bandwidth-sdk/models/initiate_callback.rb in bandwidth-sdk-12.1.0 vs lib/bandwidth-sdk/models/initiate_callback.rb in bandwidth-sdk-13.0.0
- old
+ new
@@ -4,11 +4,11 @@
#Bandwidth's Communication APIs
The version of the OpenAPI document: 1.0.0
Contact: letstalk@bandwidth.com
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 7.0.0
+Generator version: 7.7.0
=end
require 'date'
require 'time'
@@ -288,10 +288,10 @@
end
end
else # model
# models (e.g. Pet) or oneOf
klass = Bandwidth.const_get(type)
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
end
# Returns the string representation of the object
# @return [String] String presentation of the object