FlightOrderItem class

Constructors

FlightOrderItem({String? id, String? orderId, required FlightOrderItemProductTypeEnum productType, Money? price, FlightPurchasedProduct? purchasedProduct, FlightFulfillment? fulfillment, OrderItemActions? actions, DateTime? createdAt, Money? effectivePaidAmount, OrderItemRefund? refund})
Returns a new FlightOrderItem instance.

Properties

actions ↔ OrderItemActions?
Whether the item can be amended or cancelled now.
getter/setter pair
createdAt ↔ DateTime?
When the item was created (UTC).
getter/setter pair
effectivePaidAmount ↔ Money?
What has been paid for the item so far: price plus completed amendment charges, less completed amendment credits.
getter/setter pair
fulfillment ↔ FlightFulfillment?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
Order item id, used by the order-item endpoints. It is not the offer's publicId.
getter/setter pair
orderId ↔ String?
The order the item belongs to.
getter/setter pair
price ↔ Money?
The price paid for the item at purchase, in the order's currency.
getter/setter pair
productType ↔ FlightOrderItemProductTypeEnum
getter/setter pair
purchasedProduct ↔ FlightPurchasedProduct?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
refund ↔ OrderItemRefund?
The recorded refund, or null when no refund has been started.
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) → FlightOrderItem?
Returns a new FlightOrderItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FlightOrderItem>
mapFromJson(dynamic json) → Map<String, FlightOrderItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FlightOrderItem>>

Constants

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