Class Agreement
java.lang.Object
markets.alpaca.client.openapi.broker.model.Agreement
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Agreement
extends Object
implements Serializable
Agreement
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagreement(AgreementType agreement) booleanstatic AgreementCreate an instance of Agreement given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get agreementThe ip_address the signed agreements were sent from by the user.The agreement revision.The timestamp the agreement was signed.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAgreement(AgreementType agreement) voidsetIpAddress(String ipAddress) voidsetRevision(String revision) voidsetSignedAt(OffsetDateTime signedAt) signedAt(OffsetDateTime signedAt) toJson()Convert an instance of Agreement 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_REVISION
- See Also:
-
SERIALIZED_NAME_SIGNED_AT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Agreement
public Agreement()
-
-
Method Details
-
agreement
-
getAgreement
Get agreement- Returns:
- agreement
-
setAgreement
-
ipAddress
-
getIpAddress
The ip_address the signed agreements were sent from by the user.- Returns:
- ipAddress
-
setIpAddress
-
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 a POST or PATCH request, the active revision will be used, which will align with the [Alpaca Documents Library](https://alpaca.markets/disclosures).- Returns:
- revision
-
setRevision
-
signedAt
-
getSignedAt
The timestamp the agreement was signed.- Returns:
- signedAt
-
setSignedAt
-
putAdditionalProperty
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 propertyvalue- value of the property- Returns:
- the Agreement instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
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 Agreement
-
fromJson
Create an instance of Agreement given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Agreement
- Throws:
IOException- if the JSON string is invalid with respect to Agreement
-
toJson
Convert an instance of Agreement to an JSON string- Returns:
- JSON string
-