Package com.commercetools.api.models.me
Interface MyCartAddPaymentAction
- All Superinterfaces:
MyCartUpdateAction,ResourceUpdateAction<MyCartUpdateAction>
MyCartAddPaymentAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyCartAddPaymentAction myCartAddPaymentAction = MyCartAddPaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCartAddPaymentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCartAddPaymentActionbuilder(MyCartAddPaymentAction template) create builder for MyCartAddPaymentAction instancecopyDeep()static MyCartAddPaymentActiondeepCopy(MyCartAddPaymentAction template) factory method to create a deep copy of MyCartAddPaymentAction@NotNull @Valid PaymentResourceIdentifierPayment to add to the Cart.static MyCartAddPaymentActionof()factory methodstatic MyCartAddPaymentActionof(MyCartAddPaymentAction template) factory method to create a shallow copy MyCartAddPaymentActionvoidsetPayment(PaymentResourceIdentifier payment) Payment to add to the Cart.static com.fasterxml.jackson.core.type.TypeReference<MyCartAddPaymentAction>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
-
ADD_PAYMENT
discriminator value for MyCartAddPaymentAction- 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 MyCartAddPaymentAction
-
of
factory method to create a shallow copy MyCartAddPaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCartAddPaymentAction copyDeep()- Specified by:
copyDeepin interfaceMyCartUpdateAction
-
deepCopy
factory method to create a deep copy of MyCartAddPaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCartAddPaymentAction- Returns:
- builder
-
builder
create builder for MyCartAddPaymentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCartAddPaymentAction
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
-