@btonasse/suitescript-types
Version:
Typings for SuiteScript 2.1
21 lines (19 loc) • 650 B
TypeScript
interface ExchangeRateOptions {
/**
* The point in time to evaluate currency.
*/
date?: Date;
/**
* The internal ID or three-letter ISO code for the currency you are converting from.
*/
source: number | string;
/**
* The internal ID or three-letter ISO code for the currency you are converting to.
*/
target: number | string;
}
/**
* Method used to return the exchange rate between two currencies based on a certain date.
* The exchange rate values are sourced from the Currency Exchange Rate record.
*/
export function exchangeRate(options: ExchangeRateOptions): number;