Class CloseAccountResponse
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.CloseAccountResponse
-
public class CloseAccountResponse extends Object
CloseAccountResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloseAccountResponse.StatusEnumThe new status of the account.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_CODEstatic StringJSON_PROPERTY_INVALID_FIELDSstatic StringJSON_PROPERTY_PSP_REFERENCEstatic StringJSON_PROPERTY_RESULT_CODEstatic StringJSON_PROPERTY_STATUS
-
Constructor Summary
Constructors Constructor Description CloseAccountResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseAccountResponseaccountCode(String accountCode)CloseAccountResponseaddInvalidFieldsItem(ErrorFieldType invalidFieldsItem)booleanequals(Object o)Return true if this CloseAccountResponse object is equal to o.static CloseAccountResponsefromJson(String jsonString)Create an instance of CloseAccountResponse given an JSON stringStringgetAccountCode()The account code of the account that is closed.List<ErrorFieldType>getInvalidFields()Contains field validation errors that would prevent requests from being processed.StringgetPspReference()The reference of a request.StringgetResultCode()The result code.CloseAccountResponse.StatusEnumgetStatus()The new status of the account.inthashCode()CloseAccountResponseinvalidFields(List<ErrorFieldType> invalidFields)CloseAccountResponsepspReference(String pspReference)CloseAccountResponseresultCode(String resultCode)voidsetAccountCode(String accountCode)voidsetInvalidFields(List<ErrorFieldType> invalidFields)voidsetPspReference(String pspReference)voidsetResultCode(String resultCode)voidsetStatus(CloseAccountResponse.StatusEnum status)CloseAccountResponsestatus(CloseAccountResponse.StatusEnum status)StringtoJson()Convert an instance of CloseAccountResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_CODE
public static final String JSON_PROPERTY_ACCOUNT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INVALID_FIELDS
public static final String JSON_PROPERTY_INVALID_FIELDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PSP_REFERENCE
public static final String JSON_PROPERTY_PSP_REFERENCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESULT_CODE
public static final String JSON_PROPERTY_RESULT_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STATUS
public static final String JSON_PROPERTY_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountCode
public CloseAccountResponse accountCode(String accountCode)
-
getAccountCode
public String getAccountCode()
The account code of the account that is closed.- Returns:
- accountCode
-
setAccountCode
public void setAccountCode(String accountCode)
-
invalidFields
public CloseAccountResponse invalidFields(List<ErrorFieldType> invalidFields)
-
addInvalidFieldsItem
public CloseAccountResponse addInvalidFieldsItem(ErrorFieldType invalidFieldsItem)
-
getInvalidFields
public List<ErrorFieldType> getInvalidFields()
Contains field validation errors that would prevent requests from being processed.- Returns:
- invalidFields
-
setInvalidFields
public void setInvalidFields(List<ErrorFieldType> invalidFields)
-
pspReference
public CloseAccountResponse pspReference(String pspReference)
-
getPspReference
public String getPspReference()
The reference of a request. Can be used to uniquely identify the request.- Returns:
- pspReference
-
setPspReference
public void setPspReference(String pspReference)
-
resultCode
public CloseAccountResponse resultCode(String resultCode)
-
getResultCode
public String getResultCode()
The result code.- Returns:
- resultCode
-
setResultCode
public void setResultCode(String resultCode)
-
status
public CloseAccountResponse status(CloseAccountResponse.StatusEnum status)
-
getStatus
public CloseAccountResponse.StatusEnum getStatus()
The new status of the account. >Permitted values: `Active`, `Inactive`, `Suspended`, `Closed`.- Returns:
- status
-
setStatus
public void setStatus(CloseAccountResponse.StatusEnum status)
-
equals
public boolean equals(Object o)
Return true if this CloseAccountResponse object is equal to o.
-
fromJson
public static CloseAccountResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CloseAccountResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CloseAccountResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CloseAccountResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CloseAccountResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-