Skip to content

Commit 7baf859

Browse files
committed
ECWID-134924 OE2: add scheduled fields to ecwid-java-api-client: added fields
1 parent 81ac542 commit 7baf859

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,17 @@ data class FetchedStoreProfile(
283283
val pickupInstruction: String? = null,
284284
val scheduledPickup: Boolean? = null,
285285
val pickupPreparationTimeHours: Int? = null,
286-
val pickupBusinessHours: String? = null
286+
val pickupBusinessHours: String? = null,
287+
val scheduled: Boolean? = null,
288+
val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null,
287289
)
288290

291+
@Suppress("unused")
292+
enum class ScheduledTimePrecisionType {
293+
DATE,
294+
DATE_AND_TIME_SLOT;
295+
}
296+
289297
@Suppress("unused")
290298
enum class FulfilmentType {
291299
pickup, shipping, delivery

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
317317
IgnoreNullable(FetchedStoreProfile.ShippingOption::scheduledPickup),
318318
IgnoreNullable(FetchedStoreProfile.ShippingOption::shippingCostMarkup),
319319
IgnoreNullable(FetchedStoreProfile.ShippingOption::title),
320+
AllowNullable(FetchedStoreProfile.ShippingOption::scheduled),
321+
AllowNullable(FetchedStoreProfile.ShippingOption::scheduledTimePrecisionType),
320322
IgnoreNullable(FetchedStoreProfile.ShippingOrigin::city),
321323
IgnoreNullable(FetchedStoreProfile.ShippingOrigin::companyName),
322324
IgnoreNullable(FetchedStoreProfile.ShippingOrigin::countryCode),

0 commit comments

Comments
 (0)