diff --git a/types/invity-api/index.d.ts b/types/invity-api/index.d.ts index 3473831d805f30..2a4830bc98aa80 100644 --- a/types/invity-api/index.d.ts +++ b/types/invity-api/index.d.ts @@ -243,6 +243,7 @@ export interface BuyTradeQuoteRequest { country?: string | undefined; subdivision?: string | undefined; paymentMethod?: BuyCryptoPaymentMethod | undefined; + receiveAddress?: string; } export type BuyTradeQuoteResponse = BuyTrade[]; diff --git a/types/invity-api/invity-api-tests.ts b/types/invity-api/invity-api-tests.ts index 068d4817c52349..744dee8c7ef7bc 100644 --- a/types/invity-api/invity-api-tests.ts +++ b/types/invity-api/invity-api-tests.ts @@ -3,6 +3,7 @@ import { BuyListResponse, BuyProviderInfo, BuyTrade, + BuyTradeQuoteRequest, ConfirmExchangeTradeRequest, CreateTradeSignatureRequestExchange, CreateTradeSignatureRequestSell, @@ -25,6 +26,17 @@ const bt: BuyTrade = { tags: ["noExternalAddress"], }; +const bqt: BuyTradeQuoteRequest = { + wantCrypto: true, + fiatAmount: 1000, + fiatStringAmount: "1000", + cryptoAmount: 0.3, + cryptoStringAmount: "0.3", + receiveAddress: "receiveAddress", + receiveCurrency: "bitcoin" as CryptoId, + fiatCurrency: "USD", +}; + const et: ExchangeTrade = { send: "bitcoin" as CryptoId, receive: "ethereum" as CryptoId,