Record Class CreateUpdateTransactionDTO
java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.transaction.CreateUpdateTransactionDTO
- Record Components:
transactionType- transaction typetransactionNumber- transaction numbertransactionDate- date and time of transactionoriginalName- original namename- namesourceSystem- optional imported source namespaceexternalTransactionId- optional stable external transaction identitysourceReference- optional raw upstream referencepositionUid- optional associated position uidtransactionStatus- status of transactionamount- amount
public record CreateUpdateTransactionDTO(@NotBlank @Size(max=255) String transactionType, @NotNull @Min(-1L) @Max(9007199254740991L) Long transactionNumber, @NotBlank @Size(max=255) String transactionDate, @NotBlank @Size(min=3,max=75) String originalName, @NotBlank @Size(min=3,max=75) String name, @Size(max=255) String sourceSystem, @Size(max=255) String externalTransactionId, @Size(max=255) String sourceReference, @Size(max=255) String positionUid, @NotBlank @Size(max=255) String transactionStatus, @NotNull @DecimalMin("-999999999") @DecimalMax("999999999") Double amount)
extends Record
Request object for creating and updating
Transactions.- Version:
- 3.0.4
- Author:
- Stephen Prizio
-
Constructor Summary
ConstructorsConstructorDescriptionCreateUpdateTransactionDTO(@NotBlank @Size(max=255) String transactionType, @NotNull @Min(-1L) @Max(9007199254740991L) Long transactionNumber, @NotBlank @Size(max=255) String transactionDate, @NotBlank @Size(min=3,max=75) String originalName, @NotBlank @Size(min=3,max=75) String name, @Size(max=255) String sourceSystem, @Size(max=255) String externalTransactionId, @Size(max=255) String sourceReference, @Size(max=255) String positionUid, @NotBlank @Size(max=255) String transactionStatus, @NotNull @DecimalMin("-999999999") @DecimalMax("999999999") Double amount) Creates an instance of aCreateUpdateTransactionDTOrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull @DecimalMin("-999999999") @DecimalMax("999999999") Doubleamount()Returns the value of theamountrecord 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.@NotBlank @Size(min=3,max=75) Stringname()Returns the value of thenamerecord component.@NotBlank @Size(min=3,max=75) StringReturns the value of theoriginalNamerecord component.@Size(max=255) StringReturns the value of thepositionUidrecord component.@Size(max=255) StringReturns the value of thesourceReferencerecord component.@Size(max=255) StringReturns the value of thesourceSystemrecord component.final StringtoString()Returns a string representation of this record class.@NotBlank @Size(max=255) StringReturns the value of thetransactionDaterecord component.@NotNull @Min(-1L) @Max(9007199254740991L) LongReturns the value of thetransactionNumberrecord component.@NotBlank @Size(max=255) StringReturns the value of thetransactionStatusrecord component.@NotBlank @Size(max=255) StringReturns the value of thetransactionTyperecord component.
-
Constructor Details
-
CreateUpdateTransactionDTO
public CreateUpdateTransactionDTO(@NotBlank @Size(max=255) @NotBlank @Size(max=255) String transactionType, @NotNull @Min(-1L) @Max(9007199254740991L) @NotNull @Min(-1L) @Max(9007199254740991L) Long transactionNumber, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String transactionDate, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String originalName, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String name, @Size(max=255) @Size(max=255) String sourceSystem, @Size(max=255) @Size(max=255) String externalTransactionId, @Size(max=255) @Size(max=255) String sourceReference, @Size(max=255) @Size(max=255) String positionUid, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String transactionStatus, @NotNull @DecimalMin("-999999999") @DecimalMax("999999999") @NotNull @DecimalMin("-999999999") @DecimalMax("999999999") Double amount) Creates an instance of aCreateUpdateTransactionDTOrecord class.- Parameters:
transactionType- the value for thetransactionTyperecord componenttransactionNumber- the value for thetransactionNumberrecord componenttransactionDate- the value for thetransactionDaterecord componentoriginalName- the value for theoriginalNamerecord componentname- the value for thenamerecord componentsourceSystem- the value for thesourceSystemrecord componentexternalTransactionId- the value for theexternalTransactionIdrecord componentsourceReference- the value for thesourceReferencerecord componentpositionUid- the value for thepositionUidrecord componenttransactionStatus- the value for thetransactionStatusrecord componentamount- the value for theamountrecord 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
-
transactionNumber
@NotNull @Min(-1L) @Max(9007199254740991L) public @NotNull @Min(-1L) @Max(9007199254740991L) Long transactionNumber()Returns the value of thetransactionNumberrecord component.- Returns:
- the value of the
transactionNumberrecord component
-
transactionDate
Returns the value of thetransactionDaterecord component.- Returns:
- the value of the
transactionDaterecord component
-
originalName
Returns the value of theoriginalNamerecord component.- Returns:
- the value of the
originalNamerecord component
-
name
-
sourceSystem
Returns the value of thesourceSystemrecord component.- Returns:
- the value of the
sourceSystemrecord component
-
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
-
positionUid
Returns the value of thepositionUidrecord component.- Returns:
- the value of the
positionUidrecord component
-
transactionStatus
Returns the value of thetransactionStatusrecord component.- Returns:
- the value of the
transactionStatusrecord component
-
amount
-