CheckoutCartEndpoint
@FrameworkRestController @FrameworkMapping(value="/cart") @Deprecated public class CheckoutEndpoint extends Object
Constructor and Description |
---|
CheckoutEndpoint(CartOperationService cartOpService,
CheckoutService checkoutService,
FulfillmentPricingService fulfillmentPricingService)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.Cart |
addPayment(com.broadleafcommerce.cart.client.domain.Cart cart,
AddPaymentRequest addPaymentRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
protected CartOperationService |
getCartOpService()
Deprecated.
|
protected CheckoutService |
getCheckoutService()
Deprecated.
|
List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> |
getFulfillmentOptions(com.broadleafcommerce.cart.client.domain.Cart cart,
String fulfillmentGroupId)
Deprecated.
|
protected FulfillmentPricingService |
getFulfillmentPricingService()
Deprecated.
|
org.springframework.http.ResponseEntity<CheckoutResponse> |
processCheckout(com.broadleafcommerce.cart.client.domain.Cart resolvedCart,
CartRequest requestCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
Executes the checkout process for a cart.
|
com.broadleafcommerce.cart.client.domain.Cart |
removePayment(com.broadleafcommerce.cart.client.domain.Cart cart,
String paymentId,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updateContactInfo(com.broadleafcommerce.cart.client.domain.Cart cart,
ContactInfoRequest contactInfoRequest,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updateFulfillmentGroup(com.broadleafcommerce.cart.client.domain.Cart cart,
UpdateFulfillmentGroupRequest fulfillmentGroupRequest,
String fulfillmentGroupId,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
com.broadleafcommerce.cart.client.domain.Cart |
updatePayment(com.broadleafcommerce.cart.client.domain.Cart cart,
UpdatePaymentRequest updatePaymentRequest,
String paymentId,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
public CheckoutEndpoint(CartOperationService cartOpService, CheckoutService checkoutService, FulfillmentPricingService fulfillmentPricingService)
@FrameworkPostMapping(value="/contact-info", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart updateContactInfo(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody ContactInfoRequest contactInfoRequest, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkPatchMapping(value="/fulfillment-groups/{fgId}", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart updateFulfillmentGroup(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody UpdateFulfillmentGroupRequest fulfillmentGroupRequest, @PathVariable(value="fgId") String fulfillmentGroupId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkGetMapping(value="/fulfillment-options/{fgId}") public List<com.broadleafcommerce.shipping.domain.FulfillmentOptionPricedResponse> getFulfillmentOptions(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable(value="fgId") String fulfillmentGroupId)
@FrameworkPostMapping(value="/payments", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart addPayment(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody AddPaymentRequest addPaymentRequest, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkPatchMapping(value="/payments/{paymentId}", consumes="application/json") public com.broadleafcommerce.cart.client.domain.Cart updatePayment(com.broadleafcommerce.cart.client.domain.Cart cart, @RequestBody UpdatePaymentRequest updatePaymentRequest, @PathVariable String paymentId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkDeleteMapping(value="/payments/{paymentId}") public com.broadleafcommerce.cart.client.domain.Cart removePayment(com.broadleafcommerce.cart.client.domain.Cart cart, @PathVariable String paymentId, @RequestParam(defaultValue="true") boolean price, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
@FrameworkPostMapping(value="/checkout", consumes="application/json") public org.springframework.http.ResponseEntity<CheckoutResponse> processCheckout(com.broadleafcommerce.cart.client.domain.Cart resolvedCart, @RequestBody CartRequest requestCart, @ContextOperation com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
resolvedCart
- the resolved cart for this request (based on auth or cookie data)requestCart
- the cart from the request bodyprotected CartOperationService getCartOpService()
protected CheckoutService getCheckoutService()
protected FulfillmentPricingService getFulfillmentPricingService()
Copyright © 2021. All rights reserved.