Skip to content

Commit e9b29c9

Browse files
authored
Merge pull request #564 from Ecwid/long-variation-id
Long variation ID
2 parents 5617bcb + 5ac9d9a commit e9b29c9

19 files changed

Lines changed: 25 additions & 18 deletions

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
@@ -111,7 +111,7 @@ data class OrderForCalculate(
111111
val giftCard: Boolean? = null,
112112

113113
val selectedOptions: List<OrderItemOption>? = null,
114-
val combinationId: Int? = null,
114+
val combinationId: Long? = null,
115115
val taxes: List<OrderItemTax>? = null,
116116
val files: List<OrderItemProductFile>? = null,
117117
val dimensions: ProductDimensions? = 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
@@ -166,7 +166,7 @@ data class CalculateOrderDetailsResult(
166166
val giftCard: Boolean? = null,
167167

168168
val selectedOptions: List<OrderItemOption>? = null,
169-
val combinationId: Int? = null,
169+
val combinationId: Long? = null,
170170
val taxes: List<OrderItemTax>? = null,
171171
val files: List<OrderItemProductFile>? = null,
172172
val dimensions: ProductDimensions? = null,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ data class FetchedCart(
153153
val giftCard: Boolean? = null,
154154

155155
val selectedOptions: List<OrderItemOption>? = null,
156-
val combinationId: Int? = null,
156+
val combinationId: Long? = null,
157157
val taxes: List<OrderItemTax>? = null,
158158
val files: List<OrderItemProductFile>? = null,
159159
val dimensions: ProductDimensions? = null,

src/main/kotlin/com/ecwid/apiclient/v3/dto/custom/CustomAppRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ data class CustomAppRequest(
8282
val updated: String? = null,
8383
val createTimestamp: Long? = null,
8484
val updateTimestamp: Long? = null,
85-
val defaultCombinationId: Int? = null,
85+
val defaultCombinationId: Long? = null,
8686
val imageUrl: String? = null,
8787
val thumbnailUrl: String? = null,
8888
val smallThumbnailUrl: String? = null,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ data class UpdatedOrder(
176176
val giftCard: Boolean? = null,
177177

178178
val selectedOptions: List<OrderItemSelectedOption>? = null,
179-
val combinationId: Int? = null,
179+
val combinationId: Long? = null,
180180
val taxes: List<OrderItemTax>? = null,
181181
val dimensions: ProductDimensions? = null,
182182
val discountsAllowed: Boolean? = null,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ data class FetchedOrder(
218218
val subscriptionId: Long? = null,
219219

220220
val selectedOptions: List<OrderItemSelectedOption>? = null,
221-
val combinationId: Int? = null,
221+
val combinationId: Long? = null,
222222
val files: List<OrderItemProductFile>? = null,
223223
val taxable: Boolean? = null,
224224
val taxes: List<OrderItemTax>? = null,

src/main/kotlin/com/ecwid/apiclient/v3/dto/product/result/FetchedProduct.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ data class FetchedProduct(
120120
val files: List<ProductFile>? = null,
121121
val favorites: FavoritesStats? = null, // TODO Figure out how to test
122122

123-
val defaultCombinationId: Int? = null, // TODO implement combinations support
123+
val defaultCombinationId: Long? = null, // TODO implement combinations support
124124
val combinations: List<FetchedVariation>? = null, // TODO implement combinations support
125125
val isGiftCard: Boolean? = null, // TODO from ECWID-67826: this flag is read-only. API for creating gift cards in the plans (BACKLOG-4157)
126126
val discountsAllowed: Boolean? = null,

src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/AdjustVariationInventoryRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.ecwid.apiclient.v3.impl.RequestInfo
66

77
data class AdjustVariationInventoryRequest(
88
val productId: Int = 0,
9-
val variationId: Int = 0,
9+
val variationId: Long = 0,
1010
val checkLowStockNotification: Boolean = false,
1111
val quantityDelta: Int = 0
1212
) : ApiRequest {

src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/DeleteProductVariationRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.ecwid.apiclient.v3.impl.RequestInfo
55

66
data class DeleteProductVariationRequest(
77
val productId: Int = 0,
8-
val variationId: Int = 0
8+
val variationId: Long = 0
99
) : ApiRequest {
1010
override fun toRequestInfo() = RequestInfo.createDeleteRequest(
1111
pathSegments = listOf(

src/main/kotlin/com/ecwid/apiclient/v3/dto/variation/request/ProductVariationDetailsRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.ecwid.apiclient.v3.responsefields.ResponseFields
66

77
data class ProductVariationDetailsRequest(
88
val productId: Int = 0,
9-
val variationId: Int = 0,
9+
val variationId: Long = 0,
1010
val responseFields: ResponseFields = ResponseFields.All,
1111
) : ApiRequest {
1212
override fun toRequestInfo() = RequestInfo.createGetRequest(

0 commit comments

Comments
 (0)