Class OnlineTxn

    • Constructor Detail

      • OnlineTxn

        public OnlineTxn()
      • OnlineTxn

        public OnlineTxn​(com.infinitekind.tiksync.SyncRecord info)
      • OnlineTxn

        public OnlineTxn​(OnlineTxnList txnList,
                         com.infinitekind.tiksync.SyncRecord info)
    • Method Detail

      • containsSameFields

        public boolean containsSameFields​(OnlineTxn otherTxn)
        Return whether the given transaction is the same as the current one, for all fields. This is used when examining downloaded corrections to see if they are actually different from the already applied downloaded transaction.
        Since:
        Moneydance 2017.3 build 1614
      • setAllowDuplicateIDs

        public void setAllowDuplicateIDs​(boolean allowDuplicates)
        Sets whether or not this transaction is allowed to have the same FI transaction ID as another transaction that is already in an OnlineTxnList. If allowDuplicates is false, then it will not be possible to add this transaction to a list if another transaction in the list has the same FI transaction ID.
      • getAllowDuplicateIDs

        public boolean getAllowDuplicateIDs()
        Gets whether or not this transaction is allowed to have the same FI transaction ID as another transaction that is already in an OnlineTxnList.
      • getProtocolType

        public int getProtocolType()
      • setProtocolType

        public void setProtocolType​(int protocolType)
      • getLocalStatus

        public int getLocalStatus()
      • setLocalStatus

        public void setLocalStatus​(int localStatus)
      • setName

        public void setName​(java.lang.String name)
      • getName

        public java.lang.String getName()
      • setAmount

        public void setAmount​(long amount)
      • getAmount

        public long getAmount()
      • getAmount

        public long getAmount​(Account contextAccount)
      • setMemo

        public void setMemo​(java.lang.String memo)
      • getMemo

        public java.lang.String getMemo()
      • setCategoryName

        public void setCategoryName​(java.lang.String newCategory)
      • getCategoryName

        public java.lang.String getCategoryName()
      • getDate

        public int getDate()
        Returns the date posted, or the initiation date if no posting date is available. Normally the other getDate methods should be used as this is a shortcut.
      • setDateInitiatedInt

        public void setDateInitiatedInt​(int dateInitiated)
      • setDateInitiated

        public void setDateInitiated​(long dateInitiated)
      • getDateInitiated

        public long getDateInitiated()
      • getDateInitiatedInt

        public int getDateInitiatedInt()
      • setDatePostedInt

        public void setDatePostedInt​(int datePosted)
      • setDatePosted

        public void setDatePosted​(long datePosted)
      • getDatePosted

        public long getDatePosted()
      • getDatePostedInt

        public int getDatePostedInt()
      • getSortDateInt

        public int getSortDateInt()
        Return the date for the purposes of sorting this transaction against other transactions.
      • getTradeDateInt

        public int getTradeDateInt()
        Return the date that this transaction was initated (or traded, if an investment txn)
      • setDateAvailableInt

        public void setDateAvailableInt​(int dateAvail)
      • setDateAvailable

        public void setDateAvailable​(long dateAvail)
      • getDateAvailable

        public long getDateAvailable()
      • getDateAvailableInt

        public long getDateAvailableInt()
      • setTxnType

        public void setTxnType​(java.lang.String txnType)
      • getTxnType

        public java.lang.String getTxnType()
      • setFITxnId

        public void setFITxnId​(java.lang.String fiTxnId)
      • getFITxnId

        public java.lang.String getFITxnId()
      • setCorrectedFITxnID

        public void setCorrectedFITxnID​(java.lang.String correctsFITxnID)
      • getCorrectedFITxnID

        public java.lang.String getCorrectedFITxnID()
      • setCorrectionAction

        public void setCorrectionAction​(int correctionAction)
      • getCorrectionAction

        public int getCorrectionAction()
      • setServerTxnID

        public void setServerTxnID​(java.lang.String serverTxnID)
      • getServerTxnID

        public java.lang.String getServerTxnID()
      • setRefNum

        public void setRefNum​(java.lang.String refNum)
      • getRefNum

        public java.lang.String getRefNum()
      • setSIC

        public void setSIC​(java.lang.String sic)
      • getSIC

        public java.lang.String getSIC()
      • setPayeeID

        public void setPayeeID​(java.lang.String payeeID)
      • getPayeeID

        public java.lang.String getPayeeID()
      • setCheckNum

        public void setCheckNum​(java.lang.String checkNum)
      • getCheckNum

        public java.lang.String getCheckNum()
      • getFIID

        public java.lang.String getFIID()
        Get the unique string that identifies the FI from which this txn was downloaded.
      • setFIID

        public void setFIID​(java.lang.String fiID)
        Set the unique string that identifies the FI from which this txn was downloaded.
      • setHasBankAcctTo

        public void setHasBankAcctTo​(boolean hasBankAcctTo)
        Set whether or not there is destination bank account info.
        Specified by:
        setHasBankAcctTo in interface OnlineBankAcctToInterface
      • setAcctToAcctID

        public void setAcctToAcctID​(java.lang.String toBankAccountID)
        set info identifying the account to transfer the money to/from if this was a transfer to/from a bank account
        Specified by:
        setAcctToAcctID in interface OnlineBankAcctToInterface
      • getAcctToAcctID

        public java.lang.String getAcctToAcctID()
        get info identifying the account to transfer the money to/from if this was a transfer to/from a bank account
        Specified by:
        getAcctToAcctID in interface OnlineBankAcctToInterface
      • setAcctToBankID

        public void setAcctToBankID​(java.lang.String toBankBankID)
        set info identifying the bank to transfer the money to/from if this was a transfer to/from a bank account
        Specified by:
        setAcctToBankID in interface OnlineBankAcctToInterface
      • getAcctToBankID

        public java.lang.String getAcctToBankID()
        get info identifying the bank to transfer the money to/from if this was a transfer to/from a bank account
        Specified by:
        getAcctToBankID in interface OnlineBankAcctToInterface
      • setHasExtendedAcctToInfo

        public void setHasExtendedAcctToInfo​(boolean hasExtdInfo)
        Set whether or not this payee has extended to-account information available.
        Specified by:
        setHasExtendedAcctToInfo in interface OnlineBankAcctToInterface
      • setHasCCAcctTo

        public void setHasCCAcctTo​(boolean hasCCAcctTo)
        Set whether or not there is destination credit card account info.
        Specified by:
        setHasCCAcctTo in interface OnlineCCAcctToInterface
      • setToCCAccountNum

        public void setToCCAccountNum​(java.lang.String toCCAccountNum)
        set info identifying the account to transfer the money to/from if this was a transfer to/from a credit card.
        Specified by:
        setToCCAccountNum in interface OnlineCCAcctToInterface
      • getTOCCAccountNum

        public java.lang.String getTOCCAccountNum()
        get info identifying the account to transfer the money to/from if this was a transfer to/from a credit card.
        Specified by:
        getTOCCAccountNum in interface OnlineCCAcctToInterface
      • getSubAccountFund

        public java.lang.String getSubAccountFund()
        Returns the sub-account label for this transaction. This can be CASH, MARGIN, SHORT, or OTHER This only applies to online investment transactions.
      • setSubAccountFund

        public void setSubAccountFund​(java.lang.String newSubAcctFund)
        Sets the sub-account label for this transaction. This can be CASH, MARGIN, SHORT, or OTHER This only applies to online investment transactions.
      • getOFXTxnType

        public java.lang.String getOFXTxnType()
        Gets the OFX transaction type for this transaction. This will be one of: INVBANKTRANTRANSFER, SPLIT SELLSTOCK, SELLOTHER SELLOPT, SELLMF, SELLDEBT, RETOFCAP, REINVEST, MARGININTEREST, JRNLSEC JRNLFUND, INVEXPENSE, INCOME, CLOSUREOPT, BUYSTOCK, BUYOTHER, BUYOPT BUYMF, BUYDEBT
      • setOFXTxnType

        public void setOFXTxnType​(java.lang.String txnType)
      • getSecurityID

        public java.lang.String getSecurityID()
      • setSecurityID

        public void setSecurityID​(java.lang.String securityID)
      • getSecurityIDType

        public java.lang.String getSecurityIDType()
      • setSecurityIDType

        public void setSecurityIDType​(java.lang.String securityIDType)
      • getReinvest

        public boolean getReinvest()
      • setReinvest

        public void setReinvest​(boolean reinvest)
      • getInvestTxnType

        public java.lang.String getInvestTxnType()
      • setInvestTxnType

        public void setInvestTxnType​(java.lang.String txnTypeID)
      • getIncomeType

        public java.lang.String getIncomeType()
      • setIncomeType

        public void setIncomeType​(java.lang.String incomeType)
      • getSubAccountType

        public java.lang.String getSubAccountType()
      • setSubAccountType

        public void setSubAccountType​(java.lang.String subAcctType)
      • getNumShares

        public java.lang.String getNumShares()
      • setNumShares

        public void setNumShares​(java.lang.String numShares)
      • getSharePrice

        public java.lang.String getSharePrice()
      • setSharePrice

        public void setSharePrice​(java.lang.String price)
      • getAvgCostBasis

        public long getAvgCostBasis()
      • setAvgCostBasis

        public void setAvgCostBasis​(long costBasis)
      • getTransferDirection

        public java.lang.String getTransferDirection()
      • setTransferDirection

        public void setTransferDirection​(java.lang.String dir)
      • getPositionType

        public java.lang.String getPositionType()
      • setPositionType

        public void setPositionType​(java.lang.String positionType)
      • getDatePurchasedInt

        public int getDatePurchasedInt()
      • setDatePurchasedInt

        public void setDatePurchasedInt​(int dt)
      • getStockSplitOldUnits

        public java.lang.String getStockSplitOldUnits()
      • setStockSplitOldUnits

        public void setStockSplitOldUnits​(java.lang.String oldUnits)
      • getStockSplitNewUnits

        public java.lang.String getStockSplitNewUnits()
      • setStockSplitNewUnits

        public void setStockSplitNewUnits​(java.lang.String newUnits)
      • getStockSplitNumerator

        public java.lang.String getStockSplitNumerator()
      • setStockSplitNumerator

        public void setStockSplitNumerator​(java.lang.String numer)
      • getStockSplitDenominator

        public java.lang.String getStockSplitDenominator()
      • setStockSplitDenominator

        public void setStockSplitDenominator​(java.lang.String denom)
      • getStockSplitExtraCash

        public java.lang.String getStockSplitExtraCash()
      • setStockSplitExtraCash

        public void setStockSplitExtraCash​(java.lang.String extraCash)
      • getMarkDown

        public java.lang.String getMarkDown()
      • setMarkDown

        public void setMarkDown​(java.lang.String priceMarkDown)
      • getCommission

        public long getCommission()
      • setCommission

        public void setCommission​(long commission)
      • getTaxes

        public long getTaxes()
      • setTaxes

        public void setTaxes​(long taxes)
      • getFees

        public long getFees()
      • setFees

        public void setFees​(long fees)
      • getLoad

        public long getLoad()
      • setLoad

        public void setLoad​(long load)
      • getWitholding

        public long getWitholding()
      • setWitholding

        public void setWitholding​(long withholding)
      • getTaxExempt

        public boolean getTaxExempt()
      • setTaxExempt

        public void setTaxExempt​(boolean taxExempt)
      • getTotalAmount

        public long getTotalAmount()
      • setTotalAmount

        public void setTotalAmount​(long amount)
      • getGain

        public long getGain()
      • setGain

        public void setGain​(long gain)
      • getSellType

        public java.lang.String getSellType()
      • setSellType

        public void setSellType​(java.lang.String sellType)
      • getSharesPerContract

        public java.lang.String getSharesPerContract()
      • setSharesPerContract

        public void setSharesPerContract​(java.lang.String shares)
      • getRelatedTradeID

        public java.lang.String getRelatedTradeID()
      • setRelatedTradeID

        public void setRelatedTradeID​(java.lang.String relatedID)
      • getRelatedTradeType

        public java.lang.String getRelatedTradeType()
      • setRelatedTradeType

        public void setRelatedTradeType​(java.lang.String tradeType)
      • getSecuredOption

        public java.lang.String getSecuredOption()
      • setSecuredOption

        public void setSecuredOption​(java.lang.String securedOption)
      • getSellReason

        public java.lang.String getSellReason()
      • setSellReason

        public void setSellReason​(java.lang.String sellReason)
      • getAccruedInterest

        public long getAccruedInterest()
      • setAccruedInterest

        public void setAccruedInterest​(long interest)
      • getSubAccountTo

        public java.lang.String getSubAccountTo()
      • setSubAccountTo

        public void setSubAccountTo​(java.lang.String subAcctTo)
      • getSubAccountFrom

        public java.lang.String getSubAccountFrom()
      • setSubAccountFrom

        public void setSubAccountFrom​(java.lang.String subAcctFrom)
      • getOptionAction

        public java.lang.String getOptionAction()
      • setOptionAction

        public void setOptionAction​(java.lang.String optAction)
      • getMarkUp

        public java.lang.String getMarkUp()
      • setMarkUp

        public void setMarkUp​(java.lang.String markup)
      • getBuyType

        public java.lang.String getBuyType()
      • setBuyType

        public void setBuyType​(java.lang.String buyType)
      • setOriginalForm

        public void setOriginalForm​(java.lang.String s)
        Set the original data that was used to create this transaction
        Since:
        build 1593 (Moneydance 2017.2)
      • getOriginalForm

        public java.lang.String getOriginalForm()
        Get the original data that was used to create this transaction, or null if none was set
        Since:
        build 1593 (Moneydance 2017.2)
      • toString

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

        public boolean isSameAs​(OnlineTxn txn)
      • toSerializedString

        public java.lang.String toSerializedString()
        Return a string containing a serialized form of this transaction