OptionalhostOptionalinboundInvoices issued to this taxpayer, answered by an INBOUND query.
Submitting an invoice makes it outbound; there is no way to receive one, so inbound invoices are seeded here.
OptionalnowInjectable clock.
OptionalpollsPolls before a transaction settles. 0 means immediately.
OptionalportPort to listen on. 0, the default, picks a free one.
OptionaltaxpayersTaxpayers queryTaxpayer knows about.
OptionalthrottleTurn away the first N HTTP requests with a throttle response, so a client's retry and backoff can be exercised end to end. NAV rate limits per taxpayer, and a bulk download makes one request per invoice, so recovering from a throttle is the difference between a pull that finishes and one that dies partway.
OptionalretryAfterSeconds?: numberSeconds to advertise in a Retry-After header, if any.
Optionalstatus?: 429 | 503Status to answer with. 429 (Too Many Requests) by default; 503 also retried.
How many requests to turn away before serving normally.
OptionalvalidateValidate submitted invoices and abort the invalid ones. Default true.
Credentials the mock accepts. Anything else is INVALID_SECURITY_USER.