Class OrderEditDraftImpl
- All Implemented Interfaces:
CustomizableDraft<OrderEditDraft>
,OrderEditDraft
,WithKey
,io.vrap.rmf.base.client.Draft<OrderEditDraft>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
User-defined description regarding the Order Edit.Custom Fields for the Order Edit.Set totrue
if you want to peview the edited Order first without persisting it (dry run).getKey()
User-defined unique identifier for the Order Edit.Reference to the Order updated with this edit.Update actions to apply to the Order referenced inresource
.int
hashCode()
void
setComment
(String comment) User-defined description regarding the Order Edit.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Order Edit.void
Set totrue
if you want to peview the edited Order first without persisting it (dry run).void
User-defined unique identifier for the Order Edit.void
setResource
(OrderReference resource) Reference to the Order updated with this edit.void
setStagedActions
(StagedOrderUpdateAction... stagedActions) Update actions to apply to the Order referenced inresource
.void
setStagedActions
(List<StagedOrderUpdateAction> stagedActions) Update actions to apply to the Order referenced inresource
.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order_edit.OrderEditDraft
withOrderEditDraft
-
Constructor Details
-
OrderEditDraftImpl
public OrderEditDraftImpl()create empty instance
-
-
Method Details
-
getKey
User-defined unique identifier for the Order Edit.
- Specified by:
getKey
in interfaceOrderEditDraft
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
getResource
Reference to the Order updated with this edit.
- Specified by:
getResource
in interfaceOrderEditDraft
- Returns:
- resource
-
getStagedActions
Update actions to apply to the Order referenced in
resource
. Cannot be updated if the edit has been applied.- Specified by:
getStagedActions
in interfaceOrderEditDraft
- Returns:
- stagedActions
-
getCustom
Custom Fields for the Order Edit.
- Specified by:
getCustom
in interfaceCustomizableDraft<OrderEditDraft>
- Specified by:
getCustom
in interfaceOrderEditDraft
- Returns:
- custom
-
getComment
User-defined description regarding the Order Edit.
- Specified by:
getComment
in interfaceOrderEditDraft
- Returns:
- comment
-
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 thestagedActions
.Order API Extensions, if any, are also called in dry runs.
- Specified by:
getDryRun
in interfaceOrderEditDraft
- Returns:
- dryRun
-
setKey
Description copied from interface:OrderEditDraft
User-defined unique identifier for the Order Edit.
- Specified by:
setKey
in interfaceOrderEditDraft
- Parameters:
key
- value to be set
-
setResource
Description copied from interface:OrderEditDraft
Reference to the Order updated with this edit.
- Specified by:
setResource
in interfaceOrderEditDraft
- Parameters:
resource
- value to be set
-
setStagedActions
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 interfaceOrderEditDraft
- Parameters:
stagedActions
- values to be set
-
setStagedActions
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 interfaceOrderEditDraft
- Parameters:
stagedActions
- values to be set
-
setCustom
Description copied from interface:OrderEditDraft
Custom Fields for the Order Edit.
- Specified by:
setCustom
in interfaceCustomizableDraft<OrderEditDraft>
- Specified by:
setCustom
in interfaceOrderEditDraft
- Parameters:
custom
- value to be set
-
setComment
Description copied from interface:OrderEditDraft
User-defined description regarding the Order Edit.
- Specified by:
setComment
in interfaceOrderEditDraft
- Parameters:
comment
- value to be set
-
setDryRun
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 thestagedActions
.Order API Extensions, if any, are also called in dry runs.
- Specified by:
setDryRun
in interfaceOrderEditDraft
- Parameters:
dryRun
- value to be set
-
equals
-
hashCode
public int hashCode()
-