Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions types/invity-api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,48 @@ export const cryptoSymbols: readonly [

export type CryptoSymbol = typeof cryptoSymbols[number];

export type FiatCurrencyCode =
| 'usd'
| 'eur'
| 'gbp'
| 'aed'
| 'ars'
| 'aud'
| 'bdt'
| 'brl'
| 'cad'
| 'chf'
| 'clp'
| 'cny'
| 'czk'
| 'dkk'
| 'hkd'
| 'huf'
| 'idr'
| 'ils'
| 'inr'
| 'jpy'
| 'krw'
| 'kwd'
| 'lkr'
| 'mxn'
| 'myr'
| 'nok'
| 'nzd'
| 'php'
| 'pln'
| 'rub'
| 'sar'
| 'sek'
| 'sgd'
| 'thb'
| 'try'
| 'twd'
| 'vnd'
| 'zar';

export type FiatCurrenciesProps = Record<FiatCurrencyCode, number>;

// buy types

export type BuyTradeFinalStatus =
Expand Down Expand Up @@ -305,6 +347,7 @@ export interface BuyListResponse {
country: string;
suggestedFiatCurrency?: string | undefined; // optional field, fiat currency based on user's IP
providers: BuyProviderInfo[];
defaultAmountsOfFiatCurrencies: FiatCurrenciesProps;
}

export interface BuyTradeQuoteRequest {
Expand Down
2 changes: 1 addition & 1 deletion types/invity-api/invity-api-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const p2pQuote: P2pQuote = {
title: "",
currency: "",
price: "",
amountRange: { maximum: "0", minimum: "0" },
amountRange: { maximum: "0", minimum: "0", },
paymentWindowMinutes: 0,
paymentMethods: [],
confirmations: 0,
Expand Down