Interface OrderAddPaymentAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
OrderAddPaymentAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderAddPaymentAction orderAddPaymentAction = OrderAddPaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderAddPaymentAction -
Method Summary
Modifier and TypeMethodDescriptionstatic OrderAddPaymentActionBuilder
builder()
builder factory method for OrderAddPaymentActionstatic OrderAddPaymentActionBuilder
builder
(OrderAddPaymentAction template) create builder for OrderAddPaymentAction instancestatic OrderAddPaymentAction
deepCopy
(OrderAddPaymentAction template) factory method to create a deep copy of OrderAddPaymentAction@NotNull @Valid PaymentResourceIdentifier
Payment to add to the PaymentInfo.static OrderAddPaymentAction
of()
factory methodstatic OrderAddPaymentAction
of
(OrderAddPaymentAction template) factory method to create a shallow copy OrderAddPaymentActionvoid
setPayment
(PaymentResourceIdentifier payment) Payment to add to the PaymentInfo.static com.fasterxml.jackson.core.type.TypeReference<OrderAddPaymentAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
getAction, withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_PAYMENT
discriminator value for OrderAddPaymentAction- See Also:
-
-
Method Details
-
getPayment
Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.
- Returns:
- payment
-
setPayment
Payment to add to the PaymentInfo. Must not be assigned to another Order or active Cart already.
- Parameters:
payment
- value to be set
-
of
factory method- Returns:
- instance of OrderAddPaymentAction
-
of
factory method to create a shallow copy OrderAddPaymentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderAddPaymentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderAddPaymentAction- Returns:
- builder
-
builder
create builder for OrderAddPaymentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderAddPaymentAction
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
-