java.lang.Object
com.maxmind.minfraud.request.TransactionReport.Builder
- Enclosing class:
- TransactionReport
Builder
creates instances of TransactionReport
from values set by the
builder's methods.-
Constructor Summary
ConstructorsConstructorDescriptionThe constructor for theTransactionReport.Builder
class.Builder
(InetAddress ipAddress, TransactionReport.Tag tag) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
chargebackCode
(String chargebackCode) ipAddress
(InetAddress ipAddress) minfraudId
(UUID minfraudId) transactionId
(String transactionId)
-
Constructor Details
-
Builder
Deprecated.UseBuilder(Tag)
instead and set the IP address usingipAddress(InetAddress)
.The constructor for theTransactionReport.Builder
class with IP address.- Parameters:
ipAddress
- The IP address associated with the device used by the customer in the transaction.tag
- A string indicating the likelihood that a transaction may be fraudulent.
-
Builder
The constructor for theTransactionReport.Builder
class.- Parameters:
tag
- A string indicating the likelihood that a transaction may be fraudulent.
-
-
Method Details
-
ipAddress
- Parameters:
ipAddress
- The IP address associated with the device used by the customer in the transaction.- Returns:
- The builder object.
-
chargebackCode
- Parameters:
chargebackCode
- A string which is provided by your payment processor indicating the reason for the chargeback.- Returns:
- The builder object.
-
maxmindId
- Parameters:
maxmindId
- A unique eight character string identifying a minFraud Standard or Premium request. These IDs are returned in the maxmindID field of a response for a successful minFraud request. This field is not required if you provide at least one of the transaction's ipAddress, minfraudId, or transactionId. You are encouraged to provide it, if possible.- Returns:
- The builder object.
-
minfraudId
- Parameters:
minfraudId
- A UUID that identifies a minFraud Score, minFraud Insights, or minFraud Factors request. This ID is returned via getId() in the Score, Insights or Factors response object. This field is not required if you provide at least one of the transaction's ipAddress, maxmindId, or minfraudId. You are encouraged to provide it if the request was made to one of these services.- Returns:
- The builder object.
-
notes
- Parameters:
notes
- Your notes on the fraud tag associated with the transaction.- Returns:
- The builder object.
-
transactionId
- Parameters:
transactionId
- The transaction ID you originally passed to minFraud. This field is not required if you provide at least one of the transaction's ipAddress, maxmindId, or minfraudId.- Returns:
- The builder object.
-
build
- Returns:
- An instance of
TransactionReport
created from the fields set on this builder. - Throws:
IllegalStateException
- if none of the required fields are set.
-
Builder(Tag)
instead and set the IP address usingipAddress(InetAddress)
.