globalpayments-api 3.5.1-fix-4 → 3.5.3

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.
Files changed (171) hide show
  1. package/CHANGELOG.md +107 -88
  2. package/lib/src/Gateways/PorticoConnector.js +0 -3
  3. package/lib/src/Gateways/PorticoConnector.js.map +1 -1
  4. package/package.json +71 -65
  5. package/.eslintignore +0 -9
  6. package/.eslintrc.cjs +0 -39
  7. package/.prettierrc +0 -14
  8. package/.travis.yml +0 -25
  9. package/lib/test/Data/BaseGpApiTestConfig.d.ts +0 -14
  10. package/lib/test/Data/BaseGpApiTestConfig.js +0 -50
  11. package/lib/test/Data/BaseGpApiTestConfig.js.map +0 -1
  12. package/lib/test/Data/TestCards.d.ts +0 -24
  13. package/lib/test/Data/TestCards.js +0 -220
  14. package/lib/test/Data/TestCards.js.map +0 -1
  15. package/lib/test/Data/TestChecks.d.ts +0 -4
  16. package/lib/test/Data/TestChecks.js +0 -27
  17. package/lib/test/Data/TestChecks.js.map +0 -1
  18. package/lib/test/Data/index.d.ts +0 -2
  19. package/lib/test/Data/index.js +0 -19
  20. package/lib/test/Data/index.js.map +0 -1
  21. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
  22. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
  23. package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
  24. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
  25. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -1023
  26. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
  27. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +0 -1
  28. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +0 -439
  29. package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +0 -1
  30. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +0 -1
  31. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +0 -143
  32. package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +0 -1
  33. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +0 -1
  34. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +0 -434
  35. package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +0 -1
  36. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
  37. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
  38. package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
  39. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +0 -1
  40. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +0 -337
  41. package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +0 -1
  42. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
  43. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
  44. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
  45. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
  46. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
  47. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
  48. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
  49. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
  50. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
  51. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
  52. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
  53. package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
  54. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  55. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
  56. package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  57. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
  58. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
  59. package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
  60. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
  61. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
  62. package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
  63. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
  64. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
  65. package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
  66. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
  67. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
  68. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
  69. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
  70. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
  71. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
  72. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
  73. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
  74. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
  75. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
  76. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
  77. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
  78. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
  79. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
  80. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
  81. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
  82. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
  83. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
  84. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
  85. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
  86. package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
  87. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
  88. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
  89. package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
  90. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
  91. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -82
  92. package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
  93. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
  94. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
  95. package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
  96. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
  97. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -111
  98. package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
  99. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
  100. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
  101. package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
  102. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
  103. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
  104. package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
  105. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
  106. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
  107. package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
  108. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
  109. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
  110. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
  111. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
  112. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
  113. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
  114. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
  115. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
  116. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
  117. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
  118. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
  119. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
  120. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
  121. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -393
  122. package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
  123. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
  124. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
  125. package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
  126. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
  127. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
  128. package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
  129. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
  130. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
  131. package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
  132. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
  133. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
  134. package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
  135. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -34
  136. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -322
  137. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
  138. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
  139. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -28
  140. package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
  141. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +0 -4
  142. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +0 -10
  143. package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +0 -1
  144. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
  145. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
  146. package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
  147. package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
  148. package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
  149. package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
  150. package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
  151. package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
  152. package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
  153. package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
  154. package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
  155. package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
  156. package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
  157. package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
  158. package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
  159. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
  160. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
  161. package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
  162. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
  163. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
  164. package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
  165. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
  166. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
  167. package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
  168. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
  169. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
  170. package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
  171. package/tsconfig.eslint.json +0 -15
@@ -1,393 +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
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.TestAccountData = void 0;
27
- const AccountPermissions_1 = require("../../../../../../src/Entities/ProFac/AccountPermissions");
28
- const BankAccountData_1 = require("../../../../../../src/Entities/ProFac/BankAccountData");
29
- const BeneficialOwnerData_1 = require("../../../../../../src/Entities/ProFac/BeneficialOwnerData");
30
- const BusinessData_1 = require("../../../../../../src/Entities/ProFac/BusinessData");
31
- const DeviceData_1 = require("../../../../../../src/Entities/ProFac/DeviceData");
32
- const DeviceInfo_1 = require("../../../../../../src/Entities/ProFac/DeviceInfo");
33
- const GrossBillingInformation_1 = require("../../../../../../src/Entities/ProFac/GrossBillingInformation");
34
- const OwnersData_1 = require("../../../../../../src/Entities/ProFac/OwnersData");
35
- const RenewAccountData_1 = require("../../../../../../src/Entities/ProFac/RenewAccountData");
36
- const SignificantOwnerData_1 = require("../../../../../../src/Entities/ProFac/SignificantOwnerData");
37
- const ThreatRiskData_1 = require("../../../../../../src/Entities/ProFac/ThreatRiskData");
38
- const UserPersonalData_1 = require("../../../../../../src/Entities/ProFac/UserPersonalData");
39
- const PaymentMethods_1 = require("../../../../../../src/PaymentMethods");
40
- const fs = __importStar(require("fs"));
41
- const DeviceAttributeInfo_1 = require("../../../../../../src/Entities/ProFac/DeviceAttributeInfo");
42
- const Address_1 = require("../../../../../../src/Entities/Address");
43
- const src_1 = require("../../../../../../src");
44
- const OrderDevice_1 = require("../../../../../../src/Entities/ProFac/OrderDevice");
45
- class TestAccountData {
46
- static GetBankAccountForBoardingData() {
47
- const bankAccountInformation = new BankAccountData_1.BankAccountData();
48
- bankAccountInformation.accountCountryCode = "USA";
49
- bankAccountInformation.accountName = "Account Name";
50
- bankAccountInformation.accountNumber = "123456";
51
- bankAccountInformation.accountOwnershipType = "Personal";
52
- bankAccountInformation.accountType = "Checking";
53
- bankAccountInformation.bankName = "First Union";
54
- bankAccountInformation.routingNumber = "083908420";
55
- return bankAccountInformation;
56
- }
57
- static GetBankAccountData() {
58
- const bankAccountInformation = new BankAccountData_1.BankAccountData();
59
- bankAccountInformation.accountCountryCode = "USA";
60
- bankAccountInformation.accountName = "MyBankAccount";
61
- bankAccountInformation.accountNumber = "123456789";
62
- bankAccountInformation.accountOwnershipType = "C";
63
- bankAccountInformation.routingNumber = "102000076";
64
- return bankAccountInformation;
65
- }
66
- static GetBusinessForBoardingData() {
67
- const businessData = new BusinessData_1.BusinessData();
68
- businessData.businessLegalName = "A Legal Business LLC";
69
- businessData.doingBusinessAs = "DBA";
70
- businessData.employerIdentificationNumber = String(this.getRandomInt(100000000, 999999999)); //987654321
71
- businessData.businessDescription = "My eBusiness";
72
- businessData.websiteURL = "wwwbusinessweb";
73
- businessData.merchantCategoryCode = ""; //"5399";
74
- businessData.monthlyBankCardVolume = "2000000";
75
- businessData.averageTicket = "15000";
76
- businessData.highestTicket = "80000";
77
- const businessAddress = new Address_1.Address();
78
- businessAddress.streetAddress1 = "120";
79
- businessAddress.streetAddress2 = "Apt 3";
80
- businessAddress.city = "Atlanta";
81
- businessAddress.state = "GA";
82
- businessAddress.postalCode = "30346";
83
- businessAddress.country = "USA";
84
- businessData.businessAddress = businessAddress;
85
- return businessData;
86
- }
87
- static GetOrderNewDeviceData() {
88
- const orderDevice = new OrderDevice_1.OrderDevice();
89
- orderDevice.accountNum = 718576800; // 718576953;//718576800;// 718576798;// 718576799;
90
- orderDevice.shipTo = "Test Company";
91
- orderDevice.shipToContact = "John Q. Public";
92
- orderDevice.shipToAddress = "2675 W 600 N";
93
- orderDevice.shipToAddress2 = "Apt G";
94
- orderDevice.shipToCity = "Lindon";
95
- orderDevice.shipToState = "UT";
96
- orderDevice.shipToZip = "84042";
97
- orderDevice.shipToPhone = "801-555-1212";
98
- orderDevice.cardholderName = "Johnny Cage";
99
- orderDevice.ccNum = "4111111111111111";
100
- orderDevice.expDate = "0427";
101
- orderDevice.cVV2 = "999";
102
- orderDevice.billingZip = "84003";
103
- return orderDevice;
104
- }
105
- static GetBusinessData() {
106
- const businessData = new BusinessData_1.BusinessData();
107
- businessData.businessLegalName = "LegalName";
108
- businessData.doingBusinessAs = "PPA";
109
- businessData.employerIdentificationNumber = String(this.getRandomInt(100000000, 999999999));
110
- businessData.businessDescription = "Accounting Services";
111
- businessData.websiteURL = "https://www.propay.com";
112
- businessData.merchantCategoryCode = "5399";
113
- businessData.monthlyBankCardVolume = "50000";
114
- businessData.averageTicket = "100";
115
- businessData.highestTicket = "300";
116
- const businessAddress = new Address_1.Address();
117
- businessAddress.streetAddress1 = "123 Main St.";
118
- businessAddress.city = "Downtown";
119
- businessAddress.state = "NJ";
120
- businessAddress.postalCode = "12345";
121
- businessAddress.country = "USA";
122
- businessData.businessAddress = businessAddress;
123
- return businessData;
124
- }
125
- static GetUserPersonalForBoadingData(dob = "01-01-1981") {
126
- const accountPersonalInformation = new UserPersonalData_1.UserPersonalData();
127
- accountPersonalInformation.dayPhone = "4464464464";
128
- accountPersonalInformation.eveningPhone = "4464464464";
129
- accountPersonalInformation.firstName = "John";
130
- accountPersonalInformation.lastName = "Doe";
131
- accountPersonalInformation.phonePIN = "1234";
132
- accountPersonalInformation.sourceEmail =
133
- "userA" + this.getRandomInt(1, 10000) + "@user.com";
134
- accountPersonalInformation.sSN = "123456789";
135
- accountPersonalInformation.dateOfBirth = dob;
136
- accountPersonalInformation.tier = "test";
137
- accountPersonalInformation.notificationEmail = "Partner@partner.com";
138
- accountPersonalInformation.currencyCode = "USD";
139
- accountPersonalInformation.ipSignup = "4.14.150.145";
140
- accountPersonalInformation.uSCitizen = true;
141
- accountPersonalInformation.bOAttestation = true;
142
- accountPersonalInformation.termsAcceptanceIP = "4.14.150.145";
143
- accountPersonalInformation.termsAcceptanceTimeStamp =
144
- "2022-10-27 12:57:08.2021237";
145
- accountPersonalInformation.termsVersion = src_1.PropayTermsVersion.merchantUS;
146
- const userAddress = new Address_1.Address();
147
- userAddress.streetAddress1 = "123 Main St.";
148
- userAddress.city = "Atlanta";
149
- userAddress.state = "GA";
150
- userAddress.postalCode = "30346";
151
- userAddress.country = "USA";
152
- accountPersonalInformation.userAddress = userAddress;
153
- return accountPersonalInformation;
154
- }
155
- static GetUserPersonalData() {
156
- const accountPersonalInformation = new UserPersonalData_1.UserPersonalData();
157
- accountPersonalInformation.dayPhone = "4464464464";
158
- accountPersonalInformation.eveningPhone = "4464464464";
159
- accountPersonalInformation.externalID = String(this.getRandomInt(1000000, 999999999));
160
- accountPersonalInformation.firstName = "John";
161
- accountPersonalInformation.lastName = "Doe";
162
- accountPersonalInformation.phonePIN = "1234";
163
- accountPersonalInformation.sourceEmail =
164
- "user" + this.getRandomInt(1, 10000) + "@user.com";
165
- accountPersonalInformation.sSN = "123456789";
166
- accountPersonalInformation.dateOfBirth = "01-01-1981";
167
- accountPersonalInformation.tier = "CardOnly";
168
- const userAddress = new Address_1.Address();
169
- userAddress.streetAddress1 = "123 Main St.";
170
- userAddress.city = "Downtown";
171
- userAddress.state = "NJ";
172
- userAddress.postalCode = "12345";
173
- userAddress.country = "USA";
174
- accountPersonalInformation.userAddress = userAddress;
175
- return accountPersonalInformation;
176
- }
177
- static GetUserPersonalDeviceOrderTestData() {
178
- const accountPersonalInformation = new UserPersonalData_1.UserPersonalData();
179
- accountPersonalInformation.dayPhone = "4464464464";
180
- accountPersonalInformation.eveningPhone = "4464464464";
181
- accountPersonalInformation.externalID = String(this.getRandomInt(1000000, 999999999));
182
- accountPersonalInformation.firstName = "John";
183
- accountPersonalInformation.lastName = "Doe";
184
- accountPersonalInformation.phonePIN = "1234";
185
- accountPersonalInformation.sourceEmail =
186
- "user" + this.getRandomInt(1, 10000) + "@user.com";
187
- accountPersonalInformation.sSN = "123456789";
188
- accountPersonalInformation.dateOfBirth = "01-01-1981";
189
- accountPersonalInformation.tier = "test";
190
- accountPersonalInformation.notificationEmail = "";
191
- accountPersonalInformation.currencyCode = "";
192
- const userAddress = new Address_1.Address();
193
- userAddress.streetAddress1 = "123 Main St.";
194
- userAddress.city = "Downtown";
195
- userAddress.state = "NJ";
196
- userAddress.postalCode = "12345";
197
- userAddress.country = "USA";
198
- accountPersonalInformation.userAddress = userAddress;
199
- return accountPersonalInformation;
200
- }
201
- static GetThreatRiskData() {
202
- const threatRiskData = new ThreatRiskData_1.ThreatRiskData();
203
- threatRiskData.merchantSourceIP = "8.8.8.8";
204
- threatRiskData.threatMetrixPolicy = "Default";
205
- threatRiskData.threatMetrixSessionID =
206
- "dad889c1-1ca4-4fq71-8f6f-807eb4408bc7";
207
- return threatRiskData;
208
- }
209
- static GetSignificantOwnerData() {
210
- const significantOwnerData = new SignificantOwnerData_1.SignificantOwnerData();
211
- significantOwnerData.authorizedSignerFirstName = "John";
212
- significantOwnerData.authorizedSignerLastName = "Doe";
213
- significantOwnerData.authorizedSignerTitle = "Director";
214
- significantOwnerData.significantOwner.firstName = "John";
215
- return significantOwnerData;
216
- }
217
- static GetBeneficialOwnerData() {
218
- const ownersInformation = new BeneficialOwnerData_1.BeneficialOwnerData();
219
- ownersInformation.ownersCount = "2";
220
- const firstOwner = new OwnersData_1.OwnersData();
221
- firstOwner.firstName = "First1";
222
- firstOwner.lastName = "Last1";
223
- firstOwner.title = "CEO";
224
- firstOwner.email = "abc@qamail.com";
225
- firstOwner.DateOfBirth = "11-11-1988";
226
- firstOwner.sSN = "123545677";
227
- const firstOwnerAddress = new Address_1.Address();
228
- firstOwnerAddress.streetAddress1 = "123 Main St.";
229
- firstOwnerAddress.city = "Downtown";
230
- firstOwnerAddress.state = "NJ";
231
- firstOwnerAddress.postalCode = "12345";
232
- firstOwnerAddress.country = "USA";
233
- firstOwner.ownerAddress = firstOwnerAddress;
234
- //Second Owner
235
- const secondOwner = new OwnersData_1.OwnersData();
236
- secondOwner.firstName = "First2";
237
- secondOwner.lastName = "Last2";
238
- secondOwner.title = "Director";
239
- secondOwner.email = "abc1@qamail.com";
240
- secondOwner.DateOfBirth = "11-11-1989";
241
- secondOwner.sSN = "123545677";
242
- const secondOwnerAddress = new Address_1.Address();
243
- secondOwnerAddress.streetAddress1 = "123 Main St.";
244
- secondOwnerAddress.city = "Downtown";
245
- secondOwnerAddress.state = "NJ";
246
- secondOwnerAddress.postalCode = "12345";
247
- secondOwnerAddress.country = "USA";
248
- secondOwner.ownerAddress = secondOwnerAddress;
249
- ownersInformation.ownersList = [firstOwner]; //, secondOwner]
250
- return ownersInformation;
251
- }
252
- static GetCreditCardData() {
253
- const card = new PaymentMethods_1.CreditCardData();
254
- card.number = "4111111111111111";
255
- card.expMonth = "12";
256
- card.expYear = "2025";
257
- card.cvn = "123";
258
- card.cardHolderName = "Joe Smith";
259
- return card;
260
- }
261
- static GetACHData() {
262
- const bankAccountInformation = new BankAccountData_1.BankAccountData();
263
- bankAccountInformation.accountNumber = "123456789";
264
- bankAccountInformation.accountType = "C";
265
- bankAccountInformation.routingNumber = "102000076";
266
- return bankAccountInformation;
267
- }
268
- static GetMailingAddressForBoarding() {
269
- const address = new Address_1.Address();
270
- address.streetAddress1 = "123 Main St.";
271
- address.city = "Downtown";
272
- address.state = "NJ";
273
- address.postalCode = "12345";
274
- address.country = "USA";
275
- return address;
276
- }
277
- static GetMailingAddress() {
278
- const address = new Address_1.Address();
279
- address.streetAddress1 = "123 Main St.";
280
- address.city = "Downtown";
281
- address.state = "NJ";
282
- address.postalCode = "12345";
283
- address.country = "USA";
284
- return address;
285
- }
286
- static GetSecondaryBankAccountData() {
287
- const bankAccountInformation = new BankAccountData_1.BankAccountData();
288
- bankAccountInformation.accountCountryCode = "USA";
289
- bankAccountInformation.accountName = "MyBankAccount";
290
- bankAccountInformation.accountNumber = "123456788";
291
- bankAccountInformation.accountOwnershipType = "Personal";
292
- bankAccountInformation.accountType = "C";
293
- bankAccountInformation.routingNumber = "102000076";
294
- return bankAccountInformation;
295
- }
296
- static GetGrossBillingSettleData() {
297
- const grossBillingInformation = new GrossBillingInformation_1.GrossBillingInformation();
298
- const grossSettleBankData = new BankAccountData_1.BankAccountData();
299
- grossSettleBankData.accountCountryCode = "USA";
300
- grossSettleBankData.accountName = "MyBankAccount";
301
- grossSettleBankData.accountNumber = "123456788";
302
- grossSettleBankData.accountOwnershipType = "Personal";
303
- grossSettleBankData.accountType = "C";
304
- grossSettleBankData.routingNumber = "102000076";
305
- grossSettleBankData.accountHolderName = "John";
306
- grossBillingInformation.grossSettleBankData = grossSettleBankData;
307
- const grossSettleAddress = new Address_1.Address();
308
- grossSettleAddress.streetAddress1 = "123 Main St.";
309
- grossSettleAddress.city = "Downtown";
310
- grossSettleAddress.state = "NJ";
311
- grossSettleAddress.postalCode = "12345";
312
- grossSettleAddress.country = "USA";
313
- grossBillingInformation.grossSettleAddress = grossSettleAddress;
314
- const grossSettleCreditCardData = new PaymentMethods_1.CreditCardData();
315
- grossSettleCreditCardData.number = "4111111111111111";
316
- grossSettleCreditCardData.expMonth = "12";
317
- grossSettleCreditCardData.expYear = "2025";
318
- grossSettleCreditCardData.cvn = "123";
319
- grossSettleCreditCardData.cardHolderName = "Joe Smith";
320
- grossBillingInformation.grossSettleCreditCardData =
321
- grossSettleCreditCardData;
322
- return grossBillingInformation;
323
- }
324
- static GetAccountPermissions() {
325
- const accountPermissions = new AccountPermissions_1.AccountPermissions();
326
- accountPermissions.cCProcessing = true;
327
- return accountPermissions;
328
- }
329
- static GetRenewAccountDetails() {
330
- const renewAccountData = new RenewAccountData_1.RenewAccountData();
331
- renewAccountData.tier = "CardOnly";
332
- return renewAccountData;
333
- }
334
- static GetDeviceDataForPhysicalDevice(numDeviceTypes = 1, withAttributes = true) {
335
- const deviceTypes = ["Secure Submit", "TestDevice"];
336
- const deviceData = new DeviceData_1.DeviceData();
337
- deviceData.devices = Array();
338
- for (let i = 0; i < numDeviceTypes; i++) {
339
- const deviceInfo = new DeviceInfo_1.DeviceInfo();
340
- if (i >= deviceTypes.length)
341
- break;
342
- deviceInfo.name = deviceTypes[i];
343
- deviceInfo.quantity = 1;
344
- if (withAttributes) {
345
- const deviceAtrributeInfo = new DeviceAttributeInfo_1.DeviceAttributeInfo();
346
- deviceAtrributeInfo.name = "Heartland.AMD.OfficeKey";
347
- deviceAtrributeInfo.value = "123456";
348
- deviceInfo.attributes = [deviceAtrributeInfo];
349
- }
350
- deviceData.devices = [deviceInfo];
351
- }
352
- return deviceData;
353
- }
354
- static GetDeviceData(numDeviceTypes = 1, withAttributes = true) {
355
- const deviceTypes = ["Secure Submit"];
356
- const deviceData = new DeviceData_1.DeviceData();
357
- deviceData.devices = Array();
358
- for (let i = 0; i < numDeviceTypes; i++) {
359
- const deviceInfo = new DeviceInfo_1.DeviceInfo();
360
- if (i >= deviceTypes.length)
361
- break;
362
- deviceInfo.name = deviceTypes[i];
363
- deviceInfo.quantity = 1;
364
- if (withAttributes) {
365
- const deviceAtrributeInfo = new DeviceAttributeInfo_1.DeviceAttributeInfo();
366
- deviceAtrributeInfo.name = "Heartland.AMD.OfficeKey";
367
- deviceAtrributeInfo.value = "123456";
368
- deviceInfo.attributes = [deviceAtrributeInfo];
369
- }
370
- deviceData.devices = [deviceInfo];
371
- }
372
- return deviceData;
373
- }
374
- static GetDocumentBase64String(filepath) {
375
- return this.getByteArray(filepath);
376
- }
377
- static getByteArray(filePath) {
378
- const fileData = fs.readFileSync(filePath);
379
- const buff = Buffer.from(fileData);
380
- const base64data = buff.toString("base64");
381
- return base64data;
382
- }
383
- static getRandomInt(min, max) {
384
- const floatRandom = Math.random();
385
- const difference = max - min;
386
- // random between 0 and the difference
387
- const random = Math.round(difference * floatRandom);
388
- const randomWithinRange = random + min;
389
- return randomWithinRange;
390
- }
391
- }
392
- exports.TestAccountData = TestAccountData;
393
- //# sourceMappingURL=TestAccountData.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestAccountData.js","sourceRoot":"","sources":["../../../../../../../test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iGAA8F;AAC9F,2FAAwF;AACxF,mGAAgG;AAChG,qFAAkF;AAClF,iFAA8E;AAC9E,iFAA8E;AAC9E,2GAAwG;AACxG,iFAA8E;AAC9E,6FAA0F;AAC1F,qGAAkG;AAClG,yFAAsF;AACtF,6FAA0F;AAC1F,yEAAsE;AACtE,uCAAyB;AACzB,mGAAgG;AAChG,oEAAiE;AACjE,+CAA2D;AAC3D,mFAAgF;AAEhF,MAAa,eAAe;IACnB,MAAM,CAAC,6BAA6B;QACzC,MAAM,sBA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AAC,UAAU,CAAC,CAAC;SACnC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,uBAAuB,CAAC,QAAgB;QACpD,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,CAAC;IAEO,MAAM,CAAC,YAAY,CAAC,QAAgB;QAC1C,MAAM,QAAQ,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QAC3C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAC3C,OAAO,UAAU,CAAC;IACpB,CAAC;IAEM,MAAM,CAAC,YAAY,CAAC,GAAW,EAAE,GAAW;QACjD,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAClC,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;QAE7B,sCAAsC;QACtC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,WAAW,CAAC,CAAC;QACpD,MAAM,iBAAiB,GAAG,MAAM,GAAG,GAAG,CAAC;QAEvC,OAAO,iBAAiB,CAAC;IAC3B,CAAC;CACF;AAxYD,0CAwYC"}
@@ -1,44 +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 config = new src_1.PorticoConfig();
10
- config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
11
- config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
12
- config.terminalId = "7039dd";
13
- const _service = new PayFacService_1.PayFacService();
14
- ava_1.default.before(() => {
15
- src_1.ServicesContainer.configureService(config);
16
- });
17
- (0, ava_1.default)("get account balance", async (t) => {
18
- t.plan(2);
19
- const response = await _service
20
- .getAccountBalance()
21
- .withAccountNumber("718135687")
22
- .execute();
23
- t.truthy(response);
24
- t.is("00", response.responseCode);
25
- });
26
- (0, ava_1.default)("get account info", async (t) => {
27
- t.plan(2);
28
- const response = await _service
29
- .getAccountDetails()
30
- .withAccountNumber("718135687")
31
- .execute();
32
- t.truthy(response);
33
- t.is("00", response.responseCode);
34
- });
35
- (0, ava_1.default)("get account info enchance", async (t) => {
36
- t.plan(2);
37
- const response = await _service
38
- .getAccountDetailsEnhanced()
39
- .withAccountNumber("718135687")
40
- .execute();
41
- t.truthy(response);
42
- t.is("00", response.responseCode);
43
- });
44
- //# sourceMappingURL=GetInformationTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GetInformationTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/GetInformationTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AAEnE,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,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,qBAAqB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACtC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,iBAAiB,EAAE;SACnB,iBAAiB,CAAC,WAAW,CAAC;SAC9B,OAAO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