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 OrderFromQuoteDraftBuilder
builder()
builder factory method for OrderFromQuoteDraftstatic OrderFromQuoteDraftBuilder
builder
(OrderFromQuoteDraft template) create builder for OrderFromQuoteDraft instancestatic OrderFromQuoteDraft
deepCopy
(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 QuoteResourceIdentifier
getQuote()
ResourceIdentifier to the Quote from which the Order is created.Iftrue
, thequoteState
of the referenced Quote will be set toAccepted
.Shipment status for the Order.@Valid StateResourceIdentifier
getState()
State of the Order in a custom workflow.@NotNull Long
version
of the Quote from which the Order is created.static OrderFromQuoteDraft
of()
factory methodstatic OrderFromQuoteDraft
of
(OrderFromQuoteDraft template) factory method to create a shallow copy OrderFromQuoteDraftvoid
setOrderNumber
(String orderNumber) User-defined identifier for the Order that is unique across a Project.void
setOrderState
(OrderState orderState) Current status for the Order.void
setPaymentState
(PaymentState paymentState) Payment status for the Order.void
setQuote
(QuoteResourceIdentifier quote) ResourceIdentifier to the Quote from which the Order is created.void
setQuoteStateToAccepted
(Boolean quoteStateToAccepted) Iftrue
, thequoteState
of the referenced Quote will be set toAccepted
.void
setShipmentState
(ShipmentState shipmentState) Shipment status for the Order.void
setState
(StateResourceIdentifier state) State of the Order in a custom workflow.void
setVersion
(Long version) version
of 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> T
withOrderFromQuoteDraft
(Function<OrderFromQuoteDraft, T> helper) accessor map function
-
Method Details
-
getQuote
ResourceIdentifier to the Quote from which the Order is created. If the referenced Quote has expired (
validTo
check) or itsquoteState
isAccepted
,Declined
, orWithdrawn
, the Order creation will fail.- Returns:
- quote
-
getVersion
version
of the Quote from which the Order is created.- Returns:
- version
-
getQuoteStateToAccepted
Boolean getQuoteStateToAccepted()If
true
, thequoteState
of 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. If the referenced Quote has expired (
validTo
check) or itsquoteState
isAccepted
,Declined
, orWithdrawn
, the Order creation will fail.- Parameters:
quote
- value to be set
-
setVersion
version
of the Quote from which the Order is created.- Parameters:
version
- value to be set
-
setQuoteStateToAccepted
If
true
, thequoteState
of 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
-
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
-