Package com.amazon.orders.client
Interface AmazonOrders
- All Known Implementing Classes:
AmazonOrdersClient
public interface AmazonOrders
Interface for OrderCreationSDK.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Exception class for order creation errors. -
Method Summary
Modifier and TypeMethodDescriptioncreateOrder
(AmazonItemDetails[] itemsDetails) Creates an order for the given wishlist item details.
-
Method Details
-
createOrder
String createOrder(AmazonItemDetails[] itemsDetails) throws AmazonOrders.CreateOrderException, IOException Creates an order for the given wishlist item details.- Parameters:
itemsDetails
- The item you want to order- Returns:
- The order ID if the order is successfully created, otherwise null.
- Throws:
AmazonOrders.CreateOrderException
- If there is an error while creating the order.IOException
-