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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartRemovePaymentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartRemovePaymentActionbuilder(MyCartRemovePaymentAction template) create builder for MyCartRemovePaymentAction instancecopyDeep()static MyCartRemovePaymentActiondeepCopy(MyCartRemovePaymentAction template) factory method to create a deep copy of MyCartRemovePaymentAction@NotNull @Valid PaymentResourceIdentifierPayment to remove from the Cart.static MyCartRemovePaymentActionof()factory methodstatic MyCartRemovePaymentActionof(MyCartRemovePaymentAction template) factory method to create a shallow copy MyCartRemovePaymentActionvoidsetPayment(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCartUpdateAction
getAction, withMyCartUpdateActionMethods 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
-
copyDeep
MyCartRemovePaymentAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
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
-