lib/braintree/transaction.rb in braintree-2.69.1 vs lib/braintree/transaction.rb in braintree-2.70.0
- old
+ new
@@ -121,10 +121,11 @@
attr_reader :payment_instrument_type
attr_reader :risk_data
attr_reader :facilitator_details
attr_reader :three_d_secure_info
attr_reader :us_bank_account_details
+ attr_reader :ideal_payment_details
def self.create(attributes)
Configuration.gateway.transaction.create(attributes)
end
@@ -267,9 +268,10 @@
@payment_instrument_type = attributes[:payment_instrument_type]
@risk_data = RiskData.new(attributes[:risk_data]) if attributes[:risk_data]
@facilitator_details = FacilitatorDetails.new(attributes[:facilitator_details]) if attributes[:facilitator_details]
@three_d_secure_info = ThreeDSecureInfo.new(attributes[:three_d_secure_info]) if attributes[:three_d_secure_info]
@us_bank_account_details = UsBankAccountDetails.new(attributes[:us_bank_account]) if attributes[:us_bank_account]
+ @ideal_payment_details = IdealPaymentDetails.new(attributes[:ideal_payment]) if attributes[:ideal_payment]
end
# True if <tt>other</tt> is a Braintree::Transaction with the same id.
def ==(other)
return false unless other.is_a?(Transaction)