Function prepareCreateInvoiceOptions

Convert CreateInvoiceOptions object to using backend API method parameters CreateInvoiceBackendOptions object

Error - If options object invalid