Skip to content

BankAccount entity

Generate coherent bank-account entities with identifiers, balance, currency, and bank details.

Why: Use BankAccount when tests need correlated account identifiers, balance, currency, type, and bank details; use IbanGenerator alone when only an IBAN-shaped field is required.

1
<variable name="value" entity="BankAccount"/>

Output: Typed BankAccount value.

Parameters

  • dataset: str | null; Default None — Country dataset controlling account, currency, and bank conventions.

Attributes

  • account_number (str): Primary account number.
  • account_type (str): Account category (checking, savings, …).
  • balance (float): Current simulated account balance.
  • bank_code (str): Local bank code (e.g., BLZ).
  • bank_name (str): Name of the issuing bank.
  • bic (str): SWIFT/BIC identifier.
  • bin (str): Bank identification number.
  • created_date (datetime): Date when the account was created.
  • currency (str): ISO currency code.
  • iban (str): International Bank Account Number.
  • last_transaction_date (datetime): Timestamp of most recent transaction.

Limits

The available attributes and values depend on the registered entity, its dataset, and its documented constructor options.