squarefi-bff-api-module 1.30.2 → 1.30.3

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.
@@ -1972,6 +1972,8 @@ export interface components {
1972
1972
  created_at: string;
1973
1973
  /** @default false */
1974
1974
  is_pinned: boolean;
1975
+ /** @default false */
1976
+ is_self: boolean;
1975
1977
  };
1976
1978
  FindAllCounterpartyAccountsResponseDto: {
1977
1979
  /** @example 20 */
@@ -1991,6 +1993,8 @@ export interface components {
1991
1993
  type: "INDIVIDUAL" | "BUSINESS";
1992
1994
  /** @default false */
1993
1995
  is_pinned: boolean;
1996
+ /** @default false */
1997
+ is_self: boolean;
1994
1998
  };
1995
1999
  UpdateCounterpartyAccountDto: {
1996
2000
  email?: string;
@@ -1,4 +1,4 @@
1
- import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
1
+ import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CounterpartyDestinationType, CounterpartyType, CurrencyType, IssuingProgramStatus, OrderPaymentMethod, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
2
2
  import { WalletType } from '../..';
3
3
  import { components, operations } from './autogen/apiV2.types';
4
4
  export declare namespace API {
@@ -1446,13 +1446,13 @@ export declare namespace API {
1446
1446
  }
1447
1447
  namespace OrderTypes {
1448
1448
  interface OrderInfo {
1449
- id: string;
1449
+ id: OrderType | string;
1450
1450
  transaction_type: string;
1451
1451
  description: string | null;
1452
- direction: 'deposit' | 'withdrawal';
1452
+ direction: string | null;
1453
1453
  is_internal: boolean;
1454
1454
  kyc_rails_id: string | null;
1455
- payment_method: OrderType | string;
1455
+ payment_method: OrderPaymentMethod | string;
1456
1456
  }
1457
1457
  namespace List {
1458
1458
  type Response = OrderInfo[];
@@ -1466,6 +1466,14 @@ export declare namespace API {
1466
1466
  limit?: number;
1467
1467
  sort_by?: string;
1468
1468
  sort_order?: 'asc' | 'desc';
1469
+ filter: {
1470
+ from_created_at?: string;
1471
+ to_created_at?: string;
1472
+ status?: OrderStatuses;
1473
+ order_type?: OrderType;
1474
+ from_currency_id?: string;
1475
+ to_currency_id?: string;
1476
+ };
1469
1477
  }
1470
1478
  interface PaymentOriginatorAddress {
1471
1479
  address_line1?: string | null;
@@ -49,6 +49,16 @@ export declare enum WalletTransactionStatus {
49
49
  PROCESSING = "processing",
50
50
  NEW = "new"
51
51
  }
52
+ export declare enum OrderPaymentMethod {
53
+ ACH = "ACH",
54
+ SEPA = "SEPA",
55
+ SWIFT = "SWIFT",
56
+ DOMESTIC_WIRE = "DOMESTIC_WIRE",
57
+ CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
58
+ CRYPTO_INTERNAL = "CRYPTO_INTERNAL",
59
+ CHAPS = "CHAPS",
60
+ FPS = "FPS"
61
+ }
52
62
  export declare enum OrderType {
53
63
  DEPOSIT_ISSUING_SA_CRYPTO_EXT = "DEPOSIT_ISSUING_SA_CRYPTO_EXT",
54
64
  DEPOSIT_ISSUING_SA_SEPA_EXT = "DEPOSIT_ISSUING_SA_SEPA_EXT",
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CardTransactionStatus = exports.CounterpartyDestinationType = exports.CounterpartyType = exports.SortingDirection = exports.APIKeyRole = exports.CurrencyType = exports.SubAccountType = exports.SubAccountStatus = exports.IssuingProgramStatus = exports.CardStatus = exports.OrderStatuses = exports.KYCStatuses = exports.CalcType = exports.defaultPaginationParams = exports.walletType = exports.WalletTypeValues = exports.ResponseStatus = exports.RequestLoadingType = exports.RequestStatus = exports.WalletTransactionRecordType = exports.OrderType = exports.WalletTransactionStatus = exports.WalletTransactionMethod = exports.WalletTransactionType = exports.CardTransactionType = exports.CardType = exports.CardFormFactor = exports.AppEnviroment = exports.falsyValues = void 0;
3
+ exports.CardTransactionStatus = exports.CounterpartyDestinationType = exports.CounterpartyType = exports.SortingDirection = exports.APIKeyRole = exports.CurrencyType = exports.SubAccountType = exports.SubAccountStatus = exports.IssuingProgramStatus = exports.CardStatus = exports.OrderStatuses = exports.KYCStatuses = exports.CalcType = exports.defaultPaginationParams = exports.walletType = exports.WalletTypeValues = exports.ResponseStatus = exports.RequestLoadingType = exports.RequestStatus = exports.WalletTransactionRecordType = exports.OrderType = exports.OrderPaymentMethod = exports.WalletTransactionStatus = exports.WalletTransactionMethod = exports.WalletTransactionType = exports.CardTransactionType = exports.CardType = exports.CardFormFactor = exports.AppEnviroment = exports.falsyValues = void 0;
4
4
  exports.falsyValues = ['false', '0', '', 'FALSE', false, null, undefined, NaN, 0];
5
5
  var AppEnviroment;
6
6
  (function (AppEnviroment) {
@@ -52,6 +52,17 @@ var WalletTransactionStatus;
52
52
  WalletTransactionStatus["PROCESSING"] = "processing";
53
53
  WalletTransactionStatus["NEW"] = "new";
54
54
  })(WalletTransactionStatus || (exports.WalletTransactionStatus = WalletTransactionStatus = {}));
55
+ var OrderPaymentMethod;
56
+ (function (OrderPaymentMethod) {
57
+ OrderPaymentMethod["ACH"] = "ACH";
58
+ OrderPaymentMethod["SEPA"] = "SEPA";
59
+ OrderPaymentMethod["SWIFT"] = "SWIFT";
60
+ OrderPaymentMethod["DOMESTIC_WIRE"] = "DOMESTIC_WIRE";
61
+ OrderPaymentMethod["CRYPTO_EXTERNAL"] = "CRYPTO_EXTERNAL";
62
+ OrderPaymentMethod["CRYPTO_INTERNAL"] = "CRYPTO_INTERNAL";
63
+ OrderPaymentMethod["CHAPS"] = "CHAPS";
64
+ OrderPaymentMethod["FPS"] = "FPS";
65
+ })(OrderPaymentMethod || (exports.OrderPaymentMethod = OrderPaymentMethod = {}));
55
66
  var OrderType;
56
67
  (function (OrderType) {
57
68
  // when extend do not forget to add new order type to the enum WalletTransactionRecordType
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.30.2",
3
+ "version": "1.30.3",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1973,6 +1973,8 @@ export interface components {
1973
1973
  created_at: string;
1974
1974
  /** @default false */
1975
1975
  is_pinned: boolean;
1976
+ /** @default false */
1977
+ is_self: boolean;
1976
1978
  };
1977
1979
  FindAllCounterpartyAccountsResponseDto: {
1978
1980
  /** @example 20 */
@@ -1992,6 +1994,8 @@ export interface components {
1992
1994
  type: "INDIVIDUAL" | "BUSINESS";
1993
1995
  /** @default false */
1994
1996
  is_pinned: boolean;
1997
+ /** @default false */
1998
+ is_self: boolean;
1995
1999
  };
1996
2000
  UpdateCounterpartyAccountDto: {
1997
2001
  email?: string;
@@ -9,6 +9,7 @@ import {
9
9
  CurrencyType,
10
10
  IssuingProgramStatus,
11
11
  KYCStatuses,
12
+ OrderPaymentMethod,
12
13
  OrderStatuses,
13
14
  OrderType,
14
15
  SortingDirection,
@@ -1901,13 +1902,13 @@ export namespace API {
1901
1902
 
1902
1903
  export namespace OrderTypes {
1903
1904
  export interface OrderInfo {
1904
- id: string;
1905
+ id: OrderType | string;
1905
1906
  transaction_type: string;
1906
1907
  description: string | null;
1907
- direction: 'deposit' | 'withdrawal';
1908
+ direction: string | null;
1908
1909
  is_internal: boolean;
1909
1910
  kyc_rails_id: string | null;
1910
- payment_method: OrderType | string;
1911
+ payment_method: OrderPaymentMethod | string;
1911
1912
  }
1912
1913
 
1913
1914
  export namespace List {
@@ -1923,6 +1924,15 @@ export namespace API {
1923
1924
  limit?: number;
1924
1925
  sort_by?: string;
1925
1926
  sort_order?: 'asc' | 'desc';
1927
+ filter: {
1928
+ // ITS MOCK, NOT REAL FILTERS
1929
+ from_created_at?: string;
1930
+ to_created_at?: string;
1931
+ status?: OrderStatuses;
1932
+ order_type?: OrderType;
1933
+ from_currency_id?: string;
1934
+ to_currency_id?: string;
1935
+ };
1926
1936
  }
1927
1937
 
1928
1938
  export interface PaymentOriginatorAddress {
package/src/constants.ts CHANGED
@@ -59,6 +59,17 @@ export enum WalletTransactionStatus {
59
59
  NEW = 'new',
60
60
  }
61
61
 
62
+ export enum OrderPaymentMethod {
63
+ ACH = 'ACH',
64
+ SEPA = 'SEPA',
65
+ SWIFT = 'SWIFT',
66
+ DOMESTIC_WIRE = 'DOMESTIC_WIRE',
67
+ CRYPTO_EXTERNAL = 'CRYPTO_EXTERNAL',
68
+ CRYPTO_INTERNAL = 'CRYPTO_INTERNAL',
69
+ CHAPS = 'CHAPS',
70
+ FPS = 'FPS',
71
+ }
72
+
62
73
  export enum OrderType {
63
74
  // when extend do not forget to add new order type to the enum WalletTransactionRecordType
64
75
  DEPOSIT_ISSUING_SA_CRYPTO_EXT = 'DEPOSIT_ISSUING_SA_CRYPTO_EXT',