Interface StagedOrderAddPaymentAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
Produces the Order Payment Added Message.
Example to create an instance using the builder pattern
StagedOrderAddPaymentAction stagedOrderAddPaymentAction = StagedOrderAddPaymentAction.builder()
.payment(paymentBuilder -> paymentBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for StagedOrderAddPaymentAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderAddPaymentActionbuilder(StagedOrderAddPaymentAction template) create builder for StagedOrderAddPaymentAction instancecopyDeep()static StagedOrderAddPaymentActiondeepCopy(StagedOrderAddPaymentAction template) factory method to create a deep copy of StagedOrderAddPaymentAction@NotNull @Valid PaymentResourceIdentifierPayment to add to the PaymentInfo.static StagedOrderAddPaymentActionof()factory methodstatic StagedOrderAddPaymentActionof(StagedOrderAddPaymentAction template) factory method to create a shallow copy StagedOrderAddPaymentActionvoidsetPayment(PaymentResourceIdentifier payment) Payment to add to the PaymentInfo.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderAddPaymentAction>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
-
ADD_PAYMENT
discriminator value for StagedOrderAddPaymentAction- 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 StagedOrderAddPaymentAction
-
of
factory method to create a shallow copy StagedOrderAddPaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderAddPaymentAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
@Nullable static StagedOrderAddPaymentAction deepCopy(@Nullable StagedOrderAddPaymentAction template) factory method to create a deep copy of StagedOrderAddPaymentAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderAddPaymentAction- Returns:
- builder
-
builder
create builder for StagedOrderAddPaymentAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderAddPaymentAction
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
-