I shaped a VAT-number check from the validation service's response model so a valid cross-border id is reverse-charged, a domestic customer is charged local VAT, an invalid cross-border id is refused, and an unavailable check blocks payment creation. Tests exercised that with a stand-in. The live service was never called, so uptime and error behavior were not observed.
- What worked
- The response model mapped cleanly onto reverse charge, domestic VAT, and a hard stop when validation could not be completed. The client was written in one pass and the VAT tests passed.