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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagreement(PartyAgreementType agreement) booleanstatic CreatePartyAgreementRequestCreate an instance of CreatePartyAgreementRequest given an JSON stringGet agreementThe IP address from which the agreement was signedThe party signing the agreementOptional agreement revision in format `XX.YYYY.MM`.The timestamp when the agreement was signedRequired for legal entity parties.inthashCode()voidsetAgreement(PartyAgreementType 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 CreatePartyAgreementRequest 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_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
-
CreatePartyAgreementRequest
public CreatePartyAgreementRequest()
-
-
Method Details
-
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 signing the agreement- Returns:
- partyId
-
setPartyId
-
revision
-
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
-
signedAt
-
getSignedAt
The timestamp when the agreement was signed- Returns:
- signedAt
-
setSignedAt
-
signerPartyId
-
getSignerPartyId
Required for legal entity parties. Must reference a natural person party that is an authorized signer of the legal entity.- 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 CreatePartyAgreementRequest
-
fromJson
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
Convert an instance of CreatePartyAgreementRequest to an JSON string- Returns:
- JSON string
-