diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt index 589c669f..a5b27a50 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt @@ -36,7 +36,9 @@ data class OrderForCalculate( val type: DiscountType? = null, val base: DiscountBase? = null, val orderTotal: Double? = null, - val description: String? = null + val description: String? = null, + val appliesToProducts: List? = null, + val appliesToItems: List? = null, ) data class OrderItemDiscountInfo( diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/result/CalculateOrderDetailsResult.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/result/CalculateOrderDetailsResult.kt index 6fd2f141..efc3823a 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/result/CalculateOrderDetailsResult.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/result/CalculateOrderDetailsResult.kt @@ -95,7 +95,9 @@ data class CalculateOrderDetailsResult( val type: DiscountType? = null, val base: DiscountBase? = null, val orderTotal: Double? = null, - val description: String? = null + val description: String? = null, + val appliesToProducts: List? = null, + val appliesToItems: List? = null, ) data class OrderItemDiscountInfo( diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CalculateOrderDetailsResultRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CalculateOrderDetailsResultRules.kt index ff133251..e2e1b409 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CalculateOrderDetailsResultRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/CalculateOrderDetailsResultRules.kt @@ -26,6 +26,8 @@ val calculateOrderDetailsResultNullablePropertyRules: List> = l IgnoreNullable(OrderForCalculate.DiscountInfo::orderTotal), IgnoreNullable(OrderForCalculate.DiscountInfo::type), IgnoreNullable(OrderForCalculate.DiscountInfo::value), + AllowNullable(OrderForCalculate.DiscountInfo::appliesToProducts), + AllowNullable(OrderForCalculate.DiscountInfo::appliesToItems), AllowNullable(OrderForCalculate.HandlingFee::description), AllowNullable(OrderForCalculate.HandlingFee::name), AllowNullable(OrderForCalculate.HandlingFee::taxes),