Class BatchJournalRequest
java.lang.Object
markets.alpaca.client.openapi.broker.model.BatchJournalRequest
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class BatchJournalRequest
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 request of many Journals out of one account to many others at once.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumOnly supports `JNLC` for now -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEntriesItem(BatchJournalRequestEntriesInner entriesItem) description(String description) entries(List<BatchJournalRequestEntriesInner> entries) entryType(BatchJournalRequest.EntryTypeEnum entryType) booleanfromAccount(UUID fromAccount) static BatchJournalRequestCreate an instance of BatchJournalRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Journal description, gets returned in the responseAn array of objects describing which accounts you want to move funds into and how much to move into each accountOnly supports `JNLC` for nowThe account id that is the originator of the funds being moved.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDescription(String description) voidsetEntries(List<BatchJournalRequestEntriesInner> entries) voidsetEntryType(BatchJournalRequest.EntryTypeEnum entryType) voidsetFromAccount(UUID fromAccount) toJson()Convert an instance of BatchJournalRequest 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_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENTRIES
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_FROM_ACCOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
BatchJournalRequest
public BatchJournalRequest()
-
-
Method Details
-
description
-
getDescription
Journal description, gets returned in the response- Returns:
- description
-
setDescription
-
entries
-
addEntriesItem
-
getEntries
An array of objects describing which accounts you want to move funds into and how much to move into each account- Returns:
- entries
-
setEntries
-
entryType
-
getEntryType
Only supports `JNLC` for now- Returns:
- entryType
-
setEntryType
-
fromAccount
-
getFromAccount
The account id that is the originator of the funds being moved. Most likely is your Sweep Firm Account- Returns:
- fromAccount
-
setFromAccount
-
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 BatchJournalRequest 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 BatchJournalRequest
-
fromJson
Create an instance of BatchJournalRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of BatchJournalRequest
- Throws:
IOException- if the JSON string is invalid with respect to BatchJournalRequest
-
toJson
Convert an instance of BatchJournalRequest to an JSON string- Returns:
- JSON string
-