lib/atrium-ruby/models/statement.rb in atrium-ruby-2.4.0 vs lib/atrium-ruby/models/statement.rb in atrium-ruby-2.5.0

- old
+ new

@@ -11,10 +11,13 @@ module Atrium class Statement # The unique identifier for the `account` associated with the `statement`. Defined by MX. attr_accessor :account_guid + # SHA256 digest of the pdf payload + attr_accessor :content_hash + # The date and time the `statement` was created. attr_accessor :created_at # The unique identifier for the `statement`. Defined by MX. attr_accessor :guid @@ -33,10 +36,11 @@ # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'account_guid' => :'account_guid', + :'content_hash' => :'content_hash', :'created_at' => :'created_at', :'guid' => :'guid', :'member_guid' => :'member_guid', :'uri' => :'uri', :'user_guid' => :'user_guid', @@ -46,10 +50,11 @@ # Attribute type mapping. def self.mx_types { :'account_guid' => :'String', + :'content_hash' => :'String', :'created_at' => :'String', :'guid' => :'String', :'member_guid' => :'String', :'uri' => :'String', :'user_guid' => :'String', @@ -67,10 +72,14 @@ if attributes.has_key?(:'account_guid') self.account_guid = attributes[:'account_guid'] end + if attributes.has_key?(:'content_hash') + self.content_hash = attributes[:'content_hash'] + end + if attributes.has_key?(:'created_at') self.created_at = attributes[:'created_at'] end if attributes.has_key?(:'guid') @@ -111,10 +120,11 @@ # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && account_guid == o.account_guid && + content_hash == o.content_hash && created_at == o.created_at && guid == o.guid && member_guid == o.member_guid && uri == o.uri && user_guid == o.user_guid && @@ -128,10 +138,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [account_guid, created_at, guid, member_guid, uri, user_guid, updated_at].hash + [account_guid, content_hash, created_at, guid, member_guid, uri, user_guid, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself