ofx4js
Version:
A javascript OFX library, ported from OFX4J
60 lines (59 loc) • 1.99 kB
TypeScript
import { BasePosition } from "./BasePosition";
/**
* Represents a mutual fund position.
* @see "Section 13.9.2.6.1, OFX Spec"
*/
export declare class MutualFundPosition extends BasePosition {
private unitsStreet;
private unitsUser;
private reinvestDividends;
private reinvestCapitalGains;
/**
* Gets the number of units in the financial insititution's street name.
*
* @return the number of units in the financial insititution's street name.
*/
getUnitsStreet(): number;
/**
* Sets the number of units in the financial insititution's street name.
*
* @param unitsStreet the number of units in the financial insititution's street name.
*/
setUnitsStreet(unitsStreet: number): void;
/**
* Gets the number of units in the user's name.
*
* @return the number of units in the user's name.
*/
getUnitsUser(): number;
/**
* Sets the number of units in the user's name.
*
* @param unitsUser the number of units in the user's name.
*/
setUnitsUser(unitsUser: number): void;
/**
* Gets whether dividends are automatically reinvested.
*
* @return whether dividends are automatically reinvested
*/
getReinvestDividends(): boolean;
/**
* Sets whether dividends are automatically reinvested.
*
* @param reinvestDividends whether dividends are automatically reinvested
*/
setReinvestDividends(reinvestDividends: boolean): void;
/**
* Gets whether capital gains are automatically reinvested.
*
* @return whether capital gains are automatically reinvested
*/
getReinvestCapitalGains(): boolean;
/**
* Sets whether capital gains are automatically reinvested.
*
* @param reinvestCapitalGains whether capital gains are automatically reinvested
*/
setReinvestCapitalGains(reinvestCapitalGains: boolean): void;
}