Package com.adyen.model.storedvalue
Class StoredValueLoadResponse
- java.lang.Object
-
- com.adyen.model.storedvalue.StoredValueLoadResponse
-
public class StoredValueLoadResponse extends Object
StoredValueLoadResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredValueLoadResponse.ResultCodeEnumThe result of the payment.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTH_CODEstatic StringJSON_PROPERTY_CURRENT_BALANCEstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_REFUSAL_REASONstatic StringJSON_PROPERTY_RESULT_CODEstatic StringJSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON
-
Constructor Summary
Constructors Constructor Description StoredValueLoadResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredValueLoadResponseauthCode(String authCode)Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.StoredValueLoadResponsecurrentBalance(Amount currentBalance)currentBalancebooleanequals(Object o)Return true if this StoredValueLoadResponse object is equal to o.static StoredValueLoadResponsefromJson(String jsonString)Create an instance of StoredValueLoadResponse given an JSON stringStringgetAuthCode()Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.AmountgetCurrentBalance()currentBalanceStringgetPspReference()Adyen's 16-character string reference associated with the transaction/request.StringgetRefusalReason()If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error.StoredValueLoadResponse.ResultCodeEnumgetResultCode()The result of the payment.StringgetThirdPartyRefusalReason()Raw refusal reason received from the third party, where availableinthashCode()StoredValueLoadResponsepspReference(String pspReference)Adyen's 16-character string reference associated with the transaction/request.StoredValueLoadResponserefusalReason(String refusalReason)If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error.StoredValueLoadResponseresultCode(StoredValueLoadResponse.ResultCodeEnum resultCode)The result of the payment.voidsetAuthCode(String authCode)Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.voidsetCurrentBalance(Amount currentBalance)currentBalancevoidsetPspReference(String pspReference)Adyen's 16-character string reference associated with the transaction/request.voidsetRefusalReason(String refusalReason)If the transaction is refused or an error occurs, this field holds Adyen's mapped reason for the refusal or a description of the error.voidsetResultCode(StoredValueLoadResponse.ResultCodeEnum resultCode)The result of the payment.voidsetThirdPartyRefusalReason(String thirdPartyRefusalReason)Raw refusal reason received from the third party, where availableStoredValueLoadResponsethirdPartyRefusalReason(String thirdPartyRefusalReason)Raw refusal reason received from the third party, where availableStringtoJson()Convert an instance of StoredValueLoadResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTH_CODE
public static final String JSON_PROPERTY_AUTH_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CURRENT_BALANCE
public static final String JSON_PROPERTY_CURRENT_BALANCE
- 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
-
JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON
public static final String JSON_PROPERTY_THIRD_PARTY_REFUSAL_REASON
- See Also:
- Constant Field Values
-
-
Method Detail
-
authCode
public StoredValueLoadResponse authCode(String authCode)
Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.- Parameters:
authCode-- Returns:
- the current
StoredValueLoadResponseinstance, allowing for method chaining
-
getAuthCode
public String getAuthCode()
Authorisation code: * When the payment is authorised, 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, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty.- Parameters:
authCode-
-
currentBalance
public StoredValueLoadResponse currentBalance(Amount currentBalance)
currentBalance- Parameters:
currentBalance-- Returns:
- the current
StoredValueLoadResponseinstance, allowing for method chaining
-
getCurrentBalance
public Amount getCurrentBalance()
currentBalance- Returns:
- currentBalance
-
setCurrentBalance
public void setCurrentBalance(Amount currentBalance)
currentBalance- Parameters:
currentBalance-
-
pspReference
public StoredValueLoadResponse pspReference(String pspReference)
Adyen's 16-character string 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
StoredValueLoadResponseinstance, allowing for method chaining
-
getPspReference
public String getPspReference()
Adyen's 16-character string 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 string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request.- Parameters:
pspReference-
-
refusalReason
public StoredValueLoadResponse refusalReason(String refusalReason)
If the transaction is refused or an error occurs, 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.- Parameters:
refusalReason-- Returns:
- the current
StoredValueLoadResponseinstance, allowing for method chaining
-
getRefusalReason
public String getRefusalReason()
If the transaction is refused or an error occurs, 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.- Returns:
- refusalReason
-
setRefusalReason
public void setRefusalReason(String refusalReason)
If the transaction is refused or an error occurs, 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.- Parameters:
refusalReason-
-
resultCode
public StoredValueLoadResponse resultCode(StoredValueLoadResponse.ResultCodeEnum resultCode)
The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.- Parameters:
resultCode-- Returns:
- the current
StoredValueLoadResponseinstance, allowing for method chaining
-
getResultCode
public StoredValueLoadResponse.ResultCodeEnum getResultCode()
The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.- Returns:
- resultCode
-
setResultCode
public void setResultCode(StoredValueLoadResponse.ResultCodeEnum resultCode)
The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.- Parameters:
resultCode-
-
thirdPartyRefusalReason
public StoredValueLoadResponse thirdPartyRefusalReason(String thirdPartyRefusalReason)
Raw refusal reason received from the third party, where available- Parameters:
thirdPartyRefusalReason-- Returns:
- the current
StoredValueLoadResponseinstance, allowing for method chaining
-
getThirdPartyRefusalReason
public String getThirdPartyRefusalReason()
Raw refusal reason received from the third party, where available- Returns:
- thirdPartyRefusalReason
-
setThirdPartyRefusalReason
public void setThirdPartyRefusalReason(String thirdPartyRefusalReason)
Raw refusal reason received from the third party, where available- Parameters:
thirdPartyRefusalReason-
-
equals
public boolean equals(Object o)
Return true if this StoredValueLoadResponse object is equal to o.
-
fromJson
public static StoredValueLoadResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredValueLoadResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredValueLoadResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredValueLoadResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredValueLoadResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-