Skip to content

Commit 8afe92a

Browse files
committed
Merge remote-tracking branch 'origin/master' into ECWID-175647
2 parents d072ab9 + 2081bf1 commit 8afe92a

15 files changed

Lines changed: 28 additions & 1 deletion

File tree

src/main/kotlin/com/ecwid/apiclient/v3/converter/FetchedOrder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ fun FetchedOrder.DiscountInfo.toUpdated(): UpdatedOrder.DiscountInfo {
116116
description = description,
117117
appliesToProducts = appliesToProducts,
118118
appliesToItems = appliesToItems,
119+
membershipId = membershipId,
119120
)
120121
}
121122

src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/request/OrderForCalculate.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ data class OrderForCalculate(
4141
val description: String? = null,
4242
val appliesToProducts: List<Int>? = null,
4343
val appliesToItems: List<Long>? = null,
44+
val membershipId: Int? = null,
4445
)
4546

4647
data class OrderItemDiscountInfo(

src/main/kotlin/com/ecwid/apiclient/v3/dto/cart/result/CalculateOrderDetailsResult.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ data class CalculateOrderDetailsResult(
9999
val description: String? = null,
100100
val appliesToProducts: List<Int>? = null,
101101
val appliesToItems: List<Long>? = null,
102+
val membershipId: Int? = null,
102103
)
103104

104105
data class OrderItemDiscountInfo(

src/main/kotlin/com/ecwid/apiclient/v3/dto/customer/request/CustomersSearchRequest.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ data class CustomersSearchRequest(
1010
val keyword: String? = null,
1111
val name: String? = null,
1212
val email: String? = null,
13+
val useExactEmailMatch: Boolean? = null,
1314
val customerGroupId: Int? = null,
1415
val usePrecalculatedOrderCount: Boolean? = null,
1516
val minOrderCount: Int? = null,
@@ -70,6 +71,7 @@ data class CustomersSearchRequest(
7071
request.keyword?.let { put("keyword", it) }
7172
request.name?.let { put("name", it) }
7273
request.email?.let { put("email", it) }
74+
request.useExactEmailMatch?.let { put("useExactEmailMatch", it.toString()) }
7375
request.customerGroupId?.let { put("customerGroup", it.toString()) }
7476
request.usePrecalculatedOrderCount?.let { put("usePrecalculatedOrderCount", it.toString()) }
7577
request.minOrderCount?.let { put("minOrderCount", it.toString()) }

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/main/kotlin/com/ecwid/apiclient/v3/dto/order/request/UpdatedOrder.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ data class UpdatedOrder(
120120
val description: String? = null,
121121
val appliesToProducts: List<Int>? = null,
122122
val appliesToItems: List<Long>? = null,
123+
val membershipId: Int? = null
123124
)
124125

125126
data class DiscountCouponInfo(

src/main/kotlin/com/ecwid/apiclient/v3/dto/order/result/FetchedOrder.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ data class FetchedOrder(
143143
val description: String? = null,
144144
val appliesToProducts: List<Int>? = null,
145145
val appliesToItems: List<Long>? = null,
146+
val membershipId: Int? = null
146147
)
147148

148149
data class DiscountCouponInfo(
@@ -353,6 +354,7 @@ data class FetchedOrder(
353354
val scheduled: Boolean? = null,
354355
val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null,
355356
val timeSlotLengthInMinutes: Int? = null,
357+
val discountedShippingRate: Double? = null,
356358
)
357359

358360
data class HandlingFee(

src/main/kotlin/com/ecwid/apiclient/v3/dto/producttype/enums/AttributeType.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,13 @@ enum class AttributeType {
1111
EBAY,
1212
EBAY_REQUIRED,
1313
PRICE_PER_UNIT,
14-
UNITS_IN_PRODUCT
14+
UNITS_IN_PRODUCT,
15+
EXTERNAL_EAN,
16+
EXTERNAL_ISBN,
17+
EXTERNAL_ITF,
18+
EXTERNAL_JAN,
19+
EXTERNAL_CUSTOM,
20+
EXTERNAL_UPC,
21+
TAGS, // External for promo sync
22+
SUPPLIER, // External for promo sync
1523
}

src/main/kotlin/com/ecwid/apiclient/v3/dto/report/enums/ReportType.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,7 @@ enum class ReportType {
4545
siteSocialActivity,
4646
siteAggregatedActivity,
4747
siteGroupActivity,
48+
siteGroupActivityNew,
49+
siteGroupActivityReturn,
4850
siteUniqueNewVisitorsByGroup,
4951
}

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

Lines changed: 2 additions & 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),
@@ -230,6 +231,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
230231
ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
231232
ReadOnly(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
232233
ReadOnly(FetchedOrder.ShippingOption::pickupPrecisionType),
234+
ReadOnly(FetchedOrder.ShippingOption::discountedShippingRate),
233235
ReadOnly(FetchedOrder.HandlingFee::valueWithoutTax),
234236
ReadOnly(FetchedOrder.Surcharge::totalWithoutTax),
235237
Ignored(FetchedOrder::refundedAmount),

0 commit comments

Comments
 (0)