Interface PaymentMethodPaymentMethodStatusSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set PaymentMethodStatus update action.
Example to create an instance using the builder pattern
PaymentMethodPaymentMethodStatusSetMessagePayload paymentMethodPaymentMethodStatusSetMessagePayload = PaymentMethodPaymentMethodStatusSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodPaymentMethodStatusSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodPaymentMethodStatusSetMessagePayloadcreate builder for PaymentMethodPaymentMethodStatusSetMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodPaymentMethodStatusSetMessagePayloadStatus of the Payment Method before the Set PaymentMethodStatus update action.Status of the Payment Method after the Set PaymentMethodStatus update action.of()
factory methodfactory method to create a shallow copy PaymentMethodPaymentMethodStatusSetMessagePayloadvoid
setOldStatus
(PaymentMethodStatus oldStatus) Status of the Payment Method before the Set PaymentMethodStatus update action.void
setStatus
(PaymentMethodStatus status) Status of the Payment Method after the Set PaymentMethodStatus update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodPaymentMethodStatusSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodPaymentMethodStatusSetMessagePayload
(Function<PaymentMethodPaymentMethodStatusSetMessagePayload, T> helper) 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_PAYMENT_METHOD_STATUS_SET
discriminator value for PaymentMethodPaymentMethodStatusSetMessagePayload- See Also:
-
-
Method Details
-
getStatus
PaymentMethodStatus getStatus()Status of the Payment Method after the Set PaymentMethodStatus update action.
- Returns:
- status
-
getOldStatus
PaymentMethodStatus getOldStatus()Status of the Payment Method before the Set PaymentMethodStatus update action.
- Returns:
- oldStatus
-
setStatus
Status of the Payment Method after the Set PaymentMethodStatus update action.
- Parameters:
status
- value to be set
-
setOldStatus
Status of the Payment Method before the Set PaymentMethodStatus update action.
- Parameters:
oldStatus
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodPaymentMethodStatusSetMessagePayload
-
of
static PaymentMethodPaymentMethodStatusSetMessagePayload of(PaymentMethodPaymentMethodStatusSetMessagePayload template) factory method to create a shallow copy PaymentMethodPaymentMethodStatusSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodPaymentMethodStatusSetMessagePayload deepCopy(@Nullable PaymentMethodPaymentMethodStatusSetMessagePayload template) factory method to create a deep copy of PaymentMethodPaymentMethodStatusSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodPaymentMethodStatusSetMessagePayload- Returns:
- builder
-
builder
static PaymentMethodPaymentMethodStatusSetMessagePayloadBuilder builder(PaymentMethodPaymentMethodStatusSetMessagePayload template) create builder for PaymentMethodPaymentMethodStatusSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodPaymentMethodStatusSetMessagePayload
default <T> T withPaymentMethodPaymentMethodStatusSetMessagePayload(Function<PaymentMethodPaymentMethodStatusSetMessagePayload, 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<PaymentMethodPaymentMethodStatusSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-