Skip to content

Commit

Permalink
ECWID-129038 New customers: send formatted address via public custome…
Browse files Browse the repository at this point in the history
…rs API
  • Loading branch information
winrokru committed Feb 5, 2024
1 parent 167f17f commit 2d34bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ data class FetchedCustomer(
val createdDate: Date? = null,
val defaultAddress: Boolean? = null,
val orderBy: Int? = null,
val addressFormatted: String? = null,
)

data class CustomerStats(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
Ignored(FetchedCustomer.ShippingAddress::countryName),
Ignored(FetchedCustomer.ShippingAddress::stateOrProvinceName),
ReadOnly(FetchedCustomer.ShippingAddress::createdDate),
ReadOnly(FetchedCustomer.ShippingAddress::addressFormatted),
ReadOnly(FetchedCustomer::stats),
ReadOnly(FetchedCustomer.CustomerContact::timestamp),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ val fetchedCustomerNullablePropertyRules: List<NullablePropertyRule<*, *>> = lis
AllowNullable(FetchedCustomer.ShippingAddress::createdDate),
AllowNullable(FetchedCustomer.ShippingAddress::defaultAddress),
AllowNullable(FetchedCustomer.ShippingAddress::orderBy),
AllowNullable(FetchedCustomer.ShippingAddress::addressFormatted),
AllowNullable(FetchedCustomer::stats),
AllowNullable(FetchedCustomer.CustomerStats::firstOrderDate),
AllowNullable(FetchedCustomer.CustomerStats::lastOrderDate),
Expand Down

0 comments on commit 2d34bfc

Please sign in to comment.