Skip to content

Commit 8b6a8d1

Browse files
authored
Merge pull request #534 from Ecwid/ECWID-174089
ECWID-174089 - add customer.externalReferenceId
2 parents 907d668 + 5b47cd2 commit 8b6a8d1

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import java.util.*
1111

1212
data class FetchedCustomer(
1313
val id: Int = 0,
14+
val externalReferenceId: String? = null,
1415
val email: String = "",
1516
val registered: Date? = null,
1617
val updated: Date? = null,

src/test/kotlin/com/ecwid/apiclient/v3/rule/NonUpdatablePropertyRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
147147
Ignored(FetchedCoupon::updateDate),
148148

149149
ReadOnly(FetchedCustomer::id),
150+
ReadOnly(FetchedCustomer::externalReferenceId),
150151
Ignored(FetchedCustomer::registered),
151152
Ignored(FetchedCustomer::updated),
152153
Ignored(FetchedCustomer::customerGroupName),

src/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedCustomerRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import com.ecwid.apiclient.v3.rule.NullablePropertyRule.AllowNullable
77
import com.ecwid.apiclient.v3.rule.NullablePropertyRule.IgnoreNullable
88

99
val fetchedCustomerNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
10+
AllowNullable(FetchedCustomer::externalReferenceId),
1011
IgnoreNullable(FetchedCustomer::acceptMarketing),
1112
IgnoreNullable(FetchedCustomer::billingPerson),
1213
IgnoreNullable(FetchedCustomer::customerGroupId),

0 commit comments

Comments
 (0)