OrderLineItem class
- Annotations
-
- @JsonSerializable()
Constructors
-
OrderLineItem({required String quantity, String? uid, String? name, OrderQuantityUnit? quantityUnit, String? note, String? catalogObjectId, String? variationName, List<
OrderLineItemModifier> ? modifiers, List<OrderLineItemAppliedDiscount> ? appliedDiscounts, List<OrderLineItemAppliedTax> ? appliedTaxes, Money? basePriceMoney, Money? variationTotalPriceMoney, Money? grossSalesMoney, Money? totalTaxMoney, Money? totalDiscountMoney, Money? totalMoney, OrderLineItemType? itemType, Map<String, String> ? metadata, OrderLineItemPricingBlocklists? pricingBlocklists}) -
const
-
OrderLineItem.fromJson(Map<
String, dynamic> json) -
Converts a Map to an OrderLineItem
factory
Properties
-
appliedDiscounts
→ List<
OrderLineItemAppliedDiscount> ? -
final
-
appliedTaxes
→ List<
OrderLineItemAppliedTax> ? -
final
- basePriceMoney → Money?
-
final
- catalogObjectId → String?
-
final
- grossSalesMoney → Money?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemType → OrderLineItemType?
-
final
-
metadata
→ Map<
String, String> ? -
final
-
modifiers
→ List<
OrderLineItemModifier> ? -
final
- name → String?
-
final
- note → String?
-
final
- pricingBlocklists → OrderLineItemPricingBlocklists?
-
Describes pricing adjustments that are blocked from manual and automatic
application to a line item.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- quantity → String
-
final
- quantityUnit → OrderQuantityUnit?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - totalDiscountMoney → Money?
-
final
- totalMoney → Money?
-
final
- totalTaxMoney → Money?
-
final
- uid → String?
-
final
- variationName → String?
-
final
- variationTotalPriceMoney → Money?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a OrderLineItem to a Map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited