public interface ExternalOrderService
| Modifier and Type | Method and Description |
|---|---|
default WebMethodResult |
abandonOrder(Long orderId,
OrderAbandonedReason reason)
To abandon an order in state OPEN.
|
CloseOrderResult |
closeOrder(Integer requestId,
ContactData purchaserInfo,
Long orderId,
List<TicketData> tickets,
String externalReference,
boolean generateBarCodes,
Long maxWaitingTime,
OrderType orderType,
String externalRemark)
To close an opened or validated order.
|
FileDetailResult |
getFileDetails(Integer requestId,
Long fileId,
Long operationId,
Long movementId,
Boolean currentView,
FileDetailGranularity granularity,
OrderDetailGranularity orderDetailGranularity)
Get the file details.
|
OrderDetailResult |
getOrderDetails(Long orderId,
Long operationId,
Long movementId,
String orderToken,
OrderDetailGranularity granularity)
Returns the content of an order.
|
default Optional<Long> |
getPointOfSalesIdFromCodes(String salesChannelCode,
String pointOfSalesCode)
Utility method allowing to extract of point of sales id from reference codes.
|
CloseOrderResult |
notifyOrder(long orderId,
long maxWaitingTime)
This method finalizes the order and should be called every time after
closeOrder(Integer, ContactData, Long, List, String, boolean, Long, OrderType, String) |
OrderDetailResult getOrderDetails(Long orderId, Long operationId, Long movementId, String orderToken, OrderDetailGranularity granularity)
orderId - Order Id as LongoperationId - Operation Id as LongmovementId - Movement Id as LongorderToken - Order token as Stringgranularity - OrderDetailGranularityOrderDetailResultFileDetailResult getFileDetails(Integer requestId, Long fileId, Long operationId, Long movementId, Boolean currentView, FileDetailGranularity granularity, OrderDetailGranularity orderDetailGranularity)
requestId - Request Id as LongfileId - File Id as LongoperationId - Operation Id as LongmovementId - Movement Id as LongcurrentView - Boolean valuegranularity - FileDetailGranularityorderDetailGranularity - OrderDetailGranularityFileDetailResultCloseOrderResult closeOrder(Integer requestId, ContactData purchaserInfo, Long orderId, List<TicketData> tickets, String externalReference, boolean generateBarCodes, Long maxWaitingTime, OrderType orderType, String externalRemark)
requestId - Order Id as LongpurchaserInfo - ContactDataorderId - Order Id as Longtickets - List of TicketDataexternalReference - External reference as StringgenerateBarCodes - Boolean valuemaxWaitingTime - Maximal of time waiting as LongorderType - OrderTypeexternalRemark - External remark as StringCloseOrderResultCloseOrderResult notifyOrder(long orderId, long maxWaitingTime)
closeOrder(Integer, ContactData, Long, List, String, boolean, Long, OrderType, String)orderId - Order Id as LongmaxWaitingTime - Maximal of time waiting as LongCloseOrderResultdefault Optional<Long> getPointOfSalesIdFromCodes(String salesChannelCode, String pointOfSalesCode)
salesChannelCode - pointOfSalesCode - default WebMethodResult abandonOrder(Long orderId, OrderAbandonedReason reason)
orderId - reason - Copyright © 2021. All rights reserved.