Record Class TransactionRequestContext
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.planter.resolvers.request.transaction.TransactionRequestContext
- Record Components:
accountContext-AccountRequestContexttransactionRef-OwnedTransactionRef
public record TransactionRequestContext(AccountRequestContext accountContext, OwnedTransactionRef transactionRef)
extends Record
Resolved account context and account-owned transaction for an API request.
- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionRequestContext(AccountRequestContext accountContext, OwnedTransactionRef transactionRef) Creates an instance of aTransactionRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountContextrecord component.Returns the reference identifying the resolved account.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionRefrecord component.userRef()Returns the reference identifying the authenticated user.
-
Constructor Details
-
TransactionRequestContext
public TransactionRequestContext(AccountRequestContext accountContext, OwnedTransactionRef transactionRef) Creates an instance of aTransactionRequestContextrecord class.- Parameters:
accountContext- the value for theaccountContextrecord componenttransactionRef- the value for thetransactionRefrecord component
-
-
Method Details
-
userRef
Returns the reference identifying the authenticated user.- Returns:
AuthenticatedUserRef
-
accountRef
Returns the reference identifying the resolved account.- Returns:
OwnedAccountRef
-
toString
-
hashCode
-
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). -
accountContext
Returns the value of theaccountContextrecord component.- Returns:
- the value of the
accountContextrecord component
-
transactionRef
Returns the value of thetransactionRefrecord component.- Returns:
- the value of the
transactionRefrecord component
-