Interface CartAddPaymentAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
CartAddPaymentAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CartAddPaymentAction cartAddPaymentAction = CartAddPaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartAddPaymentAction -
Method Summary
Modifier and TypeMethodDescriptionstatic CartAddPaymentActionBuilderbuilder()builder factory method for CartAddPaymentActionstatic CartAddPaymentActionBuilderbuilder(CartAddPaymentAction template) create builder for CartAddPaymentAction instancecopyDeep()static CartAddPaymentActiondeepCopy(CartAddPaymentAction template) factory method to create a deep copy of CartAddPaymentAction@NotNull @Valid PaymentResourceIdentifierPayment to add to the Cart.static CartAddPaymentActionof()factory methodstatic CartAddPaymentActionof(CartAddPaymentAction template) factory method to create a shallow copy CartAddPaymentActionvoidsetPayment(PaymentResourceIdentifier payment) Payment to add to the Cart.static com.fasterxml.jackson.core.type.TypeReference<CartAddPaymentAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCartAddPaymentAction(Function<CartAddPaymentAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_PAYMENT
discriminator value for CartAddPaymentAction- See Also:
-
-
Method Details
-
getPayment
Payment to add to the Cart. Must not be assigned to another Order or active Cart already.
- Returns:
- payment
-
setPayment
Payment to add to the Cart. Must not be assigned to another Order or active Cart already.
- Parameters:
payment- value to be set
-
of
factory method- Returns:
- instance of CartAddPaymentAction
-
of
factory method to create a shallow copy CartAddPaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartAddPaymentAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
factory method to create a deep copy of CartAddPaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartAddPaymentAction- Returns:
- builder
-
builder
create builder for CartAddPaymentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartAddPaymentAction
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
-