From fff11ecb0440e32af2990d2ba0e4f490ea7e0a11 Mon Sep 17 00:00:00 2001 From: Hripsime Vardanyan Date: Wed, 27 Aug 2025 17:08:53 +0400 Subject: [PATCH] ECWID-170495: Add new field in Order object to specify whether the tax is already deducted from shipping or not. --- .../ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt | 2 +- .../v3/rule/nullablepropertyrules/OrderForCalculateRules.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 d3dd4efc..bf5e94e9 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,7 +79,7 @@ data class OrderForCalculate( val price: Double? = null, val productPrice: Double? = null, - val taxAlreadyDeductedFromPrice: Boolean? = null, + val taxAlreadyDeducted: 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 3a6e1a3e..6f07de9d 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,7 +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::taxAlreadyDeducted), AllowNullable(OrderForCalculate.OrderItem::needCalculateWholesalePrice), IgnoreNullable(OrderForCalculate.OrderItem::price), IgnoreNullable(OrderForCalculate.OrderItem::productId),