Package com.adyen.model.marketpayaccount
Class AccountPayoutState
- java.lang.Object
-
- com.adyen.model.marketpayaccount.AccountPayoutState
-
public class AccountPayoutState extends Object
AccountPayoutState
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_ALLOW_PAYOUTstatic StringJSON_PROPERTY_DISABLE_REASONstatic StringJSON_PROPERTY_DISABLEDstatic StringJSON_PROPERTY_NOT_ALLOWED_REASONstatic StringJSON_PROPERTY_PAYOUT_LIMITstatic StringJSON_PROPERTY_TIER_NUMBER
-
Constructor Summary
Constructors Constructor Description AccountPayoutState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountPayoutStateallowPayout(Boolean allowPayout)AccountPayoutStatedisabled(Boolean disabled)AccountPayoutStatedisableReason(String disableReason)booleanequals(Object o)Return true if this AccountPayoutState object is equal to o.static AccountPayoutStatefromJson(String jsonString)Create an instance of AccountPayoutState given an JSON stringBooleangetAllowPayout()Indicates whether payouts are allowed.BooleangetDisabled()Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts.StringgetDisableReason()The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform).StringgetNotAllowedReason()The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen).AmountgetPayoutLimit()Get payoutLimitIntegergetTierNumber()The payout tier that the account holder occupies.inthashCode()AccountPayoutStatenotAllowedReason(String notAllowedReason)AccountPayoutStatepayoutLimit(Amount payoutLimit)voidsetAllowPayout(Boolean allowPayout)voidsetDisabled(Boolean disabled)voidsetDisableReason(String disableReason)voidsetNotAllowedReason(String notAllowedReason)voidsetPayoutLimit(Amount payoutLimit)voidsetTierNumber(Integer tierNumber)AccountPayoutStatetierNumber(Integer tierNumber)StringtoJson()Convert an instance of AccountPayoutState to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_ALLOW_PAYOUT
public static final String JSON_PROPERTY_ALLOW_PAYOUT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISABLE_REASON
public static final String JSON_PROPERTY_DISABLE_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DISABLED
public static final String JSON_PROPERTY_DISABLED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NOT_ALLOWED_REASON
public static final String JSON_PROPERTY_NOT_ALLOWED_REASON
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYOUT_LIMIT
public static final String JSON_PROPERTY_PAYOUT_LIMIT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIER_NUMBER
public static final String JSON_PROPERTY_TIER_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
allowPayout
public AccountPayoutState allowPayout(Boolean allowPayout)
-
getAllowPayout
public Boolean getAllowPayout()
Indicates whether payouts are allowed. This field is the overarching payout status, and is the aggregate of multiple conditions (e.g., KYC status, disabled flag, etc). If this field is false, no payouts will be permitted for any of the account holder's accounts. If this field is true, payouts will be permitted for any of the account holder's accounts.- Returns:
- allowPayout
-
setAllowPayout
public void setAllowPayout(Boolean allowPayout)
-
disableReason
public AccountPayoutState disableReason(String disableReason)
-
getDisableReason
public String getDisableReason()
The reason why payouts (to all of the account holder's accounts) have been disabled (by the platform). If the `disabled` field is true, this field can be used to explain why.- Returns:
- disableReason
-
setDisableReason
public void setDisableReason(String disableReason)
-
disabled
public AccountPayoutState disabled(Boolean disabled)
-
getDisabled
public Boolean getDisabled()
Indicates whether payouts have been disabled (by the platform) for all of the account holder's accounts. A platform may enable and disable this field at their discretion. If this field is true, `allowPayout` will be false and no payouts will be permitted for any of the account holder's accounts. If this field is false, `allowPayout` may or may not be enabled, depending on other factors.- Returns:
- disabled
-
setDisabled
public void setDisabled(Boolean disabled)
-
notAllowedReason
public AccountPayoutState notAllowedReason(String notAllowedReason)
-
getNotAllowedReason
public String getNotAllowedReason()
The reason why payouts (to all of the account holder's accounts) have been disabled (by Adyen). If payouts have been disabled by Adyen, this field will explain why. If this field is blank, payouts have not been disabled by Adyen.- Returns:
- notAllowedReason
-
setNotAllowedReason
public void setNotAllowedReason(String notAllowedReason)
-
payoutLimit
public AccountPayoutState payoutLimit(Amount payoutLimit)
-
getPayoutLimit
public Amount getPayoutLimit()
Get payoutLimit- Returns:
- payoutLimit
-
setPayoutLimit
public void setPayoutLimit(Amount payoutLimit)
-
tierNumber
public AccountPayoutState tierNumber(Integer tierNumber)
-
getTierNumber
public Integer getTierNumber()
The payout tier that the account holder occupies.- Returns:
- tierNumber
-
setTierNumber
public void setTierNumber(Integer tierNumber)
-
equals
public boolean equals(Object o)
Return true if this AccountPayoutState object is equal to o.
-
fromJson
public static AccountPayoutState fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of AccountPayoutState given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AccountPayoutState
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to AccountPayoutState
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of AccountPayoutState to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-