Skip to content

Commit 0d781e0

Browse files
committed
ECOM-7839 Add titleTranslated and textTranslated fields to LegalPagesInfo
1 parent 126ce48 commit 0d781e0

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedStoreProfile.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,10 @@ fun FetchedStoreProfile.LegalPagesInfo.toUpdated(): UpdatedStoreProfile.LegalPag
462462
type = type?.toUpdated(),
463463
enabled = enabled,
464464
title = title,
465+
titleTranslated = titleTranslated,
465466
display = display?.toUpdated(),
466467
text = text,
468+
textTranslated = textTranslated,
467469
externalUrl = externalUrl
468470
)
469471
}

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/request/UpdatedStoreProfile.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ data class UpdatedStoreProfile(
265265
val type: Type? = null,
266266
val enabled: Boolean? = null,
267267
val title: String? = null,
268+
val titleTranslated: Map<String, String>? = null,
268269
val display: Display? = null,
269270
val text: String? = null,
271+
val textTranslated: Map<String, String>? = null,
270272
val externalUrl: String? = null
271273
) {
272274
enum class Type {

src/main/kotlin/com/ecwid/apiclient/v3/dto/profile/result/FetchedStoreProfile.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,10 @@ data class FetchedStoreProfile(
311311
val type: Type? = null,
312312
val enabled: Boolean? = null,
313313
val title: String? = null,
314+
val titleTranslated: Map<String, String>? = null,
314315
val display: Display? = null,
315316
val text: String? = null,
317+
val textTranslated: Map<String, String>? = null,
316318
val externalUrl: String? = null
317319
) {
318320
enum class Type {

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedStoreProfileRules.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ val fetchedStoreProfileNullablePropertyRules: List<NullablePropertyRule<*, *>> =
231231
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::enabled),
232232
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::externalUrl),
233233
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::text),
234+
AllowNullable(FetchedStoreProfile.LegalPagesInfo::textTranslated),
234235
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::title),
236+
AllowNullable(FetchedStoreProfile.LegalPagesInfo::titleTranslated),
235237
IgnoreNullable(FetchedStoreProfile.LegalPagesInfo::type),
236238
IgnoreNullable(FetchedStoreProfile.LegalPagesSettingsDetails::legalPages),
237239
IgnoreNullable(FetchedStoreProfile.LegalPagesSettingsDetails::requireTermsAgreementAtCheckout),

0 commit comments

Comments
 (0)