Class PaymentTotals


  • public class PaymentTotals
    extends Object
    Totals of the payment transaction during the reconciliation period.
    • Constructor Detail

      • PaymentTotals

        public PaymentTotals()
    • Method Detail

      • transactionType

        public PaymentTotals transactionType​(TransactionType transactionType)
        transactionType
        Parameters:
        transactionType -
        Returns:
        the current PaymentTotals instance, 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 PaymentTotals instance, 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 PaymentTotals instance, 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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