Skip to content

Commit d15de57

Browse files
authored
Merge pull request #510 from Ecwid/ECWID-169962
ECWID-169962: Add a new field in the OrderForCalculate request to indicate whether the taxes have already been applied to the prices or not.
2 parents 7c3a4d7 + 55e24e2 commit d15de57

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
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+
val 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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ val orderForCalculateNullablePropertyRules: List<NullablePropertyRule<*, *>> = l
2626
IgnoreNullable(OrderForCalculate::items),
2727
AllowNullable(OrderForCalculate::paymentOptionsDetails),
2828
AllowNullable(OrderForCalculate::reversedTaxApplied),
29+
AllowNullable(OrderForCalculate::taxAlreadyDeductedFromPrice),
2930
AllowNullable(OrderForCalculate::shippingOption),
3031
IgnoreNullable(OrderForCalculate::shippingPerson),
3132
AllowNullable(OrderForCalculate.CustomSurcharge::description),

0 commit comments

Comments
 (0)