Interface TaxMode
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
TaxMode.TaxModeEnum
Indicates how taxes are set on the Cart.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TaxMode
No taxes are added to the Cart.static final TaxMode
Tax Rates are set externally per ExternalTaxRateDraft.static final TaxMode
Tax amounts, Tax Rates, and tax portions are set externally per ExternalTaxAmountDraft.static final TaxMode
-
Method Summary
Modifier and TypeMethodDescriptionstatic TaxMode
factory method for a enum value of TaxMode if no enum has been found an anonymous instance will be createdfindEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic TaxMode[]
values()
possible enum values
-
Field Details
-
PLATFORM
Tax Rates are selected automatically from the TaxCategories based on the Cart
shippingAddress
. This is the default tax mode for a new Cart.totalNet
,totalGross
, andtaxPortions
fields are calculated based on thetaxRoundingMode
. -
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.
totalNet
,totalGross
, andtaxPortions
fields are calculated based on thetaxRoundingMode
. -
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
externalTaxAmount
is removed in these cases and must be reset with Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount update actions. -
DISABLED
No taxes are added to the Cart.
Note that this tax mode cannot be set on the My Carts API.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of TaxMode if no enum has been found an anonymous instance will be created- Parameters:
value
- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName
- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-