Class BatchJournalResponseJNLS
java.lang.Object
markets.alpaca.client.openapi.broker.model.BatchJournalResponseJNLS
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class BatchJournalResponseJNLS
extends Object
implements Serializable
A securities journal result that preserves discriminator-complete batch response modeling, although current public batch requests support JNLC only.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumSecurities journal discriminator value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic 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) entryType(BatchJournalResponseJNLS.EntryTypeEnum entryType) booleanerrorMessage(String errorMessage) fromAccount(UUID fromAccount) static BatchJournalResponseJNLSCreate an instance of BatchJournalResponseJNLS given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The creation time when supplied by the endpoint.Currency denomination of the journal.The journal description.Securities journal discriminator value.Description of why this journal transaction failed.The account ID that initiated the journal.getId()The journal ID.The cash amount, or null when not applicable.getPrice()The journaled security price, or null when not applicable.getQty()The journaled security quantity, or null when not applicable.The settlement date, or null until one is assigned.Get statusThe journaled security symbol, or null for a cash journal.The booking-system date, or null until one is assigned.The account ID that received the journal.Get transmitterInfointhashCode()netAmount(BigDecimal netAmount) price(BigDecimal price) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.qty(BigDecimal qty) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCurrency(String currency) voidsetDescription(String description) voidvoidsetErrorMessage(String errorMessage) voidsetFromAccount(UUID fromAccount) voidvoidsetNetAmount(BigDecimal netAmount) voidsetPrice(BigDecimal price) voidsetQty(BigDecimal qty) voidsetSettleDate(LocalDate settleDate) voidsetStatus(JournalStatus status) voidvoidsetSystemDate(LocalDate systemDate) settleDate(LocalDate settleDate) voidsetToAccount(UUID toAccount) voidsetTransmitterInfo(TransmitterInfo transmitterInfo) status(JournalStatus status) systemDate(LocalDate systemDate) toJson()Convert an instance of BatchJournalResponseJNLS to an JSON stringtoString()transmitterInfo(TransmitterInfo transmitterInfo) 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_CURRENCY
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_FROM_ACCOUNT
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NET_AMOUNT
- 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:
-
SERIALIZED_NAME_TRANSMITTER_INFO
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_ERROR_MESSAGE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
BatchJournalResponseJNLS
public BatchJournalResponseJNLS()
-
-
Method Details
-
createdAt
-
getCreatedAt
The creation time when supplied by the endpoint.- Returns:
- createdAt
-
setCreatedAt
-
currency
-
getCurrency
Currency denomination of the journal.- Returns:
- currency
-
setCurrency
-
description
-
getDescription
The journal description.- Returns:
- description
-
setDescription
-
fromAccount
-
getFromAccount
The account ID that initiated the journal.- Returns:
- fromAccount
-
setFromAccount
-
id
-
getId
The journal ID.- Returns:
- id
-
setId
-
netAmount
-
getNetAmount
The cash amount, or null when not applicable.- Returns:
- netAmount
-
setNetAmount
-
price
-
getPrice
The journaled security price, or null when not applicable.- Returns:
- price
-
setPrice
-
qty
-
getQty
The journaled security quantity, or null when not applicable.- Returns:
- qty
-
setQty
-
settleDate
-
getSettleDate
The settlement date, or null until one is assigned.- Returns:
- settleDate
-
setSettleDate
-
status
-
getStatus
Get status- Returns:
- status
-
setStatus
-
symbol
-
getSymbol
The journaled security symbol, or null for a cash journal.- Returns:
- symbol
-
setSymbol
-
systemDate
-
getSystemDate
The booking-system date, or null until one is assigned.- Returns:
- systemDate
-
setSystemDate
-
toAccount
-
getToAccount
The account ID that received the journal.- Returns:
- toAccount
-
setToAccount
-
transmitterInfo
-
getTransmitterInfo
Get transmitterInfo- Returns:
- transmitterInfo
-
setTransmitterInfo
-
entryType
public BatchJournalResponseJNLS entryType(@Nonnull BatchJournalResponseJNLS.EntryTypeEnum entryType) -
getEntryType
Securities journal discriminator value.- Returns:
- entryType
-
setEntryType
-
errorMessage
-
getErrorMessage
Description of why this journal transaction failed. Omitted for successful results.- Returns:
- errorMessage
-
setErrorMessage
-
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 BatchJournalResponseJNLS 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 BatchJournalResponseJNLS
-
fromJson
Create an instance of BatchJournalResponseJNLS given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BatchJournalResponseJNLS
- Throws:
IOException- if the JSON string is invalid with respect to BatchJournalResponseJNLS
-
toJson
Convert an instance of BatchJournalResponseJNLS to an JSON string- Returns:
- JSON string
-