Class OrderCustomLineItemDiscountSetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<OrderCustomLineItemDiscountSetMessagePayload>
Example to create an instance using the builder pattern
OrderCustomLineItemDiscountSetMessagePayload orderCustomLineItemDiscountSetMessagePayload = OrderCustomLineItemDiscountSetMessagePayload.builder()
.customLineItemId("{customLineItemId}")
.plusDiscountedPricePerQuantity(discountedPricePerQuantityBuilder -> discountedPricePerQuantityBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDiscountedPricePerQuantity
(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantity> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.build()
builds OrderCustomLineItemDiscountSetMessagePayload with checking for non-null required valuesbuilds OrderCustomLineItemDiscountSetMessagePayload without checking for non-null required valuescustomLineItemId
(String customLineItemId) Unique identifier for the Custom Line Item.customLineItemKey
(String customLineItemKey) User-defined unique identifier of the Custom Line Item.discountedPricePerQuantity
(DiscountedLineItemPriceForQuantity... discountedPricePerQuantity) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.discountedPricePerQuantity
(List<DiscountedLineItemPriceForQuantity> discountedPricePerQuantity) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.Unique identifier for the Custom Line Item.User-defined unique identifier of the Custom Line Item.Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.TaxedItemPrice of the Custom Line Item after the Discount recalculation.of()
factory method for an instance of OrderCustomLineItemDiscountSetMessagePayloadBuildercreate builder for OrderCustomLineItemDiscountSetMessagePayload instanceplusDiscountedPricePerQuantity
(DiscountedLineItemPriceForQuantity... discountedPricePerQuantity) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.plusDiscountedPricePerQuantity
(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantityBuilder> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.setDiscountedPricePerQuantity
(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantity> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.taxedPrice
(TaxedItemPrice taxedPrice) TaxedItemPrice of the Custom Line Item after the Discount recalculation.TaxedItemPrice of the Custom Line Item after the Discount recalculation.withDiscountedPricePerQuantity
(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantityBuilder> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.TaxedItemPrice of the Custom Line Item after the Discount recalculation.
-
Constructor Details
-
OrderCustomLineItemDiscountSetMessagePayloadBuilder
public OrderCustomLineItemDiscountSetMessagePayloadBuilder()
-
-
Method Details
-
customLineItemId
public OrderCustomLineItemDiscountSetMessagePayloadBuilder customLineItemId(String customLineItemId) Unique identifier for the Custom Line Item.
- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderCustomLineItemDiscountSetMessagePayloadBuilder customLineItemKey(@Nullable String customLineItemKey) User-defined unique identifier of the Custom Line Item.
- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
discountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder discountedPricePerQuantity(DiscountedLineItemPriceForQuantity... discountedPricePerQuantity) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
discountedPricePerQuantity
- value to be set- Returns:
- Builder
-
discountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder discountedPricePerQuantity(List<DiscountedLineItemPriceForQuantity> discountedPricePerQuantity) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
discountedPricePerQuantity
- value to be set- Returns:
- Builder
-
plusDiscountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder plusDiscountedPricePerQuantity(DiscountedLineItemPriceForQuantity... discountedPricePerQuantity) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
discountedPricePerQuantity
- value to be set- Returns:
- Builder
-
plusDiscountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder plusDiscountedPricePerQuantity(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantityBuilder> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
builder
- function to build the discountedPricePerQuantity value- Returns:
- Builder
-
withDiscountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder withDiscountedPricePerQuantity(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantityBuilder> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
builder
- function to build the discountedPricePerQuantity value- Returns:
- Builder
-
addDiscountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder addDiscountedPricePerQuantity(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantity> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
builder
- function to build the discountedPricePerQuantity value- Returns:
- Builder
-
setDiscountedPricePerQuantity
public OrderCustomLineItemDiscountSetMessagePayloadBuilder setDiscountedPricePerQuantity(Function<DiscountedLineItemPriceForQuantityBuilder, DiscountedLineItemPriceForQuantity> builder) Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Parameters:
builder
- function to build the discountedPricePerQuantity value- Returns:
- Builder
-
taxedPrice
public OrderCustomLineItemDiscountSetMessagePayloadBuilder taxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPriceBuilder> builder) TaxedItemPrice of the Custom Line Item after the Discount recalculation.
- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
withTaxedPrice
public OrderCustomLineItemDiscountSetMessagePayloadBuilder withTaxedPrice(Function<TaxedItemPriceBuilder, TaxedItemPrice> builder) TaxedItemPrice of the Custom Line Item after the Discount recalculation.
- Parameters:
builder
- function to build the taxedPrice value- Returns:
- Builder
-
taxedPrice
public OrderCustomLineItemDiscountSetMessagePayloadBuilder taxedPrice(@Nullable TaxedItemPrice taxedPrice) TaxedItemPrice of the Custom Line Item after the Discount recalculation.
- Parameters:
taxedPrice
- value to be set- Returns:
- Builder
-
getCustomLineItemId
Unique identifier for the Custom Line Item.
- Returns:
- customLineItemId
-
getCustomLineItemKey
User-defined unique identifier of the Custom Line Item.
- Returns:
- customLineItemKey
-
getDiscountedPricePerQuantity
Array of DiscountedLineItemPriceForQuantity after the Discount recalculation.
- Returns:
- discountedPricePerQuantity
-
getTaxedPrice
TaxedItemPrice of the Custom Line Item after the Discount recalculation.
- Returns:
- taxedPrice
-
build
builds OrderCustomLineItemDiscountSetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderCustomLineItemDiscountSetMessagePayload>
- Returns:
- OrderCustomLineItemDiscountSetMessagePayload
-
buildUnchecked
builds OrderCustomLineItemDiscountSetMessagePayload without checking for non-null required values- Returns:
- OrderCustomLineItemDiscountSetMessagePayload
-
of
factory method for an instance of OrderCustomLineItemDiscountSetMessagePayloadBuilder- Returns:
- builder
-
of
public static OrderCustomLineItemDiscountSetMessagePayloadBuilder of(OrderCustomLineItemDiscountSetMessagePayload template) create builder for OrderCustomLineItemDiscountSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-