Interface PaymentMethodDefaultSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Default update action.
Example to create an instance using the builder pattern
PaymentMethodDefaultSetMessagePayload paymentMethodDefaultSetMessagePayload = PaymentMethodDefaultSetMessagePayload.builder()
.default(true)
.oldDefault(true)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodDefaultSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodDefaultSetMessagePayloadbuilder
(PaymentMethodDefaultSetMessagePayload template) create builder for PaymentMethodDefaultSetMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodDefaultSetMessagePayload@NotNull Boolean
Default Payment Method after the Set Default update action.@NotNull Boolean
Default Payment Method before the Set Default update action.of()
factory methodof
(PaymentMethodDefaultSetMessagePayload template) factory method to create a shallow copy PaymentMethodDefaultSetMessagePayloadvoid
setDefault
(Boolean _default) Default Payment Method after the Set Default update action.void
setOldDefault
(Boolean oldDefault) Default Payment Method before the Set Default update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodDefaultSetMessagePayload>
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
-
Field Details
-
PAYMENT_METHOD_DEFAULT_SET
discriminator value for PaymentMethodDefaultSetMessagePayload- See Also:
-
-
Method Details
-
getDefault
Default Payment Method after the Set Default update action.
- Returns:
- default
-
getOldDefault
Default Payment Method before the Set Default update action.
- Returns:
- oldDefault
-
setDefault
Default Payment Method after the Set Default update action.
- Parameters:
_default
- value to be set
-
setOldDefault
Default Payment Method before the Set Default update action.
- Parameters:
oldDefault
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodDefaultSetMessagePayload
-
of
factory method to create a shallow copy PaymentMethodDefaultSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodDefaultSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodDefaultSetMessagePayload deepCopy(@Nullable PaymentMethodDefaultSetMessagePayload template) factory method to create a deep copy of PaymentMethodDefaultSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodDefaultSetMessagePayload- Returns:
- builder
-
builder
static PaymentMethodDefaultSetMessagePayloadBuilder builder(PaymentMethodDefaultSetMessagePayload template) create builder for PaymentMethodDefaultSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodDefaultSetMessagePayload
default <T> T withPaymentMethodDefaultSetMessagePayload(Function<PaymentMethodDefaultSetMessagePayload, 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<PaymentMethodDefaultSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-