Class CommercialFraudMockService
- java.lang.Object
-
- de.hybris.platform.fraud.impl.AbstractFraudServiceProvider
-
- de.hybris.platform.fraud.impl.mock.CommercialFraudMockService
-
- All Implemented Interfaces:
FraudServiceProvider
public class CommercialFraudMockService extends AbstractFraudServiceProvider
Mock implementation of external fraud detection provider.
-
-
Constructor Summary
Constructors Constructor Description CommercialFraudMockService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>decomposeOrderModel(AbstractOrderModel order)protected java.util.Map<java.lang.String,java.lang.Double>doAll(java.util.Map<java.lang.String,java.lang.String> parameters)intisBannedDomain(java.lang.String domain)whether the given domain is bannedintisBannedIP(java.lang.String ipAddress)whether the given ip address is bannedintisFraudulentCreditCard(java.lang.String hashedNumber)whether the given hashed credit card number is fraudulentintisFraudulentEmailAddress(java.lang.String email)whether the given email address is fraudulentintisFraudulentGeolocation(java.lang.String ipAddress, java.lang.String country, java.lang.String zipCode, java.lang.String state)whether the given geolocation is fraudulentintisFreeEmailService(java.lang.String email)whether the given email is from a free email serviceFraudServiceResponserecognizeOrderFraudSymptoms(AbstractOrderModel order)FraudServiceResponserecognizeUserActivitySymptoms(UserModel order)-
Methods inherited from class de.hybris.platform.fraud.impl.AbstractFraudServiceProvider
getProviderName, setProviderName
-
-
-
-
Method Detail
-
isFreeEmailService
public int isFreeEmailService(java.lang.String email)
whether the given email is from a free email service- Parameters:
email- the email to check- Returns:
- the score (0 if no free email, otherwise
DEFAULT_INCREMENT)
-
isBannedDomain
public int isBannedDomain(java.lang.String domain)
whether the given domain is banned- Parameters:
domain- the domain to check- Returns:
- the score (0 if not banned, otherwise
DEFAULT_INCREMENT)
-
isBannedIP
public int isBannedIP(java.lang.String ipAddress)
whether the given ip address is banned- Parameters:
ipAddress- the ip address to check- Returns:
- the score (0 if not banned, otherwise
DEFAULT_INCREMENT)
-
isFraudulentCreditCard
public int isFraudulentCreditCard(java.lang.String hashedNumber)
whether the given hashed credit card number is fraudulent- Parameters:
hashedNumber- the hashed credit card number to check- Returns:
- the score (0 if not fraudulent, otherwise
DEFAULT_INCREMENT)
-
isFraudulentEmailAddress
public int isFraudulentEmailAddress(java.lang.String email)
whether the given email address is fraudulent- Parameters:
email- the email to check- Returns:
- the score (0 if not fraudulent, otherwise
DEFAULT_INCREMENT)
-
isFraudulentGeolocation
public int isFraudulentGeolocation(java.lang.String ipAddress, java.lang.String country, java.lang.String zipCode, java.lang.String state)whether the given geolocation is fraudulent- Parameters:
ipAddress- the ip address to checkcountry- the country to checkzipCode- the zip code to checkstate- the state to check- Returns:
- the score (0 if not fraudulent, otherwise
DEFAULT_INCREMENT)
-
decomposeOrderModel
protected java.util.Map<java.lang.String,java.lang.String> decomposeOrderModel(AbstractOrderModel order)
-
recognizeOrderFraudSymptoms
public FraudServiceResponse recognizeOrderFraudSymptoms(AbstractOrderModel order)
-
doAll
protected java.util.Map<java.lang.String,java.lang.Double> doAll(java.util.Map<java.lang.String,java.lang.String> parameters)
-
recognizeUserActivitySymptoms
public FraudServiceResponse recognizeUserActivitySymptoms(UserModel order)
-
-