From 31cae48556d98abcfa14fe1c284f6175a8da3532 Mon Sep 17 00:00:00 2001 From: Roman Timchenko Date: Wed, 22 Jan 2025 11:19:14 +0400 Subject: [PATCH] ECWID-155668 Add "updateShippingOption" method to ecwid-java-api-client - (refactor) replace typealias with string --- .../apiclient/v3/dto/profile/request/UpdatedShippingOption.kt | 4 +--- .../apiclient/v3/dto/profile/result/FetchedShippingOption.kt | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedShippingOption.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedShippingOption.kt index 7533f00b..3ebd20ad 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedShippingOption.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedShippingOption.kt @@ -31,7 +31,7 @@ data class UpdatedShippingOption( val carrier: String? = null, val carrierMethods: List? = null, val carrierSettings: CarrierSettings? = null, - val businessHours: BusinessHours? = null, + val businessHours: String? = null, val businessHoursLimitationType: ApiBusinessHoursLimitationType? = null, val allowSameDayDelivery: Boolean? = null, val deliveryTimeDays: String? = null, @@ -121,5 +121,3 @@ data class UpdatedShippingOption( return ApiUpdatedDTO.ModifyKind.ReadWrite(FetchedShippingOption::class) } } - -typealias BusinessHours = Map>> diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedShippingOption.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedShippingOption.kt index 78e48796..caf93309 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedShippingOption.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedShippingOption.kt @@ -31,7 +31,7 @@ data class FetchedShippingOption( val carrier: String? = null, val carrierMethods: List? = null, val carrierSettings: CarrierSettings? = null, - val businessHours: BusinessHours? = null, + val businessHours: String? = null, val businessHoursLimitationType: ApiBusinessHoursLimitationType? = null, val allowSameDayDelivery: Boolean? = null, val deliveryTimeDays: String? = null, @@ -122,5 +122,3 @@ data class FetchedShippingOption( return ApiFetchedDTO.ModifyKind.ReadWrite(UpdatedShippingOption::class) } } - -typealias BusinessHours = Map>>