From e76a7eb93b1ff96cafc640bd860525d6a8d5d7b9 Mon Sep 17 00:00:00 2001 From: winrok Date: Tue, 22 Oct 2024 14:49:01 +0400 Subject: [PATCH] ECWID-148803 New customers: added new field for internal customer api --- .../apiclient/v3/dto/extrafield/result/FetchedCustomersConfig.kt | 1 + .../com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt | 1 + .../v3/rule/nullablepropertyrules/FetchedCustomersConfigRules.kt | 1 + 3 files changed, 3 insertions(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/extrafield/result/FetchedCustomersConfig.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/extrafield/result/FetchedCustomersConfig.kt index 57a873b6b..225e7f4d4 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/extrafield/result/FetchedCustomersConfig.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/extrafield/result/FetchedCustomersConfig.kt @@ -12,6 +12,7 @@ data class FetchedCustomersConfig( val entityTypes: List? = null, val type: ExtrafieldType? = null, val shownOnOrderDetails: Boolean? = null, + val linkedWithCheckoutField: Boolean? = null, val createdDate: Date? = null, val lastModifiedDate: Date? = null, ) : ApiFetchedDTO { 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 7484c0172..ff0e84f99 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt @@ -326,6 +326,7 @@ val nonUpdatablePropertyRules: List> = listOf( ReadOnly(FetchedInstantSiteRedirect::id), ReadOnly(FetchedCustomersConfig::entityTypes), + ReadOnly(FetchedCustomersConfig::linkedWithCheckoutField), ReadOnly(FetchedCustomersConfig::createdDate), ReadOnly(FetchedCustomersConfig::lastModifiedDate), ) diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomersConfigRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomersConfigRules.kt index 5f4f7d4da..3d5af974f 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomersConfigRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomersConfigRules.kt @@ -10,6 +10,7 @@ val fetchedCustomersConfigNullablePropertyRules: List AllowNullable(FetchedCustomersConfig::entityTypes), AllowNullable(FetchedCustomersConfig::type), AllowNullable(FetchedCustomersConfig::shownOnOrderDetails), + AllowNullable(FetchedCustomersConfig::linkedWithCheckoutField), AllowNullable(FetchedCustomersConfig::createdDate), AllowNullable(FetchedCustomersConfig::lastModifiedDate), )