Skip to content

Commit e3fd62c

Browse files
authored
Merge pull request #535 from Ecwid/ECWID-173522
ECWID-173522 - add order.shippingOption.discountedShippingRate
2 parents 8b6a8d1 + 00f94c8 commit e3fd62c

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

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
@@ -354,6 +354,7 @@ data class FetchedOrder(
354354
val scheduled: Boolean? = null,
355355
val scheduledTimePrecisionType: ScheduledTimePrecisionType? = null,
356356
val timeSlotLengthInMinutes: Int? = null,
357+
val discountedShippingRate: Double? = null,
357358
)
358359

359360
data class HandlingFee(

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
231231
ReadOnly(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
232232
ReadOnly(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
233233
ReadOnly(FetchedOrder.ShippingOption::pickupPrecisionType),
234+
ReadOnly(FetchedOrder.ShippingOption::discountedShippingRate),
234235
ReadOnly(FetchedOrder.HandlingFee::valueWithoutTax),
235236
ReadOnly(FetchedOrder.Surcharge::totalWithoutTax),
236237
Ignored(FetchedOrder::refundedAmount),

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
@@ -192,6 +192,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
192192
AllowNullable(FetchedOrder.ShippingOption::scheduledTimePrecisionType),
193193
AllowNullable(FetchedOrder.ShippingOption::timeSlotLengthInMinutes),
194194
AllowNullable(FetchedOrder.ShippingOption::pickupPrecisionType),
195+
AllowNullable(FetchedOrder.ShippingOption::discountedShippingRate),
195196
AllowNullable(FetchedOrder.ShippingServiceInfo::carrier),
196197
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierName),
197198
AllowNullable(FetchedOrder.ShippingServiceInfo::carrierServiceCode),

0 commit comments

Comments
 (0)