Record Class Disposition
java.lang.Object
java.lang.Record
com.maxmind.minfraud.response.Disposition
- Record Components:
action- AStringwith the action to take on the transaction as defined by your custom rules. The current set of values are "accept", "manual_review", "reject" and "test". If you do not have custom rules set up,nullwill be returned.reason- AStringwith the reason for the action. The current possible values are "custom_rule" and "default". If you do not have custom rules set up,nullwill be returned.ruleLabel- AStringwith the label of the custom rule that was triggered. If you do not have custom rules set up, the triggered custom rule does not have a label, or no custom rule was triggered,nullwill be returned.
- All Implemented Interfaces:
JsonSerializable
public record Disposition(String action, String reason, String ruleLabel)
extends Record
implements JsonSerializable
This class contains the disposition set by custom rules.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an instance ofDispositionwith no data.Disposition(String action, String reason, String ruleLabel) Creates an instance of aDispositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.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.Usereason()instead.Deprecated, for removal: This API element is subject to removal in a future version.UseruleLabel()instead.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of theruleLabelrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface JsonSerializable
toJson
-
Constructor Details
-
Disposition
public Disposition()Constructs an instance ofDispositionwith no data. -
Disposition
-
-
Method Details
-
getAction
Deprecated, for removal: This API element is subject to removal in a future version.Useaction()instead. This method will be removed in 5.0.0.- Returns:
- A
Stringwith the action to take on the transaction as defined by your custom rules. The current set of values are "accept", "manual_review", "reject" and "test". If you do not have custom rules set up,nullwill be returned.
-
getReason
Deprecated, for removal: This API element is subject to removal in a future version.Usereason()instead. This method will be removed in 5.0.0.- Returns:
- A
Stringwith the reason for the action. The current possible values are "custom_rule" and "default". If you do not have custom rules set up,nullwill be returned.
-
getRuleLabel
Deprecated, for removal: This API element is subject to removal in a future version.UseruleLabel()instead. This method will be removed in 5.0.0.- Returns:
- A
Stringwith the label of the custom rule that was triggered. If you do not have custom rules set up, the triggered custom rule does not have a label, or no custom rule was triggered,nullwill be returned.
-
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). -
action
-
reason
-
ruleLabel
-
action()instead.