Interface PunchOutService
- All Known Implementing Classes:
DefaultPunchOutService
public interface PunchOutService
Provides services for Punch Out
-
Method Summary
Modifier and TypeMethodDescriptionCreates the cancel message for Ariba.processProfileRequest(CXML request) Processes a profile request by returned a ProfileResponse with populated supported transactions.Creates the cmxl message for aPunchOutOrderMessageto send an Order, using the session cart.processPunchOutSetUpRequest(CXML request) Processes a new PunchOut setup request.processPurchaseOrderRequest(CXML requestBody) Processes a purchase order (OrderRequest) by populating a cart and handles the response in the form ofCXML.retrieveIdentity(CXML request) Retrieve the user id of the originator of the cXML request.
f.y.i.: as there may be multiple credentials declared, the first valid one will be used.
-
Method Details
-
processPunchOutSetUpRequest
Processes a new PunchOut setup request.- Parameters:
request- the request- Returns:
- the
CXMLresponse
-
processPunchOutOrderMessage
CXML processPunchOutOrderMessage()Creates the cmxl message for aPunchOutOrderMessageto send an Order, using the session cart.- Returns:
- the
CXMLobject representing an OrderMessage filled with information from the session cart.
-
processPurchaseOrderRequest
Processes a purchase order (OrderRequest) by populating a cart and handles the response in the form ofCXML. -
retrieveIdentity
Retrieve the user id of the originator of the cXML request.
f.y.i.: as there may be multiple credentials declared, the first valid one will be used.- Parameters:
request- the cXML request.- Returns:
- the identity in the "From" tag.
-
processProfileRequest
Processes a profile request by returned a ProfileResponse with populated supported transactions.- Parameters:
request- the profile request- Returns:
- the resulting
CXMLinstance with aProfileResponsepart of it
-
processCancelPunchOutOrderMessage
CXML processCancelPunchOutOrderMessage()Creates the cancel message for Ariba.- Returns:
- the
CXMLwith the cancel message.
-