diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt index 2e049e4b..d84ddfc3 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt @@ -204,6 +204,7 @@ fun FetchedStoreProfile.FormatsAndUnits.toUpdated(): UpdatedStoreProfile.Formats dateFormat = dateFormat, timeFormat = timeFormat, timezone = timezone, + timezoneOffsetInMinutes = timezoneOffsetInMinutes, dimensionsUnit = dimensionsUnit?.toUpdated(), volumeUnit = volumeUnit.toUpdated(), orderNumberPrefix = orderNumberPrefix, diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt index 222bbfe2..243673dd 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt @@ -180,6 +180,7 @@ data class UpdatedStoreProfile( val dateFormat: String? = null, val timeFormat: String? = null, val timezone: String? = null, + val timezoneOffsetInMinutes: Int? = null, val dimensionsUnit: DimensionUnit? = null, val volumeUnit: VolumeUnit? = null, val orderNumberPrefix: String? = null, diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt index d2251d1a..1c4dd2d0 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt @@ -214,6 +214,7 @@ data class FetchedStoreProfile( val dateFormat: String? = null, val timeFormat: String? = null, val timezone: String? = null, + val timezoneOffsetInMinutes: Int? = null, val dimensionsUnit: DimensionUnit? = null, val volumeUnit: VolumeUnit = VolumeUnit.ML, val orderNumberPrefix: String? = null, diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt b/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt index 75977c6d..0f17a9b1 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt @@ -105,6 +105,7 @@ class StoreProfileTest : BaseEntityTest() { dateFormat = "yyyy/MM/dd", timeFormat = "HH:mm:ss", timezone = "timezone", + timezoneOffsetInMinutes = 1234567, dimensionsUnit = UpdatedStoreProfile.DimensionUnit.MM, volumeUnit = UpdatedStoreProfile.VolumeUnit.L, orderNumberPrefix = "orderNumberPrefix", diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt index b7b5987e..434501e7 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt @@ -193,6 +193,7 @@ val fetchedStoreProfileNullablePropertyRules: List> = IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::orderNumberSuffix), IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::timeFormat), IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::timezone), + AllowNullable(FetchedStoreProfile.FormatsAndUnits::timezoneOffsetInMinutes), IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightDecimalSeparator), IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightGroupSeparator), IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightPrecision),