squarefi-bff-api-module 1.17.3 → 1.17.4

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,12 @@ 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.4] - 2025-04-18
9
+
10
+ ### Fixed
11
+
12
+ - Updated transaction retrieval to use sub_account_id and correct endpoint
13
+
8
14
  ## [1.17.3] - 2025-04-18
9
15
 
10
16
  ### Added
@@ -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: {
@@ -104,7 +104,7 @@ exports.issuing = {
104
104
  data: { wallet_id, program_id },
105
105
  }),
106
106
  transactions: {
107
- get: (fiat_account_id, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${fiat_account_id}/transactions`, {
107
+ get: (sub_account_id, limit, offset) => apiClientFactory_1.apiClientV1.getRequest(`/issuing/sub_account/${sub_account_id}/transactions/csv`, {
108
108
  params: { limit, offset },
109
109
  }),
110
110
  },
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.4",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -126,9 +126,9 @@ export const issuing = {
126
126
  data: { wallet_id, program_id },
127
127
  }),
128
128
  transactions: {
129
- get: (fiat_account_id: string, limit?: number, offset?: number) =>
129
+ get: (sub_account_id: string, limit?: number, offset?: number) =>
130
130
  apiClientV1.getRequest<API.Issuing.SubAccounts.TransactionList>(
131
- `/issuing/sub_account/${fiat_account_id}/transactions`,
131
+ `/issuing/sub_account/${sub_account_id}/transactions/csv`,
132
132
  {
133
133
  params: { limit, offset },
134
134
  }