Package com.adyen.model.storedvalue
Class StoredValueBalanceCheckResponse
- java.lang.Object
-
- com.adyen.model.storedvalue.StoredValueBalanceCheckResponse
-
public class StoredValueBalanceCheckResponse extends Object
StoredValueBalanceCheckResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredValueBalanceCheckResponse.ResultCodeEnumThe result of the payment.
-
Constructor Summary
Constructors Constructor Description StoredValueBalanceCheckResponse()
-
Method Summary
-
-
-
Method Detail
-
currentBalance
public StoredValueBalanceCheckResponse currentBalance(Amount currentBalance)
-
getCurrentBalance
public Amount getCurrentBalance()
Get currentBalance- Returns:
- currentBalance
-
setCurrentBalance
public void setCurrentBalance(Amount currentBalance)
-
pspReference
public StoredValueBalanceCheckResponse pspReference(String pspReference)
-
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)
-
refusalReason
public StoredValueBalanceCheckResponse refusalReason(String refusalReason)
-
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)
-
resultCode
public StoredValueBalanceCheckResponse resultCode(StoredValueBalanceCheckResponse.ResultCodeEnum resultCode)
-
getResultCode
public StoredValueBalanceCheckResponse.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(StoredValueBalanceCheckResponse.ResultCodeEnum resultCode)
-
thirdPartyRefusalReason
public StoredValueBalanceCheckResponse thirdPartyRefusalReason(String thirdPartyRefusalReason)
-
getThirdPartyRefusalReason
public String getThirdPartyRefusalReason()
Raw refusal reason received from the third party, where available- Returns:
- thirdPartyRefusalReason
-
setThirdPartyRefusalReason
public void setThirdPartyRefusalReason(String thirdPartyRefusalReason)
-
-