public class EpagesOrderServiceImpl extends java.lang.Object implements EpagesOrderService
Modifier and Type | Class and Description |
---|---|
private class |
EpagesOrderServiceImpl.OrderFilter |
Modifier and Type | Field and Description |
---|---|
private SageoneConfig |
config |
private ShopRequestContextBuilder |
contextBuilder |
private OrderService |
orderService |
private GUID |
shopGuid |
Constructor and Description |
---|
EpagesOrderServiceImpl(SageoneConfig config,
OrderService orderService,
ShopRequestContextBuilder contextBuilder) |
Modifier and Type | Method and Description |
---|---|
private PageEP6<Order> |
getFilteredOrders(ShopRequestContext context,
EpagesOrderServiceImpl.OrderFilter filter) |
DetailedOrder |
getOrder(GUID shopGuid,
GUID orderGuid)
Gets the detailed order with the passed order guid
from the desired shop.
|
private PageEP6<Order> |
getOrdersUpdatedAfter(org.joda.time.DateTime updatedAfter,
int page,
int orderStatus) |
java.util.List<Order> |
getOrdersUpdatedAfter(GUID shopGuid,
org.joda.time.DateTime updatedAfter,
int orderStatus)
Gets a list of all orders that where updated after
the passed time from the desired shop.
|
private SageoneConfig config
private OrderService orderService
private ShopRequestContextBuilder contextBuilder
private GUID shopGuid
@Inject public EpagesOrderServiceImpl(SageoneConfig config, OrderService orderService, ShopRequestContextBuilder contextBuilder)
public java.util.List<Order> getOrdersUpdatedAfter(GUID shopGuid, org.joda.time.DateTime updatedAfter, int orderStatus)
EpagesOrderService
getOrdersUpdatedAfter
in interface EpagesOrderService
shopGuid
- GUID of the shop.updatedAfter
- Datetime to use.orderStatus
- Bitmask defining what status is used as filter.
Use EpagesOrderStatus
, if you need to use multiple statuses add them.public DetailedOrder getOrder(GUID shopGuid, GUID orderGuid) throws OrderNotFoundException, FailedToLoadOrderException
EpagesOrderService
getOrder
in interface EpagesOrderService
shopGuid
- GUID of the shop.orderGuid
- GUID of the order.OrderNotFoundException
- in case the desired
order was not found.FailedToLoadOrderException
- in case there was
an error while loading the order.private PageEP6<Order> getOrdersUpdatedAfter(org.joda.time.DateTime updatedAfter, int page, int orderStatus)
private PageEP6<Order> getFilteredOrders(ShopRequestContext context, EpagesOrderServiceImpl.OrderFilter filter)