rawSetReceiptAttachmentWithHttpInfo method

Future<Response> rawSetReceiptAttachmentWithHttpInfo(
  1. String receiptId,
  2. String blobType,
  3. MultipartFile body, {
  4. String? enckeys,
})

Creates a receipt's attachment

Note: This method returns the HTTP Response.

Parameters:

  • String receiptId (required):

  • String blobType (required):

  • MultipartFile body (required):

  • String enckeys:

Implementation

Future<Response> rawSetReceiptAttachmentWithHttpInfo(String receiptId, String blobType, MultipartFile body, { String? enckeys, }) async {
  // ignore: prefer_const_declarations
  final path = r'/rest/v1/receipt/{receiptId}/attachment/{blobType}'.replaceAll('{receiptId}', receiptId).replaceAll('{blobType}', blobType);

  // ignore: prefer_final_locals
  Object? postBody = body;

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

  if (enckeys != null) {
    queryParams.addAll(_queryParams('', 'enckeys', enckeys));
  }

  const authNames = <String>[r'basicSchema'];
  const contentTypes = <String>['application/octet-stream'];


  return apiClient.invokeAPI(
    path,
    'PUT',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
    authNames,
  );
}