Package com.hybris.cis.client.fraud
Interface FraudClient
-
- All Superinterfaces:
CisClient
- All Known Implementing Classes:
FraudClientMock
public interface FraudClient extends CisClient
Charon Client to the CIS Fraud API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CisFraudTransactionResultcalculateFraudScore(java.lang.String xCisClientRef, java.lang.String tenantId, CisFraudTransaction cisTransaction)Calculate fraud score based on the transaction.CisFraudReportResultgenerateFraudReport(java.lang.String xCisClientRef, java.lang.String tenantId, CisFraudReportRequest request)Gives back all the orders that were updated in a given time frame.CisFraudTransactionResulthandleOrderStatusUpdate(java.lang.String xCisClientRef, java.lang.String tenantId, java.lang.String request)Gives back the plain text interpretation of an order status update.CisFraudTransactionResulthandleOrderStatusUpdateXML(java.lang.String xCisClientRef, java.lang.String tenantId, java.lang.String request)Gives back the XML interpretation of an order status update.
-
-
-
Method Detail
-
handleOrderStatusUpdate
@POST @Produces("application/json") @Consumes("application/json") @Path("/statusupdates") CisFraudTransactionResult handleOrderStatusUpdate(@HeaderParam("X-CIS-Client-ref") java.lang.String xCisClientRef, @HeaderParam("X-tenantId") java.lang.String tenantId, java.lang.String request)Gives back the plain text interpretation of an order status update.- Parameters:
xCisClientRef- client ref to pass in the headerrequest- order status update from 3rd party as a string- Returns:
- the interpretation of the order status update
-
handleOrderStatusUpdateXML
@POST @Produces("application/json") @Consumes("application/json") @Path("/statusupdates") CisFraudTransactionResult handleOrderStatusUpdateXML(@HeaderParam("X-CIS-Client-ref") java.lang.String xCisClientRef, @HeaderParam("X-tenantId") java.lang.String tenantId, java.lang.String request)Gives back the XML interpretation of an order status update.- Parameters:
xCisClientRef- client ref to pass in the headerrequest- order status update from 3rd party as a string- Returns:
- the interpretation of the order status update
-
generateFraudReport
@POST @Produces("application/json") @Consumes("application/json") @Path("/fraudreports") CisFraudReportResult generateFraudReport(@HeaderParam("X-CIS-Client-ref") java.lang.String xCisClientRef, @HeaderParam("X-tenantId") java.lang.String tenantId, CisFraudReportRequest request)Gives back all the orders that were updated in a given time frame.- Parameters:
xCisClientRef- client ref to pass in the headerrequest- fraud report requets- Returns:
- the orders that were updated in the requested time frame
-
calculateFraudScore
@POST @Produces("application/json") @Consumes("application/json") @Path("/fraudresults") CisFraudTransactionResult calculateFraudScore(@HeaderParam("X-CIS-Client-ref") java.lang.String xCisClientRef, @HeaderParam("X-tenantId") java.lang.String tenantId, CisFraudTransaction cisTransaction)Calculate fraud score based on the transaction.- Parameters:
xCisClientRef- client ref to pass in the headercisTransaction- transaction to calculate the fraud on- Returns:
- the rest response containting the fraud transaction result
-
-