Class TransactionDetail

java.lang.Object
cm.xd.genapi.ynab.model.TransactionDetail

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-04-26T18:05:30.720340+02:00[Europe/Stockholm]", comments="Generator version: 7.21.0") public class TransactionDetail extends Object
TransactionDetail
  • Field Details

  • Constructor Details

    • TransactionDetail

      public TransactionDetail()
  • Method Details

    • id

      public TransactionDetail id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Get id
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • date

      public TransactionDetail date(@Nonnull LocalDate date)
    • getDate

      @Nonnull public LocalDate getDate()
      The transaction date in ISO format (e.g. 2016-12-01)
      Returns:
      date
    • setDate

      public void setDate(@Nonnull LocalDate date)
    • amount

      public TransactionDetail amount(@Nonnull Long amount)
    • getAmount

      @Nonnull public Long getAmount()
      The transaction amount in milliunits format
      Returns:
      amount
    • setAmount

      public void setAmount(@Nonnull Long amount)
    • memo

      public TransactionDetail memo(@Nullable String memo)
    • getMemo

      @Nullable public String getMemo()
      Get memo
      Returns:
      memo
    • setMemo

      public void setMemo(@Nullable String memo)
    • cleared

      public TransactionDetail cleared(@Nonnull TransactionClearedStatus cleared)
    • getCleared

      @Nonnull public TransactionClearedStatus getCleared()
      Get cleared
      Returns:
      cleared
    • setCleared

      public void setCleared(@Nonnull TransactionClearedStatus cleared)
    • approved

      public TransactionDetail approved(@Nonnull Boolean approved)
    • getApproved

      @Nonnull public Boolean getApproved()
      Whether or not the transaction is approved
      Returns:
      approved
    • setApproved

      public void setApproved(@Nonnull Boolean approved)
    • flagColor

      public TransactionDetail flagColor(@Nullable TransactionFlagColor flagColor)
    • getFlagColor

      @Nullable public TransactionFlagColor getFlagColor()
      Get flagColor
      Returns:
      flagColor
    • setFlagColor

      public void setFlagColor(@Nullable TransactionFlagColor flagColor)
    • flagName

      public TransactionDetail flagName(@Nullable String flagName)
    • getFlagName

      @Nullable public String getFlagName()
      The customized name of a transaction flag
      Returns:
      flagName
    • setFlagName

      public void setFlagName(@Nullable String flagName)
    • accountId

      public TransactionDetail accountId(@Nonnull UUID accountId)
    • getAccountId

      @Nonnull public UUID getAccountId()
      Get accountId
      Returns:
      accountId
    • setAccountId

      public void setAccountId(@Nonnull UUID accountId)
    • payeeId

      public TransactionDetail payeeId(@Nullable UUID payeeId)
    • getPayeeId

      @Nullable public UUID getPayeeId()
      Get payeeId
      Returns:
      payeeId
    • setPayeeId

      public void setPayeeId(@Nullable UUID payeeId)
    • categoryId

      public TransactionDetail categoryId(@Nullable UUID categoryId)
    • getCategoryId

      @Nullable public UUID getCategoryId()
      Get categoryId
      Returns:
      categoryId
    • setCategoryId

      public void setCategoryId(@Nullable UUID categoryId)
    • transferAccountId

      public TransactionDetail transferAccountId(@Nullable UUID transferAccountId)
    • getTransferAccountId

      @Nullable public UUID getTransferAccountId()
      If a transfer transaction, the account to which it transfers
      Returns:
      transferAccountId
    • setTransferAccountId

      public void setTransferAccountId(@Nullable UUID transferAccountId)
    • transferTransactionId

      public TransactionDetail transferTransactionId(@Nullable String transferTransactionId)
    • getTransferTransactionId

      @Nullable public String getTransferTransactionId()
      If a transfer transaction, the id of transaction on the other side of the transfer
      Returns:
      transferTransactionId
    • setTransferTransactionId

      public void setTransferTransactionId(@Nullable String transferTransactionId)
    • matchedTransactionId

      public TransactionDetail matchedTransactionId(@Nullable String matchedTransactionId)
    • getMatchedTransactionId

      @Nullable public String getMatchedTransactionId()
      If transaction is matched, the id of the matched transaction
      Returns:
      matchedTransactionId
    • setMatchedTransactionId

      public void setMatchedTransactionId(@Nullable String matchedTransactionId)
    • importId

      public TransactionDetail importId(@Nullable String importId)
    • getImportId

      @Nullable public String getImportId()
      If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurrence]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
      Returns:
      importId
    • setImportId

      public void setImportId(@Nullable String importId)
    • importPayeeName

      public TransactionDetail importPayeeName(@Nullable String importPayeeName)
    • getImportPayeeName

      @Nullable public String getImportPayeeName()
      If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules
      Returns:
      importPayeeName
    • setImportPayeeName

      public void setImportPayeeName(@Nullable String importPayeeName)
    • importPayeeNameOriginal

      public TransactionDetail importPayeeNameOriginal(@Nullable String importPayeeNameOriginal)
    • getImportPayeeNameOriginal

      @Nullable public String getImportPayeeNameOriginal()
      If the transaction was imported, the original payee name as it appeared on the statement
      Returns:
      importPayeeNameOriginal
    • setImportPayeeNameOriginal

      public void setImportPayeeNameOriginal(@Nullable String importPayeeNameOriginal)
    • debtTransactionType

      public TransactionDetail debtTransactionType(@Nullable TransactionDetail.DebtTransactionTypeEnum debtTransactionType)
    • getDebtTransactionType

      @Nullable public TransactionDetail.DebtTransactionTypeEnum getDebtTransactionType()
      If the transaction is a debt/loan account transaction, the type of transaction
      Returns:
      debtTransactionType
    • setDebtTransactionType

      public void setDebtTransactionType(@Nullable TransactionDetail.DebtTransactionTypeEnum debtTransactionType)
    • deleted

      public TransactionDetail deleted(@Nonnull Boolean deleted)
    • getDeleted

      @Nonnull public Boolean getDeleted()
      Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
      Returns:
      deleted
    • setDeleted

      public void setDeleted(@Nonnull Boolean deleted)
    • amountFormatted

      public TransactionDetail amountFormatted(@Nullable String amountFormatted)
    • getAmountFormatted

      @Nullable public String getAmountFormatted()
      The transaction amount formatted in the plan's currency format
      Returns:
      amountFormatted
    • setAmountFormatted

      public void setAmountFormatted(@Nullable String amountFormatted)
    • amountCurrency

      public TransactionDetail amountCurrency(@Nullable Double amountCurrency)
    • getAmountCurrency

      @Nullable public Double getAmountCurrency()
      The transaction amount as a decimal currency amount
      Returns:
      amountCurrency
    • setAmountCurrency

      public void setAmountCurrency(@Nullable Double amountCurrency)
    • accountName

      public TransactionDetail accountName(@Nonnull String accountName)
    • getAccountName

      @Nonnull public String getAccountName()
      Get accountName
      Returns:
      accountName
    • setAccountName

      public void setAccountName(@Nonnull String accountName)
    • payeeName

      public TransactionDetail payeeName(@Nullable String payeeName)
    • getPayeeName

      @Nullable public String getPayeeName()
      Get payeeName
      Returns:
      payeeName
    • setPayeeName

      public void setPayeeName(@Nullable String payeeName)
    • categoryName

      public TransactionDetail categoryName(@Nullable String categoryName)
    • getCategoryName

      @Nullable public String getCategoryName()
      The name of the category. If a split transaction, this will be 'Split'.
      Returns:
      categoryName
    • setCategoryName

      public void setCategoryName(@Nullable String categoryName)
    • subtransactions

      public TransactionDetail subtransactions(@Nonnull List<SubTransaction> subtransactions)
    • addSubtransactionsItem

      public TransactionDetail addSubtransactionsItem(SubTransaction subtransactionsItem)
    • getSubtransactions

      @Nonnull public List<SubTransaction> getSubtransactions()
      If a split transaction, the subtransactions.
      Returns:
      subtransactions
    • setSubtransactions

      public void setSubtransactions(@Nonnull List<SubTransaction> subtransactions)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 TransactionDetail
    • fromJson

      public static TransactionDetail fromJson(String jsonString) throws IOException
      Create an instance of TransactionDetail given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of TransactionDetail
      Throws:
      IOException - if the JSON string is invalid with respect to TransactionDetail
    • toJson

      public String toJson()
      Convert an instance of TransactionDetail to an JSON string
      Returns:
      JSON string