Package com.commercetools.api.models.me
Interface MyPaymentSetMethodInfoCustomTypeAction
- All Superinterfaces:
MyPaymentUpdateAction
,ResourceUpdateAction<MyPaymentUpdateAction>
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
MyPaymentSetMethodInfoCustomTypeAction myPaymentSetMethodInfoCustomTypeAction = MyPaymentSetMethodInfoCustomTypeAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for MyPaymentSetMethodInfoCustomTypeAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyPaymentSetMethodInfoCustomTypeActioncreate builder for MyPaymentSetMethodInfoCustomTypeAction instancecopyDeep()
factory method to create a deep copy of MyPaymentSetMethodInfoCustomTypeAction@Valid FieldContainer
Sets the Custom Fields fields for thepaymentMethodInfo
.@Valid TypeResourceIdentifier
getType()
of()
factory methodof
(MyPaymentSetMethodInfoCustomTypeAction template) factory method to create a shallow copy MyPaymentSetMethodInfoCustomTypeActionvoid
setFields
(FieldContainer fields) Sets the Custom Fields fields for thepaymentMethodInfo
.void
static com.fasterxml.jackson.core.type.TypeReference<MyPaymentSetMethodInfoCustomTypeAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyPaymentSetMethodInfoCustomTypeAction
(Function<MyPaymentSetMethodInfoCustomTypeAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyPaymentUpdateAction
getAction, withMyPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_METHOD_INFO_CUSTOM_TYPE
discriminator value for MyPaymentSetMethodInfoCustomTypeAction- 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 MyPaymentSetMethodInfoCustomTypeAction
-
of
factory method to create a shallow copy MyPaymentSetMethodInfoCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
MyPaymentSetMethodInfoCustomTypeAction copyDeep()- Specified by:
copyDeep
in interfaceMyPaymentUpdateAction
-
deepCopy
@Nullable static MyPaymentSetMethodInfoCustomTypeAction deepCopy(@Nullable MyPaymentSetMethodInfoCustomTypeAction template) factory method to create a deep copy of MyPaymentSetMethodInfoCustomTypeAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyPaymentSetMethodInfoCustomTypeAction- Returns:
- builder
-
builder
static MyPaymentSetMethodInfoCustomTypeActionBuilder builder(MyPaymentSetMethodInfoCustomTypeAction template) create builder for MyPaymentSetMethodInfoCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyPaymentSetMethodInfoCustomTypeAction
default <T> T withMyPaymentSetMethodInfoCustomTypeAction(Function<MyPaymentSetMethodInfoCustomTypeAction, 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<MyPaymentSetMethodInfoCustomTypeAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-