@Path(value="shops/{shopId}/carts/{cartId}/billing-address")
@RolesAllowed(value={"sf","carts_write"})
public final class CartBillingAddressResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private CartService |
service |
Constructor and Description |
---|
CartBillingAddressResource(CartService service) |
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 CartService service
@Inject public CartBillingAddressResource(CartService service)
@DELETE @Produces(value="application/vnd.epages.v1+json, application/json") @RolesAllowed(value={"sf","carts_write"}) 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, application/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.