deletePurchasePayment function

Future<ApiResponse<Object?>> deletePurchasePayment(
  1. ExsitedClient client,
  2. Object purchasePaymentId, {
  3. bool? raiseOnError,
  4. String? responseFormat,
})

DELETE /api/{api_version}/purchase_payments/{purchase_payment_id}

No typed view. Read response.map.

Implementation

Future<ApiResponse<Object?>> deletePurchasePayment(
  ExsitedClient client,
  Object purchasePaymentId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(PurchasePaymentsUrls.purchasePayment,
        pathParams: {'purchase_payment_id': purchasePaymentId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);