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 RecurringOrderBuilderbuilder()builder factory method for RecurringOrderstatic RecurringOrderBuilderbuilder(RecurringOrder template) create builder for RecurringOrder instancecopyDeep()static RecurringOrderdeepCopy(RecurringOrder template) factory method to create a deep copy of RecurringOrder@Valid BusinessUnitKeyReferenceReference to the Business Unit that the RecurringOrder belongs to.@NotNull @Valid CartReferencegetCart()Reference to the Cart for a RecurringOrder.@NotNull ZonedDateTimeDate and time (UTC) when the RecurringOrder was created.@Valid CreatedByIDs and references that created the RecurringOrder.@Valid CustomFieldsCustom Fields of the RecurringOrder.@Valid CustomerReferenceThe 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 StringgetId()Unique identifier of the RecurringOrder.getKey()User-defined unique identifier of the RecurringOrder.@NotNull ZonedDateTimeDate and time (UTC) when the RecurringOrder was last updated.@Valid LastModifiedByIDs 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 RecurringOrderStateCurrent state of the RecurringOrder.Date and time (UTC) when the RecurringOrder resumes creating Orders after being unpaused.@NotNull @Valid RecurrencePolicyScheduleSchedule of the RecurringOrder.@Valid SkipConfigurationInformation about current and future skips for this RecurringOrder.@NotNull ZonedDateTimeDate and time (UTC) when the RecurringOrder starts creating new Orders.@Valid StateReferencegetState()State of the RecurringOrder in a custom workflow.@Valid StoreKeyReferencegetStore()Reference to a Store.@NotNull LongCurrent version of the RecurringOrder.static RecurringOrderof()factory methodstatic RecurringOrderof(RecurringOrder template) factory method to create a shallow copy RecurringOrdervoidsetBusinessUnit(BusinessUnitKeyReference businessUnit) Reference to the Business Unit that the RecurringOrder belongs to.voidsetCart(CartReference cart) Reference to the Cart for a RecurringOrder.voidsetCreatedAt(ZonedDateTime createdAt) Date and time (UTC) when the RecurringOrder was created.voidsetCreatedBy(CreatedBy createdBy) IDs and references that created the RecurringOrder.voidsetCustom(CustomFields custom) Custom Fields of the RecurringOrder.voidsetCustomer(CustomerReference customer) The Customer that the RecurringOrder belongs to.voidsetCustomerEmail(String customerEmail) Email address of the Customer that the RecurringOrder belongs to.voidsetExpiresAt(ZonedDateTime expiresAt) Date and time (UTC) when the RecurringOrder expires.voidUnique identifier of the RecurringOrder.voidUser-defined unique identifier of the RecurringOrder.voidsetLastModifiedAt(ZonedDateTime lastModifiedAt) Date and time (UTC) when the RecurringOrder was last updated.voidsetLastModifiedBy(LastModifiedBy lastModifiedBy) IDs and references that last modified the RecurringOrder.voidsetLastOrderAt(ZonedDateTime lastOrderAt) Date and time (UTC) when the last Order was created from this RecurringOrder.voidsetNextOrderAt(ZonedDateTime nextOrderAt) Date and time (UTC) when the next Order will be created from this RecurringOrder.voidsetOriginOrder(OrderReference originOrder) voidsetRecurringOrderState(RecurringOrderState recurringOrderState) Current state of the RecurringOrder.voidsetResumesAt(ZonedDateTime resumesAt) Date and time (UTC) when the RecurringOrder resumes creating Orders after being unpaused.voidsetSchedule(RecurrencePolicySchedule schedule) Schedule of the RecurringOrder.voidsetSkipConfiguration(SkipConfiguration skipConfiguration) Information about current and future skips for this RecurringOrder.voidsetStartsAt(ZonedDateTime startsAt) Date and time (UTC) when the RecurringOrder starts creating new Orders.voidsetState(StateReference state) State of the RecurringOrder in a custom workflow.voidsetStore(StoreKeyReference store) Reference to a Store.voidsetVersion(Long version) Current version of the RecurringOrder.static com.fasterxml.jackson.core.type.TypeReference<RecurringOrder>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithRecurringOrder(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:
getIdin interfaceBaseResource- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the RecurringOrder.
- Returns:
- key
-
getVersion
Current version of the RecurringOrder.
- Specified by:
getVersionin interfaceBaseResource- Returns:
- version
-
getCart
Reference to the Cart for a RecurringOrder. The referenced Cart will have the
RecurringOrderCartOrigin.- 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:
getCreatedAtin interfaceBaseResource- Returns:
- createdAt
-
getLastModifiedAt
Date and time (UTC) when the RecurringOrder was last updated.
- Specified by:
getLastModifiedAtin 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:
setIdin 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:
setVersionin interfaceBaseResource- Parameters:
version- value to be set
-
setCart
Reference to the Cart for a RecurringOrder. The referenced Cart will have the
RecurringOrderCartOrigin.- 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:
setCreatedAtin interfaceBaseResource- Parameters:
createdAt- value to be set
-
setLastModifiedAt
Date and time (UTC) when the RecurringOrder was last updated.
- Specified by:
setLastModifiedAtin 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:
copyDeepin 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
-