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