Interface PaymentMethodSetMethodAction
- All Superinterfaces:
PaymentMethodUpdateAction
This action generates the PaymentMethodMethodSet Message.
Example to create an instance using the builder pattern
PaymentMethodSetMethodAction paymentMethodSetMethodAction = PaymentMethodSetMethodAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodSetMethodAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodSetMethodActionbuilder
(PaymentMethodSetMethodAction template) create builder for PaymentMethodSetMethodAction instancecopyDeep()
static PaymentMethodSetMethodAction
deepCopy
(PaymentMethodSetMethodAction template) factory method to create a deep copy of PaymentMethodSetMethodActionNew payment method—for example, a credit card or direct debit.static PaymentMethodSetMethodAction
of()
factory methodstatic PaymentMethodSetMethodAction
of
(PaymentMethodSetMethodAction template) factory method to create a shallow copy PaymentMethodSetMethodActionvoid
New payment method—for example, a credit card or direct debit.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodSetMethodAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.payment_method.PaymentMethodUpdateAction
getAction, withPaymentMethodUpdateAction
-
Field Details
-
SET_METHOD
discriminator value for PaymentMethodSetMethodAction- See Also:
-
-
Method Details
-
getMethod
String getMethod()New payment method—for example, a credit card or direct debit. If empty, any existing value will be removed.
- Returns:
- method
-
setMethod
New payment method—for example, a credit card or direct debit. If empty, any existing value will be removed.
- Parameters:
method
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodSetMethodAction
-
of
factory method to create a shallow copy PaymentMethodSetMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodSetMethodAction copyDeep()- Specified by:
copyDeep
in interfacePaymentMethodUpdateAction
-
deepCopy
@Nullable static PaymentMethodSetMethodAction deepCopy(@Nullable PaymentMethodSetMethodAction template) factory method to create a deep copy of PaymentMethodSetMethodAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodSetMethodAction- Returns:
- builder
-
builder
create builder for PaymentMethodSetMethodAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodSetMethodAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-