diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCategory.kt b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCategory.kt index 8b1efcafe..5b0b09cdb 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCategory.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedCategory.kt @@ -19,5 +19,6 @@ fun FetchedCategory.toUpdated(): UpdatedCategory { seoDescription = seoDescription, seoDescriptionTranslated = seoDescriptionTranslated, alt = alt?.toUpdated(), + customSlug = customSlug, ) } diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/request/UpdatedCategory.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/request/UpdatedCategory.kt index a9507a173..4a3839955 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/request/UpdatedCategory.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/request/UpdatedCategory.kt @@ -20,7 +20,8 @@ data class UpdatedCategory( val seoTitleTranslated: LocalizedValueMap? = null, val seoDescription: String? = null, val seoDescriptionTranslated: LocalizedValueMap? = null, - val alt: UpdatedAlt? = null + val alt: UpdatedAlt? = null, + val customSlug: String? = null, ) : ApiUpdatedDTO { override fun getModifyKind() = ModifyKind.ReadWrite(FetchedCategory::class) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt index 98a860bb4..5735f9da7 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/category/result/FetchedCategory.kt @@ -34,7 +34,8 @@ data class FetchedCategory( val seoTitleTranslated: LocalizedValueMap? = null, val seoDescription: String? = null, val seoDescriptionTranslated: LocalizedValueMap? = null, - val alt: FetchedAlt? = null + val alt: FetchedAlt? = null, + val customSlug: String? = null ) : ApiFetchedDTO, ApiResultDTO { override fun getModifyKind() = ModifyKind.ReadWrite(UpdatedCategory::class) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt index 64fcb26a9..bdab7d326 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCategoryRules.kt @@ -28,6 +28,7 @@ val fetchedCategoryNullablePropertyRules: List> = lis AllowNullable(FetchedCategory::seoDescription), AllowNullable(FetchedCategory::seoDescriptionTranslated), AllowNullable(FetchedCategory::alt), + AllowNullable(FetchedCategory::customSlug), AllowNullable(FetchedAlt::main), AllowNullable(FetchedAlt::translated), )