Package net.finmath.pontes.erc7573
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 Summary
ConstructorsConstructorDescriptionPontesDirectPaymentRequest(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 aPontesDirectPaymentRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagent()Returns the value of theagentrecord component.amount()Returns the value of theamountrecord component.intReturns the value of theamountScalerecord component.chainId()Returns the value of thechainIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.payee()Returns the value of thepayeerecord component.payeeBic()Returns the value of thepayeeBicrecord component.payer()Returns the value of thepayerrecord component.payerBic()Returns the value of thepayerBicrecord component.Stable across event replay/restart; the versioned namespace separates this from XvP.product()Returns the value of theproductrecord component.Returns the value of therequestIdrecord component.router()Returns the value of therouterrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aPontesDirectPaymentRequestrecord class.- Parameters:
chainId- the value for thechainIdrecord componentrouter- the value for therouterrecord componentrequestId- the value for therequestIdrecord componentproduct- the value for theproductrecord componentpayer- the value for thepayerrecord componentpayee- the value for thepayeerecord componentamount- the value for theamountrecord componentamountScale- the value for theamountScalerecord componentagent- the value for theagentrecord componentpayerBic- the value for thepayerBicrecord componentpayeeBic- the value for thepayeeBicrecord component
-
-
Method Details
-
paymentId
Stable across event replay/restart; the versioned namespace separates this from XvP. -
correlationId
-
pontesAmount
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
chainId
Returns the value of thechainIdrecord component.- Returns:
- the value of the
chainIdrecord component
-
router
Returns the value of therouterrecord component.- Returns:
- the value of the
routerrecord component
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
payer
Returns the value of thepayerrecord component.- Returns:
- the value of the
payerrecord component
-
payee
Returns the value of thepayeerecord component.- Returns:
- the value of the
payeerecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-
amountScale
public int amountScale()Returns the value of theamountScalerecord component.- Returns:
- the value of the
amountScalerecord component
-
agent
Returns the value of theagentrecord component.- Returns:
- the value of the
agentrecord component
-
payerBic
Returns the value of thepayerBicrecord component.- Returns:
- the value of the
payerBicrecord component
-
payeeBic
Returns the value of thepayeeBicrecord component.- Returns:
- the value of the
payeeBicrecord component
-