Class AssetReportTransaction

java.lang.Object
com.plaid.client.model.AssetReportTransaction

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
           date="2021-08-13T23:02:46.991Z[GMT]")
public class AssetReportTransaction
extends java.lang.Object
AssetReportTransaction
  • 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
    • SERIALIZED_NAME_DATE_TRANSACTED

      public static final java.lang.String SERIALIZED_NAME_DATE_TRANSACTED
      See Also:
      Constant Field Values
  • Constructor Details

    • AssetReportTransaction

      public AssetReportTransaction()
  • Method Details

    • transactionType

      public AssetReportTransaction transactionType​(AssetReportTransaction.TransactionTypeEnum transactionType)
    • getTransactionType

      @Nullable public AssetReportTransaction.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​(AssetReportTransaction.TransactionTypeEnum transactionType)
    • pendingTransactionId

      public AssetReportTransaction pendingTransactionId​(java.lang.String 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

      public AssetReportTransaction categoryId​(java.lang.String 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

      public AssetReportTransaction category​(java.util.List<java.lang.String> category)
    • addCategoryItem

      public AssetReportTransaction addCategoryItem​(java.lang.String categoryItem)
    • 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

      public AssetReportTransaction location​(Location location)
    • getLocation

      @Nullable public Location getLocation()
      Get location
      Returns:
      location
    • setLocation

      public void setLocation​(Location location)
    • paymentMeta

      public AssetReportTransaction paymentMeta​(PaymentMeta paymentMeta)
    • getPaymentMeta

      @Nullable public PaymentMeta getPaymentMeta()
      Get paymentMeta
      Returns:
      paymentMeta
    • setPaymentMeta

      public void setPaymentMeta​(PaymentMeta paymentMeta)
    • accountOwner

      public AssetReportTransaction accountOwner​(java.lang.String 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

      public AssetReportTransaction name​(java.lang.String 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

      public AssetReportTransaction originalDescription​(java.lang.String 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

      public AssetReportTransaction accountId​(java.lang.String 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

      public AssetReportTransaction amount​(java.lang.Double 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

      public AssetReportTransaction isoCurrencyCode​(java.lang.String 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

      public AssetReportTransaction unofficialCurrencyCode​(java.lang.String 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

      public AssetReportTransaction date​(java.time.LocalDate 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 format ( `YYYY-MM-DD` ).
      Returns:
      date
    • setDate

      public void setDate​(java.time.LocalDate date)
    • pending

      public AssetReportTransaction pending​(java.lang.Boolean 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

      public AssetReportTransaction transactionId​(java.lang.String 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)
    • dateTransacted

      public AssetReportTransaction dateTransacted​(java.lang.String dateTransacted)
    • getDateTransacted

      @Nullable public java.lang.String getDateTransacted()
      The date on which the transaction took place, in IS0 8601 format.
      Returns:
      dateTransacted
    • setDateTransacted

      public void setDateTransacted​(java.lang.String dateTransacted)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object