Skip to content

Commit 8a7a86b

Browse files
committed
Fill in the orderTotal field in tests
1 parent 89a5602 commit 8a7a86b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/kotlin/com/ecwid/apiclient/v3/util/OrderUtils.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,20 +197,23 @@ private fun generateTestItemDiscountInfo() = UpdatedOrder.DiscountInfo(
197197
value = randomPrice(),
198198
type = randomEnumValue<DiscountType>(),
199199
base = DiscountBase.ITEM,
200+
orderTotal = randomPrice(),
200201
description = "On item discount " + randomAlphanumeric(8)
201202
)
202203

203204
private fun generateTestShippingDiscountInfo() = UpdatedOrder.DiscountInfo(
204205
value = randomPrice(),
205206
type = randomEnumValue<DiscountType>(),
206207
base = DiscountBase.SHIPPING,
208+
orderTotal = randomPrice(),
207209
description = "On shipping discount " + randomAlphanumeric(8)
208210
)
209211

210212
private fun generateTestSubtotalDiscountInfo() = UpdatedOrder.DiscountInfo(
211213
value = randomPrice(),
212214
type = randomEnumValue<DiscountType>(),
213215
base = DiscountBase.SUBTOTAL,
216+
orderTotal = randomPrice(),
214217
description = "On subtotal discount " + randomAlphanumeric(8)
215218
)
216219

0 commit comments

Comments
 (0)