lib/braintree/transaction.rb in braintree-2.38.0 vs lib/braintree/transaction.rb in braintree-2.39.0
- old
+ new
@@ -81,10 +81,11 @@
attr_reader :order_id
attr_reader :channel
attr_reader :billing_details, :shipping_details
attr_reader :paypal_details
attr_reader :apple_pay_details
+ attr_reader :coinbase_details
attr_reader :plan_id
# The authorization code from the processor.
attr_reader :processor_authorization_code
# The response code from the processor.
attr_reader :processor_response_code
@@ -244,9 +245,10 @@
@status_history = attributes[:status_history] ? attributes[:status_history].map { |s| StatusDetails.new(s) } : []
@tax_amount = Util.to_big_decimal(tax_amount)
@descriptor = Descriptor.new(@descriptor)
@paypal_details = PayPalDetails.new(@paypal)
@apple_pay_details = ApplePayDetails.new(@apple_pay)
+ @coinbase_details = CoinbaseDetails.new(@coinbase_account)
disputes.map! { |attrs| Dispute._new(attrs) } if disputes
@custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {}
add_ons.map! { |attrs| AddOn._new(attrs) } if add_ons
discounts.map! { |attrs| Discount._new(attrs) } if discounts
@payment_instrument_type = attributes[:payment_instrument_type]