Interface CartRemovePaymentAction
- All Superinterfaces:
CartUpdateAction
,ResourceUpdateAction<CartUpdateAction>
CartRemovePaymentAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartRemovePaymentAction cartRemovePaymentAction = CartRemovePaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartRemovePaymentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartRemovePaymentActionbuilder
(CartRemovePaymentAction template) create builder for CartRemovePaymentAction instancestatic CartRemovePaymentAction
deepCopy
(CartRemovePaymentAction template) factory method to create a deep copy of CartRemovePaymentAction@NotNull @Valid PaymentResourceIdentifier
Payment to remove from the Cart.static CartRemovePaymentAction
of()
factory methodstatic CartRemovePaymentAction
of
(CartRemovePaymentAction template) factory method to create a shallow copy CartRemovePaymentActionvoid
setPayment
(PaymentResourceIdentifier payment) Payment to remove from the Cart.static com.fasterxml.jackson.core.type.TypeReference<CartRemovePaymentAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_PAYMENT
discriminator value for CartRemovePaymentAction- See Also:
-
-
Method Details
-
getPayment
Payment to remove from the Cart.
- Returns:
- payment
-
setPayment
Payment to remove from the Cart.
- Parameters:
payment
- value to be set
-
of
factory method- Returns:
- instance of CartRemovePaymentAction
-
of
factory method to create a shallow copy CartRemovePaymentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartRemovePaymentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartRemovePaymentAction- Returns:
- builder
-
builder
create builder for CartRemovePaymentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartRemovePaymentAction
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
-