ofx4js
Version:
A javascript OFX library, ported from OFX4J
33 lines (32 loc) • 1.04 kB
TypeScript
import { BaseSellInvestmentTransaction } from "./BaseSellInvestmentTransaction";
import { SellType } from "./SellType";
/**
* Transaction for selling stock.
* @see "Section 13.9.2.4.4, OFX Spec"
*/
export declare class SellStockTransaction extends BaseSellInvestmentTransaction {
private sellType;
constructor();
/**
* Gets the type of stock sale (i.e. "SELL" or "SELLSHORT"). This is a required field
* according to the OFX spec.
* @see "Section 13.9.2.4.4, OFX Spec"
*
* @return the sell type
*/
getSellType(): string;
/**
* Sets the type of stock sale (i.e. "SELL" or "SELLSHORT"). This is a required field
* according to the OFX spec.
* @see "Section 13.9.2.4.4, OFX Spec"
*
* @param sellType the sell type
*/
setSellType(sellType: string): void;
/**
* Gets the sell type as one of the well-known types.
*
* @return the type of sale or null if it's not known
*/
getSellTypeEnum(): SellType;
}