Skip to content

Commit

Permalink
ECWID-134924 OE2: add shippingMethodId field
Browse files Browse the repository at this point in the history
  • Loading branch information
qblake committed Feb 26, 2024
1 parent 52c8b84 commit 150a301
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ fun FetchedOrder.PersonInfo.toUpdated(): UpdatedOrder.PersonInfo {

fun FetchedOrder.ShippingOption.toUpdated(): UpdatedOrder.ShippingOption {
return UpdatedOrder.ShippingOption(
shippingMethodId = shippingMethodId,
shippingCarrierName = shippingCarrierName,
shippingMethodName = shippingMethodName,
shippingRate = shippingRate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ data class UpdatedOrder(
)

data class ShippingOption(
val shippingMethodId: String? = null,
val shippingCarrierName: String? = null,
val shippingMethodName: String? = null,
val shippingRate: Double? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ data class FetchedOrder(
)

data class ShippingOption(
val shippingMethodId: String? = null,
val shippingCarrierName: String? = null,
val shippingMethodName: String? = null,
val shippingRate: Double? = null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
AllowNullable(FetchedOrder.ShippingOption::locationId),
IgnoreNullable(FetchedOrder.ShippingOption::pickupInstruction),
IgnoreNullable(FetchedOrder.ShippingOption::shippingCarrierName),
AllowNullable(FetchedOrder.ShippingOption::shippingMethodId),
IgnoreNullable(FetchedOrder.ShippingOption::shippingMethodName),
IgnoreNullable(FetchedOrder.ShippingOption::shippingRate),
AllowNullable(FetchedOrder.ShippingOption::isShippingLimit),
Expand Down

0 comments on commit 150a301

Please sign in to comment.