We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f43d47 commit 9091193Copy full SHA for 9091193
1 file changed
src/test/kotlin/com/ecwid/apiclient/v3/entity/CartsTest.kt
@@ -694,9 +694,21 @@ private fun UpdatedOrder.cleanupForComparison(order: UpdatedOrder): UpdatedOrder
694
option.copy(
695
valueTranslated = order.items?.get(index)?.selectedOptions?.get(optIndex)?.valueTranslated
696
)
697
+ },
698
+ discounts = order.items?.get(index)?.discounts?.mapIndexed { discountIndex, discount ->
699
+ discount.copy(
700
+ discountInfo = order.items?.get(index)?.discounts?.get(discountIndex)?.discountInfo?.copy(
701
+ appliesToItems = null
702
+ )
703
704
}
705
706
},
707
customerFiscalCode = null, // ApiOrder has empty string instead of null
708
+ discountInfo = order.discountInfo?.map {
709
+ it.copy(
710
711
712
+ }
713
714
0 commit comments