public final class ChangeTaxMode extends UpdateActionImpl<Cart>
tax mode
of a cart.
See also CartInStoreUpdateCommand.
final CartDraftDsl cartDraft = CartDraft.of(EUR) .withTaxMode(TaxMode.EXTERNAL);//important final Cart externalTaxModeCart = client().executeBlocking(CartCreateCommand.of(cartDraft)); assertThat(externalTaxModeCart.getTaxMode()).isEqualTo(TaxMode.EXTERNAL); final Cart platformTaxModeCart = client().executeBlocking(CartUpdateCommand.of(externalTaxModeCart, ChangeTaxMode.of(TaxMode.PLATFORM))); assertThat(platformTaxModeCart.getTaxMode()).isEqualTo(TaxMode.PLATFORM);
See the test code.
Modifier and Type | Method and Description |
---|---|
TaxMode |
getTaxMode() |
static ChangeTaxMode |
of(TaxMode taxMode) |
getAction
public static ChangeTaxMode of(TaxMode taxMode)