Skip to content

Commit d909613

Browse files
committed
ECWID-159524 Additional rules for fetched order
1 parent 11666b4 commit d909613

4 files changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.ecwid.apiclient.v3.dto.order.enums
2+
3+
@Suppress("unused")
4+
enum class PickupPrecisionType {
5+
DATE_ONLY,
6+
DATE_AND_TIME,
7+
}

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
@@ -342,6 +342,7 @@ data class FetchedOrder(
342342
val estimatedTransitTime: String? = null,
343343
val isPickup: Boolean? = null,
344344
val pickupInstruction: String? = null,
345+
val pickupPrecisionType: PickupPrecisionType? = null,
345346
val fulfillmentType: FulfillmentType? = null,
346347
val locationId: String? = null,
347348
val localizedLabel: String? = null,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
227227
ReadOnly(FetchedOrder.ShippingOption::scheduled),
228228
ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
229229
ReadOnly(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
230+
ReadOnly(FetchedOrder.ShippingOption::pickupPrecisionType),
230231
ReadOnly(FetchedOrder.HandlingFee::valueWithoutTax),
231232
ReadOnly(FetchedOrder.Surcharge::totalWithoutTax),
232233
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
@@ -188,6 +188,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
188188
AllowNullable(FetchedOrder.ShippingOption::scheduled),
189189
AllowNullable(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
190190
AllowNullable(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
191+
AllowNullable(FetchedOrder.ShippingOption::pickupPrecisionType),
191192
AllowNullable(FetchedOrder.ShippingServiceInfo::carrier),
192193
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierName),
193194
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierServiceCode),

0 commit comments

Comments
 (0)