Package com.bank.auth_service.dto
Record Class ConfirmCodeDto
java.lang.Object
java.lang.Record
com.bank.auth_service.dto.ConfirmCodeDto
- Record Components:
key- the unique key for the confirmationcode- the confirmation codeidAccount- the ID of the account associated with the paymentpixKey- the PIX key used for the paymentpaymentId- the ID of the payment transactionpaymentDescription- a description of the paymentamountPaid- the total amount paid in the transaction
public record ConfirmCodeDto(String key, String code, Long idAccount, String pixKey, Long paymentId, String paymentDescription, BigDecimal amountPaid)
extends Record
DTO representing a confirmation code for a payment transaction.
Contains the key, code, account ID, PIX key, payment ID, payment description, and the amount paid.
- Since:
- 1.0.0
- Version:
- 1.0.0, 06/23/2025
- Author:
- Fernando Cruz Cavina
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmCodeDto(String key, String code, Long idAccount, String pixKey, Long paymentId, String paymentDescription, BigDecimal amountPaid) Creates an instance of aConfirmCodeDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theamountPaidrecord component.code()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidAccountrecord component.key()Returns the value of thekeyrecord component.Returns the value of thepaymentDescriptionrecord component.Returns the value of thepaymentIdrecord component.pixKey()Returns the value of thepixKeyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfirmCodeDto
public ConfirmCodeDto(String key, String code, Long idAccount, String pixKey, Long paymentId, String paymentDescription, BigDecimal amountPaid) Creates an instance of aConfirmCodeDtorecord class.- Parameters:
key- the value for thekeyrecord componentcode- the value for thecoderecord componentidAccount- the value for theidAccountrecord componentpixKey- the value for thepixKeyrecord componentpaymentId- the value for thepaymentIdrecord componentpaymentDescription- the value for thepaymentDescriptionrecord componentamountPaid- the value for theamountPaidrecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
idAccount
Returns the value of theidAccountrecord component.- Returns:
- the value of the
idAccountrecord component
-
pixKey
Returns the value of thepixKeyrecord component.- Returns:
- the value of the
pixKeyrecord component
-
paymentId
Returns the value of thepaymentIdrecord component.- Returns:
- the value of the
paymentIdrecord component
-
paymentDescription
Returns the value of thepaymentDescriptionrecord component.- Returns:
- the value of the
paymentDescriptionrecord component
-
amountPaid
Returns the value of theamountPaidrecord component.- Returns:
- the value of the
amountPaidrecord component
-