Class Transaction
java.lang.Object
markets.alpaca.client.openapi.broker.model.Transaction
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class Transaction
extends Object
implements Serializable
Transaction
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountName(String accountName) contraAccountName(String contraAccountName) description(String description) booleanstatic TransactionCreate an instance of Transaction given an JSON stringThe ledger IDThe ledger nameThe ledger account numberReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Total amount of the transactionEnding balance after thetransaction has been appliedContra account of transactionPlain text overview of the transactionType of transactionDate of transactioninthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAccountId(String accountId) voidsetAccountName(String accountName) voidsetAccountNo(String accountNo) voidvoidsetBalance(String balance) voidsetContraAccountName(String contraAccountName) voidsetDescription(String description) voidsetEntryType(String entryType) voidsetSystemDate(String systemDate) systemDate(String systemDate) toJson()Convert an instance of Transaction 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_ACCOUNT_ID
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NAME
- See Also:
-
SERIALIZED_NAME_ACCOUNT_NO
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_CONTRA_ACCOUNT_NAME
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_ENTRY_TYPE
- See Also:
-
SERIALIZED_NAME_SYSTEM_DATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Transaction
public Transaction()
-
-
Method Details
-
accountId
-
getAccountId
The ledger ID- Returns:
- accountId
-
setAccountId
-
accountName
-
getAccountName
The ledger name- Returns:
- accountName
-
setAccountName
-
accountNo
-
getAccountNo
The ledger account number- Returns:
- accountNo
-
setAccountNo
-
amount
-
getAmount
Total amount of the transaction- Returns:
- amount
-
setAmount
-
balance
-
getBalance
Ending balance after thetransaction has been applied- Returns:
- balance
-
setBalance
-
contraAccountName
-
getContraAccountName
Contra account of transaction- Returns:
- contraAccountName
-
setContraAccountName
-
description
-
getDescription
Plain text overview of the transaction- Returns:
- description
-
setDescription
-
entryType
-
getEntryType
Type of transaction- Returns:
- entryType
-
setEntryType
-
systemDate
-
getSystemDate
Date of transaction- Returns:
- systemDate
-
setSystemDate
-
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 Transaction 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 Transaction
-
fromJson
Create an instance of Transaction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Transaction
- Throws:
IOException- if the JSON string is invalid with respect to Transaction
-
toJson
Convert an instance of Transaction to an JSON string- Returns:
- JSON string
-