lib/dropbox-sign/models/file_response.rb in dropbox-sign-1.5.0 vs lib/dropbox-sign/models/file_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' @@ -37,34 +37,34 @@ # 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 { :'file_url' => :'String', :'expires_at' => :'Integer' } 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([ ]) 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 @@ -104,16 +104,26 @@ # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if @file_url.nil? + invalid_properties.push('invalid value for "file_url", file_url cannot be nil.') + end + + if @expires_at.nil? + invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + return false if @file_url.nil? + return false if @expires_at.nil? true end # Checks equality by comparing each attribute. # @param [Object] Object to be compared @@ -200,10 +210,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