public class ShippingMethodServiceImpl extends java.lang.Object implements ShippingMethodService
Modifier and Type | Field and Description |
---|---|
protected ProjectEndpoints |
endpoints |
protected org.codehaus.jackson.type.TypeReference<QueryResult<T>> |
queryResultTypeReference |
protected RequestFactory |
requestFactory |
protected org.codehaus.jackson.type.TypeReference<T> |
typeReference |
Constructor and Description |
---|
ShippingMethodServiceImpl(RequestFactory requestFactory,
ProjectEndpoints endpoints) |
Modifier and Type | Method and Description |
---|---|
QueryRequest<ShippingMethod> |
all()
Deprecated.
|
FetchRequest<ShippingMethod> |
byId(java.lang.String id)
Finds a shipping method by id.
|
protected CommandRequest<T> |
createCommandRequest(java.lang.String url,
Command command) |
FetchRequest<java.util.List<ShippingMethod>> |
forCart(java.lang.String cartId)
Fetches all shipping methods for a cart in the current project.
|
FetchRequest<java.util.List<ShippingMethod>> |
forLocation(Location location,
java.util.Currency currency)
Fetches all shipping methods by location and currency in the current project.
|
QueryRequest<ShippingMethod> |
query()
Queries shipping methods in current project.
|
protected QueryRequest<T> |
queryImpl(java.lang.String url) |
protected ProjectEndpoints endpoints
protected RequestFactory requestFactory
protected org.codehaus.jackson.type.TypeReference<T> typeReference
protected org.codehaus.jackson.type.TypeReference<QueryResult<T>> queryResultTypeReference
public ShippingMethodServiceImpl(RequestFactory requestFactory, ProjectEndpoints endpoints)
public FetchRequest<ShippingMethod> byId(java.lang.String id)
ShippingMethodService
byId
in interface ShippingMethodService
@Deprecated public QueryRequest<ShippingMethod> all()
ShippingMethodService
all
in interface ShippingMethodService
public QueryRequest<ShippingMethod> query()
ShippingMethodService
query
in interface ShippingMethodService
public FetchRequest<java.util.List<ShippingMethod>> forLocation(Location location, java.util.Currency currency)
ShippingMethodService
forLocation
in interface ShippingMethodService
public FetchRequest<java.util.List<ShippingMethod>> forCart(java.lang.String cartId)
ShippingMethodService
forCart
in interface ShippingMethodService
protected CommandRequest<T> createCommandRequest(java.lang.String url, Command command)
protected QueryRequest<T> queryImpl(java.lang.String url)