Interface PaymentMethodKeySetMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after a successful Set Key update action.
Example to create an instance using the builder pattern
PaymentMethodKeySetMessagePayload paymentMethodKeySetMessagePayload = PaymentMethodKeySetMessagePayload.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentMethodKeySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentMethodKeySetMessagePayloadbuilder(PaymentMethodKeySetMessagePayload template) create builder for PaymentMethodKeySetMessagePayload instancecopyDeep()deepCopy(PaymentMethodKeySetMessagePayload template) factory method to create a deep copy of PaymentMethodKeySetMessagePayloadgetKey()of()factory methodof(PaymentMethodKeySetMessagePayload template) factory method to create a shallow copy PaymentMethodKeySetMessagePayloadvoidvoidstatic com.fasterxml.jackson.core.type.TypeReference<PaymentMethodKeySetMessagePayload>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_KEY_SET
discriminator value for PaymentMethodKeySetMessagePayload- See Also:
-
-
Method Details
-
getKey
String getKey()keyvalue of the PaymentMethod after the Set Key update action.- Returns:
- key
-
getOldKey
String getOldKey()keyvalue of the PaymentMethod before the Set Key update action.- Returns:
- oldKey
-
setKey
keyvalue of the PaymentMethod after the Set Key update action.- Parameters:
key- value to be set
-
setOldKey
keyvalue of the PaymentMethod before the Set Key update action.- Parameters:
oldKey- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodKeySetMessagePayload
-
of
factory method to create a shallow copy PaymentMethodKeySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodKeySetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodKeySetMessagePayload deepCopy(@Nullable PaymentMethodKeySetMessagePayload template) factory method to create a deep copy of PaymentMethodKeySetMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodKeySetMessagePayload- Returns:
- builder
-
builder
create builder for PaymentMethodKeySetMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodKeySetMessagePayload
default <T> T withPaymentMethodKeySetMessagePayload(Function<PaymentMethodKeySetMessagePayload, 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<PaymentMethodKeySetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-