final class CartServiceImpl extends java.lang.Object implements CartService
Modifier and Type | Field and Description |
---|---|
private CartService |
cartServiceEP6Rest |
private CartServiceEP6Soap |
cartServiceEP6Soap |
Constructor and Description |
---|
CartServiceImpl(CartServiceEP6Soap cartServiceEP6Soap,
CartService cartServiceEP6Rest) |
Modifier and Type | Method and Description |
---|---|
Cart |
create(java.lang.String shopId,
CartInput cartInput)
This is going to ep6 server twice:
1) Create a new cart over SOAP
2) Get the newly created cart over REST
|
Cart |
get(java.lang.String shopId,
GUID cartId)
Provides the cart with the given identifier in the given shop.
|
private final CartServiceEP6Soap cartServiceEP6Soap
private final CartService cartServiceEP6Rest
@Inject public CartServiceImpl(CartServiceEP6Soap cartServiceEP6Soap, @Named(value="ep6") CartService cartServiceEP6Rest)
public Cart create(java.lang.String shopId, CartInput cartInput)
create
in interface CartService
shopId
- the identifier of the shop.cartInput
- cart settingspublic Cart get(java.lang.String shopId, GUID cartId)
CartService
get
in interface CartService
shopId
- the identifier of the shop.cartId
- the identifier of the cart.