ShippingMethodRateCreateInput
InputInput for creating a new shipping method rate.
Fields
- String
predicate An optional predicate that can be used to filter the shipping method rate.
Thor predicates are boolean expressions. Cart discounts and shipping rules evaluate against cart context; product discounts evaluate against price and product context. Cart predicate language and product predicate language.- MoneyInput
price The price of the shipping method rate, represented as a MoneyInput.
- RateOfTotalInput
rateOfTotal An optional rate of total, which can be used to calculate the shipping cost based on the total order amount.
- TaxBehavior
taxBehavior An optional tax behavior configuration for the rate. Defaults to Exclusive when omitted.
Possible enum valuesEXCLUSIVEExclusive tax is added on top of the price. For example, a product has the price defined as 5.00 USD. The tax charged on this product could be 10% and would result in a final price of 5.50 USD. (Tax rates might differ—this is only an explanatory example.)
INCLUSIVEInclusive tax is already included in the price. For example, a product has the price defined as 5.00 USD. The final price the customer pays is 5.00 USD.