# Seed data and config

Back to the [README](../README.md).

Cards are configured in `config/config.exs` (`:seed_cards`). The default card
is the one from the spec's Query Balance and Get Card Details samples: proxy
`000000012845`, card number `5123450000012845`, `MCCAED`, balance `12221` AED,
status `I` (active), expiry `31-JUL-29`.

Purchase Card also uses:
- `:seed_inventory`: unassigned instant cards that can be registered by
  `proxyNumber` (defaults `000000020001` and `000000020002`). Card Receipt
  adds more.
- `:products`: accepted product codes and their account currency (default
  `MCCAED` → `AED`, and `PAYPRD` → `AED` from the Account Addition sample).
  Account Addition uses the same list.
- `:card_designs`: the card designs each product can be ordered in with
  Card Order (default `BASEPL`, from the spec's samples, for both products).
- `:api_user_branch`: the API user's branch ID, for Card Orders sent without
  a `branchId` and Get Stock Details (default `APIUSER`, like the `netid`
  header).
- `:api_users`: API users (`netid`s) and their starting passwords, for Change
  Password (default `APIUSER` → `Password@1`). Other endpoints accept any
  `netid`.
- `:campaigns`: campaign codes for Assign Override Settings, each with a
  `code`, `product_code`, `start_date` and `end_date`. The default is the
  sample's `CHGNEW` for `MCCAED`, valid 2024 to 2099.
- `:zone_pin_key`: the Zone PIN Key for ATM PIN blocks, in hex (see [PINs](pins.md)).
- `:web_profiles`: card holders' web profiles, for Access Rights and
  Retrieve Web Profile. Each has a `user_id`, `user_name`, `last_login`,
  `menus` (a list of `tMenu` / `sMenu` maps) and `proxy_numbers` (the cards
  it covers). The default is the spec sample's `CUSTOMER1`, covering the seed
  card.
