@Path(value="shops/{shopId}/carts/{cartId}/shipping-address")
@RolesAllowed(value={"sf","carts_write"})
public final class CartShippingAddressResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CartService |
cartService |
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)
Deletes a shipping address for a specified cart
|
javax.ws.rs.core.Response |
updateShippingAddress(java.lang.String shopId,
GUID cartId,
Address address)
Updates a shipping address for a specified cart
|
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") public javax.ws.rs.core.Response deleteShippingAddress(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="cartId") GUID cartId)
shopId
- Unique identifier of the shopcartId
- Unique identifier of the cart@PUT @Produces(value="application/vnd.epages.v1+json, application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response updateShippingAddress(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="cartId") GUID cartId, Address address)
shopId
- Unique identifier of the shopcartId
- Unique identifier of the cartaddress
- address creation input. The required fields and their
validation depend on the shop registration set.