Package com.adyen.model.storedvalue
Class StoredValueVoidResponse
- java.lang.Object
-
- com.adyen.model.storedvalue.StoredValueVoidResponse
-
public class StoredValueVoidResponse extends Object
StoredValueVoidResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStoredValueVoidResponse.ResultCodeEnumThe result of the payment.
-
Field Summary
Fields Modifier and Type Field Description static 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 StoredValueVoidResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StoredValueVoidResponsecurrentBalance(Amount currentBalance)currentBalancebooleanequals(Object o)Return true if this StoredValueVoidResponse object is equal to o.static StoredValueVoidResponsefromJson(String jsonString)Create an instance of StoredValueVoidResponse given an JSON stringAmountgetCurrentBalance()Get currentBalanceMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPspReference()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.StoredValueVoidResponse.ResultCodeEnumgetResultCode()The result of the payment.StringgetThirdPartyRefusalReason()Raw refusal reason received from the third party, where availableinthashCode()StoredValueVoidResponseincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.StoredValueVoidResponsepspReference(String pspReference)Adyen's 16-character string reference associated with the transaction/request.StoredValueVoidResponserefusalReason(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.StoredValueVoidResponseresultCode(StoredValueVoidResponse.ResultCodeEnum resultCode)The result of the payment.voidsetCurrentBalance(Amount currentBalance)currentBalancevoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPspReference(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(StoredValueVoidResponse.ResultCodeEnum resultCode)The result of the payment.voidsetThirdPartyRefusalReason(String thirdPartyRefusalReason)Raw refusal reason received from the third party, where availableStoredValueVoidResponsethirdPartyRefusalReason(String thirdPartyRefusalReason)Raw refusal reason received from the third party, where availableStringtoJson()Convert an instance of StoredValueVoidResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
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
-
currentBalance
public StoredValueVoidResponse currentBalance(Amount currentBalance)
currentBalance- Parameters:
currentBalance-- Returns:
- the current
StoredValueVoidResponseinstance, allowing for method chaining
-
getCurrentBalance
public Amount getCurrentBalance()
Get currentBalance- Returns:
- currentBalance
-
setCurrentBalance
public void setCurrentBalance(Amount currentBalance)
currentBalance- Parameters:
currentBalance-
-
pspReference
public StoredValueVoidResponse 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- 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:
- the current
StoredValueVoidResponseinstance, 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 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.
-
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- 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.
-
refusalReason
public StoredValueVoidResponse 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- 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:
- the current
StoredValueVoidResponseinstance, 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 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.
-
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- 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.
-
resultCode
public StoredValueVoidResponse resultCode(StoredValueVoidResponse.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- 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:
- the current
StoredValueVoidResponseinstance, allowing for method chaining
-
getResultCode
public StoredValueVoidResponse.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 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.
-
setResultCode
public void setResultCode(StoredValueVoidResponse.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- 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.
-
thirdPartyRefusalReason
public StoredValueVoidResponse thirdPartyRefusalReason(String thirdPartyRefusalReason)
Raw refusal reason received from the third party, where available- Parameters:
thirdPartyRefusalReason- Raw refusal reason received from the third party, where available- Returns:
- the current
StoredValueVoidResponseinstance, allowing for method chaining
-
getThirdPartyRefusalReason
public String getThirdPartyRefusalReason()
Raw refusal reason received from the third party, where available- Returns:
- thirdPartyRefusalReason Raw refusal reason received from the third party, where available
-
setThirdPartyRefusalReason
public void setThirdPartyRefusalReason(String thirdPartyRefusalReason)
Raw refusal reason received from the third party, where available- Parameters:
thirdPartyRefusalReason- Raw refusal reason received from the third party, where available
-
includeNullValues
public StoredValueVoidResponse includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this StoredValueVoidResponse object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static StoredValueVoidResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of StoredValueVoidResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StoredValueVoidResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to StoredValueVoidResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of StoredValueVoidResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-