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 ​
| Function | Description |
|---|---|
| createInvoiceRequestSpec | Specification 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). |
| updateInvoiceRequestSpec | Specification 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. |