Skip to content

Commit

Permalink
Merge pull request #370 from Ecwid/ECWID-129038
Browse files Browse the repository at this point in the history
ECWID-129038 New customers: send formatted address via public api
  • Loading branch information
winrokru authored Feb 6, 2024
2 parents 167f17f + 2d34bfc commit f3c3b42
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 f3c3b42

Please sign in to comment.