deletePurchasePaymentNoteFile function

Future<ApiResponse<Object?>> deletePurchasePaymentNoteFile(
  1. ExsitedClient client,
  2. Object purchasePaymentId,
  3. Object ppNoteId,
  4. Object fileId, {
  5. bool? raiseOnError,
  6. String? responseFormat,
})

DELETE /api/{api_version}/purchase_payments/{purchase_payment_id}/notes/{pp_note_id}/files/{file_id}

Delete one attachment, by the attachment's uuid; 204.

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> deletePurchasePaymentNoteFile(
  ExsitedClient client,
  Object purchasePaymentId,
  Object ppNoteId,
  Object fileId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(PurchasePaymentsUrls.purchasePaymentNoteFile,
        pathParams: {
          'purchase_payment_id': purchasePaymentId,
          'pp_note_id': ppNoteId,
          'file_id': fileId
        },
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);