Record Class PontesPaymentClaim

java.lang.Object
java.lang.Record
net.finmath.pontes.erc7573.PontesPaymentClaim
All Implemented Interfaces:
Serializable

public record PontesPaymentClaim(PontesPaymentClaimIdentity identity, long version, PontesPaymentClaimState state, PontesRawHttpResponse response, List<PontesRawHttpResponse> rawPaymentPostResponses, String lastError, List<PontesPaymentClaimAction> operatorActions, Instant updatedAt) extends Record implements Serializable
Versioned durable record that prevents duplicate payment POSTs across bridge-event jobs.
See Also:
  • Constructor Details

    • PontesPaymentClaim

      public PontesPaymentClaim(PontesPaymentClaimIdentity identity, long version, PontesPaymentClaimState state, PontesRawHttpResponse response, List<PontesRawHttpResponse> rawPaymentPostResponses, String lastError, List<PontesPaymentClaimAction> operatorActions, Instant updatedAt)
      Creates an instance of a PontesPaymentClaim record class.
      Parameters:
      identity - the value for the identity record component
      version - the value for the version record component
      state - the value for the state record component
      response - the value for the response record component
      rawPaymentPostResponses - the value for the rawPaymentPostResponses record component
      lastError - the value for the lastError record component
      operatorActions - the value for the operatorActions record component
      updatedAt - the value for the updatedAt record component
  • Method Details

    • initial

      public static PontesPaymentClaim initial(PontesPaymentClaimIdentity identity, PontesPaymentClaimState state, PontesRawHttpResponse response, String error)
    • 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 '=='.
      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.
    • identity

      public PontesPaymentClaimIdentity identity()
      Returns the value of the identity record component.
      Returns:
      the value of the identity record component
    • version

      public long version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • state

      public PontesPaymentClaimState state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • response

      public PontesRawHttpResponse response()
      Returns the value of the response record component.
      Returns:
      the value of the response record component
    • rawPaymentPostResponses

      public List<PontesRawHttpResponse> rawPaymentPostResponses()
      Returns the value of the rawPaymentPostResponses record component.
      Returns:
      the value of the rawPaymentPostResponses record component
    • lastError

      public String lastError()
      Returns the value of the lastError record component.
      Returns:
      the value of the lastError record component
    • operatorActions

      public List<PontesPaymentClaimAction> operatorActions()
      Returns the value of the operatorActions record component.
      Returns:
      the value of the operatorActions record component
    • updatedAt

      public Instant updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component