Sha256: 45dc6f9979535ff4372bb94bf1ac3e5b36147cbdaca732044d9626b7ad3b16c8

Contents?: true

Size: 658 Bytes

Versions: 3

Compression:

Stored size: 658 Bytes

Contents

require_relative 'bank_account'
require_relative '../../enum/account_type'
require_relative '../../../common/jsonifier'

module MangoModel

  # Bank account of +AccountType::CA+
  class CaBankAccount < BankAccount
    include MangoPay::Jsonifier

    # [String] Its institution number (3-4 digits)
    attr_accessor :institution_number

    # [String] Its account number (max 20 digits)
    attr_accessor :account_number

    # [String] Its bank's branch code (5 digits)
    attr_accessor :branch_code

    # [String] Its bank's name (max 50 letters/digits)
    attr_accessor :bank_name

    def initialize
      self.type = AccountType::CA
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mangopay-v4-4.1.0 lib/mangopay/model/entity/account/ca_bank_account.rb
mangopay-v4-4.0.2 lib/mangopay/model/entity/account/ca_bank_account.rb
mangopay-v4-4.0.1 lib/mangopay/model/entity/account/ca_bank_account.rb