Class CreateJournalRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.CreateJournalRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class CreateJournalRequest
extends Object
implements Serializable
Journals API allows you to move cash or securities from one account to another. This model represents the fields you can specify when creating a Journal Fixture Rules - No Fixtures - anything below limit is executed immediately - anything above limit is pending until executed at EOD, - With Fixtures - any status = rejected will be rejected EOD - any status = pending will be pending forever
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) entryType(JournalEntryType entryType) booleanfromAccount(UUID fromAccount) static CreateJournalRequestCreate an instance of CreateJournalRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Required if `entry_type` = `JNLC`Get currencyMax 1024 characters.Get entryTypeThe account_id you wish to journal fromgetQty()Required if `entry_type` = `JNLS`Required if `entry_type` = `JNLS`The account_id you wish to journal toMax 255 characters.Max 255 characters.Max 255 characters.Max 255 characters.RFC 3339 format.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetCurrency(String currency) voidsetDescription(String description) voidsetEntryType(JournalEntryType entryType) voidsetFromAccount(UUID fromAccount) voidvoidvoidsetToAccount(UUID toAccount) voidsetTransmitterAccountNumber(String transmitterAccountNumber) voidsetTransmitterAddress(String transmitterAddress) voidsetTransmitterFinancialInstitution(String transmitterFinancialInstitution) voidsetTransmitterName(String transmitterName) voidsetTransmitterTimestamp(OffsetDateTime transmitterTimestamp) toJson()Convert an instance of CreateJournalRequest to an JSON stringtoString()transmitterAccountNumber(String transmitterAccountNumber) transmitterAddress(String transmitterAddress) transmitterFinancialInstitution(String transmitterFinancialInstitution) 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_AMOUNT
- See Also:
-
SERIALIZED_NAME_CURRENCY
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_FROM_ACCOUNT
- See Also:
-
SERIALIZED_NAME_QTY
- See Also:
-
SERIALIZED_NAME_SYMBOL
- See Also:
-
SERIALIZED_NAME_TO_ACCOUNT
- 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
-
CreateJournalRequest
public CreateJournalRequest()
-
-
Method Details
-
amount
-
getAmount
Required if `entry_type` = `JNLC`- Returns:
- amount
-
setAmount
-
currency
-
getCurrency
Get currency- Returns:
- currency
-
setCurrency
-
description
-
getDescription
Max 1024 characters. Can include fixtures for amounts that are above the transaction limit- Returns:
- description
-
setDescription
-
entryType
-
getEntryType
Get entryType- Returns:
- entryType
-
setEntryType
-
fromAccount
-
getFromAccount
The account_id you wish to journal from- Returns:
- fromAccount
-
setFromAccount
-
qty
-
getQty
Required if `entry_type` = `JNLS`- Returns:
- qty
-
setQty
-
symbol
-
getSymbol
Required if `entry_type` = `JNLS`- Returns:
- symbol
-
setSymbol
-
toAccount
-
getToAccount
The account_id you wish to journal to- Returns:
- toAccount
-
setToAccount
-
transmitterAccountNumber
-
getTransmitterAccountNumber
Max 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
Max 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
public CreateJournalRequest transmitterFinancialInstitution(@Nullable String transmitterFinancialInstitution) -
getTransmitterFinancialInstitution
Max 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
Max 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
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 CreateJournalRequest 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 CreateJournalRequest
-
fromJson
Create an instance of CreateJournalRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CreateJournalRequest
- Throws:
IOException- if the JSON string is invalid with respect to CreateJournalRequest
-
toJson
Convert an instance of CreateJournalRequest to an JSON string- Returns:
- JSON string
-