Package com.commercetools.api.models.me
Interface MyPaymentSetMethodInfoCustomFieldAction
- All Superinterfaces:
MyPaymentUpdateAction
,ResourceUpdateAction<MyPaymentUpdateAction>
Adding a Custom Field to a PaymentMethodInfo generates the PaymentMethodInfoCustomFieldAdded Message, removing one generates the PaymentMethodInfoCustomFieldRemoved Message, and updating an existing one generates the PaymentMethodInfoCustomFieldChanged Message.
Example to create an instance using the builder pattern
MyPaymentSetMethodInfoCustomFieldAction myPaymentSetMethodInfoCustomFieldAction = MyPaymentSetMethodInfoCustomFieldAction.builder()
.name("{name}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for MyPaymentSetMethodInfoCustomFieldAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyPaymentSetMethodInfoCustomFieldActioncreate builder for MyPaymentSetMethodInfoCustomFieldAction instancecopyDeep()
factory method to create a deep copy of MyPaymentSetMethodInfoCustomFieldAction@NotNull String
getName()
Name of the Custom Field.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.of()
factory methodof
(MyPaymentSetMethodInfoCustomFieldAction template) factory method to create a shallow copy MyPaymentSetMethodInfoCustomFieldActionvoid
Name of the Custom Field.void
Ifvalue
is absent ornull
, this field will be removed if it exists.static com.fasterxml.jackson.core.type.TypeReference<MyPaymentSetMethodInfoCustomFieldAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyPaymentSetMethodInfoCustomFieldAction
(Function<MyPaymentSetMethodInfoCustomFieldAction, 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_FIELD
discriminator value for MyPaymentSetMethodInfoCustomFieldAction- See Also:
-
-
Method Details
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
Object getValue()If
value
is absent ornull
, this field will be removed if it exists. Ifvalue
is provided, it is set for the field defined byname
. Trying to remove a field that does not exist will fail with an InvalidOperation error.- Returns:
- value
-
setName
Name of the Custom Field.
- Parameters:
name
- value to be set
-
setValue
If
value
is absent ornull
, this field will be removed if it exists. Ifvalue
is provided, it is set for the field defined byname
. Trying to remove a field that does not exist will fail with an InvalidOperation error.- Parameters:
value
- value to be set
-
of
factory method- Returns:
- instance of MyPaymentSetMethodInfoCustomFieldAction
-
of
factory method to create a shallow copy MyPaymentSetMethodInfoCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
MyPaymentSetMethodInfoCustomFieldAction copyDeep()- Specified by:
copyDeep
in interfaceMyPaymentUpdateAction
-
deepCopy
@Nullable static MyPaymentSetMethodInfoCustomFieldAction deepCopy(@Nullable MyPaymentSetMethodInfoCustomFieldAction template) factory method to create a deep copy of MyPaymentSetMethodInfoCustomFieldAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyPaymentSetMethodInfoCustomFieldAction- Returns:
- builder
-
builder
static MyPaymentSetMethodInfoCustomFieldActionBuilder builder(MyPaymentSetMethodInfoCustomFieldAction template) create builder for MyPaymentSetMethodInfoCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyPaymentSetMethodInfoCustomFieldAction
default <T> T withMyPaymentSetMethodInfoCustomFieldAction(Function<MyPaymentSetMethodInfoCustomFieldAction, 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<MyPaymentSetMethodInfoCustomFieldAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-