Skip to content

Commit bc6d4ae

Browse files
author
fialka
committed
ECWID-102900 Order quantity limits for products: storefront
- test failed - add new fields min/max to as AllowNullable() - add new fields min/max to UpdateProduct.kt
1 parent 63353d0 commit bc6d4ae

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/product/request/UpdatedProduct.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ data class UpdatedProduct(
6262
val productCondition: ProductCondition? = null,
6363
val externalReferenceId: String? = null,
6464
val customsHsTariffCode: String? = null,
65+
val minPurchaseQuantity: Int? = null,
66+
val maxPurchaseQuantity: Int? = null,
6567
) : ApiUpdatedDTO {
6668

6769
data class Ribbon(

src/test/kotlin/com/ecwid/apiclient/v3/rule/NullablePropertyRules.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ val otherNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
6868
IgnoreNullable(ProductInventoryUpdateResult::warning),
6969

7070
AllowNullable(FetchedStorageData::value),
71+
AllowNullable(FetchedProduct::minPurchaseQuantity),
72+
AllowNullable(FetchedProduct::maxPurchaseQuantity),
7173
)
7274

7375
val nullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(

0 commit comments

Comments
 (0)