From 50fd1c863a1c6464f1b015a7f26c01f1c9b0c94b Mon Sep 17 00:00:00 2001 From: Hripsime Vardanyan Date: Fri, 19 Sep 2025 12:08:12 +0400 Subject: [PATCH] ECWID-172634: Add a new field in OrderForCalculate to check if the request came from Order Editor. --- .../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 3c7f775f..414fb970 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 @@ -31,6 +31,7 @@ data class OrderForCalculate( val giftCardRedemption: Double? = null, val totalBeforeGiftCardRedemption: Double? = null, val giftCardDoubleSpending: Boolean? = null, + val fromOE: Boolean? = false, ) : ApiRequestDTO { data class DiscountInfo( 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 0938d68d..54517f3d 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 @@ -29,6 +29,7 @@ val orderForCalculateNullablePropertyRules: List> = l AllowNullable(OrderForCalculate::taxAlreadyDeductedFromShipping), AllowNullable(OrderForCalculate::shippingOption), IgnoreNullable(OrderForCalculate::shippingPerson), + AllowNullable(OrderForCalculate::fromOE), AllowNullable(OrderForCalculate.CustomSurcharge::description), AllowNullable(OrderForCalculate.CustomSurcharge::id), AllowNullable(OrderForCalculate.CustomSurcharge::taxable),