Package com.adyen.model.payout
Class PayoutResponse
- java.lang.Object
-
- com.adyen.model.payout.PayoutResponse
-
public class PayoutResponse extends Object
PayoutResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayoutResponse.ResultCodeEnumThe result of the payment.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ADDITIONAL_DATAstatic StringJSON_PROPERTY_AUTH_CODEstatic StringJSON_PROPERTY_DCC_AMOUNTstatic StringJSON_PROPERTY_DCC_SIGNATUREstatic StringJSON_PROPERTY_FRAUD_RESULTstatic StringJSON_PROPERTY_ISSUER_URLstatic StringJSON_PROPERTY_MDstatic StringJSON_PROPERTY_PA_REQUESTstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFUSAL_REASONstatic StringJSON_PROPERTY_RESULT_CODE
-
Constructor Summary
Constructors Constructor Description PayoutResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PayoutResponseadditionalData(Map<String,String> additionalData)Contains additional information about the payment.PayoutResponseauthCode(String authCode)Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.PayoutResponsedccAmount(Amount dccAmount)dccAmountPayoutResponsedccSignature(String dccSignature)Cryptographic signature used to verify `dccQuote`.booleanequals(Object o)Return true if this PayoutResponse object is equal to o.PayoutResponsefraudResult(FraudResult fraudResult)fraudResultstatic PayoutResponsefromJson(String jsonString)Create an instance of PayoutResponse given an JSON stringMap<String,String>getAdditionalData()Contains additional information about the payment.StringgetAuthCode()Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.AmountgetDccAmount()dccAmountStringgetDccSignature()Cryptographic signature used to verify `dccQuote`.FraudResultgetFraudResult()fraudResultStringgetIssuerUrl()The URL to direct the shopper to.StringgetMd()The payment session.StringgetPaRequest()The 3D request data for the issuer.StringgetPspReference()Adyen's 16-character reference associated with the transaction/request.StringgetRefusalReason()If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error.PayoutResponse.ResultCodeEnumgetResultCode()The result of the payment.inthashCode()PayoutResponseissuerUrl(String issuerUrl)The URL to direct the shopper to.PayoutResponsemd(String md)The payment session.PayoutResponsepaRequest(String paRequest)The 3D request data for the issuer.PayoutResponsepspReference(String pspReference)Adyen's 16-character reference associated with the transaction/request.PayoutResponseputAdditionalDataItem(String key, String additionalDataItem)PayoutResponserefusalReason(String refusalReason)If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error.PayoutResponseresultCode(PayoutResponse.ResultCodeEnum resultCode)The result of the payment.voidsetAdditionalData(Map<String,String> additionalData)Contains additional information about the payment.voidsetAuthCode(String authCode)Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.voidsetDccAmount(Amount dccAmount)dccAmountvoidsetDccSignature(String dccSignature)Cryptographic signature used to verify `dccQuote`.voidsetFraudResult(FraudResult fraudResult)fraudResultvoidsetIssuerUrl(String issuerUrl)The URL to direct the shopper to.voidsetMd(String md)The payment session.voidsetPaRequest(String paRequest)The 3D request data for the issuer.voidsetPspReference(String pspReference)Adyen's 16-character reference associated with the transaction/request.voidsetRefusalReason(String refusalReason)If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error.voidsetResultCode(PayoutResponse.ResultCodeEnum resultCode)The result of the payment.StringtoJson()Convert an instance of PayoutResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ADDITIONAL_DATA
public static final String JSON_PROPERTY_ADDITIONAL_DATA
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTH_CODE
public static final String JSON_PROPERTY_AUTH_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DCC_AMOUNT
public static final String JSON_PROPERTY_DCC_AMOUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DCC_SIGNATURE
public static final String JSON_PROPERTY_DCC_SIGNATURE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FRAUD_RESULT
public static final String JSON_PROPERTY_FRAUD_RESULT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUER_URL
public static final String JSON_PROPERTY_ISSUER_URL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MD
public static final String JSON_PROPERTY_MD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PA_REQUEST
public static final String JSON_PROPERTY_PA_REQUEST
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REFUSAL_REASON
public static final String JSON_PROPERTY_REFUSAL_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
additionalData
public PayoutResponse additionalData(Map<String,String> additionalData)
Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**.- Parameters:
additionalData-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
putAdditionalDataItem
public PayoutResponse putAdditionalDataItem(String key, String additionalDataItem)
-
getAdditionalData
public Map<String,String> getAdditionalData()
Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**.- Returns:
- additionalData
-
setAdditionalData
public void setAdditionalData(Map<String,String> additionalData)
Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**.- Parameters:
additionalData-
-
authCode
public PayoutResponse authCode(String authCode)
Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.- Parameters:
authCode-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getAuthCode
public String getAuthCode()
Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.- Returns:
- authCode
-
setAuthCode
public void setAuthCode(String authCode)
Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.- Parameters:
authCode-
-
dccAmount
public PayoutResponse dccAmount(Amount dccAmount)
dccAmount- Parameters:
dccAmount-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getDccAmount
public Amount getDccAmount()
dccAmount- Returns:
- dccAmount
-
setDccAmount
public void setDccAmount(Amount dccAmount)
dccAmount- Parameters:
dccAmount-
-
dccSignature
public PayoutResponse dccSignature(String dccSignature)
Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).- Parameters:
dccSignature-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getDccSignature
public String getDccSignature()
Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).- Returns:
- dccSignature
-
setDccSignature
public void setDccSignature(String dccSignature)
Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).- Parameters:
dccSignature-
-
fraudResult
public PayoutResponse fraudResult(FraudResult fraudResult)
fraudResult- Parameters:
fraudResult-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getFraudResult
public FraudResult getFraudResult()
fraudResult- Returns:
- fraudResult
-
setFraudResult
public void setFraudResult(FraudResult fraudResult)
fraudResult- Parameters:
fraudResult-
-
issuerUrl
public PayoutResponse issuerUrl(String issuerUrl)
The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL.- Parameters:
issuerUrl-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getIssuerUrl
public String getIssuerUrl()
The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL.- Returns:
- issuerUrl
-
setIssuerUrl
public void setIssuerUrl(String issuerUrl)
The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL.- Parameters:
issuerUrl-
-
md
public PayoutResponse md(String md)
The payment session.- Parameters:
md-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getMd
public String getMd()
The payment session.- Returns:
- md
-
setMd
public void setMd(String md)
The payment session.- Parameters:
md-
-
paRequest
public PayoutResponse paRequest(String paRequest)
The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure).- Parameters:
paRequest-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getPaRequest
public String getPaRequest()
The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure).- Returns:
- paRequest
-
setPaRequest
public void setPaRequest(String paRequest)
The 3D request data for the issuer. If the value is **CUPSecurePlus-CollectSMSVerificationCode**, collect an SMS code from the shopper and pass it in the `/authorise3D` request. For more information, see [3D Secure](https://docs.adyen.com/classic-integration/3d-secure).- Parameters:
paRequest-
-
pspReference
public PayoutResponse pspReference(String pspReference)
Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.- Parameters:
pspReference-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
Adyen's 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.- Parameters:
pspReference-
-
refusalReason
public PayoutResponse refusalReason(String refusalReason)
If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).- Parameters:
refusalReason-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getRefusalReason
public String getRefusalReason()
If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).- Returns:
- refusalReason
-
setRefusalReason
public void setRefusalReason(String refusalReason)
If the payment's authorisation is refused or an error occurs during authorisation, this field holds Adyen's mapped reason for the refusal or a description of the error. When a transaction fails, the authorisation response includes `resultCode` and `refusalReason` values. For more information, see [Refusal reasons](https://docs.adyen.com/development-resources/refusal-reasons).- Parameters:
refusalReason-
-
resultCode
public PayoutResponse resultCode(PayoutResponse.ResultCodeEnum resultCode)
The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **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. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state.- Parameters:
resultCode-- Returns:
- the current
PayoutResponseinstance, allowing for method chaining
-
getResultCode
public PayoutResponse.ResultCodeEnum getResultCode()
The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **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. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state.- Returns:
- resultCode
-
setResultCode
public void setResultCode(PayoutResponse.ResultCodeEnum resultCode)
The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper's device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **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. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state.- Parameters:
resultCode-
-
equals
public boolean equals(Object o)
Return true if this PayoutResponse object is equal to o.
-
fromJson
public static PayoutResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PayoutResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PayoutResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PayoutResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PayoutResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-