Interface OrderSetPurchaseOrderNumberAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
Produces the PurchaseOrderNumberSet Message.
Example to create an instance using the builder pattern
OrderSetPurchaseOrderNumberAction orderSetPurchaseOrderNumberAction = OrderSetPurchaseOrderNumberAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderSetPurchaseOrderNumberAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderSetPurchaseOrderNumberActionbuilder
(OrderSetPurchaseOrderNumberAction template) create builder for OrderSetPurchaseOrderNumberAction instancedeepCopy
(OrderSetPurchaseOrderNumberAction template) factory method to create a deep copy of OrderSetPurchaseOrderNumberActionValue to set.of()
factory methodof
(OrderSetPurchaseOrderNumberAction template) factory method to create a shallow copy OrderSetPurchaseOrderNumberActionvoid
setPurchaseOrderNumber
(String purchaseOrderNumber) Value to set.static com.fasterxml.jackson.core.type.TypeReference<OrderSetPurchaseOrderNumberAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_PURCHASE_ORDER_NUMBER
discriminator value for OrderSetPurchaseOrderNumberAction- 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 OrderSetPurchaseOrderNumberAction
-
of
factory method to create a shallow copy OrderSetPurchaseOrderNumberAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderSetPurchaseOrderNumberAction deepCopy(@Nullable OrderSetPurchaseOrderNumberAction template) factory method to create a deep copy of OrderSetPurchaseOrderNumberAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderSetPurchaseOrderNumberAction- Returns:
- builder
-
builder
create builder for OrderSetPurchaseOrderNumberAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderSetPurchaseOrderNumberAction
default <T> T withOrderSetPurchaseOrderNumberAction(Function<OrderSetPurchaseOrderNumberAction, 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<OrderSetPurchaseOrderNumberAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-