ofx4js
Version:
A javascript OFX library, ported from OFX4J
39 lines (38 loc) • 1.61 kB
TypeScript
import { MessageSetType } from "../../MessageSetType";
import { ResponseMessageSet } from "../../ResponseMessageSet";
import { InvestmentStatementResponseTransaction } from "./InvestmentStatementResponseTransaction";
import { ResponseMessage } from "../../ResponseMessage";
/**
* Investment statement response message set.
* @see "Section 13.7.1.2.2, OFX Spec"
*/
export declare class InvestmentStatementResponseMessageSet extends ResponseMessageSet {
private statementResponses;
getType(): MessageSetType;
/**
* Gets the statement response list. Most OFX files have a single statement response.
*
* @return the statement response list
*/
getStatementResponses(): Array<InvestmentStatementResponseTransaction>;
/**
* Sets the statement reponse list. Most OFX files have a single statement response.
*
* @param statementResponses the statement response list
*/
setStatementResponses(statementResponses: Array<InvestmentStatementResponseTransaction>): void;
/**
* Gets the first statement response. Use getStatementResponses() if you are expecting multiple
* responses.
*
* @return the first investment statement response.
*/
getStatementResponse(): InvestmentStatementResponseTransaction;
/**
* Sets the statement response if there is a single response.
*
* @param statementResponse The statement response.
*/
setStatementResponse(statementResponse: InvestmentStatementResponseTransaction): void;
getResponseMessages(): Array<ResponseMessage>;
}