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