Package com.plaid.client.model
Class TransactionBase
java.lang.Object
com.plaid.client.model.TransactionBase
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2021-10-15T19:47:39.714Z[GMT]")
public class TransactionBase
extends java.lang.Object
A representation of a transaction
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransactionBase.TransactionTypeEnum
Please use the `payment_channel` field, `transaction_type` will be deprecated in the future. -
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SERIALIZED_NAME_ACCOUNT_ID
static java.lang.String
SERIALIZED_NAME_ACCOUNT_OWNER
static java.lang.String
SERIALIZED_NAME_AMOUNT
static java.lang.String
SERIALIZED_NAME_CATEGORY
static java.lang.String
SERIALIZED_NAME_CATEGORY_ID
static java.lang.String
SERIALIZED_NAME_DATE
static java.lang.String
SERIALIZED_NAME_ISO_CURRENCY_CODE
static java.lang.String
SERIALIZED_NAME_LOCATION
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_ORIGINAL_DESCRIPTION
static java.lang.String
SERIALIZED_NAME_PAYMENT_META
static java.lang.String
SERIALIZED_NAME_PENDING
static java.lang.String
SERIALIZED_NAME_PENDING_TRANSACTION_ID
static java.lang.String
SERIALIZED_NAME_TRANSACTION_ID
static java.lang.String
SERIALIZED_NAME_TRANSACTION_TYPE
static java.lang.String
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
-
Constructor Summary
Constructors Constructor Description TransactionBase()
-
Method Summary
Modifier and Type Method Description TransactionBase
accountId(java.lang.String accountId)
TransactionBase
accountOwner(java.lang.String accountOwner)
TransactionBase
addCategoryItem(java.lang.String categoryItem)
TransactionBase
amount(java.lang.Double amount)
TransactionBase
category(java.util.List<java.lang.String> category)
TransactionBase
categoryId(java.lang.String categoryId)
TransactionBase
date(java.time.LocalDate date)
boolean
equals(java.lang.Object o)
java.lang.String
getAccountId()
The ID of the account in which this transaction occurred.java.lang.String
getAccountOwner()
The name of the account owner.java.lang.Double
getAmount()
The settled value of the transaction, denominated in the account's currency, as stated in `iso_currency_code` or `unofficial_currency_code`.java.util.List<java.lang.String>
getCategory()
A hierarchical array of the categories to which this transaction belongs.java.lang.String
getCategoryId()
The ID of the category to which this transaction belongs.java.time.LocalDate
getDate()
For pending transactions, the date that the transaction occurred; for posted transactions, the date that the transaction posted.java.lang.String
getIsoCurrencyCode()
The ISO-4217 currency code of the transaction.Location
getLocation()
Get locationjava.lang.String
getName()
The merchant name or transaction description.java.lang.String
getOriginalDescription()
The string returned by the financial institution to describe the transaction.PaymentMeta
getPaymentMeta()
Get paymentMetajava.lang.Boolean
getPending()
When `true`, identifies the transaction as pending or unsettled.java.lang.String
getPendingTransactionId()
The ID of a posted transaction's associated pending transaction, where applicable.java.lang.String
getTransactionId()
The unique ID of the transaction.TransactionBase.TransactionTypeEnum
getTransactionType()
Please use the `payment_channel` field, `transaction_type` will be deprecated in the future.java.lang.String
getUnofficialCurrencyCode()
The unofficial currency code associated with the transaction.int
hashCode()
TransactionBase
isoCurrencyCode(java.lang.String isoCurrencyCode)
TransactionBase
location(Location location)
TransactionBase
name(java.lang.String name)
TransactionBase
originalDescription(java.lang.String originalDescription)
TransactionBase
paymentMeta(PaymentMeta paymentMeta)
TransactionBase
pending(java.lang.Boolean pending)
TransactionBase
pendingTransactionId(java.lang.String pendingTransactionId)
void
setAccountId(java.lang.String accountId)
void
setAccountOwner(java.lang.String accountOwner)
void
setAmount(java.lang.Double amount)
void
setCategory(java.util.List<java.lang.String> category)
void
setCategoryId(java.lang.String categoryId)
void
setDate(java.time.LocalDate date)
void
setIsoCurrencyCode(java.lang.String isoCurrencyCode)
void
setLocation(Location location)
void
setName(java.lang.String name)
void
setOriginalDescription(java.lang.String originalDescription)
void
setPaymentMeta(PaymentMeta paymentMeta)
void
setPending(java.lang.Boolean pending)
void
setPendingTransactionId(java.lang.String pendingTransactionId)
void
setTransactionId(java.lang.String transactionId)
void
setTransactionType(TransactionBase.TransactionTypeEnum transactionType)
void
setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
java.lang.String
toString()
TransactionBase
transactionId(java.lang.String transactionId)
TransactionBase
transactionType(TransactionBase.TransactionTypeEnum transactionType)
TransactionBase
unofficialCurrencyCode(java.lang.String unofficialCurrencyCode)
-
Field Details
-
SERIALIZED_NAME_TRANSACTION_TYPE
public static final java.lang.String SERIALIZED_NAME_TRANSACTION_TYPE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PENDING_TRANSACTION_ID
public static final java.lang.String SERIALIZED_NAME_PENDING_TRANSACTION_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORY_ID
public static final java.lang.String SERIALIZED_NAME_CATEGORY_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORY
public static final java.lang.String SERIALIZED_NAME_CATEGORY- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCATION
public static final java.lang.String SERIALIZED_NAME_LOCATION- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_META
public static final java.lang.String SERIALIZED_NAME_PAYMENT_META- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_OWNER
public static final java.lang.String SERIALIZED_NAME_ACCOUNT_OWNER- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ORIGINAL_DESCRIPTION
public static final java.lang.String SERIALIZED_NAME_ORIGINAL_DESCRIPTION- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_ID
public static final java.lang.String SERIALIZED_NAME_ACCOUNT_ID- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final java.lang.String SERIALIZED_NAME_AMOUNT- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISO_CURRENCY_CODE
public static final java.lang.String SERIALIZED_NAME_ISO_CURRENCY_CODE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
public static final java.lang.String SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATE
public static final java.lang.String SERIALIZED_NAME_DATE- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PENDING
public static final java.lang.String SERIALIZED_NAME_PENDING- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSACTION_ID
public static final java.lang.String SERIALIZED_NAME_TRANSACTION_ID- See Also:
- Constant Field Values
-
-
Constructor Details
-
TransactionBase
public TransactionBase()
-
-
Method Details
-
transactionType
-
getTransactionType
Please use the `payment_channel` field, `transaction_type` will be deprecated in the future. `digital:` transactions that took place online. `place:` transactions that were made at a physical location. `special:` transactions that relate to banks, e.g. fees or deposits. `unresolved:` transactions that do not fit into the other three types.- Returns:
- transactionType
-
setTransactionType
-
pendingTransactionId
-
getPendingTransactionId
@Nullable public java.lang.String getPendingTransactionId()The ID of a posted transaction's associated pending transaction, where applicable.- Returns:
- pendingTransactionId
-
setPendingTransactionId
public void setPendingTransactionId(java.lang.String pendingTransactionId) -
categoryId
-
getCategoryId
@Nullable public java.lang.String getCategoryId()The ID of the category to which this transaction belongs. See [Categories](https://plaid.com/docs/#category-overview). If the `transactions` object was returned by an Assets endpoint such as `/asset_report/get/` or `/asset_report/pdf/get`, this field will only appear in an Asset Report with Insights.- Returns:
- categoryId
-
setCategoryId
public void setCategoryId(java.lang.String categoryId) -
category
-
addCategoryItem
-
getCategory
@Nullable public java.util.List<java.lang.String> getCategory()A hierarchical array of the categories to which this transaction belongs. See [Categories](https://plaid.com/docs/#category-overview). If the `transactions` object was returned by an Assets endpoint such as `/asset_report/get/` or `/asset_report/pdf/get`, this field will only appear in an Asset Report with Insights.- Returns:
- category
-
setCategory
public void setCategory(java.util.List<java.lang.String> category) -
location
-
getLocation
Get location- Returns:
- location
-
setLocation
-
paymentMeta
-
getPaymentMeta
Get paymentMeta- Returns:
- paymentMeta
-
setPaymentMeta
-
accountOwner
-
getAccountOwner
@Nullable public java.lang.String getAccountOwner()The name of the account owner. This field is not typically populated and only relevant when dealing with sub-accounts.- Returns:
- accountOwner
-
setAccountOwner
public void setAccountOwner(java.lang.String accountOwner) -
name
-
getName
@Nullable public java.lang.String getName()The merchant name or transaction description. If the `transactions` object was returned by a Transactions endpoint such as `/transactions/get`, this field will always appear. If the `transactions` object was returned by an Assets endpoint such as `/asset_report/get/` or `/asset_report/pdf/get`, this field will only appear in an Asset Report with Insights.- Returns:
- name
-
setName
public void setName(java.lang.String name) -
originalDescription
-
getOriginalDescription
@Nullable public java.lang.String getOriginalDescription()The string returned by the financial institution to describe the transaction. For transactions returned by `/transactions/get`, this field is in beta and will be omitted unless the client is both enrolled in the closed beta program and has set `options.include_original_description` to `true`.- Returns:
- originalDescription
-
setOriginalDescription
public void setOriginalDescription(java.lang.String originalDescription) -
accountId
-
getAccountId
public java.lang.String getAccountId()The ID of the account in which this transaction occurred.- Returns:
- accountId
-
setAccountId
public void setAccountId(java.lang.String accountId) -
amount
-
getAmount
public java.lang.Double getAmount()The settled value of the transaction, denominated in the account's currency, as stated in `iso_currency_code` or `unofficial_currency_code`. Positive values when money moves out of the account; negative values when money moves in. For example, debit card purchases are positive; credit card payments, direct deposits, and refunds are negative.- Returns:
- amount
-
setAmount
public void setAmount(java.lang.Double amount) -
isoCurrencyCode
-
getIsoCurrencyCode
@Nullable public java.lang.String getIsoCurrencyCode()The ISO-4217 currency code of the transaction. Always `null` if `unofficial_currency_code` is non-null.- Returns:
- isoCurrencyCode
-
setIsoCurrencyCode
public void setIsoCurrencyCode(java.lang.String isoCurrencyCode) -
unofficialCurrencyCode
-
getUnofficialCurrencyCode
@Nullable public java.lang.String getUnofficialCurrencyCode()The unofficial currency code associated with the transaction. Always `null` if `iso_currency_code` is non-`null`. Unofficial currency codes are used for currencies that do not have official ISO currency codes, such as cryptocurrencies and the currencies of certain countries. See the [currency code schema](https://plaid.com/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s.- Returns:
- unofficialCurrencyCode
-
setUnofficialCurrencyCode
public void setUnofficialCurrencyCode(java.lang.String unofficialCurrencyCode) -
date
-
getDate
public java.time.LocalDate getDate()For pending transactions, the date that the transaction occurred; for posted transactions, the date that the transaction posted. Both dates are returned in an [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format ( `YYYY-MM-DD` ).- Returns:
- date
-
setDate
public void setDate(java.time.LocalDate date) -
pending
-
getPending
public java.lang.Boolean getPending()When `true`, identifies the transaction as pending or unsettled. Pending transaction details (name, type, amount, category ID) may change before they are settled.- Returns:
- pending
-
setPending
public void setPending(java.lang.Boolean pending) -
transactionId
-
getTransactionId
public java.lang.String getTransactionId()The unique ID of the transaction. Like all Plaid identifiers, the `transaction_id` is case sensitive.- Returns:
- transactionId
-
setTransactionId
public void setTransactionId(java.lang.String transactionId) -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-