Interface OrderServiceLocal

    • Method Detail

      • cancelOrdersInCurrencies

        int cancelOrdersInCurrencies​(User user,
                                     Collection<Currency> currencies)
        Cancels all pending orders which are linked to the given currencies
      • cancelWithReservedAmount

        int cancelWithReservedAmount​(UserAccount account)
        Cancels all pending orders which have amount reserved on the given account
      • countPending

        Integer countPending​(User user,
                             boolean asSeller,
                             OrderStatus status,
                             Date since)
        Counts pending orders for the current logged user as either seller or buyer, since the given time, or all time if null
      • hasPurchases

        boolean hasPurchases​(User user)
        Returns whether the given user has ever finished a purchase
      • hasSales

        boolean hasSales​(User user)
        Returns whether the given user has ever finished a sale
      • setOrderAuthorization

        void setOrderAuthorization​(OrderPayment payment)
        Sets the order as realized or rejected based on the authorization status of the given payment