@Path(value="shops/{shopId}/carts/{cartId}/billing-address")
@RolesAllowed(value={"sf","admin"})
public class CartBillingAddressResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CartAddressService |
addressService |
Constructor and Description |
---|
CartBillingAddressResource(CartAddressService addressService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
deleteBillingAddress(java.lang.String shopId,
GUID cartId)
Deletes a billing address for a specified cart
|
javax.ws.rs.core.Response |
updateBillingAddress(java.lang.String shopId,
GUID cartId,
BillingAddress address)
Updates a billing address for a specified cart
|
private final CartAddressService addressService
@Inject public CartBillingAddressResource(@Named(value="billing") CartAddressService addressService)
@DELETE @Produces(value="application/vnd.epages.v1+json") public javax.ws.rs.core.Response deleteBillingAddress(@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") @Consumes(value="application/json") public javax.ws.rs.core.Response updateBillingAddress(@PathParam(value="shopId") java.lang.String shopId, @PathParam(value="cartId") GUID cartId, BillingAddress 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.