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 String
discriminator 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 FieldContainer
Sets the Custom Fields fields for thepaymentMethodInfo
.@Valid TypeResourceIdentifier
getType()
of()
factory methodof
(PaymentSetMethodInfoCustomTypeAction template) factory method to create a shallow copy PaymentSetMethodInfoCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for thepaymentMethodInfo
.void
static com.fasterxml.jackson.core.type.TypeReference<PaymentSetMethodInfoCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateAction
Methods 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
paymentMethodInfo
with Custom Fields.- Returns:
- type
-
getFields
Sets the Custom Fields fields for the
paymentMethodInfo
.- Returns:
- fields
-
setType
Defines the Type that extends the
paymentMethodInfo
with 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:
copyDeep
in 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
-