Skip to content

SudoSOS Back-end API / helpers / asInvoiceState

Function: asInvoiceState() ​

ts
function asInvoiceState(input): InvoiceState;

Converts the input to a InvoiceState

Parameters ​

ParameterTypeDescription
inputanyThe input which should be converted.

Returns ​

InvoiceState

The parsed InvoiceState.

Throws ​

TypeError - If the input is not a valid InvoiceState