type
PriceCondition
One conditional price operation.
Properties
| Property | Type | Description |
|---|---|---|
_key | string | The _key value. |
fieldToUse | string | The fieldToUse value. |
condition | "equals" | | The condition value. |
operator | "add" | | The operator value. |
valueForCondition | string | The valueForCondition value. |
valueForOperator | string | The valueForOperator value. |
valueType | "static" | | The valueType value. |
Full signature
type PriceCondition = {
_key?: string;
fieldToUse: string;
condition: "equals" | "hasValue" | "notEquals";
operator: "add" | "divide" | "multiply" | "subtract";
valueForCondition?: string;
valueForOperator: string;
valueType: "static" | "valueOfField";
}