Interface DayOfMonthSchedule
- All Superinterfaces:
RecurrencePolicySchedule
Schedule of a Recurring Order that occurs on a specific day of each month. This type is returned in the RecurrencePolicy for an active Recurring Order.
Example to create an instance using the builder pattern
DayOfMonthSchedule dayOfMonthSchedule = DayOfMonthSchedule.builder()
.day(1)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic DayOfMonthScheduleBuilder
builder()
builder factory method for DayOfMonthSchedulestatic DayOfMonthScheduleBuilder
builder
(DayOfMonthSchedule template) create builder for DayOfMonthSchedule instancecopyDeep()
static DayOfMonthSchedule
deepCopy
(DayOfMonthSchedule template) factory method to create a deep copy of DayOfMonthSchedule@NotNull Integer
getDay()
The day of the month when the Recurring Order is created.static DayOfMonthSchedule
of()
factory methodstatic DayOfMonthSchedule
of
(DayOfMonthSchedule template) factory method to create a shallow copy DayOfMonthSchedulevoid
The day of the month when the Recurring Order is created.static com.fasterxml.jackson.core.type.TypeReference<DayOfMonthSchedule>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withDayOfMonthSchedule
(Function<DayOfMonthSchedule, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.recurrence_policy.RecurrencePolicySchedule
getType, withRecurrencePolicySchedule
-
Field Details
-
DAY_OF_MONTH
discriminator value for DayOfMonthSchedule- See Also:
-
-
Method Details
-
getDay
The day of the month when the Recurring Order is created. If the value is greater than the number of days in a given month, the order is created on the last day of the month.
- Returns:
- day
-
setDay
The day of the month when the Recurring Order is created. If the value is greater than the number of days in a given month, the order is created on the last day of the month.
- Parameters:
day
- value to be set
-
of
factory method- Returns:
- instance of DayOfMonthSchedule
-
of
factory method to create a shallow copy DayOfMonthSchedule- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DayOfMonthSchedule copyDeep()- Specified by:
copyDeep
in interfaceRecurrencePolicySchedule
-
deepCopy
factory method to create a deep copy of DayOfMonthSchedule- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DayOfMonthSchedule- Returns:
- builder
-
builder
create builder for DayOfMonthSchedule instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDayOfMonthSchedule
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
-