Record Class CreateUpdateTransactionDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.transaction.CreateUpdateTransactionDTO
Record Components:
transactionType - transaction type
transactionNumber - transaction number
transactionDate - date and time of transaction
originalName - original name
name - name
sourceSystem - optional imported source namespace
externalTransactionId - optional stable external transaction identity
sourceReference - optional raw upstream reference
positionUid - optional associated position uid
transactionStatus - status of transaction
amount - 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 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 a CreateUpdateTransactionDTO record class.
      Parameters:
      transactionType - the value for the transactionType record component
      transactionNumber - the value for the transactionNumber record component
      transactionDate - the value for the transactionDate record component
      originalName - the value for the originalName record component
      name - the value for the name record component
      sourceSystem - the value for the sourceSystem record component
      externalTransactionId - the value for the externalTransactionId record component
      sourceReference - the value for the sourceReference record component
      positionUid - the value for the positionUid record component
      transactionStatus - the value for the transactionStatus record component
      amount - the value for the amount record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • transactionType

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String transactionType()
      Returns the value of the transactionType record component.
      Returns:
      the value of the transactionType record component
    • transactionNumber

      @NotNull @Min(-1L) @Max(9007199254740991L) public @NotNull @Min(-1L) @Max(9007199254740991L) Long transactionNumber()
      Returns the value of the transactionNumber record component.
      Returns:
      the value of the transactionNumber record component
    • transactionDate

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String transactionDate()
      Returns the value of the transactionDate record component.
      Returns:
      the value of the transactionDate record component
    • originalName

      @NotBlank @Size(min=3, max=75) public @NotBlank @Size(min=3,max=75) String originalName()
      Returns the value of the originalName record component.
      Returns:
      the value of the originalName record component
    • name

      @NotBlank @Size(min=3, max=75) public @NotBlank @Size(min=3,max=75) String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • sourceSystem

      @Size(max=255) public @Size(max=255) String sourceSystem()
      Returns the value of the sourceSystem record component.
      Returns:
      the value of the sourceSystem record component
    • externalTransactionId

      @Size(max=255) public @Size(max=255) String externalTransactionId()
      Returns the value of the externalTransactionId record component.
      Returns:
      the value of the externalTransactionId record component
    • sourceReference

      @Size(max=255) public @Size(max=255) String sourceReference()
      Returns the value of the sourceReference record component.
      Returns:
      the value of the sourceReference record component
    • positionUid

      @Size(max=255) public @Size(max=255) String positionUid()
      Returns the value of the positionUid record component.
      Returns:
      the value of the positionUid record component
    • transactionStatus

      @NotBlank @Size(max=255) public @NotBlank @Size(max=255) String transactionStatus()
      Returns the value of the transactionStatus record component.
      Returns:
      the value of the transactionStatus record component
    • amount

      @NotNull @DecimalMin("-999999999") @DecimalMax("999999999") public @NotNull @DecimalMin("-999999999") @DecimalMax("999999999") Double amount()
      Returns the value of the amount record component.
      Returns:
      the value of the amount record component