| Package | Description |
|---|---|
| de.hybris.platform.ycommercewebservices.v1.controller | |
| de.hybris.platform.ycommercewebservices.v2.controller |
| Modifier and Type | Method and Description |
|---|---|
CartData |
CartController.addPaymentInfo(HttpServletRequest request)
Web service for creating a credit card payment subscription.
Sample call: https://localhost:9002/rest/v1/mysite/cart/paymentinfo CCPaymentInfoData parameters need to be send as post body. Method uses dedicated populator - HttpRequestPaymentInfoPopulator - to populate the
CCPaymentInfoData from request parameters.Method uses dedicated validator - CCPaymentInfoValidator - to validate request parameters.This method requires authentication and is restricted for HTTPS channel.Method type : POST. |
CartData |
CartController.applyVoucherForCart(java.lang.String voucherCode)
Web service for applying voucher to cart.
Sample call: https://localhost:9002/rest/v1/mysite/cart/voucher/abc-9PSW-EDH2-RXKA This method requires authentication. Method type : POST.Method is restricted for HTTPS channel. |
OrderData |
CartController.oneStepCheckout(java.lang.String addressId,
java.lang.String addressIsocode,
java.lang.String deliveryMode,
java.lang.String voucherCode,
java.lang.String paymentInfoId,
java.lang.String securityCode,
HttpServletRequest request)
Web service for one-step checkout from current session cart.
Sample call: https://localhost:9002/rest/v1/mysite/cart/checkout This method requires authentication. Method type : POST.Method is restricted for HTTPS channel. |
OrderData |
CartController.placeOrder(HttpSession session)
Web service for placing order from current session cart.
Sample call: https://localhost:9002/rest/v1/mysite/cart/placeorder. |
CartData |
CartController.releaseVoucherFromCart(java.lang.String voucherCode)
Web service for removing voucher from cart.
Sample call: https://localhost:9002/rest/v1/mysite/cart/voucher/abc-9PSW-EDH2-RXKA This method requires authentication. Method type : DELETE.Method is restricted for HTTPS channel. |
CartData |
CartController.removePromotion(java.lang.String promotionCode)
Web service for disabling order promotions.
Sample call: https://localhost:9002/rest/v1/mysite/cart/promotion/{promotionCode} This method requires authentication and is restricted to HTTPS |
CartData |
CartController.setCartDeliveryAddress(java.lang.String id)
Web service for setting cart's delivery address by address id.
Address id must be given as path variable. Sample call: https://localhost:9002/rest/v1/mysite/cart/address/delivery/1234 Response contains a set-cookie header with the jsessionId associated with the cart. This method requires authentication. Method type : PUT.Method is restricted for HTTPS channel. |
protected void |
CartController.validateCartForPlaceOrder() |
| Modifier and Type | Method and Description |
|---|---|
PaymentDetailsWsDTO |
CartsController.addPaymentDetails(HttpServletRequest request,
java.lang.String fields) |
protected CartData |
BaseCommerceController.addPaymentDetailsInternal(HttpServletRequest request) |
void |
CartsController.applyVoucherForCart(java.lang.String voucherId) |
protected CartData |
BaseCommerceController.applyVoucherForCartInternal(java.lang.String voucherId) |
AddressWsDTO |
CartsController.createAndSetAddress(HttpServletRequest request,
java.lang.String fields) |
OrderWsDTO |
OrdersController.placeOrder(java.lang.String cartId,
java.lang.String securityCode,
java.lang.String fields) |
void |
CartsController.releaseVoucherFromCart(java.lang.String voucherId) |
void |
CartsController.removePromotion(java.lang.String promotionId) |
void |
CartsController.setCartDeliveryAddress(java.lang.String addressId) |
protected CartData |
BaseCommerceController.setCartDeliveryAddressInternal(java.lang.String addressId) |
protected void |
BaseCommerceController.validateCartForPlaceOrder() |
protected void |
CartsController.validatePayment(PaymentDetailsWsDTO paymentDetails) |
Copyright © 2018 SAP SE. All Rights Reserved.