Package com.maxmind.minfraud.request
Class TransactionReport.Builder
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
ConstructorsConstructorDescriptionBuilder
(InetAddress ipAddress, TransactionReport.Tag tag) The constructor for theTransactionReport.Builder
class -
Method Summary
Modifier and TypeMethodDescriptionbuild()
chargebackCode
(String chargebackCode) minfraudId
(UUID minfraudId) transactionId
(String transactionId)
-
Constructor Details
-
Builder
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 Details
-
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, but 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, but 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.- Returns:
- The builder object.
-
build
- Returns:
- An instance of
TransactionReport
created from the fields set on this builder.
-