UNPKG

ofx4js

Version:

A javascript OFX library, ported from OFX4J

50 lines (49 loc) 1.75 kB
import { BaseBuyInvestmentTransaction } from "./BaseBuyInvestmentTransaction"; import { BuyType } from "./BuyType"; /** * Transaction for buying mutual funds. * @see "Section 13.9.2.4.4, OFX Spec" */ export declare class BuyMutualFundTransaction extends BaseBuyInvestmentTransaction { private buyType; private relatedTransactionId; constructor(); /** * Gets the type of 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 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 known */ getBuyTypeEnum(): BuyType; /** * Gets any related transaction id for a mutual fund purchase (e.g. for a mutual fund exchange). * This is an optional field according to the OFX spec. * @see "Section 13.9.2.4.4, OFX Spec" * * @return the related transaction id */ getRelatedTransactionId(): string; /** * Sets any related transaction id for a mutual fund purchase (e.g. for a mutual fund exchange). * This is an optional field according to the OFX spec. * @see "Section 13.9.2.4.4, OFX Spec" * * @param relatedTransactionId the related transaction id */ setRelatedTransactionId(relatedTransactionId: string): void; }