Interface OrderPatchImport


public interface OrderPatchImport

Representation for an update of an Order. Use this type to import updates for existing Orders in a Project.


Example to create an instance using the builder pattern

     OrderPatchImport orderPatchImport = OrderPatchImport.builder()
             .orderNumber("{orderNumber}")
             .fields(fieldsBuilder -> fieldsBuilder)
             .build()
 
  • Method Details

    • getOrderNumber

      @NotNull @NotNull String getOrderNumber()

      Maps to Order.orderNumber, String that uniquely identifies an order, unique across a project.

      Returns:
      orderNumber
    • getFields

      @NotNull @Valid @NotNull @Valid OrderField getFields()

      Each field referenced must be defined in an already existing order in the project or the import operation state is set to validationFailed.

      Returns:
      fields
    • setOrderNumber

      void setOrderNumber(String orderNumber)

      Maps to Order.orderNumber, String that uniquely identifies an order, unique across a project.

      Parameters:
      orderNumber - value to be set
    • setFields

      void setFields(OrderField fields)

      Each field referenced must be defined in an already existing order in the project or the import operation state is set to validationFailed.

      Parameters:
      fields - value to be set
    • of

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

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

      factory method to create a deep copy of OrderPatchImport
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static OrderPatchImportBuilder builder()
      builder factory method for OrderPatchImport
      Returns:
      builder
    • builder

      static OrderPatchImportBuilder builder(OrderPatchImport template)
      create builder for OrderPatchImport instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withOrderPatchImport

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