Class Journal
java.lang.Object
markets.alpaca.client.openapi.broker.model.Journal
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BatchJournalResponse
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Journal
extends Object
implements Serializable
Represents a cash or security transfer between accounts, as specified by the `entry_type` parameter.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) description(String description) booleanfromAccount(String fromAccount) static JournalCreate an instance of Journal given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Get createdAtCurrency denomination of the journal.ID the amount goes to.JNLCThe account ID that initiates the journal - account_status must equal to ACTIVE or CLOSEgetId()The journal IDOnly valid for JNLC journals.getPrice()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 ACTIVEOnly valid for JNLC journals.Only valid for JNLC journals.Only valid for JNLC journals.Get transmitterInfoOnly valid for JNLC journals.Only valid for JNLC journals.inthashCode()netAmount(BigDecimal netAmount) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidsetDescription(String description) voidsetEntryType(String entryType) voidsetFromAccount(String fromAccount) voidvoidsetNetAmount(BigDecimal netAmount) voidvoidvoidsetSettleDate(String settleDate) voidsetStatus(JournalStatus status) voidvoidsetSystemDate(String systemDate) settleDate(String settleDate) voidsetToAccount(String toAccount) voidsetTransmitterAccountNumber(String transmitterAccountNumber) voidsetTransmitterAddress(String transmitterAddress) voidsetTransmitterFinancialInstitution(String transmitterFinancialInstitution) voidsetTransmitterInfo(TransmitterInfo transmitterInfo) voidsetTransmitterName(String transmitterName) voidsetTransmitterTimestamp(OffsetDateTime transmitterTimestamp) status(JournalStatus status) systemDate(String systemDate) toJson()Convert an instance of Journal to an JSON stringtoString()transmitterAccountNumber(String transmitterAccountNumber) transmitterAddress(String transmitterAddress) transmitterFinancialInstitution(String transmitterFinancialInstitution) transmitterInfo(TransmitterInfo transmitterInfo) transmitterName(String transmitterName) transmitterTimestamp(OffsetDateTime transmitterTimestamp) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
entryType
-
SERIALIZED_NAME_FROM_ACCOUNT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_SETTLE_DATE
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_TO_ACCOUNT
- See Also:
-
SERIALIZED_NAME_TRANSMITTER_INFO
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_PRICE
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_SYSTEM_DATE
- See Also:
-
SERIALIZED_NAME_NET_AMOUNT
- See Also:
-
SERIALIZED_NAME_TRANSMITTER_ACCOUNT_NUMBER
- See Also:
-
SERIALIZED_NAME_TRANSMITTER_ADDRESS
- See Also:
-
SERIALIZED_NAME_TRANSMITTER_FINANCIAL_INSTITUTION
- See Also:
-
SERIALIZED_NAME_TRANSMITTER_NAME
- See Also:
-
SERIALIZED_NAME_TRANSMITTER_TIMESTAMP
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Journal
public Journal()
-
-
Method Details
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
entryType
-
getEntryType
JNLC- 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
-
settleDate
-
getSettleDate
Date string in \"%Y-%m-%d\" format- Returns:
- settleDate
-
setSettleDate
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
toAccount
-
getToAccount
The account ID that received the journal - account_status must equal to ACTIVE- Returns:
- toAccount
-
setToAccount
-
transmitterInfo
-
getTransmitterInfo
Get transmitterInfo- Returns:
- transmitterInfo
-
setTransmitterInfo
-
currency
-
getCurrency
Currency denomination of the journal. USD by default.- Returns:
- currency
-
setCurrency
-
description
-
getDescription
ID the amount goes to. Only valid for JNLC journals. Null for JNLS.- Returns:
- description
-
setDescription
-
price
-
getPrice
The price of the security journaled- Returns:
- price
-
setPrice
-
qty
-
getQty
The quantity of the securities journaled- Returns:
- qty
-
setQty
-
symbol
-
getSymbol
The symbol of the security journaled- Returns:
- symbol
-
setSymbol
-
systemDate
-
getSystemDate
Date string in \"%Y-%m-%d\" format- Returns:
- systemDate
-
setSystemDate
-
netAmount
-
getNetAmount
Only valid for JNLC journals. Null for JNLS.- Returns:
- netAmount
-
setNetAmount
-
transmitterAccountNumber
-
getTransmitterAccountNumber
Only valid for JNLC journals. Null for JNLS.max 255 characters- Returns:
- transmitterAccountNumber
-
setTransmitterAccountNumber
-
transmitterAddress
-
getTransmitterAddress
Only valid for JNLC journals. Null for JNLS.max 255 characters- Returns:
- transmitterAddress
-
setTransmitterAddress
-
transmitterFinancialInstitution
-
getTransmitterFinancialInstitution
Only valid for JNLC journals. Null for JNLS.max 255 characters- Returns:
- transmitterFinancialInstitution
-
setTransmitterFinancialInstitution
-
transmitterName
-
getTransmitterName
Only valid for JNLC journals. Null for JNLS. Max 255 characters.- Returns:
- transmitterName
-
setTransmitterName
-
transmitterTimestamp
-
getTransmitterTimestamp
Only valid for JNLC journals. Null for JNLS.- Returns:
- transmitterTimestamp
-
setTransmitterTimestamp
-
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 Journal 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 Journal
-
fromJson
Create an instance of Journal given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Journal
- Throws:
IOException- if the JSON string is invalid with respect to Journal
-
toJson
Convert an instance of Journal to an JSON string- Returns:
- JSON string
-