Package com.adyen.model.balanceplatform
Class Condition
- java.lang.Object
-
- com.adyen.model.balanceplatform.Condition
-
public class Condition extends Object
Condition
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCondition.BalanceTypeEnumDefine the type of balance about which you want to get notified.static classCondition.ConditionTypeEnumDefine when you want to get notified about a balance change.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCE_TYPEstatic StringJSON_PROPERTY_CONDITION_TYPEstatic StringJSON_PROPERTY_VALUE
-
Constructor Summary
Constructors Constructor Description Condition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionbalanceType(Condition.BalanceTypeEnum balanceType)Define the type of balance about which you want to get notified.ConditionconditionType(Condition.ConditionTypeEnum conditionType)Define when you want to get notified about a balance change.booleanequals(Object o)Return true if this Condition object is equal to o.static ConditionfromJson(String jsonString)Create an instance of Condition given an JSON stringCondition.BalanceTypeEnumgetBalanceType()Define the type of balance about which you want to get notified.Condition.ConditionTypeEnumgetConditionType()Define when you want to get notified about a balance change.LonggetValue()The value limit in the specified balance type and currency, in minor units.inthashCode()voidsetBalanceType(Condition.BalanceTypeEnum balanceType)Define the type of balance about which you want to get notified.voidsetConditionType(Condition.ConditionTypeEnum conditionType)Define when you want to get notified about a balance change.voidsetValue(Long value)The value limit in the specified balance type and currency, in minor units.StringtoJson()Convert an instance of Condition to an JSON stringStringtoString()Conditionvalue(Long value)The value limit in the specified balance type and currency, in minor units.
-
-
-
Field Detail
-
JSON_PROPERTY_BALANCE_TYPE
public static final String JSON_PROPERTY_BALANCE_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONDITION_TYPE
public static final String JSON_PROPERTY_CONDITION_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_VALUE
public static final String JSON_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
balanceType
public Condition balanceType(Condition.BalanceTypeEnum balanceType)
Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve.- Parameters:
balanceType- Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve.- Returns:
- the current
Conditioninstance, allowing for method chaining
-
getBalanceType
public Condition.BalanceTypeEnum getBalanceType()
Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve.- Returns:
- balanceType Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve.
-
setBalanceType
public void setBalanceType(Condition.BalanceTypeEnum balanceType)
Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve.- Parameters:
balanceType- Define the type of balance about which you want to get notified. Possible values: * **available**: the balance available for use. * **balance**: the sum of transactions that have already been settled. * **pending**: the sum of transactions that will be settled in the future. * **reserved**: the balance currently held in reserve.
-
conditionType
public Condition conditionType(Condition.ConditionTypeEnum conditionType)
Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.- Parameters:
conditionType- Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.- Returns:
- the current
Conditioninstance, allowing for method chaining
-
getConditionType
public Condition.ConditionTypeEnum getConditionType()
Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.- Returns:
- conditionType Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.
-
setConditionType
public void setConditionType(Condition.ConditionTypeEnum conditionType)
Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.- Parameters:
conditionType- Define when you want to get notified about a balance change. Possible values: * **greaterThan**: the balance in the account(s) exceeds the specified `value`. * **greaterThanOrEqual**: the balance in the account(s) reaches or exceeds the specified `value`. * **lessThan**: the balance in the account(s) drops below the specified `value`. * **lessThanOrEqual**: the balance in the account(s) reaches to drops below the specified `value`.
-
value
public Condition value(Long value)
The value limit in the specified balance type and currency, in minor units.- Parameters:
value- The value limit in the specified balance type and currency, in minor units.- Returns:
- the current
Conditioninstance, allowing for method chaining
-
getValue
public Long getValue()
The value limit in the specified balance type and currency, in minor units.- Returns:
- value The value limit in the specified balance type and currency, in minor units.
-
setValue
public void setValue(Long value)
The value limit in the specified balance type and currency, in minor units.- Parameters:
value- The value limit in the specified balance type and currency, in minor units.
-
equals
public boolean equals(Object o)
Return true if this Condition object is equal to o.
-
fromJson
public static Condition fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Condition given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Condition
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Condition
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Condition to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-