uk.gov.hmrc.domain

Members list

Type members

Classlikes

case class AtedUtrGenerator(random: Random) extends Modulus23Check

A generator that should be used Only for Testing!

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
Supertypes
trait Serializable
trait Product
trait Equals
trait Modulus23Check
trait ModulusCheck
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class EoriGenerator(random: Random)

A generator that should be used Only for Testing!

A generator that should be used Only for Testing!

Rules for the EORI: https://design.tax.service.gov.uk/hmrc-design-patterns/eori-numbers/

Generates an Eori from a random seed. You can use a specific seed to generate an Eori so it is going to be more predictable.

Attributes

Example

EoriGenerator(seed).nextEori.eori

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object EoriGenerator

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class NinoGenerator(random: Random) extends Modulus23Check

A generator that should be used Only for Testing!

A generator that should be used Only for Testing!

Rules for the Nino: https://en.wikipedia.org/wiki/National_Insurance_number#Format

Generates a Nino from a random seed. You can use a specific seed to generate a Nino so it is going to be more predictable.

Attributes

Example

NinoGenerator(seed).nextNino.nino

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
trait Modulus23Check
trait ModulusCheck
class Object
trait Matchable
class Any
Show all
object NinoGenerator

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class SaUtrGenerator(random: Random) extends Modulus11Check

A generator that should be used Only for Testing!

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
Supertypes
trait Serializable
trait Product
trait Equals
trait Modulus11Check
trait ModulusCheck
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class VrnGenerator(random: Random)

A generator that should be used Only for Testing!

A generator that should be used Only for Testing!

Rules for the VRN: https://design.tax.service.gov.uk/hmrc-design-patterns/vat-registration-number/

Generates a VRN from a random seed. You can use a specific seed to generate a VRN so it is going to be more predictable.

Attributes

Example

VrnGenerator(seed).nextVrn.vrn

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object VrnGenerator

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type