aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/finance.ts
blob: d98edd1a422c400b5b8ee509370eb93d84b4127b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import type { Currency } from '../modules/finance';
import type { LocaleEntry } from './definitions';
/**
 * The possible definitions related to finance.
 */
export type FinanceDefinition = LocaleEntry<{
  /**
   * The types of accounts/purposes of an account (e.g. `Savings` account).
   */
  account_type: string[];

  /**
   * The pattern by (lowercase) issuer name used to generate credit card codes.
   * `L` will be replaced by the check bit.
   *
   * @see faker.helpers.replaceCreditCardSymbols()
   */
  credit_card: { [issuer: string]: string[] };

  /**
   * Currencies including their name, code and symbol (e.g. `US Dollar` / `USD` / `$`).
   */
  currency: Currency[];

  /**
   * Types of transactions (e.g. `deposit`).
   */
  transaction_type: string[];
}>;