Interface ItemShippingTarget
public interface ItemShippingTarget
ItemShippingTarget
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ItemShippingTarget itemShippingTarget = ItemShippingTarget.builder()
.addressKey("{addressKey}")
.quantity(1)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ItemShippingTargetBuilderbuilder()builder factory method for ItemShippingTargetstatic ItemShippingTargetBuilderbuilder(ItemShippingTarget template) create builder for ItemShippingTarget instancecopyDeep()static ItemShippingTargetdeepCopy(ItemShippingTarget template) factory method to create a deep copy of ItemShippingTarget@NotNull StringThe key of the address in the cart'sitemShippingAddresses@NotNull IntegerThe quantity of items that should go to the address with the specifiedaddressKey.static ItemShippingTargetof()factory methodstatic ItemShippingTargetof(ItemShippingTarget template) factory method to create a shallow copy ItemShippingTargetvoidsetAddressKey(String addressKey) The key of the address in the cart'sitemShippingAddressesvoidsetQuantity(Integer quantity) The quantity of items that should go to the address with the specifiedaddressKey.static com.fasterxml.jackson.core.type.TypeReference<ItemShippingTarget>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithItemShippingTarget(Function<ItemShippingTarget, T> helper) accessor map function
-
Method Details
-
getAddressKey
The key of the address in the cart's
itemShippingAddresses- Returns:
- addressKey
-
getQuantity
The quantity of items that should go to the address with the specified
addressKey. Only positive values are allowed. Using0as quantity is also possible in a draft object, but the element will not be present in the resulting ItemShippingDetails.- Returns:
- quantity
-
setAddressKey
The key of the address in the cart's
itemShippingAddresses- Parameters:
addressKey- value to be set
-
setQuantity
The quantity of items that should go to the address with the specified
addressKey. Only positive values are allowed. Using0as quantity is also possible in a draft object, but the element will not be present in the resulting ItemShippingDetails.- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of ItemShippingTarget
-
of
factory method to create a shallow copy ItemShippingTarget- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ItemShippingTarget copyDeep() -
deepCopy
factory method to create a deep copy of ItemShippingTarget- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ItemShippingTarget- Returns:
- builder
-
builder
create builder for ItemShippingTarget instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withItemShippingTarget
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
-