Class JNLS
java.lang.Object
markets.alpaca.client.openapi.broker.model.JNLS
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class JNLS
extends Object
implements Serializable
JNLS
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanfromAccount(String fromAccount) static JNLSCreate an instance of JNLS given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Currency denomination of the journal.Get descriptionJNLSThe account ID that initiates the journal - account_status must equal to ACTIVE or CLOSEgetId()The journal IDgetPrice()The price of the security journaledgetQty()The quantity of the securities journaledDate string in \"%Y-%m-%d\" formatGet statusThe symbol of the security journaledDate string in \"%Y-%m-%d\" formatThe account ID that received the journal - account_status must equal to ACTIVEinthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCurrency(String currency) voidsetDescription(String description) voidsetEntryType(String entryType) voidsetFromAccount(String fromAccount) voidvoidvoidvoidsetSettleDate(String settleDate) voidsetStatus(JournalStatus status) voidvoidsetSystemDate(String systemDate) settleDate(String settleDate) voidsetToAccount(String toAccount) status(JournalStatus status) systemDate(String systemDate) toJson()Convert an instance of JNLS 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_CURRENCY
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_FROM_ACCOUNT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SETTLE_DATE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_SYSTEM_DATE
- See Also:
-
SERIALIZED_NAME_TO_ACCOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
JNLS
public JNLS()
-
-
Method Details
-
currency
-
getCurrency
Currency denomination of the journal. USD by default.- Returns:
- currency
-
setCurrency
-
description
-
getDescription
Get description- Returns:
- description
-
setDescription
-
entryType
-
getEntryType
JNLS- Returns:
- entryType
-
setEntryType
-
fromAccount
-
getFromAccount
The account ID that initiates the journal - account_status must equal to ACTIVE or CLOSE- Returns:
- fromAccount
-
setFromAccount
-
id
-
getId
The journal ID- Returns:
- id
-
setId
-
price
-
getPrice
The price of the security journaled- Returns:
- price
-
setPrice
-
qty
-
getQty
The quantity of the securities journaled- Returns:
- qty
-
setQty
-
settleDate
-
getSettleDate
Date string in \"%Y-%m-%d\" format- Returns:
- settleDate
-
setSettleDate
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
The symbol of the security journaled- Returns:
- symbol
-
setSymbol
-
systemDate
-
getSystemDate
Date string in \"%Y-%m-%d\" format- Returns:
- systemDate
-
setSystemDate
-
toAccount
-
getToAccount
The account ID that received the journal - account_status must equal to ACTIVE- Returns:
- toAccount
-
setToAccount
-
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 JNLS 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 JNLS
-
fromJson
Create an instance of JNLS given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JNLS
- Throws:
IOException- if the JSON string is invalid with respect to JNLS
-
toJson
Convert an instance of JNLS to an JSON string- Returns:
- JSON string
-