Skip to content

Commit f53a93e

Browse files
committed
ECWID-134977 OE2: if an advanced discount is used for a product and more items are added to an order, the total is calculated incorrectly: changed type to list to avoid exception on build
1 parent e2fc235 commit f53a93e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/UpdatedOrder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ data class UpdatedOrder(
108108
val base: DiscountBase? = null,
109109
val orderTotal: Double? = null,
110110
val description: String? = null,
111-
val appliesToProducts: Set<Int?>? = null,
112-
val appliesToItems: Set<Long>? = null,
111+
val appliesToProducts: List<Int>? = null,
112+
val appliesToItems: List<Long>? = null,
113113
)
114114

115115
data class DiscountCouponInfo(

src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ data class FetchedOrder(
129129
val base: DiscountBase? = null,
130130
val orderTotal: Double? = null,
131131
val description: String? = null,
132-
val appliesToProducts: Set<Int?>? = null,
133-
val appliesToItems: Set<Long>? = null,
132+
val appliesToProducts: List<Int>? = null,
133+
val appliesToItems: List<Long>? = null,
134134
)
135135

136136
data class DiscountCouponInfo(

0 commit comments

Comments
 (0)