Skip to content

Commit 0f07679

Browse files
authored
Merge pull request #553 from Ecwid/ECOM-15903
ECOM-15903: Change order item id type to Long in OrderForCalculate and CalculateOrderDetailsResult classes.
2 parents d4edf31 + 027e276 commit 0f07679

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ data class OrderForCalculate(
7373
)
7474

7575
data class OrderItem(
76-
val id: Int? = null,
76+
val id: Long? = null,
7777

7878
val productId: Int? = null,
7979
val categoryId: Int? = null,

src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/result/CalculateOrderDetailsResult.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ data class CalculateOrderDetailsResult(
131131
)
132132

133133
data class OrderItem(
134-
val id: Int? = null,
134+
val id: Long? = null,
135135

136136
val productId: Int? = null,
137137
val categoryId: Int? = null,

src/test/kotlin/com/ecwid/apiclient/v3/entity/CartsTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ class CartsTest : BaseEntityTest() {
477477

478478
private fun generateTestItem(): OrderForCalculate.OrderItem {
479479
return OrderForCalculate.OrderItem(
480-
id = randomId(),
480+
id = randomId().toLong(),
481481
productId = randomId(),
482482
categoryId = randomId(),
483483
price = 22.2,

0 commit comments

Comments
 (0)