Class CommercialFraudMockService
java.lang.Object
de.hybris.platform.fraud.impl.AbstractFraudServiceProvider
de.hybris.platform.fraud.impl.mock.CommercialFraudMockService
- All Implemented Interfaces:
FraudServiceProvider
Mock implementation of external fraud detection provider.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintisBannedDomain(String domain) whether the given domain is bannedintisBannedIP(String ipAddress) whether the given ip address is bannedintisFraudulentCreditCard(String hashedNumber) whether the given hashed credit card number is fraudulentintisFraudulentEmailAddress(String email) whether the given email address is fraudulentintisFraudulentGeolocation(String ipAddress, String country, String zipCode, String state) whether the given geolocation is fraudulentintisFreeEmailService(String email) whether the given email is from a free email serviceMethods inherited from class de.hybris.platform.fraud.impl.AbstractFraudServiceProvider
getProviderName, setProviderName
-
Constructor Details
-
CommercialFraudMockService
public CommercialFraudMockService()
-
-
Method Details
-
isFreeEmailService
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
whether the given domain is banned- Parameters:
domain- the domain to check- Returns:
- the score (0 if not banned, otherwise
DEFAULT_INCREMENT)
-
isBannedIP
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
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
whether the given email address is fraudulent- Parameters:
email- the email to check- Returns:
- the score (0 if not fraudulent, otherwise
DEFAULT_INCREMENT)
-
isFraudulentGeolocation
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
-
recognizeOrderFraudSymptoms
-
doAll
-
recognizeUserActivitySymptoms
-