From 075bfbc3aa5ae93a570b828abe673a271f5a3f99 Mon Sep 17 00:00:00 2001 From: "illarion.borts" Date: Thu, 6 Nov 2025 11:16:07 +0100 Subject: [PATCH 1/2] ECWID-174089 - add customer.externalReferenceId --- .../ecwid/apiclient/v3/dto/customer/result/FetchedCustomer.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/result/FetchedCustomer.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/result/FetchedCustomer.kt index 0eb8e146f..03a7d8aaa 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/result/FetchedCustomer.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/result/FetchedCustomer.kt @@ -11,6 +11,7 @@ import java.util.* data class FetchedCustomer( val id: Int = 0, + val externalReferenceId: String? = null, val email: String = "", val registered: Date? = null, val updated: Date? = null, From 5b47cd239d5965f40b4011dec6d2c853f56923f6 Mon Sep 17 00:00:00 2001 From: "illarion.borts" Date: Thu, 6 Nov 2025 11:47:45 +0100 Subject: [PATCH 2/2] ECWID-174089 - fix tests --- .../com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt | 1 + .../v3/rule/nullablepropertyrules/FetchedCustomerRules.kt | 1 + 2 files changed, 2 insertions(+) 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 27b8d6140..c693c203f 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt @@ -147,6 +147,7 @@ val nonUpdatablePropertyRules: List> = listOf( Ignored(FetchedCoupon::updateDate), ReadOnly(FetchedCustomer::id), + ReadOnly(FetchedCustomer::externalReferenceId), Ignored(FetchedCustomer::registered), Ignored(FetchedCustomer::updated), Ignored(FetchedCustomer::customerGroupName), diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomerRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomerRules.kt index 45bec35e6..4635e7b70 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomerRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomerRules.kt @@ -7,6 +7,7 @@ import com.ecwid.apiclient.v3.rule.NullablePropertyRule.AllowNullable import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable val fetchedCustomerNullablePropertyRules: List> = listOf( + AllowNullable(FetchedCustomer::externalReferenceId), IgnoreNullable(FetchedCustomer::acceptMarketing), IgnoreNullable(FetchedCustomer::billingPerson), IgnoreNullable(FetchedCustomer::customerGroupId),