Skip to content

Commit 81d0317

Browse files
🤖 Merge PR DefinitelyTyped#72572 [invity-api]: sell provider lockAmount parameter by @adderpositive
1 parent 23d52ee commit 81d0317

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,8 @@ export interface SellProviderInfo {
470470
flow?: SellFiatFlowType | undefined;
471471
isRefundAddressRequired?: boolean | undefined;
472472
pendingTimeout?: number | undefined; // Time until a SUBMITTED transaction automatically changes to PENDING. Null means it does not change.
473+
/** Should be used when it's necessary to have the exact amount match between the trade and the transaction */
474+
lockSendAmount?: boolean;
473475
}
474476

475477
export interface SellListResponse {

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
ExchangeTrade,
77
InfoResponse,
88
SellFiatTrade,
9+
SellProviderInfo,
910
WatchSellTradeResponse,
1011
} from "invity-api";
1112

@@ -92,3 +93,19 @@ const exchangeProviderInfo: ExchangeProviderInfo = {
9293
kycPolicyType: "KYC-norefund",
9394
isRefundRequired: false,
9495
};
96+
97+
const sellProviderInfo: SellProviderInfo = {
98+
name: "example",
99+
companyName: "Example",
100+
logo: "example-icon.jpg",
101+
type: "Fiat",
102+
isActive: true,
103+
tradedCoins: ["bitcoin", "ethereum"] as CryptoId[],
104+
tradedFiatCurrencies: ["USD"],
105+
supportedCountries: ["US"],
106+
statusUrl: "https://example.com/txs/{{orderId}}",
107+
supportUrl: " https://support.example.com",
108+
flow: "PAYMENT_GATE",
109+
isRefundAddressRequired: false,
110+
lockSendAmount: false,
111+
};

0 commit comments

Comments
 (0)