Class OrderService
java.lang.Object
com.easypost.service.OrderService
-
Method Summary
Modifier and TypeMethodDescriptionBuy this Order.Buy this Order.Create an Order object from a map of parameters.Get new rates for this Order.Get new rates for this Order.Retrieve an Order object from the API.
-
Method Details
-
create
Create an Order object from a map of parameters.- Parameters:
params
- Map of parameters.- Returns:
- Order object.
- Throws:
EasyPostException
- when the request fails.
-
retrieve
Retrieve an Order object from the API.- Parameters:
id
- ID of the Order to retrieve.- Returns:
- Order object.
- Throws:
EasyPostException
- when the request fails.
-
newRates
Get new rates for this Order.- Parameters:
id
- The ID of order.- Returns:
- Order object.
- Throws:
EasyPostException
- when the request fails.
-
newRates
Get new rates for this Order.- Parameters:
id
- The ID of order.params
- Map of parameters.- Returns:
- Order object.
- Throws:
EasyPostException
- when the request fails.
-
buy
Buy this Order.- Parameters:
id
- The ID of order.params
- Map of parameters.- Returns:
- Order object.
- Throws:
EasyPostException
- when the request fails.
-
buy
Buy this Order.- Parameters:
id
- The ID of order.rate
- Rate to buy.- Returns:
- Order object.
- Throws:
EasyPostException
- when the request fails.
-