@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 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(card: Record<string, unknown>): Promise<Card>;
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
- issueCard(card) {
110
- return this.request('POST', '/v1/bank/cards', card);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxfi/bank",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Typed client for the Lux banking API (/v1/bank) — accounts, payments, cards, crypto, FX, and membership plans.",
5
5
  "license": "MIT",
6
6
  "repository": {