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 int
CORRECTION_DELETE
static int
CORRECTION_NONE
static int
CORRECTION_REPLACE
static java.lang.String
INVEST_TXN_BANK
static java.lang.String
INVEST_TXN_BUY
static java.lang.String
INVEST_TXN_DIVIDEND
static java.lang.String
INVEST_TXN_MISCEXP
static java.lang.String
INVEST_TXN_MISCINC
static java.lang.String
INVEST_TXN_NULL
static java.lang.String
INVEST_TXN_SELL
static java.lang.String
INVEST_TXN_SPLIT
static java.lang.String
INVEST_TXN_TRANSFER
static boolean
PREFER_AMT_SIGN_TO_TXN_TYPE
static int
PROTO_TYPE_OFX
static int
PROTO_TYPE_QIF
static java.lang.String
QIF_FI_ID
static int
STATUS_ACCEPTED
static int
STATUS_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 boolean
containsSameFields(OnlineTxn otherTxn)
Return whether the given transaction is the same as the current one, for all fields.long
getAccruedInterest()
java.lang.String
getAcctToAcctID()
get info identifying the account to transfer the money to/from if this was a transfer to/from a bank accountjava.lang.String
getAcctToBankBranch()
Set the branch of this payee's bank account.java.lang.String
getAcctToBankCity()
Get the city of this payee's bank.java.lang.String
getAcctToBankID()
get info identifying the bank to transfer the money to/from if this was a transfer to/from a bank accountjava.lang.String
getAcctToBankName()
Get the name of this payee's bank account.java.lang.String
getAcctToBankPostal()
Get the postal code of this payee's bank.java.lang.String
getAcctToBranchID()
Get the branch ID of the account for this payee.java.lang.String
getAcctToKey()
Get the key for this payee's account.java.lang.String
getAcctToPTTAcctID()
Get the PTT ID of this payee's bank.java.lang.String
getAcctToType()
Get the type of account for this payee.java.lang.String
getAddr1()
java.lang.String
getAddr2()
java.lang.String
getAddr3()
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.long
getAmount()
long
getAmount(Account contextAccount)
long
getAvgCostBasis()
java.lang.String
getBuyType()
java.lang.String
getCategoryName()
java.lang.String
getCheckNum()
java.lang.String
getCity()
long
getCommission()
java.lang.String
getCorrectedFITxnID()
int
getCorrectionAction()
java.lang.String
getCountry()
int
getDate()
Returns the date posted, or the initiation date if no posting date is available.long
getDateAvailable()
long
getDateAvailableInt()
long
getDateInitiated()
int
getDateInitiatedInt()
long
getDatePosted()
int
getDatePostedInt()
int
getDatePurchasedInt()
int
getDaysToPay()
long
getFees()
java.lang.String
getFIID()
Get the unique string that identifies the FI from which this txn was downloaded.java.lang.String
getFITxnId()
long
getGain()
boolean
getHasBankAcctTo()
Get whether or not there is destination bank account info.boolean
getHasCCAcctTo()
Get whether or not there is destination bank account info.boolean
getHasExtendedAcctToInfo()
Get whether or not this payee has extended to-account information available.boolean
getHasExtendedPayeeInfo()
java.lang.String
getIncomeType()
java.lang.String
getInvestTxnType()
long
getLoad()
int
getLocalStatus()
java.lang.String
getMarkDown()
java.lang.String
getMarkUp()
java.lang.String
getMemo()
java.lang.String
getName()
java.lang.String
getNumShares()
java.lang.String
getOFXTxnType()
Gets the OFX transaction type for this transaction.java.lang.String
getOptionAction()
java.lang.String
getOriginalForm()
Get the original data that was used to create this transaction, or null if none was setjava.lang.String
getPayeeID()
java.lang.String
getPayeeIDScope()
java.lang.String
getPayeeName()
java.lang.String
getPhone()
java.lang.String
getPositionType()
java.lang.String
getPostalCode()
int
getProtocolType()
java.lang.String
getRefNum()
boolean
getReinvest()
java.lang.String
getRelatedTradeID()
java.lang.String
getRelatedTradeType()
java.lang.String
getSecuredOption()
java.lang.String
getSecurityID()
java.lang.String
getSecurityIDType()
java.lang.String
getSellReason()
java.lang.String
getSellType()
java.lang.String
getServerTxnID()
java.lang.String
getSharePrice()
java.lang.String
getSharesPerContract()
java.lang.String
getSIC()
int
getSortDateInt()
Return the date for the purposes of sorting this transaction against other transactions.java.lang.String
getState()
java.lang.String
getStockSplitDenominator()
java.lang.String
getStockSplitExtraCash()
java.lang.String
getStockSplitNewUnits()
java.lang.String
getStockSplitNumerator()
java.lang.String
getStockSplitOldUnits()
java.lang.String
getSubAccountFrom()
java.lang.String
getSubAccountFund()
Returns the sub-account label for this transaction.java.lang.String
getSubAccountTo()
java.lang.String
getSubAccountType()
long
getTaxes()
boolean
getTaxExempt()
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.long
getTotalAmount()
int
getTradeDateInt()
Return the date that this transaction was initated (or traded, if an investment txn)java.lang.String
getTransferDirection()
java.lang.String
getTxnType()
long
getWitholding()
boolean
isSameAs(OnlineTxn txn)
void
setAccruedInterest(long interest)
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 accountvoid
setAcctToBankBranch(java.lang.String bankBranch)
Get the branch of this payee's bank account.void
setAcctToBankCity(java.lang.String bankCity)
Set the city of this payee's bank.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 accountvoid
setAcctToBankName(java.lang.String bankName)
Set the name of this payee's bank account.void
setAcctToBankPostal(java.lang.String bankPostalCode)
Set the postal code of this payee's bank.void
setAcctToBranchID(java.lang.String branchID)
Set the branch ID of the account for this payee.void
setAcctToKey(java.lang.String acctKey)
Set the key for this payee's account.void
setAcctToPTTAcctID(java.lang.String pttAcctID)
Set the PTT ID of this payee's bank.void
setAcctToType(java.lang.String acctType)
Set the type of account for this payee.void
setAddr1(java.lang.String addr1)
void
setAddr2(java.lang.String addr2)
void
setAddr3(java.lang.String addr3)
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.void
setAmount(long amount)
void
setAvgCostBasis(long costBasis)
void
setBuyType(java.lang.String buyType)
void
setCategoryName(java.lang.String newCategory)
void
setCheckNum(java.lang.String checkNum)
void
setCity(java.lang.String city)
void
setCommission(long commission)
void
setCorrectedFITxnID(java.lang.String correctsFITxnID)
void
setCorrectionAction(int correctionAction)
void
setCountry(java.lang.String country)
void
setDateAvailable(long dateAvail)
void
setDateAvailableInt(int dateAvail)
void
setDateInitiated(long dateInitiated)
void
setDateInitiatedInt(int dateInitiated)
void
setDatePosted(long datePosted)
void
setDatePostedInt(int datePosted)
void
setDatePurchasedInt(int dt)
void
setDaysToPay(int daysToPay)
void
setFees(long fees)
void
setFIID(java.lang.String fiID)
Set the unique string that identifies the FI from which this txn was downloaded.void
setFITxnId(java.lang.String fiTxnId)
void
setGain(long gain)
void
setHasBankAcctTo(boolean hasBankAcctTo)
Set whether or not there is destination bank account info.void
setHasCCAcctTo(boolean hasCCAcctTo)
Set whether or not there is destination credit card account info.void
setHasExtendedAcctToInfo(boolean hasExtdInfo)
Set whether or not this payee has extended to-account information available.void
setHasExtendedPayeeInfo(boolean hasExtendedInfo)
void
setIncomeType(java.lang.String incomeType)
void
setInvestTxnType(java.lang.String txnTypeID)
void
setLoad(long load)
void
setLocalStatus(int localStatus)
void
setMarkDown(java.lang.String priceMarkDown)
void
setMarkUp(java.lang.String markup)
void
setMemo(java.lang.String memo)
void
setName(java.lang.String name)
void
setNumShares(java.lang.String numShares)
void
setOFXTxnType(java.lang.String txnType)
void
setOptionAction(java.lang.String optAction)
void
setOriginalForm(java.lang.String s)
Set the original data that was used to create this transactionvoid
setPayeeID(java.lang.String payeeID)
void
setPayeeIDScope(java.lang.String idScope)
void
setPayeeName(java.lang.String name)
void
setPhone(java.lang.String phone)
void
setPositionType(java.lang.String positionType)
void
setPostalCode(java.lang.String postalcode)
void
setProtocolType(int protocolType)
void
setRefNum(java.lang.String refNum)
void
setReinvest(boolean reinvest)
void
setRelatedTradeID(java.lang.String relatedID)
void
setRelatedTradeType(java.lang.String tradeType)
void
setSecuredOption(java.lang.String securedOption)
void
setSecurityID(java.lang.String securityID)
void
setSecurityIDType(java.lang.String securityIDType)
void
setSellReason(java.lang.String sellReason)
void
setSellType(java.lang.String sellType)
void
setServerTxnID(java.lang.String serverTxnID)
void
setSharePrice(java.lang.String price)
void
setSharesPerContract(java.lang.String shares)
void
setSIC(java.lang.String sic)
void
setState(java.lang.String state)
void
setStockSplitDenominator(java.lang.String denom)
void
setStockSplitExtraCash(java.lang.String extraCash)
void
setStockSplitNewUnits(java.lang.String newUnits)
void
setStockSplitNumerator(java.lang.String numer)
void
setStockSplitOldUnits(java.lang.String oldUnits)
void
setSubAccountFrom(java.lang.String subAcctFrom)
void
setSubAccountFund(java.lang.String newSubAcctFund)
Sets the sub-account label for this transaction.void
setSubAccountTo(java.lang.String subAcctTo)
void
setSubAccountType(java.lang.String subAcctType)
void
setTaxes(long taxes)
void
setTaxExempt(boolean taxExempt)
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.void
setTotalAmount(long amount)
void
setTransferDirection(java.lang.String dir)
void
setTxnType(java.lang.String txnType)
void
setWitholding(long withholding)
java.lang.String
toSerializedString()
Return a string containing a serialized form of this transactionjava.lang.String
toString()
-
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:
setHasBankAcctTo
in interfaceOnlineBankAcctToInterface
-
getHasBankAcctTo
public boolean getHasBankAcctTo()Get whether or not there is destination bank account info.- Specified by:
getHasBankAcctTo
in 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:
setAcctToAcctID
in 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:
getAcctToAcctID
in 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:
setAcctToBankID
in 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:
getAcctToBankID
in interfaceOnlineBankAcctToInterface
-
setAcctToBranchID
public void setAcctToBranchID(java.lang.String branchID)Set the branch ID of the account for this payee.- Specified by:
setAcctToBranchID
in interfaceOnlineBankAcctToInterface
-
getAcctToBranchID
public java.lang.String getAcctToBranchID()Get the branch ID of the account for this payee.- Specified by:
getAcctToBranchID
in interfaceOnlineBankAcctToInterface
-
setAcctToType
public void setAcctToType(java.lang.String acctType)Set the type of account for this payee.- Specified by:
setAcctToType
in interfaceOnlineBankAcctToInterface
-
getAcctToType
public java.lang.String getAcctToType()Get the type of account for this payee.- Specified by:
getAcctToType
in interfaceOnlineBankAcctToInterface
-
setAcctToKey
public void setAcctToKey(java.lang.String acctKey)Set the key for this payee's account.- Specified by:
setAcctToKey
in interfaceOnlineBankAcctToInterface
-
getAcctToKey
public java.lang.String getAcctToKey()Get the key for this payee's account.- Specified by:
getAcctToKey
in interfaceOnlineBankAcctToInterface
-
setHasExtendedAcctToInfo
public void setHasExtendedAcctToInfo(boolean hasExtdInfo)Set whether or not this payee has extended to-account information available.- Specified by:
setHasExtendedAcctToInfo
in interfaceOnlineBankAcctToInterface
-
getHasExtendedAcctToInfo
public boolean getHasExtendedAcctToInfo()Get whether or not this payee has extended to-account information available.- Specified by:
getHasExtendedAcctToInfo
in interfaceOnlineBankAcctToInterface
-
setAcctToBankName
public void setAcctToBankName(java.lang.String bankName)Set the name of this payee's bank account.- Specified by:
setAcctToBankName
in interfaceOnlineBankAcctToInterface
-
getAcctToBankName
public java.lang.String getAcctToBankName()Get the name of this payee's bank account.- Specified by:
getAcctToBankName
in interfaceOnlineBankAcctToInterface
-
setAcctToBankBranch
public void setAcctToBankBranch(java.lang.String bankBranch)Get the branch of this payee's bank account.- Specified by:
setAcctToBankBranch
in interfaceOnlineBankAcctToInterface
-
getAcctToBankBranch
public java.lang.String getAcctToBankBranch()Set the branch of this payee's bank account.- Specified by:
getAcctToBankBranch
in interfaceOnlineBankAcctToInterface
-
setAcctToBankCity
public void setAcctToBankCity(java.lang.String bankCity)Set the city of this payee's bank.- Specified by:
setAcctToBankCity
in interfaceOnlineBankAcctToInterface
-
getAcctToBankCity
public java.lang.String getAcctToBankCity()Get the city of this payee's bank.- Specified by:
getAcctToBankCity
in interfaceOnlineBankAcctToInterface
-
setAcctToBankPostal
public void setAcctToBankPostal(java.lang.String bankPostalCode)Set the postal code of this payee's bank.- Specified by:
setAcctToBankPostal
in interfaceOnlineBankAcctToInterface
-
getAcctToBankPostal
public java.lang.String getAcctToBankPostal()Get the postal code of this payee's bank.- Specified by:
getAcctToBankPostal
in interfaceOnlineBankAcctToInterface
-
setAcctToPTTAcctID
public void setAcctToPTTAcctID(java.lang.String pttAcctID)Set the PTT ID of this payee's bank.- Specified by:
setAcctToPTTAcctID
in interfaceOnlineBankAcctToInterface
-
getAcctToPTTAcctID
public java.lang.String getAcctToPTTAcctID()Get the PTT ID of this payee's bank.- Specified by:
getAcctToPTTAcctID
in interfaceOnlineBankAcctToInterface
-
setHasCCAcctTo
public void setHasCCAcctTo(boolean hasCCAcctTo)Set whether or not there is destination credit card account info.- Specified by:
setHasCCAcctTo
in interfaceOnlineCCAcctToInterface
-
getHasCCAcctTo
public boolean getHasCCAcctTo()Get whether or not there is destination bank account info.- Specified by:
getHasCCAcctTo
in 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:
setToCCAccountNum
in 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:
getTOCCAccountNum
in interfaceOnlineCCAcctToInterface
-
setPayeeName
public void setPayeeName(java.lang.String name)- Specified by:
setPayeeName
in interfaceOnlinePayeeInterface
-
getPayeeName
public java.lang.String getPayeeName()- Specified by:
getPayeeName
in interfaceOnlinePayeeInterface
-
setAddr1
public void setAddr1(java.lang.String addr1)- Specified by:
setAddr1
in interfaceOnlinePayeeInterface
-
getAddr1
public java.lang.String getAddr1()- Specified by:
getAddr1
in interfaceOnlinePayeeInterface
-
setAddr2
public void setAddr2(java.lang.String addr2)- Specified by:
setAddr2
in interfaceOnlinePayeeInterface
-
getAddr2
public java.lang.String getAddr2()- Specified by:
getAddr2
in interfaceOnlinePayeeInterface
-
setAddr3
public void setAddr3(java.lang.String addr3)- Specified by:
setAddr3
in interfaceOnlinePayeeInterface
-
getAddr3
public java.lang.String getAddr3()- Specified by:
getAddr3
in interfaceOnlinePayeeInterface
-
setCity
public void setCity(java.lang.String city)- Specified by:
setCity
in interfaceOnlinePayeeInterface
-
getCity
public java.lang.String getCity()- Specified by:
getCity
in interfaceOnlinePayeeInterface
-
setState
public void setState(java.lang.String state)- Specified by:
setState
in interfaceOnlinePayeeInterface
-
getState
public java.lang.String getState()- Specified by:
getState
in interfaceOnlinePayeeInterface
-
setPostalCode
public void setPostalCode(java.lang.String postalcode)- Specified by:
setPostalCode
in interfaceOnlinePayeeInterface
-
getPostalCode
public java.lang.String getPostalCode()- Specified by:
getPostalCode
in interfaceOnlinePayeeInterface
-
setCountry
public void setCountry(java.lang.String country)- Specified by:
setCountry
in interfaceOnlinePayeeInterface
-
getCountry
public java.lang.String getCountry()- Specified by:
getCountry
in interfaceOnlinePayeeInterface
-
setPhone
public void setPhone(java.lang.String phone)- Specified by:
setPhone
in interfaceOnlinePayeeInterface
-
getPhone
public java.lang.String getPhone()- Specified by:
getPhone
in interfaceOnlinePayeeInterface
-
setHasExtendedPayeeInfo
public void setHasExtendedPayeeInfo(boolean hasExtendedInfo)- Specified by:
setHasExtendedPayeeInfo
in interfaceOnlinePayeeInterface
-
getHasExtendedPayeeInfo
public boolean getHasExtendedPayeeInfo()- Specified by:
getHasExtendedPayeeInfo
in interfaceOnlinePayeeInterface
-
setDaysToPay
public void setDaysToPay(int daysToPay)- Specified by:
setDaysToPay
in interfaceOnlinePayeeInterface
-
getDaysToPay
public int getDaysToPay()- Specified by:
getDaysToPay
in interfaceOnlinePayeeInterface
-
setPayeeIDScope
public void setPayeeIDScope(java.lang.String idScope)- Specified by:
setPayeeIDScope
in interfaceOnlinePayeeInterface
-
getPayeeIDScope
public java.lang.String getPayeeIDScope()- Specified by:
getPayeeIDScope
in 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:
toString
in classjava.lang.Object
-
isSameAs
-
toSerializedString
public java.lang.String toSerializedString()Return a string containing a serialized form of this transaction
-