TransactionOperationRequest class

Request model for transaction operations.

This class represents the request payload for various transaction operations including refunds, voids, and other transaction modifications. It contains all necessary information to identify and process the original transaction along with operation-specific parameters.

Properties

Usage

final request = TransactionOperationRequest(
  transactionId: 'txn_12345',
  originalTransactionIdentifierValue: 'orig_67890',
  originalTransactionIdentifierType: 1,
  terminalId: 123,
  merchantId: 456,
  requestDateTime: DateTime.now().toIso8601String(),
  amount: 100.50,
);

Constructors

TransactionOperationRequest({num? amount, required String transactionId, required String originalTransactionIdentifierValue, required int originalTransactionIdentifierType, required int terminalId, required int merchantId, int? currencyCode, required String requestDateTime, String? processingCode, String? messageTypeId, String? uniqueNotificationId, String? password})
Creates a new instance of TransactionOperationRequest.
const
TransactionOperationRequest.fromMap(Map<String, dynamic> map)
factory

Properties

amount → num?
Optional transaction amount.
final
currencyCode → int?
Optional currency code for the transaction.
final
hashCode → int
The hash code for this object.
no setteroverride
merchantId → int
Merchant identifier.
final
messageTypeId → String?
Optional message type identifier.
final
originalTransactionIdentifierType → int
Type of the original transaction identifier.
final
originalTransactionIdentifierValue → String
Original transaction reference value.
final
password → String?
Optional password for authentication.
final
processingCode → String?
Optional processing code for the operation.
final
requestDateTime → String
Date and time of the request.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
terminalId → int
Terminal identifier for the transaction.
final
transactionId → String
Unique identifier for the transaction.
final
uniqueNotificationId → String?
Optional unique notification identifier.
final

Methods

copyWith({String? transactionId, String? originalTransactionIdentifierValue, int? originalTransactionIdentifierType, int? terminalId, int? merchantId, int? currencyCode, String? requestDateTime, num? amount}) → TransactionOperationRequest
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited
toVoidRefundCardMap() → Map<String, dynamic>
toWalletRefundMap() → Map<String, dynamic>

Operators

operator ==(Object other) → bool
The equality operator.
override