Skip to content

Commit d527cf1

Browse files
committed
[invity-api]: Add default amounts for fiat currencies
1 parent bc2d923 commit d527cf1

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

types/invity-api/index.d.ts

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,48 @@ export const cryptoSymbols: readonly [
240240

241241
export type CryptoSymbol = typeof cryptoSymbols[number];
242242

243+
export type FiatCurrencyCode =
244+
| 'usd'
245+
| 'eur'
246+
| 'gbp'
247+
| 'aed'
248+
| 'ars'
249+
| 'aud'
250+
| 'bdt'
251+
| 'brl'
252+
| 'cad'
253+
| 'chf'
254+
| 'clp'
255+
| 'cny'
256+
| 'czk'
257+
| 'dkk'
258+
| 'hkd'
259+
| 'huf'
260+
| 'idr'
261+
| 'ils'
262+
| 'inr'
263+
| 'jpy'
264+
| 'krw'
265+
| 'kwd'
266+
| 'lkr'
267+
| 'mxn'
268+
| 'myr'
269+
| 'nok'
270+
| 'nzd'
271+
| 'php'
272+
| 'pln'
273+
| 'rub'
274+
| 'sar'
275+
| 'sek'
276+
| 'sgd'
277+
| 'thb'
278+
| 'try'
279+
| 'twd'
280+
| 'vnd'
281+
| 'zar';
282+
283+
export type FiatCurrenciesProps = Record<FiatCurrencyCode, number>;
284+
243285
// buy types
244286

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

310353
export interface BuyTradeQuoteRequest {

types/invity-api/invity-api-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const p2pQuote: P2pQuote = {
5858
title: "",
5959
currency: "",
6060
price: "",
61-
amountRange: { maximum: "0", minimum: "0" },
61+
amountRange: { maximum: "0", minimum: "0", },
6262
paymentWindowMinutes: 0,
6363
paymentMethods: [],
6464
confirmations: 0,

0 commit comments

Comments
 (0)