refund abstract method

Future<Transaction?> refund({
  1. required double amount,
  2. DateTime? transactionDate,
  3. String? cvNumber,
  4. String? originTerminal,
  5. bool? allowPrintCurrentTransaction,
})

Processes a refund for a transaction with the provided parameters.

amount is the refund amount and must be greater than zero. transactionDate (optional) specifies the date of the original transaction. cvNumber (optional) is the control number of the transaction (CV). originTerminal (optional) identifies the origin terminal. allowPrintCurrentTransaction (optional) specifies whether to allow printing the current transaction.

Returns a Transaction object containing refund details, or null if the operation fails.

This method must be implemented by a platform-specific class.

Implementation

Future<Transaction?> refund({
  required double amount,
  DateTime? transactionDate,
  String? cvNumber,
  String? originTerminal,
  bool? allowPrintCurrentTransaction,
});