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