Skip to content

Bank entity

Generate locale-aware bank entities with institution and routing details.

Why: Use Bank for coherent institution fixtures containing name, address, BIC, and routing data; use RoutingNumberGenerator when the scenario needs only one ABA-shaped value.

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

Output: Typed Bank value.

Parameters

  • dataset: str | null; Default None — Country dataset controlling institution and routing conventions.

Attributes

  • bank_code (str): Local bank code (e.g., BLZ).
  • bic (str): SWIFT/BIC identifier.
  • bin (str): Bank identification number.
  • customer_service_phone (str): Customer service phone number.
  • name (str): Bank name.
  • routing_number (str): Routing number for domestic transfers.
  • swift_code (str): SWIFT code of the bank.

Limits

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