Record Class Deployment.EscrowAccount
java.lang.Object
java.lang.Record
cloud.quasarch.akash.impl.model.remote.Deployment.EscrowAccount
- Record Components:
id- Unique ID of account.owner- Account address of owner.state- Account state.balance-Deployment.Balancetransferred-Deployment.TransferredsettledAt- Last block that payments were settled.depositor- Tenants are required to submit a deposit when creating a deploymentfunds-Deployment.Funds
- Enclosing class:
- Deployment
public static record Deployment.EscrowAccount(Deployment.Id id, String owner, String state, Deployment.Balance balance, Deployment.Transferred transferred, String settledAt, String depositor, Deployment.Funds funds)
extends Record
Escrow accounts are a mechanism that allow for time-based payments from one account
to another without block-by-block micropayments.
They also support holding funds for an account until an arbitrary event occurs.
More on ...
-
Constructor Summary
ConstructorsConstructorDescriptionEscrowAccount(Deployment.Id id, String owner, String state, Deployment.Balance balance, Deployment.Transferred transferred, String settledAt, String depositor, Deployment.Funds funds) Creates an instance of aEscrowAccountrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbalance()Returns the value of thebalancerecord component.Returns the value of thedepositorrecord component.final booleanIndicates whether some other object is "equal to" this one.funds()Returns the value of thefundsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.owner()Returns the value of theownerrecord component.Returns the value of thesettledAtrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransferredrecord component.
-
Constructor Details
-
EscrowAccount
public EscrowAccount(Deployment.Id id, String owner, String state, Deployment.Balance balance, Deployment.Transferred transferred, String settledAt, String depositor, Deployment.Funds funds) Creates an instance of aEscrowAccountrecord class.- Parameters:
id- the value for theidrecord componentowner- the value for theownerrecord componentstate- the value for thestaterecord componentbalance- the value for thebalancerecord componenttransferred- the value for thetransferredrecord componentsettledAt- the value for thesettledAtrecord componentdepositor- the value for thedepositorrecord componentfunds- the value for thefundsrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
owner
Returns the value of theownerrecord component.- Returns:
- the value of the
ownerrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
balance
Returns the value of thebalancerecord component.- Returns:
- the value of the
balancerecord component
-
transferred
Returns the value of thetransferredrecord component.- Returns:
- the value of the
transferredrecord component
-
settledAt
Returns the value of thesettledAtrecord component.- Returns:
- the value of the
settledAtrecord component
-
depositor
Returns the value of thedepositorrecord component.- Returns:
- the value of the
depositorrecord component
-
funds
Returns the value of thefundsrecord component.- Returns:
- the value of the
fundsrecord component
-