Skip to content

Commit f3398c7

Browse files
authored
Merge pull request #471 from Ecwid/ECWID-159429
ECWID-159429 OE2: add delivery time slot to ecwid-java-api-client
2 parents 582dd40 + 62cd391 commit f3398c7

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ data class FetchedOrder(
348348
val isShippingLimit: Boolean? = null,
349349
val scheduled: Boolean? = null,
350350
val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null,
351+
val timeSlotLengthInMinutes: Int? = null,
351352
)
352353

353354
data class HandlingFee(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
226226
ReadOnly(FetchedOrder.ShippingOption::isShippingLimit),
227227
ReadOnly(FetchedOrder.ShippingOption::scheduled),
228228
ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
229+
ReadOnly(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
229230
ReadOnly(FetchedOrder.HandlingFee::valueWithoutTax),
230231
ReadOnly(FetchedOrder.Surcharge::totalWithoutTax),
231232
Ignored(FetchedOrder::refundedAmount),

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
187187
AllowNullable(FetchedOrder.ShippingOption::localizedLabel),
188188
AllowNullable(FetchedOrder.ShippingOption::scheduled),
189189
AllowNullable(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
190+
AllowNullable(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
190191
AllowNullable(FetchedOrder.ShippingServiceInfo::carrier),
191192
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierName),
192193
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierServiceCode),

0 commit comments

Comments
 (0)