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

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

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.inventory.commands.updateactions;

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

/**
 * Adds items to the stock.
 *
 * {@doc.gen intro}
 *
 * {@include.example io.sphere.sdk.inventory.commands.InventoryEntryUpdateCommandTest#addQuantity()}
 */
public class AddQuantity extends UpdateActionImpl {
    private final Long quantity;

    private AddQuantity(final Long quantity) {
        super("addQuantity");
        this.quantity = quantity;
    }

    public Long getQuantity() {
        return quantity;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy