Skip to content

Commit

Permalink
ECWID-127029 OE2: tax reverse is ignored when editing order: added cu…
Browse files Browse the repository at this point in the history
…stomerTaxId into OrderForCalculate
  • Loading branch information
zont163 committed Oct 11, 2023
1 parent 80fb8b2 commit b4114ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ data class OrderForCalculate(
val ipAddress: String? = null,
val customerId: Int? = null,
val customerTaxExempt: Boolean? = null,
val customerTaxId: String? = null,
val reversedTaxApplied: Boolean? = null,
val discountCoupon: DiscountCouponInfo? = null,
val items: List<OrderItem>? = null,
val billingPerson: PersonInfo? = null,
Expand All @@ -24,7 +26,6 @@ data class OrderForCalculate(
val giftCardCode: String? = null,
val giftCardId: Int? = null,
val giftCardTransactionOrderId: Int? = null,
val reversedTaxApplied: Boolean? = null,
) : ApiRequestDTO {

data class DiscountInfo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable
val orderForCalculateNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
IgnoreNullable(OrderForCalculate::billingPerson),
IgnoreNullable(OrderForCalculate::customerId),
AllowNullable(OrderForCalculate::customerTaxId),
AllowNullable(OrderForCalculate::customerTaxExempt),
AllowNullable(OrderForCalculate::customSurcharges),
IgnoreNullable(OrderForCalculate::discountCoupon),
Expand Down

0 comments on commit b4114ea

Please sign in to comment.