@luxfi/bank 1.1.0 → 1.2.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 +4 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -208,7 +208,10 @@ export declare class Bank {
|
|
|
208
208
|
createBeneficiary(beneficiary: Record<string, unknown>): Promise<Beneficiary>;
|
|
209
209
|
deleteBeneficiary(id: string): Promise<void>;
|
|
210
210
|
cards(): Promise<Card[]>;
|
|
211
|
-
issueCard(
|
|
211
|
+
issueCard(currency?: string): Promise<{
|
|
212
|
+
card: Card;
|
|
213
|
+
cvv: string;
|
|
214
|
+
}>;
|
|
212
215
|
freezeCard(id: string): Promise<Card>;
|
|
213
216
|
unfreezeCard(id: string): Promise<Card>;
|
|
214
217
|
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