Interface PaymentMethodNameSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Name update action.
Example to create an instance using the builder pattern
PaymentMethodNameSetMessagePayload paymentMethodNameSetMessagePayload = PaymentMethodNameSetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodNameSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodNameSetMessagePayloadbuilder
(PaymentMethodNameSetMessagePayload template) create builder for PaymentMethodNameSetMessagePayload instancecopyDeep()
deepCopy
(PaymentMethodNameSetMessagePayload template) factory method to create a deep copy of PaymentMethodNameSetMessagePayload@Valid LocalizedString
getName()
Name of the Payment Method after the Set Name update action.@Valid LocalizedString
Name of the Payment Method before the Set Name update action.of()
factory methodof
(PaymentMethodNameSetMessagePayload template) factory method to create a shallow copy PaymentMethodNameSetMessagePayloadvoid
setName
(LocalizedString name) Name of the Payment Method after the Set Name update action.void
setOldName
(LocalizedString oldName) Name of the Payment Method before the Set Name update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodNameSetMessagePayload>
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_NAME_SET
discriminator value for PaymentMethodNameSetMessagePayload- See Also:
-
-
Method Details
-
getName
Name of the Payment Method after the Set Name update action.
- Returns:
- name
-
getOldName
Name of the Payment Method before the Set Name update action.
- Returns:
- oldName
-
setName
Name of the Payment Method after the Set Name update action.
- Parameters:
name
- value to be set
-
setOldName
Name of the Payment Method before the Set Name update action.
- Parameters:
oldName
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodNameSetMessagePayload
-
of
factory method to create a shallow copy PaymentMethodNameSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodNameSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodNameSetMessagePayload deepCopy(@Nullable PaymentMethodNameSetMessagePayload template) factory method to create a deep copy of PaymentMethodNameSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodNameSetMessagePayload- Returns:
- builder
-
builder
static PaymentMethodNameSetMessagePayloadBuilder builder(PaymentMethodNameSetMessagePayload template) create builder for PaymentMethodNameSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodNameSetMessagePayload
default <T> T withPaymentMethodNameSetMessagePayload(Function<PaymentMethodNameSetMessagePayload, 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<PaymentMethodNameSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-