Interface PunchOutService
-
- All Known Implementing Classes:
DefaultPunchOutService
public interface PunchOutServiceProvides services for Punch Out
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CXMLprocessCancelPunchOutOrderMessage()Creates the cancel message for Ariba.CXMLprocessProfileRequest(CXML request)Processes a profile request by returned a ProfileResponse with populated supported transactions.CXMLprocessPunchOutOrderMessage()Creates the cmxl message for aPunchOutOrderMessageto send an Order, using the session cart.CXMLprocessPunchOutSetUpRequest(CXML request)Processes a new PunchOut setup request.CXMLprocessPurchaseOrderRequest(CXML requestBody, CartModel cartModel)Processes a purchase order (OrderRequest) by populating a cart and handles the response in the form ofCXML.java.lang.StringretrieveIdentity(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 Detail
-
processPunchOutSetUpRequest
CXML processPunchOutSetUpRequest(CXML request)
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
CXML processPurchaseOrderRequest(CXML requestBody, CartModel cartModel)
Processes a purchase order (OrderRequest) by populating a cart and handles the response in the form ofCXML.
-
retrieveIdentity
java.lang.String 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.- Parameters:
request- the cXML request.- Returns:
- the identity in the "From" tag.
-
processProfileRequest
CXML processProfileRequest(CXML request)
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
-
-