Interface B2BOrderDao

    • Method Detail

      • findRejectedOrders

        java.util.List<OrderModel> findRejectedOrders​(UserModel user)
        Find the rejected orders with the status of OrderStatus.REJECTED for a user.
        Parameters:
        user - the user
        Returns:
        the list of rejected orders
      • findPendingQuoteOrders

        @Deprecated(since="6.3",
                    forRemoval=true)
        java.util.List<OrderModel> findPendingQuoteOrders​(UserModel user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 6.3. Please see quote functionality from commerce. Find the orders with a status of OrderStatus.PENDING_QUOTE for a user.
        Parameters:
        user - the user
        Returns:
        List of orders
      • findApprovedQuoteOrders

        @Deprecated(since="6.3",
                    forRemoval=true)
        java.util.List<OrderModel> findApprovedQuoteOrders​(UserModel user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 6.3. Please see quote functionality from commerce. Find the orders with a status of OrderStatus.APPROVED_QUOTE for a user.
        Parameters:
        user - the user
        Returns:
        List of orders
      • findRejectedQuoteOrders

        @Deprecated(since="6.3",
                    forRemoval=true)
        java.util.List<OrderModel> findRejectedQuoteOrders​(UserModel user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Since 6.3. Please see quote functionality from commerce. Find the orders with a status of OrderStatus.REJECTED_QUOTE for a user.
        Parameters:
        user - the user
        Returns:
        List of orders
      • findApprovedOrders

        java.util.List<OrderModel> findApprovedOrders​(UserModel user)
        Find the orders with a status of OrderStatus.APPROVED for a user.
        Parameters:
        user - the user
        Returns:
        the list of orders
      • findOrdersByStatus

        java.util.List<OrderModel> findOrdersByStatus​(UserModel user,
                                                      OrderStatus status)
        Find orders having a particular OrderStatus value for a user.
        Parameters:
        user - the user
        status - the order's current status
        Returns:
        the list of orders
      • findOrdersApprovedForDateRange

        @Deprecated(since="4.4",
                    forRemoval=true)
        java.util.List<OrderModel> findOrdersApprovedForDateRange​(UserModel user,
                                                                  java.util.Date startDate,
                                                                  java.util.Date endDate)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Find orders approved for date range.
        Parameters:
        user - the user
        startDate - the start date
        endDate - the end date
        Returns:
        the list
      • findOrdersApprovedByDateRange

        java.util.List<OrderModel> findOrdersApprovedByDateRange​(UserModel user,
                                                                 java.util.Date startDate,
                                                                 java.util.Date endDate)
        Find orders with a OrderStatus.APPROVED status within a date range for a user.
        Parameters:
        user - the user
        startDate - the start date
        endDate - the end date
        Returns:
        the list of orders
      • findCartToOrderCronJobs

        @Deprecated(since="6.0",
                    forRemoval=true)
        java.util.List<CartToOrderCronJobModel> findCartToOrderCronJobs​(UserModel user)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Finds CartToOrderCronJob for a given user.
        Parameters:
        user - A user who had a cart scheduled for replenishment.
        Returns:
        A list of cronjobs responsible for replenisment of users cart.
      • findCartToOrderModel

        @Deprecated(since="6.0",
                    forRemoval=true)
        CartToOrderCronJobModel findCartToOrderModel​(java.lang.String code)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Find cart to order model with a particular code.
        Parameters:
        code - the code of the cron job
        Returns:
        the cart to order cron job model
      • findOrdersByStatus

        java.util.List<OrderModel> findOrdersByStatus​(UserModel user,
                                                      java.util.List<OrderStatus> status)
        Find order by given status for a user.
        Parameters:
        user - the user
        status - the status
        Returns:
        orders
      • findOrdersApprovedForDateRangeByCurrency

        java.util.List<OrderModel> findOrdersApprovedForDateRangeByCurrency​(B2BUnitModel unitModel,
                                                                            java.util.Date startDate,
                                                                            java.util.Date endDate,
                                                                            CurrencyModel currency)
        Find orders with a OrderStatus.APPROVED status for b2b unit based on date range and currency.
        Parameters:
        unitModel - the b2b unit
        startDate - the start date of the date range
        endDate - the end date of the date range
        currency - the currency of the order
        Returns:
        List of orders
      • findOrderTotalsForDateRangeByCurrency

        @Deprecated(since="4.4",
                    forRemoval=true)
        java.lang.Double findOrderTotalsForDateRangeByCurrency​(B2BUnitModel unitModel,
                                                               java.util.Date startDate,
                                                               java.util.Date endDate,
                                                               CurrencyModel currency)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Find order total for the unit based on date range and converted into given currency
        Parameters:
        unitModel -
        startDate -
        endDate -
        currency -
        Returns:
        List
      • findOrderTotalsByDateRangeAndCurrency

        java.lang.Double findOrderTotalsByDateRangeAndCurrency​(B2BUnitModel unitModel,
                                                               java.util.Date startDate,
                                                               java.util.Date endDate,
                                                               CurrencyModel currency)
        Find order total for the b2b unit based on date range and converted into given currency
        Parameters:
        unitModel - the b2b unit
        startDate - the start date of the date range
        endDate - the end date of the date range
        currency - the currency type to be converted to
        Returns:
        List of orders
      • findOrderByCode

        <T extends OrderModel> T findOrderByCode​(java.lang.String code)
        Gets order for a give code.
        Parameters:
        code - A unque quote
        Returns:
        An instace of AbstractOrderModel