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

io.sphere.sdk.shippingmethods.queries.ShippingMethodQueryModel Maven / Gradle / Ivy

There is a newer version: 1.0.0-M12
Show newest version
package io.sphere.sdk.shippingmethods.queries;

import io.sphere.sdk.queries.*;
import io.sphere.sdk.shippingmethods.ShippingMethod;
import io.sphere.sdk.taxcategories.TaxCategory;

import java.util.Optional;

public class ShippingMethodQueryModel extends DefaultModelQueryModelImpl {
    static ShippingMethodQueryModel get() {
        return new ShippingMethodQueryModel(Optional.>empty(), Optional.empty());
    }

    private ShippingMethodQueryModel(final Optional> parent, final Optional pathSegment) {
        super(parent, pathSegment);
    }

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy