Interface PaymentMethodInfoCustomTypeSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after adding Custom Fields to a PaymentMethodInfo using the Set MethodInfo Custom Type update action on Payments and the Set MethodInfo Custom Type update action on My Payments.
Example to create an instance using the builder pattern
PaymentMethodInfoCustomTypeSetMessagePayload paymentMethodInfoCustomTypeSetMessagePayload = PaymentMethodInfoCustomTypeSetMessagePayload.builder()
.customFields(customFieldsBuilder -> customFieldsBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodInfoCustomTypeSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodInfoCustomTypeSetMessagePayloadcreate builder for PaymentMethodInfoCustomTypeSetMessagePayload instancecopyDeep()
factory method to create a deep copy of PaymentMethodInfoCustomTypeSetMessagePayload@NotNull @Valid CustomFields
The Custom Fields that were set.id
of the previous Type.of()
factory methodfactory method to create a shallow copy PaymentMethodInfoCustomTypeSetMessagePayloadvoid
setCustomFields
(CustomFields customFields) The Custom Fields that were set.void
setOldTypeId
(String oldTypeId) id
of the previous Type.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodInfoCustomTypeSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodInfoCustomTypeSetMessagePayload
(Function<PaymentMethodInfoCustomTypeSetMessagePayload, 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_CUSTOM_TYPE_SET
discriminator value for PaymentMethodInfoCustomTypeSetMessagePayload- See Also:
-
-
Method Details
-
getCustomFields
The Custom Fields that were set.
- Returns:
- customFields
-
getOldTypeId
String getOldTypeId()id
of the previous Type. Absent if there was no previous Custom Type present.- Returns:
- oldTypeId
-
setCustomFields
The Custom Fields that were set.
- Parameters:
customFields
- value to be set
-
setOldTypeId
id
of the previous Type. Absent if there was no previous Custom Type present.- Parameters:
oldTypeId
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodInfoCustomTypeSetMessagePayload
-
of
static PaymentMethodInfoCustomTypeSetMessagePayload of(PaymentMethodInfoCustomTypeSetMessagePayload template) factory method to create a shallow copy PaymentMethodInfoCustomTypeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodInfoCustomTypeSetMessagePayload copyDeep()- Specified by:
copyDeep
in interfaceMessagePayload
-
deepCopy
@Nullable static PaymentMethodInfoCustomTypeSetMessagePayload deepCopy(@Nullable PaymentMethodInfoCustomTypeSetMessagePayload template) factory method to create a deep copy of PaymentMethodInfoCustomTypeSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodInfoCustomTypeSetMessagePayload- Returns:
- builder
-
builder
static PaymentMethodInfoCustomTypeSetMessagePayloadBuilder builder(PaymentMethodInfoCustomTypeSetMessagePayload template) create builder for PaymentMethodInfoCustomTypeSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodInfoCustomTypeSetMessagePayload
default <T> T withPaymentMethodInfoCustomTypeSetMessagePayload(Function<PaymentMethodInfoCustomTypeSetMessagePayload, 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<PaymentMethodInfoCustomTypeSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-