@luxfi/bank 1.1.0 → 1.3.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.
- package/dist/index.d.ts +11 -6
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -186,9 +186,7 @@ export declare class Bank {
|
|
|
186
186
|
}>;
|
|
187
187
|
config(): Promise<Config>;
|
|
188
188
|
plans(): Promise<Plan[]>;
|
|
189
|
-
onboard(profile: Record<string, unknown>): Promise<
|
|
190
|
-
account: Account;
|
|
191
|
-
}>;
|
|
189
|
+
onboard(profile: Record<string, unknown>): Promise<Overview>;
|
|
192
190
|
overview(): Promise<Overview>;
|
|
193
191
|
transactions(): Promise<Transaction[]>;
|
|
194
192
|
accounts(): Promise<Account[]>;
|
|
@@ -205,10 +203,17 @@ export declare class Bank {
|
|
|
205
203
|
wallets(accountId: string): Promise<Wallet[]>;
|
|
206
204
|
accountTransactions(accountId: string): Promise<Transaction[]>;
|
|
207
205
|
beneficiaries(): Promise<Beneficiary[]>;
|
|
208
|
-
createBeneficiary(beneficiary: Record<string, unknown>): Promise<
|
|
209
|
-
|
|
206
|
+
createBeneficiary(beneficiary: Record<string, unknown>): Promise<{
|
|
207
|
+
id: string;
|
|
208
|
+
}>;
|
|
209
|
+
deleteBeneficiary(id: string): Promise<{
|
|
210
|
+
deleted: string;
|
|
211
|
+
}>;
|
|
210
212
|
cards(): Promise<Card[]>;
|
|
211
|
-
issueCard(
|
|
213
|
+
issueCard(currency?: string): Promise<{
|
|
214
|
+
card: Card;
|
|
215
|
+
cvv: string;
|
|
216
|
+
}>;
|
|
212
217
|
freezeCard(id: string): Promise<Card>;
|
|
213
218
|
unfreezeCard(id: string): Promise<Card>;
|
|
214
219
|
createCardAccount(profile: CardholderProfile): Promise<{
|
package/dist/index.js
CHANGED
|
@@ -106,8 +106,9 @@ export class Bank {
|
|
|
106
106
|
cards() {
|
|
107
107
|
return this.request('GET', '/v1/bank/cards');
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
// Returns the new card plus its CVV, shown once and never stored server-side.
|
|
110
|
+
issueCard(currency) {
|
|
111
|
+
return this.request('POST', '/v1/bank/cards', { currency });
|
|
111
112
|
}
|
|
112
113
|
freezeCard(id) {
|
|
113
114
|
return this.request('POST', `/v1/bank/cards/${enc(id)}/freeze`);
|
package/package.json
CHANGED