rawRemoveCodesWithHttpInfo method

Future<Response> rawRemoveCodesWithHttpInfo(
  1. String userId,
  2. String serviceId,
  3. String secretFKeys,
  4. List<String> requestBody,
)

Remove an invoice of an user

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> rawRemoveCodesWithHttpInfo(String userId, String serviceId, String secretFKeys, List<String> requestBody,) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/invoice/byauthor/{userId}/service/{serviceId}'.replaceAll('{userId}', userId).replaceAll('{serviceId}', serviceId);

  // ignore: prefer_final_locals
  Object? postBody = requestBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

    queryParams.addAll(_queryParams('', 'secretFKeys', secretFKeys));

  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,
  );
}