uk.gov.hmrc.domain.AtedUtrGenerator
See theAtedUtrGenerator companion object
case class AtedUtrGenerator(random: Random) extends Modulus23Check
A generator that should be used Only for Testing!
Rules for the AtedUtr: https://design.tax.service.gov.uk/hmrc-design-patterns/unique-taxpayer-reference/
Generates an AtedUtr from a random seed. You can use a specific seed to generate an AtedUtr so it is going to be more predictable.
Attributes
- Example
-
AtedUtrGenerator(seed).nextAtedUtr.utr
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Modulus23Checktrait ModulusCheckclass Objecttrait Matchableclass Any
Members list
In this article