lib/braintree/transaction.rb in braintree-2.35.0 vs lib/braintree/transaction.rb in braintree-2.36.0

- old
+ new

@@ -79,10 +79,11 @@ attr_reader :merchant_account_id attr_reader :order_id attr_reader :channel attr_reader :billing_details, :shipping_details attr_reader :paypal_details + attr_reader :apple_pay_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 @@ -240,9 +241,10 @@ @shipping_details = AddressDetails.new(@shipping) @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) 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]