Interface CartSetPurchaseOrderNumberAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Updates the purchaseOrderNumber field and produces the CartPurchaseOrderNumberSet Message.
Example to create an instance using the builder pattern
CartSetPurchaseOrderNumberAction cartSetPurchaseOrderNumberAction = CartSetPurchaseOrderNumberAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetPurchaseOrderNumberAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetPurchaseOrderNumberActionbuilder(CartSetPurchaseOrderNumberAction template) create builder for CartSetPurchaseOrderNumberAction instancecopyDeep()deepCopy(CartSetPurchaseOrderNumberAction template) factory method to create a deep copy of CartSetPurchaseOrderNumberActionValue to set.of()factory methodof(CartSetPurchaseOrderNumberAction template) factory method to create a shallow copy CartSetPurchaseOrderNumberActionvoidsetPurchaseOrderNumber(String purchaseOrderNumber) Value to set.static com.fasterxml.jackson.core.type.TypeReference<CartSetPurchaseOrderNumberAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_PURCHASE_ORDER_NUMBER
discriminator value for CartSetPurchaseOrderNumberAction- See Also:
-
-
Method Details
-
getPurchaseOrderNumber
String getPurchaseOrderNumber()Value to set. If empty, any existing value is removed.
- Returns:
- purchaseOrderNumber
-
setPurchaseOrderNumber
Value to set. If empty, any existing value is removed.
- Parameters:
purchaseOrderNumber- value to be set
-
of
factory method- Returns:
- instance of CartSetPurchaseOrderNumberAction
-
of
factory method to create a shallow copy CartSetPurchaseOrderNumberAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetPurchaseOrderNumberAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetPurchaseOrderNumberAction deepCopy(@Nullable CartSetPurchaseOrderNumberAction template) factory method to create a deep copy of CartSetPurchaseOrderNumberAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetPurchaseOrderNumberAction- Returns:
- builder
-
builder
create builder for CartSetPurchaseOrderNumberAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetPurchaseOrderNumberAction
default <T> T withCartSetPurchaseOrderNumberAction(Function<CartSetPurchaseOrderNumberAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CartSetPurchaseOrderNumberAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-