Class: MangoModel::OtherBankAccount

Inherits:
BankAccount show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/entity/account/other_bank_account.rb

Overview

Bank account of AccountType::OTHER

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Attributes inherited from BankAccount

#active, #owner_address, #owner_name, #type, #user_id

Attributes inherited from EntityBase

#creation_date, #id, #tag

Instance Method Summary collapse

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Constructor Details

#initializeOtherBankAccount

Returns a new instance of OtherBankAccount.



20
21
22
# File 'lib/mangopay/model/entity/account/other_bank_account.rb', line 20

def initialize
  self.type = MangoModel::AccountType::OTHER
end

Instance Attribute Details

#account_numberObject

String

Its account number



15
16
17
# File 'lib/mangopay/model/entity/account/other_bank_account.rb', line 15

def 
  @account_number
end

#bicObject

String

Its BIC code



12
13
14
# File 'lib/mangopay/model/entity/account/other_bank_account.rb', line 12

def bic
  @bic
end

#countryObject

CountryIso

Its country



18
19
20
# File 'lib/mangopay/model/entity/account/other_bank_account.rb', line 18

def country
  @country
end