Package com.maxmind.minfraud.request
Class TransactionReport.Builder
- java.lang.Object
-
- com.maxmind.minfraud.request.TransactionReport.Builder
-
- Enclosing class:
- TransactionReport
public static final class TransactionReport.Builder extends Object
Builder
creates instances ofTransactionReport
from values set by the builder's methods.
-
-
Constructor Summary
Constructors Constructor Description Builder(InetAddress ipAddress, TransactionReport.Tag tag)
The constructor for theTransactionReport.Builder
class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionReport
build()
TransactionReport.Builder
chargebackCode(String chargebackCode)
TransactionReport.Builder
maxmindId(String maxmindId)
TransactionReport.Builder
minfraudId(UUID minfraudId)
TransactionReport.Builder
notes(String notes)
TransactionReport.Builder
transactionId(String transactionId)
-
-
-
Constructor Detail
-
Builder
public Builder(InetAddress ipAddress, TransactionReport.Tag tag)
The constructor for theTransactionReport.Builder
class- 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.
-
-
Method Detail
-
chargebackCode
public TransactionReport.Builder chargebackCode(String chargebackCode)
- Parameters:
chargebackCode
- A string which is provided by your payment processor indicating the reason for the chargeback.- Returns:
- The builder object.
-
maxmindId
public TransactionReport.Builder maxmindId(String 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, but you are encouraged to provide it, if possible.- Returns:
- The builder object.
-
minfraudId
public TransactionReport.Builder minfraudId(UUID 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, but you are encouraged to provide it if the request was made to one of these services.- Returns:
- The builder object.
-
notes
public TransactionReport.Builder notes(String notes)
- Parameters:
notes
- Your notes on the fraud tag associated with the transaction.- Returns:
- The builder object.
-
transactionId
public TransactionReport.Builder transactionId(String transactionId)
- Parameters:
transactionId
- The transaction ID you originally passed to minFraud.- Returns:
- The builder object.
-
build
public TransactionReport build()
- Returns:
- An instance of
TransactionReport
created from the fields set on this builder.
-
-