Record Class AccountLedgerPointDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.AccountLedgerPointDTO
Record Components:
occurredAt - timestamp of the exact or last aggregated activity
sequenceNumber - sequence number of the exact or last aggregated activity
periodStart - inclusive local period start
periodEnd - exclusive local period end
previousBalance - balance before the first activity
amountChanged - total account balance change
newBalance - balance after the final activity
activityCount - total activities represented
matchingActivityCount - activities matching the selected type
matchingAmountChanged - signed matching activity total
matchesFilter - whether the point contains a matching activity
pendingRealizedAmount - realized partial-close result not yet included in the ledger
balanceIncludingPending - ledger balance plus pending realized partial closes
pendingPositionCount - partially closed positions contributing to the pending result
pendingPositions - contributing partially closed positions
description - optional exact activity description
externalReference - optional exact activity reference
activities - activity breakdown

public record AccountLedgerPointDTO(LocalDateTime occurredAt, int sequenceNumber, LocalDate periodStart, LocalDate periodEnd, double previousBalance, double amountChanged, double newBalance, int activityCount, int matchingActivityCount, double matchingAmountChanged, boolean matchesFilter, double pendingRealizedAmount, double balanceIncludingPending, int pendingPositionCount, List<AccountLedgerPendingPositionDTO> pendingPositions, String description, String externalReference, List<AccountLedgerActivityBreakdownDTO> activities) extends Record
One exact or aggregated account-ledger chart point.
Version:
3.0.1
Author:
Stephen Prizio
  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • occurredAt

      public LocalDateTime occurredAt()
      Returns the value of the occurredAt record component.
      Returns:
      the value of the occurredAt record component
    • sequenceNumber

      public int sequenceNumber()
      Returns the value of the sequenceNumber record component.
      Returns:
      the value of the sequenceNumber record component
    • periodStart

      public LocalDate periodStart()
      Returns the value of the periodStart record component.
      Returns:
      the value of the periodStart record component
    • periodEnd

      public LocalDate periodEnd()
      Returns the value of the periodEnd record component.
      Returns:
      the value of the periodEnd record component
    • previousBalance

      public double previousBalance()
      Returns the value of the previousBalance record component.
      Returns:
      the value of the previousBalance record component
    • amountChanged

      public double amountChanged()
      Returns the value of the amountChanged record component.
      Returns:
      the value of the amountChanged record component
    • newBalance

      public double newBalance()
      Returns the value of the newBalance record component.
      Returns:
      the value of the newBalance record component
    • activityCount

      public int activityCount()
      Returns the value of the activityCount record component.
      Returns:
      the value of the activityCount record component
    • matchingActivityCount

      public int matchingActivityCount()
      Returns the value of the matchingActivityCount record component.
      Returns:
      the value of the matchingActivityCount record component
    • matchingAmountChanged

      public double matchingAmountChanged()
      Returns the value of the matchingAmountChanged record component.
      Returns:
      the value of the matchingAmountChanged record component
    • matchesFilter

      public boolean matchesFilter()
      Returns the value of the matchesFilter record component.
      Returns:
      the value of the matchesFilter record component
    • pendingRealizedAmount

      public double pendingRealizedAmount()
      Returns the value of the pendingRealizedAmount record component.
      Returns:
      the value of the pendingRealizedAmount record component
    • balanceIncludingPending

      public double balanceIncludingPending()
      Returns the value of the balanceIncludingPending record component.
      Returns:
      the value of the balanceIncludingPending record component
    • pendingPositionCount

      public int pendingPositionCount()
      Returns the value of the pendingPositionCount record component.
      Returns:
      the value of the pendingPositionCount record component
    • pendingPositions

      public List<AccountLedgerPendingPositionDTO> pendingPositions()
      Returns the value of the pendingPositions record component.
      Returns:
      the value of the pendingPositions record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • externalReference

      public String externalReference()
      Returns the value of the externalReference record component.
      Returns:
      the value of the externalReference record component
    • activities

      Returns the value of the activities record component.
      Returns:
      the value of the activities record component