public class InventoryCustomActionBuilder extends GenericCustomActionBuilder<io.sphere.sdk.inventory.InventoryEntry>
| Constructor and Description |
|---|
InventoryCustomActionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry> |
buildRemoveCustomTypeAction()
Creates a CTP "setCustomType" update action on the given resource
T that removes the custom type set on
the given resource T (which currently could either be a Category or a Channel). |
io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry> |
buildSetCustomFieldAction(java.lang.String customFieldName,
com.fasterxml.jackson.databind.JsonNode customFieldValue)
Creates a CTP "setCustomField" update action on the given resource
T that updates a custom field with
customFieldName and a customFieldValue on the given
resource T (which currently could either be a Category or a Channel). |
io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry> |
buildSetCustomTypeAction(java.lang.String customTypeId,
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> customFieldsJsonMap)
Creates a CTP "setCustomType" update action on the given resource
T (which currently could either
be a Category or a Channel). |
@Nonnull public io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry> buildRemoveCustomTypeAction()
GenericCustomActionBuilderT that removes the custom type set on
the given resource T (which currently could either be a Category or a Channel).buildRemoveCustomTypeAction in class GenericCustomActionBuilder<io.sphere.sdk.inventory.InventoryEntry>@Nonnull
public io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry> buildSetCustomTypeAction(@Nullable
java.lang.String customTypeId,
@Nullable
java.util.Map<java.lang.String,com.fasterxml.jackson.databind.JsonNode> customFieldsJsonMap)
GenericCustomActionBuilderT (which currently could either
be a Category or a Channel).buildSetCustomTypeAction in class GenericCustomActionBuilder<io.sphere.sdk.inventory.InventoryEntry>customTypeId - the id of the new custom type.customFieldsJsonMap - the custom fields map of JSON values.@Nonnull
public io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.inventory.InventoryEntry> buildSetCustomFieldAction(@Nullable
java.lang.String customFieldName,
@Nullable
com.fasterxml.jackson.databind.JsonNode customFieldValue)
GenericCustomActionBuilderT that updates a custom field with
customFieldName and a customFieldValue on the given
resource T (which currently could either be a Category or a Channel).buildSetCustomFieldAction in class GenericCustomActionBuilder<io.sphere.sdk.inventory.InventoryEntry>customFieldName - the name of the custom field to update.customFieldValue - the new JSON value of the custom field.