@hitc/netsuite-types
Version:
TypeScript typings for SuiteScript 2.0
21 lines (19 loc) • 638 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 declare function exchangeRate(options: ExchangeRateOptions): number;