All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.inventory.commands.updateactions.RemoveQuantity Maven / Gradle / Ivy

package io.sphere.sdk.inventory.commands.updateactions;

import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.inventory.InventoryEntry;

/**
 * Subtracts quantity from the stock.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.inventory.commands.InventoryEntryUpdateCommandTest#removeQuantity()}
 */
public class RemoveQuantity extends UpdateActionImpl {
    private final Long quantity;

    private RemoveQuantity(final Long quantity) {
        super("removeQuantity");
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

    public static RemoveQuantity of(final long quantity) {
        return new RemoveQuantity(quantity);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy