aboutsummaryrefslogtreecommitdiff
path: root/src/definitions/finance.ts
blob: 52948aa2c1590e8d2389729e027c26cfa8452e02 (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
30
31
32
33
34
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(): For more information about how the pattern is used.
   */
  credit_card: { [issuer: string]: string[] };

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

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

  /**
   * The pattern used to generate transaction descriptions.
   */
  transaction_description_pattern: string[];
}>;