cancelTransaction method

Future<void> cancelTransaction({
  1. required String transactionId,
})

Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.

May throw ConcurrentModificationException. May throw EntityNotFoundException. May throw InternalServiceException. May throw InvalidInputException. May throw OperationTimeoutException. May throw TransactionCommitInProgressException. May throw TransactionCommittedException.

Parameter transactionId : The transaction to cancel.

Implementation

Future<void> cancelTransaction({
  required String transactionId,
}) async {
  final $payload = <String, dynamic>{
    'TransactionId': transactionId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/CancelTransaction',
    exceptionFnMap: _exceptionFns,
  );
}