Home > @vsf-enterprise/sap-commerce-webservices-sdk > ExtendedCartsApi

ExtendedCartsApi class

ExtendedCartsApi - object-oriented interface ExtendedCartsApi {BaseAPI}

Signature:

export declare class ExtendedCartsApi extends BaseAPI 

Extends: BaseAPI

Methods

Method Modifiers Description
createConsolidatedPickupLocation(baseSiteId, cartId, storeName, userId, fields, options) Specifies one store location where all items will be picked up. Note, if any of the items are not available at the specified location, these items are removed from the cart. Handles the consolidating pickup locations.
doHandleSopPaymentResponse(baseSiteId, cartId, userId, fields, options) Handles the response from the payment provider and creates payment details. Note, the “Try it out” button is not enabled for this method (always returns an error) because the Extended Carts Controller handles parameters differently, depending on which payment provider is used. For more information about this controller, please refer to the “acceleratorwebservicesaddon AddOn” documentation on help.hybris.com. Handles response from payment provider and create payment details
getConsolidatedPickupLocations(baseSiteId, cartId, userId, fields, options) Returns a list of stores that have all the pick-up items in stock. Note, if there are no stores that have all the pick up items in stock, or all items are already set to the same pick up location, the response returns an empty list. Get consolidated pickup options.
getSopPaymentRequestDetails(baseSiteId, cartId, responseUrl, userId, extendedMerchantCallback, fields, options) Returns the necessary information for creating a subscription that contacts the payment provider directly. This information contains the payment provider URL and a list of parameters that are needed to create the subscription. Get information needed for create subscription
getSopPaymentResponse(baseSiteId, cartId, userId, fields, options) Returns information related to creating subscription request results. If there is no response from the payment provider, a "202 Accepted" status is returned. If the subscription is created successfully, the payment details are returned. Otherwise, an error response is returned. Note, the “Try it out” button is not enabled for this method (always returns an error) because the Extended Carts Controller handles parameters differently, depending on which payment provider is used. For more information about this controller, please refer to the “acceleratorwebservicesaddon AddOn” documentation on help.hybris.com. Get information about create subscription request results
removeSopPaymentResponse(baseSiteId, cartId, userId, options) Deletes the payment provider response related to the specified cart. Deletes payment provider response related to cart.