You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
test-assignment-payments/src/exchange-rate/exchange-rate.dto.ts

26 lines
408 B

export enum URL {
exchangeRateConvertUrl = 'https://api.exchangerate.host/{date}',
}
export type ExchangeRateInput = {
date: string;
};
export type ExchangeRateResponse = {
motd: {
msg: string;
url: string;
};
success: true;
query: {
from: string;
to: string;
amount: number;
};
info: {
rate: number;
};
historical: boolean;
date: string;
result: number;
};