Skip to content

Commit

Permalink
ECWID-134924 OE2: add scheduled fields to ecwid-java-api-client — add…
Browse files Browse the repository at this point in the history
…ed to FetchedOrder
  • Loading branch information
qblake committed Feb 26, 2024
1 parent 977df11 commit 52c8b84
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
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 ScheduledTimePrecisionType {
DATE,
DATE_AND_TIME_SLOT,
}
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ data class FetchedOrder(
val locationId: String? = null,
val localizedLabel: String? = null,
val isShippingLimit: Boolean? = null,
val scheduled: Boolean? = null,
val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null,
)

data class HandlingFee(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
ReadOnly(FetchedOrder.ShippingOption::shippingRateWithoutTax),
ReadOnly(FetchedOrder.ShippingOption::localizedLabel),
ReadOnly(FetchedOrder.ShippingOption::isShippingLimit),
ReadOnly(FetchedOrder.ShippingOption::scheduled),
ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
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 @@ -182,6 +182,8 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
IgnoreNullable(FetchedOrder.ShippingOption::shippingRate),
AllowNullable(FetchedOrder.ShippingOption::isShippingLimit),
AllowNullable(FetchedOrder.ShippingOption::localizedLabel),
AllowNullable(FetchedOrder.ShippingOption::scheduled),
AllowNullable(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
AllowNullable(FetchedOrder.ShippingServiceInfo::carrier),
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierName),
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierServiceCode),
Expand Down

0 comments on commit 52c8b84

Please sign in to comment.