lib/braintree/transaction.rb in braintree-2.29.0 vs lib/braintree/transaction.rb in braintree-2.30.0
- old
+ new
@@ -61,10 +61,11 @@
attr_reader :amount, :created_at, :credit_card_details, :customer_details, :subscription_details, :service_fee_amount, :id
attr_reader :currency_iso_code
attr_reader :custom_fields
attr_reader :cvv_response_code
attr_reader :disbursement_details
+ attr_reader :disputes
attr_reader :descriptor
attr_reader :escrow_status
attr_reader :gateway_rejection_reason
attr_reader :merchant_account_id
attr_reader :order_id
@@ -221,9 +222,10 @@
@disbursement_details = DisbursementDetails.new(@disbursement_details)
@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)
+ 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
end