Skip to content

Commit 981afc0

Browse files
author
mvgreen
committed
Fix compilation error
1 parent 042fdac commit 981afc0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedOrder.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ fun FetchedOrder.HandlingFee.toUpdated(): UpdatedOrder.HandlingFee {
235235
name = name,
236236
value = value,
237237
description = description,
238-
taxes = taxes.map(FetchedOrder.BaseOrderItemTax::toUpdated)
238+
taxes = taxes.map(FetchedOrder.HandlingFeeTax::toUpdated)
239239
)
240240
}
241241

@@ -260,6 +260,14 @@ fun FetchedOrder.BaseOrderItemTax.toUpdated(): UpdatedOrder.BaseOrderItemTax {
260260
)
261261
}
262262

263+
fun FetchedOrder.HandlingFeeTax.toUpdated(): UpdatedOrder.HandlingFeeTax {
264+
return UpdatedOrder.HandlingFeeTax(
265+
name = name,
266+
value = value,
267+
total = total
268+
)
269+
}
270+
263271
fun FetchedOrder.UtmData.toUpdated(): UpdatedOrder.UtmData {
264272
return UpdatedOrder.UtmData(
265273
source = source,

0 commit comments

Comments
 (0)