squarefi-bff-api-module 1.36.71 → 1.36.73
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/frontend.js +8 -7
- package/dist/api/types/autogen/apiV1External.types.d.ts +47 -1
- package/dist/api/types/autogen/apiV1Frontend.types.d.ts +31 -3
- package/dist/api/types/autogen/apiV1Legacy.types.d.ts +25 -1
- package/dist/api/types/autogen/apiV1Tenant.types.d.ts +10 -0
- package/dist/api/types/autogen/apiV2.types.d.ts +78 -0
- package/dist/api/types/types.d.ts +16 -10
- package/package.json +1 -1
package/dist/api/frontend.js
CHANGED
|
@@ -23,13 +23,6 @@ export const frontend = {
|
|
|
23
23
|
}),
|
|
24
24
|
deposit: ({ card_id, ...data }) => apiClientV1Frontend.postRequest(`/frontend/issuing/cards/${card_id}/deposit`, { data }),
|
|
25
25
|
withdraw: ({ card_id, ...data }) => apiClientV1Frontend.postRequest(`/frontend/issuing/cards/${card_id}/withdraw`, { data }),
|
|
26
|
-
// Unified create — the backend routes to the balance or prepaid flow by the program's
|
|
27
|
-
// `sub_account_type`, so there is one method for both. Replaces the legacy
|
|
28
|
-
// `issuing.cards.create.*` methods. The cardholder is either an explicit `cardholder_id`
|
|
29
|
-
// or resolved from `assigned_user_data_uuid` via the user's linked cardholder (provision it
|
|
30
|
-
// first through `cardholders.*` — an unlinked user gets `400 CARDHOLDER_NOT_LINKED`).
|
|
31
|
-
// Issuing fee / initial top-up follow the group tariff; pass `currency_id` (and optionally
|
|
32
|
-
// `initial_topup`) whenever the tariff carries money.
|
|
33
26
|
getById: ({ card_id, }) => apiClientV1Frontend.getRequest(`/frontend/issuing/cards/${card_id}`),
|
|
34
27
|
/** Rename (and other editable card fields). */
|
|
35
28
|
update: ({ card_id, ...data }) => apiClientV1Frontend.patchRequest(`/frontend/issuing/cards/${card_id}`, { data }),
|
|
@@ -57,6 +50,14 @@ export const frontend = {
|
|
|
57
50
|
});
|
|
58
51
|
},
|
|
59
52
|
transactions: ({ card_id, ...params }) => apiClientV1Frontend.getRequest(`/frontend/issuing/cards/${card_id}/transactions`, { params }),
|
|
53
|
+
// Unified create — the backend routes to the balance or prepaid flow by the program's
|
|
54
|
+
// `sub_account_type`, so there is one method for both. Replaces the legacy
|
|
55
|
+
// `issuing.cards.create.*` methods. The cardholder is either an explicit `cardholder_id`
|
|
56
|
+
// or resolved from `assigned_user_data_uuid` via the user's linked cardholder (provision it
|
|
57
|
+
// first through `cardholders.*` — an unlinked user gets `400 CARDHOLDER_NOT_LINKED`).
|
|
58
|
+
// Issuing fee / initial top-up follow the group tariff; pass `currency_id` (and optionally
|
|
59
|
+
// `initial_topup`) whenever the tariff carries money. With `is_reverse: true`,
|
|
60
|
+
// `initial_topup` is what lands on the card and the fee and top-up commission come on top.
|
|
60
61
|
create: (data) => apiClientV1Frontend.postRequest('/frontend/issuing/cards', {
|
|
61
62
|
data,
|
|
62
63
|
}),
|
|
@@ -2173,7 +2173,9 @@ export interface paths {
|
|
|
2173
2173
|
head?: never;
|
|
2174
2174
|
/**
|
|
2175
2175
|
* Update cardholder
|
|
2176
|
-
* @description Updates cardholder information
|
|
2176
|
+
* @description Updates cardholder information. Email and phone of an Interlace or PhotonPay
|
|
2177
|
+
* cardholder are sent to the vendor first; every other field, and every other
|
|
2178
|
+
* vendor, is stored locally only.
|
|
2177
2179
|
* Same contract as `PATCH /frontend/issuing/cardholders/{cardholder_id}`.
|
|
2178
2180
|
*
|
|
2179
2181
|
* **Authentication**: x-api-key header required
|
|
@@ -2690,6 +2692,44 @@ export interface paths {
|
|
|
2690
2692
|
*
|
|
2691
2693
|
*/
|
|
2692
2694
|
vendor_user_id?: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* @description TOTAL wallet debit at issuance, in the currency of `currency_id`: the issuing fee
|
|
2697
|
+
* plus the amount to land on the card, from which the top-up commission is taken.
|
|
2698
|
+
* When omitted, the tariff's default total applies: it is stated in the card's
|
|
2699
|
+
* currency and converted into `currency_id` at the pair's rate. On a program whose cards open holding
|
|
2700
|
+
* a mandatory minimum balance, what it pays toward the card after the issuing fee must be
|
|
2701
|
+
* at least that balance — refused with `400 INITIAL_TOPUP_BELOW_OPENING_LOAD` otherwise,
|
|
2702
|
+
* nothing charged. The top-up commission is not held against it: the card opens holding
|
|
2703
|
+
* the minimum even when the commission takes the top-up a few cents under.
|
|
2704
|
+
* Not charged at all where the wallet has no issuance tariff on the program.
|
|
2705
|
+
*
|
|
2706
|
+
* @example 80.4
|
|
2707
|
+
*/
|
|
2708
|
+
initial_topup?: number;
|
|
2709
|
+
/**
|
|
2710
|
+
* @description When `true`, `initial_topup` is the amount to land on the card, in the card's currency,
|
|
2711
|
+
* instead of the total debit: the issuing fee and the top-up commission are charged on top.
|
|
2712
|
+
* The commission is added to the amount, as with a reverse card deposit, so the card gets
|
|
2713
|
+
* exactly `initial_topup`. The top-up debit is the `from_amount` of
|
|
2714
|
+
* `GET /api/orders/calc?order_type=TRANSFER_CARD_SUBACCOUNT&is_reverse=true&amount=<initial_topup>`
|
|
2715
|
+
* (from `currency_id` to the card's currency); the issuing fee comes on top of it.
|
|
2716
|
+
* What the tariff puts on the card at minimum (its minimum total less the issuing fee — 25
|
|
2717
|
+
* on a 50 / 75 tariff) and a program's mandatory opening balance are held against the
|
|
2718
|
+
* amount that lands. Needs `initial_topup` of at least 0.01; a boolean only, refused
|
|
2719
|
+
* with `400` otherwise — also where the program does not bill issuance and the field
|
|
2720
|
+
* is ignored.
|
|
2721
|
+
*
|
|
2722
|
+
* @default false
|
|
2723
|
+
*/
|
|
2724
|
+
is_reverse?: boolean;
|
|
2725
|
+
/**
|
|
2726
|
+
* Format: uuid
|
|
2727
|
+
* @description Wallet currency to debit for the issuing fee and `initial_topup`. Required
|
|
2728
|
+
* whenever issuance is billed on the program — the request is refused with `400`
|
|
2729
|
+
* otherwise.
|
|
2730
|
+
*
|
|
2731
|
+
*/
|
|
2732
|
+
currency_id?: string;
|
|
2693
2733
|
};
|
|
2694
2734
|
};
|
|
2695
2735
|
};
|
|
@@ -2713,6 +2753,12 @@ export interface paths {
|
|
|
2713
2753
|
* - Missing program_id
|
|
2714
2754
|
* - Missing required fields based on program type
|
|
2715
2755
|
* - Unsupported program type
|
|
2756
|
+
* - `INITIAL_TOPUP_BELOW_OPENING_LOAD` — `initial_topup` less the issuing fee is below the
|
|
2757
|
+
* program's mandatory opening balance; the message names the total accepted at the current rate
|
|
2758
|
+
* - `OPENING_LOAD_NOT_PAID` — the program's cards open holding a mandatory balance and
|
|
2759
|
+
* this issuance charges nothing for it (issuance not billed here, or no issuance tariff
|
|
2760
|
+
* for the wallet on the program), or the card spends from a sub-account, whose top-up
|
|
2761
|
+
* funds the sub-account rather than the card
|
|
2716
2762
|
* */
|
|
2717
2763
|
400: {
|
|
2718
2764
|
headers: {
|
|
@@ -3151,13 +3151,35 @@ export interface paths {
|
|
|
3151
3151
|
vendor_user_id?: string;
|
|
3152
3152
|
/**
|
|
3153
3153
|
* @description TOTAL wallet debit asked for at issuance: the issuing fee is subtracted and
|
|
3154
|
-
* the remainder lands on the card's sub-account.
|
|
3155
|
-
*
|
|
3156
|
-
*
|
|
3154
|
+
* the remainder, less the top-up commission, lands on the card's sub-account.
|
|
3155
|
+
* When omitted, the group tariff's total applies, stated in the card's currency and
|
|
3156
|
+
* converted into `currency_id` at the pair's rate. On a program whose cards open
|
|
3157
|
+
* holding a mandatory minimum balance, what it pays toward the card after the
|
|
3158
|
+
* issuing fee must be at least that balance — refused with
|
|
3159
|
+
* `400 INITIAL_TOPUP_BELOW_OPENING_LOAD` otherwise, nothing charged. The top-up
|
|
3160
|
+
* commission is not held against it: the card opens holding the minimum even when
|
|
3161
|
+
* the commission takes the top-up a few cents under. Requires `currency_id`.
|
|
3157
3162
|
*
|
|
3158
3163
|
* @example 100
|
|
3159
3164
|
*/
|
|
3160
3165
|
initial_topup?: number;
|
|
3166
|
+
/**
|
|
3167
|
+
* @description When `true`, `initial_topup` is the amount to land on the card, in the card's currency,
|
|
3168
|
+
* instead of the total debit: the issuing fee and the top-up commission are charged on top.
|
|
3169
|
+
* The commission is added to the amount, as with a reverse card deposit, so the card gets
|
|
3170
|
+
* exactly `initial_topup`. The top-up debit is the `from_amount` of
|
|
3171
|
+
* `GET /frontend/orders/calc?order_type=TRANSFER_CARD_SUBACCOUNT&is_reverse=true&amount=<initial_topup>`
|
|
3172
|
+
* (from `currency_id` to the card's currency, with `wallet_id`); the issuing fee comes on top
|
|
3173
|
+
* of it.
|
|
3174
|
+
* What the tariff puts on the card at minimum (its minimum total less the issuing fee — 25
|
|
3175
|
+
* on a 50 / 75 tariff) and a program's mandatory opening balance are held against the
|
|
3176
|
+
* amount that lands. Needs `initial_topup` of at least 0.01; a boolean only, refused
|
|
3177
|
+
* with `400` otherwise — also where the program does not bill issuance and the field
|
|
3178
|
+
* is ignored.
|
|
3179
|
+
*
|
|
3180
|
+
* @default false
|
|
3181
|
+
*/
|
|
3182
|
+
is_reverse?: boolean;
|
|
3161
3183
|
/**
|
|
3162
3184
|
* Format: uuid
|
|
3163
3185
|
* @description Wallet currency to debit for the issuing fee / initial top-up.
|
|
@@ -3215,6 +3237,12 @@ export interface paths {
|
|
|
3215
3237
|
* - Missing program_id
|
|
3216
3238
|
* - Missing required fields based on program type
|
|
3217
3239
|
* - Unsupported program type
|
|
3240
|
+
* - `INITIAL_TOPUP_BELOW_OPENING_LOAD` — `initial_topup` less the issuing fee is below the
|
|
3241
|
+
* program's mandatory opening balance; the message names the total accepted at the current rate
|
|
3242
|
+
* - `OPENING_LOAD_NOT_PAID` — the program's cards open holding a mandatory balance and
|
|
3243
|
+
* this issuance charges nothing for it (issuance not billed here, or no issuance tariff
|
|
3244
|
+
* for the wallet on the program), or the card spends from a sub-account, whose top-up
|
|
3245
|
+
* funds the sub-account rather than the card
|
|
3218
3246
|
* */
|
|
3219
3247
|
400: {
|
|
3220
3248
|
headers: {
|
|
@@ -1555,7 +1555,9 @@ export interface paths {
|
|
|
1555
1555
|
/**
|
|
1556
1556
|
* Create a new card
|
|
1557
1557
|
* @deprecated
|
|
1558
|
-
* @description Creates a new card for the user.
|
|
1558
|
+
* @description Creates a new card for the user. The amount charged is `initial_topup` when sent — with
|
|
1559
|
+
* `is_reverse`, the fee plus what lands `initial_topup` on the card — otherwise the tariff's
|
|
1560
|
+
* default total. Without `is_reverse`, a tariff with no issuing fee charges nothing here.
|
|
1559
1561
|
* This endpoint is deprecated, please use `POST /api/issuing/cards` or `POST /frontend/issuing/cards` instead.
|
|
1560
1562
|
*
|
|
1561
1563
|
* **Cardholder is required**: Every card must be associated with a cardholder.
|
|
@@ -1590,6 +1592,28 @@ export interface paths {
|
|
|
1590
1592
|
*
|
|
1591
1593
|
*/
|
|
1592
1594
|
cardholder_id: string;
|
|
1595
|
+
/** @description TOTAL wallet debit at issuance, in the currency of `currency_id`: the issuing fee plus the
|
|
1596
|
+
* amount to land on the card, from which the top-up commission is taken — unless
|
|
1597
|
+
* `is_reverse` is set. Charged only on a group tariff with an issuing fee, unless `is_reverse`
|
|
1598
|
+
* is set.
|
|
1599
|
+
* */
|
|
1600
|
+
initial_topup?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* @description When `true`, `initial_topup` is the amount to land on the card, in the card's currency,
|
|
1603
|
+
* instead of the total debit: the issuing fee and the top-up commission are charged on top.
|
|
1604
|
+
* The commission is added to the amount, as with a reverse card deposit, so the card gets
|
|
1605
|
+
* exactly `initial_topup`. The top-up debit is the `from_amount` of
|
|
1606
|
+
* `GET /frontend/orders/calc?order_type=TRANSFER_CARD_SUBACCOUNT&is_reverse=true&amount=<initial_topup>`
|
|
1607
|
+
* (from `currency_id` to the card's currency, with `wallet_id`); the issuing fee comes on top
|
|
1608
|
+
* of it.
|
|
1609
|
+
* What the tariff puts on the card at minimum (its minimum total less the issuing fee — 25
|
|
1610
|
+
* on a 50 / 75 tariff) and a program's mandatory opening balance are held against the
|
|
1611
|
+
* amount that lands. Needs `initial_topup` of at least 0.01; a boolean only, refused
|
|
1612
|
+
* with `400` otherwise.
|
|
1613
|
+
*
|
|
1614
|
+
* @default false
|
|
1615
|
+
*/
|
|
1616
|
+
is_reverse?: boolean;
|
|
1593
1617
|
/**
|
|
1594
1618
|
* Format: uuid
|
|
1595
1619
|
* @description Currency ID for card fees (required if card has issuing fee or initial topup)
|
|
@@ -6727,6 +6727,16 @@ export interface paths {
|
|
|
6727
6727
|
};
|
|
6728
6728
|
};
|
|
6729
6729
|
};
|
|
6730
|
+
/** @description `OPENING_LOAD_NOT_PAID` — the program's cards open holding a mandatory balance, and an
|
|
6731
|
+
* issuance through this API charges nothing for it (nor can a card spending from a
|
|
6732
|
+
* sub-account), so the card is not issued.
|
|
6733
|
+
* */
|
|
6734
|
+
400: {
|
|
6735
|
+
headers: {
|
|
6736
|
+
[name: string]: unknown;
|
|
6737
|
+
};
|
|
6738
|
+
content?: never;
|
|
6739
|
+
};
|
|
6730
6740
|
};
|
|
6731
6741
|
};
|
|
6732
6742
|
delete?: never;
|
|
@@ -1080,6 +1080,7 @@ export interface components {
|
|
|
1080
1080
|
default_currency: string;
|
|
1081
1081
|
user_groups_id: string | null;
|
|
1082
1082
|
is_developer: boolean;
|
|
1083
|
+
is_onboarded: boolean;
|
|
1083
1084
|
first_name?: string | null;
|
|
1084
1085
|
last_name?: string | null;
|
|
1085
1086
|
/** @description User birth date in ISO 8601 format */
|
|
@@ -2019,6 +2020,81 @@ export interface components {
|
|
|
2019
2020
|
readonly fraud_and_security_url?: string | null;
|
|
2020
2021
|
readonly consumer_protection_url?: string | null;
|
|
2021
2022
|
};
|
|
2023
|
+
UiBrandingIdentityEntity: {
|
|
2024
|
+
readonly name?: string;
|
|
2025
|
+
/** @description Installed-app label, at most 12 characters. */
|
|
2026
|
+
readonly short_name?: string;
|
|
2027
|
+
readonly seo_title?: string;
|
|
2028
|
+
readonly seo_description?: string;
|
|
2029
|
+
};
|
|
2030
|
+
UiBrandingSupportEntity: {
|
|
2031
|
+
/** @description https support link; absent = fall back to mailto. */
|
|
2032
|
+
readonly url?: string;
|
|
2033
|
+
readonly email?: string;
|
|
2034
|
+
};
|
|
2035
|
+
UiBrandingAssetsEntity: {
|
|
2036
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2037
|
+
readonly logo_light?: string;
|
|
2038
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2039
|
+
readonly logo_dark?: string;
|
|
2040
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2041
|
+
readonly mark_light?: string;
|
|
2042
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2043
|
+
readonly mark_dark?: string;
|
|
2044
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2045
|
+
readonly header_logo_light?: string;
|
|
2046
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2047
|
+
readonly header_logo_dark?: string;
|
|
2048
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2049
|
+
readonly loader_logo_light?: string;
|
|
2050
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2051
|
+
readonly loader_logo_dark?: string;
|
|
2052
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2053
|
+
readonly footer_logo_light?: string;
|
|
2054
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2055
|
+
readonly footer_logo_dark?: string;
|
|
2056
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2057
|
+
readonly card_logo?: string;
|
|
2058
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2059
|
+
readonly card_logo_pale?: string;
|
|
2060
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2061
|
+
readonly card_default_design?: string;
|
|
2062
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2063
|
+
readonly favicon?: string;
|
|
2064
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2065
|
+
readonly apple_touch?: string;
|
|
2066
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2067
|
+
readonly pwa_192?: string;
|
|
2068
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2069
|
+
readonly pwa_512?: string;
|
|
2070
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2071
|
+
readonly pwa_maskable_192?: string;
|
|
2072
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2073
|
+
readonly pwa_maskable_512?: string;
|
|
2074
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2075
|
+
readonly og_image?: string;
|
|
2076
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2077
|
+
readonly pdf_logo?: string;
|
|
2078
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2079
|
+
readonly cards_placeholder_light?: string;
|
|
2080
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2081
|
+
readonly cards_placeholder_dark?: string;
|
|
2082
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2083
|
+
readonly auth_background?: string;
|
|
2084
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2085
|
+
readonly sidebar_background_light?: string;
|
|
2086
|
+
/** @description Public URL of the image in the tenant-branding bucket; absent = not set. */
|
|
2087
|
+
readonly sidebar_background_dark?: string;
|
|
2088
|
+
};
|
|
2089
|
+
UiBrandingEntity: {
|
|
2090
|
+
/** @enum {number} */
|
|
2091
|
+
readonly version?: 1;
|
|
2092
|
+
/** @description Key of the design preset committed in every frontend repo; a build with an unknown key fails. */
|
|
2093
|
+
readonly preset?: string;
|
|
2094
|
+
readonly identity?: components["schemas"]["UiBrandingIdentityEntity"];
|
|
2095
|
+
readonly support?: components["schemas"]["UiBrandingSupportEntity"];
|
|
2096
|
+
readonly assets?: components["schemas"]["UiBrandingAssetsEntity"];
|
|
2097
|
+
};
|
|
2022
2098
|
SupportedLocalesEntity: {
|
|
2023
2099
|
default: string;
|
|
2024
2100
|
supported: string[];
|
|
@@ -2064,10 +2140,12 @@ export interface components {
|
|
|
2064
2140
|
enable_auto_exchange: boolean;
|
|
2065
2141
|
enable_crypto_withdrawal: boolean;
|
|
2066
2142
|
enable_referral_program: boolean;
|
|
2143
|
+
enable_card_onboarding: boolean;
|
|
2067
2144
|
readonly metrics_data?: components["schemas"]["MetricsDataEntity"] | null;
|
|
2068
2145
|
readonly statement_branding?: components["schemas"]["StatementBrandingEntity"] | null;
|
|
2069
2146
|
readonly mailing_data?: components["schemas"]["MailingDataEntity"] | null;
|
|
2070
2147
|
readonly app_links?: components["schemas"]["AppLinksEntity"] | null;
|
|
2148
|
+
readonly ui_branding?: components["schemas"]["UiBrandingEntity"] | null;
|
|
2071
2149
|
/** @enum {string} */
|
|
2072
2150
|
kyc_data_provider: "persona" | "sumsub";
|
|
2073
2151
|
readonly supported_locales?: components["schemas"]["SupportedLocalesEntity"] | null;
|
|
@@ -395,7 +395,22 @@ export declare namespace API {
|
|
|
395
395
|
currency_id?: string;
|
|
396
396
|
user_data_id: string;
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
/** `POST /issuing/cards/create`. */
|
|
399
|
+
interface StandAloneRequest extends CommonRequest {
|
|
400
|
+
/**
|
|
401
|
+
* TOTAL wallet debit (fee + top-up), in `currency_id` — charged only on a tariff with an
|
|
402
|
+
* issuing fee; on a tariff without one nothing is charged unless `is_reverse` is set. With
|
|
403
|
+
* `is_reverse`, the amount to land on the card instead.
|
|
404
|
+
*/
|
|
405
|
+
initial_topup?: number;
|
|
406
|
+
/**
|
|
407
|
+
* `initial_topup` is the amount to land on the card, in the card's currency; the issuing fee
|
|
408
|
+
* and the top-up commission are charged on top, on every tariff. Its cost is the
|
|
409
|
+
* `from_amount` of a reverse `TRANSFER_CARD_SUBACCOUNT` calc for that amount. Needs
|
|
410
|
+
* `initial_topup` of at least 0.01. A backend without base_backend#1710 ignores the flag.
|
|
411
|
+
*/
|
|
412
|
+
is_reverse?: boolean;
|
|
413
|
+
}
|
|
399
414
|
interface SubAccountRequest extends CommonRequest {
|
|
400
415
|
sub_account_id: string;
|
|
401
416
|
}
|
|
@@ -968,15 +983,6 @@ export declare namespace API {
|
|
|
968
983
|
cardholder_id?: string;
|
|
969
984
|
/** Card assignee (`user_data.uuid`); their linked cardholder is used. */
|
|
970
985
|
assigned_user_data_uuid?: string;
|
|
971
|
-
/**
|
|
972
|
-
* TOTAL wallet debit at issuance (fee + card top-up). Accepted only on group
|
|
973
|
-
* tariffs that already mandate an initial top-up. Requires `currency_id`.
|
|
974
|
-
*/
|
|
975
|
-
initial_topup?: number;
|
|
976
|
-
/** Wallet currency to debit; required whenever the tariff has a fee or a top-up. */
|
|
977
|
-
currency_id?: string;
|
|
978
|
-
/** Client-generated id stored with the card (idempotency/tracing reference). */
|
|
979
|
-
request_id?: string;
|
|
980
986
|
};
|
|
981
987
|
type Response = CardsRoot['post']['responses']['201']['content']['application/json'] & {
|
|
982
988
|
/**
|