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

io.sphere.sdk.orders.queries.OrderQueryModel Maven / Gradle / Ivy

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

import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.carts.queries.CartLikeQueryModel;
import io.sphere.sdk.carts.queries.LineItemCollectionQueryModel;
import io.sphere.sdk.carts.queries.TaxedPriceOptionalQueryModel;
import io.sphere.sdk.customergroups.CustomerGroup;
import io.sphere.sdk.orders.Order;
import io.sphere.sdk.orders.OrderState;
import io.sphere.sdk.orders.PaymentState;
import io.sphere.sdk.orders.ShipmentState;
import io.sphere.sdk.queries.*;

public class OrderQueryModel extends CartLikeQueryModel {
    private OrderQueryModel(final QueryModel parent, final String pathSegment) {
        super(parent, pathSegment);
    }

    public static OrderQueryModel of() {
        return new OrderQueryModel(null, null);
    }

    public SphereEnumerationQueryModel orderState() {
        return enumerationQueryModel("orderState");
    }

    public SphereEnumerationQueryModel shipmentState() {
        return enumerationQueryModel("shipmentState");
    }

    public SphereEnumerationQueryModel paymentState() {
        return enumerationQueryModel("paymentState");
    }

    public SyncInfoQueryModel syncInfo() {
        return new SyncInfoQueryModelImpl<>(this, "syncInfo");
    }

    public ReferenceQueryModel cart() {
        return referenceModel("cart");
    }

    @Override
    public CountryQueryModel country() {
        return super.country();
    }

    @Override
    public StringQuerySortingModel customerEmail() {
        return super.customerEmail();
    }

    @Override
    public ReferenceOptionalQueryModel customerGroup() {
        return super.customerGroup();
    }

    @Override
    public StringQuerySortingModel customerId() {
        return super.customerId();
    }

    @Override
    public LineItemCollectionQueryModel lineItems() {
        return super.lineItems();
    }

    @Override
    public TaxedPriceOptionalQueryModel taxedPrice() {
        return super.taxedPrice();
    }

    @Override
    public MoneyQueryModel totalPrice() {
        return super.totalPrice();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy