Interface OrderField


public interface OrderField

Order fields that needs to be added or updated.


Example to create an instance using the builder pattern

     OrderField orderField = OrderField.builder()
             .build()
 
  • Method Details

    • getAddReturnInfo

      @Valid @Valid ReturnInfo getAddReturnInfo()

      Maps to Order.returnInfo

      Returns:
      addReturnInfo
    • getAddParcelToDelivery

      @Valid @Valid DeliveryParcel getAddParcelToDelivery()

      Maps to Order.delivery

      Returns:
      addParcelToDelivery
    • getAddDeliveries

      @Valid @Valid List<DeliveryDraft> getAddDeliveries()

      Maps to Order.delivery

      Returns:
      addDeliveries
    • getRemoveDelivery

      @Valid @Valid RemoveDeliveryDraft getRemoveDelivery()

      Maps to Order.removeDelivery

      Returns:
      removeDelivery
    • getRemoveParcelFromDelivery

      @Valid @Valid RemoveParcelFromDeliveryDraft getRemoveParcelFromDelivery()

      Maps to Order.removeParcelFromDelivery

      Returns:
      removeParcelFromDelivery
    • getSetDeliveryAddress

      @Valid @Valid DeliveryAddressDraft getSetDeliveryAddress()

      Maps to Order.addressDraft

      Returns:
      setDeliveryAddress
    • getSetParcelMeasurements

      @Valid @Valid ParcelMeasurementDraft getSetParcelMeasurements()

      Maps to Order.parcelMeasurements

      Returns:
      setParcelMeasurements
    • getSetParcelTrackingData

      @Valid @Valid ParcelTrackingData getSetParcelTrackingData()

      Maps to Order.parcelTrackingData

      Returns:
      setParcelTrackingData
    • getSetParcelItems

      @Valid @Valid List<ParcelItems> getSetParcelItems()

      Maps to Order.parcelItems

      Returns:
      setParcelItems
    • setAddReturnInfo

      void setAddReturnInfo(ReturnInfo addReturnInfo)

      Maps to Order.returnInfo

      Parameters:
      addReturnInfo - value to be set
    • setAddParcelToDelivery

      void setAddParcelToDelivery(DeliveryParcel addParcelToDelivery)

      Maps to Order.delivery

      Parameters:
      addParcelToDelivery - value to be set
    • setAddDeliveries

      void setAddDeliveries(DeliveryDraft... addDeliveries)

      Maps to Order.delivery

      Parameters:
      addDeliveries - values to be set
    • setAddDeliveries

      void setAddDeliveries(List<DeliveryDraft> addDeliveries)

      Maps to Order.delivery

      Parameters:
      addDeliveries - values to be set
    • setRemoveDelivery

      void setRemoveDelivery(RemoveDeliveryDraft removeDelivery)

      Maps to Order.removeDelivery

      Parameters:
      removeDelivery - value to be set
    • setRemoveParcelFromDelivery

      void setRemoveParcelFromDelivery(RemoveParcelFromDeliveryDraft removeParcelFromDelivery)

      Maps to Order.removeParcelFromDelivery

      Parameters:
      removeParcelFromDelivery - value to be set
    • setSetDeliveryAddress

      void setSetDeliveryAddress(DeliveryAddressDraft setDeliveryAddress)

      Maps to Order.addressDraft

      Parameters:
      setDeliveryAddress - value to be set
    • setSetParcelMeasurements

      void setSetParcelMeasurements(ParcelMeasurementDraft setParcelMeasurements)

      Maps to Order.parcelMeasurements

      Parameters:
      setParcelMeasurements - value to be set
    • setSetParcelTrackingData

      void setSetParcelTrackingData(ParcelTrackingData setParcelTrackingData)

      Maps to Order.parcelTrackingData

      Parameters:
      setParcelTrackingData - value to be set
    • setSetParcelItems

      void setSetParcelItems(ParcelItems... setParcelItems)

      Maps to Order.parcelItems

      Parameters:
      setParcelItems - values to be set
    • setSetParcelItems

      void setSetParcelItems(List<ParcelItems> setParcelItems)

      Maps to Order.parcelItems

      Parameters:
      setParcelItems - values to be set
    • of

      static OrderField of()
      factory method
      Returns:
      instance of OrderField
    • of

      static OrderField of(OrderField template)
      factory method to create a shallow copy OrderField
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static OrderField deepCopy(@Nullable OrderField template)
      factory method to create a deep copy of OrderField
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static OrderFieldBuilder builder()
      builder factory method for OrderField
      Returns:
      builder
    • builder

      static OrderFieldBuilder builder(OrderField template)
      create builder for OrderField instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderField

      default <T> T withOrderField(Function<OrderField,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<OrderField> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference