squarefi-bff-api-module 1.36.35 → 1.36.37

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.
@@ -1067,104 +1067,6 @@ export interface paths {
1067
1067
  patch?: never;
1068
1068
  trace?: never;
1069
1069
  };
1070
- "/tenant/me": {
1071
- parameters: {
1072
- query?: never;
1073
- header?: never;
1074
- path?: never;
1075
- cookie?: never;
1076
- };
1077
- /**
1078
- * Get authenticated tenant
1079
- * @deprecated
1080
- * @description Returns information about the authenticated tenant
1081
- */
1082
- get: {
1083
- parameters: {
1084
- query?: never;
1085
- header?: never;
1086
- path?: never;
1087
- cookie?: never;
1088
- };
1089
- requestBody?: never;
1090
- responses: {
1091
- /** @description Authenticated tenant information */
1092
- 200: {
1093
- headers: {
1094
- [name: string]: unknown;
1095
- };
1096
- content: {
1097
- "application/json": components["schemas"]["Tenant"];
1098
- };
1099
- };
1100
- /** @description Server error */
1101
- 500: {
1102
- headers: {
1103
- [name: string]: unknown;
1104
- };
1105
- content: {
1106
- "application/json": components["schemas"]["Error"];
1107
- };
1108
- };
1109
- };
1110
- };
1111
- put?: never;
1112
- post?: never;
1113
- delete?: never;
1114
- options?: never;
1115
- head?: never;
1116
- patch?: never;
1117
- trace?: never;
1118
- };
1119
- "/tenant/config": {
1120
- parameters: {
1121
- query?: never;
1122
- header?: never;
1123
- path?: never;
1124
- cookie?: never;
1125
- };
1126
- /**
1127
- * Get tenant configuration
1128
- * @deprecated
1129
- * @description Returns configuration for the authenticated tenant
1130
- */
1131
- get: {
1132
- parameters: {
1133
- query?: never;
1134
- header?: never;
1135
- path?: never;
1136
- cookie?: never;
1137
- };
1138
- requestBody?: never;
1139
- responses: {
1140
- /** @description Tenant configuration */
1141
- 200: {
1142
- headers: {
1143
- [name: string]: unknown;
1144
- };
1145
- content: {
1146
- "application/json": components["schemas"]["TenantConfig"];
1147
- };
1148
- };
1149
- /** @description Server error */
1150
- 500: {
1151
- headers: {
1152
- [name: string]: unknown;
1153
- };
1154
- content: {
1155
- "application/json": components["schemas"]["Error"];
1156
- };
1157
- };
1158
- };
1159
- };
1160
- put?: never;
1161
- post?: never;
1162
- delete?: never;
1163
- options?: never;
1164
- head?: never;
1165
- patch?: never;
1166
- trace?: never;
1167
- };
1168
1070
  "/issuing/cards": {
1169
1071
  parameters: {
1170
1072
  query?: never;
@@ -2201,17 +2103,7 @@ export interface paths {
2201
2103
  };
2202
2104
  /**
2203
2105
  * Get card transactions
2204
- * @description Retrieves a list of transactions for a specific card with filtering and pagination options.
2205
- * This endpoint now combines external card transactions with local top-up transactions.
2206
- *
2207
- * **Pagination Strategy**: Due to combining two data sources (external API and local DB),
2208
- * pagination fetches larger batches from both sources to ensure proper sorting before
2209
- * applying the requested pagination. This prevents missing transactions that should appear
2210
- * on the current page after sorting.
2211
- *
2212
- * **Note**: For cards, the system needs to find the associated fiat_account to match local top-up transactions.
2213
- * This should be replaced with direct card_id in transaction metadata in the future.
2214
- *
2106
+ * @description Retrieves a list of transactions for a specific card, including card top-ups, with filtering and pagination options.
2215
2107
  */
2216
2108
  get: {
2217
2109
  parameters: {
@@ -2226,14 +2118,14 @@ export interface paths {
2226
2118
  offset?: number;
2227
2119
  /** @description Whether to use the new response format */
2228
2120
  new_scheme?: boolean;
2229
- /** @description Filter by transaction type */
2230
- transaction_type?: string;
2231
- /** @description Filter by start date (ISO 8601). Sent to external provider as `from_timestamp` and post-filtered against `cleared_at`/`created_at`. */
2121
+ /** @description Filter by transaction type (case-insensitive). Unknown values are rejected with a validation error. */
2122
+ transaction_type?: "AUTHORIZATION" | "CLEARING" | "REFUND" | "REVERSAL" | "DEPOSIT" | "WITHDRAWAL" | "TRANSFER" | "FEE" | "ATM" | "ACCOUNT_VERIFICATION" | "ORIGINAL_CREDIT" | "OTHER";
2123
+ /** @description Filter by start date (ISO 8601), matched against `cleared_at` (fallback `created_at`). */
2232
2124
  from?: string;
2233
- /** @description Filter by end date (ISO 8601). Sent to external provider as `to_timestamp` and post-filtered against `cleared_at`/`created_at`. */
2125
+ /** @description Filter by end date (ISO 8601), matched against `cleared_at` (fallback `created_at`). */
2234
2126
  to?: string;
2235
- /** @description Filter by transaction status. Forwarded to external provider and applied as a post-filter on the combined result. */
2236
- status?: "PENDING" | "APPROVED" | "DECLINED" | "CANCELED";
2127
+ /** @description Filter by transaction status (case-insensitive). */
2128
+ status?: "PENDING" | "APPROVED" | "COMPLETED" | "DECLINED" | "CANCELED" | "REVERSED" | "EXPIRED";
2237
2129
  };
2238
2130
  header?: never;
2239
2131
  path?: never;
@@ -2241,7 +2133,7 @@ export interface paths {
2241
2133
  };
2242
2134
  requestBody?: never;
2243
2135
  responses: {
2244
- /** @description List of transactions retrieved successfully (includes both external and local top-up transactions) */
2136
+ /** @description List of transactions retrieved successfully (includes card top-ups) */
2245
2137
  200: {
2246
2138
  headers: {
2247
2139
  [name: string]: unknown;
@@ -2250,6 +2142,15 @@ export interface paths {
2250
2142
  "application/json": components["schemas"]["IssuingTransactionList"];
2251
2143
  };
2252
2144
  };
2145
+ /** @description Validation error (unknown transaction_type) */
2146
+ 400: {
2147
+ headers: {
2148
+ [name: string]: unknown;
2149
+ };
2150
+ content: {
2151
+ "application/json": components["schemas"]["Error"];
2152
+ };
2153
+ };
2253
2154
  /** @description Server Error */
2254
2155
  500: {
2255
2156
  headers: {
@@ -4178,119 +4079,6 @@ export interface paths {
4178
4079
  patch?: never;
4179
4080
  trace?: never;
4180
4081
  };
4181
- "/orders/TRANSFER_CARD_WHOLESALE": {
4182
- parameters: {
4183
- query?: never;
4184
- header?: never;
4185
- path?: never;
4186
- cookie?: never;
4187
- };
4188
- get?: never;
4189
- put?: never;
4190
- /**
4191
- * Create a wholesale card transfer order
4192
- * @description Create a wholesale card transfer order
4193
- */
4194
- post: {
4195
- parameters: {
4196
- query?: never;
4197
- header?: never;
4198
- path?: never;
4199
- cookie?: never;
4200
- };
4201
- requestBody: {
4202
- content: {
4203
- "application/json": {
4204
- /**
4205
- * @description Amount to transfer
4206
- * @example 100
4207
- */
4208
- amount: number;
4209
- /**
4210
- * @description Source wallet UUID
4211
- * @example 8205c701-cd41-4929-910f-fccbb949729a
4212
- */
4213
- wallet_id: string;
4214
- /**
4215
- * @description Vendor ID
4216
- * @example 509eca03-bc0d-4a38-b7dc-d136d2bdaa43
4217
- */
4218
- vendor_id: string;
4219
- /**
4220
- * @description Currency ID
4221
- * @example a60e477a-2ebb-4158-91ee-2f39ade8d883
4222
- */
4223
- currency_id: string;
4224
- };
4225
- };
4226
- };
4227
- responses: {
4228
- /** @description Order successfully created */
4229
- 200: {
4230
- headers: {
4231
- [name: string]: unknown;
4232
- };
4233
- content: {
4234
- "application/json": {
4235
- /** Format: date-time */
4236
- created_at?: string;
4237
- order_uuid?: string;
4238
- wallet_uuid?: string;
4239
- from_uuid?: string;
4240
- to_uuid?: string;
4241
- amount_from?: number;
4242
- /** @example TRANSFER_CARD_WHOLESALE */
4243
- order_type?: string;
4244
- /** @enum {string} */
4245
- status?: "PENDING" | "COMPLETE" | "FAILED";
4246
- amount_to?: number;
4247
- info?: string;
4248
- meta?: {
4249
- fee?: number;
4250
- order_uuid?: string;
4251
- fee_currency?: string;
4252
- billing_amount?: number;
4253
- transaction_amount?: number;
4254
- transaction_currency?: string;
4255
- exchange_rate?: number;
4256
- network_fee?: number;
4257
- meta_type?: string;
4258
- vendor_id?: string;
4259
- };
4260
- id?: string;
4261
- };
4262
- };
4263
- };
4264
- /** @description Bad request - validation error */
4265
- 400: {
4266
- headers: {
4267
- [name: string]: unknown;
4268
- };
4269
- content: {
4270
- "application/json": {
4271
- error?: string;
4272
- };
4273
- };
4274
- };
4275
- /** @description Server error */
4276
- 500: {
4277
- headers: {
4278
- [name: string]: unknown;
4279
- };
4280
- content: {
4281
- "application/json": {
4282
- error?: string;
4283
- };
4284
- };
4285
- };
4286
- };
4287
- };
4288
- delete?: never;
4289
- options?: never;
4290
- head?: never;
4291
- patch?: never;
4292
- trace?: never;
4293
- };
4294
4082
  "/orders/EXCHANGE_CRYPTO_INTERNAL": {
4295
4083
  parameters: {
4296
4084
  query?: never;
@@ -5226,7 +5014,6 @@ export interface paths {
5226
5014
  updated_at?: string;
5227
5015
  /** Format: date-time */
5228
5016
  deleted_at?: string | null;
5229
- is_deleted?: boolean | null;
5230
5017
  /** @description Parent counterparty account */
5231
5018
  counterparty_account?: {
5232
5019
  id?: string;
@@ -8485,8 +8272,6 @@ export interface components {
8485
8272
  Transaction: unknown;
8486
8273
  CryptoCurrency: unknown;
8487
8274
  Country: unknown;
8488
- Tenant: unknown;
8489
- TenantConfig: unknown;
8490
8275
  IssuingCardList: unknown;
8491
8276
  IssuingCard: unknown;
8492
8277
  CardSensitiveData: unknown;