Interface PaymentSetAnonymousIdAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
If the Payment is already associated with a Customer, an InvalidOperation error is returned.
Example to create an instance using the builder pattern
PaymentSetAnonymousIdAction paymentSetAnonymousIdAction = PaymentSetAnonymousIdAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentSetAnonymousIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentSetAnonymousIdActionbuilder
(PaymentSetAnonymousIdAction template) create builder for PaymentSetAnonymousIdAction instancestatic PaymentSetAnonymousIdAction
deepCopy
(PaymentSetAnonymousIdAction template) factory method to create a deep copy of PaymentSetAnonymousIdActionValue to set.static PaymentSetAnonymousIdAction
of()
factory methodstatic PaymentSetAnonymousIdAction
of
(PaymentSetAnonymousIdAction template) factory method to create a shallow copy PaymentSetAnonymousIdActionvoid
setAnonymousId
(String anonymousId) Value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetAnonymousIdAction>
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_ANONYMOUS_ID
discriminator value for PaymentSetAnonymousIdAction- See Also:
-
-
Method Details
-
getAnonymousId
String getAnonymousId()Value to set. If empty, any existing value will be removed.
- Returns:
- anonymousId
-
setAnonymousId
Value to set. If empty, any existing value will be removed.
- Parameters:
anonymousId
- value to be set
-
of
factory method- Returns:
- instance of PaymentSetAnonymousIdAction
-
of
factory method to create a shallow copy PaymentSetAnonymousIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static PaymentSetAnonymousIdAction deepCopy(@Nullable PaymentSetAnonymousIdAction template) factory method to create a deep copy of PaymentSetAnonymousIdAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentSetAnonymousIdAction- Returns:
- builder
-
builder
create builder for PaymentSetAnonymousIdAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentSetAnonymousIdAction
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
-