From c0093eb450f7f026e588329e4f5188a06187b216 Mon Sep 17 00:00:00 2001 From: Igor Malinyak Date: Wed, 6 Dec 2023 14:48:05 +0400 Subject: [PATCH] ECWID-115413 Add the discountsAllowed flag to the order item in the custom app request --- .../kotlin/com/ecwid/apiclient/v3/dto/custom/CustomAppRequest.kt | 1 + .../v3/rule/nullablepropertyrules/CustomAppRequestRules.kt | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/custom/CustomAppRequest.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/custom/CustomAppRequest.kt index 9fa2f14d1..56f692502 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/custom/CustomAppRequest.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/custom/CustomAppRequest.kt @@ -99,6 +99,7 @@ data class CustomAppRequest( val relatedProducts: RelatedProducts? = null, val combinations: List? = null, val showOnFrontpage: Int? = null, + val discountsAllowed: Boolean? = null, val externalReferenceId: String? = null ) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomAppRequestRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomAppRequestRules.kt index 1cb3801b8..0a0258d7a 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomAppRequestRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CustomAppRequestRules.kt @@ -102,6 +102,7 @@ val customAppRequestNullablePropertyRules: List> = li AllowNullable(CustomAppRequest.OrderItem::defaultCategoryId), AllowNullable(CustomAppRequest.OrderItem::defaultCombinationId), AllowNullable(CustomAppRequest.OrderItem::dimensions), + AllowNullable(CustomAppRequest.OrderItem::discountsAllowed), AllowNullable(CustomAppRequest.OrderItem::enabled), AllowNullable(CustomAppRequest.OrderItem::favorites), AllowNullable(CustomAppRequest.OrderItem::fixedShippingRate),