globalpayments-api 1.4.8 → 2.0.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/CHANGELOG.md +11 -1
- package/package.json +3 -4
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -325
- package/lib/src/Builders/AuthorizationBuilder.js +0 -599
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -14
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -61
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -28
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder/Validations.js +0 -56
- package/lib/src/Builders/BaseBuilder.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder.js +0 -16
- package/lib/src/Builders/ManagementBuilder.d.ts +0 -103
- package/lib/src/Builders/ManagementBuilder.js +0 -227
- package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
- package/lib/src/Builders/RecurringBuilder.js +0 -47
- package/lib/src/Builders/ReportBuilder.d.ts +0 -8
- package/lib/src/Builders/ReportBuilder.js +0 -36
- package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
- package/lib/src/Builders/TransactionBuilder.js +0 -46
- package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -15
- package/lib/src/Builders/TransactionReportBuilder.js +0 -79
- package/lib/src/Builders/index.d.ts +0 -7
- package/lib/src/Builders/index.js +0 -19
- package/lib/src/Entities/Address.d.ts +0 -13
- package/lib/src/Entities/Address.js +0 -19
- package/lib/src/Entities/BatchSummary.d.ts +0 -6
- package/lib/src/Entities/BatchSummary.js +0 -9
- package/lib/src/Entities/Customer.d.ts +0 -64
- package/lib/src/Entities/Customer.js +0 -47
- package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
- package/lib/src/Entities/EcommerceInfo.js +0 -14
- package/lib/src/Entities/EncryptionData.d.ts +0 -6
- package/lib/src/Entities/EncryptionData.js +0 -9
- package/lib/src/Entities/Enums.d.ts +0 -230
- package/lib/src/Entities/Enums.js +0 -267
- package/lib/src/Entities/Errors.d.ts +0 -23
- package/lib/src/Entities/Errors.js +0 -106
- package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
- package/lib/src/Entities/HostedPaymentData.js +0 -10
- package/lib/src/Entities/RecurringEntity.d.ts +0 -14
- package/lib/src/Entities/RecurringEntity.js +0 -86
- package/lib/src/Entities/Schedule.d.ts +0 -47
- package/lib/src/Entities/Schedule.js +0 -253
- package/lib/src/Entities/Transaction.d.ts +0 -76
- package/lib/src/Entities/Transaction.js +0 -108
- package/lib/src/Entities/TransactionSummary.d.ts +0 -61
- package/lib/src/Entities/TransactionSummary.js +0 -9
- package/lib/src/Entities/index.d.ts +0 -12
- package/lib/src/Entities/index.js +0 -24
- package/lib/src/Gateways/Gateway.d.ts +0 -10
- package/lib/src/Gateways/Gateway.js +0 -42
- package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
- package/lib/src/Gateways/IPaymentGateway.js +0 -2
- package/lib/src/Gateways/IRecurringService.d.ts +0 -6
- package/lib/src/Gateways/IRecurringService.js +0 -2
- package/lib/src/Gateways/PayPlanConnector.d.ts +0 -42
- package/lib/src/Gateways/PayPlanConnector.js +0 -552
- package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
- package/lib/src/Gateways/PorticoConnector.js +0 -1018
- package/lib/src/Gateways/RealexConnector.d.ts +0 -30
- package/lib/src/Gateways/RealexConnector.js +0 -523
- package/lib/src/Gateways/RestGateway.d.ts +0 -6
- package/lib/src/Gateways/RestGateway.js +0 -31
- package/lib/src/Gateways/XmlGateway.d.ts +0 -6
- package/lib/src/Gateways/XmlGateway.js +0 -38
- package/lib/src/Gateways/https-wrapper.d.ts +0 -3
- package/lib/src/Gateways/https-wrapper.js +0 -35
- package/lib/src/Gateways/index.d.ts +0 -7
- package/lib/src/Gateways/index.js +0 -19
- package/lib/src/HostedPaymentConfig.d.ts +0 -12
- package/lib/src/HostedPaymentConfig.js +0 -9
- package/lib/src/PaymentMethods/Cash.d.ts +0 -8
- package/lib/src/PaymentMethods/Cash.js +0 -36
- package/lib/src/PaymentMethods/Credit.d.ts +0 -85
- package/lib/src/PaymentMethods/Credit.js +0 -106
- package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -19
- package/lib/src/PaymentMethods/CreditCardData.js +0 -51
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/CreditTrackData.js +0 -27
- package/lib/src/PaymentMethods/Debit.d.ts +0 -40
- package/lib/src/PaymentMethods/Debit.js +0 -70
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/DebitTrackData.js +0 -27
- package/lib/src/PaymentMethods/EBT.d.ts +0 -48
- package/lib/src/PaymentMethods/EBT.js +0 -88
- package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
- package/lib/src/PaymentMethods/EBTCardData.js +0 -32
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
- package/lib/src/PaymentMethods/EBTTrackData.js +0 -27
- package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
- package/lib/src/PaymentMethods/ECheck.js +0 -40
- package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
- package/lib/src/PaymentMethods/GiftCard.js +0 -205
- package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
- package/lib/src/PaymentMethods/Interfaces.js +0 -2
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
- package/lib/src/PaymentMethods/PaymentMethod.js +0 -114
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -77
- package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
- package/lib/src/PaymentMethods/TransactionReference.js +0 -12
- package/lib/src/PaymentMethods/index.d.ts +0 -15
- package/lib/src/PaymentMethods/index.js +0 -27
- package/lib/src/Services/BatchService.d.ts +0 -4
- package/lib/src/Services/BatchService.js +0 -17
- package/lib/src/Services/CheckService.d.ts +0 -6
- package/lib/src/Services/CheckService.js +0 -20
- package/lib/src/Services/CreditService.d.ts +0 -12
- package/lib/src/Services/CreditService.js +0 -54
- package/lib/src/Services/DebitService.d.ts +0 -7
- package/lib/src/Services/DebitService.js +0 -28
- package/lib/src/Services/EBTService.d.ts +0 -8
- package/lib/src/Services/EBTService.js +0 -32
- package/lib/src/Services/GiftService.d.ts +0 -16
- package/lib/src/Services/GiftService.js +0 -54
- package/lib/src/Services/HostedService.d.ts +0 -9
- package/lib/src/Services/HostedService.js +0 -59
- package/lib/src/Services/RecurringService.d.ts +0 -8
- package/lib/src/Services/RecurringService.js +0 -27
- package/lib/src/Services/ReportingService.d.ts +0 -6
- package/lib/src/Services/ReportingService.js +0 -19
- package/lib/src/Services/index.d.ts +0 -9
- package/lib/src/Services/index.js +0 -21
- package/lib/src/ServicesConfig.d.ts +0 -23
- package/lib/src/ServicesConfig.js +0 -50
- package/lib/src/ServicesContainer.d.ts +0 -11
- package/lib/src/ServicesContainer.js +0 -73
- package/lib/src/Utils/GenerationUtils.d.ts +0 -5
- package/lib/src/Utils/GenerationUtils.js +0 -36
- package/lib/src/Utils/InputValidation.d.ts +0 -12
- package/lib/src/Utils/InputValidation.js +0 -72
- package/lib/src/Utils/Sha1.d.ts +0 -6
- package/lib/src/Utils/Sha1.js +0 -225
- package/lib/src/Utils/StringUtils.d.ts +0 -6
- package/lib/src/Utils/StringUtils.js +0 -53
- package/lib/src/Utils/index.d.ts +0 -2
- package/lib/src/Utils/index.js +0 -14
- package/lib/src/index.d.ts +0 -11
- package/lib/src/index.js +0 -27
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -232
- package/lib/test/Data/TestChecks.d.ts +0 -4
- package/lib/test/Data/TestChecks.js +0 -32
- package/lib/test/Data/index.d.ts +0 -2
- package/lib/test/Data/index.js +0 -14
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -112
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -483
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -83
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1720
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -83
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1757
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -682
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2218
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -708
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -151
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -171
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -192
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -377
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -196
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -47
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4373
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -758
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2399
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1656
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5650
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1985
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2369
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1703
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2053
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2469
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3116
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2031
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -322
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -98
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -263
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -98
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js +0 -313
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js +0 -154
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js +0 -135
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -161
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -139
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -202
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -29
- package/logger.txt +0 -4
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.TransactionReportBuilder = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var ReportBuilder_1 = require("./ReportBuilder");
|
|
21
|
-
var TransactionReportBuilder = /** @class */ (function (_super) {
|
|
22
|
-
__extends(TransactionReportBuilder, _super);
|
|
23
|
-
function TransactionReportBuilder() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
TransactionReportBuilder.prototype.setupValidations = function () {
|
|
27
|
-
this.validations
|
|
28
|
-
.of("reportType", __1.ReportType.TransactionDetail)
|
|
29
|
-
.check("transactionId")
|
|
30
|
-
.isNotNull()
|
|
31
|
-
.check("transactionId")
|
|
32
|
-
.isNotEmpty()
|
|
33
|
-
.check("deviceId")
|
|
34
|
-
.isNull()
|
|
35
|
-
.check("startDate")
|
|
36
|
-
.isNull()
|
|
37
|
-
.check("endDate")
|
|
38
|
-
.isNull();
|
|
39
|
-
this.validations
|
|
40
|
-
.of("reportType", __1.ReportType.Activity)
|
|
41
|
-
.check("transactionId")
|
|
42
|
-
.isNull();
|
|
43
|
-
};
|
|
44
|
-
TransactionReportBuilder.prototype.withDeviceId = function (deviceId) {
|
|
45
|
-
if (deviceId !== undefined) {
|
|
46
|
-
this.deviceId = deviceId;
|
|
47
|
-
}
|
|
48
|
-
return this;
|
|
49
|
-
};
|
|
50
|
-
TransactionReportBuilder.prototype.withEndDate = function (endDate) {
|
|
51
|
-
if (endDate !== undefined) {
|
|
52
|
-
this.endDate = endDate;
|
|
53
|
-
}
|
|
54
|
-
return this;
|
|
55
|
-
};
|
|
56
|
-
TransactionReportBuilder.prototype.withStartDate = function (startDate) {
|
|
57
|
-
if (startDate !== undefined) {
|
|
58
|
-
this.startDate = startDate;
|
|
59
|
-
}
|
|
60
|
-
return this;
|
|
61
|
-
};
|
|
62
|
-
TransactionReportBuilder.prototype.withTransactionId = function (transactionId) {
|
|
63
|
-
if (transactionId !== undefined) {
|
|
64
|
-
this.transactionId = transactionId;
|
|
65
|
-
}
|
|
66
|
-
return this;
|
|
67
|
-
};
|
|
68
|
-
TransactionReportBuilder.prototype.where = function (criteria, value) {
|
|
69
|
-
if (criteria !== undefined && value !== undefined) {
|
|
70
|
-
if (this.searchCriteria == undefined) {
|
|
71
|
-
this.searchCriteria = {};
|
|
72
|
-
}
|
|
73
|
-
this.searchCriteria[criteria] = value;
|
|
74
|
-
}
|
|
75
|
-
return this;
|
|
76
|
-
};
|
|
77
|
-
return TransactionReportBuilder;
|
|
78
|
-
}(ReportBuilder_1.ReportBuilder));
|
|
79
|
-
exports.TransactionReportBuilder = TransactionReportBuilder;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from "./BaseBuilder";
|
|
2
|
-
export * from "./AuthorizationBuilder";
|
|
3
|
-
export * from "./ManagementBuilder";
|
|
4
|
-
export * from "./RecurringBuilder";
|
|
5
|
-
export * from "./ReportBuilder";
|
|
6
|
-
export * from "./TransactionBuilder";
|
|
7
|
-
export * from "./TransactionReportBuilder";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./BaseBuilder"), exports);
|
|
14
|
-
__exportStar(require("./AuthorizationBuilder"), exports);
|
|
15
|
-
__exportStar(require("./ManagementBuilder"), exports);
|
|
16
|
-
__exportStar(require("./RecurringBuilder"), exports);
|
|
17
|
-
__exportStar(require("./ReportBuilder"), exports);
|
|
18
|
-
__exportStar(require("./TransactionBuilder"), exports);
|
|
19
|
-
__exportStar(require("./TransactionReportBuilder"), exports);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AddressType } from "../Entities";
|
|
2
|
-
export declare class Address {
|
|
3
|
-
type: AddressType;
|
|
4
|
-
streetAddress1: string;
|
|
5
|
-
streetAddress2: string;
|
|
6
|
-
streetAddress3: string;
|
|
7
|
-
city: string;
|
|
8
|
-
province: string;
|
|
9
|
-
postalCode: string;
|
|
10
|
-
country: string;
|
|
11
|
-
get state(): string;
|
|
12
|
-
set state(value: string);
|
|
13
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Address = void 0;
|
|
4
|
-
var Address = /** @class */ (function () {
|
|
5
|
-
function Address() {
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(Address.prototype, "state", {
|
|
8
|
-
get: function () {
|
|
9
|
-
return this.province;
|
|
10
|
-
},
|
|
11
|
-
set: function (value) {
|
|
12
|
-
this.province = value;
|
|
13
|
-
},
|
|
14
|
-
enumerable: false,
|
|
15
|
-
configurable: true
|
|
16
|
-
});
|
|
17
|
-
return Address;
|
|
18
|
-
}());
|
|
19
|
-
exports.Address = Address;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Address, IPaymentMethod, RecurringPaymentMethod } from "../";
|
|
2
|
-
import { RecurringEntity } from "./RecurringEntity";
|
|
3
|
-
export declare class Customer extends RecurringEntity<Customer> {
|
|
4
|
-
/**
|
|
5
|
-
* Customer's title
|
|
6
|
-
*/
|
|
7
|
-
title: string;
|
|
8
|
-
/**
|
|
9
|
-
* Customer's first name
|
|
10
|
-
*/
|
|
11
|
-
firstName: string;
|
|
12
|
-
/**
|
|
13
|
-
* Customer's last name
|
|
14
|
-
*/
|
|
15
|
-
lastName: string;
|
|
16
|
-
/**
|
|
17
|
-
* Customer's company
|
|
18
|
-
*/
|
|
19
|
-
company: string;
|
|
20
|
-
/**
|
|
21
|
-
* Customer's address
|
|
22
|
-
*/
|
|
23
|
-
address: Address;
|
|
24
|
-
/**
|
|
25
|
-
* Customer's home phone number
|
|
26
|
-
*/
|
|
27
|
-
homePhone: string;
|
|
28
|
-
/**
|
|
29
|
-
* Customer's work phone number
|
|
30
|
-
*/
|
|
31
|
-
workPhone: string;
|
|
32
|
-
/**
|
|
33
|
-
* Customer's fax phone number
|
|
34
|
-
*/
|
|
35
|
-
fax: string;
|
|
36
|
-
/**
|
|
37
|
-
* Customer's mobile phone number
|
|
38
|
-
*/
|
|
39
|
-
mobilePhone: string;
|
|
40
|
-
/**
|
|
41
|
-
* Customer's email address
|
|
42
|
-
*/
|
|
43
|
-
email: string;
|
|
44
|
-
/**
|
|
45
|
-
* Customer comments
|
|
46
|
-
*/
|
|
47
|
-
comments: string;
|
|
48
|
-
/**
|
|
49
|
-
* Customer's department within its organization
|
|
50
|
-
*/
|
|
51
|
-
department: string;
|
|
52
|
-
/**
|
|
53
|
-
* Customer resource's status
|
|
54
|
-
*/
|
|
55
|
-
status: string;
|
|
56
|
-
/**
|
|
57
|
-
* Adds a payment method to the customer
|
|
58
|
-
*
|
|
59
|
-
* @param paymentId An application derived ID for the payment method
|
|
60
|
-
* @param paymentMethod The payment method
|
|
61
|
-
* @returns RecurringPaymentMethod
|
|
62
|
-
*/
|
|
63
|
-
addPaymentMethod(paymentId: string, paymentMethod: IPaymentMethod): RecurringPaymentMethod;
|
|
64
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Customer = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var RecurringEntity_1 = require("./RecurringEntity");
|
|
21
|
-
var Customer = /** @class */ (function (_super) {
|
|
22
|
-
__extends(Customer, _super);
|
|
23
|
-
function Customer() {
|
|
24
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Adds a payment method to the customer
|
|
28
|
-
*
|
|
29
|
-
* @param paymentId An application derived ID for the payment method
|
|
30
|
-
* @param paymentMethod The payment method
|
|
31
|
-
* @returns RecurringPaymentMethod
|
|
32
|
-
*/
|
|
33
|
-
Customer.prototype.addPaymentMethod = function (paymentId, paymentMethod) {
|
|
34
|
-
var nameOnAccount = this.firstName + " " + this.lastName;
|
|
35
|
-
if (!this.firstName && !this.lastName) {
|
|
36
|
-
nameOnAccount = this.company;
|
|
37
|
-
}
|
|
38
|
-
var result = new __1.RecurringPaymentMethod(paymentMethod);
|
|
39
|
-
result.address = this.address;
|
|
40
|
-
result.customerKey = this.key;
|
|
41
|
-
result.id = paymentId;
|
|
42
|
-
result.nameOnAccount = nameOnAccount;
|
|
43
|
-
return result;
|
|
44
|
-
};
|
|
45
|
-
return Customer;
|
|
46
|
-
}(RecurringEntity_1.RecurringEntity));
|
|
47
|
-
exports.Customer = Customer;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { EcommerceChannel } from "../Entities";
|
|
2
|
-
export declare class EcommerceInfo {
|
|
3
|
-
cavv: string;
|
|
4
|
-
channel: EcommerceChannel;
|
|
5
|
-
eci: string;
|
|
6
|
-
paymentDataSource: string;
|
|
7
|
-
paymentDataType: string;
|
|
8
|
-
shipDay: string;
|
|
9
|
-
shipMonth: string;
|
|
10
|
-
xid: string;
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EcommerceInfo = void 0;
|
|
4
|
-
var Entities_1 = require("../Entities");
|
|
5
|
-
var EcommerceInfo = /** @class */ (function () {
|
|
6
|
-
function EcommerceInfo() {
|
|
7
|
-
this.channel = Entities_1.EcommerceChannel.Ecom;
|
|
8
|
-
this.shipDay = new Date().getUTCDate().toString();
|
|
9
|
-
this.shipMonth = (new Date().getUTCMonth() + 1).toString();
|
|
10
|
-
this.paymentDataType = "3DSecure";
|
|
11
|
-
}
|
|
12
|
-
return EcommerceInfo;
|
|
13
|
-
}());
|
|
14
|
-
exports.EcommerceInfo = EcommerceInfo;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EncryptionData = void 0;
|
|
4
|
-
var EncryptionData = /** @class */ (function () {
|
|
5
|
-
function EncryptionData() {
|
|
6
|
-
}
|
|
7
|
-
return EncryptionData;
|
|
8
|
-
}());
|
|
9
|
-
exports.EncryptionData = EncryptionData;
|
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
export declare enum AccountType {
|
|
2
|
-
Checking = "CHECKING",
|
|
3
|
-
Savings = "SAVINGS"
|
|
4
|
-
}
|
|
5
|
-
export declare enum AddressType {
|
|
6
|
-
Billing = 0,
|
|
7
|
-
Shipping = 1
|
|
8
|
-
}
|
|
9
|
-
export declare enum AliasAction {
|
|
10
|
-
Create = "CREATE",
|
|
11
|
-
Add = "ADD",
|
|
12
|
-
Delete = "DELETE"
|
|
13
|
-
}
|
|
14
|
-
export declare enum CheckType {
|
|
15
|
-
Personal = "PERSONAL",
|
|
16
|
-
Business = "BUSINESS",
|
|
17
|
-
Payroll = "PAYROLL"
|
|
18
|
-
}
|
|
19
|
-
export declare enum CurrencyType {
|
|
20
|
-
CURRENCY = 0,
|
|
21
|
-
POINTS = 1
|
|
22
|
-
}
|
|
23
|
-
export declare enum CvnPresenceIndicator {
|
|
24
|
-
Present = 1,
|
|
25
|
-
Illegible = 2,
|
|
26
|
-
NotOnCard = 3,
|
|
27
|
-
NotRequested = 4
|
|
28
|
-
}
|
|
29
|
-
export declare enum EcommerceChannel {
|
|
30
|
-
Ecom = "ECOM",
|
|
31
|
-
Moto = "MOTO"
|
|
32
|
-
}
|
|
33
|
-
export declare enum EmailReceipt {
|
|
34
|
-
Never = "Never",
|
|
35
|
-
All = "All",
|
|
36
|
-
Approvals = "Approvals",
|
|
37
|
-
Declines = "Declines"
|
|
38
|
-
}
|
|
39
|
-
export declare enum EntryMethod {
|
|
40
|
-
Swipe = "SWIPE",
|
|
41
|
-
Proximity = "PROXIMITY",
|
|
42
|
-
Manual = "MANUAL"
|
|
43
|
-
}
|
|
44
|
-
export declare enum ExceptionCodes {
|
|
45
|
-
AuthenticationError = 0,
|
|
46
|
-
InvalidConfiguration = 1,
|
|
47
|
-
InvalidAmount = 2,
|
|
48
|
-
MissingCurrency = 3,
|
|
49
|
-
InvalidCurrency = 4,
|
|
50
|
-
InvalidDate = 5,
|
|
51
|
-
MissingCheckName = 6,
|
|
52
|
-
InvalidPhoneNumber = 7,
|
|
53
|
-
InvalidZipCode = 8,
|
|
54
|
-
InvalidEmailAddress = 9,
|
|
55
|
-
InvalidInputLength = 10,
|
|
56
|
-
UnknownGatewayError = 11,
|
|
57
|
-
InvalidOriginalTransaction = 12,
|
|
58
|
-
NoOpenBatch = 13,
|
|
59
|
-
InvalidCpcData = 14,
|
|
60
|
-
InvalidCardData = 15,
|
|
61
|
-
InvalidNumber = 16,
|
|
62
|
-
GatewayTimeout = 17,
|
|
63
|
-
UnexpectedGatewayResponse = 18,
|
|
64
|
-
GatewayTimeoutReversalError = 19,
|
|
65
|
-
GatewayError = 20,
|
|
66
|
-
UnexpectedGatewayError = 21,
|
|
67
|
-
IncorrectNumber = 22,
|
|
68
|
-
ExpiredCard = 23,
|
|
69
|
-
InvalidPin = 24,
|
|
70
|
-
PinEntriesExceeded = 25,
|
|
71
|
-
InvalidExpiry = 26,
|
|
72
|
-
PinVerification = 27,
|
|
73
|
-
IssuerTimeout = 28,
|
|
74
|
-
IncorrectCvc = 29,
|
|
75
|
-
CardDeclined = 30,
|
|
76
|
-
ProcessingError = 31,
|
|
77
|
-
IssuerTimeoutReversalError = 32,
|
|
78
|
-
UnknownCreditError = 33,
|
|
79
|
-
PossibleFraudDetected = 34,
|
|
80
|
-
UnknownGiftError = 35,
|
|
81
|
-
PartialApproval = 36
|
|
82
|
-
}
|
|
83
|
-
export declare enum FraudFilterMode {
|
|
84
|
-
None = "NONE",
|
|
85
|
-
Off = "OFF",
|
|
86
|
-
Active = "ACTIVE",
|
|
87
|
-
Passive = "PASSIVE"
|
|
88
|
-
}
|
|
89
|
-
export declare enum GiftEntryMethod {
|
|
90
|
-
Swipe = 0,
|
|
91
|
-
Alias = 1,
|
|
92
|
-
Manual = 2
|
|
93
|
-
}
|
|
94
|
-
export declare enum HppVersion {
|
|
95
|
-
Version1 = "1",
|
|
96
|
-
Version2 = "2"
|
|
97
|
-
}
|
|
98
|
-
export declare enum InquiryType {
|
|
99
|
-
Standard = "STANDARD",
|
|
100
|
-
Foodstamp = "FOODSTAMP",
|
|
101
|
-
Cash = "CASH",
|
|
102
|
-
Points = "POINTS"
|
|
103
|
-
}
|
|
104
|
-
export declare enum PaymentMethodType {
|
|
105
|
-
Reference = 1,
|
|
106
|
-
Credit = 2,
|
|
107
|
-
Debit = 4,
|
|
108
|
-
EBT = 8,
|
|
109
|
-
Cash = 16,
|
|
110
|
-
ACH = 32,
|
|
111
|
-
Gift = 64,
|
|
112
|
-
Recurring = 128
|
|
113
|
-
}
|
|
114
|
-
export declare enum PaymentSchedule {
|
|
115
|
-
Dynamic = 0,
|
|
116
|
-
FirstDayOfTheMonth = 1,
|
|
117
|
-
LastDayOfTheMonth = 2
|
|
118
|
-
}
|
|
119
|
-
export declare enum ReasonCode {
|
|
120
|
-
Fraud = "FRAUD",
|
|
121
|
-
FalsePositive = "FALSEPOSITIVE",
|
|
122
|
-
OutOfStock = "OUTOFSTOCK",
|
|
123
|
-
InStock = "INSTOCK",
|
|
124
|
-
Other = "OTHER",
|
|
125
|
-
NotGiven = "NOTGIVEN"
|
|
126
|
-
}
|
|
127
|
-
export declare enum RecurringSequence {
|
|
128
|
-
First = 0,
|
|
129
|
-
Subsequent = 1,
|
|
130
|
-
Last = 2
|
|
131
|
-
}
|
|
132
|
-
export declare enum RecurringType {
|
|
133
|
-
Fixed = 0,
|
|
134
|
-
Variable = 1
|
|
135
|
-
}
|
|
136
|
-
export declare enum ReportType {
|
|
137
|
-
FindTransactions = 1,
|
|
138
|
-
Activity = 2,
|
|
139
|
-
BatchDetail = 4,
|
|
140
|
-
BatchHistory = 8,
|
|
141
|
-
BatchSummary = 16,
|
|
142
|
-
OpenAuths = 32,
|
|
143
|
-
Search = 64,
|
|
144
|
-
TransactionDetail = 128
|
|
145
|
-
}
|
|
146
|
-
export declare enum ScheduleFrequency {
|
|
147
|
-
Weekly = "Weekly",
|
|
148
|
-
BiWeekly = "Bi-Weekly",
|
|
149
|
-
BiMonthly = "Bi-Monthly",
|
|
150
|
-
SemiMonthly = "Semi-Monthly",
|
|
151
|
-
Monthly = "Monthly",
|
|
152
|
-
Quarterly = "Quarterly",
|
|
153
|
-
SemiAnnually = "Semi-Annually",
|
|
154
|
-
Annually = "Annually"
|
|
155
|
-
}
|
|
156
|
-
export declare enum SecCode {
|
|
157
|
-
PPD = "PPD",
|
|
158
|
-
CCD = "CCD",
|
|
159
|
-
POP = "POP",
|
|
160
|
-
WEB = "WEB",
|
|
161
|
-
TEL = "TEL",
|
|
162
|
-
EBronze = "EBronze"
|
|
163
|
-
}
|
|
164
|
-
export declare enum StoredCredentialInitiator {
|
|
165
|
-
CardHolder = "C",
|
|
166
|
-
Merchant = "M"
|
|
167
|
-
}
|
|
168
|
-
export declare enum TaxType {
|
|
169
|
-
NotUsed = 0,
|
|
170
|
-
SalesTax = 1,
|
|
171
|
-
TaxExempt = 2
|
|
172
|
-
}
|
|
173
|
-
export declare enum TimeZoneConversion {
|
|
174
|
-
UTC = 0,
|
|
175
|
-
Merchant = 1,
|
|
176
|
-
Datacenter = 2
|
|
177
|
-
}
|
|
178
|
-
export declare enum TransactionModifier {
|
|
179
|
-
None = 1,
|
|
180
|
-
Incremental = 2,
|
|
181
|
-
Additional = 4,
|
|
182
|
-
Offline = 8,
|
|
183
|
-
LevelII = 16,
|
|
184
|
-
FraudDecline = 32,
|
|
185
|
-
ChipDecline = 64,
|
|
186
|
-
CashBack = 128,
|
|
187
|
-
Voucher = 256,
|
|
188
|
-
Secure3D = 512,
|
|
189
|
-
HostedRequest = 1024,
|
|
190
|
-
Recurring = 2048,
|
|
191
|
-
EncryptedMobile = 4096
|
|
192
|
-
}
|
|
193
|
-
export declare enum TransactionType {
|
|
194
|
-
Decline = 1,
|
|
195
|
-
Verify = 2,
|
|
196
|
-
Capture = 4,
|
|
197
|
-
Auth = 8,
|
|
198
|
-
Refund = 16,
|
|
199
|
-
Reversal = 32,
|
|
200
|
-
Sale = 64,
|
|
201
|
-
Edit = 128,
|
|
202
|
-
Void = 256,
|
|
203
|
-
AddValue = 512,
|
|
204
|
-
Balance = 1024,
|
|
205
|
-
Activate = 2048,
|
|
206
|
-
Alias = 4096,
|
|
207
|
-
Replace = 8192,
|
|
208
|
-
Reward = 16384,
|
|
209
|
-
Deactivate = 32768,
|
|
210
|
-
BatchClose = 65536,
|
|
211
|
-
Create = 131072,
|
|
212
|
-
Delete = 262144,
|
|
213
|
-
BenefitWithDrawal = 524288,
|
|
214
|
-
Fetch = 1048576,
|
|
215
|
-
Search = 2097152,
|
|
216
|
-
Hold = 4194304,
|
|
217
|
-
Release = 8388608
|
|
218
|
-
}
|
|
219
|
-
export declare enum MobilePaymentMethodType {
|
|
220
|
-
APPLEPAY = "apple-pay",
|
|
221
|
-
GOOGLEPAY = "pay-with-google"
|
|
222
|
-
}
|
|
223
|
-
export declare enum PaymentDataSourceType {
|
|
224
|
-
APPLEPAY = "ApplePay",
|
|
225
|
-
APPLEPAYAPP = "ApplePayApp",
|
|
226
|
-
APPLEPAYWEB = "ApplePayWeb",
|
|
227
|
-
GOOGLEPAYAPP = "GooglePayApp",
|
|
228
|
-
GOOGLEPAYWEB = "GooglePayWeb",
|
|
229
|
-
DISCOVER3DSECURE = "Discover 3DSecure"
|
|
230
|
-
}
|