Class Transaction

java.lang.Object
markets.alpaca.client.openapi.broker.model.Transaction
All Implemented Interfaces:
Serializable

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class Transaction extends Object implements Serializable
Transaction
See Also:
  • Field Details

  • Constructor Details

    • Transaction

      public Transaction()
  • Method Details

    • accountId

      public Transaction accountId(@Nullable String accountId)
    • getAccountId

      @Nullable public String getAccountId()
      The ledger ID
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nullable String accountId)
    • accountName

      public Transaction accountName(@Nullable String accountName)
    • getAccountName

      @Nullable public String getAccountName()
      The ledger name
      Returns:
      accountName
    • setAccountName

      public void setAccountName(@Nullable String accountName)
    • accountNo

      public Transaction accountNo(@Nullable String accountNo)
    • getAccountNo

      @Nullable public String getAccountNo()
      The ledger account number
      Returns:
      accountNo
    • setAccountNo

      public void setAccountNo(@Nullable String accountNo)
    • amount

      public Transaction amount(@Nullable String amount)
    • getAmount

      @Nullable public String getAmount()
      Total amount of the transaction
      Returns:
      amount
    • setAmount

      public void setAmount(@Nullable String amount)
    • balance

      public Transaction balance(@Nullable String balance)
    • getBalance

      @Nullable public String getBalance()
      Ending balance after thetransaction has been applied
      Returns:
      balance
    • setBalance

      public void setBalance(@Nullable String balance)
    • contraAccountName

      public Transaction contraAccountName(@Nullable String contraAccountName)
    • getContraAccountName

      @Nullable public String getContraAccountName()
      Contra account of transaction
      Returns:
      contraAccountName
    • setContraAccountName

      public void setContraAccountName(@Nullable String contraAccountName)
    • description

      public Transaction description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Plain text overview of the transaction
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • entryType

      public Transaction entryType(@Nullable String entryType)
    • getEntryType

      @Nullable public String getEntryType()
      Type of transaction
      Returns:
      entryType
    • setEntryType

      public void setEntryType(@Nullable String entryType)
    • systemDate

      public Transaction systemDate(@Nullable String systemDate)
    • getSystemDate

      @Nullable public String getSystemDate()
      Date of transaction
      Returns:
      systemDate
    • setSystemDate

      public void setSystemDate(@Nullable String systemDate)
    • putAdditionalProperty

      public Transaction putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the Transaction instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to Transaction
    • fromJson

      public static Transaction fromJson(String jsonString) throws IOException
      Create an instance of Transaction given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Transaction
      Throws:
      IOException - if the JSON string is invalid with respect to Transaction
    • toJson

      public String toJson()
      Convert an instance of Transaction to an JSON string
      Returns:
      JSON string