refund abstract method
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,
});