lib/braintree/error_result.rb in braintree-2.24.0 vs lib/braintree/error_result.rb in braintree-2.25.0

- old
+ new

@@ -1,14 +1,15 @@ module Braintree # See http://www.braintreepayments.com/docs/ruby/general/result_objects class ErrorResult - attr_reader :credit_card_verification, :transaction, :subscription, :errors, :params, :message + attr_reader :credit_card_verification, :merchant_account, :transaction, :subscription, :errors, :params, :message def initialize(gateway, data) # :nodoc: @gateway = gateway @params = data[:params] @credit_card_verification = CreditCardVerification._new(data[:verification]) if data[:verification] + @merchant_account = MerchantAccount._new(gateway, data[:merchant_account]) if data[:merchant_account] @message = data[:message] @transaction = Transaction._new(gateway, data[:transaction]) if data[:transaction] @subscription = Subscription._new(gateway, data[:subscription]) if data[:subscription] @errors = Errors.new(data[:errors]) end