Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ public enum ResponseEnum {

_VOIDPENDINGREFUND_RECEIVED_(String.valueOf("[voidPendingRefund-received]")),

AUTHORISED(String.valueOf("Authorised"));
AUTHORISED(String.valueOf("Authorised")),

REFUSED(String.valueOf("Refused")),

ERROR(String.valueOf("Error"));

private static final Logger LOG = Logger.getLogger(ResponseEnum.class.getName());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,13 @@ public class ResponseAdditionalDataCommon {
/** Mark when the attribute has been explicitly set. */
private boolean isSetFraudManualReview = false;

/** The fraud result properties of the payment. */
/** The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED */
public enum FraudResultTypeEnum {
AMBER(String.valueOf("AMBER")),

GREEN(String.valueOf("GREEN")),

FRAUD(String.valueOf("FRAUD"));
RED(String.valueOf("RED"));

private static final Logger LOG = Logger.getLogger(FraudResultTypeEnum.class.getName());

Expand Down Expand Up @@ -274,7 +276,7 @@ public static FraudResultTypeEnum fromValue(String value) {
* The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in a
* fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh
* fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*/
public enum FraudRiskLevelEnum {
VERYLOW(String.valueOf("veryLow")),
Expand Down Expand Up @@ -1536,9 +1538,10 @@ public void setFraudManualReview(String fraudManualReview) {
}

/**
* The fraud result properties of the payment.
* The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED
*
* @param fraudResultType The fraud result properties of the payment.
* @param fraudResultType The fraud result properties of the payment. Possible values: * AMBER *
* GREEN * RED
* @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining
*/
public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudResultType) {
Expand All @@ -1548,9 +1551,10 @@ public ResponseAdditionalDataCommon fraudResultType(FraudResultTypeEnum fraudRes
}

/**
* The fraud result properties of the payment.
* The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED
*
* @return fraudResultType The fraud result properties of the payment.
* @return fraudResultType The fraud result properties of the payment. Possible values: * AMBER *
* GREEN * RED
*/
@JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -1559,9 +1563,10 @@ public FraudResultTypeEnum getFraudResultType() {
}

/**
* The fraud result properties of the payment.
* The fraud result properties of the payment. Possible values: * AMBER * GREEN * RED
*
* @param fraudResultType The fraud result properties of the payment.
* @param fraudResultType The fraud result properties of the payment. Possible values: * AMBER *
* GREEN * RED
*/
@JsonProperty(JSON_PROPERTY_FRAUD_RESULT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -1574,13 +1579,12 @@ public void setFraudResultType(FraudResultTypeEnum fraudResultType) {
* The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in a
* fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh
* fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*
* @param fraudRiskLevel The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in
* a fraudulent dispute. The possible return values are: * veryLow * low * medium * high *
* veryHigh
* a fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
* @return the current {@code ResponseAdditionalDataCommon} instance, allowing for method chaining
*/
public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskLevel) {
Expand All @@ -1593,13 +1597,12 @@ public ResponseAdditionalDataCommon fraudRiskLevel(FraudRiskLevelEnum fraudRiskL
* The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in a
* fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh
* fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*
* @return fraudRiskLevel The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in
* a fraudulent dispute. The possible return values are: * veryLow * low * medium * high *
* veryHigh
* a fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*/
@JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -1611,13 +1614,12 @@ public FraudRiskLevelEnum getFraudRiskLevel() {
* The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in a
* fraudulent dispute. The possible return values are: * veryLow * low * medium * high * veryHigh
* fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*
* @param fraudRiskLevel The risk level of the transaction as classified by the [machine
* learning](https://docs.adyen.com/risk-management/configure-your-risk-profile/machine-learning-rules/)
* fraud risk rule. The risk level indicates the likelihood that a transaction will result in
* a fraudulent dispute. The possible return values are: * veryLow * low * medium * high *
* veryHigh
* a fraudulent dispute. Possible values: * veryLow * low * medium * high * veryHigh
*/
@JsonProperty(JSON_PROPERTY_FRAUD_RISK_LEVEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down