Skip to content

Commit 8cfc249

Browse files
committed
ECWID-169962: Add a new field in the OrderForCalculate request to indicate whether the taxes have already been applied to the prices or not.
1 parent 57ff3e0 commit 8cfc249

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ data class OrderForCalculate(
1414
val customerTaxExempt: Boolean? = null,
1515
val customerTaxId: String? = null,
1616
val reversedTaxApplied: Boolean? = null,
17+
var taxAlreadyDeductedFromPrice: Boolean? = null,
1718
val discountCoupon: DiscountCouponInfo? = null,
1819
val items: List<OrderItem>? = null,
1920
val billingPerson: PersonInfo? = null,

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/OrderForCalculateRules.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ val orderForCalculateNullablePropertyRules: List<NullablePropertyRule<*, *>> = l
2525
IgnoreNullable(OrderForCalculate::ipAddress),
2626
IgnoreNullable(OrderForCalculate::items),
2727
AllowNullable(OrderForCalculate::paymentOptionsDetails),
28-
AllowNullable(OrderForCalculate::reversedTaxApplied),
28+
AllowNullable(OrderForCalculate::taxAlreadyDeductedFromPrice),
2929
AllowNullable(OrderForCalculate::shippingOption),
3030
IgnoreNullable(OrderForCalculate::shippingPerson),
3131
AllowNullable(OrderForCalculate.CustomSurcharge::description),

0 commit comments

Comments
 (0)