createInvoiceWithHttpInfo method
Future<Response>
createInvoiceWithHttpInfo(
- CreateInvoiceModel request, {
- required Object authorization,
Performs an HTTP 'POST /api/v1/Invoices/Custom' operation and returns the Response
.
Parameters:
-
CreateInvoiceModel request (required):
-
Object authorization:
Implementation
Future<Response> createInvoiceWithHttpInfo(
CreateInvoiceModel request, {
required Object authorization,
}) async {
final path = r'/api/v1/Invoices/Custom';
Object postBody = request;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
headerParams[r'authorization'] = parameterToString(authorization);
const authNames = <String>[];
const contentTypes = <String>[
'application/json',
'text/json',
'application/_*+json'
];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes[0],
authNames,
);
}