Skip to content

Commit

Permalink
ECWID-134924 OE2: add scheduled fields to ecwid-java-api-client: adde…
Browse files Browse the repository at this point in the history
…d fields
  • Loading branch information
zont163 committed Feb 15, 2024
1 parent 81ac542 commit 7baf859
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,17 @@ data class FetchedStoreProfile(
val pickupInstruction: String? = null,
val scheduledPickup: Boolean? = null,
val pickupPreparationTimeHours: Int? = null,
val pickupBusinessHours: String? = null
val pickupBusinessHours: String? = null,
val scheduled: Boolean? = null,
val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null,
)

@Suppress("unused")
enum class ScheduledTimePrecisionType {
DATE,
DATE_AND_TIME_SLOT;

Check warning

Code scanning / detekt

Detects semicolons Warning

Unnecessary semicolon
}

@Suppress("unused")
enum class FulfilmentType {
pickup, shipping, delivery
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
IgnoreNullable(FetchedStoreProfile.ShippingOption::scheduledPickup),
IgnoreNullable(FetchedStoreProfile.ShippingOption::shippingCostMarkup),
IgnoreNullable(FetchedStoreProfile.ShippingOption::title),
AllowNullable(FetchedStoreProfile.ShippingOption::scheduled),
AllowNullable(FetchedStoreProfile.ShippingOption::scheduledTimePrecisionType),
IgnoreNullable(FetchedStoreProfile.ShippingOrigin::city),
IgnoreNullable(FetchedStoreProfile.ShippingOrigin::companyName),
IgnoreNullable(FetchedStoreProfile.ShippingOrigin::countryCode),
Expand Down

0 comments on commit 7baf859

Please sign in to comment.