Class OnlineTxn
java.lang.Object
com.infinitekind.moneydance.model.OnlineTxn
- All Implemented Interfaces:
OnlineBankAcctToInterface,OnlineCCAcctToInterface,OnlinePayeeInterface
public class OnlineTxn extends java.lang.Object implements OnlinePayeeInterface, OnlineBankAcctToInterface, OnlineCCAcctToInterface
Simple transaction object that holds transactions that
are downloaded from a bank, before the transactions can
be committed to the local database.
This is a very short-lived object, meant to bridge the gap
between different online banking protocols and the Moneydance
object model.
-
Field Summary
Fields Modifier and Type Field Description static intCORRECTION_DELETEstatic intCORRECTION_NONEstatic intCORRECTION_REPLACEstatic java.lang.StringINVEST_TXN_BANKstatic java.lang.StringINVEST_TXN_BUYstatic java.lang.StringINVEST_TXN_DIVIDENDstatic java.lang.StringINVEST_TXN_MISCEXPstatic java.lang.StringINVEST_TXN_MISCINCstatic java.lang.StringINVEST_TXN_NULLstatic java.lang.StringINVEST_TXN_SELLstatic java.lang.StringINVEST_TXN_SPLITstatic java.lang.StringINVEST_TXN_TRANSFERstatic booleanPREFER_AMT_SIGN_TO_TXN_TYPEstatic intPROTO_TYPE_OFXstatic intPROTO_TYPE_QIFstatic java.lang.StringQIF_FI_IDstatic intSTATUS_ACCEPTEDstatic intSTATUS_NEW -
Constructor Summary
Constructors Constructor Description OnlineTxn()OnlineTxn(OnlineTxnList txnList, com.infinitekind.tiksync.SyncRecord info)OnlineTxn(OnlineTxnList txnList, StreamTable info)OnlineTxn(com.infinitekind.tiksync.SyncRecord info) -
Method Summary
Modifier and Type Method Description booleancontainsSameFields(OnlineTxn otherTxn)Return whether the given transaction is the same as the current one, for all fields.longgetAccruedInterest()java.lang.StringgetAcctToAcctID()get info identifying the account to transfer the money to/from if this was a transfer to/from a bank accountjava.lang.StringgetAcctToBankBranch()Set the branch of this payee's bank account.java.lang.StringgetAcctToBankCity()Get the city of this payee's bank.java.lang.StringgetAcctToBankID()get info identifying the bank to transfer the money to/from if this was a transfer to/from a bank accountjava.lang.StringgetAcctToBankName()Get the name of this payee's bank account.java.lang.StringgetAcctToBankPostal()Get the postal code of this payee's bank.java.lang.StringgetAcctToBranchID()Get the branch ID of the account for this payee.java.lang.StringgetAcctToKey()Get the key for this payee's account.java.lang.StringgetAcctToPTTAcctID()Get the PTT ID of this payee's bank.java.lang.StringgetAcctToType()Get the type of account for this payee.java.lang.StringgetAddr1()java.lang.StringgetAddr2()java.lang.StringgetAddr3()booleangetAllowDuplicateIDs()Gets whether or not this transaction is allowed to have the same FI transaction ID as another transaction that is already in an OnlineTxnList.longgetAmount()longgetAmount(Account contextAccount)longgetAvgCostBasis()java.lang.StringgetBuyType()java.lang.StringgetCategoryName()java.lang.StringgetCheckNum()java.lang.StringgetCity()longgetCommission()java.lang.StringgetCorrectedFITxnID()intgetCorrectionAction()java.lang.StringgetCountry()intgetDate()Returns the date posted, or the initiation date if no posting date is available.longgetDateAvailable()longgetDateAvailableInt()longgetDateInitiated()intgetDateInitiatedInt()longgetDatePosted()intgetDatePostedInt()intgetDatePurchasedInt()intgetDaysToPay()longgetFees()java.lang.StringgetFIID()Get the unique string that identifies the FI from which this txn was downloaded.java.lang.StringgetFITxnId()longgetGain()booleangetHasBankAcctTo()Get whether or not there is destination bank account info.booleangetHasCCAcctTo()Get whether or not there is destination bank account info.booleangetHasExtendedAcctToInfo()Get whether or not this payee has extended to-account information available.booleangetHasExtendedPayeeInfo()java.lang.StringgetIncomeType()java.lang.StringgetInvestTxnType()longgetLoad()intgetLocalStatus()java.lang.StringgetMarkDown()java.lang.StringgetMarkUp()java.lang.StringgetMemo()java.lang.StringgetName()java.lang.StringgetNumShares()java.lang.StringgetOFXTxnType()Gets the OFX transaction type for this transaction.java.lang.StringgetOptionAction()java.lang.StringgetOriginalForm()Get the original data that was used to create this transaction, or null if none was setjava.lang.StringgetPayeeID()java.lang.StringgetPayeeIDScope()java.lang.StringgetPayeeName()java.lang.StringgetPhone()java.lang.StringgetPositionType()java.lang.StringgetPostalCode()intgetProtocolType()java.lang.StringgetRefNum()booleangetReinvest()java.lang.StringgetRelatedTradeID()java.lang.StringgetRelatedTradeType()java.lang.StringgetSecuredOption()java.lang.StringgetSecurityID()java.lang.StringgetSecurityIDType()java.lang.StringgetSellReason()java.lang.StringgetSellType()java.lang.StringgetServerTxnID()java.lang.StringgetSharePrice()java.lang.StringgetSharesPerContract()java.lang.StringgetSIC()intgetSortDateInt()Return the date for the purposes of sorting this transaction against other transactions.java.lang.StringgetState()java.lang.StringgetStockSplitDenominator()java.lang.StringgetStockSplitExtraCash()java.lang.StringgetStockSplitNewUnits()java.lang.StringgetStockSplitNumerator()java.lang.StringgetStockSplitOldUnits()java.lang.StringgetSubAccountFrom()java.lang.StringgetSubAccountFund()Returns the sub-account label for this transaction.java.lang.StringgetSubAccountTo()java.lang.StringgetSubAccountType()longgetTaxes()booleangetTaxExempt()java.lang.StringgetTOCCAccountNum()get info identifying the account to transfer the money to/from if this was a transfer to/from a credit card.longgetTotalAmount()intgetTradeDateInt()Return the date that this transaction was initated (or traded, if an investment txn)java.lang.StringgetTransferDirection()java.lang.StringgetTxnType()longgetWitholding()booleanisSameAs(OnlineTxn txn)voidsetAccruedInterest(long interest)voidsetAcctToAcctID(java.lang.String toBankAccountID)set info identifying the account to transfer the money to/from if this was a transfer to/from a bank accountvoidsetAcctToBankBranch(java.lang.String bankBranch)Get the branch of this payee's bank account.voidsetAcctToBankCity(java.lang.String bankCity)Set the city of this payee's bank.voidsetAcctToBankID(java.lang.String toBankBankID)set info identifying the bank to transfer the money to/from if this was a transfer to/from a bank accountvoidsetAcctToBankName(java.lang.String bankName)Set the name of this payee's bank account.voidsetAcctToBankPostal(java.lang.String bankPostalCode)Set the postal code of this payee's bank.voidsetAcctToBranchID(java.lang.String branchID)Set the branch ID of the account for this payee.voidsetAcctToKey(java.lang.String acctKey)Set the key for this payee's account.voidsetAcctToPTTAcctID(java.lang.String pttAcctID)Set the PTT ID of this payee's bank.voidsetAcctToType(java.lang.String acctType)Set the type of account for this payee.voidsetAddr1(java.lang.String addr1)voidsetAddr2(java.lang.String addr2)voidsetAddr3(java.lang.String addr3)voidsetAllowDuplicateIDs(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.voidsetAmount(long amount)voidsetAvgCostBasis(long costBasis)voidsetBuyType(java.lang.String buyType)voidsetCategoryName(java.lang.String newCategory)voidsetCheckNum(java.lang.String checkNum)voidsetCity(java.lang.String city)voidsetCommission(long commission)voidsetCorrectedFITxnID(java.lang.String correctsFITxnID)voidsetCorrectionAction(int correctionAction)voidsetCountry(java.lang.String country)voidsetDateAvailable(long dateAvail)voidsetDateAvailableInt(int dateAvail)voidsetDateInitiated(long dateInitiated)voidsetDateInitiatedInt(int dateInitiated)voidsetDatePosted(long datePosted)voidsetDatePostedInt(int datePosted)voidsetDatePurchasedInt(int dt)voidsetDaysToPay(int daysToPay)voidsetFees(long fees)voidsetFIID(java.lang.String fiID)Set the unique string that identifies the FI from which this txn was downloaded.voidsetFITxnId(java.lang.String fiTxnId)voidsetGain(long gain)voidsetHasBankAcctTo(boolean hasBankAcctTo)Set whether or not there is destination bank account info.voidsetHasCCAcctTo(boolean hasCCAcctTo)Set whether or not there is destination credit card account info.voidsetHasExtendedAcctToInfo(boolean hasExtdInfo)Set whether or not this payee has extended to-account information available.voidsetHasExtendedPayeeInfo(boolean hasExtendedInfo)voidsetIncomeType(java.lang.String incomeType)voidsetInvestTxnType(java.lang.String txnTypeID)voidsetLoad(long load)voidsetLocalStatus(int localStatus)voidsetMarkDown(java.lang.String priceMarkDown)voidsetMarkUp(java.lang.String markup)voidsetMemo(java.lang.String memo)voidsetName(java.lang.String name)voidsetNumShares(java.lang.String numShares)voidsetOFXTxnType(java.lang.String txnType)voidsetOptionAction(java.lang.String optAction)voidsetOriginalForm(java.lang.String s)Set the original data that was used to create this transactionvoidsetPayeeID(java.lang.String payeeID)voidsetPayeeIDScope(java.lang.String idScope)voidsetPayeeName(java.lang.String name)voidsetPhone(java.lang.String phone)voidsetPositionType(java.lang.String positionType)voidsetPostalCode(java.lang.String postalcode)voidsetProtocolType(int protocolType)voidsetRefNum(java.lang.String refNum)voidsetReinvest(boolean reinvest)voidsetRelatedTradeID(java.lang.String relatedID)voidsetRelatedTradeType(java.lang.String tradeType)voidsetSecuredOption(java.lang.String securedOption)voidsetSecurityID(java.lang.String securityID)voidsetSecurityIDType(java.lang.String securityIDType)voidsetSellReason(java.lang.String sellReason)voidsetSellType(java.lang.String sellType)voidsetServerTxnID(java.lang.String serverTxnID)voidsetSharePrice(java.lang.String price)voidsetSharesPerContract(java.lang.String shares)voidsetSIC(java.lang.String sic)voidsetState(java.lang.String state)voidsetStockSplitDenominator(java.lang.String denom)voidsetStockSplitExtraCash(java.lang.String extraCash)voidsetStockSplitNewUnits(java.lang.String newUnits)voidsetStockSplitNumerator(java.lang.String numer)voidsetStockSplitOldUnits(java.lang.String oldUnits)voidsetSubAccountFrom(java.lang.String subAcctFrom)voidsetSubAccountFund(java.lang.String newSubAcctFund)Sets the sub-account label for this transaction.voidsetSubAccountTo(java.lang.String subAcctTo)voidsetSubAccountType(java.lang.String subAcctType)voidsetTaxes(long taxes)voidsetTaxExempt(boolean taxExempt)voidsetToCCAccountNum(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.voidsetTotalAmount(long amount)voidsetTransferDirection(java.lang.String dir)voidsetTxnType(java.lang.String txnType)voidsetWitholding(long withholding)java.lang.StringtoSerializedString()Return a string containing a serialized form of this transactionjava.lang.StringtoString()
-
Field Details
-
PROTO_TYPE_OFX
public static final int PROTO_TYPE_OFX- See Also:
- Constant Field Values
-
PROTO_TYPE_QIF
public static final int PROTO_TYPE_QIF- See Also:
- Constant Field Values
-
QIF_FI_ID
public static final java.lang.String QIF_FI_ID- See Also:
- Constant Field Values
-
CORRECTION_NONE
public static final int CORRECTION_NONE- See Also:
- Constant Field Values
-
CORRECTION_REPLACE
public static final int CORRECTION_REPLACE- See Also:
- Constant Field Values
-
CORRECTION_DELETE
public static final int CORRECTION_DELETE- See Also:
- Constant Field Values
-
STATUS_NEW
public static final int STATUS_NEW- See Also:
- Constant Field Values
-
STATUS_ACCEPTED
public static final int STATUS_ACCEPTED- See Also:
- Constant Field Values
-
INVEST_TXN_BANK
public static final java.lang.String INVEST_TXN_BANK- See Also:
- Constant Field Values
-
INVEST_TXN_TRANSFER
public static final java.lang.String INVEST_TXN_TRANSFER- See Also:
- Constant Field Values
-
INVEST_TXN_SPLIT
public static final java.lang.String INVEST_TXN_SPLIT- See Also:
- Constant Field Values
-
INVEST_TXN_SELL
public static final java.lang.String INVEST_TXN_SELL- See Also:
- Constant Field Values
-
INVEST_TXN_BUY
public static final java.lang.String INVEST_TXN_BUY- See Also:
- Constant Field Values
-
INVEST_TXN_DIVIDEND
public static final java.lang.String INVEST_TXN_DIVIDEND- See Also:
- Constant Field Values
-
INVEST_TXN_NULL
public static final java.lang.String INVEST_TXN_NULL- See Also:
- Constant Field Values
-
INVEST_TXN_MISCEXP
public static final java.lang.String INVEST_TXN_MISCEXP- See Also:
- Constant Field Values
-
INVEST_TXN_MISCINC
public static final java.lang.String INVEST_TXN_MISCINC- See Also:
- Constant Field Values
-
PREFER_AMT_SIGN_TO_TXN_TYPE
public static boolean PREFER_AMT_SIGN_TO_TXN_TYPE
-
-
Constructor Details
-
Method Details
-
containsSameFields
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
-
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:
setHasBankAcctToin interfaceOnlineBankAcctToInterface
-
getHasBankAcctTo
public boolean getHasBankAcctTo()Get whether or not there is destination bank account info.- Specified by:
getHasBankAcctToin interfaceOnlineBankAcctToInterface
-
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:
setAcctToAcctIDin interfaceOnlineBankAcctToInterface
-
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:
getAcctToAcctIDin interfaceOnlineBankAcctToInterface
-
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:
setAcctToBankIDin interfaceOnlineBankAcctToInterface
-
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:
getAcctToBankIDin interfaceOnlineBankAcctToInterface
-
setAcctToBranchID
public void setAcctToBranchID(java.lang.String branchID)Set the branch ID of the account for this payee.- Specified by:
setAcctToBranchIDin interfaceOnlineBankAcctToInterface
-
getAcctToBranchID
public java.lang.String getAcctToBranchID()Get the branch ID of the account for this payee.- Specified by:
getAcctToBranchIDin interfaceOnlineBankAcctToInterface
-
setAcctToType
public void setAcctToType(java.lang.String acctType)Set the type of account for this payee.- Specified by:
setAcctToTypein interfaceOnlineBankAcctToInterface
-
getAcctToType
public java.lang.String getAcctToType()Get the type of account for this payee.- Specified by:
getAcctToTypein interfaceOnlineBankAcctToInterface
-
setAcctToKey
public void setAcctToKey(java.lang.String acctKey)Set the key for this payee's account.- Specified by:
setAcctToKeyin interfaceOnlineBankAcctToInterface
-
getAcctToKey
public java.lang.String getAcctToKey()Get the key for this payee's account.- Specified by:
getAcctToKeyin interfaceOnlineBankAcctToInterface
-
setHasExtendedAcctToInfo
public void setHasExtendedAcctToInfo(boolean hasExtdInfo)Set whether or not this payee has extended to-account information available.- Specified by:
setHasExtendedAcctToInfoin interfaceOnlineBankAcctToInterface
-
getHasExtendedAcctToInfo
public boolean getHasExtendedAcctToInfo()Get whether or not this payee has extended to-account information available.- Specified by:
getHasExtendedAcctToInfoin interfaceOnlineBankAcctToInterface
-
setAcctToBankName
public void setAcctToBankName(java.lang.String bankName)Set the name of this payee's bank account.- Specified by:
setAcctToBankNamein interfaceOnlineBankAcctToInterface
-
getAcctToBankName
public java.lang.String getAcctToBankName()Get the name of this payee's bank account.- Specified by:
getAcctToBankNamein interfaceOnlineBankAcctToInterface
-
setAcctToBankBranch
public void setAcctToBankBranch(java.lang.String bankBranch)Get the branch of this payee's bank account.- Specified by:
setAcctToBankBranchin interfaceOnlineBankAcctToInterface
-
getAcctToBankBranch
public java.lang.String getAcctToBankBranch()Set the branch of this payee's bank account.- Specified by:
getAcctToBankBranchin interfaceOnlineBankAcctToInterface
-
setAcctToBankCity
public void setAcctToBankCity(java.lang.String bankCity)Set the city of this payee's bank.- Specified by:
setAcctToBankCityin interfaceOnlineBankAcctToInterface
-
getAcctToBankCity
public java.lang.String getAcctToBankCity()Get the city of this payee's bank.- Specified by:
getAcctToBankCityin interfaceOnlineBankAcctToInterface
-
setAcctToBankPostal
public void setAcctToBankPostal(java.lang.String bankPostalCode)Set the postal code of this payee's bank.- Specified by:
setAcctToBankPostalin interfaceOnlineBankAcctToInterface
-
getAcctToBankPostal
public java.lang.String getAcctToBankPostal()Get the postal code of this payee's bank.- Specified by:
getAcctToBankPostalin interfaceOnlineBankAcctToInterface
-
setAcctToPTTAcctID
public void setAcctToPTTAcctID(java.lang.String pttAcctID)Set the PTT ID of this payee's bank.- Specified by:
setAcctToPTTAcctIDin interfaceOnlineBankAcctToInterface
-
getAcctToPTTAcctID
public java.lang.String getAcctToPTTAcctID()Get the PTT ID of this payee's bank.- Specified by:
getAcctToPTTAcctIDin interfaceOnlineBankAcctToInterface
-
setHasCCAcctTo
public void setHasCCAcctTo(boolean hasCCAcctTo)Set whether or not there is destination credit card account info.- Specified by:
setHasCCAcctToin interfaceOnlineCCAcctToInterface
-
getHasCCAcctTo
public boolean getHasCCAcctTo()Get whether or not there is destination bank account info.- Specified by:
getHasCCAcctToin interfaceOnlineCCAcctToInterface
-
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:
setToCCAccountNumin interfaceOnlineCCAcctToInterface
-
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:
getTOCCAccountNumin interfaceOnlineCCAcctToInterface
-
setPayeeName
public void setPayeeName(java.lang.String name)- Specified by:
setPayeeNamein interfaceOnlinePayeeInterface
-
getPayeeName
public java.lang.String getPayeeName()- Specified by:
getPayeeNamein interfaceOnlinePayeeInterface
-
setAddr1
public void setAddr1(java.lang.String addr1)- Specified by:
setAddr1in interfaceOnlinePayeeInterface
-
getAddr1
public java.lang.String getAddr1()- Specified by:
getAddr1in interfaceOnlinePayeeInterface
-
setAddr2
public void setAddr2(java.lang.String addr2)- Specified by:
setAddr2in interfaceOnlinePayeeInterface
-
getAddr2
public java.lang.String getAddr2()- Specified by:
getAddr2in interfaceOnlinePayeeInterface
-
setAddr3
public void setAddr3(java.lang.String addr3)- Specified by:
setAddr3in interfaceOnlinePayeeInterface
-
getAddr3
public java.lang.String getAddr3()- Specified by:
getAddr3in interfaceOnlinePayeeInterface
-
setCity
public void setCity(java.lang.String city)- Specified by:
setCityin interfaceOnlinePayeeInterface
-
getCity
public java.lang.String getCity()- Specified by:
getCityin interfaceOnlinePayeeInterface
-
setState
public void setState(java.lang.String state)- Specified by:
setStatein interfaceOnlinePayeeInterface
-
getState
public java.lang.String getState()- Specified by:
getStatein interfaceOnlinePayeeInterface
-
setPostalCode
public void setPostalCode(java.lang.String postalcode)- Specified by:
setPostalCodein interfaceOnlinePayeeInterface
-
getPostalCode
public java.lang.String getPostalCode()- Specified by:
getPostalCodein interfaceOnlinePayeeInterface
-
setCountry
public void setCountry(java.lang.String country)- Specified by:
setCountryin interfaceOnlinePayeeInterface
-
getCountry
public java.lang.String getCountry()- Specified by:
getCountryin interfaceOnlinePayeeInterface
-
setPhone
public void setPhone(java.lang.String phone)- Specified by:
setPhonein interfaceOnlinePayeeInterface
-
getPhone
public java.lang.String getPhone()- Specified by:
getPhonein interfaceOnlinePayeeInterface
-
setHasExtendedPayeeInfo
public void setHasExtendedPayeeInfo(boolean hasExtendedInfo)- Specified by:
setHasExtendedPayeeInfoin interfaceOnlinePayeeInterface
-
getHasExtendedPayeeInfo
public boolean getHasExtendedPayeeInfo()- Specified by:
getHasExtendedPayeeInfoin interfaceOnlinePayeeInterface
-
setDaysToPay
public void setDaysToPay(int daysToPay)- Specified by:
setDaysToPayin interfaceOnlinePayeeInterface
-
getDaysToPay
public int getDaysToPay()- Specified by:
getDaysToPayin interfaceOnlinePayeeInterface
-
setPayeeIDScope
public void setPayeeIDScope(java.lang.String idScope)- Specified by:
setPayeeIDScopein interfaceOnlinePayeeInterface
-
getPayeeIDScope
public java.lang.String getPayeeIDScope()- Specified by:
getPayeeIDScopein interfaceOnlinePayeeInterface
-
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:
toStringin classjava.lang.Object
-
isSameAs
-
toSerializedString
public java.lang.String toSerializedString()Return a string containing a serialized form of this transaction
-