2017-09-24 19:06:28 -07:00
|
|
|
import { TypeKeys } from './constants';
|
2017-09-25 20:41:11 -07:00
|
|
|
import { CCResponse } from './actionPayloads';
|
|
|
|
|
|
|
|
export interface FetchCCRates {
|
|
|
|
type: TypeKeys.RATES_FETCH_CC;
|
|
|
|
payload: Promise<CCResponse>;
|
2017-09-24 19:06:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*** Set rates ***/
|
2017-09-25 20:41:11 -07:00
|
|
|
export interface FetchCCRatesSucceeded {
|
|
|
|
type: TypeKeys.RATES_FETCH_CC_SUCCEEDED;
|
|
|
|
payload: CCResponse;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FetchCCRatesFailed {
|
|
|
|
type: TypeKeys.RATES_FETCH_CC_FAILED;
|
2017-09-24 19:06:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
/*** Union Type ***/
|
2017-09-25 20:41:11 -07:00
|
|
|
export type RatesAction =
|
|
|
|
| FetchCCRatesSucceeded
|
|
|
|
| FetchCCRates
|
|
|
|
| FetchCCRatesFailed;
|