Interface OrderRemovePaymentAction
- All Superinterfaces:
OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
OrderRemovePaymentAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderRemovePaymentAction orderRemovePaymentAction = OrderRemovePaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderRemovePaymentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderRemovePaymentActionbuilder
(OrderRemovePaymentAction template) create builder for OrderRemovePaymentAction instancestatic OrderRemovePaymentAction
deepCopy
(OrderRemovePaymentAction template) factory method to create a deep copy of OrderRemovePaymentAction@NotNull @Valid PaymentResourceIdentifier
Payment to remove from the PaymentInfo.static OrderRemovePaymentAction
of()
factory methodstatic OrderRemovePaymentAction
of
(OrderRemovePaymentAction template) factory method to create a shallow copy OrderRemovePaymentActionvoid
setPayment
(PaymentResourceIdentifier payment) Payment to remove from the PaymentInfo.static com.fasterxml.jackson.core.type.TypeReference<OrderRemovePaymentAction>
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
-
REMOVE_PAYMENT
discriminator value for OrderRemovePaymentAction- See Also:
-
-
Method Details
-
getPayment
Payment to remove from the PaymentInfo.
- Returns:
- payment
-
setPayment
Payment to remove from the PaymentInfo.
- Parameters:
payment
- value to be set
-
of
factory method- Returns:
- instance of OrderRemovePaymentAction
-
of
factory method to create a shallow copy OrderRemovePaymentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of OrderRemovePaymentAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderRemovePaymentAction- Returns:
- builder
-
builder
create builder for OrderRemovePaymentAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderRemovePaymentAction
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
-