From 62cd39129557690f9eba9bb3af4ee1c61dd79cf3 Mon Sep 17 00:00:00 2001 From: Oleg Shchelykalnov Date: Tue, 11 Mar 2025 14:30:48 +0400 Subject: [PATCH] ECWID-159429 OE2: add delivery time slot to ecwid-java-api-client --- .../com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt | 1 + .../com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt | 1 + .../apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt index 65f7bd4d6..f2a3f7949 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt @@ -348,6 +348,7 @@ data class FetchedOrder( val isShippingLimit: Boolean? = null, val scheduled: Boolean? = null, val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null, + val timeSlotLengthInMinutes: Int? = null, ) data class HandlingFee( diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt index ff0e84f99..17d43c1ad 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt @@ -226,6 +226,7 @@ val nonUpdatablePropertyRules: List> = listOf( ReadOnly(FetchedOrder.ShippingOption::isShippingLimit), ReadOnly(FetchedOrder.ShippingOption::scheduled), ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType), + ReadOnly(FetchedOrder.ShippingOption::timeSlotLengthInMinutes), ReadOnly(FetchedOrder.HandlingFee::valueWithoutTax), ReadOnly(FetchedOrder.Surcharge::totalWithoutTax), Ignored(FetchedOrder::refundedAmount), diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt index 5dbde3a33..4e9898e42 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt @@ -187,6 +187,7 @@ val fetchedOrderNullablePropertyRules: List> = listOf AllowNullable(FetchedOrder.ShippingOption::localizedLabel), AllowNullable(FetchedOrder.ShippingOption::scheduled), AllowNullable(FetchedOrder.ShippingOption::scheduledTimePrecisionType), + AllowNullable(FetchedOrder.ShippingOption::timeSlotLengthInMinutes), AllowNullable(FetchedOrder.ShippingServiceInfo::carrier), AllowNullable(FetchedOrder.ShippingServiceInfo::carrierName), AllowNullable(FetchedOrder.ShippingServiceInfo::carrierServiceCode),