Package com.adyen.model.balanceplatform
Class Balance
- java.lang.Object
-
- com.adyen.model.balanceplatform.Balance
-
public class Balance extends Object
Balance
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AVAILABLEstatic StringJSON_PROPERTY_BALANCEstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_PENDINGstatic StringJSON_PROPERTY_RESERVED
-
Constructor Summary
Constructors Constructor Description Balance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Balanceavailable(Long available)The balance available for use.Balancebalance(Long balance)The sum of the transactions that have already been settled.Balancecurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.booleanequals(Object o)Return true if this Balance object is equal to o.static BalancefromJson(String jsonString)Create an instance of Balance given an JSON stringLonggetAvailable()The balance available for use.LonggetBalance()The sum of the transactions that have already been settled.StringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.LonggetPending()The sum of the transactions that will be settled in the future.LonggetReserved()The balance currently held in reserve.inthashCode()Balancepending(Long pending)The sum of the transactions that will be settled in the future.Balancereserved(Long reserved)The balance currently held in reserve.voidsetAvailable(Long available)The balance available for use.voidsetBalance(Long balance)The sum of the transactions that have already been settled.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.voidsetPending(Long pending)The sum of the transactions that will be settled in the future.voidsetReserved(Long reserved)The balance currently held in reserve.StringtoJson()Convert an instance of Balance 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_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- 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 Balance available(Long available)
The balance available for use.- Parameters:
available-- Returns:
- the current
Balanceinstance, allowing for method chaining
-
getAvailable
public Long getAvailable()
The balance available for use.- Returns:
- available
-
setAvailable
public void setAvailable(Long available)
The balance available for use.- Parameters:
available-
-
balance
public Balance balance(Long balance)
The sum of the transactions that have already been settled.- Parameters:
balance-- Returns:
- the current
Balanceinstance, allowing for method chaining
-
getBalance
public Long getBalance()
The sum of the transactions that have already been settled.- Returns:
- balance
-
setBalance
public void setBalance(Long balance)
The sum of the transactions that have already been settled.- Parameters:
balance-
-
currency
public Balance currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Parameters:
currency-- Returns:
- the current
Balanceinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Returns:
- currency
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) of the balance.- Parameters:
currency-
-
pending
public Balance pending(Long pending)
The sum of the transactions that will be settled in the future.- Parameters:
pending-- Returns:
- the current
Balanceinstance, allowing for method chaining
-
getPending
public Long getPending()
The sum of the transactions that will be settled in the future.- Returns:
- pending
-
setPending
public void setPending(Long pending)
The sum of the transactions that will be settled in the future.- Parameters:
pending-
-
reserved
public Balance reserved(Long reserved)
The balance currently held in reserve.- Parameters:
reserved-- Returns:
- the current
Balanceinstance, allowing for method chaining
-
getReserved
public Long getReserved()
The balance currently held in reserve.- Returns:
- reserved
-
setReserved
public void setReserved(Long reserved)
The balance currently held in reserve.- Parameters:
reserved-
-
equals
public boolean equals(Object o)
Return true if this Balance object is equal to o.
-
fromJson
public static Balance fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Balance given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Balance
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Balance
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Balance to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-