Class OrderEditDraftImpl

java.lang.Object
com.commercetools.api.models.order_edit.OrderEditDraftImpl
All Implemented Interfaces:
CustomizableDraft<OrderEditDraft>, OrderEditDraft, WithKey, io.vrap.rmf.base.client.Draft<OrderEditDraft>, io.vrap.rmf.base.client.ModelBase

public class OrderEditDraftImpl extends Object implements OrderEditDraft, io.vrap.rmf.base.client.ModelBase
OrderEditDraft
  • Constructor Details

    • OrderEditDraftImpl

      public OrderEditDraftImpl()
      create empty instance
  • Method Details

    • getKey

      public String getKey()

      User-defined unique identifier for the Order Edit.

      Specified by:
      getKey in interface OrderEditDraft
      Specified by:
      getKey in interface WithKey
      Returns:
      key
    • getResource

      public OrderReference getResource()

      Reference to the Order updated with this edit.

      Specified by:
      getResource in interface OrderEditDraft
      Returns:
      resource
    • getStagedActions

      public List<StagedOrderUpdateAction> getStagedActions()

      Update actions to apply to the Order referenced in resource. Cannot be updated if the edit has been applied.

      Specified by:
      getStagedActions in interface OrderEditDraft
      Returns:
      stagedActions
    • getCustom

      public CustomFieldsDraft getCustom()

      Custom Fields for the Order Edit.

      Specified by:
      getCustom in interface CustomizableDraft<OrderEditDraft>
      Specified by:
      getCustom in interface OrderEditDraft
      Returns:
      custom
    • getComment

      public String getComment()

      User-defined description regarding the Order Edit.

      Specified by:
      getComment in interface OrderEditDraft
      Returns:
      comment
    • getDryRun

      public Boolean getDryRun()

      Set to true if you want to peview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

      Order API Extensions, if any, are also called in dry runs.

      Specified by:
      getDryRun in interface OrderEditDraft
      Returns:
      dryRun
    • setKey

      public void setKey(String key)
      Description copied from interface: OrderEditDraft

      User-defined unique identifier for the Order Edit.

      Specified by:
      setKey in interface OrderEditDraft
      Parameters:
      key - value to be set
    • setResource

      public void setResource(OrderReference resource)
      Description copied from interface: OrderEditDraft

      Reference to the Order updated with this edit.

      Specified by:
      setResource in interface OrderEditDraft
      Parameters:
      resource - value to be set
    • setStagedActions

      public void setStagedActions(StagedOrderUpdateAction... stagedActions)
      Description copied from interface: OrderEditDraft

      Update actions to apply to the Order referenced in resource. Cannot be updated if the edit has been applied.

      Specified by:
      setStagedActions in interface OrderEditDraft
      Parameters:
      stagedActions - values to be set
    • setStagedActions

      public void setStagedActions(List<StagedOrderUpdateAction> stagedActions)
      Description copied from interface: OrderEditDraft

      Update actions to apply to the Order referenced in resource. Cannot be updated if the edit has been applied.

      Specified by:
      setStagedActions in interface OrderEditDraft
      Parameters:
      stagedActions - values to be set
    • setCustom

      public void setCustom(CustomFieldsDraft custom)
      Description copied from interface: OrderEditDraft

      Custom Fields for the Order Edit.

      Specified by:
      setCustom in interface CustomizableDraft<OrderEditDraft>
      Specified by:
      setCustom in interface OrderEditDraft
      Parameters:
      custom - value to be set
    • setComment

      public void setComment(String comment)
      Description copied from interface: OrderEditDraft

      User-defined description regarding the Order Edit.

      Specified by:
      setComment in interface OrderEditDraft
      Parameters:
      comment - value to be set
    • setDryRun

      public void setDryRun(Boolean dryRun)
      Description copied from interface: OrderEditDraft

      Set to true if you want to peview the edited Order first without persisting it (dry run). A dry run allows checking for potential errors when trying to apply the stagedActions.

      Order API Extensions, if any, are also called in dry runs.

      Specified by:
      setDryRun in interface OrderEditDraft
      Parameters:
      dryRun - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object