Record Class CreateUpdatePositionTransactionDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.position.CreateUpdatePositionTransactionDTO
- Record Components:
transactionType- transaction typetransactionDate- transaction dateamount- transaction amountexternalTransactionId- optional stable external transaction identitysourceReference- optional raw upstream referencedescription- transaction description
public record CreateUpdatePositionTransactionDTO(@NotBlank @Size(max=255) String transactionType, @NotBlank @Size(max=255) String transactionDate, @NotNull @Positive @DecimalMax("999999999") Double amount, @Size(max=255) String externalTransactionId, @Size(max=255) String sourceReference, String description)
extends Record
Request object for creating and updating
PositionTransactions.- Version:
- 3.0.1
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdatePositionTransactionDTO(@NotBlank @Size(max=255) String transactionType, @NotBlank @Size(max=255) String transactionDate, @NotNull @Positive @DecimalMax("999999999") Double amount, @Size(max=255) String externalTransactionId, @Size(max=255) String sourceReference, String description) Creates an instance of aCreateUpdatePositionTransactionDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @Positive @DecimalMax("999999999") Doubleamount()Returns the value of theamountrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.@Size(max=255) StringReturns the value of theexternalTransactionIdrecord component.final inthashCode()Returns a hash code value for this object.@Size(max=255) StringReturns the value of thesourceReferencerecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(max=255) StringReturns the value of thetransactionDaterecord component.@NotBlank @Size(max=255) StringReturns the value of thetransactionTyperecord component.
-
Constructor Details
-
CreateUpdatePositionTransactionDTO
public CreateUpdatePositionTransactionDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String transactionType, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String transactionDate, @NotNull @Positive @DecimalMax("999999999") @NotNull @Positive @DecimalMax("999999999") Double amount, @Size(max=255) @Size(max=255) String externalTransactionId, @Size(max=255) @Size(max=255) String sourceReference, String description) Creates an instance of aCreateUpdatePositionTransactionDTOrecord class.- Parameters:
transactionType- the value for thetransactionTyperecord componenttransactionDate- the value for thetransactionDaterecord componentamount- the value for theamountrecord componentexternalTransactionId- the value for theexternalTransactionIdrecord componentsourceReference- the value for thesourceReferencerecord componentdescription- the value for thedescriptionrecord component
-
-
Method Details
-
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). -
transactionType
Returns the value of thetransactionTyperecord component.- Returns:
- the value of the
transactionTyperecord component
-
transactionDate
Returns the value of thetransactionDaterecord component.- Returns:
- the value of the
transactionDaterecord component
-
amount
-
externalTransactionId
Returns the value of theexternalTransactionIdrecord component.- Returns:
- the value of the
externalTransactionIdrecord component
-
sourceReference
Returns the value of thesourceReferencerecord component.- Returns:
- the value of the
sourceReferencerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-