Interface RecurringOrder
- All Superinterfaces:
BaseResource
Example to create an instance using the builder pattern
RecurringOrder recurringOrder = RecurringOrder.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.cart(cartBuilder -> cartBuilder)
.originOrder(originOrderBuilder -> originOrderBuilder)
.startsAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.recurringOrderState(RecurringOrderState.ACTIVE)
.schedule(scheduleBuilder -> scheduleBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic RecurringOrderBuilder
builder()
builder factory method for RecurringOrderstatic RecurringOrderBuilder
builder
(RecurringOrder template) create builder for RecurringOrder instancecopyDeep()
static RecurringOrder
deepCopy
(RecurringOrder template) factory method to create a deep copy of RecurringOrder@Valid BusinessUnitKeyReference
Reference to the Business Unit that the RecurringOrder belongs to.@NotNull @Valid CartReference
getCart()
Reference to the Cart for a RecurringOrder.@NotNull ZonedDateTime
Date and time (UTC) when the RecurringOrder was created.@Valid CreatedBy
IDs and references that created the RecurringOrder.@Valid CustomFields
Custom Fields of the RecurringOrder.@Valid CustomerReference
The Customer that the RecurringOrder belongs to.Email address of the Customer that the RecurringOrder belongs to.Date and time (UTC) when the RecurringOrder expires.@NotNull String
getId()
Unique identifier of the RecurringOrder.getKey()
User-defined unique identifier of the RecurringOrder.@NotNull ZonedDateTime
Date and time (UTC) when the RecurringOrder was last updated.@Valid LastModifiedBy
IDs and references that last modified the RecurringOrder.Date and time (UTC) when the last Order was created from this RecurringOrder.Date and time (UTC) when the next Order will be created from this RecurringOrder.@NotNull @Valid OrderReference
@NotNull RecurringOrderState
Current state of the RecurringOrder.Date and time (UTC) when the RecurringOrder resumes creating Orders after being unpaused.@NotNull @Valid RecurrencePolicySchedule
Schedule of the RecurringOrder.@Valid SkipConfiguration
Information about current and future skips for this RecurringOrder.@NotNull ZonedDateTime
Date and time (UTC) when the RecurringOrder starts creating new Orders.@Valid StateReference
getState()
State of the RecurringOrder in a custom workflow.@Valid StoreKeyReference
getStore()
Reference to a Store.@NotNull Long
Current version of the RecurringOrder.static RecurringOrder
of()
factory methodstatic RecurringOrder
of
(RecurringOrder template) factory method to create a shallow copy RecurringOrdervoid
setBusinessUnit
(BusinessUnitKeyReference businessUnit) Reference to the Business Unit that the RecurringOrder belongs to.void
setCart
(CartReference cart) Reference to the Cart for a RecurringOrder.void
setCreatedAt
(ZonedDateTime createdAt) Date and time (UTC) when the RecurringOrder was created.void
setCreatedBy
(CreatedBy createdBy) IDs and references that created the RecurringOrder.void
setCustom
(CustomFields custom) Custom Fields of the RecurringOrder.void
setCustomer
(CustomerReference customer) The Customer that the RecurringOrder belongs to.void
setCustomerEmail
(String customerEmail) Email address of the Customer that the RecurringOrder belongs to.void
setExpiresAt
(ZonedDateTime expiresAt) Date and time (UTC) when the RecurringOrder expires.void
Unique identifier of the RecurringOrder.void
User-defined unique identifier of the RecurringOrder.void
setLastModifiedAt
(ZonedDateTime lastModifiedAt) Date and time (UTC) when the RecurringOrder was last updated.void
setLastModifiedBy
(LastModifiedBy lastModifiedBy) IDs and references that last modified the RecurringOrder.void
setLastOrderAt
(ZonedDateTime lastOrderAt) Date and time (UTC) when the last Order was created from this RecurringOrder.void
setNextOrderAt
(ZonedDateTime nextOrderAt) Date and time (UTC) when the next Order will be created from this RecurringOrder.void
setOriginOrder
(OrderReference originOrder) void
setRecurringOrderState
(RecurringOrderState recurringOrderState) Current state of the RecurringOrder.void
setResumesAt
(ZonedDateTime resumesAt) Date and time (UTC) when the RecurringOrder resumes creating Orders after being unpaused.void
setSchedule
(RecurrencePolicySchedule schedule) Schedule of the RecurringOrder.void
setSkipConfiguration
(SkipConfiguration skipConfiguration) Information about current and future skips for this RecurringOrder.void
setStartsAt
(ZonedDateTime startsAt) Date and time (UTC) when the RecurringOrder starts creating new Orders.void
setState
(StateReference state) State of the RecurringOrder in a custom workflow.void
setStore
(StoreKeyReference store) Reference to a Store.void
setVersion
(Long version) Current version of the RecurringOrder.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrder>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withRecurringOrder
(Function<RecurringOrder, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
-
Method Details
-
getId
Unique identifier of the RecurringOrder.
- Specified by:
getId
in interfaceBaseResource
- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the RecurringOrder.
- Returns:
- key
-
getVersion
Current version of the RecurringOrder.
- Specified by:
getVersion
in interfaceBaseResource
- Returns:
- version
-
getCart
Reference to the Cart for a RecurringOrder. The referenced Cart will have the
RecurringOrder
CartOrigin.- Returns:
- cart
-
getOriginOrder
- Returns:
- originOrder
-
getStartsAt
Date and time (UTC) when the RecurringOrder starts creating new Orders.
- Returns:
- startsAt
-
getResumesAt
ZonedDateTime getResumesAt()Date and time (UTC) when the RecurringOrder resumes creating Orders after being unpaused.
- Returns:
- resumesAt
-
getExpiresAt
ZonedDateTime getExpiresAt()Date and time (UTC) when the RecurringOrder expires.
- Returns:
- expiresAt
-
getLastOrderAt
ZonedDateTime getLastOrderAt()Date and time (UTC) when the last Order was created from this RecurringOrder.
- Returns:
- lastOrderAt
-
getNextOrderAt
ZonedDateTime getNextOrderAt()Date and time (UTC) when the next Order will be created from this RecurringOrder.
- Returns:
- nextOrderAt
-
getSkipConfiguration
Information about current and future skips for this RecurringOrder.
- Returns:
- skipConfiguration
-
getStore
Reference to a Store.
- Returns:
- store
-
getBusinessUnit
Reference to the Business Unit that the RecurringOrder belongs to.
- Returns:
- businessUnit
-
getState
State of the RecurringOrder in a custom workflow.
- Returns:
- state
-
getRecurringOrderState
Current state of the RecurringOrder.
- Returns:
- recurringOrderState
-
getSchedule
Schedule of the RecurringOrder.
- Returns:
- schedule
-
getCustomer
The Customer that the RecurringOrder belongs to.
- Returns:
- customer
-
getCustomerEmail
String getCustomerEmail()Email address of the Customer that the RecurringOrder belongs to.
- Returns:
- customerEmail
-
getCustom
Custom Fields of the RecurringOrder.
- Returns:
- custom
-
getCreatedAt
Date and time (UTC) when the RecurringOrder was created.
- Specified by:
getCreatedAt
in interfaceBaseResource
- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) when the RecurringOrder was last updated.
- Specified by:
getLastModifiedAt
in interfaceBaseResource
- Returns:
- lastModifiedAt
-
getLastModifiedBy
IDs and references that last modified the RecurringOrder.
- Returns:
- lastModifiedBy
-
getCreatedBy
IDs and references that created the RecurringOrder.
- Returns:
- createdBy
-
setId
Unique identifier of the RecurringOrder.
- Specified by:
setId
in interfaceBaseResource
- Parameters:
id
- value to be set
-
setKey
User-defined unique identifier of the RecurringOrder.
- Parameters:
key
- value to be set
-
setVersion
Current version of the RecurringOrder.
- Specified by:
setVersion
in interfaceBaseResource
- Parameters:
version
- value to be set
-
setCart
Reference to the Cart for a RecurringOrder. The referenced Cart will have the
RecurringOrder
CartOrigin.- Parameters:
cart
- value to be set
-
setOriginOrder
- Parameters:
originOrder
- value to be set
-
setStartsAt
Date and time (UTC) when the RecurringOrder starts creating new Orders.
- Parameters:
startsAt
- value to be set
-
setResumesAt
Date and time (UTC) when the RecurringOrder resumes creating Orders after being unpaused.
- Parameters:
resumesAt
- value to be set
-
setExpiresAt
Date and time (UTC) when the RecurringOrder expires.
- Parameters:
expiresAt
- value to be set
-
setLastOrderAt
Date and time (UTC) when the last Order was created from this RecurringOrder.
- Parameters:
lastOrderAt
- value to be set
-
setNextOrderAt
Date and time (UTC) when the next Order will be created from this RecurringOrder.
- Parameters:
nextOrderAt
- value to be set
-
setSkipConfiguration
Information about current and future skips for this RecurringOrder.
- Parameters:
skipConfiguration
- value to be set
-
setStore
Reference to a Store.
- Parameters:
store
- value to be set
-
setBusinessUnit
Reference to the Business Unit that the RecurringOrder belongs to.
- Parameters:
businessUnit
- value to be set
-
setState
State of the RecurringOrder in a custom workflow.
- Parameters:
state
- value to be set
-
setRecurringOrderState
Current state of the RecurringOrder.
- Parameters:
recurringOrderState
- value to be set
-
setSchedule
Schedule of the RecurringOrder.
- Parameters:
schedule
- value to be set
-
setCustomer
The Customer that the RecurringOrder belongs to.
- Parameters:
customer
- value to be set
-
setCustomerEmail
Email address of the Customer that the RecurringOrder belongs to.
- Parameters:
customerEmail
- value to be set
-
setCustom
Custom Fields of the RecurringOrder.
- Parameters:
custom
- value to be set
-
setCreatedAt
Date and time (UTC) when the RecurringOrder was created.
- Specified by:
setCreatedAt
in interfaceBaseResource
- Parameters:
createdAt
- value to be set
-
setLastModifiedAt
Date and time (UTC) when the RecurringOrder was last updated.
- Specified by:
setLastModifiedAt
in interfaceBaseResource
- Parameters:
lastModifiedAt
- value to be set
-
setLastModifiedBy
IDs and references that last modified the RecurringOrder.
- Parameters:
lastModifiedBy
- value to be set
-
setCreatedBy
IDs and references that created the RecurringOrder.
- Parameters:
createdBy
- value to be set
-
of
factory method- Returns:
- instance of RecurringOrder
-
of
factory method to create a shallow copy RecurringOrder- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
RecurringOrder copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
-
deepCopy
factory method to create a deep copy of RecurringOrder- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for RecurringOrder- Returns:
- builder
-
builder
create builder for RecurringOrder instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withRecurringOrder
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
-