Class: Worldline::Connect::SDK::V1::Domain::TrustlyBankAccount

Inherits:
Domain::DataObject show all
Defined in:
lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::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



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16

def 
  @account_last_digits
end

#bank_nameString

Returns the current value of bank_name.

Returns:

  • (String)

    the current value of bank_name



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16

def bank_name
  @bank_name
end

#clearinghouseString

Returns the current value of clearinghouse.

Returns:

  • (String)

    the current value of clearinghouse



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16

def clearinghouse
  @clearinghouse
end

#person_identification_numberString

Returns the current value of person_identification_number.

Returns:

  • (String)

    the current value of person_identification_number



16
17
18
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 16

def person_identification_number
  @person_identification_number
end

Instance Method Details

#from_hash(hash) ⇒ Object



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

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)


27
28
29
30
31
32
33
34
# File 'lib/worldline/connect/sdk/v1/domain/trustly_bank_account.rb', line 27

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