From 55e24e2b9d2960947c42da0a2d9a47d257436b26 Mon Sep 17 00:00:00 2001 From: Hripsime Vardanyan Date: Mon, 18 Aug 2025 19:56:09 +0400 Subject: [PATCH] ECWID-169962: Add a new field in the OrderForCalculate request 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 341800cf..661c1394 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 @@ -14,6 +14,7 @@ data class OrderForCalculate( val customerTaxExempt: Boolean? = null, val customerTaxId: String? = null, val reversedTaxApplied: Boolean? = null, + val taxAlreadyDeductedFromPrice: Boolean? = null, val discountCoupon: DiscountCouponInfo? = null, val items: List? = null, val billingPerson: PersonInfo? = 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 eab14644..e8b83e75 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 @@ -26,6 +26,7 @@ val orderForCalculateNullablePropertyRules: List> = l IgnoreNullable(OrderForCalculate::items), AllowNullable(OrderForCalculate::paymentOptionsDetails), AllowNullable(OrderForCalculate::reversedTaxApplied), + AllowNullable(OrderForCalculate::taxAlreadyDeductedFromPrice), AllowNullable(OrderForCalculate::shippingOption), IgnoreNullable(OrderForCalculate::shippingPerson), AllowNullable(OrderForCalculate.CustomSurcharge::description),