Class JNLC
java.lang.Object
markets.alpaca.client.openapi.broker.model.JNLC
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.25.0")
public class JNLC
extends Object
implements Serializable
A cash journal response with all shared Journal fields.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumCash 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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) description(String description) entryType(JNLC.EntryTypeEnum entryType) booleanfromAccount(UUID fromAccount) static JNLCCreate an instance of JNLC 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.Cash journal discriminator value.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.Optional for JNLC journals.Optional for JNLC journals.Optional for JNLC journals.Get transmitterInfoOptional for JNLC journals.Optional for JNLC journals.inthashCode()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) voidsetEntryType(JNLC.EntryTypeEnum entryType) 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) voidsetTransmitterAccountNumber(String transmitterAccountNumber) voidsetTransmitterAddress(String transmitterAddress) voidsetTransmitterFinancialInstitution(String transmitterFinancialInstitution) voidsetTransmitterInfo(TransmitterInfo transmitterInfo) voidsetTransmitterName(String transmitterName) voidsetTransmitterTimestamp(OffsetDateTime transmitterTimestamp) status(JournalStatus status) systemDate(LocalDate systemDate) toJson()Convert an instance of JNLC 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_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_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
-
JNLC
public JNLC()
-
-
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
-
getEntryType
Cash journal discriminator value.- Returns:
- entryType
-
setEntryType
-
transmitterAccountNumber
-
getTransmitterAccountNumber
Optional for JNLC journals. Maximum 255 characters. See more details about [Travel Rule](https://alpaca.markets/docs/broker/integration/funding/#travel-rule) in our main documentation.- Returns:
- transmitterAccountNumber
-
setTransmitterAccountNumber
-
transmitterAddress
-
getTransmitterAddress
Optional for JNLC journals. Maximum 255 characters. See more details about [Travel Rule](https://alpaca.markets/docs/broker/integration/funding/#travel-rule) in our main documentation.- Returns:
- transmitterAddress
-
setTransmitterAddress
-
transmitterFinancialInstitution
-
getTransmitterFinancialInstitution
Optional for JNLC journals. Maximum 255 characters. See more details about [Travel Rule](https://alpaca.markets/docs/broker/integration/funding/#travel-rule) in our main documentation.- Returns:
- transmitterFinancialInstitution
-
setTransmitterFinancialInstitution
-
transmitterName
-
getTransmitterName
Optional for JNLC journals. Maximum 255 characters. See more details about [Travel Rule](https://alpaca.markets/docs/broker/integration/funding/#travel-rule) in our main documentation.- Returns:
- transmitterName
-
setTransmitterName
-
transmitterTimestamp
-
getTransmitterTimestamp
Optional for JNLC journals. RFC 3339 format. See more details about [Travel Rule](https://alpaca.markets/docs/broker/integration/funding/#travel-rule) in our main documentation.- 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 JNLC 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 JNLC
-
fromJson
Create an instance of JNLC given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of JNLC
- Throws:
IOException- if the JSON string is invalid with respect to JNLC
-
toJson
Convert an instance of JNLC to an JSON string- Returns:
- JSON string
-