Skip to content

Commit 12f6164

Browse files
authored
🤖 Merge PR DefinitelyTyped#75078 [invity-api] receiverAddress in buy quotes request by @FreeWall
1 parent 4e4c198 commit 12f6164

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

‎types/invity-api/index.d.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ export interface BuyTradeQuoteRequest {
243243
country?: string | undefined;
244244
subdivision?: string | undefined;
245245
paymentMethod?: BuyCryptoPaymentMethod | undefined;
246+
receiveAddress?: string;
246247
}
247248

248249
export type BuyTradeQuoteResponse = BuyTrade[];

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
BuyListResponse,
44
BuyProviderInfo,
55
BuyTrade,
6+
BuyTradeQuoteRequest,
67
ConfirmExchangeTradeRequest,
78
CreateTradeSignatureRequestExchange,
89
CreateTradeSignatureRequestSell,
@@ -25,6 +26,17 @@ const bt: BuyTrade = {
2526
tags: ["noExternalAddress"],
2627
};
2728

29+
const bqt: BuyTradeQuoteRequest = {
30+
wantCrypto: true,
31+
fiatAmount: 1000,
32+
fiatStringAmount: "1000",
33+
cryptoAmount: 0.3,
34+
cryptoStringAmount: "0.3",
35+
receiveAddress: 'receiveAddress',
36+
receiveCurrency: 'bitcoin' as CryptoId,
37+
fiatCurrency: 'USD',
38+
};
39+
2840
const et: ExchangeTrade = {
2941
send: "bitcoin" as CryptoId,
3042
receive: "ethereum" as CryptoId,

0 commit comments

Comments
 (0)