Class AccountHolderStoreStatusChangeNotificationContent
- java.lang.Object
-
- com.adyen.model.marketpaywebhooks.AccountHolderStoreStatusChangeNotificationContent
-
public class AccountHolderStoreStatusChangeNotificationContent extends Object
AccountHolderStoreStatusChangeNotificationContent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccountHolderStoreStatusChangeNotificationContent.NewStatusEnumThe new status of the account holder.static classAccountHolderStoreStatusChangeNotificationContent.OldStatusEnumThe former status of the account holder.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ACCOUNT_HOLDER_CODEstatic StringJSON_PROPERTY_INVALID_FIELDSstatic StringJSON_PROPERTY_NEW_STATUSstatic StringJSON_PROPERTY_OLD_STATUSstatic StringJSON_PROPERTY_REASONstatic StringJSON_PROPERTY_STOREstatic StringJSON_PROPERTY_STORE_REFERENCE
-
Constructor Summary
Constructors Constructor Description AccountHolderStoreStatusChangeNotificationContent()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_ACCOUNT_HOLDER_CODE
public static final String JSON_PROPERTY_ACCOUNT_HOLDER_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_NEW_STATUS
public static final String JSON_PROPERTY_NEW_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OLD_STATUS
public static final String JSON_PROPERTY_OLD_STATUS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_REASON
public static final String JSON_PROPERTY_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE
public static final String JSON_PROPERTY_STORE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STORE_REFERENCE
public static final String JSON_PROPERTY_STORE_REFERENCE
- See Also:
- Constant Field Values
-
-
Method Detail
-
accountHolderCode
public AccountHolderStoreStatusChangeNotificationContent accountHolderCode(String accountHolderCode)
-
getAccountHolderCode
public String getAccountHolderCode()
The code of the account holder.- Returns:
- accountHolderCode
-
setAccountHolderCode
public void setAccountHolderCode(String accountHolderCode)
-
invalidFields
public AccountHolderStoreStatusChangeNotificationContent invalidFields(List<ErrorFieldType> invalidFields)
-
addInvalidFieldsItem
public AccountHolderStoreStatusChangeNotificationContent addInvalidFieldsItem(ErrorFieldType invalidFieldsItem)
-
getInvalidFields
public List<ErrorFieldType> getInvalidFields()
In case the store status has not been updated, contains fields that did not pass the validation.- Returns:
- invalidFields
-
setInvalidFields
public void setInvalidFields(List<ErrorFieldType> invalidFields)
-
newStatus
public AccountHolderStoreStatusChangeNotificationContent newStatus(AccountHolderStoreStatusChangeNotificationContent.NewStatusEnum newStatus)
-
getNewStatus
public AccountHolderStoreStatusChangeNotificationContent.NewStatusEnum getNewStatus()
The new status of the account holder.- Returns:
- newStatus
-
setNewStatus
public void setNewStatus(AccountHolderStoreStatusChangeNotificationContent.NewStatusEnum newStatus)
-
oldStatus
public AccountHolderStoreStatusChangeNotificationContent oldStatus(AccountHolderStoreStatusChangeNotificationContent.OldStatusEnum oldStatus)
-
getOldStatus
public AccountHolderStoreStatusChangeNotificationContent.OldStatusEnum getOldStatus()
The former status of the account holder.- Returns:
- oldStatus
-
setOldStatus
public void setOldStatus(AccountHolderStoreStatusChangeNotificationContent.OldStatusEnum oldStatus)
-
reason
public AccountHolderStoreStatusChangeNotificationContent reason(String reason)
-
getReason
public String getReason()
The reason for the status change.- Returns:
- reason
-
setReason
public void setReason(String reason)
-
store
public AccountHolderStoreStatusChangeNotificationContent store(String store)
-
getStore
public String getStore()
Alphanumeric identifier of the store.- Returns:
- store
-
setStore
public void setStore(String store)
-
storeReference
public AccountHolderStoreStatusChangeNotificationContent storeReference(String storeReference)
-
getStoreReference
public String getStoreReference()
Store store reference.- Returns:
- storeReference
-
setStoreReference
public void setStoreReference(String storeReference)
-
equals
public boolean equals(Object o)
Return true if this AccountHolderStoreStatusChangeNotificationContent object is equal to o.
-
fromJson
public static AccountHolderStoreStatusChangeNotificationContent fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountHolderStoreStatusChangeNotificationContent given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountHolderStoreStatusChangeNotificationContent
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountHolderStoreStatusChangeNotificationContent
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountHolderStoreStatusChangeNotificationContent to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-