interface CartService
Modifier and Type | Method and Description |
---|---|
Cart |
addCoupon(ShopRequestContext shopRequestContext,
GUID cartId,
java.lang.String code) |
Cart |
create(java.lang.String shopId,
CartInput cartInput)
Creates an empty cart in a given shop.
|
Cart |
createLineItem(java.lang.String shopId,
GUID cartId,
LineItemInput lineitem) |
Cart |
deleteBillingAddress(java.lang.String shopId,
GUID cartId) |
Cart |
deleteLineItem(java.lang.String shopId,
GUID cartId,
GUID lineItemId) |
Cart |
deleteShippingAddress(java.lang.String shopId,
GUID cartId) |
Cart |
get(java.lang.String shopId,
GUID cartId,
java.lang.Boolean includeTax)
Provides the cart with the given identifier in the given shop.
|
Cart |
removeCoupon(ShopRequestContext shopRequestContext,
GUID cartId,
GUID couponLineItemId) |
Cart |
updateBillingAddress(java.lang.String shopId,
GUID cartId,
BillingAddress address) |
Cart |
updateLineItem(java.lang.String shopId,
GUID cartId,
GUID lineItemId,
LineItemInput item) |
Cart |
updateShippingAddress(java.lang.String shopId,
GUID cartId,
Address address) |
Cart create(java.lang.String shopId, CartInput cartInput)
shopId
- the identifier of the shop.cartInput
- cart settingsCart get(java.lang.String shopId, GUID cartId, java.lang.Boolean includeTax)
shopId
- the identifier of the shop.cartId
- the identifier of the cart.includeTax
- Cart updateBillingAddress(java.lang.String shopId, GUID cartId, BillingAddress address)
Cart updateShippingAddress(java.lang.String shopId, GUID cartId, Address address)
Cart createLineItem(java.lang.String shopId, GUID cartId, LineItemInput lineitem)
Cart updateLineItem(java.lang.String shopId, GUID cartId, GUID lineItemId, LineItemInput item)
Cart addCoupon(ShopRequestContext shopRequestContext, GUID cartId, java.lang.String code)
Cart removeCoupon(ShopRequestContext shopRequestContext, GUID cartId, GUID couponLineItemId)