UNPKG

ofx4js

Version:

A javascript OFX library, ported from OFX4J

33 lines (32 loc) 1.04 kB
import { BaseBuyInvestmentTransaction } from "./BaseBuyInvestmentTransaction"; import { BuyType } from "./BuyType"; /** * Transaction for buying stock. * @see "Section 13.9.2.4.4, OFX Spec" */ export declare class BuyStockTransaction extends BaseBuyInvestmentTransaction { private buyType; constructor(); /** * Gets the type of stock purchase (i.e. "BUY" or "BUYTOCOVER"). This is a required field * according to the OFX spec. * @see "Section 13.9.2.4.4, OFX Spec" * * @return the buy type */ getBuyType(): string; /** * Sets the type of stock purchase (i.e. "BUY" or "BUYTOCOVER"). This is a required field * according to the OFX spec. * @see "Section 13.9.2.4.4, OFX Spec" * * @param buyType the buy type */ setBuyType(buyType: string): void; /** * Gets the buy type as one of the well-known types. * * @return the type of purchase or null if it's not well known */ getBuyTypeEnum(): BuyType; }