PaymentArguments class

Data class containing essential payment transaction arguments.

This class encapsulates all the necessary information required to process a payment transaction through the Amwal Pay SDK, including merchant details, transaction amount, and currency information.

Key Properties

  • amount: The transaction amount as a string
  • terminalId: Unique identifier for the payment terminal
  • merchantId: Unique identifier for the merchant
  • currencyData: Optional currency information and formatting
  • transactionId: Optional unique transaction identifier

Usage Example

final paymentArgs = PaymentArguments(
  amount: '100.50',
  terminalId: 'terminal_123',
  merchantId: 456,
  currencyData: currencyData,
  transactionId: 'txn_789',
);

Constructors

PaymentArguments.new({required String amount, required String terminalId, required int merchantId, String? transactionId, CurrencyData? currencyData})
Creates a new PaymentArguments instance.
PaymentArguments.fromMap(Map<String, dynamic> map)
Creates a PaymentArguments instance from a Map.
factory

Properties

amount String
The payment amount as a string representation.
final
currencyData CurrencyData?
Optional currency data containing formatting and display information.
final
hashCode int
The hash code for this object.
no setterinherited
merchantId int
Unique identifier for the merchant processing the payment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminalId String
Unique identifier for the payment terminal.
final
transactionId String?
Optional unique identifier for this specific transaction.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts this PaymentArguments instance to a Map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited