globalpayments-api 3.6.0 → 3.6.2
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 +125 -113
- package/lib/src/Gateways/PorticoConnector.js +25 -0
- package/lib/src/Gateways/PorticoConnector.js.map +1 -1
- package/lib/src/PaymentMethods/Credit.js +1 -1
- package/package.json +71 -72
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +0 -14
- package/lib/test/Data/BaseGpApiTestConfig.js +0 -50
- package/lib/test/Data/BaseGpApiTestConfig.js.map +0 -1
- package/lib/test/Data/GpApi3DSTestCards.d.ts +0 -17
- package/lib/test/Data/GpApi3DSTestCards.js +0 -22
- package/lib/test/Data/GpApi3DSTestCards.js.map +0 -1
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -220
- package/lib/test/Data/TestCards.js.map +0 -1
- package/lib/test/Data/TestChecks.d.ts +0 -4
- package/lib/test/Data/TestChecks.js +0 -27
- package/lib/test/Data/TestChecks.js.map +0 -1
- package/lib/test/Data/index.d.ts +0 -4
- package/lib/test/Data/index.js +0 -21
- package/lib/test/Data/index.js.map +0 -1
- package/lib/test/Integration/Gateways/AcsResponse.d.ts +0 -12
- package/lib/test/Integration/Gateways/AcsResponse.js +0 -33
- package/lib/test/Integration/Gateways/AcsResponse.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +0 -1029
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +0 -649
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -1023
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +0 -439
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +0 -143
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +0 -434
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +0 -337
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -88
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -111
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -393
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -34
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -322
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -28
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +0 -4
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +0 -10
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +0 -1
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +0 -16
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +0 -212
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
- package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
- package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
- package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
- package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ava_1 = __importDefault(require("ava"));
|
|
7
|
-
const PayFacService_1 = require("../../../../src/Services/PayFacService");
|
|
8
|
-
const src_1 = require("../../../../src");
|
|
9
|
-
const TestAccountData_1 = require("./TestData/TestAccountData");
|
|
10
|
-
const UserPersonalData_1 = require("../../../../src/Entities/ProFac/UserPersonalData");
|
|
11
|
-
const SSORequestData_1 = require("../../../../src/Entities/SSORequestData");
|
|
12
|
-
const BankAccountOwnershipData_1 = require("../../../../src/Entities/ProFac/BankAccountOwnershipData");
|
|
13
|
-
const DocumentUploadData_1 = require("../../../../src/Entities/DocumentUploadData");
|
|
14
|
-
const config = new src_1.PorticoConfig();
|
|
15
|
-
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
16
|
-
config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
|
|
17
|
-
config.terminalId = "7039dd";
|
|
18
|
-
config.selfSignedCertLocation =
|
|
19
|
-
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
20
|
-
const _service = new PayFacService_1.PayFacService();
|
|
21
|
-
ava_1.default.before(() => {
|
|
22
|
-
src_1.ServicesContainer.configureService(config);
|
|
23
|
-
});
|
|
24
|
-
(0, ava_1.default)("create account", async (t) => {
|
|
25
|
-
t.plan(5);
|
|
26
|
-
const bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountData();
|
|
27
|
-
const userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessData();
|
|
28
|
-
const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalData();
|
|
29
|
-
const threatRiskData = TestAccountData_1.TestAccountData.GetThreatRiskData();
|
|
30
|
-
const significantOwnerData = TestAccountData_1.TestAccountData.GetSignificantOwnerData();
|
|
31
|
-
const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
32
|
-
const creditCardInfo = TestAccountData_1.TestAccountData.GetCreditCardData();
|
|
33
|
-
const achInfo = TestAccountData_1.TestAccountData.GetACHData();
|
|
34
|
-
const secondaryBankInformation = TestAccountData_1.TestAccountData.GetSecondaryBankAccountData();
|
|
35
|
-
const mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddress();
|
|
36
|
-
const deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
|
|
37
|
-
const response = await _service
|
|
38
|
-
.createAccount()
|
|
39
|
-
.withBankAccountData(bankAccountInfo)
|
|
40
|
-
.withBusinessData(userBusinessInfo)
|
|
41
|
-
.withUserPersonalData(accountPersonalInfo)
|
|
42
|
-
.withThreatRiskData(threatRiskData)
|
|
43
|
-
.withSignificantOwnerData(significantOwnerData)
|
|
44
|
-
.withBeneficialOwnerData(ownersInfo)
|
|
45
|
-
.withCreditCardData(creditCardInfo)
|
|
46
|
-
.withACHData(achInfo)
|
|
47
|
-
.withMailingAddress(mailingAddressInfo)
|
|
48
|
-
.withSecondaryBankAccountData(secondaryBankInformation)
|
|
49
|
-
.withDeviceData(deviceData)
|
|
50
|
-
.withTimeZone("ET")
|
|
51
|
-
.execute();
|
|
52
|
-
t.truthy(response);
|
|
53
|
-
t.is("00", response.responseCode);
|
|
54
|
-
t.truthy(response.payFacData.accountNumber);
|
|
55
|
-
t.truthy(response.payFacData.password);
|
|
56
|
-
t.truthy(response.payFacData.sourceEmail);
|
|
57
|
-
});
|
|
58
|
-
(0, ava_1.default)("Order a new device", async (t) => {
|
|
59
|
-
t.plan(2);
|
|
60
|
-
const orderDeviceInfo = TestAccountData_1.TestAccountData.GetOrderNewDeviceData();
|
|
61
|
-
const deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForOrderDevice(1, false);
|
|
62
|
-
const response = await _service
|
|
63
|
-
.orderDevice()
|
|
64
|
-
.withOrderDevice(orderDeviceInfo)
|
|
65
|
-
.withOrderDeviceData(deviceData)
|
|
66
|
-
.execute();
|
|
67
|
-
t.truthy(response);
|
|
68
|
-
t.is("00", response.responseCode);
|
|
69
|
-
});
|
|
70
|
-
(0, ava_1.default)("reset password", async (t) => {
|
|
71
|
-
const response = await _service
|
|
72
|
-
.resetPassword()
|
|
73
|
-
.withAccountNumber("718150930")
|
|
74
|
-
.withNegativeLimit("1")
|
|
75
|
-
.execute();
|
|
76
|
-
t.truthy(response);
|
|
77
|
-
});
|
|
78
|
-
/* Note : This method may be used to add new beneficial owner information when the original account boarding call included OwnerCount,
|
|
79
|
-
* but did not include all owner data
|
|
80
|
-
*/
|
|
81
|
-
(0, ava_1.default)("update beneficial data", async (t) => {
|
|
82
|
-
//Owners count shoud not be excedded 6
|
|
83
|
-
const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
84
|
-
const response = await _service
|
|
85
|
-
.updateBeneficialOwnershipInfo()
|
|
86
|
-
.withAccountNumber("718568507")
|
|
87
|
-
.withBeneficialOwnerData(ownersInfo)
|
|
88
|
-
.execute();
|
|
89
|
-
t.truthy(response);
|
|
90
|
-
});
|
|
91
|
-
//#region edit aacount
|
|
92
|
-
(0, ava_1.default)("edit account information", async (t) => {
|
|
93
|
-
t.plan(2);
|
|
94
|
-
const accountPersonalInfo = new UserPersonalData_1.UserPersonalData();
|
|
95
|
-
accountPersonalInfo.dayPhone = "4464464464";
|
|
96
|
-
accountPersonalInfo.eveningPhone = "4464464464";
|
|
97
|
-
accountPersonalInfo.externalID = String(getRandomInt(100000000, 999999999));
|
|
98
|
-
accountPersonalInfo.firstName = "John";
|
|
99
|
-
accountPersonalInfo.lastName = "Doe";
|
|
100
|
-
accountPersonalInfo.middleInitial = "A";
|
|
101
|
-
accountPersonalInfo.sourceEmail =
|
|
102
|
-
"user" + getRandomInt(1, 10000) + "@user.com";
|
|
103
|
-
accountPersonalInfo.sSN = "1234";
|
|
104
|
-
const response = await _service
|
|
105
|
-
.editAccount()
|
|
106
|
-
.withAccountNumber("718135662")
|
|
107
|
-
.withUserPersonalData(accountPersonalInfo)
|
|
108
|
-
.execute();
|
|
109
|
-
t.truthy(response);
|
|
110
|
-
t.is("00", response.responseCode);
|
|
111
|
-
});
|
|
112
|
-
(0, ava_1.default)("edit account password", async (t) => {
|
|
113
|
-
t.plan(2);
|
|
114
|
-
const response = await _service
|
|
115
|
-
.editAccount()
|
|
116
|
-
.withAccountNumber("718568506")
|
|
117
|
-
.withPassword("testPwd_" + getRandomInt(1, 100))
|
|
118
|
-
.execute();
|
|
119
|
-
t.truthy(response);
|
|
120
|
-
t.is("00", response.responseCode);
|
|
121
|
-
});
|
|
122
|
-
(0, ava_1.default)("edit account address", async (t) => {
|
|
123
|
-
t.plan(2);
|
|
124
|
-
const personalInfo = new UserPersonalData_1.UserPersonalData();
|
|
125
|
-
personalInfo.userAddress = new src_1.Address();
|
|
126
|
-
personalInfo.userAddress.streetAddress1 = "124 Main St.";
|
|
127
|
-
personalInfo.userAddress.city = "Downtown";
|
|
128
|
-
personalInfo.userAddress.state = "NJ";
|
|
129
|
-
personalInfo.userAddress.postalCode = "12345";
|
|
130
|
-
personalInfo.userAddress.country = "USA";
|
|
131
|
-
personalInfo.mailingAddress = new src_1.Address();
|
|
132
|
-
personalInfo.mailingAddress.streetAddress1 = "125 Main St.";
|
|
133
|
-
personalInfo.mailingAddress.city = "Downtown";
|
|
134
|
-
personalInfo.mailingAddress.state = "NJ";
|
|
135
|
-
personalInfo.mailingAddress.postalCode = "12345";
|
|
136
|
-
const response = await _service
|
|
137
|
-
.editAccount()
|
|
138
|
-
.withAccountNumber("718138433")
|
|
139
|
-
.withUserPersonalData(personalInfo)
|
|
140
|
-
.execute();
|
|
141
|
-
t.truthy(response);
|
|
142
|
-
t.is("00", response.responseCode);
|
|
143
|
-
});
|
|
144
|
-
(0, ava_1.default)("edit account permissions", async (t) => {
|
|
145
|
-
t.plan(2);
|
|
146
|
-
const response = await _service
|
|
147
|
-
.editAccount()
|
|
148
|
-
.withAccountNumber("718135662")
|
|
149
|
-
.withAccountPermissions(TestAccountData_1.TestAccountData.GetAccountPermissions())
|
|
150
|
-
.execute();
|
|
151
|
-
t.truthy(response);
|
|
152
|
-
t.is("00", response.responseCode);
|
|
153
|
-
});
|
|
154
|
-
//#endregion
|
|
155
|
-
//#region renew account
|
|
156
|
-
(0, ava_1.default)("renew account", async (t) => {
|
|
157
|
-
t.plan(2);
|
|
158
|
-
const response = await _service
|
|
159
|
-
.renewAccount()
|
|
160
|
-
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
161
|
-
.withAccountNumber("718568507")
|
|
162
|
-
.execute();
|
|
163
|
-
t.truthy(response);
|
|
164
|
-
t.is("00", response.responseCode);
|
|
165
|
-
});
|
|
166
|
-
(0, ava_1.default)("renew account by credit card", async (t) => {
|
|
167
|
-
t.plan(2);
|
|
168
|
-
const response = await _service
|
|
169
|
-
.renewAccount()
|
|
170
|
-
.withAccountNumber("718135662")
|
|
171
|
-
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
172
|
-
.execute();
|
|
173
|
-
t.truthy(response);
|
|
174
|
-
t.is("00", response.responseCode);
|
|
175
|
-
});
|
|
176
|
-
ava_1.default.skip("renew account by bank account", async (t) => {
|
|
177
|
-
t.plan(2);
|
|
178
|
-
const response = await _service
|
|
179
|
-
.renewAccount()
|
|
180
|
-
.withAccountNumber("718151055")
|
|
181
|
-
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
182
|
-
.execute();
|
|
183
|
-
t.truthy(response);
|
|
184
|
-
t.is("00", response.responseCode);
|
|
185
|
-
});
|
|
186
|
-
//#endregion
|
|
187
|
-
ava_1.default.skip("update account beneficial ownership", async (t) => {
|
|
188
|
-
t.plan(3);
|
|
189
|
-
const beneficialOwners = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
190
|
-
const response = await _service
|
|
191
|
-
.updateBeneficialOwnershipInfo()
|
|
192
|
-
.withAccountNumber("718134589") // This account must have been created with a beneficial owner count specified, but no owner details passed
|
|
193
|
-
.withBeneficialOwnerData(beneficialOwners)
|
|
194
|
-
.execute();
|
|
195
|
-
t.truthy(response);
|
|
196
|
-
t.is("00", response.responseCode);
|
|
197
|
-
t.truthy(response.payFacData.beneficialOwnerDataResults);
|
|
198
|
-
});
|
|
199
|
-
ava_1.default.skip("disown account", async (t) => {
|
|
200
|
-
t.plan(2);
|
|
201
|
-
const response = await _service
|
|
202
|
-
.disownAccount()
|
|
203
|
-
.withAccountNumber("718134204") // The account being "disowned" needs to have another affiliation set. Contact propayimplementations@tsys.com and they will set one if necessary
|
|
204
|
-
.execute();
|
|
205
|
-
t.truthy(response);
|
|
206
|
-
t.is("00", response.responseCode);
|
|
207
|
-
});
|
|
208
|
-
// Note : The transaction number of the chargeback you need to dispute. (can be verify at certification process)
|
|
209
|
-
(0, ava_1.default)("upload document chargeback", async (t) => {
|
|
210
|
-
t.plan(2);
|
|
211
|
-
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
212
|
-
docUploadData.documentName = "TestDocCB_12345";
|
|
213
|
-
docUploadData.transactionReference = "123456789";
|
|
214
|
-
docUploadData.documentPath =
|
|
215
|
-
"test/Integration/Gateways/ProPayConnector/TestData/TestDocChargeback.docx";
|
|
216
|
-
docUploadData.DocumentPath(docUploadData.documentPath);
|
|
217
|
-
const response = await _service
|
|
218
|
-
.uploadDocumentChargeback()
|
|
219
|
-
.withAccountNumber("718567300")
|
|
220
|
-
.withDocumentUploadData(docUploadData)
|
|
221
|
-
.execute();
|
|
222
|
-
t.truthy(response);
|
|
223
|
-
t.is("00", response.responseCode);
|
|
224
|
-
});
|
|
225
|
-
(0, ava_1.default)("upload document", async (t) => {
|
|
226
|
-
t.plan(2);
|
|
227
|
-
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
228
|
-
docUploadData.documentName = "TestDoc_12345";
|
|
229
|
-
docUploadData.docCategory = "Verification";
|
|
230
|
-
docUploadData.documentPath =
|
|
231
|
-
"test/Integration/Gateways/ProPayConnector/TestData/TestDoc.docx";
|
|
232
|
-
docUploadData.DocumentPath(docUploadData.documentPath);
|
|
233
|
-
const response = await _service
|
|
234
|
-
.uploadDocument()
|
|
235
|
-
.withAccountNumber("718134204")
|
|
236
|
-
.withDocumentUploadData(docUploadData)
|
|
237
|
-
.execute();
|
|
238
|
-
t.truthy(response);
|
|
239
|
-
t.is("00", response.responseCode);
|
|
240
|
-
});
|
|
241
|
-
(0, ava_1.default)("upload document chargeback by document string", async (t) => {
|
|
242
|
-
t.plan(2);
|
|
243
|
-
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
244
|
-
docUploadData.documentName = "TestDocCB_12345";
|
|
245
|
-
docUploadData.transactionReference = "123456789";
|
|
246
|
-
docUploadData.document = TestAccountData_1.TestAccountData.GetDocumentBase64String("test/Integration/Gateways/ProPayConnector/TestData/TestDocChargeback.docx");
|
|
247
|
-
docUploadData.docType = "docx";
|
|
248
|
-
const response = await _service
|
|
249
|
-
.uploadDocumentChargeback()
|
|
250
|
-
.withAccountNumber("718134204")
|
|
251
|
-
.withDocumentUploadData(docUploadData)
|
|
252
|
-
.execute();
|
|
253
|
-
t.truthy(response);
|
|
254
|
-
t.is("00", response.responseCode);
|
|
255
|
-
});
|
|
256
|
-
(0, ava_1.default)("upload document by document string", async (t) => {
|
|
257
|
-
t.plan(2);
|
|
258
|
-
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
259
|
-
docUploadData.documentName = "TestDoc_12345";
|
|
260
|
-
docUploadData.docCategory = "Verification";
|
|
261
|
-
docUploadData.document = TestAccountData_1.TestAccountData.GetDocumentBase64String("test/Integration/Gateways/ProPayConnector/TestData/TestDoc.docx");
|
|
262
|
-
docUploadData.docType = "docx";
|
|
263
|
-
const response = await _service
|
|
264
|
-
.uploadDocument()
|
|
265
|
-
.withAccountNumber("718134204")
|
|
266
|
-
.withDocumentUploadData(docUploadData)
|
|
267
|
-
.execute();
|
|
268
|
-
t.truthy(response);
|
|
269
|
-
t.is("00", response.responseCode);
|
|
270
|
-
});
|
|
271
|
-
(0, ava_1.default)("obtain sSO key", async (t) => {
|
|
272
|
-
t.plan(3);
|
|
273
|
-
const ssoRequestData = new SSORequestData_1.SSORequestData();
|
|
274
|
-
ssoRequestData.referrerURL = "https://www.globalpaymentsinc.com/";
|
|
275
|
-
ssoRequestData.iPAddress = "40.81.11.219";
|
|
276
|
-
ssoRequestData.iPSubnetMask = "255.255.255.0";
|
|
277
|
-
const response = await _service
|
|
278
|
-
.obtainSSOKey()
|
|
279
|
-
.withAccountNumber("718150930")
|
|
280
|
-
.withSSORequestData(ssoRequestData)
|
|
281
|
-
.execute();
|
|
282
|
-
t.truthy(response);
|
|
283
|
-
t.is("00", response.responseCode);
|
|
284
|
-
t.truthy(response.payFacData.authToken);
|
|
285
|
-
});
|
|
286
|
-
(0, ava_1.default)("update bank account ownership info", async (t) => {
|
|
287
|
-
t.plan(2);
|
|
288
|
-
config.selfSignedCertLocation =
|
|
289
|
-
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificateCAN.crt";
|
|
290
|
-
config.serviceUrl = "https://xmltestcanada.propay.com/API/PropayAPI.aspx";
|
|
291
|
-
config.certificationStr = "7c4ddcba7054a1d9e00bcac4743b98";
|
|
292
|
-
config.terminalId = "3b98";
|
|
293
|
-
src_1.ServicesContainer.configureService(config, "secondService");
|
|
294
|
-
const primaryOwner = new BankAccountOwnershipData_1.BankAccountOwnershipData();
|
|
295
|
-
primaryOwner.firstName = "Style";
|
|
296
|
-
primaryOwner.lastName = "Stallone";
|
|
297
|
-
primaryOwner.phoneNumber = "123456789";
|
|
298
|
-
const ownerAddress = new src_1.Address();
|
|
299
|
-
primaryOwner.ownerAddress = ownerAddress;
|
|
300
|
-
const secondaryOwner = new BankAccountOwnershipData_1.BankAccountOwnershipData();
|
|
301
|
-
secondaryOwner.firstName = "Thomas";
|
|
302
|
-
secondaryOwner.lastName = "Hanks";
|
|
303
|
-
secondaryOwner.phoneNumber = "123456789";
|
|
304
|
-
const secondaryOwnerAddress = new src_1.Address();
|
|
305
|
-
secondaryOwnerAddress.streetAddress1 = "1970 Diamond Blvd";
|
|
306
|
-
secondaryOwnerAddress.streetAddress2 = "1971 Diamond Blvd";
|
|
307
|
-
secondaryOwnerAddress.streetAddress3 = "1972 Diamond Blvd";
|
|
308
|
-
secondaryOwnerAddress.city = "Orlando";
|
|
309
|
-
secondaryOwnerAddress.state = "FL";
|
|
310
|
-
secondaryOwnerAddress.postalCode = "X0A 0H0";
|
|
311
|
-
secondaryOwnerAddress.country = "CAN";
|
|
312
|
-
secondaryOwner.ownerAddress = secondaryOwnerAddress;
|
|
313
|
-
const response = await _service
|
|
314
|
-
.updateBankAccountOwnershipInfo()
|
|
315
|
-
.withAccountNumber("716016890")
|
|
316
|
-
.withPrimaryBankAccountOwner(primaryOwner)
|
|
317
|
-
.withSecondaryBankAccountOwner(secondaryOwner)
|
|
318
|
-
.execute("secondService");
|
|
319
|
-
t.truthy(response);
|
|
320
|
-
t.is("00", response.responseCode);
|
|
321
|
-
});
|
|
322
|
-
function getRandomInt(min, max) {
|
|
323
|
-
const floatRandom = Math.random();
|
|
324
|
-
const difference = max - min;
|
|
325
|
-
// random between 0 and the difference
|
|
326
|
-
const random = Math.round(difference * floatRandom);
|
|
327
|
-
const randomWithinRange = random + min;
|
|
328
|
-
return randomWithinRange;
|
|
329
|
-
}
|
|
330
|
-
//# sourceMappingURL=ProPayAccountTest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProPayAccountTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayAccountTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAA4E;AAE5E,gEAA6D;AAC7D,uFAAoF;AACpF,4EAAyE;AACzE,uGAAoG;AACpG,oFAAiF;AAEjF,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sBAAsB;IAC3B,8EAA8E,CAAC;AACjF,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,gBAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,eAAe,GAAG,iCAAe,CAAC,kBAAkB,EAAE,CAAC;IAC7D,MAAM,gBAAgB,GAAG,iCAAe,CAAC,eAAe,EAAE,CAAC;IAC3D,MAAM,mBAAmB,G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O,GAAG,KAAK,CAAC;IACtC,cAAc,CAAC,YAAY,GAAG,qBAAqB,CAAC;IAEpD,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,8BAA8B,EAAE;SAChC,iBAAiB,CAAC,WAAW,CAAC;SAC9B,2BAA2B,CAAC,YAAY,CAAC;SACzC,6BAA6B,CAAC,cAAc,CAAC;SAC7C,OAAO,CAAC,eAAe,CAAC,CAAC;IAE5B,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEH,SAAS,YAAY,CAAC,GAAW,EAAE,GAAW;IAC5C,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;IAClC,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;IAE7B,sCAAsC;IACtC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,WAAW,CAAC,CAAC;IACpD,MAAM,iBAAiB,GAAG,MAAM,GAAG,GAAG,CAAC;IAEvC,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ava_1 = __importDefault(require("ava"));
|
|
7
|
-
const PayFacService_1 = require("../../../../src/Services/PayFacService");
|
|
8
|
-
const src_1 = require("../../../../src");
|
|
9
|
-
const TestFundsData_1 = require("./TestData/TestFundsData");
|
|
10
|
-
const config = new src_1.PorticoConfig();
|
|
11
|
-
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
12
|
-
config.certificationStr = "4ee64cbd706400fb4a34e65aab6f48";
|
|
13
|
-
config.terminalId = "ab6f48";
|
|
14
|
-
config.selfSignedCertLocation =
|
|
15
|
-
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
16
|
-
const _service = new PayFacService_1.PayFacService();
|
|
17
|
-
ava_1.default.before(() => {
|
|
18
|
-
src_1.ServicesContainer.configureService(config);
|
|
19
|
-
});
|
|
20
|
-
(0, ava_1.default)("add funds", async (t) => {
|
|
21
|
-
t.plan(2);
|
|
22
|
-
const response = await _service
|
|
23
|
-
.addFunds()
|
|
24
|
-
.withAccountNumber("718134204")
|
|
25
|
-
.withAmount("10")
|
|
26
|
-
.execute();
|
|
27
|
-
t.truthy(response);
|
|
28
|
-
t.is("00", response.responseCode);
|
|
29
|
-
});
|
|
30
|
-
(0, ava_1.default)("sweep funds", async (t) => {
|
|
31
|
-
t.plan(2);
|
|
32
|
-
const response = await _service
|
|
33
|
-
.sweepFunds()
|
|
34
|
-
.withAccountNumber("718570822")
|
|
35
|
-
.withAmount("10")
|
|
36
|
-
.execute();
|
|
37
|
-
t.truthy(response);
|
|
38
|
-
t.is("00", response.responseCode);
|
|
39
|
-
});
|
|
40
|
-
(0, ava_1.default)("add flash funds payment card", async (t) => {
|
|
41
|
-
t.plan(2);
|
|
42
|
-
const response = await _service
|
|
43
|
-
.addCardFlashFunds()
|
|
44
|
-
.withAccountNumber("718136438")
|
|
45
|
-
.withFlashFundsPaymentCardData(TestFundsData_1.TestFundsData.GetFlashFundsPaymentCardData())
|
|
46
|
-
.execute();
|
|
47
|
-
t.truthy(response);
|
|
48
|
-
t.is("00", response.responseCode);
|
|
49
|
-
});
|
|
50
|
-
ava_1.default.skip("push money to flash funds card", async (t) => {
|
|
51
|
-
t.plan(2);
|
|
52
|
-
const response = await _service
|
|
53
|
-
.pushMoneyToFlashFundsCard()
|
|
54
|
-
.withAccountNumber("718136438")
|
|
55
|
-
.withAmount("100")
|
|
56
|
-
.execute();
|
|
57
|
-
t.truthy(response);
|
|
58
|
-
t.is("00", response.responseCode);
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=ProPayFundsTest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProPayFundsTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayFundsTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AACnE,4DAAyD;AAEzD,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sBAAsB;IAC3B,8EAA8E,CAAC;AACjF,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC5B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,QAAQ,EAAE;SACV,iBAAiB,CAAC,WAAW,CAAC;SAC9B,UAAU,CAAC,IAAI,CAAC;SAChB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,aAAa,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC9B,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;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";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const ava_1 = __importDefault(require("ava"));
|
|
7
|
-
const PayFacService_1 = require("../../../../src/Services/PayFacService");
|
|
8
|
-
const src_1 = require("../../../../src");
|
|
9
|
-
const config = new src_1.PorticoConfig();
|
|
10
|
-
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
11
|
-
config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd"; // other transactions except disburment based
|
|
12
|
-
config.terminalId = "7039dd";
|
|
13
|
-
config.selfSignedCertLocation =
|
|
14
|
-
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
15
|
-
const _service = new PayFacService_1.PayFacService();
|
|
16
|
-
ava_1.default.before(() => {
|
|
17
|
-
src_1.ServicesContainer.configureService(config);
|
|
18
|
-
});
|
|
19
|
-
(0, ava_1.default)("disburse funds", async (t) => {
|
|
20
|
-
t.plan(2);
|
|
21
|
-
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
22
|
-
config.certificationStr = "C7277D317D1840F5ADEBE600CF47B9"; // disburment of fund only
|
|
23
|
-
config.terminalId = "7039dd";
|
|
24
|
-
config.selfSignedCertLocation =
|
|
25
|
-
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
26
|
-
src_1.ServicesContainer.configureService(config);
|
|
27
|
-
const response = await _service
|
|
28
|
-
.disburseFunds()
|
|
29
|
-
.withReceivingAccountNumber("718136438")
|
|
30
|
-
.withAmount("100")
|
|
31
|
-
.execute();
|
|
32
|
-
t.truthy(response);
|
|
33
|
-
t.is("00", response.responseCode);
|
|
34
|
-
});
|
|
35
|
-
(0, ava_1.default)("spend back transaction", async (t) => {
|
|
36
|
-
t.plan(2);
|
|
37
|
-
const config = new src_1.PorticoConfig();
|
|
38
|
-
config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
|
|
39
|
-
const response = await _service
|
|
40
|
-
.spendBack()
|
|
41
|
-
.withAccountNumber("718136438")
|
|
42
|
-
.withReceivingAccountNumber("718567304")
|
|
43
|
-
.withAmount("100")
|
|
44
|
-
.withAllowPending(true)
|
|
45
|
-
.execute();
|
|
46
|
-
t.truthy(response);
|
|
47
|
-
t.is("00", response.responseCode);
|
|
48
|
-
});
|
|
49
|
-
/* before executing need to run Transaction Type 04 -> and from success response,
|
|
50
|
-
* the transNum value need to use here
|
|
51
|
-
*/
|
|
52
|
-
(0, ava_1.default)("split funds", async (t) => {
|
|
53
|
-
t.plan(2);
|
|
54
|
-
const response = await _service
|
|
55
|
-
.splitFunds()
|
|
56
|
-
.withAccountNumber("718567304")
|
|
57
|
-
.withReceivingAccountNumber("718136438")
|
|
58
|
-
.withAmount("100")
|
|
59
|
-
.withTransNum("9")
|
|
60
|
-
.execute();
|
|
61
|
-
t.truthy(response);
|
|
62
|
-
t.is("00", response.responseCode);
|
|
63
|
-
});
|
|
64
|
-
(0, ava_1.default)("reverse split pay", async (t) => {
|
|
65
|
-
t.plan(5);
|
|
66
|
-
const response = await _service
|
|
67
|
-
.reverseSplitPay()
|
|
68
|
-
.withAccountNumber("718136438")
|
|
69
|
-
.withAmount("1")
|
|
70
|
-
.withCCAmount("10")
|
|
71
|
-
.withRequireCCRefund(true)
|
|
72
|
-
.withTransNum("49")
|
|
73
|
-
.execute();
|
|
74
|
-
t.truthy(response);
|
|
75
|
-
t.is("00", response.responseCode);
|
|
76
|
-
t.truthy(response.payFacData.amount);
|
|
77
|
-
t.truthy(response.payFacData.recAccountNum);
|
|
78
|
-
t.truthy(response.payFacData.transNum);
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=ProPayInNetworkTransactionTest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProPayInNetworkTransactionTest.js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SAC9B,UAAU,CAAC,GAAG,CAAC;SACf,YAAY,CAAC,IAAI,CAAC;SAClB,mBAAmB,CAAC,IAAI,CAAC;SACzB,YAAY,CAAC,IAAI,CAAC;SAClB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
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 GetBankAccountData(): BankAccountData;
|
|
16
|
-
static GetOrderNewDeviceData(): OrderDevice;
|
|
17
|
-
static GetDeviceDataForOrderDevice(numDeviceTypes?: number, withAttributes?: boolean): DeviceData;
|
|
18
|
-
static GetBusinessData(): BusinessData;
|
|
19
|
-
static GetUserPersonalData(): UserPersonalData;
|
|
20
|
-
static GetThreatRiskData(): ThreatRiskData;
|
|
21
|
-
static GetSignificantOwnerData(): SignificantOwnerData;
|
|
22
|
-
static GetBeneficialOwnerData(): BeneficialOwnerData;
|
|
23
|
-
static GetCreditCardData(): CreditCardData;
|
|
24
|
-
static GetACHData(): BankAccountData;
|
|
25
|
-
static GetMailingAddress(): Address;
|
|
26
|
-
static GetSecondaryBankAccountData(): BankAccountData;
|
|
27
|
-
static GetGrossBillingSettleData(): GrossBillingInformation;
|
|
28
|
-
static GetAccountPermissions(): AccountPermissions;
|
|
29
|
-
static GetRenewAccountDetails(): RenewAccountData;
|
|
30
|
-
static GetDeviceData(numDeviceTypes?: number, withAttributes?: boolean): DeviceData;
|
|
31
|
-
static GetDocumentBase64String(filepath: string): string;
|
|
32
|
-
private static getByteArray;
|
|
33
|
-
static getRandomInt(min: number, max: number): number;
|
|
34
|
-
}
|