Skip to content

Commit 867050d

Browse files
committed
ECWID-172968 Orders: added membershipId field to FetchedOrder and updated nullable property rules
1 parent 35966df commit 867050d

2 files changed

Lines changed: 2 additions & 0 deletions

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/test/kotlin/com/ecwid/apiclient/v3/rule/nullablepropertyrules/FetchedOrderRules.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
4444
IgnoreNullable(FetchedOrder.DiscountInfo::type),
4545
IgnoreNullable(FetchedOrder.DiscountInfo::value),
4646
AllowNullable(FetchedOrder.DiscountInfo::appliesToProducts),
47+
AllowNullable(FetchedOrder.DiscountInfo::membershipId),
4748
AllowNullable(FetchedOrder.DiscountInfo::appliesToItems),
4849
AllowNullable(FetchedOrder.ExtraFieldsInfo::customerInputType),
4950
AllowNullable(FetchedOrder.ExtraFieldsInfo::id),

0 commit comments

Comments
 (0)