@payrails/web-sdk 5.36.0 → 5.36.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payrails/web-sdk",
3
- "version": "5.36.0",
3
+ "version": "5.36.2",
4
4
  "description": "SDK providing tokenization options on the client for merchants",
5
5
  "main": "index.js",
6
6
  "types": "payrails.d.ts",
package/payrails.d.ts CHANGED
@@ -381,6 +381,12 @@ interface StoredPaymentInstrument<T = CardMetadata | PayPalMetadata | BankAccoun
381
381
  paymentMethod: PAYMENT_METHOD_CODES;
382
382
  displayName?: string;
383
383
  data?: T;
384
+ default?: boolean;
385
+ createdAt?: string;
386
+ updatedAt?: string;
387
+ holderId?: string;
388
+ fingerprint?: string;
389
+ futureUsage?: FutureUsages;
384
390
  }
385
391
  interface PayPalMetadata {
386
392
  email?: string;
@@ -450,6 +456,7 @@ declare enum INTEGRATION_TYPE {
450
456
  HPP = "hpp"
451
457
  }
452
458
 
459
+ type FutureUsages = 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile';
453
460
  interface SaveInstrumentResponse {
454
461
  id: string;
455
462
  createdAt: string;
@@ -857,7 +864,7 @@ declare class PayrailsElement implements Mountable {
857
864
  }
858
865
 
859
866
  interface TokenizeOptions {
860
- futureUsage?: 'CardOnFile' | 'Subscription' | 'UnscheduledCardOnFile';
867
+ futureUsage?: FutureUsages;
861
868
  storeInstrument?: boolean;
862
869
  }
863
870
  declare abstract class Tokenizable extends PayrailsElement {