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,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.request = void 0;
|
|
4
|
-
var https = require("https");
|
|
5
|
-
var Errors_1 = require("../Entities/Errors");
|
|
6
|
-
var request = function (data, options) {
|
|
7
|
-
return new Promise(function (resolve, reject) {
|
|
8
|
-
if (options === undefined) {
|
|
9
|
-
options = {};
|
|
10
|
-
}
|
|
11
|
-
var req = https.request(options, function (res) {
|
|
12
|
-
var responseData = "";
|
|
13
|
-
res.on("data", function (d) { return (responseData += d); });
|
|
14
|
-
res.on("end", function () {
|
|
15
|
-
if (res.statusCode !== 200) {
|
|
16
|
-
reject(new Errors_1.GatewayError("Unexpected HTTP status code [" + res.statusCode + "]"));
|
|
17
|
-
}
|
|
18
|
-
resolve(responseData);
|
|
19
|
-
});
|
|
20
|
-
res.on("error", reject);
|
|
21
|
-
});
|
|
22
|
-
req.on("socket", function (socket) {
|
|
23
|
-
socket.on("timeout", function () {
|
|
24
|
-
req.abort();
|
|
25
|
-
reject(new Errors_1.ApiError("Socket timeout occurred."));
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
req.on("error", reject);
|
|
29
|
-
if (data !== undefined) {
|
|
30
|
-
req.write(data);
|
|
31
|
-
}
|
|
32
|
-
req.end();
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
exports.request = request;
|
|
@@ -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("./Gateway"), exports);
|
|
14
|
-
__exportStar(require("./IPaymentGateway"), exports);
|
|
15
|
-
__exportStar(require("./IRecurringService"), exports);
|
|
16
|
-
__exportStar(require("./PayPlanConnector"), exports);
|
|
17
|
-
__exportStar(require("./PorticoConnector"), exports);
|
|
18
|
-
__exportStar(require("./RealexConnector"), exports);
|
|
19
|
-
__exportStar(require("./XmlGateway"), exports);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FraudFilterMode, HppVersion } from "./";
|
|
2
|
-
export declare class HostedPaymentConfig {
|
|
3
|
-
cardStorageEnabled: boolean;
|
|
4
|
-
directCurrencyConversionEnabled: boolean;
|
|
5
|
-
displaySavedCards: boolean;
|
|
6
|
-
fraudFilterMode: FraudFilterMode;
|
|
7
|
-
language: string;
|
|
8
|
-
paymentButtonText: string;
|
|
9
|
-
responseUrl: string;
|
|
10
|
-
requestTransactionStabilityScore: string;
|
|
11
|
-
version: HppVersion;
|
|
12
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HostedPaymentConfig = void 0;
|
|
4
|
-
var HostedPaymentConfig = /** @class */ (function () {
|
|
5
|
-
function HostedPaymentConfig() {
|
|
6
|
-
}
|
|
7
|
-
return HostedPaymentConfig;
|
|
8
|
-
}());
|
|
9
|
-
exports.HostedPaymentConfig = HostedPaymentConfig;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, PaymentMethodType } from "../";
|
|
2
|
-
import { IChargable, IRefundable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare class Cash extends PaymentMethod implements IChargable, IRefundable {
|
|
5
|
-
paymentMethodType: PaymentMethodType;
|
|
6
|
-
charge(_amount?: string | number): AuthorizationBuilder;
|
|
7
|
-
refund(_amount?: string | number): AuthorizationBuilder;
|
|
8
|
-
}
|
|
@@ -1,36 +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.Cash = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
21
|
-
var Cash = /** @class */ (function (_super) {
|
|
22
|
-
__extends(Cash, _super);
|
|
23
|
-
function Cash() {
|
|
24
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
_this.paymentMethodType = __1.PaymentMethodType.Cash;
|
|
26
|
-
return _this;
|
|
27
|
-
}
|
|
28
|
-
Cash.prototype.charge = function (_amount) {
|
|
29
|
-
throw new __1.NotImplementedError();
|
|
30
|
-
};
|
|
31
|
-
Cash.prototype.refund = function (_amount) {
|
|
32
|
-
throw new __1.NotImplementedError();
|
|
33
|
-
};
|
|
34
|
-
return Cash;
|
|
35
|
-
}(PaymentMethod_1.PaymentMethod));
|
|
36
|
-
exports.Cash = Cash;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, EncryptionData, InquiryType, PaymentMethodType } from "../";
|
|
2
|
-
import { IAuthable, IBalanceable, IChargable, IEncryptable, IPrePayable, IRefundable, IReversable, ITokenizable, IVerifyable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare abstract class Credit extends PaymentMethod implements IEncryptable, ITokenizable, IChargable, IAuthable, IRefundable, IReversable, IVerifyable, IPrePayable, IBalanceable {
|
|
5
|
-
encryptionData: EncryptionData;
|
|
6
|
-
paymentMethodType: PaymentMethodType;
|
|
7
|
-
/**
|
|
8
|
-
* The token value representing the card.
|
|
9
|
-
*
|
|
10
|
-
* For `TransactionModifier.EncryptedMobile` transactions, this value is the
|
|
11
|
-
* encrypted payload from the mobile payment scheme.
|
|
12
|
-
*/
|
|
13
|
-
token: string;
|
|
14
|
-
/**
|
|
15
|
-
* The type of mobile device used in `Transaction.Modifier.EncryptedMobile`
|
|
16
|
-
* transactions.
|
|
17
|
-
*/
|
|
18
|
-
mobileType: string;
|
|
19
|
-
/**
|
|
20
|
-
* Payment Source is the API or source of the cryptogram for WalletData.
|
|
21
|
-
*/
|
|
22
|
-
paymentSource: string;
|
|
23
|
-
cryptogram: string;
|
|
24
|
-
eci: string;
|
|
25
|
-
/**
|
|
26
|
-
* Authorizes the payment method
|
|
27
|
-
*
|
|
28
|
-
* @param string|number amount Amount to authorize
|
|
29
|
-
*
|
|
30
|
-
* @return AuthorizationBuilder
|
|
31
|
-
*/
|
|
32
|
-
authorize(amount?: string | number): AuthorizationBuilder;
|
|
33
|
-
/**
|
|
34
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
35
|
-
*
|
|
36
|
-
* @param string|number amount Amount to authorize
|
|
37
|
-
*
|
|
38
|
-
* @return AuthorizationBuilder
|
|
39
|
-
*/
|
|
40
|
-
charge(amount?: string | number): AuthorizationBuilder;
|
|
41
|
-
/**
|
|
42
|
-
* Adds value to the payment method
|
|
43
|
-
*
|
|
44
|
-
* @param string|number amount Amount to add
|
|
45
|
-
*
|
|
46
|
-
* @return AuthorizationBuilder
|
|
47
|
-
*/
|
|
48
|
-
addValue(amount?: string | number): AuthorizationBuilder;
|
|
49
|
-
/**
|
|
50
|
-
* Inquires the balance of the payment method
|
|
51
|
-
*
|
|
52
|
-
* @param InquiryType inquiry Type of inquiry
|
|
53
|
-
*
|
|
54
|
-
* @return AuthorizationBuilder
|
|
55
|
-
*/
|
|
56
|
-
balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
|
|
57
|
-
/**
|
|
58
|
-
* Refunds the payment method
|
|
59
|
-
*
|
|
60
|
-
* @param string|number amount Amount to refund
|
|
61
|
-
*
|
|
62
|
-
* @return AuthorizationBuilder
|
|
63
|
-
*/
|
|
64
|
-
refund(amount?: string | number): AuthorizationBuilder;
|
|
65
|
-
/**
|
|
66
|
-
* Reverses the payment method
|
|
67
|
-
*
|
|
68
|
-
* @param string|number amount Amount to reverse
|
|
69
|
-
*
|
|
70
|
-
* @return AuthorizationBuilder
|
|
71
|
-
*/
|
|
72
|
-
reverse(amount?: string | number): AuthorizationBuilder;
|
|
73
|
-
/**
|
|
74
|
-
* Verifies the payment method
|
|
75
|
-
*
|
|
76
|
-
* @return AuthorizationBuilder
|
|
77
|
-
*/
|
|
78
|
-
verify(): AuthorizationBuilder;
|
|
79
|
-
/**
|
|
80
|
-
* Tokenizes the payment method
|
|
81
|
-
*
|
|
82
|
-
* @return AuthorizationBuilder
|
|
83
|
-
*/
|
|
84
|
-
tokenize(): AuthorizationBuilder;
|
|
85
|
-
}
|
|
@@ -1,106 +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.Credit = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
21
|
-
var Credit = /** @class */ (function (_super) {
|
|
22
|
-
__extends(Credit, _super);
|
|
23
|
-
function Credit() {
|
|
24
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
_this.paymentMethodType = __1.PaymentMethodType.Credit;
|
|
26
|
-
return _this;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Authorizes the payment method
|
|
30
|
-
*
|
|
31
|
-
* @param string|number amount Amount to authorize
|
|
32
|
-
*
|
|
33
|
-
* @return AuthorizationBuilder
|
|
34
|
-
*/
|
|
35
|
-
Credit.prototype.authorize = function (amount) {
|
|
36
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Auth, this).withAmount(amount);
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
40
|
-
*
|
|
41
|
-
* @param string|number amount Amount to authorize
|
|
42
|
-
*
|
|
43
|
-
* @return AuthorizationBuilder
|
|
44
|
-
*/
|
|
45
|
-
Credit.prototype.charge = function (amount) {
|
|
46
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Adds value to the payment method
|
|
50
|
-
*
|
|
51
|
-
* @param string|number amount Amount to add
|
|
52
|
-
*
|
|
53
|
-
* @return AuthorizationBuilder
|
|
54
|
-
*/
|
|
55
|
-
Credit.prototype.addValue = function (amount) {
|
|
56
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Inquires the balance of the payment method
|
|
60
|
-
*
|
|
61
|
-
* @param InquiryType inquiry Type of inquiry
|
|
62
|
-
*
|
|
63
|
-
* @return AuthorizationBuilder
|
|
64
|
-
*/
|
|
65
|
-
Credit.prototype.balanceInquiry = function (inquiry) {
|
|
66
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Balance, this).withBalanceInquiryType(inquiry);
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Refunds the payment method
|
|
70
|
-
*
|
|
71
|
-
* @param string|number amount Amount to refund
|
|
72
|
-
*
|
|
73
|
-
* @return AuthorizationBuilder
|
|
74
|
-
*/
|
|
75
|
-
Credit.prototype.refund = function (amount) {
|
|
76
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
|
|
77
|
-
};
|
|
78
|
-
/**
|
|
79
|
-
* Reverses the payment method
|
|
80
|
-
*
|
|
81
|
-
* @param string|number amount Amount to reverse
|
|
82
|
-
*
|
|
83
|
-
* @return AuthorizationBuilder
|
|
84
|
-
*/
|
|
85
|
-
Credit.prototype.reverse = function (amount) {
|
|
86
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Verifies the payment method
|
|
90
|
-
*
|
|
91
|
-
* @return AuthorizationBuilder
|
|
92
|
-
*/
|
|
93
|
-
Credit.prototype.verify = function () {
|
|
94
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Verify, this);
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Tokenizes the payment method
|
|
98
|
-
*
|
|
99
|
-
* @return AuthorizationBuilder
|
|
100
|
-
*/
|
|
101
|
-
Credit.prototype.tokenize = function () {
|
|
102
|
-
return this.verify().withRequestMultiUseToken(true);
|
|
103
|
-
};
|
|
104
|
-
return Credit;
|
|
105
|
-
}(PaymentMethod_1.PaymentMethod));
|
|
106
|
-
exports.Credit = Credit;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CvnPresenceIndicator } from "../";
|
|
2
|
-
import { Credit } from "./Credit";
|
|
3
|
-
import { ICardData } from "./Interfaces";
|
|
4
|
-
export declare class CreditCardData extends Credit implements ICardData {
|
|
5
|
-
static cardTypes: {
|
|
6
|
-
name: string;
|
|
7
|
-
regex: RegExp;
|
|
8
|
-
}[];
|
|
9
|
-
number: string;
|
|
10
|
-
expMonth: string;
|
|
11
|
-
expYear: string;
|
|
12
|
-
cvn: string;
|
|
13
|
-
cvnPresenceIndicator: CvnPresenceIndicator;
|
|
14
|
-
cardHolderName: string;
|
|
15
|
-
cardPresent: boolean;
|
|
16
|
-
readerPresent: boolean;
|
|
17
|
-
constructor();
|
|
18
|
-
getCardType(): string;
|
|
19
|
-
}
|
|
@@ -1,51 +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.CreditCardData = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var Credit_1 = require("./Credit");
|
|
21
|
-
var CreditCardData = /** @class */ (function (_super) {
|
|
22
|
-
__extends(CreditCardData, _super);
|
|
23
|
-
function CreditCardData() {
|
|
24
|
-
var _this = _super.call(this) || this;
|
|
25
|
-
_this.cardPresent = false;
|
|
26
|
-
_this.readerPresent = false;
|
|
27
|
-
_this.cvnPresenceIndicator = __1.CvnPresenceIndicator.NotRequested;
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
CreditCardData.prototype.getCardType = function () {
|
|
31
|
-
var number = this.number.replace(" ", "").replace("-", "");
|
|
32
|
-
for (var _i = 0, _a = CreditCardData.cardTypes; _i < _a.length; _i++) {
|
|
33
|
-
var type = _a[_i];
|
|
34
|
-
if (type.regex.test(number)) {
|
|
35
|
-
return type.name;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return "Unknown";
|
|
39
|
-
};
|
|
40
|
-
CreditCardData.cardTypes = [
|
|
41
|
-
{ name: "Visa", regex: /^4/ },
|
|
42
|
-
{ name: "MC", regex: /^(5[1-5]|2[2-7])/ },
|
|
43
|
-
{ name: "Amex", regex: /^3[47]/ },
|
|
44
|
-
{ name: "Diners", regex: /^3[0689]/ },
|
|
45
|
-
{ name: "EnRoute", regex: /^2(014|149)/ },
|
|
46
|
-
{ name: "Discover", regex: /^6([045]|22)/ },
|
|
47
|
-
{ name: "Jcb", regex: /^35/ },
|
|
48
|
-
];
|
|
49
|
-
return CreditCardData;
|
|
50
|
-
}(Credit_1.Credit));
|
|
51
|
-
exports.CreditCardData = CreditCardData;
|
|
@@ -1,27 +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.CreditTrackData = void 0;
|
|
19
|
-
var Credit_1 = require("./Credit");
|
|
20
|
-
var CreditTrackData = /** @class */ (function (_super) {
|
|
21
|
-
__extends(CreditTrackData, _super);
|
|
22
|
-
function CreditTrackData() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return CreditTrackData;
|
|
26
|
-
}(Credit_1.Credit));
|
|
27
|
-
exports.CreditTrackData = CreditTrackData;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, EncryptionData, PaymentMethodType } from "../";
|
|
2
|
-
import { IChargable, IEncryptable, IPinProtected, IPrePayable, IRefundable, IReversable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare abstract class Debit extends PaymentMethod implements IChargable, IEncryptable, IRefundable, IReversable, IPrePayable, IPinProtected {
|
|
5
|
-
encryptionData: EncryptionData;
|
|
6
|
-
paymentMethodType: PaymentMethodType;
|
|
7
|
-
pinBlock: string;
|
|
8
|
-
/**
|
|
9
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
10
|
-
*
|
|
11
|
-
* @param string|number amount Amount to authorize
|
|
12
|
-
*
|
|
13
|
-
* @return AuthorizationBuilder
|
|
14
|
-
*/
|
|
15
|
-
charge(amount?: string | number): AuthorizationBuilder;
|
|
16
|
-
/**
|
|
17
|
-
* Adds value to the payment method
|
|
18
|
-
*
|
|
19
|
-
* @param string|number amount Amount to add
|
|
20
|
-
*
|
|
21
|
-
* @return AuthorizationBuilder
|
|
22
|
-
*/
|
|
23
|
-
addValue(amount?: string | number): AuthorizationBuilder;
|
|
24
|
-
/**
|
|
25
|
-
* Refunds the payment method
|
|
26
|
-
*
|
|
27
|
-
* @param string|number amount Amount to refund
|
|
28
|
-
*
|
|
29
|
-
* @return AuthorizationBuilder
|
|
30
|
-
*/
|
|
31
|
-
refund(amount?: string | number): AuthorizationBuilder;
|
|
32
|
-
/**
|
|
33
|
-
* Reverses the payment method
|
|
34
|
-
*
|
|
35
|
-
* @param string|number amount Amount to reverse
|
|
36
|
-
*
|
|
37
|
-
* @return AuthorizationBuilder
|
|
38
|
-
*/
|
|
39
|
-
reverse(amount?: string | number): AuthorizationBuilder;
|
|
40
|
-
}
|
|
@@ -1,70 +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.Debit = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
21
|
-
var Debit = /** @class */ (function (_super) {
|
|
22
|
-
__extends(Debit, _super);
|
|
23
|
-
function Debit() {
|
|
24
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
_this.paymentMethodType = __1.PaymentMethodType.Debit;
|
|
26
|
-
return _this;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
30
|
-
*
|
|
31
|
-
* @param string|number amount Amount to authorize
|
|
32
|
-
*
|
|
33
|
-
* @return AuthorizationBuilder
|
|
34
|
-
*/
|
|
35
|
-
Debit.prototype.charge = function (amount) {
|
|
36
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Adds value to the payment method
|
|
40
|
-
*
|
|
41
|
-
* @param string|number amount Amount to add
|
|
42
|
-
*
|
|
43
|
-
* @return AuthorizationBuilder
|
|
44
|
-
*/
|
|
45
|
-
Debit.prototype.addValue = function (amount) {
|
|
46
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Refunds the payment method
|
|
50
|
-
*
|
|
51
|
-
* @param string|number amount Amount to refund
|
|
52
|
-
*
|
|
53
|
-
* @return AuthorizationBuilder
|
|
54
|
-
*/
|
|
55
|
-
Debit.prototype.refund = function (amount) {
|
|
56
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Reverses the payment method
|
|
60
|
-
*
|
|
61
|
-
* @param string|number amount Amount to reverse
|
|
62
|
-
*
|
|
63
|
-
* @return AuthorizationBuilder
|
|
64
|
-
*/
|
|
65
|
-
Debit.prototype.reverse = function (amount) {
|
|
66
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
|
|
67
|
-
};
|
|
68
|
-
return Debit;
|
|
69
|
-
}(PaymentMethod_1.PaymentMethod));
|
|
70
|
-
exports.Debit = Debit;
|
|
@@ -1,27 +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.DebitTrackData = void 0;
|
|
19
|
-
var Debit_1 = require("./Debit");
|
|
20
|
-
var DebitTrackData = /** @class */ (function (_super) {
|
|
21
|
-
__extends(DebitTrackData, _super);
|
|
22
|
-
function DebitTrackData() {
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
return DebitTrackData;
|
|
26
|
-
}(Debit_1.Debit));
|
|
27
|
-
exports.DebitTrackData = DebitTrackData;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, InquiryType, PaymentMethodType } from "../";
|
|
2
|
-
import { IBalanceable, IChargable, IPinProtected, IPrePayable, IRefundable, IReversable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare abstract class EBT extends PaymentMethod implements IBalanceable, IChargable, IRefundable, IReversable, IPrePayable, IPinProtected {
|
|
5
|
-
paymentMethodType: PaymentMethodType;
|
|
6
|
-
pinBlock: string;
|
|
7
|
-
/**
|
|
8
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
9
|
-
*
|
|
10
|
-
* @param string|number amount Amount to authorize
|
|
11
|
-
*
|
|
12
|
-
* @return AuthorizationBuilder
|
|
13
|
-
*/
|
|
14
|
-
charge(amount?: string | number): AuthorizationBuilder;
|
|
15
|
-
/**
|
|
16
|
-
* Adds value to the payment method
|
|
17
|
-
*
|
|
18
|
-
* @param string|number amount Amount to add
|
|
19
|
-
*
|
|
20
|
-
* @return AuthorizationBuilder
|
|
21
|
-
*/
|
|
22
|
-
addValue(amount?: string | number): AuthorizationBuilder;
|
|
23
|
-
/**
|
|
24
|
-
* Inquires the balance of the payment method
|
|
25
|
-
*
|
|
26
|
-
* @param InquiryType inquiry Type of inquiry
|
|
27
|
-
*
|
|
28
|
-
* @return AuthorizationBuilder
|
|
29
|
-
*/
|
|
30
|
-
balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
|
|
31
|
-
benefitWithdrawal(amount?: number | string): AuthorizationBuilder;
|
|
32
|
-
/**
|
|
33
|
-
* Refunds the payment method
|
|
34
|
-
*
|
|
35
|
-
* @param string|number amount Amount to refund
|
|
36
|
-
*
|
|
37
|
-
* @return AuthorizationBuilder
|
|
38
|
-
*/
|
|
39
|
-
refund(amount?: string | number): AuthorizationBuilder;
|
|
40
|
-
/**
|
|
41
|
-
* Reverses the payment method
|
|
42
|
-
*
|
|
43
|
-
* @param string|number amount Amount to reverse
|
|
44
|
-
*
|
|
45
|
-
* @return AuthorizationBuilder
|
|
46
|
-
*/
|
|
47
|
-
reverse(_amount?: string | number): AuthorizationBuilder;
|
|
48
|
-
}
|