WooOrderTaxStatus enum

WooCommerce Order Tax Status Enumeration

Defines the possible tax statuses for order items in WooCommerce. Used to determine whether items are subject to tax calculations.

Usage Examples

// Create order item with tax status
final lineItem = WooLineItem(
  name: 'Product',
  taxStatus: WooOrderTaxStatus.taxable,
);

// Check if item is taxable
if (item.taxStatus == WooOrderTaxStatus.taxable) {
  print('Item is subject to tax');
}
Inheritance
Available extensions

Values

taxable → const WooOrderTaxStatus

Item is subject to tax calculations.

none → const WooOrderTaxStatus

Item is not subject to tax calculations.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fake() WooOrderTaxStatus
Creates a fake WooOrderTaxStatus for testing purposes.
fromString(String type) WooOrderTaxStatus
Creates a WooOrderTaxStatus from a string value.

Constants

values → const List<WooOrderTaxStatus>
A constant List of the values in this enum, in order of their declaration.