Interface LineItemRecurrenceInfoDraft
- All Superinterfaces:
Draft<LineItemRecurrenceInfoDraft>
Information about recurring orders and frequencies.
Example to create an instance using the builder pattern
LineItemRecurrenceInfoDraft lineItemRecurrenceInfoDraft = LineItemRecurrenceInfoDraft.builder()
.recurrencePolicy(recurrencePolicyBuilder -> recurrencePolicyBuilder)
.priceSelectionMode(PriceSelectionMode.FIXED)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for LineItemRecurrenceInfoDraftbuilder
(LineItemRecurrenceInfoDraft template) create builder for LineItemRecurrenceInfoDraft instancecopyDeep()
static LineItemRecurrenceInfoDraft
deepCopy
(LineItemRecurrenceInfoDraft template) factory method to create a deep copy of LineItemRecurrenceInfoDraft@NotNull PriceSelectionMode
Determines how the price of a line item will be selected during order creation.@NotNull @Valid RecurrencePolicyResourceIdentifier
ResourceIdentifier to a RecurrencePolicy.static LineItemRecurrenceInfoDraft
of()
factory methodstatic LineItemRecurrenceInfoDraft
of
(LineItemRecurrenceInfoDraft template) factory method to create a shallow copy LineItemRecurrenceInfoDraftvoid
setPriceSelectionMode
(PriceSelectionMode priceSelectionMode) Determines how the price of a line item will be selected during order creation.void
setRecurrencePolicy
(RecurrencePolicyResourceIdentifier recurrencePolicy) ResourceIdentifier to a RecurrencePolicy.static com.fasterxml.jackson.core.type.TypeReference<LineItemRecurrenceInfoDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getRecurrencePolicy
ResourceIdentifier to a RecurrencePolicy.
- Returns:
- recurrencePolicy
-
getPriceSelectionMode
Determines how the price of a line item will be selected during order creation.
- Returns:
- priceSelectionMode
-
setRecurrencePolicy
ResourceIdentifier to a RecurrencePolicy.
- Parameters:
recurrencePolicy
- value to be set
-
setPriceSelectionMode
Determines how the price of a line item will be selected during order creation.
- Parameters:
priceSelectionMode
- value to be set
-
of
factory method- Returns:
- instance of LineItemRecurrenceInfoDraft
-
of
factory method to create a shallow copy LineItemRecurrenceInfoDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
LineItemRecurrenceInfoDraft copyDeep() -
deepCopy
@Nullable static LineItemRecurrenceInfoDraft deepCopy(@Nullable LineItemRecurrenceInfoDraft template) factory method to create a deep copy of LineItemRecurrenceInfoDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for LineItemRecurrenceInfoDraft- Returns:
- builder
-
builder
create builder for LineItemRecurrenceInfoDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withLineItemRecurrenceInfoDraft
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
-