From 187ecee37079327ccd3c1f519ede0a7324790b0f Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 09:46:29 +0000 Subject: [PATCH] build(codegen): updating SDK --- .../cart/CartSetCartTotalTaxAction.java | 2 +- .../cart/CartSetCartTotalTaxActionImpl.java | 2 +- .../cart/CartSetLineItemTaxAmountAction.java | 2 +- .../CartSetLineItemTaxAmountActionImpl.java | 2 +- .../api/models/cart/TaxMode.java | 35 ++++++++++++++----- ...StagedOrderSetLineItemTaxAmountAction.java | 2 +- ...edOrderSetLineItemTaxAmountActionImpl.java | 2 +- references.txt | 1 + 8 files changed, 34 insertions(+), 14 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxAction.java index a89aa80e6ed..c102be0b209 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartSetCartTotalTaxAction.java @@ -17,7 +17,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *
This update action results in the taxedPrice
field being added to the Cart when the ExternalAmount
TaxMode is used.
Can be used if the Cart has the ExternalAmount
TaxMode. This update action adds the taxedPrice
field to the Cart and must be used after any price-affecting change occurs within the Cart.
This update action results in the taxedPrice
field being added to the Cart when the ExternalAmount
TaxMode is used.
Can be used if the Cart has the ExternalAmount
TaxMode. This update action adds the taxedPrice
field to the Cart and must be used after any price-affecting change occurs within the Cart.
Can be used if the Cart has the ExternalAmount
TaxMode.
Can be used if the Cart has the ExternalAmount
TaxMode. This update action sets the taxedPrice
and taxRate
on a Line Item and must be used after any price-affecting change occurs.
Can be used if the Cart has the ExternalAmount
TaxMode.
Can be used if the Cart has the ExternalAmount
TaxMode. This update action sets the taxedPrice
and taxRate
on a Line Item and must be used after any price-affecting change occurs.
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
, and taxPortions
fields are calculated based on the taxRoundingMode
.
Tax Rates are selected automatically from the TaxCategories based on the Cart shippingAddress
. This is the default tax mode for a new Cart.
The totalNet
, totalGross
, and taxPortions
fields are calculated based on the taxRoundingMode
.
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
, and taxPortions
fields are calculated based on the taxRoundingMode
.
Tax Rates are set externally with ExternalTaxRateDraft. A Cart can be ordered only if all Line Items, Custom Line Items, and the Shipping Method have an external Tax Rate set.
The totalNet
, totalGross
, and taxPortions
fields are calculated based on the taxRoundingMode
.
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. Also the Cart taxedPrice
field must be explicitly set via Set Cart Total Tax. Since the API currently does not offer an update action for setting the taxedShippingPrice
field of a Cart with ExternalAmount
tax mode, it will always be empty.
Tax amounts, Tax Rates, and tax portions are set externally with 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.
The Cart taxedPrice
field must be set using Set Cart Total Tax. The Cart taxedShippingPrice
field is always empty in this tax mode.
Price-affecting update actions on Carts require external recalculation of the total gross price. In these cases, taxedPrice
and taxRate
are removed and must be set again. The order in which the individual update actions are issued is important:
Issue the price-affecting update action(s).
Update the tax amounts using Set LineItem TaxAmount, Set CustomLineItem TaxAmount, or Set ShippingMethod TaxAmount.
+If the update action changes the Line Item price, for Line Items with Platform
LineItemPriceMode, you must issue Set LineItem TaxAmount in a separate request.
If the update action removes the externally set tax amount for the Shipping Method, you must issue Set ShippingMethod TaxAmount in a separate request.
Update the taxedPrice
on Cart using Set Cart Total Tax.
Tax-inclusive pricing should be avoided when using TaxMode ExternalAmount
because taxedItemPrice.totalNet
is automatically set by the platform to the Line Item's totalPrice
.
No taxes are added to the Cart.
-Note that this tax mode cannot be set on the My Carts API.
*/ +Can be used if the Cart has the ExternalAmount
TaxMode.
Can be used if the Cart has the ExternalAmount
TaxMode. This update action sets the taxedPrice
and taxRate
on a Line Item and must be used after any price-affecting change occurs.
Can be used if the Cart has the ExternalAmount
TaxMode.
Can be used if the Cart has the ExternalAmount
TaxMode. This update action sets the taxedPrice
and taxRate
on a Line Item and must be used after any price-affecting change occurs.