generated from fmigeon/estore-public
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IFastLane.java
31 lines (27 loc) · 970 Bytes
/
IFastLane.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package estore.services.interfaces;
import estore.data.Order;
import estore.services.implem.Client;
import estorePojo.exceptions.InsufficientBalanceException;
import estorePojo.exceptions.UnknownAccountException;
import estorePojo.exceptions.UnknownItemException;
public interface IFastLane {
/**
* Used by a client to order an item.
* The whole process of ordering is encapsulated by this method.
* If several items need to be ordered, this method needs to be
* called several times, but the items will appear in separate orders.
*
* @param client
* @param item
* @param qty
* @param address
* @param bankAccountRef
* @return the order
*
* @throws UnknownItemException
* @throws InsufficientBalanceException
* @throws UnknownAccountException
*/
Order oneShotOrder(Client client, Object item, int qty, String address, String bankAccountRef)
throws UnknownItemException, InsufficientBalanceException, UnknownAccountException;
}