1 | "use strict";
|
2 | var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3 | if (k2 === undefined) k2 = k;
|
4 | var desc = Object.getOwnPropertyDescriptor(m, k);
|
5 | if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6 | desc = { enumerable: true, get: function() { return m[k]; } };
|
7 | }
|
8 | Object.defineProperty(o, k2, desc);
|
9 | }) : (function(o, m, k, k2) {
|
10 | if (k2 === undefined) k2 = k;
|
11 | o[k2] = m[k];
|
12 | }));
|
13 | var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14 | Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15 | }) : function(o, v) {
|
16 | o["default"] = v;
|
17 | });
|
18 | var __importStar = (this && this.__importStar) || function (mod) {
|
19 | if (mod && mod.__esModule) return mod;
|
20 | var result = {};
|
21 | if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
22 | __setModuleDefault(result, mod);
|
23 | return result;
|
24 | };
|
25 | var creditCardType = __importStar(require("credit-card-type"));
|
26 | var cardholder_name_1 = require("./cardholder-name");
|
27 | var card_number_1 = require("./card-number");
|
28 | var expiration_date_1 = require("./expiration-date");
|
29 | var expiration_month_1 = require("./expiration-month");
|
30 | var expiration_year_1 = require("./expiration-year");
|
31 | var cvv_1 = require("./cvv");
|
32 | var postal_code_1 = require("./postal-code");
|
33 | var cardValidator = {
|
34 | creditCardType: creditCardType,
|
35 | cardholderName: cardholder_name_1.cardholderName,
|
36 | number: card_number_1.cardNumber,
|
37 | expirationDate: expiration_date_1.expirationDate,
|
38 | expirationMonth: expiration_month_1.expirationMonth,
|
39 | expirationYear: expiration_year_1.expirationYear,
|
40 | cvv: cvv_1.cvv,
|
41 | postalCode: postal_code_1.postalCode,
|
42 | };
|
43 | module.exports = cardValidator;
|