Skip to content

Commit 768e3e6

Browse files
committed
ECWID-141240 - add giftCardUuid
1 parent d033232 commit 768e3e6

11 files changed

Lines changed: 12 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
@@ -47,6 +47,7 @@ fun FetchedOrder.toUpdated(): UpdatedOrder {
4747
giftCardDoubleSpending = giftCardDoubleSpending,
4848
giftCardCode = giftCardCode,
4949
giftCardId = giftCardId,
50+
giftCardUuid = giftCardUuid,
5051

5152
tax = tax,
5253
customerTaxExempt = customerTaxExempt,

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
@@ -25,6 +25,7 @@ data class OrderForCalculate(
2525
val paymentOptionsDetails: PaymentOption? = null,
2626
val giftCardCode: String? = null,
2727
val giftCardId: Int? = null,
28+
val giftCardUuid: String? = null,
2829
val giftCardTransactionOrderId: Int? = null,
2930
val giftCardRedemption: Double? = null,
3031
val totalBeforeGiftCardRedemption: Double? = null,

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
@@ -36,6 +36,7 @@ data class CalculateOrderDetailsResult(
3636
val giftCardDoubleSpending: Boolean? = null,
3737
val giftCardCode: String? = null,
3838
val giftCardId: Int? = null,
39+
val giftCardUuid: String? = null,
3940

4041
val tax: Double? = null,
4142
val taxesOnShipping: List<TaxOnShipping>? = null,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ data class FetchedCart(
4949

5050
val giftCardCode: String? = null,
5151
val giftCardId: Int? = null,
52+
val giftCardUuid: String? = null,
5253
val giftCardRedemption: Double? = null,
5354
val totalBeforeGiftCardRedemption: Double? = null,
5455
val giftCardDoubleSpending: Boolean? = 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
@@ -52,6 +52,7 @@ data class UpdatedOrder(
5252
val giftCardDoubleSpending: Boolean? = null,
5353
val giftCardCode: String? = null,
5454
val giftCardId: Int? = null,
55+
val giftCardUuid: String? = null,
5556

5657
val tax: Double? = null,
5758
val customerTaxExempt: Boolean? = null,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ data class FetchedOrder(
6767
val giftCardDoubleSpending: Boolean? = null,
6868
val giftCardCode: String? = null,
6969
val giftCardId: Int? = null,
70+
val giftCardUuid: String? = null,
7071

7172
val total: Double? = null,
7273
val totalWithoutTax: Double? = null,

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
106106
ReadOnly(FetchedCart::giftCardCode),
107107
ReadOnly(FetchedCart::giftCardDoubleSpending),
108108
ReadOnly(FetchedCart::giftCardId),
109+
ReadOnly(FetchedCart::giftCardUuid),
109110
ReadOnly(FetchedCart::giftCardRedemption),
110111
ReadOnly(FetchedCart::totalBeforeGiftCardRedemption),
111112
Ignored(FetchedCart::tax),
@@ -172,6 +173,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
172173
ReadOnly(FetchedOrder::giftCardCode),
173174
ReadOnly(FetchedOrder::giftCardDoubleSpending),
174175
ReadOnly(FetchedOrder::giftCardId),
176+
ReadOnly(FetchedOrder::giftCardUuid),
175177
ReadOnly(FetchedOrder::giftCardRedemption),
176178
ReadOnly(FetchedOrder::totalBeforeGiftCardRedemption),
177179
ReadOnly(FetchedOrder::totalWithoutTax),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ val calculateOrderDetailsResultNullablePropertyRules: List<NullablePropertyRule<
182182
AllowNullable(CalculateOrderDetailsResult::giftCardDoubleSpending),
183183
AllowNullable(CalculateOrderDetailsResult::giftCardCode),
184184
AllowNullable(CalculateOrderDetailsResult::giftCardId),
185+
AllowNullable(CalculateOrderDetailsResult::giftCardUuid),
185186
AllowNullable(CalculateOrderDetailsResult::totalWithoutTax),
186187
IgnoreNullable(CalculateOrderDetailsResult::usdTotal),
187188
IgnoreNullable(CalculateOrderDetailsResult::volumeDiscount)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ val fetchedCartNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
5555
AllowNullable(FetchedCart::giftCardCode),
5656
AllowNullable(FetchedCart::giftCardDoubleSpending),
5757
AllowNullable(FetchedCart::giftCardId),
58+
AllowNullable(FetchedCart::giftCardUuid),
5859
AllowNullable(FetchedCart::giftCardRedemption),
5960
AllowNullable(FetchedCart::totalBeforeGiftCardRedemption),
6061
IgnoreNullable(FetchedCart::utmData),

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
@@ -244,6 +244,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
244244
AllowNullable(FetchedOrder::giftCardCode),
245245
AllowNullable(FetchedOrder::giftCardDoubleSpending),
246246
AllowNullable(FetchedOrder::giftCardId),
247+
AllowNullable(FetchedOrder::giftCardUuid),
247248
AllowNullable(FetchedOrder::giftCardRedemption),
248249
AllowNullable(FetchedOrder::globalReferer),
249250
AllowNullable(FetchedOrder::handlingFee),

0 commit comments

Comments
 (0)