public interface OrderServiceLocal extends OrderService, CRUDServiceLocal<Order,OrderDTO,OrderData,OrderDataParams>
OrderService| Modifier and Type | Method and Description |
|---|---|
int |
cancelOrdersInCurrencies(User user,
java.util.Collection<Currency> currencies)
Cancels all pending orders which are linked to the given currencies
|
int |
cancelWithReservedAmount(UserAccount account)
Cancels all pending orders which have amount reserved on the given account
|
java.lang.Integer |
countPending(User user,
boolean asSeller,
OrderStatus status,
java.util.Date since)
Counts pending orders for the current logged user as either seller or buyer, since the given time, or all time if
null
|
Order |
findByOrderNumber(java.lang.String orderNumber)
Returns an order by order number, or throws
EntityNotFoundException if not found |
boolean |
hasPurchases(User user)
Returns whether the given user has ever finished a purchase
|
boolean |
hasSales(User user)
Returns whether the given user has ever finished a sale
|
void |
setOrderAuthorization(OrderPayment payment)
Sets the order as realized or rejected based on the authorization
status of the given payment
|
accept, addToCart, adjustAndGetMyCart, adjustShoppingCartAndGetData, checkCartStock, checkout, countCartItems, exportOrder, getCheckoutData, getMyCart, getOrderData, getOrderId, getSearchData, modifyQuantityOnCart, reject, removeCart, removeCartById, removeCartItem, search, setDeliveryMethod, submitToBuyerfind, findAll, getEntityClass, newEntity, remove, removeAll, saveSkippingEntityLog, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, saveint cancelOrdersInCurrencies(User user, java.util.Collection<Currency> currencies)
int cancelWithReservedAmount(UserAccount account)
java.lang.Integer countPending(User user, boolean asSeller, OrderStatus status, java.util.Date since)
Order findByOrderNumber(java.lang.String orderNumber)
EntityNotFoundException if not foundboolean hasPurchases(User user)
boolean hasSales(User user)
void setOrderAuthorization(OrderPayment payment)