Record Class FactorsResponse
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.FactorsResponse
- Record Components:
billingAddress- TheBillingAddressmodel object.billingPhone- ThePhonemodel object for the billing phone number.creditCard- TheCreditCardmodel object.device- TheDevicemodel object.disposition- The disposition set by your custom rules.email- TheEmailmodel object.fundsRemaining- The approximate US dollar value of the funds remaining on your MaxMind account.id- This is a UUID that identifies the minFraud request.ipAddress- TheIpAddressmodel object.queriesRemaining- The approximate number of queries remaining for this service before your account runs out of funds.riskScore- This returns the risk score, from 0.01 to 99. A higher score indicates a higher risk of fraud. For example, a score of 20 indicates a 20% chance that a transaction is fraudulent. We never return a risk score of 0, since all transactions have the possibility of being fraudulent. Likewise, we never return a risk score of 100.riskScoreReasons- A list containingRiskScoreReasonmodel objects that describe risk score reasons for a given transaction that change the risk score significantly. Risk score reasons are usually only returned for medium to high risk transactions. If there were no significant changes to the risk score due to these reasons, then this list will be empty.shippingAddress- TheShippingAddressmodel object.shippingPhone- ThePhonemodel object for the shipping phone number.warnings- An unmodifiable list containing warning objects that detail issues with the request such as invalid or unknown inputs. It is highly recommended that you check this list for issues when integrating the web service.
- All Implemented Interfaces:
JsonSerializable
public record FactorsResponse(BillingAddress billingAddress, Phone billingPhone, CreditCard creditCard, Device device, Disposition disposition, Email email, Double fundsRemaining, UUID id, IpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<RiskScoreReason> riskScoreReasons, ShippingAddress shippingAddress, Phone shippingPhone, List<Warning> warnings)
extends Record
implements JsonSerializable
This class provides a model for the minFraud Factors response.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofFactorsResponsewith no data.FactorsResponse(BillingAddress billingAddress, Phone billingPhone, CreditCard creditCard, Device device, Disposition disposition, Email email, Double fundsRemaining, UUID id, IpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<RiskScoreReason> riskScoreReasons, ShippingAddress shippingAddress, Phone shippingPhone, List<Warning> warnings) Compact canonical constructor that sets defaults for null values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebillingAddressrecord component.Returns the value of thebillingPhonerecord component.Returns the value of thecreditCardrecord component.device()Returns the value of thedevicerecord component.Returns the value of thedispositionrecord component.email()Returns the value of theemailrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefundsRemainingrecord component.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.UsebillingPhone()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsecreditCard()instead.Deprecated, for removal: This API element is subject to removal in a future version.Usedevice()instead.Deprecated, for removal: This API element is subject to removal in a future version.Usedisposition()instead.getEmail()Deprecated, for removal: This API element is subject to removal in a future version.Useemail()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsefundsRemaining()instead.getId()Deprecated, for removal: This API element is subject to removal in a future version.Useid()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead.Deprecated, for removal: This API element is subject to removal in a future version.UsequeriesRemaining()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseriskScore()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseriskScoreReasons()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseshippingAddress()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseshippingPhone()instead.Deprecated, for removal: This API element is subject to removal in a future version.Usewarnings()instead.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theipAddressrecord component.Returns the value of thequeriesRemainingrecord component.Returns the value of theriskScorerecord component.Returns the value of theriskScoreReasonsrecord component.Returns the value of theshippingAddressrecord component.Returns the value of theshippingPhonerecord component.final StringtoString()Returns a string representation of this record class.warnings()Returns the value of thewarningsrecord component.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
FactorsResponse
public FactorsResponse(BillingAddress billingAddress, Phone billingPhone, CreditCard creditCard, Device device, Disposition disposition, Email email, Double fundsRemaining, UUID id, IpAddress ipAddress, Integer queriesRemaining, Double riskScore, List<RiskScoreReason> riskScoreReasons, ShippingAddress shippingAddress, Phone shippingPhone, List<Warning> warnings) Compact canonical constructor that sets defaults for null values. -
FactorsResponse
public FactorsResponse()Constructs an instance ofFactorsResponsewith no data.
-
-
Method Details
-
getBillingAddress
Deprecated, for removal: This API element is subject to removal in a future version.UsebillingAddress()instead. This method will be removed in 5.0.0.- Returns:
- The
BillingAddressmodel object.
-
getBillingPhone
Deprecated, for removal: This API element is subject to removal in a future version.UsebillingPhone()instead. This method will be removed in 5.0.0.- Returns:
- The
Phonemodel object for the billing phone number.
-
getCreditCard
Deprecated, for removal: This API element is subject to removal in a future version.UsecreditCard()instead. This method will be removed in 5.0.0.- Returns:
- The
CreditCardmodel object.
-
getDevice
Deprecated, for removal: This API element is subject to removal in a future version.Usedevice()instead. This method will be removed in 5.0.0.- Returns:
- The
Devicemodel object.
-
getDisposition
Deprecated, for removal: This API element is subject to removal in a future version.Usedisposition()instead. This method will be removed in 5.0.0.- Returns:
- The disposition set by your custom rules.
-
getEmail
Deprecated, for removal: This API element is subject to removal in a future version.Useemail()instead. This method will be removed in 5.0.0.- Returns:
- The
Emailmodel object.
-
getFundsRemaining
Deprecated, for removal: This API element is subject to removal in a future version.UsefundsRemaining()instead. This method will be removed in 5.0.0.- Returns:
- The approximate US dollar value of the funds remaining on your MaxMind account.
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.Useid()instead. This method will be removed in 5.0.0.- Returns:
- This is a UUID that identifies the minFraud request.
-
getIpAddress
Deprecated, for removal: This API element is subject to removal in a future version.UseipAddress()instead. This method will be removed in 5.0.0.- Returns:
- The
IpAddressmodel object.
-
getQueriesRemaining
Deprecated, for removal: This API element is subject to removal in a future version.UsequeriesRemaining()instead. This method will be removed in 5.0.0.- Returns:
- The approximate number of queries remaining for this service before your account runs out of funds.
-
getRiskScore
Deprecated, for removal: This API element is subject to removal in a future version.UseriskScore()instead. This method will be removed in 5.0.0.- Returns:
- This returns the risk score, from 0.01 to 99. A higher score indicates a higher risk of fraud. For example, a score of 20 indicates a 20% chance that a transaction is fraudulent. We never return a risk score of 0, since all transactions have the possibility of being fraudulent. Likewise, we never return a risk score of 100.
-
getRiskScoreReasons
Deprecated, for removal: This API element is subject to removal in a future version.UseriskScoreReasons()instead. This method will be removed in 5.0.0.- Returns:
- A list containing objects that describe risk score reasons for a given transaction that change the risk score significantly.
-
getShippingAddress
Deprecated, for removal: This API element is subject to removal in a future version.UseshippingAddress()instead. This method will be removed in 5.0.0.- Returns:
- The
ShippingAddressmodel object.
-
getShippingPhone
Deprecated, for removal: This API element is subject to removal in a future version.UseshippingPhone()instead. This method will be removed in 5.0.0.- Returns:
- The
Phonemodel object for the shipping phone number.
-
getWarnings
Deprecated, for removal: This API element is subject to removal in a future version.Usewarnings()instead. This method will be removed in 5.0.0.- Returns:
- An unmodifiable list containing warning objects that detail issues with the request such as invalid or unknown inputs. It is highly recommended that you check this list for issues when integrating the web service.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
billingAddress
Returns the value of thebillingAddressrecord component.- Returns:
- the value of the
billingAddressrecord component
-
billingPhone
Returns the value of thebillingPhonerecord component.- Returns:
- the value of the
billingPhonerecord component
-
creditCard
Returns the value of thecreditCardrecord component.- Returns:
- the value of the
creditCardrecord component
-
device
-
disposition
Returns the value of thedispositionrecord component.- Returns:
- the value of the
dispositionrecord component
-
email
-
fundsRemaining
Returns the value of thefundsRemainingrecord component.- Returns:
- the value of the
fundsRemainingrecord component
-
id
-
ipAddress
-
queriesRemaining
Returns the value of thequeriesRemainingrecord component.- Returns:
- the value of the
queriesRemainingrecord component
-
riskScore
-
riskScoreReasons
Returns the value of theriskScoreReasonsrecord component.- Returns:
- the value of the
riskScoreReasonsrecord component
-
shippingAddress
Returns the value of theshippingAddressrecord component.- Returns:
- the value of the
shippingAddressrecord component
-
shippingPhone
Returns the value of theshippingPhonerecord component.- Returns:
- the value of the
shippingPhonerecord component
-
warnings
-
billingAddress()instead.