Skip to content

SudoSOS Back-end API / internal / spec / invoice-request-spec

Internal: Spec: Invoice Request Spec ​

This is the module page of the invoice-request-spec.

Functions ​

FunctionDescription
createInvoiceRequestSpecSpecification for a CreateInvoiceRequest. Registered with the async validator middleware; runs against req.body before the handler. byId is validated only if provided (the handler defaults it from the token).
updateInvoiceRequestSpecSpecification for an UpdateInvoiceParams. Registered with the async validator middleware using a buildTarget that merges route params (invoiceId) and token defaults (byId) into the validation target.