Sha256: 85d95cf1c6c88a0571e154c7cad1d268573d0267d65d95ec9687c5db06dc1660

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

module Braintree
  class Transaction
    class PaymentReceipt
      include BaseModule

      attr_reader :account_balance
      attr_reader :amount
      attr_reader :card_last_4
      attr_reader :card_present_data
      attr_reader :card_type
      attr_reader :currency_iso_code
      attr_reader :global_id
      attr_reader :id
      attr_reader :merchant_address
      attr_reader :merchant_identification_number
      attr_reader :merchant_name
      attr_reader :pin_verified
      attr_reader :processor_authorization_code
      attr_reader :processor_response_code
      attr_reader :processor_response_text
      attr_reader :terminal_identification_number
      attr_reader :type

      def initialize(attributes)
        set_instance_variables_from_hash attributes unless attributes.nil?
        @card_present_data = CardPresentData.new(attributes[:card_present_date]) if attributes[:card_present_data]
        @merchant_address = MerchantAddress.new(attributes[:merchant_address]) if attributes[:merchant_address]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.22.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.21.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.20.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.19.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.18.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.17.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.16.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.15.0 lib/braintree/transaction/payment_receipt.rb
braintree-4.14.0 lib/braintree/transaction/payment_receipt.rb