deletePayment method

Future<void> deletePayment(
  1. int paymentId, {
  2. required Object authorization,
})

Parameters:

  • int paymentId (required):

  • Object authorization:

Implementation

Future<void> deletePayment(
  int paymentId, {
  required Object authorization,
}) async {
  final response = await _deletePaymentWithHttpInfo(
    paymentId,
    authorization: authorization,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}