Package com.adyen.model.tapi
Class PaymentTotals
- java.lang.Object
-
- com.adyen.model.tapi.PaymentTotals
-
public class PaymentTotals extends Object
Totals of the payment transaction during the reconciliation period.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_TRANSACTION_AMOUNTstatic StringJSON_PROPERTY_TRANSACTION_COUNTstatic StringJSON_PROPERTY_TRANSACTION_TYPE
-
Constructor Summary
Constructors Constructor Description PaymentTotals()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this PaymentTotals object is equal to o.static PaymentTotalsfromJson(String jsonString)Create an instance of PaymentTotals given an JSON stringMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.BigDecimalgetTransactionAmount()Sum of amount of processed transaction during the period. minimum: 0.0 maximum: 99999999.999999IntegergetTransactionCount()Number of processed transaction during the period.TransactionTypegetTransactionType()Get transactionTypeinthashCode()PaymentTotalsincludeNullValues(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.voidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetTransactionAmount(BigDecimal transactionAmount)Sum of amount of processed transaction during the period.voidsetTransactionCount(Integer transactionCount)Number of processed transaction during the period.voidsetTransactionType(TransactionType transactionType)transactionTypeStringtoJson()Convert an instance of PaymentTotals to an JSON stringStringtoString()PaymentTotalstransactionAmount(BigDecimal transactionAmount)Sum of amount of processed transaction during the period.PaymentTotalstransactionCount(Integer transactionCount)Number of processed transaction during the period.PaymentTotalstransactionType(TransactionType transactionType)transactionType
-
-
-
Field Detail
-
JSON_PROPERTY_TRANSACTION_TYPE
public static final String JSON_PROPERTY_TRANSACTION_TYPE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_COUNT
public static final String JSON_PROPERTY_TRANSACTION_COUNT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TRANSACTION_AMOUNT
public static final String JSON_PROPERTY_TRANSACTION_AMOUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
transactionType
public PaymentTotals transactionType(TransactionType transactionType)
transactionType- Parameters:
transactionType-- Returns:
- the current
PaymentTotalsinstance, allowing for method chaining
-
getTransactionType
public TransactionType getTransactionType()
Get transactionType- Returns:
- transactionType
-
setTransactionType
public void setTransactionType(TransactionType transactionType)
transactionType- Parameters:
transactionType-
-
transactionCount
public PaymentTotals transactionCount(Integer transactionCount)
Number of processed transaction during the period.- Parameters:
transactionCount- Number of processed transaction during the period.- Returns:
- the current
PaymentTotalsinstance, allowing for method chaining
-
getTransactionCount
public Integer getTransactionCount()
Number of processed transaction during the period.- Returns:
- transactionCount Number of processed transaction during the period.
-
setTransactionCount
public void setTransactionCount(Integer transactionCount)
Number of processed transaction during the period.- Parameters:
transactionCount- Number of processed transaction during the period.
-
transactionAmount
public PaymentTotals transactionAmount(BigDecimal transactionAmount)
Sum of amount of processed transaction during the period.- Parameters:
transactionAmount- Sum of amount of processed transaction during the period.- Returns:
- the current
PaymentTotalsinstance, allowing for method chaining
-
getTransactionAmount
public BigDecimal getTransactionAmount()
Sum of amount of processed transaction during the period. minimum: 0.0 maximum: 99999999.999999- Returns:
- transactionAmount Sum of amount of processed transaction during the period.
-
setTransactionAmount
public void setTransactionAmount(BigDecimal transactionAmount)
Sum of amount of processed transaction during the period.- Parameters:
transactionAmount- Sum of amount of processed transaction during the period.
-
includeNullValues
public PaymentTotals 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 PaymentTotals 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 PaymentTotals fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentTotals given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentTotals
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentTotals
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentTotals to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-