Interface OrderFromQuoteDraft

All Superinterfaces:
Draft<OrderFromQuoteDraft>

public interface OrderFromQuoteDraft extends Draft<OrderFromQuoteDraft>
OrderFromQuoteDraft
Example to create an instance using the builder pattern

     OrderFromQuoteDraft orderFromQuoteDraft = OrderFromQuoteDraft.builder()
             .quote(quoteBuilder -> quoteBuilder)
             .version(0.3)
             .build()
 
  • Method Details

    • getQuote

      @NotNull @Valid @NotNull @Valid QuoteResourceIdentifier getQuote()

      ResourceIdentifier to the Quote from which the Order is created. If the referenced Quote has expired (validTo check) or its quoteState is Accepted, Declined, or Withdrawn, the Order creation will fail.

      Returns:
      quote
    • getVersion

      @NotNull @NotNull Long getVersion()

      version of the Quote from which the Order is created.

      Returns:
      version
    • getQuoteStateToAccepted

      Boolean getQuoteStateToAccepted()

      If true, the quoteState of the referenced Quote will be set to Accepted.

      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

      @Valid @Valid StateResourceIdentifier getState()

      State of the Order in a custom workflow.

      Returns:
      state
    • setQuote

      void setQuote(QuoteResourceIdentifier quote)

      ResourceIdentifier to the Quote from which the Order is created. If the referenced Quote has expired (validTo check) or its quoteState is Accepted, Declined, or Withdrawn, the Order creation will fail.

      Parameters:
      quote - value to be set
    • setVersion

      void setVersion(Long version)

      version of the Quote from which the Order is created.

      Parameters:
      version - value to be set
    • setQuoteStateToAccepted

      void setQuoteStateToAccepted(Boolean quoteStateToAccepted)

      If true, the quoteState of the referenced Quote will be set to Accepted.

      Parameters:
      quoteStateToAccepted - value to be set
    • setOrderNumber

      void setOrderNumber(String orderNumber)

      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

      void setPaymentState(PaymentState paymentState)

      Payment status for the Order.

      Parameters:
      paymentState - value to be set
    • setShipmentState

      void setShipmentState(ShipmentState shipmentState)

      Shipment status for the Order.

      Parameters:
      shipmentState - value to be set
    • setOrderState

      void setOrderState(OrderState orderState)

      Current status for the Order.

      Parameters:
      orderState - value to be set
    • setState

      void setState(StateResourceIdentifier state)

      State of the Order in a custom workflow.

      Parameters:
      state - value to be set
    • of

      static OrderFromQuoteDraft 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

      static OrderFromQuoteDraftBuilder 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

      default <T> T withOrderFromQuoteDraft(Function<OrderFromQuoteDraft,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<OrderFromQuoteDraft> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference