squarefi-bff-api-module 1.5.7 → 1.5.9
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/dist/api/types.d.ts +7 -10
- package/package.json +1 -1
- package/src/api/types.ts +7 -12
package/dist/api/types.d.ts
CHANGED
|
@@ -322,20 +322,17 @@ export declare namespace API {
|
|
|
322
322
|
interval: string;
|
|
323
323
|
};
|
|
324
324
|
namespace Create {
|
|
325
|
-
interface
|
|
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
|
+
type StandAloneRequest = CommonRequest;
|
|
334
|
+
interface FiatAccountRequest extends CommonRequest {
|
|
335
|
+
sub_account_id: string;
|
|
339
336
|
}
|
|
340
337
|
type StandAloneResponse = IssuingCardDetailItem;
|
|
341
338
|
type FiatAccountResponse = IssuingCardDetailItem;
|
package/package.json
CHANGED
package/src/api/types.ts
CHANGED
|
@@ -369,23 +369,18 @@ export namespace API {
|
|
|
369
369
|
};
|
|
370
370
|
|
|
371
371
|
export namespace Create {
|
|
372
|
-
export interface
|
|
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;
|
|
381
379
|
}
|
|
380
|
+
export type StandAloneRequest = CommonRequest;
|
|
382
381
|
|
|
383
|
-
export interface FiatAccountRequest {
|
|
382
|
+
export interface FiatAccountRequest extends CommonRequest {
|
|
384
383
|
sub_account_id: string;
|
|
385
|
-
program_id: string;
|
|
386
|
-
request_id: string;
|
|
387
|
-
nick_name: string;
|
|
388
|
-
wallet_id: string;
|
|
389
384
|
}
|
|
390
385
|
|
|
391
386
|
export type StandAloneResponse = IssuingCardDetailItem;
|