niksumeiko / iban-validator-react-tdd-kata

97 stars 30 forks source link

See bank details the IBAN belongs to #3

Open niksumeiko opened 1 year ago

niksumeiko commented 1 year ago

Overview

Enable the user to see the bank IBAN belongs to.

Acceptance criteria

1. Display bank details
- Join bank.name and bank.address using , (comma) separator - Join bank address parts using , (comma) - Join city and zip using (space)

(Consider the bank.name and all address details are optional API response attributes)

Example:

Erste Bank, Am Belvedere 1, 1100 Vienna, AT
^name       ^street         ^zip ^city   ^country

 

Design

API specification

The validation is created via GET /validate endpoint.

Expected request:

Attribute Type
iban string

Response:

Attribute Type
iban string
flags enum[]
INSTANT | POSITIVE_HISTORY | SECURITY_CLAIMS | PSD2
bank?.trustScore? number(0-10)
bank?.name? string
bank?.address?.street? string
bank?.address?.city? string
bank?.address?.zip? string
bank?.address?.country? ISO2(string)

Test data

- HU14116000060000000084586199 - HR8523300033203674306