@rebilly/framepay 5.242.3 → 5.242.5
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 +8 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -167,14 +167,7 @@ export declare const CARD_CVV_TYPES: {
|
|
|
167
167
|
readonly text: "text";
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
export declare const CARD_EXPIRATION_TYPES: {
|
|
171
|
-
readonly text: "text";
|
|
172
|
-
};
|
|
173
|
-
|
|
174
170
|
export declare interface CardConfig {
|
|
175
|
-
expiration?: {
|
|
176
|
-
type: CardExpirationType;
|
|
177
|
-
};
|
|
178
171
|
cvv?: {
|
|
179
172
|
type: CardCvvType;
|
|
180
173
|
};
|
|
@@ -216,8 +209,6 @@ export declare class CardElement {
|
|
|
216
209
|
validate(): Promise<void>;
|
|
217
210
|
}
|
|
218
211
|
|
|
219
|
-
export declare type CardExpirationType = ValueOf<typeof CARD_EXPIRATION_TYPES>;
|
|
220
|
-
|
|
221
212
|
export declare interface ClassesConfig {
|
|
222
213
|
base?: string;
|
|
223
214
|
focus?: string;
|
|
@@ -522,29 +513,29 @@ export declare class FramePay {
|
|
|
522
513
|
* @param cardDetails - Object containing card details
|
|
523
514
|
* @param cardDetails.bin - The first 6 digits of the card number
|
|
524
515
|
* @param cardDetails.last4 The last 4 digits of the card number
|
|
525
|
-
* @param cardDetails.expMonth The expiration month of the card
|
|
526
|
-
* @param cardDetails.expYear The expiration year of the card
|
|
516
|
+
* @param cardDetails.expMonth The expiration month of the card, such as 3 or '03'
|
|
517
|
+
* @param cardDetails.expYear The expiration year of the card, such as 2030 or '30'
|
|
527
518
|
* @return Returns true if there is an encrypted CVV stored, false otherwise.
|
|
528
519
|
*/
|
|
529
520
|
hasEncryptedCVV(cardDetails: {
|
|
530
521
|
bin: string;
|
|
531
522
|
last4: string;
|
|
532
|
-
expMonth: string;
|
|
533
|
-
expYear: string;
|
|
523
|
+
expMonth: string | number;
|
|
524
|
+
expYear: string | number;
|
|
534
525
|
}): Promise<boolean>;
|
|
535
526
|
/**
|
|
536
527
|
* Remove stored encrypted CVV for the provided card details.
|
|
537
528
|
* @param cardDetails - Object containing card details
|
|
538
529
|
* @param cardDetails.bin - The first 6 digits of the card number
|
|
539
530
|
* @param cardDetails.last4 The last 4 digits of the card number
|
|
540
|
-
* @param cardDetails.expMonth The expiration month of the card
|
|
541
|
-
* @param cardDetails.expYear The expiration year of the card
|
|
531
|
+
* @param cardDetails.expMonth The expiration month of the card, such as 3 or '03'
|
|
532
|
+
* @param cardDetails.expYear The expiration year of the card, such as 2030 or '30'
|
|
542
533
|
*/
|
|
543
534
|
removeEncryptedCVV(cardDetails: {
|
|
544
535
|
bin: string;
|
|
545
536
|
last4: string;
|
|
546
|
-
expMonth: string;
|
|
547
|
-
expYear: string;
|
|
537
|
+
expMonth: string | number;
|
|
538
|
+
expYear: string | number;
|
|
548
539
|
}): void;
|
|
549
540
|
/**
|
|
550
541
|
* Remove all stored encrypted CVVs.
|