squarefi-bff-api-module 1.24.13 → 1.24.15

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.
@@ -4,9 +4,9 @@ export declare const issuing: {
4
4
  create: {
5
5
  standAloneCard: {
6
6
  prepaid: (data: API.Cards.Create.StandAloneRequest) => Promise<API.Cards.Create.StandAloneResponse>;
7
- balance: (data: API.Cards.Create.StandAloneRequest) => Promise<API.Cards.Create.SubAccountResponse>;
7
+ balance: (data: API.Cards.Create.StandAloneRequest) => Promise<API.Cards.Create.ExtendedSubAccountResponse>;
8
8
  };
9
- subAccountCard: (data: API.Cards.Create.SubAccountRequest) => Promise<API.Cards.Create.SubAccountResponse>;
9
+ subAccountCard: (data: API.Cards.Create.SubAccountRequest) => Promise<API.Cards.Create.ExtendedSubAccountResponse>;
10
10
  };
11
11
  byWalletUuid: {
12
12
  getAll: (params: API.Cards.CardsList.Request.ByWalletUuid) => Promise<API.Cards.CardsList.Response>;
@@ -37,7 +37,12 @@ exports.issuing = {
37
37
  return Object.assign(Object.assign({}, response), { sub_account_id });
38
38
  }),
39
39
  },
40
- subAccountCard: (data) => apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', { data }),
40
+ subAccountCard: (data) => __awaiter(void 0, void 0, void 0, function* () {
41
+ const response = yield apiClientFactory_1.apiClientV1.postRequest('/issuing/cards/balance', {
42
+ data,
43
+ });
44
+ return Object.assign(Object.assign({}, response), { sub_account_id: data.sub_account_id });
45
+ }),
41
46
  },
42
47
  byWalletUuid: {
43
48
  getAll: (params) => apiClientFactory_1.apiClientV1.getRequest('/issuing/cards', { params }),
@@ -1235,6 +1235,8 @@ export interface components {
1235
1235
  from_created_at?: string;
1236
1236
  /** Format: date-time */
1237
1237
  to_created_at?: string;
1238
+ /** @default false */
1239
+ show_low_balance: boolean;
1238
1240
  };
1239
1241
  ChainDto: {
1240
1242
  id: number;
@@ -2761,7 +2763,9 @@ export interface operations {
2761
2763
  };
2762
2764
  WalletsController_view: {
2763
2765
  parameters: {
2764
- query?: never;
2766
+ query?: {
2767
+ show_low_balance?: boolean;
2768
+ };
2765
2769
  header?: never;
2766
2770
  path: {
2767
2771
  wallet_id: string;
@@ -324,6 +324,8 @@ export declare namespace API {
324
324
  type SubAccountResponse = {
325
325
  card_id: string;
326
326
  status: string;
327
+ };
328
+ type ExtendedSubAccountResponse = SubAccountResponse & {
327
329
  sub_account_id: string;
328
330
  };
329
331
  }
@@ -2055,8 +2057,23 @@ export declare namespace API {
2055
2057
  bankName: string;
2056
2058
  bankAddress: string;
2057
2059
  beneficiary: API.VirtualAccounts.VirtualAccount.Beneficiary;
2058
- accountNumber: string;
2059
- routingNumber: string;
2060
+ swiftCode: string;
2061
+ ach?: {
2062
+ accountNumber: string;
2063
+ routingNumber: string;
2064
+ };
2065
+ rtp?: {
2066
+ accountNumber: string;
2067
+ routingNumber: string;
2068
+ };
2069
+ wire?: {
2070
+ accountNumber: string;
2071
+ routingNumber: string;
2072
+ };
2073
+ swift?: {
2074
+ accountNumber: string;
2075
+ routingNumber: string;
2076
+ };
2060
2077
  }
2061
2078
  interface PaymentRail {
2062
2079
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.24.13",
3
+ "version": "1.24.15",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,9 @@ export const issuing = {
9
9
  standAloneCard: {
10
10
  prepaid: (data: API.Cards.Create.StandAloneRequest): Promise<API.Cards.Create.StandAloneResponse> =>
11
11
  apiClientV1.postRequest<API.Cards.Create.StandAloneResponse>('/issuing/cards/create', { data }),
12
- balance: async (data: API.Cards.Create.StandAloneRequest): Promise<API.Cards.Create.SubAccountResponse> => {
12
+ balance: async (
13
+ data: API.Cards.Create.StandAloneRequest
14
+ ): Promise<API.Cards.Create.ExtendedSubAccountResponse> => {
13
15
  const { id: sub_account_id } = await issuing.sub_accounts.create(data.wallet_id, data.program_id);
14
16
 
15
17
  const response = await apiClientV1.postRequest<API.Cards.Create.SubAccountResponse>(
@@ -28,8 +30,17 @@ export const issuing = {
28
30
  };
29
31
  },
30
32
  },
31
- subAccountCard: (data: API.Cards.Create.SubAccountRequest): Promise<API.Cards.Create.SubAccountResponse> =>
32
- apiClientV1.postRequest<API.Cards.Create.SubAccountResponse>('/issuing/cards/balance', { data }),
33
+ subAccountCard: async (
34
+ data: API.Cards.Create.SubAccountRequest
35
+ ): Promise<API.Cards.Create.ExtendedSubAccountResponse> => {
36
+ const response = await apiClientV1.postRequest<API.Cards.Create.SubAccountResponse>('/issuing/cards/balance', {
37
+ data,
38
+ });
39
+ return {
40
+ ...response,
41
+ sub_account_id: data.sub_account_id,
42
+ };
43
+ },
33
44
  },
34
45
  byWalletUuid: {
35
46
  getAll: (params: API.Cards.CardsList.Request.ByWalletUuid): Promise<API.Cards.CardsList.Response> =>
@@ -1236,6 +1236,8 @@ export interface components {
1236
1236
  from_created_at?: string;
1237
1237
  /** Format: date-time */
1238
1238
  to_created_at?: string;
1239
+ /** @default false */
1240
+ show_low_balance: boolean;
1239
1241
  };
1240
1242
  ChainDto: {
1241
1243
  id: number;
@@ -2762,7 +2764,9 @@ export interface operations {
2762
2764
  };
2763
2765
  WalletsController_view: {
2764
2766
  parameters: {
2765
- query?: never;
2767
+ query?: {
2768
+ show_low_balance?: boolean;
2769
+ };
2766
2770
  header?: never;
2767
2771
  path: {
2768
2772
  wallet_id: string;
@@ -380,6 +380,9 @@ export namespace API {
380
380
  export type SubAccountResponse = {
381
381
  card_id: string;
382
382
  status: string;
383
+ };
384
+
385
+ export type ExtendedSubAccountResponse = SubAccountResponse & {
383
386
  sub_account_id: string;
384
387
  };
385
388
  }
@@ -2415,8 +2418,23 @@ export namespace API {
2415
2418
  bankName: string;
2416
2419
  bankAddress: string;
2417
2420
  beneficiary: API.VirtualAccounts.VirtualAccount.Beneficiary;
2418
- accountNumber: string;
2419
- routingNumber: string;
2421
+ swiftCode: string;
2422
+ ach?: {
2423
+ accountNumber: string;
2424
+ routingNumber: string;
2425
+ };
2426
+ rtp?: {
2427
+ accountNumber: string;
2428
+ routingNumber: string;
2429
+ };
2430
+ wire?: {
2431
+ accountNumber: string;
2432
+ routingNumber: string;
2433
+ };
2434
+ swift?: {
2435
+ accountNumber: string;
2436
+ routingNumber: string;
2437
+ };
2420
2438
  }
2421
2439
 
2422
2440
  export interface PaymentRail {