|
GData JavaScript Client 1.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--google.gdata.finance.TransactionData
Data for the transction.
Defined in gdata.js
Field Summary | |
{String|undefined} |
date
Date at which the transaction occurred. |
{String|undefined} |
notes
Notes. |
{String|undefined} |
shares
Number of shares involved in the transaction. |
{String|undefined} |
type
Type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short"). |
Constructor Summary | |
google.gdata.finance.TransactionData(<Object> opt_params)
Constructs a transaction data using an object parameter whose property names match the setter method to use for each property. |
Method Summary | |
google.gdata.finance.Commission|undefined
|
getCommission()
Returns the commission for the transaction. |
google.gdata.DateTime|undefined
|
getDate()
Returns the date at which the transaction occurred. |
String|undefined
|
getNotes()
Returns the notes. |
google.gdata.finance.Price|undefined
|
getPrice()
Returns the price of the transaction. |
Number|undefined
|
getShares()
Returns the number of shares involved in the transaction. |
String|undefined
|
getType()
Returns the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short"). |
void
|
setCommission(<google.gdata.finance.Commission|Object|undefined> commission)
Sets the commission for the transaction. |
void
|
setDate(<google.gdata.DateTime|Date|undefined> date)
Sets the date at which the transaction occurred. |
void
|
setNotes(<String|undefined> notes)
Sets the notes. |
void
|
setPrice(<google.gdata.finance.Price|Object|undefined> price)
Sets the price of the transaction. |
void
|
setShares(<Number|undefined> shares)
Sets the number of shares involved in the transaction. |
void
|
setType(<String|undefined> type)
Sets the type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short"). |
Field Detail |
{String|undefined} date
{String|undefined} notes
{String|undefined} shares
{String|undefined} type
Constructor Detail |
google.gdata.finance.TransactionData(<Object> opt_params)
opt_params
- Optional parameters, each of which is used as the sole parameter to the associated setter method: commission, date, notes, price, shares, and type
Method Detail |
google.gdata.finance.Commission|undefined getCommission()
google.gdata.DateTime|undefined getDate()
String|undefined getNotes()
google.gdata.finance.Price|undefined getPrice()
Number|undefined getShares()
String|undefined getType()
void setCommission(<google.gdata.finance.Commission|Object|undefined> commission)
commission
- Commission for the transaction, or object to use as a parameter to the google.gdata.finance.Commission constructor, or undefined for none
void setDate(<google.gdata.DateTime|Date|undefined> date)
date
- Date at which the transaction occurred or undefined for none
void setNotes(<String|undefined> notes)
notes
- Notes or undefined for none
void setPrice(<google.gdata.finance.Price|Object|undefined> price)
price
- Price of the transaction, or object to use as a parameter to the google.gdata.finance.Price constructor, or undefined for none
void setShares(<Number|undefined> shares)
shares
- Number of shares involved in the transaction or undefined for none
void setType(<String|undefined> type)
type
- Type for the transaction (can be "Buy", "Sell", "Buy to Cover" or "Sell Short") or undefined for none
|
GData JavaScript Client 1.5 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |