Class CreatePartyAgreementRequest

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.28.0") public class CreatePartyAgreementRequest extends Object implements Serializable
Request to create a per-party agreement. Per-party agreements are signed at the party level and do not require an `account_id`. The `account_id` field is not allowed.
See Also:
  • Field Details

  • Constructor Details

    • CreatePartyAgreementRequest

      public CreatePartyAgreementRequest()
  • Method Details

    • agreement

      public CreatePartyAgreementRequest agreement(@Nonnull PartyAgreementType agreement)
    • getAgreement

      @Nonnull public PartyAgreementType getAgreement()
      Get agreement
      Returns:
      agreement
    • setAgreement

      public void setAgreement(@Nonnull PartyAgreementType agreement)
    • ipAddress

      public CreatePartyAgreementRequest ipAddress(@Nonnull String ipAddress)
    • getIpAddress

      @Nonnull public String getIpAddress()
      The IP address from which the agreement was signed
      Returns:
      ipAddress
    • setIpAddress

      public void setIpAddress(@Nonnull String ipAddress)
    • partyId

      public CreatePartyAgreementRequest partyId(@Nonnull UUID partyId)
    • getPartyId

      @Nonnull public UUID getPartyId()
      The party signing the agreement
      Returns:
      partyId
    • setPartyId

      public void setPartyId(@Nonnull UUID partyId)
    • revision

      public CreatePartyAgreementRequest revision(@Nullable String revision)
    • getRevision

      @Nullable public String getRevision()
      Optional agreement revision in format `XX.YYYY.MM`. If omitted, the active revision from the agreements reference table is used. Not supported for `nasdaq_agreement`, `nyse_agreement`, or `oauth_api_agreement`; sending `revision` for these types returns `400`, and the response omits it.
      Returns:
      revision
    • setRevision

      public void setRevision(@Nullable String revision)
    • signedAt

      public CreatePartyAgreementRequest signedAt(@Nonnull OffsetDateTime signedAt)
    • getSignedAt

      @Nonnull public OffsetDateTime getSignedAt()
      The timestamp when the agreement was signed
      Returns:
      signedAt
    • setSignedAt

      public void setSignedAt(@Nonnull OffsetDateTime signedAt)
    • signerPartyId

      public CreatePartyAgreementRequest signerPartyId(@Nullable UUID signerPartyId)
    • getSignerPartyId

      @Nullable public UUID getSignerPartyId()
      Required for legal entity parties. Must reference a natural person party that is an authorized signer of the legal entity.
      Returns:
      signerPartyId
    • setSignerPartyId

      public void setSignerPartyId(@Nullable UUID signerPartyId)
    • 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 CreatePartyAgreementRequest
    • fromJson

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

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