AmendmentConfirmRequest class

Constructors

AmendmentConfirmRequest({required String amendmentRequestId, required AmendmentConfirmRequestPaymentMethodEnum paymentMethod, String? selectedOptionId, MoneyInput? maxPrice})
Returns a new AmendmentConfirmRequest instance.

Properties

amendmentRequestId ↔ String
Required. The amendmentRequestId returned by the amendment quote.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
maxPrice ↔ MoneyInput?
Optional. The most you accept to pay for this amendment, in the currency of the quoted amounts. Above it the confirm answers 409 with code 11002 at maxPrice and nothing is charged. Without it the confirm charges exactly the quoted amounts, and a price that changed since the quote needs a new quote.
getter/setter pair
paymentMethod ↔ AmendmentConfirmRequestPaymentMethodEnum
How a surcharge is paid. Its only value is balance: the wallet linked to the API key. Any other value answers 400 with code 10001 at paymentMethod.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedOptionId ↔ String?
The id of the quote option to confirm. When omitted, the first option is used.
getter/setter pair

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

Constants

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