Skip to content

Commit

Permalink
Merge pull request #427 from Ecwid/ECWID-145869
Browse files Browse the repository at this point in the history
ECWID-145869 New customer import: improve the default phone update logic - customer.primaryPhone in apiv3
  • Loading branch information
renat-ayzyatullen authored Aug 13, 2024
2 parents 804bef0 + 5ead16d commit 81b7338
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ data class UpdatedCustomer(
val lang: String? = null,
val privateAdminNotes: String? = null,
val extrafields: List<CustomerExtrafield>? = null,
val primaryPhone: String? = null,

@JsonFieldName("b2b_b2c")
val commercialRelationshipScheme: CommercialRelationshipScheme? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ val nonDuplicablePropertyRules: List<NonDuplicablePropertyRule<*, *>> = 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

)

Expand Down

0 comments on commit 81b7338

Please sign in to comment.