Interface PaymentSetMethodInfoCustomTypeAction
- All Superinterfaces:
PaymentUpdateAction,ResourceUpdateAction<PaymentUpdateAction>
Adding or updating a Custom Type on a PaymentMethodInfo generates the PaymentMethodInfoCustomTypeSet Message, removing one generates the PaymentMethodInfoCustomTypeRemoved Message.
Example to create an instance using the builder pattern
PaymentSetMethodInfoCustomTypeAction paymentSetMethodInfoCustomTypeAction = PaymentSetMethodInfoCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentSetMethodInfoCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentSetMethodInfoCustomTypeActionbuilder(PaymentSetMethodInfoCustomTypeAction template) create builder for PaymentSetMethodInfoCustomTypeAction instancecopyDeep()deepCopy(PaymentSetMethodInfoCustomTypeAction template) factory method to create a deep copy of PaymentSetMethodInfoCustomTypeAction@Valid FieldContainerSets the Custom Fields fields for thepaymentMethodInfo.@Valid TypeResourceIdentifiergetType()of()factory methodof(PaymentSetMethodInfoCustomTypeAction template) factory method to create a shallow copy PaymentSetMethodInfoCustomTypeActionvoidsetFields(FieldContainer fields) Sets the Custom Fields fields for thepaymentMethodInfo.voidstatic com.fasterxml.jackson.core.type.TypeReference<PaymentSetMethodInfoCustomTypeAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_METHOD_INFO_CUSTOM_TYPE
discriminator value for PaymentSetMethodInfoCustomTypeAction- See Also:
-
-
Method Details
-
getType
Defines the Type that extends the
paymentMethodInfowith Custom Fields.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
paymentMethodInfo.- Returns:
- fields
-
setType
Defines the Type that extends the
paymentMethodInfowith Custom Fields.- Parameters:
type- value to be set
-
setFields
Sets the Custom Fields fields for the
paymentMethodInfo.- Parameters:
fields- value to be set
-
of
factory method- Returns:
- instance of PaymentSetMethodInfoCustomTypeAction
-
of
factory method to create a shallow copy PaymentSetMethodInfoCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentSetMethodInfoCustomTypeAction copyDeep()- Specified by:
copyDeepin interfacePaymentUpdateAction
-
deepCopy
@Nullable static PaymentSetMethodInfoCustomTypeAction deepCopy(@Nullable PaymentSetMethodInfoCustomTypeAction template) factory method to create a deep copy of PaymentSetMethodInfoCustomTypeAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentSetMethodInfoCustomTypeAction- Returns:
- builder
-
builder
static PaymentSetMethodInfoCustomTypeActionBuilder builder(PaymentSetMethodInfoCustomTypeAction template) create builder for PaymentSetMethodInfoCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentSetMethodInfoCustomTypeAction
default <T> T withPaymentSetMethodInfoCustomTypeAction(Function<PaymentSetMethodInfoCustomTypeAction, 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<PaymentSetMethodInfoCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-