Interface ItemShippingDetails
public interface ItemShippingDetails
ItemShippingDetails
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ItemShippingDetails itemShippingDetails = ItemShippingDetails.builder()
.plusTargets(targetsBuilder -> targetsBuilder)
.valid(true)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemShippingDetailsBuilderbuilder()builder factory method for ItemShippingDetailsstatic ItemShippingDetailsBuilderbuilder(ItemShippingDetails template) create builder for ItemShippingDetails instancecopyDeep()static ItemShippingDetailsdeepCopy(ItemShippingDetails template) factory method to create a deep copy of ItemShippingDetails@NotNull @Valid List<ItemShippingTarget>Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.@NotNull BooleangetValid()trueif the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets.falseif the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets.static ItemShippingDetailsof()factory methodstatic ItemShippingDetailsof(ItemShippingDetails template) factory method to create a shallow copy ItemShippingDetailsvoidsetTargets(ItemShippingTarget... targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.voidsetTargets(List<ItemShippingTarget> targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.voidtrueif the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets.falseif the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets.static com.fasterxml.jackson.core.type.TypeReference<ItemShippingDetails>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithItemShippingDetails(Function<ItemShippingDetails, T> helper) accessor map function
-
Method Details
-
getTargets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
- Returns:
- targets
-
getValid
trueif the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets.falseif the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets. Ordering a Cart when the value isfalsereturns an InvalidItemShippingDetails error.
- Returns:
- valid
-
setTargets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
- Parameters:
targets- values to be set
-
setTargets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
- Parameters:
targets- values to be set
-
setValid
trueif the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets.falseif the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets. Ordering a Cart when the value isfalsereturns an InvalidItemShippingDetails error.
- Parameters:
valid- value to be set
-
of
factory method- Returns:
- instance of ItemShippingDetails
-
of
factory method to create a shallow copy ItemShippingDetails- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ItemShippingDetails copyDeep() -
deepCopy
factory method to create a deep copy of ItemShippingDetails- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ItemShippingDetails- Returns:
- builder
-
builder
create builder for ItemShippingDetails instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withItemShippingDetails
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-