squarefi-bff-api-module 1.5.7 → 1.5.8

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.
@@ -322,20 +322,21 @@ export declare namespace API {
322
322
  interval: string;
323
323
  };
324
324
  namespace Create {
325
- interface StandAloneRequest {
326
- authorization_controls: AuthorizationControls;
327
- nick_name: string;
328
- purpose?: string;
329
- request_id: string;
330
- program_id: string;
331
- wallet_id: string;
332
- }
333
- interface FiatAccountRequest {
334
- sub_account_id: string;
325
+ interface CommonRequest {
335
326
  program_id: string;
336
327
  request_id: string;
337
328
  nick_name: string;
338
329
  wallet_id: string;
330
+ initial_topup?: number;
331
+ currency_id?: string;
332
+ }
333
+ interface StandAloneRequest extends CommonRequest {
334
+ authorization_controls: AuthorizationControls;
335
+ transaction_limits: TransactionLimit[];
336
+ purpose?: string;
337
+ }
338
+ interface FiatAccountRequest extends CommonRequest {
339
+ sub_account_id: string;
339
340
  }
340
341
  type StandAloneResponse = IssuingCardDetailItem;
341
342
  type FiatAccountResponse = IssuingCardDetailItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squarefi-bff-api-module",
3
- "version": "1.5.7",
3
+ "version": "1.5.8",
4
4
  "description": "Squarefi BFF API client module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/api/types.ts CHANGED
@@ -369,23 +369,22 @@ export namespace API {
369
369
  };
370
370
 
371
371
  export namespace Create {
372
- export interface StandAloneRequest {
373
- authorization_controls: AuthorizationControls;
374
-
375
- // name_on_card: string; hide cardholder name
376
- nick_name: string;
377
- purpose?: string;
378
- request_id: string;
372
+ export interface CommonRequest {
379
373
  program_id: string;
374
+ request_id: string;
375
+ nick_name: string;
380
376
  wallet_id: string;
377
+ initial_topup?: number;
378
+ currency_id?: string;
379
+ }
380
+ export interface StandAloneRequest extends CommonRequest {
381
+ authorization_controls: AuthorizationControls;
382
+ transaction_limits: TransactionLimit[];
383
+ purpose?: string;
381
384
  }
382
385
 
383
- export interface FiatAccountRequest {
386
+ export interface FiatAccountRequest extends CommonRequest {
384
387
  sub_account_id: string;
385
- program_id: string;
386
- request_id: string;
387
- nick_name: string;
388
- wallet_id: string;
389
388
  }
390
389
 
391
390
  export type StandAloneResponse = IssuingCardDetailItem;