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 Stringdiscriminator 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 BooleanDefault Payment Method after the Set Default update action.@NotNull BooleanDefault Payment Method before the Set Default update action.of()factory methodof(PaymentMethodDefaultSetMessagePayload template) factory method to create a shallow copy PaymentMethodDefaultSetMessagePayloadvoidsetDefault(Boolean _default) Default Payment Method after the Set Default update action.voidsetOldDefault(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> Taccessor 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
-
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:
copyDeepin 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
-