deletePayment function

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

DELETE /api/{api_version}/payments/{payment_id}

No typed view: no 2xx response was recorded for it. Read response.map.

Implementation

Future<ApiResponse<Object?>> deletePayment(
  ExsitedClient client,
  Object paymentId, {
  bool? raiseOnError,
  String? responseFormat,
}) =>
    client.sendDeleteRequest(PaymentsUrls.payment,
        pathParams: {'payment_id': paymentId},
        raiseOnError: raiseOnError,
        responseFormat: responseFormat);