globalpayments-api 1.4.8 → 1.4.9
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 +6 -0
- package/lib/src/Builders/PayFacBuilder.d.ts +96 -0
- package/lib/src/Builders/PayFacBuilder.js +184 -0
- package/lib/src/Entities/DocumentUploadData.d.ts +13 -0
- package/lib/src/Entities/DocumentUploadData.js +48 -0
- package/lib/src/Entities/Enums.d.ts +44 -1
- package/lib/src/Entities/Enums.js +119 -1
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +7 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +9 -0
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +15 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js +9 -0
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/BankAccountData.js +9 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +8 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +11 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +6 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +10 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +5 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +9 -0
- package/lib/src/Entities/ProFac/BusinessData.d.ts +14 -0
- package/lib/src/Entities/ProFac/BusinessData.js +11 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +4 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +9 -0
- package/lib/src/Entities/ProFac/DeviceData.d.ts +5 -0
- package/lib/src/Entities/ProFac/DeviceData.js +10 -0
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +6 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js +9 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +7 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +13 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +8 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +9 -0
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +18 -0
- package/lib/src/Entities/ProFac/OrderDevice.js +9 -0
- package/lib/src/Entities/ProFac/OwnersData.d.ts +12 -0
- package/lib/src/Entities/ProFac/OwnersData.js +11 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +55 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js +9 -0
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js +11 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +8 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +11 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +5 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js +9 -0
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +26 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js +14 -0
- package/lib/src/Entities/SSORequestData.d.ts +5 -0
- package/lib/src/Entities/SSORequestData.js +9 -0
- package/lib/src/Entities/Transaction.d.ts +2 -0
- package/lib/src/Gateways/IPayFacProvider.d.ts +5 -0
- package/lib/src/Gateways/IPayFacProvider.js +2 -0
- package/lib/src/Gateways/PayPlanConnector.d.ts +1 -0
- package/lib/src/Gateways/PayPlanConnector.js +13 -1
- package/lib/src/Gateways/PorticoConnector.js +0 -1
- package/lib/src/Gateways/ProPayConnector.d.ts +41 -0
- package/lib/src/Gateways/ProPayConnector.js +698 -0
- package/lib/src/Gateways/XmlGateway.js +1 -0
- package/lib/src/PaymentMethods/CreditCardData.d.ts +1 -0
- package/lib/src/PaymentMethods/CreditCardData.js +6 -0
- package/lib/src/Services/PayFacService.d.ts +26 -0
- package/lib/src/Services/PayFacService.js +77 -0
- package/lib/src/ServicesConfig.d.ts +4 -0
- package/lib/src/ServicesContainer.d.ts +4 -1
- package/lib/src/ServicesContainer.js +16 -2
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +1 -2
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +100 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +352 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +123 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +146 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +371 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +100 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +535 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +124 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +144 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +33 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +268 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +30 -0
- package/logger.txt +481 -2
- package/package.json +1 -1
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var ava_1 = require("ava");
|
|
40
|
+
var PayFacService_1 = require("../../../../../src/Services/PayFacService");
|
|
41
|
+
var src_1 = require("../../../../../src/");
|
|
42
|
+
var TestAccountData_1 = require("./TestData/TestAccountData");
|
|
43
|
+
var BankAccountData_1 = require("../../../../../src/Entities/ProFac/BankAccountData");
|
|
44
|
+
var DocumentUploadData_1 = require("../../../../../src/Entities/DocumentUploadData");
|
|
45
|
+
var SSORequestData_1 = require("../../../../../src/Entities/SSORequestData");
|
|
46
|
+
var config = new src_1.ServicesConfig();
|
|
47
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
48
|
+
config.certificationStr = "d17d770d4734341aaedab32b7a7763";
|
|
49
|
+
config.terminalID = "7a7763";
|
|
50
|
+
config.x509CertificationPath = "test/Integration/Gateways/ProPayConnector/Certifications/TestData/selfSignedCertificate.crt";
|
|
51
|
+
var _service = new PayFacService_1.PayFacService();
|
|
52
|
+
ava_1.default.before(function (_t) {
|
|
53
|
+
src_1.ServicesContainer.configure(config);
|
|
54
|
+
});
|
|
55
|
+
ava_1.default("create account", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
56
|
+
var accountPersonalInfo, ownersInfo, response;
|
|
57
|
+
return __generator(this, function (_a) {
|
|
58
|
+
switch (_a.label) {
|
|
59
|
+
case 0:
|
|
60
|
+
t.plan(5);
|
|
61
|
+
accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalData();
|
|
62
|
+
ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
63
|
+
return [4 /*yield*/, _service.createAccount()
|
|
64
|
+
.withUserPersonalData(accountPersonalInfo)
|
|
65
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
66
|
+
.execute()];
|
|
67
|
+
case 1:
|
|
68
|
+
response = _a.sent();
|
|
69
|
+
t.truthy(response);
|
|
70
|
+
t.is("00", response.responseCode);
|
|
71
|
+
t.truthy(response.payFacData.accountNumber);
|
|
72
|
+
t.truthy(response.payFacData.password);
|
|
73
|
+
t.truthy(response.payFacData.sourceEmail);
|
|
74
|
+
return [2 /*return*/];
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}); });
|
|
78
|
+
ava_1.default("Order a new device", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
79
|
+
var orderDeviceInfo, deviceData, response;
|
|
80
|
+
return __generator(this, function (_a) {
|
|
81
|
+
switch (_a.label) {
|
|
82
|
+
case 0:
|
|
83
|
+
t.plan(2);
|
|
84
|
+
orderDeviceInfo = TestAccountData_1.TestAccountData.GetOrderNewDeviceData();
|
|
85
|
+
deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForPhysicalDevice(1, false);
|
|
86
|
+
return [4 /*yield*/, _service.orderDevice()
|
|
87
|
+
.withOrderDevice(orderDeviceInfo)
|
|
88
|
+
.withDeviceData(deviceData)
|
|
89
|
+
.execute()];
|
|
90
|
+
case 1:
|
|
91
|
+
response = _a.sent();
|
|
92
|
+
t.truthy(response);
|
|
93
|
+
t.is("00", response.responseCode);
|
|
94
|
+
return [2 /*return*/];
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}); });
|
|
98
|
+
ava_1.default("create account Device Order", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
99
|
+
var bankAccountInfo, accountPersonalInfo, deviceData, userBusinessInfo, mailingAddressInfo, ownersInfo, response;
|
|
100
|
+
return __generator(this, function (_a) {
|
|
101
|
+
switch (_a.label) {
|
|
102
|
+
case 0:
|
|
103
|
+
t.plan(5);
|
|
104
|
+
bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountForBoardingData();
|
|
105
|
+
accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalForBoadingData();
|
|
106
|
+
deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
|
|
107
|
+
userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessForBoardingData();
|
|
108
|
+
mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddressForBoarding();
|
|
109
|
+
ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
110
|
+
return [4 /*yield*/, _service.createAccount()
|
|
111
|
+
.withBankAccountData(bankAccountInfo)
|
|
112
|
+
.withUserPersonalData(accountPersonalInfo)
|
|
113
|
+
.withBusinessData(userBusinessInfo)
|
|
114
|
+
.withDeviceData(deviceData)
|
|
115
|
+
.withMailingAddress(mailingAddressInfo)
|
|
116
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
117
|
+
.withTimeZone("UTC")
|
|
118
|
+
.execute()];
|
|
119
|
+
case 1:
|
|
120
|
+
response = _a.sent();
|
|
121
|
+
t.truthy(response);
|
|
122
|
+
t.is("00", response.responseCode);
|
|
123
|
+
t.truthy(response.payFacData.accountNumber);
|
|
124
|
+
t.truthy(response.payFacData.password);
|
|
125
|
+
t.truthy(response.payFacData.sourceEmail);
|
|
126
|
+
return [2 /*return*/];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}); });
|
|
130
|
+
ava_1.default("create account Physical Device", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
131
|
+
var bankAccountInfo, accountPersonalInfo, deviceData, userBusinessInfo, mailingAddressInfo, ownersInfo, response;
|
|
132
|
+
return __generator(this, function (_a) {
|
|
133
|
+
switch (_a.label) {
|
|
134
|
+
case 0:
|
|
135
|
+
t.plan(5);
|
|
136
|
+
bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountForBoardingData();
|
|
137
|
+
accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalForBoadingData();
|
|
138
|
+
deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForPhysicalDevice(1, false);
|
|
139
|
+
userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessForBoardingData();
|
|
140
|
+
mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddressForBoarding();
|
|
141
|
+
ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
142
|
+
return [4 /*yield*/, _service.createAccount()
|
|
143
|
+
.withBankAccountData(bankAccountInfo)
|
|
144
|
+
.withUserPersonalData(accountPersonalInfo)
|
|
145
|
+
.withBusinessData(userBusinessInfo)
|
|
146
|
+
.withDeviceData(deviceData)
|
|
147
|
+
.withMailingAddress(mailingAddressInfo)
|
|
148
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
149
|
+
.withTimeZone("UTC")
|
|
150
|
+
.execute()];
|
|
151
|
+
case 1:
|
|
152
|
+
response = _a.sent();
|
|
153
|
+
t.truthy(response);
|
|
154
|
+
t.is("00", response.responseCode);
|
|
155
|
+
t.truthy(response.payFacData.accountNumber);
|
|
156
|
+
t.truthy(response.payFacData.password);
|
|
157
|
+
t.truthy(response.payFacData.sourceEmail);
|
|
158
|
+
return [2 /*return*/];
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}); });
|
|
162
|
+
ava_1.default("Test Failed KYC (Status 66)", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
163
|
+
var bankAccountInfo, accountPersonalInfo, deviceData, userBusinessInfo, mailingAddressInfo, ownersInfo, response;
|
|
164
|
+
return __generator(this, function (_a) {
|
|
165
|
+
switch (_a.label) {
|
|
166
|
+
case 0:
|
|
167
|
+
t.plan(2);
|
|
168
|
+
bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountForBoardingData();
|
|
169
|
+
accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalForBoadingData("01-01-1971");
|
|
170
|
+
deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
|
|
171
|
+
userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessForBoardingData();
|
|
172
|
+
mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddressForBoarding();
|
|
173
|
+
ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
174
|
+
return [4 /*yield*/, _service.createAccount()
|
|
175
|
+
.withBankAccountData(bankAccountInfo)
|
|
176
|
+
.withUserPersonalData(accountPersonalInfo)
|
|
177
|
+
.withBusinessData(userBusinessInfo)
|
|
178
|
+
.withDeviceData(deviceData)
|
|
179
|
+
.withMailingAddress(mailingAddressInfo)
|
|
180
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
181
|
+
.withTimeZone("UTC")
|
|
182
|
+
.execute()];
|
|
183
|
+
case 1:
|
|
184
|
+
response = _a.sent();
|
|
185
|
+
console.log(response);
|
|
186
|
+
t.truthy(response);
|
|
187
|
+
t.is("66", response.responseCode);
|
|
188
|
+
return [2 /*return*/];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}); });
|
|
192
|
+
ava_1.default("edit account information", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
193
|
+
var bankAccountData, response;
|
|
194
|
+
return __generator(this, function (_a) {
|
|
195
|
+
switch (_a.label) {
|
|
196
|
+
case 0:
|
|
197
|
+
t.plan(2);
|
|
198
|
+
bankAccountData = new BankAccountData_1.BankAccountData();
|
|
199
|
+
bankAccountData.accountCountryCode = "USA";
|
|
200
|
+
bankAccountData.accountType = "Checking";
|
|
201
|
+
bankAccountData.accountNumber = "718570634";
|
|
202
|
+
bankAccountData.bankName = "BankName";
|
|
203
|
+
bankAccountData.routingNumber = "104000058";
|
|
204
|
+
bankAccountData.accountOwnershipType = "Business";
|
|
205
|
+
return [4 /*yield*/, _service.editAccount()
|
|
206
|
+
.withAccountNumber("718570634")
|
|
207
|
+
.withBankAccountData(bankAccountData)
|
|
208
|
+
.execute()];
|
|
209
|
+
case 1:
|
|
210
|
+
response = _a.sent();
|
|
211
|
+
t.truthy(response);
|
|
212
|
+
t.is("00", response.responseCode);
|
|
213
|
+
return [2 /*return*/];
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}); });
|
|
217
|
+
ava_1.default("reset password", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
218
|
+
var response;
|
|
219
|
+
return __generator(this, function (_a) {
|
|
220
|
+
switch (_a.label) {
|
|
221
|
+
case 0: return [4 /*yield*/, _service.resetPassword()
|
|
222
|
+
.withAccountNumber('718570758')
|
|
223
|
+
.execute()];
|
|
224
|
+
case 1:
|
|
225
|
+
response = _a.sent();
|
|
226
|
+
t.truthy(response);
|
|
227
|
+
return [2 /*return*/];
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}); });
|
|
231
|
+
ava_1.default("renew account", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
232
|
+
var response;
|
|
233
|
+
return __generator(this, function (_a) {
|
|
234
|
+
switch (_a.label) {
|
|
235
|
+
case 0:
|
|
236
|
+
t.plan(2);
|
|
237
|
+
return [4 /*yield*/, _service.renewAccount()
|
|
238
|
+
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
239
|
+
.withAccountNumber("718570759")
|
|
240
|
+
.execute()];
|
|
241
|
+
case 1:
|
|
242
|
+
response = _a.sent();
|
|
243
|
+
t.truthy(response);
|
|
244
|
+
t.is("00", response.responseCode);
|
|
245
|
+
return [2 /*return*/];
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}); });
|
|
249
|
+
ava_1.default.skip("disown account", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
+
var response;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
switch (_a.label) {
|
|
253
|
+
case 0:
|
|
254
|
+
t.plan(2);
|
|
255
|
+
return [4 /*yield*/, _service.disownAccount()
|
|
256
|
+
.withAccountNumber("718570772") // The account being "disowned" needs to have another affiliation set. Contact propayimplementations@tsys.com and they will set one if necessary
|
|
257
|
+
.execute()];
|
|
258
|
+
case 1:
|
|
259
|
+
response = _a.sent();
|
|
260
|
+
t.truthy(response);
|
|
261
|
+
t.is("00", response.responseCode);
|
|
262
|
+
return [2 /*return*/];
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
}); });
|
|
266
|
+
// Note : The transaction number of the chargeback you need to dispute. (can be verify at certification process)
|
|
267
|
+
ava_1.default("upload document chargeback", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
268
|
+
var docUploadData, response;
|
|
269
|
+
return __generator(this, function (_a) {
|
|
270
|
+
switch (_a.label) {
|
|
271
|
+
case 0:
|
|
272
|
+
t.plan(2);
|
|
273
|
+
docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
274
|
+
docUploadData.documentName = "TestDocCB_12345";
|
|
275
|
+
docUploadData.transactionReference = "1";
|
|
276
|
+
docUploadData.documentPath = 'test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestDocChargeback.docx';
|
|
277
|
+
docUploadData.DocumentPath(docUploadData.documentPath);
|
|
278
|
+
return [4 /*yield*/, _service.uploadDocumentChargeback()
|
|
279
|
+
.withAccountNumber("718569967") //("718567300")
|
|
280
|
+
.withDocumentUploadData(docUploadData)
|
|
281
|
+
.execute()];
|
|
282
|
+
case 1:
|
|
283
|
+
response = _a.sent();
|
|
284
|
+
t.truthy(response);
|
|
285
|
+
t.is("00", response.responseCode);
|
|
286
|
+
return [2 /*return*/];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
}); });
|
|
290
|
+
ava_1.default("upload document", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
291
|
+
var docUploadData, response;
|
|
292
|
+
return __generator(this, function (_a) {
|
|
293
|
+
switch (_a.label) {
|
|
294
|
+
case 0:
|
|
295
|
+
t.plan(2);
|
|
296
|
+
docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
297
|
+
docUploadData.documentName = "TestDoc_12345";
|
|
298
|
+
docUploadData.docCategory = "Verification";
|
|
299
|
+
docUploadData.documentPath = 'test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestDoc.docx';
|
|
300
|
+
docUploadData.DocumentPath(docUploadData.documentPath);
|
|
301
|
+
return [4 /*yield*/, _service.uploadDocument()
|
|
302
|
+
.withAccountNumber("718570858")
|
|
303
|
+
.withDocumentUploadData(docUploadData)
|
|
304
|
+
.execute()];
|
|
305
|
+
case 1:
|
|
306
|
+
response = _a.sent();
|
|
307
|
+
t.truthy(response);
|
|
308
|
+
t.is("00", response.responseCode);
|
|
309
|
+
return [2 /*return*/];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
}); });
|
|
313
|
+
ava_1.default("obtain sSO key", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
314
|
+
var ssoRequestData, response;
|
|
315
|
+
return __generator(this, function (_a) {
|
|
316
|
+
switch (_a.label) {
|
|
317
|
+
case 0:
|
|
318
|
+
t.plan(3);
|
|
319
|
+
ssoRequestData = new SSORequestData_1.SSORequestData();
|
|
320
|
+
ssoRequestData.referrerURL = "https://www.globalpaymentsinc.com/";
|
|
321
|
+
ssoRequestData.iPAddress = "40.81.11.219";
|
|
322
|
+
ssoRequestData.iPSubnetMask = "255.255.255.0";
|
|
323
|
+
return [4 /*yield*/, _service.obtainSSOKey()
|
|
324
|
+
.withAccountNumber("718570860")
|
|
325
|
+
.withSSORequestData(ssoRequestData)
|
|
326
|
+
.execute()];
|
|
327
|
+
case 1:
|
|
328
|
+
response = _a.sent();
|
|
329
|
+
t.truthy(response);
|
|
330
|
+
t.is("00", response.responseCode);
|
|
331
|
+
t.truthy(response.payFacData.authToken);
|
|
332
|
+
return [2 /*return*/];
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
}); });
|
|
336
|
+
ava_1.default("update beneficial data", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
337
|
+
var ownersInfo, response;
|
|
338
|
+
return __generator(this, function (_a) {
|
|
339
|
+
switch (_a.label) {
|
|
340
|
+
case 0:
|
|
341
|
+
ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
342
|
+
return [4 /*yield*/, _service.updateBeneficialOwnershipInfo()
|
|
343
|
+
.withAccountNumber('718570792')
|
|
344
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
345
|
+
.execute()];
|
|
346
|
+
case 1:
|
|
347
|
+
response = _a.sent();
|
|
348
|
+
t.truthy(response);
|
|
349
|
+
return [2 /*return*/];
|
|
350
|
+
}
|
|
351
|
+
});
|
|
352
|
+
}); });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var ava_1 = require("ava");
|
|
40
|
+
var PayFacService_1 = require("../../../../../src/Services/PayFacService");
|
|
41
|
+
var src_1 = require("../../../../../src/");
|
|
42
|
+
var TestFundsData_1 = require("./../TestData/TestFundsData");
|
|
43
|
+
var config = new src_1.ServicesConfig();
|
|
44
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
45
|
+
config.certificationStr = "d17d770d4734341aaedab32b7a7763";
|
|
46
|
+
config.terminalID = "7a7763";
|
|
47
|
+
config.x509CertificationPath = "test/Integration/Gateways/ProPayConnector/Certifications/TestData/selfSignedCertificate.crt";
|
|
48
|
+
var _service = new PayFacService_1.PayFacService();
|
|
49
|
+
ava_1.default.before(function (_t) {
|
|
50
|
+
src_1.ServicesContainer.configure(config);
|
|
51
|
+
});
|
|
52
|
+
ava_1.default("add funds", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
53
|
+
var response;
|
|
54
|
+
return __generator(this, function (_a) {
|
|
55
|
+
switch (_a.label) {
|
|
56
|
+
case 0:
|
|
57
|
+
t.plan(2);
|
|
58
|
+
return [4 /*yield*/, _service.addFunds()
|
|
59
|
+
.withAccountNumber("718571343") //718571145")
|
|
60
|
+
.withAmount("100")
|
|
61
|
+
.execute()];
|
|
62
|
+
case 1:
|
|
63
|
+
response = _a.sent();
|
|
64
|
+
t.truthy(response);
|
|
65
|
+
t.is("00", response.responseCode);
|
|
66
|
+
return [2 /*return*/];
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
}); });
|
|
70
|
+
ava_1.default("sweep funds", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
71
|
+
var response;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
switch (_a.label) {
|
|
74
|
+
case 0:
|
|
75
|
+
t.plan(2);
|
|
76
|
+
return [4 /*yield*/, _service.sweepFunds()
|
|
77
|
+
.withAccountNumber("718571343") //718571146")
|
|
78
|
+
.withAmount("10")
|
|
79
|
+
.execute()];
|
|
80
|
+
case 1:
|
|
81
|
+
response = _a.sent();
|
|
82
|
+
t.truthy(response);
|
|
83
|
+
t.is("00", response.responseCode);
|
|
84
|
+
return [2 /*return*/];
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}); });
|
|
88
|
+
ava_1.default.skip("add flash funds payment card", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
89
|
+
var response;
|
|
90
|
+
return __generator(this, function (_a) {
|
|
91
|
+
switch (_a.label) {
|
|
92
|
+
case 0:
|
|
93
|
+
t.plan(2);
|
|
94
|
+
return [4 /*yield*/, _service.addCardFlashFunds()
|
|
95
|
+
.withAccountNumber("718571147")
|
|
96
|
+
.withFlashFundsPaymentCardData(TestFundsData_1.TestFundsData.GetFlashFundsPaymentCardData())
|
|
97
|
+
.execute()];
|
|
98
|
+
case 1:
|
|
99
|
+
response = _a.sent();
|
|
100
|
+
t.truthy(response);
|
|
101
|
+
t.is("00", response.responseCode);
|
|
102
|
+
return [2 /*return*/];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}); });
|
|
106
|
+
ava_1.default.skip("push money to flash funds card", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
|
+
var response;
|
|
108
|
+
return __generator(this, function (_a) {
|
|
109
|
+
switch (_a.label) {
|
|
110
|
+
case 0:
|
|
111
|
+
t.plan(2);
|
|
112
|
+
return [4 /*yield*/, _service.pushMoneyToFlashFundsCard()
|
|
113
|
+
.withAccountNumber("718571148")
|
|
114
|
+
.withAmount("100")
|
|
115
|
+
.execute()];
|
|
116
|
+
case 1:
|
|
117
|
+
response = _a.sent();
|
|
118
|
+
t.truthy(response);
|
|
119
|
+
t.is("00", response.responseCode);
|
|
120
|
+
return [2 /*return*/];
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}); });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
var ava_1 = require("ava");
|
|
40
|
+
var PayFacService_1 = require("../../../../../src/Services/PayFacService");
|
|
41
|
+
var src_1 = require("../../../../../src/");
|
|
42
|
+
var config = new src_1.ServicesConfig();
|
|
43
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
44
|
+
config.certificationStr = "d17d770d4734341aaedab32b7a7763";
|
|
45
|
+
config.terminalID = "7a7763";
|
|
46
|
+
config.x509CertificationPath = "test/Integration/Gateways/ProPayConnector/Certifications/TestData/selfSignedCertificate.crt";
|
|
47
|
+
var _service = new PayFacService_1.PayFacService();
|
|
48
|
+
ava_1.default.before(function (_t) {
|
|
49
|
+
src_1.ServicesContainer.configure(config);
|
|
50
|
+
});
|
|
51
|
+
ava_1.default.skip("disburse funds", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
+
var response;
|
|
53
|
+
return __generator(this, function (_a) {
|
|
54
|
+
switch (_a.label) {
|
|
55
|
+
case 0:
|
|
56
|
+
t.plan(2);
|
|
57
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
58
|
+
config.certificationStr = "D515DA6DA576475A85AAB5268DE822"; // disburment of fund only
|
|
59
|
+
config.terminalID = "D515DA6DA576475A";
|
|
60
|
+
config.x509CertificationPath = "test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
61
|
+
src_1.ServicesContainer.configure(config);
|
|
62
|
+
return [4 /*yield*/, _service.disburseFunds()
|
|
63
|
+
.withReceivingAccountNumber("718570634") //718136438")
|
|
64
|
+
.withAmount("100")
|
|
65
|
+
.execute()];
|
|
66
|
+
case 1:
|
|
67
|
+
response = _a.sent();
|
|
68
|
+
t.truthy(response);
|
|
69
|
+
t.is("00", response.responseCode);
|
|
70
|
+
return [2 /*return*/];
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}); });
|
|
74
|
+
ava_1.default.skip("spend back transaction", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
75
|
+
var config, response;
|
|
76
|
+
return __generator(this, function (_a) {
|
|
77
|
+
switch (_a.label) {
|
|
78
|
+
case 0:
|
|
79
|
+
t.plan(2);
|
|
80
|
+
config = new src_1.ServicesConfig();
|
|
81
|
+
config.certificationStr = "d17d770d4734341aaedab32b7a7763";
|
|
82
|
+
return [4 /*yield*/, _service.spendBack()
|
|
83
|
+
.withAccountNumber("718570634")
|
|
84
|
+
.withReceivingAccountNumber("718571166")
|
|
85
|
+
.withAmount("100")
|
|
86
|
+
.withAllowPending(true)
|
|
87
|
+
.execute()];
|
|
88
|
+
case 1:
|
|
89
|
+
response = _a.sent();
|
|
90
|
+
t.truthy(response);
|
|
91
|
+
t.is("00", response.responseCode);
|
|
92
|
+
return [2 /*return*/];
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}); });
|
|
96
|
+
/* before executing need to run Transaction Type 04 -> and from success response,
|
|
97
|
+
* the transNum value need to use here
|
|
98
|
+
*/
|
|
99
|
+
ava_1.default.skip("split funds", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
100
|
+
var response;
|
|
101
|
+
return __generator(this, function (_a) {
|
|
102
|
+
switch (_a.label) {
|
|
103
|
+
case 0:
|
|
104
|
+
t.plan(2);
|
|
105
|
+
return [4 /*yield*/, _service.splitFunds()
|
|
106
|
+
.withAccountNumber("718575860")
|
|
107
|
+
.withReceivingAccountNumber("718571150")
|
|
108
|
+
.withAmount("95")
|
|
109
|
+
.withTransNum("15")
|
|
110
|
+
// .withGatewayTransactionId("")
|
|
111
|
+
// .withCardBrandTransactionId("")
|
|
112
|
+
// .withGlobaltransId("")
|
|
113
|
+
// .withGlobalTransSource("")
|
|
114
|
+
.execute()];
|
|
115
|
+
case 1:
|
|
116
|
+
response = _a.sent();
|
|
117
|
+
t.truthy(response);
|
|
118
|
+
t.is("00", response.responseCode);
|
|
119
|
+
return [2 /*return*/];
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}); });
|
|
123
|
+
ava_1.default.skip("reverse split pay", function (t) { return __awaiter(void 0, void 0, void 0, function () {
|
|
124
|
+
var response;
|
|
125
|
+
return __generator(this, function (_a) {
|
|
126
|
+
switch (_a.label) {
|
|
127
|
+
case 0:
|
|
128
|
+
t.plan(5);
|
|
129
|
+
return [4 /*yield*/, _service.reverseSplitPay()
|
|
130
|
+
.withAccountNumber("718571150")
|
|
131
|
+
.withAmount("1")
|
|
132
|
+
.withCCAmount("0")
|
|
133
|
+
.withRequireCCRefund(false)
|
|
134
|
+
.withTransNum("4")
|
|
135
|
+
.execute()];
|
|
136
|
+
case 1:
|
|
137
|
+
response = _a.sent();
|
|
138
|
+
t.truthy(response);
|
|
139
|
+
t.is("00", response.responseCode);
|
|
140
|
+
t.truthy(response.payFacData.amount);
|
|
141
|
+
t.truthy(response.payFacData.recAccountNum);
|
|
142
|
+
t.truthy(response.payFacData.transNum);
|
|
143
|
+
return [2 /*return*/];
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
}); });
|
package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AccountPermissions } from "../../../../../../src/Entities/ProFac/AccountPermissions";
|
|
2
|
+
import { BankAccountData } from "../../../../../../src/Entities/ProFac/BankAccountData";
|
|
3
|
+
import { BeneficialOwnerData } from "../../../../../../src/Entities/ProFac/BeneficialOwnerData";
|
|
4
|
+
import { BusinessData } from "../../../../../../src/Entities/ProFac/BusinessData";
|
|
5
|
+
import { DeviceData } from "../../../../../../src/Entities/ProFac/DeviceData";
|
|
6
|
+
import { GrossBillingInformation } from "../../../../../../src/Entities/ProFac/GrossBillingInformation";
|
|
7
|
+
import { RenewAccountData } from "../../../../../../src/Entities/ProFac/RenewAccountData";
|
|
8
|
+
import { SignificantOwnerData } from "../../../../../../src/Entities/ProFac/SignificantOwnerData";
|
|
9
|
+
import { ThreatRiskData } from "../../../../../../src/Entities/ProFac/ThreatRiskData";
|
|
10
|
+
import { UserPersonalData } from "../../../../../../src/Entities/ProFac/UserPersonalData";
|
|
11
|
+
import { CreditCardData } from "../../../../../../src/PaymentMethods";
|
|
12
|
+
import { Address } from "../../../../../../src/Entities/Address";
|
|
13
|
+
import { OrderDevice } from "../../../../../../src/Entities/ProFac/OrderDevice";
|
|
14
|
+
export declare class TestAccountData {
|
|
15
|
+
static GetBankAccountForBoardingData(): BankAccountData;
|
|
16
|
+
static GetBankAccountData(): BankAccountData;
|
|
17
|
+
static GetBusinessForBoardingData(): BusinessData;
|
|
18
|
+
static GetOrderNewDeviceData(): OrderDevice;
|
|
19
|
+
static GetBusinessData(): BusinessData;
|
|
20
|
+
static GetUserPersonalForBoadingData(dob?: string): UserPersonalData;
|
|
21
|
+
static GetUserPersonalData(): UserPersonalData;
|
|
22
|
+
static GetUserPersonalDeviceOrderTestData(): UserPersonalData;
|
|
23
|
+
static GetThreatRiskData(): ThreatRiskData;
|
|
24
|
+
static GetSignificantOwnerData(): SignificantOwnerData;
|
|
25
|
+
static GetBeneficialOwnerData(): BeneficialOwnerData;
|
|
26
|
+
static GetCreditCardData(): CreditCardData;
|
|
27
|
+
static GetACHData(): BankAccountData;
|
|
28
|
+
static GetMailingAddressForBoarding(): Address;
|
|
29
|
+
static GetMailingAddress(): Address;
|
|
30
|
+
static GetSecondaryBankAccountData(): BankAccountData;
|
|
31
|
+
static GetGrossBillingSettleData(): GrossBillingInformation;
|
|
32
|
+
static GetAccountPermissions(): AccountPermissions;
|
|
33
|
+
static GetRenewAccountDetails(): RenewAccountData;
|
|
34
|
+
static GetDeviceDataForPhysicalDevice(numDeviceTypes?: number, withAttributes?: boolean): DeviceData;
|
|
35
|
+
static GetDeviceData(numDeviceTypes?: number, withAttributes?: boolean): DeviceData;
|
|
36
|
+
static GetDocumentBase64String(filepath: string): string;
|
|
37
|
+
private static getByteArray;
|
|
38
|
+
static getRandomInt(min: number, max: number): number;
|
|
39
|
+
}
|