Interface PaymentMethodMethodSetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Method update action.
Example to create an instance using the builder pattern
PaymentMethodMethodSetMessagePayload paymentMethodMethodSetMessagePayload = PaymentMethodMethodSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentMethodMethodSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentMethodMethodSetMessagePayloadbuilder(PaymentMethodMethodSetMessagePayload template) create builder for PaymentMethodMethodSetMessagePayload instancecopyDeep()deepCopy(PaymentMethodMethodSetMessagePayload template) factory method to create a deep copy of PaymentMethodMethodSetMessagePayloadPayment Method after the Set Method update action.Payment Method before the Set Method update action.of()factory methodof(PaymentMethodMethodSetMessagePayload template) factory method to create a shallow copy PaymentMethodMethodSetMessagePayloadvoidPayment Method after the Set Method update action.voidsetOldMethod(String oldMethod) Payment Method before the Set Method update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodMethodSetMessagePayload>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_METHOD_SET
discriminator value for PaymentMethodMethodSetMessagePayload- See Also:
-
-
Method Details
-
getMethod
String getMethod()Payment Method after the Set Method update action.
- Returns:
- method
-
getOldMethod
String getOldMethod()Payment Method before the Set Method update action.
- Returns:
- oldMethod
-
setMethod
Payment Method after the Set Method update action.
- Parameters:
method- value to be set
-
setOldMethod
Payment Method before the Set Method update action.
- Parameters:
oldMethod- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodMethodSetMessagePayload
-
of
factory method to create a shallow copy PaymentMethodMethodSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodMethodSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodMethodSetMessagePayload deepCopy(@Nullable PaymentMethodMethodSetMessagePayload template) factory method to create a deep copy of PaymentMethodMethodSetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodMethodSetMessagePayload- Returns:
- builder
-
builder
static PaymentMethodMethodSetMessagePayloadBuilder builder(PaymentMethodMethodSetMessagePayload template) create builder for PaymentMethodMethodSetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodMethodSetMessagePayload
default <T> T withPaymentMethodMethodSetMessagePayload(Function<PaymentMethodMethodSetMessagePayload, 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<PaymentMethodMethodSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-