Package com.plaid.client.model
Class Transaction
- java.lang.Object
-
- com.plaid.client.model.Transaction
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2021-03-31T09:49:55.055Z[GMT]") public class Transaction extends Object
A representation of a transaction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Transaction.PaymentChannelEnum
The channel used to make a payment.static class
Transaction.TransactionTypeEnum
Please use the `payment_channel` field, `transaction_type` will be deprecated in the future.
-
Field Summary
Fields Modifier and Type Field Description static String
SERIALIZED_NAME_ACCOUNT_ID
static String
SERIALIZED_NAME_ACCOUNT_OWNER
static String
SERIALIZED_NAME_AMOUNT
static String
SERIALIZED_NAME_AUTHORIZED_DATE
static String
SERIALIZED_NAME_AUTHORIZED_DATETIME
static String
SERIALIZED_NAME_CATEGORY
static String
SERIALIZED_NAME_CATEGORY_ID
static String
SERIALIZED_NAME_DATE
static String
SERIALIZED_NAME_DATETIME
static String
SERIALIZED_NAME_ISO_CURRENCY_CODE
static String
SERIALIZED_NAME_LOCATION
static String
SERIALIZED_NAME_MERCHANT_NAME
static String
SERIALIZED_NAME_NAME
static String
SERIALIZED_NAME_PAYMENT_CHANNEL
static String
SERIALIZED_NAME_PAYMENT_META
static String
SERIALIZED_NAME_PENDING
static String
SERIALIZED_NAME_PENDING_TRANSACTION_ID
static String
SERIALIZED_NAME_TRANSACTION_CODE
static String
SERIALIZED_NAME_TRANSACTION_ID
static String
SERIALIZED_NAME_TRANSACTION_TYPE
static String
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
-
Constructor Summary
Constructors Constructor Description Transaction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transaction
accountId(String accountId)
Transaction
accountOwner(String accountOwner)
Transaction
addCategoryItem(String categoryItem)
Transaction
amount(Double amount)
Transaction
authorizedDate(String authorizedDate)
Transaction
authorizedDatetime(String authorizedDatetime)
Transaction
category(List<String> category)
Transaction
categoryId(String categoryId)
Transaction
date(String date)
Transaction
datetime(String datetime)
boolean
equals(Object o)
String
getAccountId()
The ID of the account in which this transaction occurred.String
getAccountOwner()
The name of the account owner.Double
getAmount()
The settled value of the transaction, denominated in the account's currency, as stated in `iso_currency_code` or `unofficial_currency_code`.String
getAuthorizedDate()
The date that the transaction was authorized.String
getAuthorizedDatetime()
Date and time when a transaction was authorized in ISO 8601 format ( `YYYY-MM-DDTHH:mm:ssZ` ).List<String>
getCategory()
A hierarchical array of the categories to which this transaction belongs.String
getCategoryId()
The ID of the category to which this transaction belongs.String
getDate()
For pending transactions, the date that the transaction occurred; for posted transactions, the date that the transaction posted.String
getDatetime()
Date and time when a transaction was posted in ISO 8601 format ( `YYYY-MM-DDTHH:mm:ssZ` ).String
getIsoCurrencyCode()
The ISO-4217 currency code of the transaction.Location
getLocation()
Get locationString
getMerchantName()
The merchant name, as extracted by Plaid from the `name` field.String
getName()
The merchant name or transaction description.Transaction.PaymentChannelEnum
getPaymentChannel()
The channel used to make a payment.PaymentMeta
getPaymentMeta()
Get paymentMetaBoolean
getPending()
When `true`, identifies the transaction as pending or unsettled.String
getPendingTransactionId()
The ID of a posted transaction's associated pending transaction, where applicable.TransactionCode
getTransactionCode()
Get transactionCodeString
getTransactionId()
The unique ID of the transaction.Transaction.TransactionTypeEnum
getTransactionType()
Please use the `payment_channel` field, `transaction_type` will be deprecated in the future.String
getUnofficialCurrencyCode()
The unofficial currency code associated with the transaction.int
hashCode()
Transaction
isoCurrencyCode(String isoCurrencyCode)
Transaction
location(Location location)
Transaction
merchantName(String merchantName)
Transaction
name(String name)
Transaction
paymentChannel(Transaction.PaymentChannelEnum paymentChannel)
Transaction
paymentMeta(PaymentMeta paymentMeta)
Transaction
pending(Boolean pending)
Transaction
pendingTransactionId(String pendingTransactionId)
void
setAccountId(String accountId)
void
setAccountOwner(String accountOwner)
void
setAmount(Double amount)
void
setAuthorizedDate(String authorizedDate)
void
setAuthorizedDatetime(String authorizedDatetime)
void
setCategory(List<String> category)
void
setCategoryId(String categoryId)
void
setDate(String date)
void
setDatetime(String datetime)
void
setIsoCurrencyCode(String isoCurrencyCode)
void
setLocation(Location location)
void
setMerchantName(String merchantName)
void
setName(String name)
void
setPaymentChannel(Transaction.PaymentChannelEnum paymentChannel)
void
setPaymentMeta(PaymentMeta paymentMeta)
void
setPending(Boolean pending)
void
setPendingTransactionId(String pendingTransactionId)
void
setTransactionCode(TransactionCode transactionCode)
void
setTransactionId(String transactionId)
void
setTransactionType(Transaction.TransactionTypeEnum transactionType)
void
setUnofficialCurrencyCode(String unofficialCurrencyCode)
String
toString()
Transaction
transactionCode(TransactionCode transactionCode)
Transaction
transactionId(String transactionId)
Transaction
transactionType(Transaction.TransactionTypeEnum transactionType)
Transaction
unofficialCurrencyCode(String unofficialCurrencyCode)
-
-
-
Field Detail
-
SERIALIZED_NAME_TRANSACTION_TYPE
public static final String SERIALIZED_NAME_TRANSACTION_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSACTION_ID
public static final String SERIALIZED_NAME_TRANSACTION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_OWNER
public static final String SERIALIZED_NAME_ACCOUNT_OWNER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PENDING_TRANSACTION_ID
public static final String SERIALIZED_NAME_PENDING_TRANSACTION_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PENDING
public static final String SERIALIZED_NAME_PENDING
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_CHANNEL
public static final String SERIALIZED_NAME_PAYMENT_CHANNEL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_META
public static final String SERIALIZED_NAME_PAYMENT_META
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MERCHANT_NAME
public static final String SERIALIZED_NAME_MERCHANT_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_LOCATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTHORIZED_DATE
public static final String SERIALIZED_NAME_AUTHORIZED_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AUTHORIZED_DATETIME
public static final String SERIALIZED_NAME_AUTHORIZED_DATETIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATE
public static final String SERIALIZED_NAME_DATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DATETIME
public static final String SERIALIZED_NAME_DATETIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORY_ID
public static final String SERIALIZED_NAME_CATEGORY_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CATEGORY
public static final String SERIALIZED_NAME_CATEGORY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
public static final String SERIALIZED_NAME_UNOFFICIAL_CURRENCY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISO_CURRENCY_CODE
public static final String SERIALIZED_NAME_ISO_CURRENCY_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_AMOUNT
public static final String SERIALIZED_NAME_AMOUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCOUNT_ID
public static final String SERIALIZED_NAME_ACCOUNT_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TRANSACTION_CODE
public static final String SERIALIZED_NAME_TRANSACTION_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
transactionType
public Transaction transactionType(Transaction.TransactionTypeEnum transactionType)
-
getTransactionType
@Nullable public Transaction.TransactionTypeEnum 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
public void setTransactionType(Transaction.TransactionTypeEnum transactionType)
-
transactionId
public Transaction transactionId(String transactionId)
-
getTransactionId
public String getTransactionId()
The unique ID of the transaction. Like all Plaid identifiers, the `transaction_id` is case sensitive.- Returns:
- transactionId
-
setTransactionId
public void setTransactionId(String transactionId)
-
accountOwner
public Transaction accountOwner(String accountOwner)
-
getAccountOwner
@Nullable public 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(String accountOwner)
-
pendingTransactionId
public Transaction pendingTransactionId(String pendingTransactionId)
-
getPendingTransactionId
@Nullable public String getPendingTransactionId()
The ID of a posted transaction's associated pending transaction, where applicable.- Returns:
- pendingTransactionId
-
setPendingTransactionId
public void setPendingTransactionId(String pendingTransactionId)
-
pending
public Transaction pending(Boolean pending)
-
getPending
public 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(Boolean pending)
-
paymentChannel
public Transaction paymentChannel(Transaction.PaymentChannelEnum paymentChannel)
-
getPaymentChannel
@Nullable public Transaction.PaymentChannelEnum getPaymentChannel()
The channel used to make a payment. `online:` transactions that took place online. `in store:` transactions that were made at a physical location. `other:` transactions that relate to banks, e.g. fees or deposits. This field replaces the `transaction_type` field.- Returns:
- paymentChannel
-
setPaymentChannel
public void setPaymentChannel(Transaction.PaymentChannelEnum paymentChannel)
-
paymentMeta
public Transaction paymentMeta(PaymentMeta paymentMeta)
-
getPaymentMeta
@Nullable public PaymentMeta getPaymentMeta()
Get paymentMeta- Returns:
- paymentMeta
-
setPaymentMeta
public void setPaymentMeta(PaymentMeta paymentMeta)
-
name
public Transaction name(String name)
-
getName
@Nullable public String getName()
The merchant name or transaction description. If the `transaction` object was returned by a Transactions endpoint such as `/transactions/get`, this field will always appear. If the `transaction` 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(String name)
-
merchantName
public Transaction merchantName(String merchantName)
-
getMerchantName
@Nullable public String getMerchantName()
The merchant name, as extracted by Plaid from the `name` field.- Returns:
- merchantName
-
setMerchantName
public void setMerchantName(String merchantName)
-
location
public Transaction location(Location location)
-
getLocation
@Nullable public Location getLocation()
Get location- Returns:
- location
-
setLocation
public void setLocation(Location location)
-
authorizedDate
public Transaction authorizedDate(String authorizedDate)
-
getAuthorizedDate
@Nullable public String getAuthorizedDate()
The date that the transaction was authorized. Dates are returned in an ISO 8601 format ( `YYYY-MM-DD` ).- Returns:
- authorizedDate
-
setAuthorizedDate
public void setAuthorizedDate(String authorizedDate)
-
authorizedDatetime
public Transaction authorizedDatetime(String authorizedDatetime)
-
getAuthorizedDatetime
@Nullable public String getAuthorizedDatetime()
Date and time when a transaction was authorized in ISO 8601 format ( `YYYY-MM-DDTHH:mm:ssZ` ). This field is only populated for UK institutions. For institutions in other countries, will be `null`.- Returns:
- authorizedDatetime
-
setAuthorizedDatetime
public void setAuthorizedDatetime(String authorizedDatetime)
-
date
public Transaction date(String date)
-
getDate
public String 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 format ( `YYYY-MM-DD` ).- Returns:
- date
-
setDate
public void setDate(String date)
-
datetime
public Transaction datetime(String datetime)
-
getDatetime
@Nullable public String getDatetime()
Date and time when a transaction was posted in ISO 8601 format ( `YYYY-MM-DDTHH:mm:ssZ` ). This field is only populated for UK institutions. For institutions in other countries, will be `null`.- Returns:
- datetime
-
setDatetime
public void setDatetime(String datetime)
-
categoryId
public Transaction categoryId(String categoryId)
-
getCategoryId
@Nullable public String getCategoryId()
The ID of the category to which this transaction belongs. See [Categories](https://plaid.com/docs/#category-overview). If the `transaction` 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(String categoryId)
-
category
public Transaction category(List<String> category)
-
addCategoryItem
public Transaction addCategoryItem(String categoryItem)
-
getCategory
@Nullable public List<String> getCategory()
A hierarchical array of the categories to which this transaction belongs. See [Categories](https://plaid.com/docs/#category-overview). If the `transaction` 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
-
unofficialCurrencyCode
public Transaction unofficialCurrencyCode(String unofficialCurrencyCode)
-
getUnofficialCurrencyCode
@Nullable public 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](/docs/api/accounts#currency-code-schema) for a full listing of supported `iso_currency_code`s.- Returns:
- unofficialCurrencyCode
-
setUnofficialCurrencyCode
public void setUnofficialCurrencyCode(String unofficialCurrencyCode)
-
isoCurrencyCode
public Transaction isoCurrencyCode(String isoCurrencyCode)
-
getIsoCurrencyCode
@Nullable public 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(String isoCurrencyCode)
-
amount
public Transaction amount(Double amount)
-
getAmount
public 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(Double amount)
-
accountId
public Transaction accountId(String accountId)
-
getAccountId
public String getAccountId()
The ID of the account in which this transaction occurred.- Returns:
- accountId
-
setAccountId
public void setAccountId(String accountId)
-
transactionCode
public Transaction transactionCode(TransactionCode transactionCode)
-
getTransactionCode
@Nullable public TransactionCode getTransactionCode()
Get transactionCode- Returns:
- transactionCode
-
setTransactionCode
public void setTransactionCode(TransactionCode transactionCode)
-
-