squarefi-bff-api-module 1.17.3 → 1.17.5

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/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.17.5] - 2025-04-18
9
+
10
+ ### Fixed
11
+
12
+ - Refined transaction retrieval endpoints for sub accounts
13
+
14
+ ## [1.17.4] - 2025-04-18
15
+
16
+ ### Fixed
17
+
18
+ - Updated transaction retrieval to use sub_account_id and correct endpoint
19
+
8
20
  ## [1.17.3] - 2025-04-18
9
21
 
10
22
  ### Added
@@ -34,7 +34,7 @@ export declare const issuing: {
34
34
  getBySubAccountId: (fiat_account_id: string, limit?: number, offset?: number) => Promise<API.Cards.TransactionsList>;
35
35
  csv: {
36
36
  getByCardId: (card_id: string) => Promise<string>;
37
- getBySubAccountId: (fiat_account_id: string) => Promise<string>;
37
+ getBySubAccountId: (sub_account_id: string) => Promise<string>;
38
38
  };
39
39
  };
40
40
  sub_accounts: {
@@ -50,7 +50,7 @@ export declare const issuing: {
50
50
  getByUuid: (uuid: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
51
51
  create: (wallet_id: string, program_id: string) => Promise<API.Issuing.SubAccounts.SubAccount>;
52
52
  transactions: {
53
- get: (fiat_account_id: string, limit?: number, offset?: number) => Promise<API.Issuing.SubAccounts.TransactionList>;
53
+ get: (sub_account_id: string, limit?: number, offset?: number) => Promise<API.Issuing.SubAccounts.TransactionList>;
54
54
  };
55
55
  };
56
56
  config: {
@@ -78,9 +78,7 @@ exports.issuing = {
78
78
  getByCardId: (card_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/csv`, {
79
79
  params: { card_id },
80
80
  }),
81
- getBySubAccountId: (fiat_account_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/transactions/csv`, {
82
- params: { fiat_account_id },
83
- }),
81
+ getBySubAccountId: (sub_account_id) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions/csv`),
84
82
  },
85
83
  },
86
84
  sub_accounts: {
@@ -104,7 +102,7 @@ exports.issuing = {
104
102
  data: { wallet_id, program_id },
105
103
  }),
106
104
  transactions: {
107
- get: (fiat_account_id, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${fiat_account_id}/transactions`, {
105
+ get: (sub_account_id, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions`, {
108
106
  params: { limit, offset },
109
107
  }),
110
108
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.17.3",
3
+ "version": "1.17.5",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -87,10 +87,8 @@ export const issuing = {
87
87
  apiClientV1.getRequest<string>(`/issuing/transactions/csv`, {
88
88
  params: { card_id },
89
89
  }),
90
- getBySubAccountId: (fiat_account_id: string) =>
91
- apiClientV1.getRequest<string>(`/issuing/transactions/csv`, {
92
- params: { fiat_account_id },
93
- }),
90
+ getBySubAccountId: (sub_account_id: string) =>
91
+ apiClientV1.getRequest<string>(`/issuing/sub_account/${sub_account_id}/transactions/csv`),
94
92
  },
95
93
  },
96
94
  sub_accounts: {
@@ -126,9 +124,9 @@ export const issuing = {
126
124
  data: { wallet_id, program_id },
127
125
  }),
128
126
  transactions: {
129
- get: (fiat_account_id: string, limit?: number, offset?: number) =>
127
+ get: (sub_account_id: string, limit?: number, offset?: number) =>
130
128
  apiClientV1.getRequest<API.Issuing.SubAccounts.TransactionList>(
131
- `/issuing/sub_account/${fiat_account_id}/transactions`,
129
+ `/issuing/sub_account/${sub_account_id}/transactions`,
132
130
  {
133
131
  params: { limit, offset },
134
132
  }