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