Package net.finmath.pontes.erc7573
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 Summary
ConstructorsConstructorDescriptionPontesPaymentClaim(PontesPaymentClaimIdentity identity, long version, PontesPaymentClaimState state, PontesRawHttpResponse response, List<PontesRawHttpResponse> rawPaymentPostResponses, String lastError, List<PontesPaymentClaimAction> operatorActions, Instant updatedAt) Creates an instance of aPontesPaymentClaimrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.static PontesPaymentClaiminitial(PontesPaymentClaimIdentity identity, PontesPaymentClaimState state, PontesRawHttpResponse response, String error) Returns the value of thelastErrorrecord component.Returns the value of theoperatorActionsrecord component.Returns the value of therawPaymentPostResponsesrecord component.response()Returns the value of theresponserecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.longversion()Returns the value of theversionrecord component.
-
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 aPontesPaymentClaimrecord class.- Parameters:
identity- the value for theidentityrecord componentversion- the value for theversionrecord componentstate- the value for thestaterecord componentresponse- the value for theresponserecord componentrawPaymentPostResponses- the value for therawPaymentPostResponsesrecord componentlastError- the value for thelastErrorrecord componentoperatorActions- the value for theoperatorActionsrecord componentupdatedAt- the value for theupdatedAtrecord component
-
-
Method Details
-
initial
public static PontesPaymentClaim initial(PontesPaymentClaimIdentity identity, PontesPaymentClaimState state, PontesRawHttpResponse response, String error) -
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 '=='. -
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
response
Returns the value of theresponserecord component.- Returns:
- the value of the
responserecord component
-
rawPaymentPostResponses
Returns the value of therawPaymentPostResponsesrecord component.- Returns:
- the value of the
rawPaymentPostResponsesrecord component
-
lastError
Returns the value of thelastErrorrecord component.- Returns:
- the value of the
lastErrorrecord component
-
operatorActions
Returns the value of theoperatorActionsrecord component.- Returns:
- the value of the
operatorActionsrecord component
-
updatedAt
Returns the value of theupdatedAtrecord component.- Returns:
- the value of the
updatedAtrecord component
-