Class OrderLineItemRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderLineItemRemovedMessagePayload>
Example to create an instance using the builder pattern
OrderLineItemRemovedMessagePayload orderLineItemRemovedMessagePayload = OrderLineItemRemovedMessagePayload.builder()
.lineItemId("{lineItemId}")
.removedQuantity(0.3)
.newQuantity(0.3)
.plusNewState(newStateBuilder -> newStateBuilder)
.newTotalPrice(newTotalPriceBuilder -> newTotalPriceBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNewState
(Function<ItemStateBuilder, ItemState> builder) ItemStates after the Remove LineItem update action.build()
builds OrderLineItemRemovedMessagePayload with checking for non-null required valuesbuilds OrderLineItemRemovedMessagePayload without checking for non-null required valuesUnique identifier of the Line Item.User-defined unique identifier of the LineItem.Price of the Order after the Remove LineItem update action.Line Item quantity after the Remove LineItem update action.Shipping Details of the Order after the Remove LineItem update action.ItemStates after the Remove LineItem update action.TaxedItemPrice of the Order after the Remove LineItem update action.totalPrice
of the Order after the Remove LineItem update action.Quantity of Line Items that were removed during the Remove LineItem update action.lineItemId
(String lineItemId) Unique identifier of the Line Item.lineItemKey
(String lineItemKey) User-defined unique identifier of the LineItem.Price of the Order after the Remove LineItem update action.newPrice
(Function<PriceBuilder, PriceBuilder> builder) Price of the Order after the Remove LineItem update action.newQuantity
(Long newQuantity) Line Item quantity after the Remove LineItem update action.newShippingDetail
(ItemShippingDetails newShippingDetail) Shipping Details of the Order after the Remove LineItem update action.Shipping Details of the Order after the Remove LineItem update action.ItemStates after the Remove LineItem update action.ItemStates after the Remove LineItem update action.newTaxedPrice
(TaxedItemPrice newTaxedPrice) TaxedItemPrice of the Order after the Remove LineItem update action.TaxedItemPrice of the Order after the Remove LineItem update action.newTotalPrice
(CentPrecisionMoney newTotalPrice) totalPrice
of the Order after the Remove LineItem update action.totalPrice
of the Order after the Remove LineItem update action.of()
factory method for an instance of OrderLineItemRemovedMessagePayloadBuilderof
(OrderLineItemRemovedMessagePayload template) create builder for OrderLineItemRemovedMessagePayload instanceplusNewState
(ItemState... newState) ItemStates after the Remove LineItem update action.plusNewState
(Function<ItemStateBuilder, ItemStateBuilder> builder) ItemStates after the Remove LineItem update action.removedQuantity
(Long removedQuantity) Quantity of Line Items that were removed during the Remove LineItem update action.setNewState
(Function<ItemStateBuilder, ItemState> builder) ItemStates after the Remove LineItem update action.withNewPrice
(Function<PriceBuilder, Price> builder) Price of the Order after the Remove LineItem update action.Shipping Details of the Order after the Remove LineItem update action.withNewState
(Function<ItemStateBuilder, ItemStateBuilder> builder) ItemStates after the Remove LineItem update action.TaxedItemPrice of the Order after the Remove LineItem update action.totalPrice
of the Order after the Remove LineItem update action.
-
Constructor Details
-
OrderLineItemRemovedMessagePayloadBuilder
public OrderLineItemRemovedMessagePayloadBuilder()
-
-
Method Details
-
lineItemId
Unique identifier of the Line Item.
- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
User-defined unique identifier of the LineItem.
- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
removedQuantity
Quantity of Line Items that were removed during the Remove LineItem update action.
- Parameters:
removedQuantity
- value to be set- Returns:
- Builder
-
newQuantity
Line Item quantity after the Remove LineItem update action.
- Parameters:
newQuantity
- value to be set- Returns:
- Builder
-
newState
ItemStates after the Remove LineItem update action.
- Parameters:
newState
- value to be set- Returns:
- Builder
-
newState
ItemStates after the Remove LineItem update action.
- Parameters:
newState
- value to be set- Returns:
- Builder
-
plusNewState
ItemStates after the Remove LineItem update action.
- Parameters:
newState
- value to be set- Returns:
- Builder
-
plusNewState
public OrderLineItemRemovedMessagePayloadBuilder plusNewState(Function<ItemStateBuilder, ItemStateBuilder> builder) ItemStates after the Remove LineItem update action.
- Parameters:
builder
- function to build the newState value- Returns:
- Builder
-
withNewState
public OrderLineItemRemovedMessagePayloadBuilder withNewState(Function<ItemStateBuilder, ItemStateBuilder> builder) ItemStates after the Remove LineItem update action.
- Parameters:
builder
- function to build the newState value- Returns:
- Builder
-
addNewState
public OrderLineItemRemovedMessagePayloadBuilder addNewState(Function<ItemStateBuilder, ItemState> builder) ItemStates after the Remove LineItem update action.
- Parameters:
builder
- function to build the newState value- Returns:
- Builder
-
setNewState
public OrderLineItemRemovedMessagePayloadBuilder setNewState(Function<ItemStateBuilder, ItemState> builder) ItemStates after the Remove LineItem update action.
- Parameters:
builder
- function to build the newState value- Returns:
- Builder
-
newTotalPrice
public OrderLineItemRemovedMessagePayloadBuilder newTotalPrice(Function<CentPrecisionMoneyBuilder, CentPrecisionMoneyBuilder> builder) totalPrice
of the Order after the Remove LineItem update action.- Parameters:
builder
- function to build the newTotalPrice value- Returns:
- Builder
-
withNewTotalPrice
public OrderLineItemRemovedMessagePayloadBuilder withNewTotalPrice(Function<CentPrecisionMoneyBuilder, CentPrecisionMoney> builder) totalPrice
of the Order after the Remove LineItem update action.- Parameters:
builder
- function to build the newTotalPrice value- Returns:
- Builder
-
newTotalPrice
totalPrice
of the Order after the Remove LineItem update action.- Parameters:
newTotalPrice
- value to be set- Returns:
- Builder
-
newTaxedPrice
public OrderLineItemRemovedMessagePayloadBuilder newTaxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) TaxedItemPrice of the Order after the Remove LineItem update action.
- Parameters:
builder
- function to build the newTaxedPrice value- Returns:
- Builder
-
withNewTaxedPrice
public OrderLineItemRemovedMessagePayloadBuilder withNewTaxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPrice> builder) TaxedItemPrice of the Order after the Remove LineItem update action.
- Parameters:
builder
- function to build the newTaxedPrice value- Returns:
- Builder
-
newTaxedPrice
public OrderLineItemRemovedMessagePayloadBuilder newTaxedPrice(@Nullable TaxedItemPrice newTaxedPrice) TaxedItemPrice of the Order after the Remove LineItem update action.
- Parameters:
newTaxedPrice
- value to be set- Returns:
- Builder
-
newPrice
public OrderLineItemRemovedMessagePayloadBuilder newPrice(Function<PriceBuilder, PriceBuilder> builder) Price of the Order after the Remove LineItem update action.
- Parameters:
builder
- function to build the newPrice value- Returns:
- Builder
-
withNewPrice
Price of the Order after the Remove LineItem update action.
- Parameters:
builder
- function to build the newPrice value- Returns:
- Builder
-
newPrice
Price of the Order after the Remove LineItem update action.
- Parameters:
newPrice
- value to be set- Returns:
- Builder
-
newShippingDetail
public OrderLineItemRemovedMessagePayloadBuilder newShippingDetail(Function<ItemShippingDetailsBuilder, ItemShippingDetailsBuilder> builder) Shipping Details of the Order after the Remove LineItem update action.
- Parameters:
builder
- function to build the newShippingDetail value- Returns:
- Builder
-
withNewShippingDetail
public OrderLineItemRemovedMessagePayloadBuilder withNewShippingDetail(Function<ItemShippingDetailsBuilder, ItemShippingDetails> builder) Shipping Details of the Order after the Remove LineItem update action.
- Parameters:
builder
- function to build the newShippingDetail value- Returns:
- Builder
-
newShippingDetail
public OrderLineItemRemovedMessagePayloadBuilder newShippingDetail(@Nullable ItemShippingDetails newShippingDetail) Shipping Details of the Order after the Remove LineItem update action.
- Parameters:
newShippingDetail
- value to be set- Returns:
- Builder
-
getLineItemId
Unique identifier of the Line Item.
- Returns:
- lineItemId
-
getLineItemKey
User-defined unique identifier of the LineItem.
- Returns:
- lineItemKey
-
getRemovedQuantity
Quantity of Line Items that were removed during the Remove LineItem update action.
- Returns:
- removedQuantity
-
getNewQuantity
Line Item quantity after the Remove LineItem update action.
- Returns:
- newQuantity
-
getNewState
ItemStates after the Remove LineItem update action.
- Returns:
- newState
-
getNewTotalPrice
totalPrice
of the Order after the Remove LineItem update action.- Returns:
- newTotalPrice
-
getNewTaxedPrice
TaxedItemPrice of the Order after the Remove LineItem update action.
- Returns:
- newTaxedPrice
-
getNewPrice
Price of the Order after the Remove LineItem update action.
- Returns:
- newPrice
-
getNewShippingDetail
Shipping Details of the Order after the Remove LineItem update action.
- Returns:
- newShippingDetail
-
build
builds OrderLineItemRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderLineItemRemovedMessagePayload>
- Returns:
- OrderLineItemRemovedMessagePayload
-
buildUnchecked
builds OrderLineItemRemovedMessagePayload without checking for non-null required values- Returns:
- OrderLineItemRemovedMessagePayload
-
of
factory method for an instance of OrderLineItemRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderLineItemRemovedMessagePayloadBuilder of(OrderLineItemRemovedMessagePayload template) create builder for OrderLineItemRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-