Interface StagedOrderRemovePaymentAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Produces the Order Payment Removed Message.
Example to create an instance using the builder pattern
StagedOrderRemovePaymentAction stagedOrderRemovePaymentAction = StagedOrderRemovePaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderRemovePaymentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderRemovePaymentActionbuilder(StagedOrderRemovePaymentAction template) create builder for StagedOrderRemovePaymentAction instancecopyDeep()deepCopy(StagedOrderRemovePaymentAction template) factory method to create a deep copy of StagedOrderRemovePaymentAction@NotNull @Valid PaymentResourceIdentifierPayment to remove from the PaymentInfo.of()factory methodof(StagedOrderRemovePaymentAction template) factory method to create a shallow copy StagedOrderRemovePaymentActionvoidsetPayment(PaymentResourceIdentifier payment) Payment to remove from the PaymentInfo.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderRemovePaymentAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
REMOVE_PAYMENT
discriminator value for StagedOrderRemovePaymentAction- 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 StagedOrderRemovePaymentAction
-
of
factory method to create a shallow copy StagedOrderRemovePaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderRemovePaymentAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderRemovePaymentAction deepCopy(@Nullable StagedOrderRemovePaymentAction template) factory method to create a deep copy of StagedOrderRemovePaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderRemovePaymentAction- Returns:
- builder
-
builder
create builder for StagedOrderRemovePaymentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderRemovePaymentAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<StagedOrderRemovePaymentAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-