Interface CartPurchaseOrderNumberSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Purchase Order Number update action.
Example to create an instance using the builder pattern
CartPurchaseOrderNumberSetMessagePayload cartPurchaseOrderNumberSetMessagePayload = CartPurchaseOrderNumberSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartPurchaseOrderNumberSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartPurchaseOrderNumberSetMessagePayloadcreate builder for CartPurchaseOrderNumberSetMessagePayload instancecopyDeep()factory method to create a deep copy of CartPurchaseOrderNumberSetMessagePayloadPurchase order number on the Cart before the Set Purchase Order Number update action.Purchase order number on the Cart after the Set Purchase Order Number update action.of()factory methodof(CartPurchaseOrderNumberSetMessagePayload template) factory method to create a shallow copy CartPurchaseOrderNumberSetMessagePayloadvoidsetOldPurchaseOrderNumber(String oldPurchaseOrderNumber) Purchase order number on the Cart before the Set Purchase Order Number update action.voidsetPurchaseOrderNumber(String purchaseOrderNumber) Purchase order number on the Cart after the Set Purchase Order Number update action.static com.fasterxml.jackson.core.type.TypeReference<CartPurchaseOrderNumberSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartPurchaseOrderNumberSetMessagePayload(Function<CartPurchaseOrderNumberSetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CART_PURCHASE_ORDER_NUMBER_SET
discriminator value for CartPurchaseOrderNumberSetMessagePayload- See Also:
-
-
Method Details
-
getPurchaseOrderNumber
String getPurchaseOrderNumber()Purchase order number on the Cart after the Set Purchase Order Number update action.
- Returns:
- purchaseOrderNumber
-
getOldPurchaseOrderNumber
String getOldPurchaseOrderNumber()Purchase order number on the Cart before the Set Purchase Order Number update action.
- Returns:
- oldPurchaseOrderNumber
-
setPurchaseOrderNumber
Purchase order number on the Cart after the Set Purchase Order Number update action.
- Parameters:
purchaseOrderNumber- value to be set
-
setOldPurchaseOrderNumber
Purchase order number on the Cart before the Set Purchase Order Number update action.
- Parameters:
oldPurchaseOrderNumber- value to be set
-
of
factory method- Returns:
- instance of CartPurchaseOrderNumberSetMessagePayload
-
of
static CartPurchaseOrderNumberSetMessagePayload of(CartPurchaseOrderNumberSetMessagePayload template) factory method to create a shallow copy CartPurchaseOrderNumberSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartPurchaseOrderNumberSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static CartPurchaseOrderNumberSetMessagePayload deepCopy(@Nullable CartPurchaseOrderNumberSetMessagePayload template) factory method to create a deep copy of CartPurchaseOrderNumberSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartPurchaseOrderNumberSetMessagePayload- Returns:
- builder
-
builder
static CartPurchaseOrderNumberSetMessagePayloadBuilder builder(CartPurchaseOrderNumberSetMessagePayload template) create builder for CartPurchaseOrderNumberSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartPurchaseOrderNumberSetMessagePayload
default <T> T withCartPurchaseOrderNumberSetMessagePayload(Function<CartPurchaseOrderNumberSetMessagePayload, 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<CartPurchaseOrderNumberSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-