Package com.adyen.model.balanceplatform
Class CapitalBalance
- java.lang.Object
-
- com.adyen.model.balanceplatform.CapitalBalance
-
public class CapitalBalance extends Object
CapitalBalance
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_FEEstatic StringJSON_PROPERTY_PRINCIPALstatic StringJSON_PROPERTY_TOTAL
-
Constructor Summary
Constructors Constructor Description CapitalBalance()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CapitalBalancecurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).booleanequals(Object o)Return true if this CapitalBalance object is equal to o.CapitalBalancefee(Long fee)Fee amount.static CapitalBalancefromJson(String jsonString)Create an instance of CapitalBalance given an JSON stringStringgetCurrency()The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).Map<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.LonggetFee()Fee amount.LonggetPrincipal()Principal amount.LonggetTotal()Total amount.inthashCode()CapitalBalanceincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.CapitalBalanceprincipal(Long principal)Principal amount.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).voidsetFee(Long fee)Fee amount.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPrincipal(Long principal)Principal amount.voidsetTotal(Long total)Total amount.StringtoJson()Convert an instance of CapitalBalance to an JSON stringStringtoString()CapitalBalancetotal(Long total)Total amount.
-
-
-
Field Detail
-
JSON_PROPERTY_CURRENCY
public static final String JSON_PROPERTY_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FEE
public static final String JSON_PROPERTY_FEE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PRINCIPAL
public static final String JSON_PROPERTY_PRINCIPAL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TOTAL
public static final String JSON_PROPERTY_TOTAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
currency
public CapitalBalance currency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- the current
CapitalBalanceinstance, allowing for method chaining
-
getCurrency
public String getCurrency()
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Returns:
- currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
-
setCurrency
public void setCurrency(String currency)
The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).- Parameters:
currency- The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
-
fee
public CapitalBalance fee(Long fee)
Fee amount.- Parameters:
fee- Fee amount.- Returns:
- the current
CapitalBalanceinstance, allowing for method chaining
-
getFee
public Long getFee()
Fee amount.- Returns:
- fee Fee amount.
-
setFee
public void setFee(Long fee)
Fee amount.- Parameters:
fee- Fee amount.
-
principal
public CapitalBalance principal(Long principal)
Principal amount.- Parameters:
principal- Principal amount.- Returns:
- the current
CapitalBalanceinstance, allowing for method chaining
-
getPrincipal
public Long getPrincipal()
Principal amount.- Returns:
- principal Principal amount.
-
setPrincipal
public void setPrincipal(Long principal)
Principal amount.- Parameters:
principal- Principal amount.
-
total
public CapitalBalance total(Long total)
Total amount. A sum of principal amount and fee amount.- Parameters:
total- Total amount. A sum of principal amount and fee amount.- Returns:
- the current
CapitalBalanceinstance, allowing for method chaining
-
getTotal
public Long getTotal()
Total amount. A sum of principal amount and fee amount.- Returns:
- total Total amount. A sum of principal amount and fee amount.
-
setTotal
public void setTotal(Long total)
Total amount. A sum of principal amount and fee amount.- Parameters:
total- Total amount. A sum of principal amount and fee amount.
-
includeNullValues
public CapitalBalance includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this CapitalBalance object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
fromJson
public static CapitalBalance fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CapitalBalance given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CapitalBalance
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CapitalBalance
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CapitalBalance to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-