Package com.adyen.model.balancewebhooks
Class Balances
- java.lang.Object
-
- com.adyen.model.balancewebhooks.Balances
-
public class Balances extends Object
Balances
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AVAILABLEstatic StringJSON_PROPERTY_BALANCEstatic StringJSON_PROPERTY_PENDINGstatic StringJSON_PROPERTY_RESERVED
-
Constructor Summary
Constructors Constructor Description Balances()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Balancesavailable(Long available)The balance that is available for use.Balancesbalance(Long balance)The sum of transactions that have already been settled.booleanequals(Object o)Return true if this Balances object is equal to o.static BalancesfromJson(String jsonString)Create an instance of Balances given an JSON stringLonggetAvailable()The balance that is available for use.LonggetBalance()The sum of transactions that have already been settled.LonggetPending()The sum of transactions that will be settled in the future.LonggetReserved()The balance currently held in reserve.inthashCode()Balancespending(Long pending)The sum of transactions that will be settled in the future.Balancesreserved(Long reserved)The balance currently held in reserve.voidsetAvailable(Long available)The balance that is available for use.voidsetBalance(Long balance)The sum of transactions that have already been settled.voidsetPending(Long pending)The sum of transactions that will be settled in the future.voidsetReserved(Long reserved)The balance currently held in reserve.StringtoJson()Convert an instance of Balances to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AVAILABLE
public static final String JSON_PROPERTY_AVAILABLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BALANCE
public static final String JSON_PROPERTY_BALANCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PENDING
public static final String JSON_PROPERTY_PENDING
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESERVED
public static final String JSON_PROPERTY_RESERVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
available
public Balances available(Long available)
The balance that is available for use.- Parameters:
available- The balance that is available for use.- Returns:
- the current
Balancesinstance, allowing for method chaining
-
getAvailable
public Long getAvailable()
The balance that is available for use.- Returns:
- available The balance that is available for use.
-
setAvailable
public void setAvailable(Long available)
The balance that is available for use.- Parameters:
available- The balance that is available for use.
-
balance
public Balances balance(Long balance)
The sum of transactions that have already been settled.- Parameters:
balance- The sum of transactions that have already been settled.- Returns:
- the current
Balancesinstance, allowing for method chaining
-
getBalance
public Long getBalance()
The sum of transactions that have already been settled.- Returns:
- balance The sum of transactions that have already been settled.
-
setBalance
public void setBalance(Long balance)
The sum of transactions that have already been settled.- Parameters:
balance- The sum of transactions that have already been settled.
-
pending
public Balances pending(Long pending)
The sum of transactions that will be settled in the future.- Parameters:
pending- The sum of transactions that will be settled in the future.- Returns:
- the current
Balancesinstance, allowing for method chaining
-
getPending
public Long getPending()
The sum of transactions that will be settled in the future.- Returns:
- pending The sum of transactions that will be settled in the future.
-
setPending
public void setPending(Long pending)
The sum of transactions that will be settled in the future.- Parameters:
pending- The sum of transactions that will be settled in the future.
-
reserved
public Balances reserved(Long reserved)
The balance currently held in reserve.- Parameters:
reserved- The balance currently held in reserve.- Returns:
- the current
Balancesinstance, allowing for method chaining
-
getReserved
public Long getReserved()
The balance currently held in reserve.- Returns:
- reserved The balance currently held in reserve.
-
setReserved
public void setReserved(Long reserved)
The balance currently held in reserve.- Parameters:
reserved- The balance currently held in reserve.
-
equals
public boolean equals(Object o)
Return true if this Balances object is equal to o.
-
fromJson
public static Balances fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Balances given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Balances
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Balances
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Balances to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-