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-M12
Show newest version
package io.sphere.sdk.orders.queries;

import io.sphere.sdk.orders.Order;
import io.sphere.sdk.queries.*;

import java.util.Optional;

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

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

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

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

    public CountryQueryModel country() {
        return new CountryQueryModel(Optional.of(this), Optional.of("country"));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy