Record Class CreateUpdateAccountDTO

java.lang.Object
java.lang.Record
com.bluebell.greenhouse.platform.models.api.dto.account.CreateUpdateAccountDTO
Record Components:
active - is account active
balance - account balance
name - account name
number - account number
currency - account currency
type - account type
broker - account broker
tradePlatform - account trade platform
isDefault - is default account
isLegacy - is legacy account
accountOpenTime - account open time
accountCloseTime - account close time
strategyUid - optional assigned strategy uid

public record CreateUpdateAccountDTO(@NotNull Boolean active, @NotNull @PositiveOrZero @DecimalMax("999999999") Double balance, @NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=75) String number, @NotBlank @Size(max=255) String currency, @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) String broker, @NotBlank @Size(max=255) String tradePlatform, @NotNull Boolean isDefault, @NotNull Boolean isLegacy, @Size(max=255) String accountOpenTime, @Size(max=255) String accountCloseTime, @Size(max=255) String strategyUid) extends Record
Request object for creating and updating Accounts.
Version:
3.0.1
Author:
Stephen Prizio
  • Constructor Details

    • CreateUpdateAccountDTO

      public CreateUpdateAccountDTO(@NotNull @NotNull Boolean active, @NotNull @PositiveOrZero @DecimalMax("999999999") @NotNull @PositiveOrZero @DecimalMax("999999999") Double balance, @NotBlank @Size(min=3,max=75) @NotBlank @Size(min=3,max=75) String name, @NotBlank @Size(max=75) @NotBlank @Size(max=75) String number, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String currency, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String type, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String broker, @NotBlank @Size(max=255) @NotBlank @Size(max=255) String tradePlatform, @NotNull @NotNull Boolean isDefault, @NotNull @NotNull Boolean isLegacy, @Size(max=255) @Size(max=255) String accountOpenTime, @Size(max=255) @Size(max=255) String accountCloseTime, @Size(max=255) @Size(max=255) String strategyUid)
      Creates an instance of a CreateUpdateAccountDTO record class.
      Parameters:
      active - the value for the active record component
      balance - the value for the balance record component
      name - the value for the name record component
      number - the value for the number record component
      currency - the value for the currency record component
      type - the value for the type record component
      broker - the value for the broker record component
      tradePlatform - the value for the tradePlatform record component
      isDefault - the value for the isDefault record component
      isLegacy - the value for the isLegacy record component
      accountOpenTime - the value for the accountOpenTime record component
      accountCloseTime - the value for the accountCloseTime record component
      strategyUid - the value for the strategyUid 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.
    • active

      @NotNull public @NotNull Boolean active()
      Returns the value of the active record component.
      Returns:
      the value of the active record component
    • balance

      @NotNull @PositiveOrZero @DecimalMax("999999999") public @NotNull @PositiveOrZero @DecimalMax("999999999") Double balance()
      Returns the value of the balance record component.
      Returns:
      the value of the balance 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
    • number

      @NotBlank @Size(max=75) public @NotBlank @Size(max=75) String number()
      Returns the value of the number record component.
      Returns:
      the value of the number record component
    • currency

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

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

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

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

      @NotNull public @NotNull Boolean isDefault()
      Returns the value of the isDefault record component.
      Returns:
      the value of the isDefault record component
    • isLegacy

      @NotNull public @NotNull Boolean isLegacy()
      Returns the value of the isLegacy record component.
      Returns:
      the value of the isLegacy record component
    • accountOpenTime

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

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

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