lib/square_connect/models/tender.rb in square_connect-2.5.0.180 vs lib/square_connect/models/tender.rb in square_connect-2.5.1.183

- old
+ new

@@ -28,10 +28,13 @@ attr_accessor :note # The amount of the tender. attr_accessor :amount_money + # The tip's amount of the tender. + attr_accessor :tip_money + # The amount of any Square processing fees applied to the tender. This field is not immediately populated when a new transaction is created. It is usually available after about ten seconds. attr_accessor :processing_fee_money # If the tender is associated with a customer or represents a customer's card on file, this is the ID of the associated customer. attr_accessor :customer_id @@ -77,10 +80,11 @@ :'location_id' => :'location_id', :'transaction_id' => :'transaction_id', :'created_at' => :'created_at', :'note' => :'note', :'amount_money' => :'amount_money', + :'tip_money' => :'tip_money', :'processing_fee_money' => :'processing_fee_money', :'customer_id' => :'customer_id', :'type' => :'type', :'card_details' => :'card_details', :'cash_details' => :'cash_details', @@ -95,10 +99,11 @@ :'location_id' => :'String', :'transaction_id' => :'String', :'created_at' => :'String', :'note' => :'String', :'amount_money' => :'Money', + :'tip_money' => :'Money', :'processing_fee_money' => :'Money', :'customer_id' => :'String', :'type' => :'String', :'card_details' => :'TenderCardDetails', :'cash_details' => :'TenderCashDetails', @@ -136,10 +141,14 @@ if attributes.has_key?(:'amount_money') self.amount_money = attributes[:'amount_money'] end + if attributes.has_key?(:'tip_money') + self.tip_money = attributes[:'tip_money'] + end + if attributes.has_key?(:'processing_fee_money') self.processing_fee_money = attributes[:'processing_fee_money'] end if attributes.has_key?(:'customer_id') @@ -205,10 +214,11 @@ location_id == o.location_id && transaction_id == o.transaction_id && created_at == o.created_at && note == o.note && amount_money == o.amount_money && + tip_money == o.tip_money && processing_fee_money == o.processing_fee_money && customer_id == o.customer_id && type == o.type && card_details == o.card_details && cash_details == o.cash_details && @@ -222,10 +232,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, location_id, transaction_id, created_at, note, amount_money, processing_fee_money, customer_id, type, card_details, cash_details, additional_recipients].hash + [id, location_id, transaction_id, created_at, note, amount_money, tip_money, processing_fee_money, customer_id, type, card_details, cash_details, additional_recipients].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself