Interface PaymentSetMethodInfoTokenAction
- All Superinterfaces:
PaymentUpdateAction,ResourceUpdateAction<PaymentUpdateAction>
This action generates the PaymentMethodInfoTokenSet Message.
Example to create an instance using the builder pattern
PaymentSetMethodInfoTokenAction paymentSetMethodInfoTokenAction = PaymentSetMethodInfoTokenAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentSetMethodInfoTokenAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentSetMethodInfoTokenActionbuilder(PaymentSetMethodInfoTokenAction template) create builder for PaymentSetMethodInfoTokenAction instancecopyDeep()deepCopy(PaymentSetMethodInfoTokenAction template) factory method to create a deep copy of PaymentSetMethodInfoTokenAction@Valid PaymentMethodTokengetToken()Value to set.of()factory methodof(PaymentSetMethodInfoTokenAction template) factory method to create a shallow copy PaymentSetMethodInfoTokenActionvoidsetToken(PaymentMethodToken token) Value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetMethodInfoTokenAction>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_TOKEN
discriminator value for PaymentSetMethodInfoTokenAction- See Also:
-
-
Method Details
-
getToken
Value to set. If empty, any existing value will be removed.
- Returns:
- token
-
setToken
Value to set. If empty, any existing value will be removed.
- Parameters:
token- value to be set
-
of
factory method- Returns:
- instance of PaymentSetMethodInfoTokenAction
-
of
factory method to create a shallow copy PaymentSetMethodInfoTokenAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentSetMethodInfoTokenAction copyDeep()- Specified by:
copyDeepin interfacePaymentUpdateAction
-
deepCopy
@Nullable static PaymentSetMethodInfoTokenAction deepCopy(@Nullable PaymentSetMethodInfoTokenAction template) factory method to create a deep copy of PaymentSetMethodInfoTokenAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentSetMethodInfoTokenAction- Returns:
- builder
-
builder
create builder for PaymentSetMethodInfoTokenAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentSetMethodInfoTokenAction
default <T> T withPaymentSetMethodInfoTokenAction(Function<PaymentSetMethodInfoTokenAction, 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<PaymentSetMethodInfoTokenAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-