Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,10 @@ fun FetchedStoreProfile.LegalPagesInfo.toUpdated(): UpdatedStoreProfile.LegalPag
type = type?.toUpdated(),
enabled = enabled,
title = title,
titleTranslated = titleTranslated,
display = display?.toUpdated(),
text = text,
textTranslated = textTranslated,
externalUrl = externalUrl
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,10 @@ data class UpdatedStoreProfile(
val type: Type? = null,
val enabled: Boolean? = null,
val title: String? = null,
val titleTranslated: Map<String, String>? = null,
val display: Display? = null,
val text: String? = null,
val textTranslated: Map<String, String>? = null,
val externalUrl: String? = null
) {
enum class Type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,10 @@ data class FetchedStoreProfile(
val type: Type? = null,
val enabled: Boolean? = null,
val title: String? = null,
val titleTranslated: Map<String, String>? = null,
val display: Display? = null,
val text: String? = null,
val textTranslated: Map<String, String>? = null,
val externalUrl: String? = null
) {
enum class Type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::enabled),
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::externalUrl),
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::text),
AllowNullable(FetchedStoreProfile.LegalPagesInfo::textTranslated),
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::title),
AllowNullable(FetchedStoreProfile.LegalPagesInfo::titleTranslated),
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::type),
IgnoreNullable(FetchedStoreProfile.LegalPagesSettingsDetails::legalPages),
IgnoreNullable(FetchedStoreProfile.LegalPagesSettingsDetails::requireTermsAgreementAtCheckout),
Expand Down
Loading