Record Class PontesDirectPaymentRequest

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

public record PontesDirectPaymentRequest(BigInteger chainId, String router, String requestId, String product, String payer, String payee, BigInteger amount, int amountScale, String agent, String payerBic, String payeeBic) extends Record implements Serializable
An observed payment-contract request bound to frozen bank identities and the exact EUR amount. The persisted v1 journal field names router and product are retained for replay compatibility; they mean the payment-contract address and generic requester respectively.
See Also:
  • Constructor Details

    • PontesDirectPaymentRequest

      public PontesDirectPaymentRequest(BigInteger chainId, String router, String requestId, String product, String payer, String payee, BigInteger amount, int amountScale, String agent, String payerBic, String payeeBic)
      Creates an instance of a PontesDirectPaymentRequest record class.
      Parameters:
      chainId - the value for the chainId record component
      router - the value for the router record component
      requestId - the value for the requestId record component
      product - the value for the product record component
      payer - the value for the payer record component
      payee - the value for the payee record component
      amount - the value for the amount record component
      amountScale - the value for the amountScale record component
      agent - the value for the agent record component
      payerBic - the value for the payerBic record component
      payeeBic - the value for the payeeBic record component
  • Method Details

    • paymentId

      public UUID paymentId()
      Stable across event replay/restart; the versioned namespace separates this from XvP.
    • correlationId

      public String correlationId()
    • pontesAmount

      public String pontesAmount()
    • 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.
    • chainId

      public BigInteger chainId()
      Returns the value of the chainId record component.
      Returns:
      the value of the chainId record component
    • router

      public String router()
      Returns the value of the router record component.
      Returns:
      the value of the router record component
    • requestId

      public String requestId()
      Returns the value of the requestId record component.
      Returns:
      the value of the requestId record component
    • product

      public String product()
      Returns the value of the product record component.
      Returns:
      the value of the product record component
    • payer

      public String payer()
      Returns the value of the payer record component.
      Returns:
      the value of the payer record component
    • payee

      public String payee()
      Returns the value of the payee record component.
      Returns:
      the value of the payee record component
    • amount

      public BigInteger amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component
    • amountScale

      public int amountScale()
      Returns the value of the amountScale record component.
      Returns:
      the value of the amountScale record component
    • agent

      public String agent()
      Returns the value of the agent record component.
      Returns:
      the value of the agent record component
    • payerBic

      public String payerBic()
      Returns the value of the payerBic record component.
      Returns:
      the value of the payerBic record component
    • payeeBic

      public String payeeBic()
      Returns the value of the payeeBic record component.
      Returns:
      the value of the payeeBic record component