Interface OrderCustomerGroupSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Set Customer Group update action.
Example to create an instance using the builder pattern
OrderCustomerGroupSetMessagePayload orderCustomerGroupSetMessagePayload = OrderCustomerGroupSetMessagePayload.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderCustomerGroupSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderCustomerGroupSetMessagePayloadbuilder
(OrderCustomerGroupSetMessagePayload template) create builder for OrderCustomerGroupSetMessagePayload instancedeepCopy
(OrderCustomerGroupSetMessagePayload template) factory method to create a deep copy of OrderCustomerGroupSetMessagePayload@Valid CustomerGroupReference
CustomerGroup on the Order after the Set Customer Group update action.@Valid CustomerGroupReference
CustomerGroup on the Order before the Set Customer Group update action.of()
factory methodof
(OrderCustomerGroupSetMessagePayload template) factory method to create a shallow copy OrderCustomerGroupSetMessagePayloadvoid
setCustomerGroup
(CustomerGroupReference customerGroup) CustomerGroup on the Order after the Set Customer Group update action.void
setOldCustomerGroup
(CustomerGroupReference oldCustomerGroup) CustomerGroup on the Order before the Set Customer Group update action.static com.fasterxml.jackson.core.type.TypeReference<OrderCustomerGroupSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_CUSTOMER_GROUP_SET
discriminator value for OrderCustomerGroupSetMessagePayload- See Also:
-
-
Method Details
-
getCustomerGroup
CustomerGroup on the Order after the Set Customer Group update action.
- Returns:
- customerGroup
-
getOldCustomerGroup
CustomerGroup on the Order before the Set Customer Group update action.
- Returns:
- oldCustomerGroup
-
setCustomerGroup
CustomerGroup on the Order after the Set Customer Group update action.
- Parameters:
customerGroup
- value to be set
-
setOldCustomerGroup
CustomerGroup on the Order before the Set Customer Group update action.
- Parameters:
oldCustomerGroup
- value to be set
-
of
factory method- Returns:
- instance of OrderCustomerGroupSetMessagePayload
-
of
factory method to create a shallow copy OrderCustomerGroupSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderCustomerGroupSetMessagePayload deepCopy(@Nullable OrderCustomerGroupSetMessagePayload template) factory method to create a deep copy of OrderCustomerGroupSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderCustomerGroupSetMessagePayload- Returns:
- builder
-
builder
static OrderCustomerGroupSetMessagePayloadBuilder builder(OrderCustomerGroupSetMessagePayload template) create builder for OrderCustomerGroupSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderCustomerGroupSetMessagePayload
default <T> T withOrderCustomerGroupSetMessagePayload(Function<OrderCustomerGroupSetMessagePayload, 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<OrderCustomerGroupSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-