NoonOrder class

The order details sent to Noon's INITIATE API.

Constructors

NoonOrder({required String amount, required String currency, required String name, required String category, String? reference, String channel = 'mobile', List<NoonOrderItem>? items})
const

Properties

amount String
Total amount as a decimal string (e.g. "10"). Must be greater than zero.
final
category String
Pre-configured order route category (e.g. "pay").
final
channel String
Traffic channel. Defaults to "mobile" for the direct Apple Pay flow.
final
currency String
ISO 4217 currency code (e.g. "AED").
final
hashCode int
The hash code for this object.
no setterinherited
items List<NoonOrderItem>?
Optional line items. Their total should match amount.
final
name String
Short description of the order. No leading/trailing or consecutive spaces.
final
reference String?
Merchant's internal order reference (optional, max 50 chars).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Serializes the order for the INITIATE request.
toString() String
A string representation of this object.
inherited

Operators

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