Package com.adyen.model.transfers
Class BalanceMutation
- java.lang.Object
-
- com.adyen.model.transfers.BalanceMutation
-
public class BalanceMutation extends Object
BalanceMutation
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BALANCEstatic StringJSON_PROPERTY_CURRENCYstatic StringJSON_PROPERTY_RECEIVEDstatic StringJSON_PROPERTY_RESERVED
-
Constructor Summary
Constructors Constructor Description BalanceMutation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BalanceMutationbalance(Long balance)The amount in the payment's currency that is debited or credited on the balance accounting register.BalanceMutationcurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).booleanequals(Object o)Return true if this BalanceMutation object is equal to o.static BalanceMutationfromJson(String jsonString)Create an instance of BalanceMutation given an JSON stringLonggetBalance()The amount in the payment's currency that is debited or credited on the balance accounting register.StringgetCurrency()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.LonggetReceived()The amount in the payment's currency that is debited or credited on the received accounting register.LonggetReserved()The amount in the payment's currency that is debited or credited on the reserved accounting register.inthashCode()BalanceMutationincludeNullValues(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.BalanceMutationreceived(Long received)The amount in the payment's currency that is debited or credited on the received accounting register.BalanceMutationreserved(Long reserved)The amount in the payment's currency that is debited or credited on the reserved accounting register.voidsetBalance(Long balance)The amount in the payment's currency that is debited or credited on the balance accounting register.voidsetCurrency(String currency)The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetReceived(Long received)The amount in the payment's currency that is debited or credited on the received accounting register.voidsetReserved(Long reserved)The amount in the payment's currency that is debited or credited on the reserved accounting register.StringtoJson()Convert an instance of BalanceMutation to an JSON stringStringtoString()
-
-
-
Field Detail
-
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_RECEIVED
public static final String JSON_PROPERTY_RECEIVED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_RESERVED
public static final String JSON_PROPERTY_RESERVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
balance
public BalanceMutation balance(Long balance)
The amount in the payment's currency that is debited or credited on the balance accounting register.- Parameters:
balance- The amount in the payment's currency that is debited or credited on the balance accounting register.- Returns:
- the current
BalanceMutationinstance, allowing for method chaining
-
getBalance
public Long getBalance()
The amount in the payment's currency that is debited or credited on the balance accounting register.- Returns:
- balance The amount in the payment's currency that is debited or credited on the balance accounting register.
-
setBalance
public void setBalance(Long balance)
The amount in the payment's currency that is debited or credited on the balance accounting register.- Parameters:
balance- The amount in the payment's currency that is debited or credited on the balance accounting register.
-
currency
public BalanceMutation 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
BalanceMutationinstance, 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).
-
received
public BalanceMutation received(Long received)
The amount in the payment's currency that is debited or credited on the received accounting register.- Parameters:
received- The amount in the payment's currency that is debited or credited on the received accounting register.- Returns:
- the current
BalanceMutationinstance, allowing for method chaining
-
getReceived
public Long getReceived()
The amount in the payment's currency that is debited or credited on the received accounting register.- Returns:
- received The amount in the payment's currency that is debited or credited on the received accounting register.
-
setReceived
public void setReceived(Long received)
The amount in the payment's currency that is debited or credited on the received accounting register.- Parameters:
received- The amount in the payment's currency that is debited or credited on the received accounting register.
-
reserved
public BalanceMutation reserved(Long reserved)
The amount in the payment's currency that is debited or credited on the reserved accounting register.- Parameters:
reserved- The amount in the payment's currency that is debited or credited on the reserved accounting register.- Returns:
- the current
BalanceMutationinstance, allowing for method chaining
-
getReserved
public Long getReserved()
The amount in the payment's currency that is debited or credited on the reserved accounting register.- Returns:
- reserved The amount in the payment's currency that is debited or credited on the reserved accounting register.
-
setReserved
public void setReserved(Long reserved)
The amount in the payment's currency that is debited or credited on the reserved accounting register.- Parameters:
reserved- The amount in the payment's currency that is debited or credited on the reserved accounting register.
-
includeNullValues
public BalanceMutation 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 BalanceMutation 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 BalanceMutation fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of BalanceMutation given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BalanceMutation
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to BalanceMutation
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of BalanceMutation to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-