@Path(value="shops/{shopId}/carts/{cartId}/shipping-address")
public final class CartShippingAddressResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GUID |
cartId |
private CartService |
cartService |
private java.lang.String |
shopId |
private ShopRequestContextService |
shopReqCtxService |
Constructor and Description |
---|
CartShippingAddressResource(ShopRequestContextService shopReqCtxService,
CartService cartService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteShippingAddress(java.lang.String shopId,
GUID cartId) |
javax.ws.rs.core.Response |
updateShippingAddress(java.lang.String shopId,
GUID cartId,
Address address) |
@PathParam(value="shopId") private java.lang.String shopId
@PathParam(value="cartId") private GUID cartId
private final ShopRequestContextService shopReqCtxService
private final CartService cartService
@Inject public CartShippingAddressResource(ShopRequestContextService shopReqCtxService, CartService cartService)
@DELETE @Produces(value="application/vnd.epages.v1+json, application/json") @RolesAllowed(value={"sf","products_read"}) public javax.ws.rs.core.Response deleteShippingAddress(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="cartId") GUID cartId)
@PUT @Consumes(value="application/json") @Produces(value="application/vnd.epages.v1+json, application/json") @RolesAllowed(value={"sf","products_read"}) public javax.ws.rs.core.Response updateShippingAddress(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="cartId") GUID cartId, Address address)