Skip to content

Commit

Permalink
Merge pull request #435 from Ecwid/ECWID-149221
Browse files Browse the repository at this point in the history
ECWID-149221 added saveToCustomerProfile field to update the extrafield
  • Loading branch information
winrokru authored Sep 18, 2024
2 parents 7b1fba5 + 5a2cf06 commit bae933c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ fun FetchedExtrafieldConfig.toUpdated(): UpdatedExtrafieldConfig {
titleTranslated = if (titleTranslated != null) LocalizedValueMap(titleTranslated) else null,
textPlaceholderTranslated = if (textPlaceholderTranslated != null) LocalizedValueMap(textPlaceholderTranslated) else null,
tipTranslated = if (tipTranslated != null) LocalizedValueMap(tipTranslated) else null,
valueTranslated = if (valueTranslated != null) LocalizedValueMap(valueTranslated) else null
valueTranslated = if (valueTranslated != null) LocalizedValueMap(valueTranslated) else null,
saveToCustomerProfile = saveToCustomerProfile,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ data class UpdatedExtrafieldConfig(
val titleTranslated: LocalizedValueMap? = null,
val textPlaceholderTranslated: LocalizedValueMap? = null,
val tipTranslated: LocalizedValueMap? = null,
val valueTranslated: LocalizedValueMap? = null
val valueTranslated: LocalizedValueMap? = null,
val saveToCustomerProfile: Boolean? = null,
) : ApiUpdatedDTO {

data class UpdatedExtrafieldOptionConfig(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ data class FetchedExtrafieldConfig(
val titleTranslated: LocalizedValueMap? = null,
val textPlaceholderTranslated: LocalizedValueMap? = null,
val tipTranslated: LocalizedValueMap? = null,
val valueTranslated: LocalizedValueMap? = null
val valueTranslated: LocalizedValueMap? = null,
val saveToCustomerProfile: Boolean? = null,
) : ApiFetchedDTO {

data class FetchedExtrafieldOptionConfig(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ val fetchedExtrafieldConfigNullablePropertyRules: List<NullablePropertyRule<*, *
AllowNullable(FetchedExtrafieldConfig::textPlaceholderTranslated),
AllowNullable(FetchedExtrafieldConfig::tipTranslated),
AllowNullable(FetchedExtrafieldConfig::valueTranslated),
AllowNullable(FetchedExtrafieldConfig::saveToCustomerProfile),

AllowNullable(FetchedExtrafieldConfig.FetchedExtrafieldOptionConfig::subtitle),
AllowNullable(FetchedExtrafieldConfig.FetchedExtrafieldOptionConfig::subtitleTranslated),
Expand Down

0 comments on commit bae933c

Please sign in to comment.