Skip to content

Commit 5c092ef

Browse files
ECWID-137817 New customers: add favorites to the internal API - added default value to 'favorites' field in FetchedCustomer
1 parent fb740f7 commit 5c092ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/result/FetchedCustomer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import com.ecwid.apiclient.v3.dto.customer.enums.CommercialRelationshipScheme
66
import com.ecwid.apiclient.v3.dto.customer.request.UpdatedCustomer
77
import com.ecwid.apiclient.v3.jsontransformer.JsonFieldName
88
import java.util.*
9+
import kotlin.collections.ArrayList
910

1011
data class FetchedCustomer(
1112
val id: Int = 0,
@@ -24,7 +25,7 @@ data class FetchedCustomer(
2425
val lang: String? = null,
2526
val stats: CustomerStats? = null,
2627
val privateAdminNotes: String? = null,
27-
var favorites: List<CustomerFavorite>,
28+
var favorites: List<CustomerFavorite> = ArrayList(),
2829

2930
@JsonFieldName("b2b_b2c")
3031
val commercialRelationshipScheme: CommercialRelationshipScheme = CommercialRelationshipScheme.b2c,

0 commit comments

Comments
 (0)