Package | Description |
---|---|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.carts.commands.updateactions |
Provides the possible operations which can be performed on update commands for carts.
|
io.sphere.sdk.orderedits.commands.stagedactions | |
io.sphere.sdk.orders |
Provides model classes and builders for orders.
|
io.sphere.sdk.orders.commands.updateactions |
Provides the possible operations which can be performed on update commands for orders.
|
Modifier and Type | Method and Description |
---|---|
default Optional<LineItem> |
CartLike.findLineItem(String lineItemId)
Searches for line items by ID of a line item.
|
List<LineItem> |
Cart.getLineItems() |
List<LineItem> |
CartLike.getLineItems()
Snapshots of the products added to the cart.
|
Modifier and Type | Method and Description |
---|---|
static RemoveLineItem |
RemoveLineItem.of(LineItem lineItem) |
static SetLineItemPrice |
SetLineItemPrice.of(LineItem lineItem) |
static UpdateAction<Cart> |
ChangeLineItemQuantity.of(LineItem lineItem,
long quantity) |
static RemoveLineItem |
RemoveLineItem.of(LineItem lineItem,
Long quantity) |
static SetLineItemPrice |
SetLineItemPrice.of(LineItem lineItem,
javax.money.MonetaryAmount externalPrice) |
static ChangeLineItemQuantity |
ChangeLineItemQuantity.ofLineItemAndExternalPrice(LineItem lineItem,
long quantity,
javax.money.MonetaryAmount externalPrice) |
static RemoveLineItem |
RemoveLineItem.ofLineItemAndExternalPrice(LineItem lineItem,
Long quantity,
javax.money.MonetaryAmount externalPrice) |
static ChangeLineItemQuantity |
ChangeLineItemQuantity.ofLineItemAndExternalTotalPrice(LineItem lineItem,
long quantity,
ExternalLineItemTotalPrice externalTotalPrice) |
static RemoveLineItem |
RemoveLineItem.ofLineItemAndExternalTotalPrice(LineItem lineItem,
Long quantity,
ExternalLineItemTotalPrice externalTotalPrice) |
Modifier and Type | Method and Description |
---|---|
static RemoveLineItem |
RemoveLineItem.of(LineItem lineItem) |
static RemoveLineItem |
RemoveLineItem.of(LineItem lineItem,
Long quantity) |
static ChangeLineItemQuantity |
ChangeLineItemQuantity.ofLineItemAndExternalPrice(LineItem lineItem,
long quantity,
javax.money.MonetaryAmount externalPrice) |
static RemoveLineItem |
RemoveLineItem.ofLineItemAndExternalPrice(LineItem lineItem,
Long quantity,
javax.money.MonetaryAmount externalPrice) |
static ChangeLineItemQuantity |
ChangeLineItemQuantity.ofLineItemAndExternalTotalPrice(LineItem lineItem,
long quantity,
ExternalLineItemTotalPrice externalTotalPrice) |
static RemoveLineItem |
RemoveLineItem.ofLineItemAndExternalTotalPrice(LineItem lineItem,
Long quantity,
ExternalLineItemTotalPrice externalTotalPrice) |
Modifier and Type | Method and Description |
---|---|
List<LineItem> |
Order.getLineItems() |
Modifier and Type | Method and Description |
---|---|
static UpdateAction<Order> |
TransitionLineItemState.of(LineItem lineItem,
long quantity,
Referenceable<State> fromState,
Referenceable<State> toState) |
static UpdateAction<Order> |
TransitionLineItemState.of(LineItem lineItem,
long quantity,
Referenceable<State> fromState,
Referenceable<State> toState,
ZonedDateTime actualTransitionDate) |
static ImportLineItemState |
ImportLineItemState.of(LineItem lineItem,
Set<ItemState> itemState) |