Skip to content

Commit

Permalink
Merge pull request #338 from Ecwid/slugs-without-ids-for-store-profile
Browse files Browse the repository at this point in the history
Add slugsWithoutIds to StoreProfile request/responses
  • Loading branch information
fomichdenis authored Oct 11, 2023
2 parents a2c7ad1 + f8bfb1f commit 5cb6028
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = 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),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,4 +362,5 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
AllowNullable(FetchedStoreProfile.Settings::googleProductCategory),
AllowNullable(FetchedStoreProfile.Settings::googleProductCategoryName),
AllowNullable(FetchedStoreProfile.InstantSiteInfo::ecwidSubdomainSuffix),
AllowNullable(FetchedStoreProfile.InstantSiteInfo::slugsWithoutIdsEnabled),
)

0 comments on commit 5cb6028

Please sign in to comment.