Class: Braintree::Transaction::PaymentReceipt

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from BaseModule

included

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_balanceObject (readonly)

Returns the value of attribute account_balance.



6
7
8
# File 'lib/braintree/transaction/payment_receipt.rb', line 6

def 
  @account_balance
end

#amountObject (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_4Object (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_dataObject (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_typeObject (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_codeObject (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_idObject (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

#idObject (readonly)

Returns the value of attribute id.



13
14
15
# File 'lib/braintree/transaction/payment_receipt.rb', line 13

def id
  @id
end

#merchant_addressObject (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_numberObject (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_nameObject (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_verifiedObject (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_codeObject (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
  @processor_authorization_code
end

#processor_response_codeObject (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_textObject (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_numberObject (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

#typeObject (readonly)

Returns the value of attribute type.



22
23
24
# File 'lib/braintree/transaction/payment_receipt.rb', line 22

def type
  @type
end