lib/docspring/models/combined_submission_data.rb in docspring-1.2.1 vs lib/docspring/models/combined_submission_data.rb in docspring-1.3.0

- old
+ new

@@ -4,43 +4,43 @@ #DocSpring is a service that helps you fill out and sign PDF templates. OpenAPI spec version: v1 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 3.3.0-SNAPSHOT +OpenAPI Generator version: 3.3.0 =end require 'date' module DocSpring class CombinedSubmissionData - attr_accessor :test + attr_accessor :expires_in - attr_accessor :submission_ids - attr_accessor :metadata - attr_accessor :expires_in + attr_accessor :submission_ids + attr_accessor :test + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'test' => :'test', - :'submission_ids' => :'submission_ids', + :'expires_in' => :'expires_in', :'metadata' => :'metadata', - :'expires_in' => :'expires_in' + :'submission_ids' => :'submission_ids', + :'test' => :'test' } end # Attribute type mapping. def self.openapi_types { - :'test' => :'BOOLEAN', - :'submission_ids' => :'Array<String>', + :'expires_in' => :'Integer', :'metadata' => :'Object', - :'expires_in' => :'Integer' + :'submission_ids' => :'Array<String>', + :'test' => :'BOOLEAN' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -48,27 +48,27 @@ return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'test') - self.test = attributes[:'test'] + if attributes.has_key?(:'expires_in') + self.expires_in = attributes[:'expires_in'] end + if attributes.has_key?(:'metadata') + self.metadata = attributes[:'metadata'] + end + if attributes.has_key?(:'submission_ids') if (value = attributes[:'submission_ids']).is_a?(Array) self.submission_ids = value end end - if attributes.has_key?(:'metadata') - self.metadata = attributes[:'metadata'] + if attributes.has_key?(:'test') + self.test = attributes[:'test'] end - - if attributes.has_key?(:'expires_in') - self.expires_in = attributes[:'expires_in'] - end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties @@ -90,14 +90,14 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - test == o.test && - submission_ids == o.submission_ids && + expires_in == o.expires_in && metadata == o.metadata && - expires_in == o.expires_in + submission_ids == o.submission_ids && + test == o.test end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -105,10 +105,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [test, submission_ids, metadata, expires_in].hash + [expires_in, metadata, submission_ids, test].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself