Skip to content

Commit 31cae48

Browse files
ECWID-155668 Add "updateShippingOption" method to ecwid-java-api-client - (refactor) replace typealias with string
1 parent 0d32e13 commit 31cae48

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedShippingOption.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data class UpdatedShippingOption(
3131
val carrier: String? = null,
3232
val carrierMethods: List<CarrierMethod>? = null,
3333
val carrierSettings: CarrierSettings? = null,
34-
val businessHours: BusinessHours? = null,
34+
val businessHours: String? = null,
3535
val businessHoursLimitationType: ApiBusinessHoursLimitationType? = null,
3636
val allowSameDayDelivery: Boolean? = null,
3737
val deliveryTimeDays: String? = null,
@@ -121,5 +121,3 @@ data class UpdatedShippingOption(
121121
return ApiUpdatedDTO.ModifyKind.ReadWrite(FetchedShippingOption::class)
122122
}
123123
}
124-
125-
typealias BusinessHours = Map<String, List<List<String>>>

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ data class FetchedShippingOption(
3131
val carrier: String? = null,
3232
val carrierMethods: List<CarrierMethod>? = null,
3333
val carrierSettings: CarrierSettings? = null,
34-
val businessHours: BusinessHours? = null,
34+
val businessHours: String? = null,
3535
val businessHoursLimitationType: ApiBusinessHoursLimitationType? = null,
3636
val allowSameDayDelivery: Boolean? = null,
3737
val deliveryTimeDays: String? = null,
@@ -122,5 +122,3 @@ data class FetchedShippingOption(
122122
return ApiFetchedDTO.ModifyKind.ReadWrite(UpdatedShippingOption::class)
123123
}
124124
}
125-
126-
typealias BusinessHours = Map<String, List<List<String>>>

0 commit comments

Comments
 (0)