MixedOrderRequest class

Constructors

MixedOrderRequest({List<MixedOrderRequestItem> items = const [], String? currency, String? referenceId, MoneyInput? maxTotal})
Returns a new MixedOrderRequest instance.

Properties

currency ↔ String?
Three-letter currency code the order is priced and charged in, for example USD. When omitted or empty, the API key's default currency is used.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
items ↔ List<MixedOrderRequestItem>
Required. One to five items; the sum of their quantity is at most five.
getter/setter pair
maxTotal ↔ MoneyInput?
Optional highest accepted order total, in the order currency: the sum of every item's price times its quantity. A higher total gives 409 / 11002 at maxTotal before anything is charged; a currency other than the order currency gives 400 / 10001 at maxTotal.currency.
getter/setter pair
referenceId ↔ String?
Optional reference of your own, up to 128 characters, without leading or trailing whitespace. It must be unique among your orders (a reused value returns 409) and can be used to find the order with the referenceId filter of the order list.
getter/setter pair
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(dynamic value) → MixedOrderRequest?
Returns a new MixedOrderRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MixedOrderRequest>
mapFromJson(dynamic json) → Map<String, MixedOrderRequest>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MixedOrderRequest>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.