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 Stringdiscriminator 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 LocalizedStringgetName()Name of the Payment Method after the Set Name update action.@Valid LocalizedStringName of the Payment Method before the Set Name update action.of()factory methodof(PaymentMethodNameSetMessagePayload template) factory method to create a shallow copy PaymentMethodNameSetMessagePayloadvoidsetName(LocalizedString name) Name of the Payment Method after the Set Name update action.voidsetOldName(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> 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_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:
copyDeepin 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
-