Interface OrderFromQuoteDraft
- All Superinterfaces:
Draft<OrderFromQuoteDraft>
Example to create an instance using the builder pattern
OrderFromQuoteDraft orderFromQuoteDraft = OrderFromQuoteDraft.builder()
.quote(quoteBuilder -> quoteBuilder)
.version(0.3)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic OrderFromQuoteDraftBuilderbuilder()builder factory method for OrderFromQuoteDraftstatic OrderFromQuoteDraftBuilderbuilder(OrderFromQuoteDraft template) create builder for OrderFromQuoteDraft instancecopyDeep()static OrderFromQuoteDraftdeepCopy(OrderFromQuoteDraft template) factory method to create a deep copy of OrderFromQuoteDraftUser-defined identifier for the Order that is unique across a Project.Current status for the Order.Payment status for the Order.@NotNull @Valid QuoteResourceIdentifiergetQuote()ResourceIdentifier to the Quote from which the Order is created.Shipment status for the Order.@Valid StateResourceIdentifiergetState()State of the Order in a custom workflow.@NotNull Longversionof the Quote from which the Order is created.static OrderFromQuoteDraftof()factory methodstatic OrderFromQuoteDraftof(OrderFromQuoteDraft template) factory method to create a shallow copy OrderFromQuoteDraftvoidsetOrderNumber(String orderNumber) User-defined identifier for the Order that is unique across a Project.voidsetOrderState(OrderState orderState) Current status for the Order.voidsetPaymentState(PaymentState paymentState) Payment status for the Order.voidsetQuote(QuoteResourceIdentifier quote) ResourceIdentifier to the Quote from which the Order is created.voidsetQuoteStateToAccepted(Boolean quoteStateToAccepted) voidsetShipmentState(ShipmentState shipmentState) Shipment status for the Order.voidsetState(StateResourceIdentifier state) State of the Order in a custom workflow.voidsetVersion(Long version) versionof the Quote from which the Order is created.static com.fasterxml.jackson.core.type.TypeReference<OrderFromQuoteDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithOrderFromQuoteDraft(Function<OrderFromQuoteDraft, T> helper) accessor map function
-
Method Details
-
getQuote
ResourceIdentifier to the Quote from which the Order is created.
The Quote must have the
Pendingstate and must be valid (not past thevalidTodate).- Returns:
- quote
-
getVersion
versionof the Quote from which the Order is created.- Returns:
- version
-
getQuoteStateToAccepted
Boolean getQuoteStateToAccepted()If
true, thequoteStateof the referenced Quote will be set toAccepted.- Returns:
- quoteStateToAccepted
-
getOrderNumber
String getOrderNumber()User-defined identifier for the Order that is unique across a Project. Once set, the value cannot be changed.
- Returns:
- orderNumber
-
getPaymentState
PaymentState getPaymentState()Payment status for the Order.
- Returns:
- paymentState
-
getShipmentState
ShipmentState getShipmentState()Shipment status for the Order.
- Returns:
- shipmentState
-
getOrderState
OrderState getOrderState()Current status for the Order.
- Returns:
- orderState
-
getState
State of the Order in a custom workflow.
- Returns:
- state
-
setQuote
ResourceIdentifier to the Quote from which the Order is created.
The Quote must have the
Pendingstate and must be valid (not past thevalidTodate).- Parameters:
quote- value to be set
-
setVersion
versionof the Quote from which the Order is created.- Parameters:
version- value to be set
-
setQuoteStateToAccepted
If
true, thequoteStateof the referenced Quote will be set toAccepted.- Parameters:
quoteStateToAccepted- value to be set
-
setOrderNumber
User-defined identifier for the Order that is unique across a Project. Once set, the value cannot be changed.
- Parameters:
orderNumber- value to be set
-
setPaymentState
Payment status for the Order.
- Parameters:
paymentState- value to be set
-
setShipmentState
Shipment status for the Order.
- Parameters:
shipmentState- value to be set
-
setOrderState
Current status for the Order.
- Parameters:
orderState- value to be set
-
setState
State of the Order in a custom workflow.
- Parameters:
state- value to be set
-
of
factory method- Returns:
- instance of OrderFromQuoteDraft
-
of
factory method to create a shallow copy OrderFromQuoteDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderFromQuoteDraft copyDeep() -
deepCopy
factory method to create a deep copy of OrderFromQuoteDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderFromQuoteDraft- Returns:
- builder
-
builder
create builder for OrderFromQuoteDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withOrderFromQuoteDraft
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
-