diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/UpdatedCustomer.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/UpdatedCustomer.kt index b074b1f9..64192c50 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/UpdatedCustomer.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/UpdatedCustomer.kt @@ -21,6 +21,7 @@ data class UpdatedCustomer( val lang: String? = null, val privateAdminNotes: String? = null, val extrafields: List? = null, + val primaryPhone: String? = null, @JsonFieldName("b2b_b2c") val commercialRelationshipScheme: CommercialRelationshipScheme? = null, diff --git a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonDuplicablePropertyRules.kt b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonDuplicablePropertyRules.kt index 550ad38b..10ac6eed 100644 --- a/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonDuplicablePropertyRules.kt +++ b/src/test/kotlin/com/ecwid/apiclient/v3/rule/NonDuplicablePropertyRules.kt @@ -19,6 +19,7 @@ val nonDuplicablePropertyRules: List> = listOf( WriteOnly(UpdatedVariation.AttributeValue::alias), WriteOnly(UpdatedVariation.AttributeValue::name), WriteOnly(UpdatedProduct.RelatedProducts::productSkus), + WriteOnly(UpdatedCustomer::primaryPhone), // contact becomes impossible to delete - rest4j replaces null with current value on writes )