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.*;
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.*;
import io.sphere.sdk.states.State;

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();
    }

    public StringQuerySortingModel orderNumber() {
        return stringModel("orderNumber");
    }

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

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

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

    public ReferenceOptionalQueryModel state() {
        return referenceOptionalModel("state");
    }

    @Override
    public CustomLineItemCollectionQueryModel customLineItems() {
        return super.customLineItems();
    }

    @Override
    public AddressQueryModel billingAddress() {
        return super.billingAddress();
    }

    @Override
    public DiscountCodeInfoCollectionQueryModel discountCodes() {
        return super.discountCodes();
    }

    @Override
    public AddressQueryModel shippingAddress() {
        return super.shippingAddress();
    }

    @Override
    public CartShippingInfoQueryModel shippingInfo() {
        return super.shippingInfo();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy