Skip to content

Commit

Permalink
ECWID-137817 New customers: add favorites to the internal API - added…
Browse files Browse the repository at this point in the history
… default value to 'favorites' field in FetchedCustomer
  • Loading branch information
renat-ayzyatullen committed Apr 8, 2024
1 parent fb740f7 commit 5c092ef
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import com.ecwid.apiclient.v3.dto.customer.enums.CommercialRelationshipScheme
import com.ecwid.apiclient.v3.dto.customer.request.UpdatedCustomer
import com.ecwid.apiclient.v3.jsontransformer.JsonFieldName
import java.util.*
import kotlin.collections.ArrayList

data class FetchedCustomer(
val id: Int = 0,
Expand All @@ -24,7 +25,7 @@ data class FetchedCustomer(
val lang: String? = null,
val stats: CustomerStats? = null,
val privateAdminNotes: String? = null,
var favorites: List<CustomerFavorite>,
var favorites: List<CustomerFavorite> = ArrayList(),

@JsonFieldName("b2b_b2c")
val commercialRelationshipScheme: CommercialRelationshipScheme = CommercialRelationshipScheme.b2c,
Expand Down

0 comments on commit 5c092ef

Please sign in to comment.