@payrails/web-sdk 5.36.1 → 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/README.md +4 -0
- package/index.js +4 -4
- package/package.json +1 -1
- package/payrails.d.ts +8 -1
- package/payrails.js +4 -4
package/package.json
CHANGED
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?:
|
|
867
|
+
futureUsage?: FutureUsages;
|
|
861
868
|
storeInstrument?: boolean;
|
|
862
869
|
}
|
|
863
870
|
declare abstract class Tokenizable extends PayrailsElement {
|