Interface StagedOrderImportCustomLineItemStateAction

All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>, StagedOrderUpdateAction

public interface StagedOrderImportCustomLineItemStateAction extends StagedOrderUpdateAction

The import of States does not follow any predefined rules and should be only used if no transitions are defined. The quantity of the ItemStates must match the sum of all Custom Line Item states' quantities.


Example to create an instance using the builder pattern

     StagedOrderImportCustomLineItemStateAction stagedOrderImportCustomLineItemStateAction = StagedOrderImportCustomLineItemStateAction.builder()
             .plusState(stateBuilder -> stateBuilder)
             .build()
 
  • Field Details

    • IMPORT_CUSTOM_LINE_ITEM_STATE

      static final String IMPORT_CUSTOM_LINE_ITEM_STATE
      discriminator value for StagedOrderImportCustomLineItemStateAction
      See Also:
  • Method Details

    • getCustomLineItemId

      String getCustomLineItemId()

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemId
    • getCustomLineItemKey

      String getCustomLineItemKey()

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Returns:
      customLineItemKey
    • getState

      @NotNull @Valid @NotNull @Valid List<ItemState> getState()

      New status of the Custom Line Items.

      Returns:
      state
    • setCustomLineItemId

      void setCustomLineItemId(String customLineItemId)

      id of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Parameters:
      customLineItemId - value to be set
    • setCustomLineItemKey

      void setCustomLineItemKey(String customLineItemKey)

      key of the CustomLineItem to update. Either customLineItemId or customLineItemKey is required.

      Parameters:
      customLineItemKey - value to be set
    • setState

      void setState(ItemState... state)

      New status of the Custom Line Items.

      Parameters:
      state - values to be set
    • setState

      void setState(List<ItemState> state)

      New status of the Custom Line Items.

      Parameters:
      state - values to be set
    • of

      factory method
      Returns:
      instance of StagedOrderImportCustomLineItemStateAction
    • of

      factory method to create a shallow copy StagedOrderImportCustomLineItemStateAction
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

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

      builder factory method for StagedOrderImportCustomLineItemStateAction
      Returns:
      builder
    • builder

      create builder for StagedOrderImportCustomLineItemStateAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withStagedOrderImportCustomLineItemStateAction

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