WalletCreateRequest class

Constructors

WalletCreateRequest({String? currencyId, bool? isSelected, String? label, num? lowBalanceThreshold})
Returns a new WalletCreateRequest instance.

Properties

currencyId ↔ String?
Required. The currency's id from GET currencies.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
isSelected ↔ bool?
Whether the new wallet becomes the selected wallet that pays for orders. The partner's first wallet is always selected.
getter/setter pair
label ↔ String?
Display name, unique among the partner's wallets ignoring case. Defaults to the currency code followed by wallet, for example USD wallet.
getter/setter pair
lowBalanceThreshold ↔ num?
Optional low-balance threshold in the wallet's currency. When it is above zero, the partner.balance.low webhook reports the balance falling toward and below it.
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) → WalletCreateRequest?
Returns a new WalletCreateRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<WalletCreateRequest>
mapFromJson(dynamic json) → Map<String, WalletCreateRequest>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<WalletCreateRequest>>

Constants

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