Automattic\WooCommerce\Internal\Agentic\Enums\Specs
TotalType{}
Total types as defined in the Agentic Commerce Protocol.
No Hooks.
Usage
$TotalType = new TotalType(); // use class methods
Methods
No Methods in class.TotalType{} TotalType{} code WC 10.4.3
class TotalType {
/**
* Base amount of all items before discounts.
*/
const ITEMS_BASE_AMOUNT = 'items_base_amount';
/**
* Total discount on items.
*/
const ITEMS_DISCOUNT = 'items_discount';
/**
* Subtotal after item discounts.
*/
const SUBTOTAL = 'subtotal';
/**
* Additional discount applied to order.
*/
const DISCOUNT = 'discount';
/**
* Fulfillment/shipping cost.
*/
const FULFILLMENT = 'fulfillment';
/**
* Tax amount.
*/
const TAX = 'tax';
/**
* Additional fee.
*/
const FEE = 'fee';
/**
* Final total amount.
*/
const TOTAL = 'total';
}