squarefi-bff-api-module 1.34.23 → 1.35.0

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.
@@ -9,6 +9,7 @@ import { kyc } from './kyc';
9
9
  import { list } from './list';
10
10
  import { orders } from './orders';
11
11
  import { referrals } from './referrals';
12
+ import { statements } from './statements';
12
13
  import { storage } from './storage';
13
14
  import { tenants } from './tenants';
14
15
  import { totp } from './totp';
@@ -27,6 +28,7 @@ type Api = {
27
28
  list: typeof list;
28
29
  orders: typeof orders;
29
30
  referrals: typeof referrals;
31
+ statements: typeof statements;
30
32
  storage: typeof storage;
31
33
  tenants: typeof tenants;
32
34
  totp: typeof totp;
package/dist/api/index.js CHANGED
@@ -9,6 +9,7 @@ import { kyc } from './kyc';
9
9
  import { list } from './list';
10
10
  import { orders } from './orders';
11
11
  import { referrals } from './referrals';
12
+ import { statements } from './statements';
12
13
  import { storage } from './storage';
13
14
  import { tenants } from './tenants';
14
15
  import { totp } from './totp';
@@ -27,6 +28,7 @@ export const squarefi_bff_api_client = {
27
28
  list,
28
29
  orders,
29
30
  referrals,
31
+ statements,
30
32
  storage,
31
33
  tenants,
32
34
  totp,
@@ -41,6 +41,8 @@ export declare const orders: {
41
41
  L2F_WIRE_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.L2F_WIRE_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.L2F_WIRE_OFFRAMP.Response>;
42
42
  L2F_CHAPS_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.L2F_CHAPS_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.L2F_CHAPS_OFFRAMP.Response>;
43
43
  L2F_FPS_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.L2F_FPS_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.L2F_FPS_OFFRAMP.Response>;
44
+ BRL_WIRE_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.BRL_WIRE_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.BRL_WIRE_OFFRAMP.Response>;
45
+ BRL_ACH_OFFRAMP: (data: API.Orders.V2.Create.ByOrderType.BRL_ACH_OFFRAMP.Request) => Promise<API.Orders.V2.Create.ByOrderType.BRL_ACH_OFFRAMP.Response>;
44
46
  };
45
47
  };
46
48
  list: {
@@ -74,6 +74,8 @@ export const orders = {
74
74
  [OrderType.L2F_WIRE_OFFRAMP]: (data) => apiClientV1.postRequest('/v2/orders/L2F_WIRE_OFFRAMP', { data }),
75
75
  [OrderType.L2F_CHAPS_OFFRAMP]: (data) => apiClientV1.postRequest('/v2/orders/L2F_CHAPS_OFFRAMP', { data }),
76
76
  [OrderType.L2F_FPS_OFFRAMP]: (data) => apiClientV1.postRequest('/v2/orders/L2F_FPS_OFFRAMP', { data }),
77
+ [OrderType.BRL_WIRE_OFFRAMP]: (data) => apiClientV1.postRequest('/v2/orders/BRL_WIRE_OFFRAMP', { data }),
78
+ [OrderType.BRL_ACH_OFFRAMP]: (data) => apiClientV1.postRequest('/v2/orders/BRL_ACH_OFFRAMP', { data }),
77
79
  },
78
80
  },
79
81
  list: {
@@ -0,0 +1,4 @@
1
+ import { API } from './types/types';
2
+ export declare const statements: {
3
+ pdfByWalletUuid: ({ wallet_uuid, ...params }: API.Statements.Pdf.Request) => Promise<API.Statements.Pdf.Response>;
4
+ };
@@ -0,0 +1,4 @@
1
+ import { apiClientV1Native } from '../utils/apiClientFactory';
2
+ export const statements = {
3
+ pdfByWalletUuid: ({ wallet_uuid, ...params }) => apiClientV1Native.getRequest(`/wallets/transactions/${wallet_uuid}/statement-pdf`, { params, responseType: 'blob' }),
4
+ };