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 e6e20382..5c5dc66d 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt @@ -34,7 +34,8 @@ fun FetchedStoreProfile.GeneralInfo.toUpdated(): UpdatedStoreProfile.GeneralInfo fun FetchedStoreProfile.InstantSiteInfo.toUpdated(): UpdatedStoreProfile.InstantSiteInfo { return UpdatedStoreProfile.InstantSiteInfo( ecwidSubdomain = ecwidSubdomain, - customDomain = customDomain + customDomain = customDomain, + slugsWithoutIdsEnabled = slugsWithoutIdsEnabled ) } 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 9b0a8ed7..6fcc3f74 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 @@ -32,7 +32,8 @@ data class UpdatedStoreProfile( data class InstantSiteInfo( val ecwidSubdomain: String? = null, - val customDomain: String? = null + val customDomain: String? = null, + val slugsWithoutIdsEnabled: Boolean? = null, ) @Suppress("unused") 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 6f5985aa..3db81e29 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 @@ -46,7 +46,8 @@ data class FetchedStoreProfile( val customDomain: String? = null, val generatedUrl: String? = null, val storeLogoUrl: String? = null, - val ecwidSubdomainSuffix: String? = null + val ecwidSubdomainSuffix: String? = null, + val slugsWithoutIdsEnabled: Boolean? = null, ) @Suppress("unused") diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt index 8229e0ca..e9d87228 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt @@ -240,6 +240,7 @@ val nonUpdatablePropertyRules: List> = listOf( ReadOnly(FetchedStoreProfile.Settings::googleProductCategoryName), ReadOnly(FetchedStoreProfile.TikTokPixelSettings::code), ReadOnly(FetchedStoreProfile.InstantSiteInfo::ecwidSubdomainSuffix), + ReadOnly(FetchedStoreProfile.InstantSiteInfo::slugsWithoutIdsEnabled), ReadOnly(FetchedStoreProfile.PaymentOptionInfo::id), ReadOnly(FetchedStoreProfile.PaymentOptionInfo::paymentProcessorTitle), 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 c98c434d..ff1e596a 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 @@ -362,4 +362,5 @@ val fetchedStoreProfileNullablePropertyRules: List> = AllowNullable(FetchedStoreProfile.Settings::googleProductCategory), AllowNullable(FetchedStoreProfile.Settings::googleProductCategoryName), AllowNullable(FetchedStoreProfile.InstantSiteInfo::ecwidSubdomainSuffix), + AllowNullable(FetchedStoreProfile.InstantSiteInfo::slugsWithoutIdsEnabled), )