Class SignedAgreement
java.lang.Object
markets.alpaca.client.openapi.broker.model.SignedAgreement
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.28.0")
public class SignedAgreement
extends Object
implements Serializable
A signed agreement between a party and Alpaca, as returned by `POST /v1/agreements`. Includes both per-party and per-account agreements.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagreement(SignedAgreementType agreement) booleanstatic SignedAgreementCreate an instance of SignedAgreement given an JSON stringThe account associated with this agreement.Get agreementThe IP address from which the agreement was signedThe party that signed the agreementThe agreement revision.The timestamp when the agreement was signedThe party ID of the authorized signer who signed on behalf of a legal entity.inthashCode()voidsetAccountId(UUID accountId) voidsetAgreement(SignedAgreementType agreement) voidsetIpAddress(String ipAddress) voidsetPartyId(UUID partyId) voidsetRevision(String revision) voidsetSignedAt(OffsetDateTime signedAt) voidsetSignerPartyId(UUID signerPartyId) signedAt(OffsetDateTime signedAt) signerPartyId(UUID signerPartyId) toJson()Convert an instance of SignedAgreement to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_AGREEMENT
- See Also:
-
SERIALIZED_NAME_IP_ADDRESS
- See Also:
-
SERIALIZED_NAME_PARTY_ID
- See Also:
-
SERIALIZED_NAME_REVISION
- See Also:
-
SERIALIZED_NAME_SIGNED_AT
- See Also:
-
SERIALIZED_NAME_SIGNER_PARTY_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SignedAgreement
public SignedAgreement()
-
-
Method Details
-
accountId
-
getAccountId
The account associated with this agreement. Present for per-account agreements such as `customer_agreement`, `account_agreement`, `options_agreement`, `master_securities_lending_agreement`, `crypto_agreement`, `dvp_customer_agreement`, `etc_agreement`, and `joint_account_agreement`.- Returns:
- accountId
-
setAccountId
-
agreement
-
getAgreement
Get agreement- Returns:
- agreement
-
setAgreement
-
ipAddress
-
getIpAddress
The IP address from which the agreement was signed- Returns:
- ipAddress
-
setIpAddress
-
partyId
-
getPartyId
The party that signed the agreement- Returns:
- partyId
-
setPartyId
-
revision
-
getRevision
The agreement revision. The format is `XX.YYYY.MM` where XX is an incrementing revision number, YYYY is the year and MM is the month. If the revision is not specified in the request, the active revision will be used, which will align with the [Alpaca Documents Library](https://alpaca.markets/disclosures). Omitted for agreement types that do not support revisions (`nasdaq_agreement`, `nyse_agreement`, `oauth_api_agreement`).- Returns:
- revision
-
setRevision
-
signedAt
-
getSignedAt
The timestamp when the agreement was signed- Returns:
- signedAt
-
setSignedAt
-
signerPartyId
-
getSignerPartyId
The party ID of the authorized signer who signed on behalf of a legal entity. Required for legal entity parties.- Returns:
- signerPartyId
-
setSignerPartyId
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
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 SignedAgreement
-
fromJson
Create an instance of SignedAgreement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SignedAgreement
- Throws:
IOException- if the JSON string is invalid with respect to SignedAgreement
-
toJson
Convert an instance of SignedAgreement to an JSON string- Returns:
- JSON string
-