Interface AbsoluteAllocationDraft
- All Superinterfaces:
AllocationDraft,Draft<AbsoluteAllocationDraft>
Allocates a fixed amount of the Order total to a Payment Method.
Example to create an instance using the builder pattern
AbsoluteAllocationDraft absoluteAllocationDraft = AbsoluteAllocationDraft.builder()
.amount(amountBuilder -> amountBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AbsoluteAllocationDraftbuilder(AbsoluteAllocationDraft template) create builder for AbsoluteAllocationDraft instancecopyDeep()static AbsoluteAllocationDraftdeepCopy(AbsoluteAllocationDraft template) factory method to create a deep copy of AbsoluteAllocationDraft@NotNull @Valid HighPrecisionMoneyDraftAmount of the Order total allocated to the Payment Method.static AbsoluteAllocationDraftof()factory methodstatic AbsoluteAllocationDraftof(AbsoluteAllocationDraft template) factory method to create a shallow copy AbsoluteAllocationDraftvoidsetAmount(HighPrecisionMoneyDraft amount) Amount of the Order total allocated to the Payment Method.static tools.jackson.core.type.TypeReference<AbsoluteAllocationDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.AllocationDraft
getType, withAllocationDraft
-
Field Details
-
ABSOLUTE
discriminator value for AbsoluteAllocationDraft- See Also:
-
-
Method Details
-
getAmount
Amount of the Order total allocated to the Payment Method.
- Returns:
- amount
-
setAmount
Amount of the Order total allocated to the Payment Method.
- Parameters:
amount- value to be set
-
of
factory method- Returns:
- instance of AbsoluteAllocationDraft
-
of
factory method to create a shallow copy AbsoluteAllocationDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AbsoluteAllocationDraft copyDeep()- Specified by:
copyDeepin interfaceAllocationDraft
-
deepCopy
factory method to create a deep copy of AbsoluteAllocationDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AbsoluteAllocationDraft- Returns:
- builder
-
builder
create builder for AbsoluteAllocationDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAbsoluteAllocationDraft
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
-