@rebilly/framepay 1.73.0 → 1.74.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 +40 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -310,7 +310,8 @@ export declare interface ExtraData {
|
|
|
310
310
|
address?: ApplePayJS.ApplePayPaymentContact | google.payments.api.Address;
|
|
311
311
|
option?: ShippingOptionItem | google.payments.api.SelectionOptionData;
|
|
312
312
|
};
|
|
313
|
-
|
|
313
|
+
enableEncryptedCVV?: boolean;
|
|
314
|
+
[key: string]: string | object | boolean | undefined;
|
|
314
315
|
}
|
|
315
316
|
|
|
316
317
|
export declare type ExtraPayPalConfigs = Record<(typeof supportedExtraPayPalConfigs)[number], (data?: unknown) => void>;
|
|
@@ -460,6 +461,7 @@ export declare class FramePay {
|
|
|
460
461
|
invalidCustomerFormValues: string;
|
|
461
462
|
invalidMethodsConfiguration: string;
|
|
462
463
|
unservicableShippingAddress: string;
|
|
464
|
+
invalidWebsiteId: string;
|
|
463
465
|
};
|
|
464
466
|
card: Card;
|
|
465
467
|
bban: Bban;
|
|
@@ -506,6 +508,39 @@ export declare class FramePay {
|
|
|
506
508
|
* @param delegate The delegate to unsubscribe
|
|
507
509
|
*/
|
|
508
510
|
off: FramepayBusOff;
|
|
511
|
+
/**
|
|
512
|
+
* Whether or not there is an encrypted CVV stored for the given card details.
|
|
513
|
+
* @param cardDetails - Object containing card details
|
|
514
|
+
* @param cardDetails.bin - The first 6 digits of the card number
|
|
515
|
+
* @param cardDetails.last4 The last 4 digits of the card number
|
|
516
|
+
* @param cardDetails.expMonth The expiration month of the card
|
|
517
|
+
* @param cardDetails.expYear The expiration year of the card
|
|
518
|
+
* @return Returns true if there is an encrypted CVV stored, false otherwise.
|
|
519
|
+
*/
|
|
520
|
+
hasEncryptedCVV(cardDetails: {
|
|
521
|
+
bin: string;
|
|
522
|
+
last4: string;
|
|
523
|
+
expMonth: string;
|
|
524
|
+
expYear: string;
|
|
525
|
+
}): Promise<boolean>;
|
|
526
|
+
/**
|
|
527
|
+
* Remove stored encrypted CVV for the provided card details.
|
|
528
|
+
* @param cardDetails - Object containing card details
|
|
529
|
+
* @param cardDetails.bin - The first 6 digits of the card number
|
|
530
|
+
* @param cardDetails.last4 The last 4 digits of the card number
|
|
531
|
+
* @param cardDetails.expMonth The expiration month of the card
|
|
532
|
+
* @param cardDetails.expYear The expiration year of the card
|
|
533
|
+
*/
|
|
534
|
+
removeEncryptedCVV(cardDetails: {
|
|
535
|
+
bin: string;
|
|
536
|
+
last4: string;
|
|
537
|
+
expMonth: string;
|
|
538
|
+
expYear: string;
|
|
539
|
+
}): void;
|
|
540
|
+
/**
|
|
541
|
+
* Remove all stored encrypted CVVs.
|
|
542
|
+
*/
|
|
543
|
+
removeAllEncryptedCVVs(): void;
|
|
509
544
|
}
|
|
510
545
|
|
|
511
546
|
export declare const FRAMEPAY_EVENTS: {
|
|
@@ -991,7 +1026,9 @@ export declare const supportedExtraPayPalConfigs: string[];
|
|
|
991
1026
|
|
|
992
1027
|
export declare type TokenData = coreComponents['schemas']['CompositeToken'] & {
|
|
993
1028
|
id: string;
|
|
994
|
-
paymentInstrument: coreComponents['schemas']['CompositeToken']['paymentInstrument']
|
|
1029
|
+
paymentInstrument: coreComponents['schemas']['CompositeToken']['paymentInstrument'] & {
|
|
1030
|
+
encryptedCvv?: string;
|
|
1031
|
+
};
|
|
995
1032
|
};
|
|
996
1033
|
|
|
997
1034
|
export declare class TokenRequest {
|
|
@@ -1030,6 +1067,7 @@ export declare interface TokenRequestPayload {
|
|
|
1030
1067
|
expMonth?: string;
|
|
1031
1068
|
expYear?: string;
|
|
1032
1069
|
};
|
|
1070
|
+
enableEncryptedCVV?: boolean;
|
|
1033
1071
|
}
|
|
1034
1072
|
|
|
1035
1073
|
export declare interface TransactionData {
|