lib/docspring/models/combined_submission.rb in docspring-1.4.0 vs lib/docspring/models/combined_submission.rb in docspring-1.4.1

- old
+ new

@@ -14,10 +14,12 @@ module DocSpring class CombinedSubmission attr_accessor :metadata + attr_accessor :password + attr_accessor :expired attr_accessor :expires_at attr_accessor :source_pdfs @@ -58,10 +60,11 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'metadata' => :'metadata', + :'password' => :'password', :'expired' => :'expired', :'expires_at' => :'expires_at', :'source_pdfs' => :'source_pdfs', :'pdf_hash' => :'pdf_hash', :'download_url' => :'download_url', @@ -74,10 +77,11 @@ # Attribute type mapping. def self.openapi_types { :'metadata' => :'Object', + :'password' => :'String', :'expired' => :'BOOLEAN', :'expires_at' => :'String', :'source_pdfs' => :'Array<Object>', :'pdf_hash' => :'String', :'download_url' => :'String', @@ -98,10 +102,14 @@ if attributes.has_key?(:'metadata') self.metadata = attributes[:'metadata'] end + if attributes.has_key?(:'password') + self.password = attributes[:'password'] + end + if attributes.has_key?(:'expired') self.expired = attributes[:'expired'] end if attributes.has_key?(:'expires_at') @@ -172,10 +180,11 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && metadata == o.metadata && + password == o.password && expired == o.expired && expires_at == o.expires_at && source_pdfs == o.source_pdfs && pdf_hash == o.pdf_hash && download_url == o.download_url && @@ -192,10 +201,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [metadata, expired, expires_at, source_pdfs, pdf_hash, download_url, submission_ids, id, state, actions].hash + [metadata, password, expired, expires_at, source_pdfs, pdf_hash, download_url, submission_ids, id, state, actions].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself