Skip to content

Commit 7998a9b

Browse files
Merge pull request #173 from Ecwid/order-number-settings
ECWID-94823 Added orderNumberMinDigitsAmount and orderNumberNextNumbe…
2 parents 87a0a40 + 4e58a45 commit 7998a9b

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ private fun FetchedStoreProfile.FormatsAndUnits.toUpdated(): UpdatedStoreProfile
166166
dimensionsUnit = dimensionsUnit?.toUpdated(),
167167
volumeUnit = volumeUnit.toUpdated(),
168168
orderNumberPrefix = orderNumberPrefix,
169-
orderNumberSuffix = orderNumberSuffix
169+
orderNumberSuffix = orderNumberSuffix,
170+
orderNumberMinDigitsAmount = orderNumberMinDigitsAmount,
171+
orderNumberNextNumber = orderNumberNextNumber,
170172
)
171173
}
172174

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ data class UpdatedStoreProfile(
135135
val dimensionsUnit: DimensionUnit? = null,
136136
val volumeUnit: VolumeUnit? = null,
137137
val orderNumberPrefix: String? = null,
138-
val orderNumberSuffix: String? = null
138+
val orderNumberSuffix: String? = null,
139+
val orderNumberMinDigitsAmount: Int? = null,
140+
val orderNumberNextNumber: Int? = null,
139141
)
140142

141143
enum class WeightUnit {

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ data class FetchedStoreProfile(
152152
val dimensionsUnit: DimensionUnit? = null,
153153
val volumeUnit: VolumeUnit = VolumeUnit.ML,
154154
val orderNumberPrefix: String? = null,
155-
val orderNumberSuffix: String? = null
155+
val orderNumberSuffix: String? = null,
156+
val orderNumberMinDigitsAmount: Int? = null,
157+
val orderNumberNextNumber: Int? = null,
156158
)
157159

158160
enum class WeightUnit {

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
@@ -151,6 +151,8 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
151151
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::currencyTruncateZeroFractional),
152152
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::dateFormat),
153153
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::dimensionsUnit),
154+
AllowNullable(FetchedStoreProfile.FormatsAndUnits::orderNumberMinDigitsAmount),
155+
AllowNullable(FetchedStoreProfile.FormatsAndUnits::orderNumberNextNumber),
154156
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::orderNumberPrefix),
155157
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::orderNumberSuffix),
156158
IgnoreNullable(FetchedStoreProfile.FormatsAndUnits::timeFormat),

0 commit comments

Comments
 (0)