Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ data class FetchedOrder(
val commercialRelationshipScheme: CommercialRelationshipScheme? = CommercialRelationshipScheme.b2c,
val lang: String? = null,
val storeCredit: StoreCredit? = null,
val isWithdrawalRequested: Boolean? = null,

) : ApiFetchedDTO, ApiResultDTO {

Expand Down
3 changes: 1 addition & 2 deletions src/test/kotlin/com/ecwid/apiclient/v3/entity/CartsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import com.ecwid.apiclient.v3.dto.order.request.UpdatedOrder
import com.ecwid.apiclient.v3.util.*
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertNull
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
Expand Down Expand Up @@ -298,7 +297,7 @@ class CartsTest : BaseEntityTest() {
assertEquals(forCalculateItem.price, calculatedItem.price)
assertEquals(forCalculateItem.productPrice, calculatedItem.productPrice)
assertEquals(0.0, calculatedItem.shipping)
assertNull(calculatedItem.handlingFee)
assertEquals(0.0, calculatedItem.handlingFee)
assertEquals(forCalculateItem.fixedShippingRate, calculatedItem.fixedShippingRate)
assertEquals(
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ val nonUpdatablePropertyRules: List<NonUpdatablePropertyRule<*, *>> = listOf(
ReadOnly(FetchedOrder.OrderItemTax::sourceTaxRateId),
ReadOnly(FetchedOrder.OrderItemTax::sourceTaxRateType),
ReadOnly(FetchedOrder::shippingLabelAvailableForShipment),
ReadOnly(FetchedOrder::isWithdrawalRequested),

ReadOnly(FetchedProductType::id),
Ignored(FetchedProductType::googleTaxonomy),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,4 +342,5 @@ val fetchedOrderNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf
AllowNullable(FetchedOrder.StoreCreditRedemption::id),
AllowNullable(FetchedOrder.StoreCreditRedemption::amount),
AllowNullable(FetchedOrder.StoreCreditRedemption::cancelled),
AllowNullable(FetchedOrder::isWithdrawalRequested),
)
Loading