UNPKG

ofx4js

Version:

A javascript OFX library, ported from OFX4J

40 lines (39 loc) 1.52 kB
/** * Original currency aggregate ("ORIGCURRENCY"). For investment transactions in other currencies, * the financial institution can report the transaction as converted into the default currency * and then include this child aggregate to report what the original currency was and what the * rate of conversion was. * @see "Section 5.2, OFX Spec" */ export declare class OriginalCurrency { private currencyRate; private currencyCode; /** * Gets the rate of currency conversion. This is the ratio of "CURDEF" (the default currency in * the transaction response) to "CURSYM" (the original currency code below). * * @return the currency rate */ getCurrencyRate(): number; /** * Sets the rate of currency conversion. This is the ratio of "CURDEF" (the default currency in * the transaction response) to "CURSYM" (the original currency code below). * * @param currencyRate the currency rate */ setCurrencyRate(currencyRate: number): void; /** * Gets the ISO-4217 3-letter currency identifier of the original currency. * @see java.util.Currency#getCurrencyCode() * * @return the currency code */ getCurrencyCode(): string; /** * Sets the ISO-4217 3-letter currency identifier of the original currency. * @see java.util.Currency#getCurrencyCode() * * @param currencyCode the currency code */ setCurrencyCode(currencyCode: string): void; }