Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#68884 [invity-api]: Add brandName to BuyPr…
Browse files Browse the repository at this point in the history
…oviderInfo by @LukasRada
  • Loading branch information
LukasRada authored Mar 4, 2024
1 parent 0760c38 commit bd0b1e7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/invity-api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ export type BuyTradeTag = "renewed" | "alternativeCurrency" | "bestRate" | "favo

export interface BuyProviderInfo {
name: string; // simplex
companyName: string; // Simplex
companyName: string; // UAB Invity Finance
brandName?: string; // Invity
logo: string; // simplex-icon.jpg
isActive: boolean;
isDisabled?: boolean;
Expand Down
13 changes: 13 additions & 0 deletions types/invity-api/invity-api-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
SavingsTradeItem,
SavingsTradeKYCStatusSuccessfulResponse,
SellFiatTrade,
BuyProviderInfo,
} from "invity-api";

const bt: BuyTrade = {
Expand Down Expand Up @@ -68,3 +69,15 @@ const p2pTrade: P2pTradeRequest = {
};

const stKYCInProgress: SavingsTradeKYCStatusSuccessfulResponse = { kycStatus: "InProgress" };

const providerInfo: BuyProviderInfo = {
companyName: "Invity",
brandName: "UAB Invity Finance",
isActive: true,
logo: "logo.svg",
name: "invity",
tradedCoins: [],
tradedFiatCurrencies: [],
supportedCountries: [],
paymentMethods: []
}

0 comments on commit bd0b1e7

Please sign in to comment.