squarefi-bff-api-module 1.34.0 → 1.34.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/referrals.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const referrals: {
|
|
|
4
4
|
getAll: () => Promise<API.Referrals.Levels.Response>;
|
|
5
5
|
};
|
|
6
6
|
income: {
|
|
7
|
+
getList: (params?: API.Referrals.Income.List.Request) => Promise<API.Referrals.Income.List.Response>;
|
|
7
8
|
progress: {
|
|
8
9
|
get: () => Promise<API.Referrals.Income.Progress.Response>;
|
|
9
10
|
};
|
package/dist/api/referrals.js
CHANGED
|
@@ -4,6 +4,7 @@ export const referrals = {
|
|
|
4
4
|
getAll: () => apiClientV2.getRequest('/referrals/levels'),
|
|
5
5
|
},
|
|
6
6
|
income: {
|
|
7
|
+
getList: (params) => apiClientV2.getRequest('/referrals/income', { params }),
|
|
7
8
|
progress: {
|
|
8
9
|
get: () => apiClientV2.getRequest('/referrals/income/progress'),
|
|
9
10
|
},
|
|
@@ -414,6 +414,23 @@ export interface paths {
|
|
|
414
414
|
patch?: never;
|
|
415
415
|
trace?: never;
|
|
416
416
|
};
|
|
417
|
+
"/referrals/income": {
|
|
418
|
+
parameters: {
|
|
419
|
+
query?: never;
|
|
420
|
+
header?: never;
|
|
421
|
+
path?: never;
|
|
422
|
+
cookie?: never;
|
|
423
|
+
};
|
|
424
|
+
/** Get referral income transactions for current user main wallet */
|
|
425
|
+
get: operations["ReferralsController_getIncomeList"];
|
|
426
|
+
put?: never;
|
|
427
|
+
post?: never;
|
|
428
|
+
delete?: never;
|
|
429
|
+
options?: never;
|
|
430
|
+
head?: never;
|
|
431
|
+
patch?: never;
|
|
432
|
+
trace?: never;
|
|
433
|
+
};
|
|
417
434
|
"/referrals/income/progress": {
|
|
418
435
|
parameters: {
|
|
419
436
|
query?: never;
|
|
@@ -613,23 +630,6 @@ export interface paths {
|
|
|
613
630
|
patch?: never;
|
|
614
631
|
trace?: never;
|
|
615
632
|
};
|
|
616
|
-
"/issuing/programs": {
|
|
617
|
-
parameters: {
|
|
618
|
-
query?: never;
|
|
619
|
-
header?: never;
|
|
620
|
-
path?: never;
|
|
621
|
-
cookie?: never;
|
|
622
|
-
};
|
|
623
|
-
/** Get issuing Programs */
|
|
624
|
-
get: operations["ProgramsController_getPrograms"];
|
|
625
|
-
put?: never;
|
|
626
|
-
post?: never;
|
|
627
|
-
delete?: never;
|
|
628
|
-
options?: never;
|
|
629
|
-
head?: never;
|
|
630
|
-
patch?: never;
|
|
631
|
-
trace?: never;
|
|
632
|
-
};
|
|
633
633
|
"/exchange/rates": {
|
|
634
634
|
parameters: {
|
|
635
635
|
query?: never;
|
|
@@ -650,58 +650,6 @@ export interface paths {
|
|
|
650
650
|
patch?: never;
|
|
651
651
|
trace?: never;
|
|
652
652
|
};
|
|
653
|
-
"/fiat-accounts/{wallet_id}": {
|
|
654
|
-
parameters: {
|
|
655
|
-
query?: never;
|
|
656
|
-
header?: never;
|
|
657
|
-
path?: never;
|
|
658
|
-
cookie?: never;
|
|
659
|
-
};
|
|
660
|
-
/** List of fiat accounts by wallet id */
|
|
661
|
-
get: operations["FiatAccountsController_findAllByWallet"];
|
|
662
|
-
put?: never;
|
|
663
|
-
/** Create a new fiat account */
|
|
664
|
-
post: operations["FiatAccountsController_create"];
|
|
665
|
-
delete?: never;
|
|
666
|
-
options?: never;
|
|
667
|
-
head?: never;
|
|
668
|
-
patch?: never;
|
|
669
|
-
trace?: never;
|
|
670
|
-
};
|
|
671
|
-
"/fiat-accounts/{wallet_id}/{id}": {
|
|
672
|
-
parameters: {
|
|
673
|
-
query?: never;
|
|
674
|
-
header?: never;
|
|
675
|
-
path?: never;
|
|
676
|
-
cookie?: never;
|
|
677
|
-
};
|
|
678
|
-
/** Get a specific fiat account by ID */
|
|
679
|
-
get: operations["FiatAccountsController_findOne"];
|
|
680
|
-
put?: never;
|
|
681
|
-
post?: never;
|
|
682
|
-
delete?: never;
|
|
683
|
-
options?: never;
|
|
684
|
-
head?: never;
|
|
685
|
-
patch?: never;
|
|
686
|
-
trace?: never;
|
|
687
|
-
};
|
|
688
|
-
"/fiat-accounts/{wallet_id}/{id}/transactions": {
|
|
689
|
-
parameters: {
|
|
690
|
-
query?: never;
|
|
691
|
-
header?: never;
|
|
692
|
-
path?: never;
|
|
693
|
-
cookie?: never;
|
|
694
|
-
};
|
|
695
|
-
/** Get transactions for a specific Fiat Account by ID */
|
|
696
|
-
get: operations["TransactionsController_findAll"];
|
|
697
|
-
put?: never;
|
|
698
|
-
post?: never;
|
|
699
|
-
delete?: never;
|
|
700
|
-
options?: never;
|
|
701
|
-
head?: never;
|
|
702
|
-
patch?: never;
|
|
703
|
-
trace?: never;
|
|
704
|
-
};
|
|
705
653
|
"/developer/accesses": {
|
|
706
654
|
parameters: {
|
|
707
655
|
query?: never;
|
|
@@ -1491,6 +1439,70 @@ export interface components {
|
|
|
1491
1439
|
ReferralLevelsResponseDto: {
|
|
1492
1440
|
levels: components["schemas"]["ReferralLevelDto"][];
|
|
1493
1441
|
};
|
|
1442
|
+
PaginationResponseDto: {
|
|
1443
|
+
/** @example 20 */
|
|
1444
|
+
total: number;
|
|
1445
|
+
/** @description Data */
|
|
1446
|
+
data: Record<string, never>[];
|
|
1447
|
+
/** @description Has more data flag */
|
|
1448
|
+
readonly has_more: boolean;
|
|
1449
|
+
};
|
|
1450
|
+
TransactionMetaEntity: {
|
|
1451
|
+
billing_amount: number;
|
|
1452
|
+
billing_amount_currency: string;
|
|
1453
|
+
exchange_rate: number;
|
|
1454
|
+
fee: number;
|
|
1455
|
+
fee_currency: string;
|
|
1456
|
+
transaction_amount: number;
|
|
1457
|
+
transaction_amount_currency: string;
|
|
1458
|
+
network_fee?: number;
|
|
1459
|
+
network_fee_currency?: string;
|
|
1460
|
+
order_id?: string;
|
|
1461
|
+
fiat_account_id?: string;
|
|
1462
|
+
txid?: string;
|
|
1463
|
+
chain_id?: number;
|
|
1464
|
+
from_address?: string;
|
|
1465
|
+
to_address?: string;
|
|
1466
|
+
from_user_data?: number;
|
|
1467
|
+
to_user_data?: number;
|
|
1468
|
+
to_card_id?: string;
|
|
1469
|
+
to_card_last4?: string;
|
|
1470
|
+
to_fiat_account_id?: string;
|
|
1471
|
+
to_vendor_id?: string;
|
|
1472
|
+
};
|
|
1473
|
+
WalletTransactionDto: {
|
|
1474
|
+
id: number;
|
|
1475
|
+
amount: number;
|
|
1476
|
+
created_at: string;
|
|
1477
|
+
info: string | null;
|
|
1478
|
+
/** @enum {string} */
|
|
1479
|
+
status: "complete" | "pending" | "canceled" | "failed" | "processing" | "new";
|
|
1480
|
+
txid: string | null;
|
|
1481
|
+
/** @enum {string} */
|
|
1482
|
+
type: "deposit_crypto" | "withdrawal_crypto" | "deposit_fiat" | "withdrawal_fiat" | "deposit_vcard" | "withdrawal_vcard" | "deposit" | "withdrawal";
|
|
1483
|
+
wallet_id: string | null;
|
|
1484
|
+
/** @enum {string|null} */
|
|
1485
|
+
method: "p2p" | "crypto" | "bank_transfer" | "exchange" | "sbp" | "internal_fiat" | null;
|
|
1486
|
+
meta: components["schemas"]["TransactionMetaEntity"] | null;
|
|
1487
|
+
/** @enum {string|null} */
|
|
1488
|
+
record_type: "WITHDRAWAL" | "DEPOSIT" | "REFERRAL_INCOME" | null;
|
|
1489
|
+
currency: components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"];
|
|
1490
|
+
};
|
|
1491
|
+
ReferralIncomeFilter: {
|
|
1492
|
+
created_at?: string;
|
|
1493
|
+
/** @enum {string|null} */
|
|
1494
|
+
method?: "p2p" | "crypto" | "bank_transfer" | "exchange" | "sbp" | "internal_fiat" | null;
|
|
1495
|
+
"currency.uuid"?: string;
|
|
1496
|
+
"meta.billing_amount_currency"?: string;
|
|
1497
|
+
"meta.transaction_amount_currency"?: string;
|
|
1498
|
+
/** Format: date-time */
|
|
1499
|
+
from_created_at?: string;
|
|
1500
|
+
/** Format: date-time */
|
|
1501
|
+
to_created_at?: string;
|
|
1502
|
+
/** @default false */
|
|
1503
|
+
show_low_balance: boolean;
|
|
1504
|
+
status?: ("complete" | "pending" | "canceled" | "failed" | "processing" | "new")[];
|
|
1505
|
+
};
|
|
1494
1506
|
ReferralProgressResponseDto: {
|
|
1495
1507
|
currentLevel: components["schemas"]["ReferralLevelDto"];
|
|
1496
1508
|
/**
|
|
@@ -1510,14 +1522,6 @@ export interface components {
|
|
|
1510
1522
|
/** @example 1250.5 */
|
|
1511
1523
|
incoming_amount: number;
|
|
1512
1524
|
};
|
|
1513
|
-
PaginationResponseDto: {
|
|
1514
|
-
/** @example 20 */
|
|
1515
|
-
total: number;
|
|
1516
|
-
/** @description Data */
|
|
1517
|
-
data: Record<string, never>[];
|
|
1518
|
-
/** @description Has more data flag */
|
|
1519
|
-
readonly has_more: boolean;
|
|
1520
|
-
};
|
|
1521
1525
|
WalletKycInfoDto: {
|
|
1522
1526
|
/** @enum {string} */
|
|
1523
1527
|
type: "individual" | "business" | "universal";
|
|
@@ -1587,47 +1591,6 @@ export interface components {
|
|
|
1587
1591
|
CreateWalletAddressDto: {
|
|
1588
1592
|
label: string;
|
|
1589
1593
|
};
|
|
1590
|
-
TransactionMetaEntity: {
|
|
1591
|
-
billing_amount: number;
|
|
1592
|
-
billing_amount_currency: string;
|
|
1593
|
-
exchange_rate: number;
|
|
1594
|
-
fee: number;
|
|
1595
|
-
fee_currency: string;
|
|
1596
|
-
transaction_amount: number;
|
|
1597
|
-
transaction_amount_currency: string;
|
|
1598
|
-
network_fee?: number;
|
|
1599
|
-
network_fee_currency?: string;
|
|
1600
|
-
order_id?: string;
|
|
1601
|
-
fiat_account_id?: string;
|
|
1602
|
-
txid?: string;
|
|
1603
|
-
chain_id?: number;
|
|
1604
|
-
from_address?: string;
|
|
1605
|
-
to_address?: string;
|
|
1606
|
-
from_user_data?: number;
|
|
1607
|
-
to_user_data?: number;
|
|
1608
|
-
to_card_id?: string;
|
|
1609
|
-
to_card_last4?: string;
|
|
1610
|
-
to_fiat_account_id?: string;
|
|
1611
|
-
to_vendor_id?: string;
|
|
1612
|
-
};
|
|
1613
|
-
WalletTransactionDto: {
|
|
1614
|
-
id: number;
|
|
1615
|
-
amount: number;
|
|
1616
|
-
created_at: string;
|
|
1617
|
-
info: string | null;
|
|
1618
|
-
/** @enum {string} */
|
|
1619
|
-
status: "complete" | "pending" | "canceled" | "failed" | "processing" | "new";
|
|
1620
|
-
txid: string | null;
|
|
1621
|
-
/** @enum {string} */
|
|
1622
|
-
type: "deposit_crypto" | "withdrawal_crypto" | "deposit_fiat" | "withdrawal_fiat" | "deposit_vcard" | "withdrawal_vcard" | "deposit" | "withdrawal";
|
|
1623
|
-
wallet_id: string | null;
|
|
1624
|
-
/** @enum {string|null} */
|
|
1625
|
-
method: "p2p" | "crypto" | "bank_transfer" | "exchange" | "sbp" | "internal_fiat" | null;
|
|
1626
|
-
meta: components["schemas"]["TransactionMetaEntity"] | null;
|
|
1627
|
-
/** @enum {string|null} */
|
|
1628
|
-
record_type: "WITHDRAWAL" | "DEPOSIT" | "REFERRAL_INCOME" | null;
|
|
1629
|
-
currency: components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"];
|
|
1630
|
-
};
|
|
1631
1594
|
TransactionsFilter: {
|
|
1632
1595
|
created_at?: string;
|
|
1633
1596
|
/** @enum {string} */
|
|
@@ -1671,7 +1634,7 @@ export interface components {
|
|
|
1671
1634
|
};
|
|
1672
1635
|
CryptoCurrencyDto: {
|
|
1673
1636
|
uuid: string;
|
|
1674
|
-
decimal: number
|
|
1637
|
+
decimal: number;
|
|
1675
1638
|
render_decimal: number;
|
|
1676
1639
|
is_stablecoin: boolean;
|
|
1677
1640
|
is_memo: boolean;
|
|
@@ -1693,7 +1656,7 @@ export interface components {
|
|
|
1693
1656
|
};
|
|
1694
1657
|
FiatCurrencyDto: {
|
|
1695
1658
|
uuid: string;
|
|
1696
|
-
decimal: number
|
|
1659
|
+
decimal: number;
|
|
1697
1660
|
render_decimal: number;
|
|
1698
1661
|
is_stablecoin: boolean;
|
|
1699
1662
|
is_memo: boolean;
|
|
@@ -1708,33 +1671,6 @@ export interface components {
|
|
|
1708
1671
|
total: number;
|
|
1709
1672
|
data: (components["schemas"]["CryptoCurrencyDto"] | components["schemas"]["FiatCurrencyDto"])[];
|
|
1710
1673
|
};
|
|
1711
|
-
KycRailTermsAndConditionsEntity: {
|
|
1712
|
-
id: string;
|
|
1713
|
-
description: string | null;
|
|
1714
|
-
kyc_rail_id: string;
|
|
1715
|
-
link: string;
|
|
1716
|
-
title: string;
|
|
1717
|
-
};
|
|
1718
|
-
KycRailEntity: {
|
|
1719
|
-
id: string;
|
|
1720
|
-
code: string | null;
|
|
1721
|
-
name: string;
|
|
1722
|
-
/** @enum {string|null} */
|
|
1723
|
-
type: "individual" | "business" | "universal" | null;
|
|
1724
|
-
/** @description Current terms and conditions data */
|
|
1725
|
-
terms_and_conditions?: components["schemas"]["KycRailTermsAndConditionsEntity"][];
|
|
1726
|
-
};
|
|
1727
|
-
IssuingProgramDto: {
|
|
1728
|
-
id: string;
|
|
1729
|
-
/** @enum {string|null} */
|
|
1730
|
-
form_factor: "PHYSICAL" | "VIRTUAL" | null;
|
|
1731
|
-
/** @enum {string|null} */
|
|
1732
|
-
brand: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY" | null;
|
|
1733
|
-
tokenizable: boolean;
|
|
1734
|
-
/** @enum {string|null} */
|
|
1735
|
-
type: "CREDIT" | "DEBIT" | null;
|
|
1736
|
-
kyc_rail: components["schemas"]["KycRailEntity"] | null;
|
|
1737
|
-
};
|
|
1738
1674
|
ExchangeRateDto: {
|
|
1739
1675
|
from: string;
|
|
1740
1676
|
from_uuid: string | null;
|
|
@@ -1745,142 +1681,6 @@ export interface components {
|
|
|
1745
1681
|
to: string;
|
|
1746
1682
|
to_uuid: string | null;
|
|
1747
1683
|
};
|
|
1748
|
-
IssuingProgram: {
|
|
1749
|
-
id: string;
|
|
1750
|
-
/** @enum {string|null} */
|
|
1751
|
-
form_factor: "PHYSICAL" | "VIRTUAL" | null;
|
|
1752
|
-
/** @enum {string|null} */
|
|
1753
|
-
brand: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY" | null;
|
|
1754
|
-
tokenizable: boolean;
|
|
1755
|
-
/** @enum {string|null} */
|
|
1756
|
-
type: "CREDIT" | "DEBIT" | null;
|
|
1757
|
-
kyc_rail: components["schemas"]["KycRailEntity"] | null;
|
|
1758
|
-
};
|
|
1759
|
-
FiatAccountIssuingCardDto: {
|
|
1760
|
-
card_id: string;
|
|
1761
|
-
program_id: string;
|
|
1762
|
-
wallet_id: string;
|
|
1763
|
-
nick_name: string;
|
|
1764
|
-
name_on_card?: string;
|
|
1765
|
-
/** @enum {string} */
|
|
1766
|
-
card_status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
|
|
1767
|
-
/** @enum {string} */
|
|
1768
|
-
brand?: "VISA" | "MASTERCARD" | "AMEX" | "UNIONPAY";
|
|
1769
|
-
/** @enum {string} */
|
|
1770
|
-
type?: "CREDIT" | "DEBIT";
|
|
1771
|
-
/** @enum {string} */
|
|
1772
|
-
form_factor: "PHYSICAL" | "VIRTUAL";
|
|
1773
|
-
tokenizable: boolean;
|
|
1774
|
-
request_id: string;
|
|
1775
|
-
created_at: string;
|
|
1776
|
-
last4?: string;
|
|
1777
|
-
};
|
|
1778
|
-
FiatAccountDto: {
|
|
1779
|
-
id: string;
|
|
1780
|
-
balance: number | null;
|
|
1781
|
-
nick_name: string | null;
|
|
1782
|
-
wallet_id: string;
|
|
1783
|
-
created_at: string;
|
|
1784
|
-
/** @enum {string} */
|
|
1785
|
-
status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
|
|
1786
|
-
issuing_program: components["schemas"]["IssuingProgram"] | null;
|
|
1787
|
-
currency: components["schemas"]["FiatCurrencyDto"];
|
|
1788
|
-
total_balance: number;
|
|
1789
|
-
realtimeauth_balance: number;
|
|
1790
|
-
fiat_balance: number;
|
|
1791
|
-
cards_count: number;
|
|
1792
|
-
cards?: components["schemas"]["FiatAccountIssuingCardDto"][];
|
|
1793
|
-
};
|
|
1794
|
-
CreateFiatAccountDto: {
|
|
1795
|
-
program_id: string;
|
|
1796
|
-
};
|
|
1797
|
-
FiatAccountEntity: {
|
|
1798
|
-
id: string;
|
|
1799
|
-
balance: number | null;
|
|
1800
|
-
nick_name: string | null;
|
|
1801
|
-
wallet_id: string;
|
|
1802
|
-
created_at: string;
|
|
1803
|
-
account_currency: string;
|
|
1804
|
-
/** @enum {string} */
|
|
1805
|
-
type: "balance" | "prepaid";
|
|
1806
|
-
program_id: string | null;
|
|
1807
|
-
/** @enum {string} */
|
|
1808
|
-
status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
|
|
1809
|
-
issuing_program: components["schemas"]["IssuingProgram"] | null;
|
|
1810
|
-
};
|
|
1811
|
-
FiatAccountDetailsDto: {
|
|
1812
|
-
iban: string;
|
|
1813
|
-
bank_name: string;
|
|
1814
|
-
swift_code: string;
|
|
1815
|
-
bank_address: string;
|
|
1816
|
-
receiver_name: string;
|
|
1817
|
-
payment_details: string;
|
|
1818
|
-
reference_number: string;
|
|
1819
|
-
registration_number: string;
|
|
1820
|
-
};
|
|
1821
|
-
FiatAccountRealtimeauthEntity: {
|
|
1822
|
-
id: string;
|
|
1823
|
-
crypto_token: Record<string, never> | null;
|
|
1824
|
-
priority: Record<string, never> | null;
|
|
1825
|
-
fiat_account: Record<string, never> | null;
|
|
1826
|
-
};
|
|
1827
|
-
FiatAccountOrderTypeEntity: {
|
|
1828
|
-
/** @enum {string|null} */
|
|
1829
|
-
order_type: "TRANSFER_CARD_SUBACCOUNT" | "TRANSFER_CARD_PREPAID" | "WITHDRAWAL_CRYPTO" | "DEPOSIT_CRYPTO" | "DEPOSIT_FIAT_SEPA" | "DEPOSIT_FIAT_SWIFT" | "EXCHANGE_CRYPTO_INTERNAL" | "WITHDRAWAL_FIAT_SEPA" | "TRANSFER_INTERNAL" | "TRANSFER_CARD_WHOLESALE" | "CARD_ISSUING_FEE" | null;
|
|
1830
|
-
};
|
|
1831
|
-
FiatAccountExtendedDto: {
|
|
1832
|
-
id: string;
|
|
1833
|
-
balance: number | null;
|
|
1834
|
-
nick_name: string | null;
|
|
1835
|
-
wallet_id: string;
|
|
1836
|
-
created_at: string;
|
|
1837
|
-
/** @enum {string} */
|
|
1838
|
-
status: "ACTIVE" | "CANCELED" | "FROZEN" | "INACTIVE" | "CLOSED" | "BLOCKED";
|
|
1839
|
-
issuing_program: components["schemas"]["IssuingProgram"] | null;
|
|
1840
|
-
currency: components["schemas"]["FiatCurrencyDto"];
|
|
1841
|
-
total_balance: number;
|
|
1842
|
-
realtimeauth_balance: number;
|
|
1843
|
-
fiat_balance: number;
|
|
1844
|
-
cards_count: number;
|
|
1845
|
-
cards?: components["schemas"]["FiatAccountIssuingCardDto"][];
|
|
1846
|
-
account_details: components["schemas"]["FiatAccountDetailsDto"];
|
|
1847
|
-
realtime_auth: components["schemas"]["FiatAccountRealtimeauthEntity"][];
|
|
1848
|
-
payment_types: components["schemas"]["FiatAccountOrderTypeEntity"][];
|
|
1849
|
-
};
|
|
1850
|
-
MerchantDto: {
|
|
1851
|
-
name: string;
|
|
1852
|
-
category_code: string;
|
|
1853
|
-
city: string;
|
|
1854
|
-
country: string;
|
|
1855
|
-
};
|
|
1856
|
-
FiatAccountTransactionDto: {
|
|
1857
|
-
vendor_transaction_id: string;
|
|
1858
|
-
created_at: string;
|
|
1859
|
-
cleared_at: string;
|
|
1860
|
-
merchant: components["schemas"]["MerchantDto"];
|
|
1861
|
-
last4: string;
|
|
1862
|
-
title: string;
|
|
1863
|
-
billing_amount: number;
|
|
1864
|
-
billing_currency: string;
|
|
1865
|
-
transaction_amount: number;
|
|
1866
|
-
transaction_currency: string;
|
|
1867
|
-
vendor_sub_account_id: string;
|
|
1868
|
-
failure_reason: string;
|
|
1869
|
-
status: string;
|
|
1870
|
-
/** @enum {string} */
|
|
1871
|
-
transaction_type: "AUTHORIZATION" | "CLEARING" | "REFUND" | "REVERSAL" | "ORIGINAL_CREDIT" | "FEE" | "DEPOSIT" | "WITHDRAWAL";
|
|
1872
|
-
is_credit: boolean;
|
|
1873
|
-
has_receipt: boolean;
|
|
1874
|
-
adjustment_type: string;
|
|
1875
|
-
review_status: string;
|
|
1876
|
-
group: string;
|
|
1877
|
-
total_amount: number;
|
|
1878
|
-
};
|
|
1879
|
-
FindAllFiatAccountTransactionsDto: {
|
|
1880
|
-
has_more: boolean;
|
|
1881
|
-
count: number;
|
|
1882
|
-
data: components["schemas"]["FiatAccountTransactionDto"][];
|
|
1883
|
-
};
|
|
1884
1684
|
CreateDeveloperAccessDto: {
|
|
1885
1685
|
name: string;
|
|
1886
1686
|
/** @enum {string} */
|
|
@@ -2423,7 +2223,7 @@ export interface components {
|
|
|
2423
2223
|
uuid: string;
|
|
2424
2224
|
chain: string | null;
|
|
2425
2225
|
symbol: string;
|
|
2426
|
-
decimal: number
|
|
2226
|
+
decimal: number;
|
|
2427
2227
|
contract: string | null;
|
|
2428
2228
|
render_decimal: number;
|
|
2429
2229
|
meta: components["schemas"]["CryptoEntity"];
|
|
@@ -2502,6 +2302,7 @@ export interface components {
|
|
|
2502
2302
|
enable_exchange: boolean;
|
|
2503
2303
|
enable_auto_exchange: boolean;
|
|
2504
2304
|
enable_crypto_withdrawal: boolean;
|
|
2305
|
+
enable_referral_program: boolean;
|
|
2505
2306
|
readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
|
|
2506
2307
|
base_currency: string;
|
|
2507
2308
|
};
|
|
@@ -3442,6 +3243,42 @@ export interface operations {
|
|
|
3442
3243
|
};
|
|
3443
3244
|
};
|
|
3444
3245
|
};
|
|
3246
|
+
ReferralsController_getIncomeList: {
|
|
3247
|
+
parameters: {
|
|
3248
|
+
query?: {
|
|
3249
|
+
/** @description Number of records to skip */
|
|
3250
|
+
offset?: number;
|
|
3251
|
+
/** @description Number of records to return */
|
|
3252
|
+
limit?: number;
|
|
3253
|
+
sort_order?: "ASC" | "DESC";
|
|
3254
|
+
sort_by?: "created_at" | "type" | "status" | "amount" | "method" | null;
|
|
3255
|
+
filter?: components["schemas"]["ReferralIncomeFilter"];
|
|
3256
|
+
};
|
|
3257
|
+
header?: never;
|
|
3258
|
+
path?: never;
|
|
3259
|
+
cookie?: never;
|
|
3260
|
+
};
|
|
3261
|
+
requestBody?: never;
|
|
3262
|
+
responses: {
|
|
3263
|
+
200: {
|
|
3264
|
+
headers: {
|
|
3265
|
+
[name: string]: unknown;
|
|
3266
|
+
};
|
|
3267
|
+
content: {
|
|
3268
|
+
"application/json": components["schemas"]["PaginationResponseDto"] & {
|
|
3269
|
+
data?: unknown;
|
|
3270
|
+
};
|
|
3271
|
+
};
|
|
3272
|
+
};
|
|
3273
|
+
/** @description Unauthorized */
|
|
3274
|
+
401: {
|
|
3275
|
+
headers: {
|
|
3276
|
+
[name: string]: unknown;
|
|
3277
|
+
};
|
|
3278
|
+
content?: never;
|
|
3279
|
+
};
|
|
3280
|
+
};
|
|
3281
|
+
};
|
|
3445
3282
|
ReferralsController_getProgress: {
|
|
3446
3283
|
parameters: {
|
|
3447
3284
|
query?: never;
|
|
@@ -3869,34 +3706,6 @@ export interface operations {
|
|
|
3869
3706
|
};
|
|
3870
3707
|
};
|
|
3871
3708
|
};
|
|
3872
|
-
ProgramsController_getPrograms: {
|
|
3873
|
-
parameters: {
|
|
3874
|
-
query?: never;
|
|
3875
|
-
header?: never;
|
|
3876
|
-
path?: never;
|
|
3877
|
-
cookie?: never;
|
|
3878
|
-
};
|
|
3879
|
-
requestBody?: never;
|
|
3880
|
-
responses: {
|
|
3881
|
-
200: {
|
|
3882
|
-
headers: {
|
|
3883
|
-
[name: string]: unknown;
|
|
3884
|
-
};
|
|
3885
|
-
content: {
|
|
3886
|
-
"application/json": components["schemas"]["PaginationResponseDto"] & {
|
|
3887
|
-
data?: unknown;
|
|
3888
|
-
};
|
|
3889
|
-
};
|
|
3890
|
-
};
|
|
3891
|
-
/** @description Unauthorized */
|
|
3892
|
-
401: {
|
|
3893
|
-
headers: {
|
|
3894
|
-
[name: string]: unknown;
|
|
3895
|
-
};
|
|
3896
|
-
content?: never;
|
|
3897
|
-
};
|
|
3898
|
-
};
|
|
3899
|
-
};
|
|
3900
3709
|
ExchangeRatesController_findAll: {
|
|
3901
3710
|
parameters: {
|
|
3902
3711
|
query: {
|
|
@@ -3927,170 +3736,6 @@ export interface operations {
|
|
|
3927
3736
|
};
|
|
3928
3737
|
};
|
|
3929
3738
|
};
|
|
3930
|
-
FiatAccountsController_findAllByWallet: {
|
|
3931
|
-
parameters: {
|
|
3932
|
-
query?: {
|
|
3933
|
-
/** @description Number of records to skip */
|
|
3934
|
-
offset?: number;
|
|
3935
|
-
/** @description Number of records to return */
|
|
3936
|
-
limit?: number;
|
|
3937
|
-
/** @description Show cards */
|
|
3938
|
-
show_cards?: boolean;
|
|
3939
|
-
};
|
|
3940
|
-
header?: never;
|
|
3941
|
-
path: {
|
|
3942
|
-
/** @description UUID of the wallet */
|
|
3943
|
-
wallet_id: string;
|
|
3944
|
-
};
|
|
3945
|
-
cookie?: never;
|
|
3946
|
-
};
|
|
3947
|
-
requestBody?: never;
|
|
3948
|
-
responses: {
|
|
3949
|
-
/** @description List of Fiat Accounts */
|
|
3950
|
-
200: {
|
|
3951
|
-
headers: {
|
|
3952
|
-
[name: string]: unknown;
|
|
3953
|
-
};
|
|
3954
|
-
content: {
|
|
3955
|
-
"application/json": components["schemas"]["PaginationResponseDto"] & {
|
|
3956
|
-
data?: unknown;
|
|
3957
|
-
};
|
|
3958
|
-
};
|
|
3959
|
-
};
|
|
3960
|
-
/** @description Unauthorized */
|
|
3961
|
-
401: {
|
|
3962
|
-
headers: {
|
|
3963
|
-
[name: string]: unknown;
|
|
3964
|
-
};
|
|
3965
|
-
content?: never;
|
|
3966
|
-
};
|
|
3967
|
-
/** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
|
|
3968
|
-
403: {
|
|
3969
|
-
headers: {
|
|
3970
|
-
[name: string]: unknown;
|
|
3971
|
-
};
|
|
3972
|
-
content?: never;
|
|
3973
|
-
};
|
|
3974
|
-
};
|
|
3975
|
-
};
|
|
3976
|
-
FiatAccountsController_create: {
|
|
3977
|
-
parameters: {
|
|
3978
|
-
query?: never;
|
|
3979
|
-
header?: never;
|
|
3980
|
-
path: {
|
|
3981
|
-
/** @description UUID of the wallet */
|
|
3982
|
-
wallet_id: string;
|
|
3983
|
-
};
|
|
3984
|
-
cookie?: never;
|
|
3985
|
-
};
|
|
3986
|
-
requestBody: {
|
|
3987
|
-
content: {
|
|
3988
|
-
"application/json": components["schemas"]["CreateFiatAccountDto"];
|
|
3989
|
-
};
|
|
3990
|
-
};
|
|
3991
|
-
responses: {
|
|
3992
|
-
200: {
|
|
3993
|
-
headers: {
|
|
3994
|
-
[name: string]: unknown;
|
|
3995
|
-
};
|
|
3996
|
-
content: {
|
|
3997
|
-
"application/json": components["schemas"]["FiatAccountEntity"];
|
|
3998
|
-
};
|
|
3999
|
-
};
|
|
4000
|
-
/** @description Unauthorized */
|
|
4001
|
-
401: {
|
|
4002
|
-
headers: {
|
|
4003
|
-
[name: string]: unknown;
|
|
4004
|
-
};
|
|
4005
|
-
content?: never;
|
|
4006
|
-
};
|
|
4007
|
-
/** @description You don't have access to current wallet. Allowed roles: owner */
|
|
4008
|
-
403: {
|
|
4009
|
-
headers: {
|
|
4010
|
-
[name: string]: unknown;
|
|
4011
|
-
};
|
|
4012
|
-
content?: never;
|
|
4013
|
-
};
|
|
4014
|
-
};
|
|
4015
|
-
};
|
|
4016
|
-
FiatAccountsController_findOne: {
|
|
4017
|
-
parameters: {
|
|
4018
|
-
query?: never;
|
|
4019
|
-
header?: never;
|
|
4020
|
-
path: {
|
|
4021
|
-
/** @description UUID of the wallet */
|
|
4022
|
-
wallet_id: string;
|
|
4023
|
-
/** @description Fiat Account ID */
|
|
4024
|
-
id: string;
|
|
4025
|
-
};
|
|
4026
|
-
cookie?: never;
|
|
4027
|
-
};
|
|
4028
|
-
requestBody?: never;
|
|
4029
|
-
responses: {
|
|
4030
|
-
200: {
|
|
4031
|
-
headers: {
|
|
4032
|
-
[name: string]: unknown;
|
|
4033
|
-
};
|
|
4034
|
-
content: {
|
|
4035
|
-
"application/json": components["schemas"]["FiatAccountExtendedDto"];
|
|
4036
|
-
};
|
|
4037
|
-
};
|
|
4038
|
-
/** @description Unauthorized */
|
|
4039
|
-
401: {
|
|
4040
|
-
headers: {
|
|
4041
|
-
[name: string]: unknown;
|
|
4042
|
-
};
|
|
4043
|
-
content?: never;
|
|
4044
|
-
};
|
|
4045
|
-
/** @description You don't have access to current wallet. Allowed roles: owner, admin, user */
|
|
4046
|
-
403: {
|
|
4047
|
-
headers: {
|
|
4048
|
-
[name: string]: unknown;
|
|
4049
|
-
};
|
|
4050
|
-
content?: never;
|
|
4051
|
-
};
|
|
4052
|
-
};
|
|
4053
|
-
};
|
|
4054
|
-
TransactionsController_findAll: {
|
|
4055
|
-
parameters: {
|
|
4056
|
-
query?: {
|
|
4057
|
-
offset?: number;
|
|
4058
|
-
limit?: number;
|
|
4059
|
-
};
|
|
4060
|
-
header?: never;
|
|
4061
|
-
path: {
|
|
4062
|
-
wallet_id: string;
|
|
4063
|
-
/** @description Fiat Account ID */
|
|
4064
|
-
id: string;
|
|
4065
|
-
};
|
|
4066
|
-
cookie?: never;
|
|
4067
|
-
};
|
|
4068
|
-
requestBody?: never;
|
|
4069
|
-
responses: {
|
|
4070
|
-
200: {
|
|
4071
|
-
headers: {
|
|
4072
|
-
[name: string]: unknown;
|
|
4073
|
-
};
|
|
4074
|
-
content: {
|
|
4075
|
-
"application/json": components["schemas"]["FindAllFiatAccountTransactionsDto"];
|
|
4076
|
-
};
|
|
4077
|
-
};
|
|
4078
|
-
/** @description Unauthorized */
|
|
4079
|
-
401: {
|
|
4080
|
-
headers: {
|
|
4081
|
-
[name: string]: unknown;
|
|
4082
|
-
};
|
|
4083
|
-
content?: never;
|
|
4084
|
-
};
|
|
4085
|
-
/** @description You don't have access to current wallet. Allowed roles: owner */
|
|
4086
|
-
403: {
|
|
4087
|
-
headers: {
|
|
4088
|
-
[name: string]: unknown;
|
|
4089
|
-
};
|
|
4090
|
-
content?: never;
|
|
4091
|
-
};
|
|
4092
|
-
};
|
|
4093
|
-
};
|
|
4094
3739
|
DeveloperAccessesController_findAll: {
|
|
4095
3740
|
parameters: {
|
|
4096
3741
|
query?: never;
|
|
@@ -2270,6 +2270,10 @@ export declare namespace API {
|
|
|
2270
2270
|
type Response = operations['ReferralsController_getLevels']['responses']['200']['content']['application/json'];
|
|
2271
2271
|
}
|
|
2272
2272
|
namespace Income {
|
|
2273
|
+
namespace List {
|
|
2274
|
+
type Request = operations['ReferralsController_getIncomeList']['parameters']['query'];
|
|
2275
|
+
type Response = operations['ReferralsController_getIncomeList']['responses']['200']['content']['application/json'];
|
|
2276
|
+
}
|
|
2273
2277
|
namespace Progress {
|
|
2274
2278
|
type Response = operations['ReferralsController_getProgress']['responses']['200']['content']['application/json'];
|
|
2275
2279
|
}
|