lib/dropbox-sign/models/template_response.rb in dropbox-sign-1.5.0 vs lib/dropbox-sign/models/template_response.rb in dropbox-sign-1.6.0
- old
+ new
@@ -4,11 +4,11 @@
#Dropbox Sign v3 API
The version of the OpenAPI document: 3.0.0
Contact: apisupport@hellosign.com
Generated by: https://openapi-generator.tech
-Generator version: 7.7.0
+Generator version: 7.8.0
=end
require 'date'
require 'time'
@@ -103,15 +103,10 @@
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
attribute_map.values
end
- # Returns attribute map of this model + parent
- def self.merged_attributes
- self.attribute_map
- end
-
# Attribute type mapping.
def self.openapi_types
{
:'template_id' => :'String',
:'title' => :'String',
@@ -129,15 +124,10 @@
:'named_form_fields' => :'Array<TemplateResponseDocumentFormFieldBase>',
:'accounts' => :'Array<TemplateResponseAccount>'
}
end
- # Attribute type mapping of this model + parent
- def self.merged_types
- self.openapi_types
- end
-
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
:'is_embedded',
:'is_creator',
@@ -147,10 +137,20 @@
:'named_form_fields',
:'accounts'
])
end
+ # Returns attribute map of this model + parent
+ def self.merged_attributes
+ self.attribute_map
+ end
+
+ # Attribute type mapping of this model + parent
+ def self.merged_types
+ self.openapi_types
+ end
+
# Returns list of attributes with nullable: true of this model + parent
def self.merged_nullable
self.openapi_nullable
end
@@ -363,10 +363,9 @@
value.each do |k, v|
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
end
end
else # model
- # models (e.g. Pet)
klass = Dropbox::Sign.const_get(type)
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
end
end