squarefi-bff-api-module 1.24.12 → 1.24.13
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/issuing.js
CHANGED
|
@@ -31,9 +31,10 @@ exports.issuing = {
|
|
|
31
31
|
prepaid: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/create', { data }),
|
|
32
32
|
balance: (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
33
33
|
const { id: sub_account_id } = yield exports.issuing.sub_accounts.create(data.wallet_id, data.program_id);
|
|
34
|
-
|
|
34
|
+
const response = yield apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', {
|
|
35
35
|
data: Object.assign(Object.assign({}, data), { sub_account_id }),
|
|
36
36
|
});
|
|
37
|
+
return Object.assign(Object.assign({}, response), { sub_account_id });
|
|
37
38
|
}),
|
|
38
39
|
},
|
|
39
40
|
subAccountCard: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', { data }),
|
|
@@ -1052,7 +1052,7 @@ export interface components {
|
|
|
1052
1052
|
* @default UNVERIFIED
|
|
1053
1053
|
* @enum {string|null}
|
|
1054
1054
|
*/
|
|
1055
|
-
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | null;
|
|
1055
|
+
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW" | null;
|
|
1056
1056
|
referral_name: string | null;
|
|
1057
1057
|
tenant_id: string;
|
|
1058
1058
|
user_id: string;
|
|
@@ -1696,7 +1696,7 @@ export interface components {
|
|
|
1696
1696
|
* @default UNVERIFIED
|
|
1697
1697
|
* @enum {string}
|
|
1698
1698
|
*/
|
|
1699
|
-
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1699
|
+
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1700
1700
|
address?: components["schemas"]["KycAddressDto"] | null;
|
|
1701
1701
|
beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
|
|
1702
1702
|
};
|
|
@@ -1800,7 +1800,7 @@ export interface components {
|
|
|
1800
1800
|
WalletKycRailDto: {
|
|
1801
1801
|
message: string | null;
|
|
1802
1802
|
/** @enum {string} */
|
|
1803
|
-
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1803
|
+
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1804
1804
|
/** @default false */
|
|
1805
1805
|
terms_confirmed: boolean;
|
|
1806
1806
|
extra_actions?: components["schemas"]["WalletKycRailExtraActionDto"][];
|
|
@@ -321,7 +321,11 @@ export declare namespace API {
|
|
|
321
321
|
sub_account_id: string;
|
|
322
322
|
}
|
|
323
323
|
type StandAloneResponse = IssuingCardDetailItem;
|
|
324
|
-
type SubAccountResponse =
|
|
324
|
+
type SubAccountResponse = {
|
|
325
|
+
card_id: string;
|
|
326
|
+
status: string;
|
|
327
|
+
sub_account_id: string;
|
|
328
|
+
};
|
|
325
329
|
}
|
|
326
330
|
}
|
|
327
331
|
namespace Chains {
|
package/package.json
CHANGED
package/src/api/issuing.ts
CHANGED
|
@@ -12,12 +12,20 @@ export const issuing = {
|
|
|
12
12
|
balance: async (data: API.Cards.Create.StandAloneRequest): Promise<API.Cards.Create.SubAccountResponse> => {
|
|
13
13
|
const { id: sub_account_id } = await issuing.sub_accounts.create(data.wallet_id, data.program_id);
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
const response = await apiClientV1.postRequest<API.Cards.Create.SubAccountResponse>(
|
|
16
|
+
'/issuing/cards/balance',
|
|
17
|
+
{
|
|
18
|
+
data: {
|
|
19
|
+
...data,
|
|
20
|
+
sub_account_id,
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
return {
|
|
26
|
+
...response,
|
|
27
|
+
sub_account_id,
|
|
28
|
+
};
|
|
21
29
|
},
|
|
22
30
|
},
|
|
23
31
|
subAccountCard: (data: API.Cards.Create.SubAccountRequest): Promise<API.Cards.Create.SubAccountResponse> =>
|
|
@@ -1053,7 +1053,7 @@ export interface components {
|
|
|
1053
1053
|
* @default UNVERIFIED
|
|
1054
1054
|
* @enum {string|null}
|
|
1055
1055
|
*/
|
|
1056
|
-
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | null;
|
|
1056
|
+
kyc_status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW" | null;
|
|
1057
1057
|
referral_name: string | null;
|
|
1058
1058
|
tenant_id: string;
|
|
1059
1059
|
user_id: string;
|
|
@@ -1697,7 +1697,7 @@ export interface components {
|
|
|
1697
1697
|
* @default UNVERIFIED
|
|
1698
1698
|
* @enum {string}
|
|
1699
1699
|
*/
|
|
1700
|
-
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1700
|
+
status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1701
1701
|
address?: components["schemas"]["KycAddressDto"] | null;
|
|
1702
1702
|
beneficial_owners?: components["schemas"]["KycBeneficialOwnerDto"][] | null;
|
|
1703
1703
|
};
|
|
@@ -1801,7 +1801,7 @@ export interface components {
|
|
|
1801
1801
|
WalletKycRailDto: {
|
|
1802
1802
|
message: string | null;
|
|
1803
1803
|
/** @enum {string} */
|
|
1804
|
-
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS";
|
|
1804
|
+
readonly status: "APPROVED" | "DECLINED" | "PENDING" | "HOLD" | "DOUBLE" | "SOFT_REJECT" | "REJECT" | "UNVERIFIED" | "WAITING_ON_UBOS" | "WAITING_ON_REVIEW";
|
|
1805
1805
|
/** @default false */
|
|
1806
1806
|
terms_confirmed: boolean;
|
|
1807
1807
|
extra_actions?: components["schemas"]["WalletKycRailExtraActionDto"][];
|
package/src/api/types/types.ts
CHANGED
|
@@ -377,7 +377,11 @@ export namespace API {
|
|
|
377
377
|
}
|
|
378
378
|
|
|
379
379
|
export type StandAloneResponse = IssuingCardDetailItem;
|
|
380
|
-
export type SubAccountResponse =
|
|
380
|
+
export type SubAccountResponse = {
|
|
381
|
+
card_id: string;
|
|
382
|
+
status: string;
|
|
383
|
+
sub_account_id: string;
|
|
384
|
+
};
|
|
381
385
|
}
|
|
382
386
|
}
|
|
383
387
|
|