@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)
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