File: bank.md

package info (click to toggle)
ruby-faker 3.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,596 kB
  • sloc: ruby: 20,656; sh: 6; makefile: 6
file content (21 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Faker::Bank
```ruby

Faker::Bank.account_number #=> 6738582379

# Keyword arguments: digits
Faker::Bank.account_number(digits: 13) #=> 673858237902

# Faker generates valid IBAN check digits, but national check digits (BBAN) are not supported
Faker::Bank.iban #=> "GB76DZJM33188515981979"

# Keyword arguments: country_code
# All countries should be supported
Faker::Bank.iban(country_code: "be") #=> "BE6375388567752043"

Faker::Bank.name #=> "ABN AMRO CORPORATE FINANCE LIMITED"

Faker::Bank.routing_number #=> "729343831"

Faker::Bank.swift_bic #=> "AAFMGB21"
```