Class: MangoModel::CaBankAccount

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

Overview

Bank account of AccountType::CA

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

#initializeCaBankAccount

Returns a new instance of CaBankAccount.



23
24
25
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 23

def initialize
  self.type = AccountType::CA
end

Instance Attribute Details

#account_numberObject

String

Its account number (max 20 digits)



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

def 
  @account_number
end

#bank_nameObject

String

Its bank’s name (max 50 letters/digits)



21
22
23
# File 'lib/mangopay/model/entity/account/ca_bank_account.rb', line 21

def bank_name
  @bank_name
end

#branch_codeObject

String

Its bank’s branch code (5 digits)



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

def branch_code
  @branch_code
end

#institution_numberObject

String

Its institution number (3-4 digits)



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

def institution_number
  @institution_number
end