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

io.sphere.sdk.inventories.queries.InventoryEntryQueryModel Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.inventories.queries;

import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.inventories.InventoryEntry;
import io.sphere.sdk.queries.*;

import java.util.Optional;

public class InventoryEntryQueryModel extends DefaultModelQueryModelImpl {
    public InventoryEntryQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

    static InventoryEntryQueryModel get() {
        return new InventoryEntryQueryModel(Optional.empty(), Optional.empty());
    }

    public StringQuerySortingModel sku() {
        return new StringQuerySortingModel<>(Optional.of(this), "sku");
    }

    public ReferenceQueryModel supplyChannel() {
        return new ReferenceQueryModel<>(Optional.of(this), "supplyChannel");
    }

    public LongQuerySortingModel quantityOnStock() {
        return new LongQuerySortingModel<>(Optional.of(this), "quantityOnStock");
    }

    public LongQuerySortingModel availableQuantity() {
        return new LongQuerySortingModel<>(Optional.of(this), "availableQuantity");
    }

//TODO on March 11, 2015 this does not yet work in the backend
//    public IntegerQuerySortingModel restockableInDays() {
//        return new IntegerQuerySortingModel<>(Optional.of(this), "restockableInDays");
//    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy