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)
ShippingMethodServicebyId in interface ShippingMethodService@Deprecated public QueryRequest<ShippingMethod> all()
ShippingMethodServiceall in interface ShippingMethodServicepublic QueryRequest<ShippingMethod> query()
ShippingMethodServicequery in interface ShippingMethodServicepublic FetchRequest<java.util.List<ShippingMethod>> forLocation(Location location, java.util.Currency currency)
ShippingMethodServiceforLocation in interface ShippingMethodServicepublic FetchRequest<java.util.List<ShippingMethod>> forCart(java.lang.String cartId)
ShippingMethodServiceforCart in interface ShippingMethodServiceprotected CommandRequest<T> createCommandRequest(java.lang.String url, Command command)
protected QueryRequest<T> queryImpl(java.lang.String url)