Skip to content

Commit 4fd282c

Browse files
committed
ECWID-159628 Template market: add timezoneOffsetInMinutes to apigate
1 parent 582dd40 commit 4fd282c

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ fun FetchedStoreProfile.FormatsAndUnits.toUpdated(): UpdatedStoreProfile.Formats
204204
dateFormat = dateFormat,
205205
timeFormat = timeFormat,
206206
timezone = timezone,
207+
timezoneOffsetInMinutes = timezoneOffsetInMinutes,
207208
dimensionsUnit = dimensionsUnit?.toUpdated(),
208209
volumeUnit = volumeUnit.toUpdated(),
209210
orderNumberPrefix = orderNumberPrefix,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ data class UpdatedStoreProfile(
180180
val dateFormat: String? = null,
181181
val timeFormat: String? = null,
182182
val timezone: String? = null,
183+
val timezoneOffsetInMinutes: Int? = null,
183184
val dimensionsUnit: DimensionUnit? = null,
184185
val volumeUnit: VolumeUnit? = null,
185186
val orderNumberPrefix: String? = null,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ data class FetchedStoreProfile(
214214
val dateFormat: String? = null,
215215
val timeFormat: String? = null,
216216
val timezone: String? = null,
217+
val timezoneOffsetInMinutes: Int? = null,
217218
val dimensionsUnit: DimensionUnit? = null,
218219
val volumeUnit: VolumeUnit = VolumeUnit.ML,
219220
val orderNumberPrefix: String? = null,

src/test/kotlin/com/ecwid/apiclient/v3/entity/StoreProfileTest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class StoreProfileTest : BaseEntityTest() {
105105
dateFormat = "yyyy/MM/dd",
106106
timeFormat = "HH:mm:ss",
107107
timezone = "timezone",
108+
timezoneOffsetInMinutes = 1234567,
108109
dimensionsUnit = UpdatedStoreProfile.DimensionUnit.MM,
109110
volumeUnit = UpdatedStoreProfile.VolumeUnit.L,
110111
orderNumberPrefix = "orderNumberPrefix",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,12 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
193193
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::orderNumberSuffix),
194194
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::timeFormat),
195195
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::timezone),
196+
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::timezoneOffsetInMinutes),
196197
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightDecimalSeparator),
197198
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightGroupSeparator),
198199
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightPrecision),
199200
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightTruncateZeroFractional),
200-
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::weightUnit),
201+
AllowNullable(FetchedStoreProfile.FormatsAndUnits::weightUnit),
201202
IgnoreNullable(FetchedStoreProfile.GeneralInfo::starterSite),
202203
IgnoreNullable(FetchedStoreProfile.GeneralInfo::storeUrl),
203204
IgnoreNullable(FetchedStoreProfile.GeneralInfo::websitePlatform),

0 commit comments

Comments
 (0)