@Immutable public class ShippingMethodServiceAdapter extends java.lang.Object implements ShippingMethodService
| Constructor and Description |
|---|
ShippingMethodServiceAdapter(ShippingMethodService service) |
| Modifier and Type | Method and Description |
|---|---|
QueryRequest<ShippingMethod> |
all()
Deprecated.
|
FetchRequest<ShippingMethod> |
byId(java.lang.String id)
Finds a shipping method by id.
|
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 for a specific location.
|
QueryRequest<ShippingMethod> |
query()
Queries shipping methods in current project.
|
public ShippingMethodServiceAdapter(@Nonnull
ShippingMethodService service)
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 ShippingMethodService