Interface B2BCheckoutFacade

    • Method Detail

      • getActiveVisibleCostCenters

        java.util.List<B2BCostCenterData> getActiveVisibleCostCenters()
        Deprecated.
        Gets all visible active cost centers for the currently logged-in B2BCustomerModel based on his parent B2Unit
        Returns:
        A collection of B2BCostCenterData
      • setCostCenterForCart

        <T extends AbstractOrderData> T setCostCenterForCart​(java.lang.String costCenterCode,
                                                             java.lang.String orderCode)
        Deprecated.
        Sets the cost center on all the entries of the order
        Parameters:
        costCenterCode - A unique identifier of a cost center, If null all entries of the order will be set with a null cost center
        orderCode - A unique identifier of an Order or Cart.
        Returns:
        Order data
      • getPaymentTypesForCheckoutSummary

        java.util.List<B2BPaymentTypeData> getPaymentTypesForCheckoutSummary()
        Deprecated.
        Gets the list of possible PaymentTypes for user selection in checkout summary
        Returns:
        B2BPaymentTypeEnum
      • setPaymentTypeSelectedForCheckout

        boolean setPaymentTypeSelectedForCheckout​(java.lang.String paymentType)
        Deprecated.
        Update the cartModel with PaymentTypeSelected by the user
        Parameters:
        paymentType -
        Returns:
        boolean
      • setPurchaseOrderNumber

        boolean setPurchaseOrderNumber​(java.lang.String purchaseOrderNumber)
        Deprecated.
        Sets the purchase order number to the cartModel
        Parameters:
        purchaseOrderNumber - The PO number of the order.
        Returns:
        boolean
      • setQuoteRequestDescription

        boolean setQuoteRequestDescription​(java.lang.String quoteRequestDescription)
        Deprecated.
        Adds a quote request text to the CartModel
        Parameters:
        quoteRequestDescription - The text describing reasons for requesting a quote on this order.
        Returns:
        True if the data got added to the cart successfully else false.
      • getDaysOfWeekForReplenishmentCheckoutSummary

        java.util.List<B2BDaysOfWeekData> getDaysOfWeekForReplenishmentCheckoutSummary()
        Deprecated.
        Call the Enum service to fetch the list of days in a week using DayOfWeek enum
        Returns:
        List of days in a week
      • scheduleOrder

        ScheduledCartData scheduleOrder​(TriggerData trigger)
        Deprecated.
        Places the cart that's in the session as a scheduled order scheduled by the Trigger parameter
        Parameters:
        trigger -
        Returns:
        ScheduledCartData created
      • createCartFromOrder

        void createCartFromOrder​(java.lang.String orderCode)
        Deprecated.
        Creates CartModel based on an order removes the current session carts and sets the new cart into the session.
        Parameters:
        orderCode - The unique identifier for an order
      • setDefaultPaymentTypeForCheckout

        void setDefaultPaymentTypeForCheckout()
        Deprecated.
        Sets the default payment type as Account for B2B accelerator store. Gets the CartModel object and sets the payment type to ACCOUNT