- All Superinterfaces:
- All Known Implementing Classes:
Indicates how taxes are set on the Cart.
Nested Class SummaryModifier and TypeInterfaceDescription
static enumpossible values of TaxMode
Field SummaryModifier and TypeFieldDescriptionNo taxes are added to the Cart.Tax Rates are set externally per ExternalTaxRateDraft.Tax amounts, Tax Rates, and tax portions are set externally per ExternalTaxAmountDraft.
Method SummaryModifier and TypeMethodDescription
static TaxModefactory method for a enum value of TaxMode if no enum has been found an anonymous instance will be createdmethod to find enum using the JSON valuethe JSON value
name()the enum value
toString()convert value to string
values()possible enum values
PLATFORMstatic final TaxMode PLATFORM
EXTERNALstatic final TaxMode EXTERNAL
Tax Rates are set externally per ExternalTaxRateDraft. A Cart can be ordered only if all Line Items, Custom Line Items, and the Shipping Method have an external Tax Rate set.
taxPortionsfields are calculated based on the
EXTERNAL_AMOUNTstatic final TaxMode EXTERNAL_AMOUNT
Tax amounts, Tax Rates, and tax portions are set externally per ExternalTaxAmountDraft. A Cart can be ordered only if the Cart and all Line Items, Custom Line Items, and the Shipping Method have an external tax amount and rate set.
Price-specific update actions on Carts require external recalculation of the total gross price. Hence, the
externalTaxAmountis removed in these cases and must be reset with Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount update actions.
DISABLEDstatic final TaxMode DISABLED
No taxes are added to the Cart.
Note that this tax mode cannot be set on the My Carts API.
getJsonNameString getJsonName()the JSON value
nameString name()the enum value
toStringString toString()convert value to string
findEnumfactory method for a enum value of TaxMode if no enum has been found an anonymous instance will be created
value- the enum value to be wrapped
- enum instance
findEnumViaJsonNamemethod to find enum using the JSON value
jsonName- the json value to be wrapped
- optional of enum instance
valuesstatic TaxMode values()possible enum values
- array of possible enum values