Class: Ingenico::Connect::SDK::Domain::Payment::TrustlyBankAccount

Inherits:
Ingenico::Connect::SDK::DataObject show all
Defined in:
lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Ingenico::Connect::SDK::DataObject

new_from_hash

Instance Attribute Details

#account_last_digitsString

Returns the current value of account_last_digits.

Returns:

  • (String)

    the current value of account_last_digits



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15

def 
  @account_last_digits
end

#bank_nameString

Returns the current value of bank_name.

Returns:

  • (String)

    the current value of bank_name



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15

def bank_name
  @bank_name
end

#clearinghouseString

Returns the current value of clearinghouse.

Returns:

  • (String)

    the current value of clearinghouse



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15

def clearinghouse
  @clearinghouse
end

#person_identification_numberString

Returns the current value of person_identification_number.

Returns:

  • (String)

    the current value of person_identification_number



15
16
17
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 15

def person_identification_number
  @person_identification_number
end

Instance Method Details

#from_hash(hash) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 35

def from_hash(hash)
  super
  if hash.has_key? 'accountLastDigits'
    @account_last_digits = hash['accountLastDigits']
  end
  if hash.has_key? 'bankName'
    @bank_name = hash['bankName']
  end
  if hash.has_key? 'clearinghouse'
    @clearinghouse = hash['clearinghouse']
  end
  if hash.has_key? 'personIdentificationNumber'
    @person_identification_number = hash['personIdentificationNumber']
  end
end

#to_hHash

Returns:

  • (Hash)


26
27
28
29
30
31
32
33
# File 'lib/ingenico/connect/sdk/domain/payment/trustly_bank_account.rb', line 26

def to_h
  hash = super
  hash['accountLastDigits'] = @account_last_digits unless @account_last_digits.nil?
  hash['bankName'] = @bank_name unless @bank_name.nil?
  hash['clearinghouse'] = @clearinghouse unless @clearinghouse.nil?
  hash['personIdentificationNumber'] = @person_identification_number unless @person_identification_number.nil?
  hash
end