Class: Braintree::Transaction::PaymentReceipt
- Inherits:
-
Object
- Object
- Braintree::Transaction::PaymentReceipt
- Includes:
- BaseModule
- Defined in:
- lib/braintree/transaction/payment_receipt.rb,
lib/braintree/transaction/payment_receipt/merchant_address.rb,
lib/braintree/transaction/payment_receipt/card_present_data.rb
Defined Under Namespace
Classes: CardPresentData, MerchantAddress
Instance Attribute Summary collapse
-
#account_balance ⇒ Object
readonly
Returns the value of attribute account_balance.
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#card_last_4 ⇒ Object
readonly
Returns the value of attribute card_last_4.
-
#card_present_data ⇒ Object
readonly
Returns the value of attribute card_present_data.
-
#card_type ⇒ Object
readonly
Returns the value of attribute card_type.
-
#currency_iso_code ⇒ Object
readonly
Returns the value of attribute currency_iso_code.
-
#global_id ⇒ Object
readonly
Returns the value of attribute global_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#merchant_address ⇒ Object
readonly
Returns the value of attribute merchant_address.
-
#merchant_identification_number ⇒ Object
readonly
Returns the value of attribute merchant_identification_number.
-
#merchant_name ⇒ Object
readonly
Returns the value of attribute merchant_name.
-
#pin_verified ⇒ Object
readonly
Returns the value of attribute pin_verified.
-
#processor_authorization_code ⇒ Object
readonly
Returns the value of attribute processor_authorization_code.
-
#processor_response_code ⇒ Object
readonly
Returns the value of attribute processor_response_code.
-
#processor_response_text ⇒ Object
readonly
Returns the value of attribute processor_response_text.
-
#terminal_identification_number ⇒ Object
readonly
Returns the value of attribute terminal_identification_number.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ PaymentReceipt
constructor
A new instance of PaymentReceipt.
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(attributes) ⇒ PaymentReceipt
Returns a new instance of PaymentReceipt.
24 25 26 27 28 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 24 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 |
Instance Attribute Details
#account_balance ⇒ Object (readonly)
Returns the value of attribute account_balance.
6 7 8 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 6 def account_balance @account_balance end |
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
7 8 9 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 7 def amount @amount end |
#card_last_4 ⇒ Object (readonly)
Returns the value of attribute card_last_4.
8 9 10 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 8 def card_last_4 @card_last_4 end |
#card_present_data ⇒ Object (readonly)
Returns the value of attribute card_present_data.
9 10 11 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 9 def card_present_data @card_present_data end |
#card_type ⇒ Object (readonly)
Returns the value of attribute card_type.
10 11 12 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 10 def card_type @card_type end |
#currency_iso_code ⇒ Object (readonly)
Returns the value of attribute currency_iso_code.
11 12 13 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 11 def currency_iso_code @currency_iso_code end |
#global_id ⇒ Object (readonly)
Returns the value of attribute global_id.
12 13 14 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 12 def global_id @global_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 13 def id @id end |
#merchant_address ⇒ Object (readonly)
Returns the value of attribute merchant_address.
14 15 16 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 14 def merchant_address @merchant_address end |
#merchant_identification_number ⇒ Object (readonly)
Returns the value of attribute merchant_identification_number.
15 16 17 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 15 def merchant_identification_number @merchant_identification_number end |
#merchant_name ⇒ Object (readonly)
Returns the value of attribute merchant_name.
16 17 18 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 16 def merchant_name @merchant_name end |
#pin_verified ⇒ Object (readonly)
Returns the value of attribute pin_verified.
17 18 19 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 17 def pin_verified @pin_verified end |
#processor_authorization_code ⇒ Object (readonly)
Returns the value of attribute processor_authorization_code.
18 19 20 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 18 def @processor_authorization_code end |
#processor_response_code ⇒ Object (readonly)
Returns the value of attribute processor_response_code.
19 20 21 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 19 def processor_response_code @processor_response_code end |
#processor_response_text ⇒ Object (readonly)
Returns the value of attribute processor_response_text.
20 21 22 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 20 def processor_response_text @processor_response_text end |
#terminal_identification_number ⇒ Object (readonly)
Returns the value of attribute terminal_identification_number.
21 22 23 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 21 def terminal_identification_number @terminal_identification_number end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
22 23 24 |
# File 'lib/braintree/transaction/payment_receipt.rb', line 22 def type @type end |