Class ACHRelationship

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

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

  • Constructor Details

    • ACHRelationship

      public ACHRelationship()
  • Method Details

    • accountId

      public ACHRelationship accountId(@Nonnull UUID accountId)
    • getAccountId

      @Nonnull public UUID getAccountId()
      Get accountId
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nonnull UUID accountId)
    • accountOwnerName

      public ACHRelationship accountOwnerName(@Nonnull String accountOwnerName)
    • getAccountOwnerName

      @Nonnull public String getAccountOwnerName()
      Name of the account owner
      Returns:
      accountOwnerName
    • setAccountOwnerName

      public void setAccountOwnerName(@Nonnull String accountOwnerName)
    • bankAccountNumber

      public ACHRelationship bankAccountNumber(@Nullable String bankAccountNumber)
    • getBankAccountNumber

      @Nullable public String getBankAccountNumber()
      Get bankAccountNumber
      Returns:
      bankAccountNumber
    • setBankAccountNumber

      public void setBankAccountNumber(@Nullable String bankAccountNumber)
    • bankAccountType

      public ACHRelationship bankAccountType(@Nullable ACHRelationship.BankAccountTypeEnum bankAccountType)
    • getBankAccountType

      @Nullable public ACHRelationship.BankAccountTypeEnum getBankAccountType()
      Must be CHECKING or SAVINGS
      Returns:
      bankAccountType
    • setBankAccountType

      public void setBankAccountType(@Nullable ACHRelationship.BankAccountTypeEnum bankAccountType)
    • bankRoutingNumber

      public ACHRelationship bankRoutingNumber(@Nullable String bankRoutingNumber)
    • getBankRoutingNumber

      @Nullable public String getBankRoutingNumber()
      Get bankRoutingNumber
      Returns:
      bankRoutingNumber
    • setBankRoutingNumber

      public void setBankRoutingNumber(@Nullable String bankRoutingNumber)
    • createdAt

      public ACHRelationship createdAt(@Nonnull OffsetDateTime createdAt)
    • getCreatedAt

      @Nonnull public OffsetDateTime getCreatedAt()
      Format: 2020-01-01T01:01:01Z
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nonnull OffsetDateTime createdAt)
    • id

      public ACHRelationship id(@Nonnull UUID id)
    • getId

      @Nonnull public UUID getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nonnull UUID id)
    • nickname

      public ACHRelationship nickname(@Nullable String nickname)
    • getNickname

      @Nullable public String getNickname()
      Get nickname
      Returns:
      nickname
    • setNickname

      public void setNickname(@Nullable String nickname)
    • status

      public ACHRelationship status(@Nonnull ACHRelationship.StatusEnum status)
    • getStatus

      @Nonnull public ACHRelationship.StatusEnum getStatus()
      Get status
      Returns:
      status
    • setStatus

      public void setStatus(@Nonnull ACHRelationship.StatusEnum status)
    • updatedAt

      public ACHRelationship updatedAt(@Nonnull OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nonnull public OffsetDateTime getUpdatedAt()
      Format: 2020-01-01T01:01:01Z
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nonnull OffsetDateTime updatedAt)
    • putAdditionalProperty

      public ACHRelationship 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 ACHRelationship 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 ACHRelationship
    • fromJson

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

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