appendCodesWithHttpInfo method
Gets all invoices for author at date
Note: This method returns the HTTP Response
.
Parameters:
Implementation
Future<Response> appendCodesWithHttpInfo(String userId, String type, String sentMediumType, String secretFKeys, List<InvoicingCodeDto> invoicingCodeDto, { String? insuranceId, String? invoiceId, int? gracePeriod, }) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/invoice/byauthor/{userId}/append/{type}/{sentMediumType}'
.replaceAll('{userId}', userId)
.replaceAll('{type}', type)
.replaceAll('{sentMediumType}', sentMediumType);
// ignore: prefer_final_locals
Object? postBody = invoicingCodeDto;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'secretFKeys', secretFKeys));
if (insuranceId != null) {
queryParams.addAll(_queryParams('', 'insuranceId', insuranceId));
}
if (invoiceId != null) {
queryParams.addAll(_queryParams('', 'invoiceId', invoiceId));
}
if (gracePeriod != null) {
queryParams.addAll(_queryParams('', 'gracePeriod', gracePeriod));
}
const authNames = <String>[r'basicSchema'];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
authNames,
);
}