public class OrderService extends Object
Constructor and Description |
---|
OrderService() |
Modifier and Type | Method and Description |
---|---|
void |
canel0der(Customer customer,
Order order) |
void |
canelOrder(Customer customer,
Order order) |
Order |
createOrder(Customer customer,
String address,
Item... items) |
void |
pay(Customer customer,
Order order,
String cardNumber) |
List<Item> |
recursiveItemSearch(Item itemExample) |
public Order createOrder(Customer customer, String address, Item... items) throws BusinessException, SecurityException
BusinessException
SecurityException
public void pay(Customer customer, Order order, String cardNumber) throws SecurityException, PaymentException
SecurityException
PaymentException
public void canelOrder(Customer customer, Order order) throws SecurityException, OrderAlreadySentException, PaymentException
public void canel0der(Customer customer, Order order) throws SecurityException, OrderAlreadySentException, PaymentException
Copyright © 2013–2015 Yilativs. All rights reserved.