Files
ezbookkeeping/src/models/exchange_rate.ts
T
2025-05-26 00:47:19 +08:00

32 lines
802 B
TypeScript

export interface UserCustomExchangeRateUpdateRequest {
readonly currency: string;
readonly rate: string;
}
export interface UserCustomExchangeRateDeleteRequest {
readonly currency: string;
}
export interface UserCustomExchangeRateUpdateResponse extends LatestExchangeRate {
readonly updateTime: number;
}
export interface LatestExchangeRate {
readonly currency: string;
readonly rate: string;
}
export interface LatestExchangeRateResponse {
readonly dataSource: string;
readonly referenceUrl: string;
updateTime: number;
readonly baseCurrency: string;
readonly exchangeRates: LatestExchangeRate[];
}
export interface LocalizedLatestExchangeRate {
readonly currencyCode: string;
readonly currencyDisplayName: string;
readonly rate: string;
}