From 7c953243fea414bf866a38469eaf966a3a3b14aa Mon Sep 17 00:00:00 2001 From: Hripsime Vardanyan Date: Fri, 22 Aug 2025 11:49:46 +0400 Subject: [PATCH] ECWID-170192: Add a new field in the OrderForCalculate request for items to indicate whether the taxes have already been applied to the prices or not. --- .../com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt | 1 + .../v3/rule/nullablepropertyrules/OrderForCalculateRules.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt index 661c1394..d3dd4efc 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt @@ -79,6 +79,7 @@ data class OrderForCalculate( val price: Double? = null, val productPrice: Double? = null, + val taxAlreadyDeductedFromPrice: Boolean? = null, val needCalculateWholesalePrice: Boolean? = null, val isCustomerSetPrice: Boolean? = null, val selectedPrice: SelectedPrice? = null, diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrderForCalculateRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrderForCalculateRules.kt index e8b83e75..3a6e1a3e 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrderForCalculateRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrderForCalculateRules.kt @@ -77,6 +77,7 @@ val orderForCalculateNullablePropertyRules: List> = l IgnoreNullable(OrderForCalculate.OrderItem::imageUrl), IgnoreNullable(OrderForCalculate.OrderItem::isShippingRequired), IgnoreNullable(OrderForCalculate.OrderItem::name), + AllowNullable(OrderForCalculate.OrderItem::taxAlreadyDeductedFromPrice), AllowNullable(OrderForCalculate.OrderItem::needCalculateWholesalePrice), IgnoreNullable(OrderForCalculate.OrderItem::price), IgnoreNullable(OrderForCalculate.OrderItem::productId),