Package com.adyen.model.payout
Enum PayoutResponse.ResultCodeEnum
- java.lang.Object
-
- java.lang.Enum<PayoutResponse.ResultCodeEnum>
-
- com.adyen.model.payout.PayoutResponse.ResultCodeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PayoutResponse.ResultCodeEnum>
- Enclosing class:
- PayoutResponse
public static enum PayoutResponse.ResultCodeEnum extends Enum<PayoutResponse.ResultCodeEnum>
The result of the payment. Possible values: * **Authorised** – Indicates the payment authorisation was successfully completed. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. For more information on handling a pending payment, refer to [Payments with pending status](https://docs.adyen.com/development-resources/payments-with-pending-status). * **Error** – Indicates an error occurred during processing of the payment. The reason is given in the `refusalReason` field. This is a final state.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayoutResponse.ResultCodeEnum.Adapter
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHORISEDCANCELLEDERRORPARTIALLYAUTHORISEDRECEIVEDREDIRECTSHOPPERREFUSED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PayoutResponse.ResultCodeEnumfromValue(String text)StringgetValue()StringtoString()static PayoutResponse.ResultCodeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PayoutResponse.ResultCodeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHORISED
public static final PayoutResponse.ResultCodeEnum AUTHORISED
-
PARTIALLYAUTHORISED
public static final PayoutResponse.ResultCodeEnum PARTIALLYAUTHORISED
-
REFUSED
public static final PayoutResponse.ResultCodeEnum REFUSED
-
ERROR
public static final PayoutResponse.ResultCodeEnum ERROR
-
CANCELLED
public static final PayoutResponse.ResultCodeEnum CANCELLED
-
RECEIVED
public static final PayoutResponse.ResultCodeEnum RECEIVED
-
REDIRECTSHOPPER
public static final PayoutResponse.ResultCodeEnum REDIRECTSHOPPER
-
-
Method Detail
-
values
public static PayoutResponse.ResultCodeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PayoutResponse.ResultCodeEnum c : PayoutResponse.ResultCodeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PayoutResponse.ResultCodeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PayoutResponse.ResultCodeEnum>
-
fromValue
public static PayoutResponse.ResultCodeEnum fromValue(String text)
-
-