Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fun FetchedShippingOption.toUpdated(): UpdatedShippingOption {
pickupInstruction = pickupInstruction,
pickupInstructionTranslated = pickupInstructionTranslated,
scheduledPickup = scheduledPickup,
pickupPrecisionType = pickupPrecisionType,
type = type,
carrier = carrier,
carrierSettings = carrierSettings?.toUpdate(),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.ecwid.apiclient.v3.dto.order.enums

@Suppress("unused")
enum class PickupPrecisionType {
DATE_ONLY,
DATE_AND_TIME,
}
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ data class FetchedOrder(
val estimatedTransitTime: String? = null,
val isPickup: Boolean? = null,
val pickupInstruction: String? = null,
val pickupPrecisionType: PickupPrecisionType? = null,
val fulfillmentType: FulfillmentType? = null,
val locationId: String? = null,
val localizedLabel: String? = null,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.ecwid.apiclient.v3.dto.profile.enums

@Suppress("unused")
enum class PickupPrecisionType {
DATE_ONLY,
DATE_AND_TIME,
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ data class UpdatedShippingOption(
val pickupPreparationTimeHours: Int? = null,
val pickupBusinessHours: String? = null,
val scheduledPickup: Boolean? = null,
val pickupPrecisionType: PickupPrecisionType? = null,
val type: String? = null,
val carrier: String? = null,
val carrierMethods: List<CarrierMethod>? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ data class FetchedShippingOption(
val pickupPreparationTimeHours: Int? = null,
val pickupBusinessHours: String? = null,
val scheduledPickup: Boolean? = null,
val pickupPrecisionType: PickupPrecisionType? = null,
val type: String? = null,
val carrier: String? = null,
val carrierMethods: List<CarrierMethod>? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
ReadOnly(FetchedOrder.ShippingOption::scheduled),
ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
ReadOnly(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
ReadOnly(FetchedOrder.ShippingOption::pickupPrecisionType),
ReadOnly(FetchedOrder.HandlingFee::valueWithoutTax),
ReadOnly(FetchedOrder.Surcharge::totalWithoutTax),
Ignored(FetchedOrder::refundedAmount),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
AllowNullable(FetchedOrder.ShippingOption::scheduled),
AllowNullable(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
AllowNullable(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
AllowNullable(FetchedOrder.ShippingOption::pickupPrecisionType),
AllowNullable(FetchedOrder.ShippingServiceInfo::carrier),
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierName),
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierServiceCode),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ val fetchedShippingOptionNullablePropertyRules: List<NullablePropertyRule<*, *>>
AllowNullable(FetchedShippingOption::pickupInstructionTranslated),
AllowNullable(FetchedShippingOption::pickupBusinessHours),
AllowNullable(FetchedShippingOption::pickupPreparationTimeHours),
AllowNullable(FetchedShippingOption::pickupPrecisionType),
AllowNullable(FetchedShippingOption::type),
AllowNullable(FetchedShippingOption::carrier),
AllowNullable(FetchedShippingOption::carrierSettings),
Expand Down