globalpayments-api 3.5.3 → 3.6.2-fix
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 +19 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +25 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.d.ts +20 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js +413 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +2 -2
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +2 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -1
- package/lib/src/Builders/Secure3dBuilder.d.ts +90 -0
- package/lib/src/Builders/Secure3dBuilder.js +423 -0
- package/lib/src/Builders/Secure3dBuilder.js.map +1 -0
- package/lib/src/Builders/SecureBuilder.d.ts +446 -0
- package/lib/src/Builders/SecureBuilder.js +729 -0
- package/lib/src/Builders/SecureBuilder.js.map +1 -0
- package/lib/src/Builders/index.d.ts +2 -0
- package/lib/src/Builders/index.js +2 -0
- package/lib/src/Builders/index.js.map +1 -1
- package/lib/src/ConfiguredServices.d.ts +5 -1
- package/lib/src/ConfiguredServices.js +20 -0
- package/lib/src/ConfiguredServices.js.map +1 -1
- package/lib/src/Entities/BrowserData.d.ts +13 -0
- package/lib/src/Entities/BrowserData.js +18 -0
- package/lib/src/Entities/BrowserData.js.map +1 -0
- package/lib/src/Entities/Enums/IsoCountries.d.ts +9 -0
- package/lib/src/Entities/Enums/IsoCountries.js +1941 -0
- package/lib/src/Entities/Enums/IsoCountries.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +149 -0
- package/lib/src/Entities/Enums.js +173 -2
- package/lib/src/Entities/Enums.js.map +1 -1
- package/lib/src/Entities/IRequestBuilder.d.ts +3 -3
- package/lib/src/Entities/MerchantDataCollection.d.ts +16 -0
- package/lib/src/Entities/MerchantDataCollection.js +102 -0
- package/lib/src/Entities/MerchantDataCollection.js.map +1 -0
- package/lib/src/Entities/MerchantKVP.d.ts +11 -0
- package/lib/src/Entities/MerchantKVP.js +28 -0
- package/lib/src/Entities/MerchantKVP.js.map +1 -0
- package/lib/src/Entities/MessageExtension.d.ts +6 -0
- package/lib/src/Entities/MessageExtension.js +11 -0
- package/lib/src/Entities/MessageExtension.js.map +1 -0
- package/lib/src/Entities/MobileData.d.ts +11 -0
- package/lib/src/Entities/MobileData.js +15 -0
- package/lib/src/Entities/MobileData.js.map +1 -0
- package/lib/src/Entities/ThreeDSecure.d.ts +66 -0
- package/lib/src/Entities/ThreeDSecure.js +162 -0
- package/lib/src/Entities/ThreeDSecure.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +2 -1
- package/lib/src/Entities/Transaction.js +1 -0
- package/lib/src/Entities/Transaction.js.map +1 -1
- package/lib/src/Entities/index.d.ts +7 -0
- package/lib/src/Entities/index.js +7 -0
- package/lib/src/Entities/index.js.map +1 -1
- package/lib/src/Gateways/GpApiConnector.d.ts +2 -1
- package/lib/src/Gateways/GpApiConnector.js +7 -0
- package/lib/src/Gateways/GpApiConnector.js.map +1 -1
- package/lib/src/Gateways/PayPlanConnector.d.ts +1 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +5 -5
- package/lib/src/Gateways/PorticoConnector.js +25 -0
- package/lib/src/Gateways/PorticoConnector.js.map +1 -1
- package/lib/src/Mapping/EnumMapping.d.ts +3 -1
- package/lib/src/Mapping/EnumMapping.js +26 -0
- package/lib/src/Mapping/EnumMapping.js.map +1 -1
- package/lib/src/Mapping/GpApiMapping.d.ts +1 -0
- package/lib/src/Mapping/GpApiMapping.js +96 -0
- package/lib/src/Mapping/GpApiMapping.js.map +1 -1
- package/lib/src/Mapping/GpEcomMapping.d.ts +1 -1
- package/lib/src/PaymentMethods/Credit.d.ts +2 -2
- package/lib/src/PaymentMethods/Credit.js +1 -1
- package/lib/src/PaymentMethods/Credit.js.map +1 -1
- package/lib/src/PaymentMethods/Interfaces.d.ts +4 -0
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +2 -0
- package/lib/src/PaymentMethods/PaymentMethod.js +6 -0
- package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -1
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +2 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -1
- package/lib/src/Services/Secure3dService.d.ts +8 -0
- package/lib/src/Services/Secure3dService.js +21 -0
- package/lib/src/Services/Secure3dService.js.map +1 -0
- package/lib/src/Services/index.d.ts +1 -0
- package/lib/src/Services/index.js +1 -0
- package/lib/src/Services/index.js.map +1 -1
- package/lib/src/ServicesContainer.d.ts +2 -1
- package/lib/src/ServicesContainer.js +15 -0
- package/lib/src/ServicesContainer.js.map +1 -1
- package/lib/src/Utils/CountryUtils.d.ts +9 -0
- package/lib/src/Utils/CountryUtils.js +131 -0
- package/lib/src/Utils/CountryUtils.js.map +1 -0
- package/lib/src/Utils/StringUtils.d.ts +2 -0
- package/lib/src/Utils/StringUtils.js +15 -0
- package/lib/src/Utils/StringUtils.js.map +1 -1
- package/lib/src/Utils/index.d.ts +1 -0
- package/lib/src/Utils/index.js +1 -0
- package/lib/src/Utils/index.js.map +1 -1
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +14 -0
- package/lib/test/Data/BaseGpApiTestConfig.js +50 -0
- package/lib/test/Data/BaseGpApiTestConfig.js.map +1 -0
- package/lib/test/Data/GpApi3DSTestCards.d.ts +17 -0
- package/lib/test/Data/GpApi3DSTestCards.js +22 -0
- package/lib/test/Data/GpApi3DSTestCards.js.map +1 -0
- package/lib/test/Data/TestCards.d.ts +24 -0
- package/lib/test/Data/TestCards.js +220 -0
- package/lib/test/Data/TestCards.js.map +1 -0
- package/lib/test/Data/TestChecks.d.ts +4 -0
- package/lib/test/Data/TestChecks.js +27 -0
- package/lib/test/Data/TestChecks.js.map +1 -0
- package/lib/test/Data/index.d.ts +4 -0
- package/lib/test/Data/index.js +21 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/AcsResponse.d.ts +12 -0
- package/lib/test/Integration/Gateways/AcsResponse.js +33 -0
- package/lib/test/Integration/Gateways/AcsResponse.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +1029 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +649 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1023 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +337 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +88 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +111 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js +48 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +16 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +212 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
- package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
- package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
- package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
- package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,322 @@
|
|
|
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 OrderDevice_1 = require("../../../../../src/Entities/ProFac/OrderDevice");
|
|
44
|
+
class TestAccountData {
|
|
45
|
+
static GetBankAccountData() {
|
|
46
|
+
const bankAccountInformation = new BankAccountData_1.BankAccountData();
|
|
47
|
+
bankAccountInformation.accountCountryCode = "USA";
|
|
48
|
+
bankAccountInformation.accountName = "MyBankAccount";
|
|
49
|
+
bankAccountInformation.accountNumber = "123456789";
|
|
50
|
+
bankAccountInformation.accountOwnershipType = "C";
|
|
51
|
+
bankAccountInformation.routingNumber = "102000076";
|
|
52
|
+
return bankAccountInformation;
|
|
53
|
+
}
|
|
54
|
+
static GetOrderNewDeviceData() {
|
|
55
|
+
const orderDevice = new OrderDevice_1.OrderDevice();
|
|
56
|
+
orderDevice.accountNum = 718581359;
|
|
57
|
+
orderDevice.shipTo = "Test Company";
|
|
58
|
+
orderDevice.shipToContact = "John Q. Public";
|
|
59
|
+
orderDevice.shipToAddress = "2675 W 600 N";
|
|
60
|
+
orderDevice.shipToAddress2 = "Apt G";
|
|
61
|
+
orderDevice.shipToCity = "Lindon";
|
|
62
|
+
orderDevice.shipToState = "UT";
|
|
63
|
+
orderDevice.shipToZip = "84042";
|
|
64
|
+
orderDevice.shipToPhone = "801-555-1212";
|
|
65
|
+
orderDevice.cardholderName = "Johnny Cage";
|
|
66
|
+
orderDevice.ccNum = "4111111111111111";
|
|
67
|
+
orderDevice.expDate = "0427";
|
|
68
|
+
orderDevice.cVV2 = "999";
|
|
69
|
+
orderDevice.billingZip = "84003";
|
|
70
|
+
return orderDevice;
|
|
71
|
+
}
|
|
72
|
+
static GetDeviceDataForOrderDevice(numDeviceTypes = 1, withAttributes = true) {
|
|
73
|
+
const deviceTypes = ["Secure Submit"];
|
|
74
|
+
const deviceData = new DeviceData_1.DeviceData();
|
|
75
|
+
deviceData.devices = Array();
|
|
76
|
+
for (let i = 0; i < numDeviceTypes; i++) {
|
|
77
|
+
const deviceInfo = new DeviceInfo_1.DeviceInfo();
|
|
78
|
+
if (i >= deviceTypes.length)
|
|
79
|
+
break;
|
|
80
|
+
deviceInfo.name = deviceTypes[i];
|
|
81
|
+
deviceInfo.quantity = 1;
|
|
82
|
+
if (withAttributes) {
|
|
83
|
+
const deviceAtrributeInfo = new DeviceAttributeInfo_1.DeviceAttributeInfo();
|
|
84
|
+
deviceAtrributeInfo.name = "Heartland.AMD.OfficeKey";
|
|
85
|
+
deviceAtrributeInfo.value = "123456";
|
|
86
|
+
deviceInfo.attributes = [deviceAtrributeInfo];
|
|
87
|
+
}
|
|
88
|
+
deviceData.devices = [deviceInfo];
|
|
89
|
+
}
|
|
90
|
+
return deviceData;
|
|
91
|
+
}
|
|
92
|
+
static GetBusinessData() {
|
|
93
|
+
const businessData = new BusinessData_1.BusinessData();
|
|
94
|
+
businessData.businessLegalName = "Twain Enterprises";
|
|
95
|
+
businessData.doingBusinessAs = "Twain Enterprises";
|
|
96
|
+
businessData.employerIdentificationNumber = String(this.getRandomInt(100000000, 999999999));
|
|
97
|
+
businessData.businessDescription = "Accounting Services";
|
|
98
|
+
businessData.websiteURL = "https://www.Propay.com";
|
|
99
|
+
businessData.merchantCategoryCode = "5399";
|
|
100
|
+
businessData.monthlyBankCardVolume = "50000";
|
|
101
|
+
businessData.averageTicket = "100";
|
|
102
|
+
businessData.highestTicket = "300";
|
|
103
|
+
businessData.businessType = "D";
|
|
104
|
+
const businessAddress = new Address_1.Address();
|
|
105
|
+
businessAddress.streetAddress1 = "123 Main St.";
|
|
106
|
+
businessAddress.city = "Downtown";
|
|
107
|
+
businessAddress.state = "NJ";
|
|
108
|
+
businessAddress.postalCode = "12345";
|
|
109
|
+
businessAddress.country = "USA";
|
|
110
|
+
businessData.businessAddress = businessAddress;
|
|
111
|
+
return businessData;
|
|
112
|
+
}
|
|
113
|
+
static GetUserPersonalData() {
|
|
114
|
+
const accountPersonalInformation = new UserPersonalData_1.UserPersonalData();
|
|
115
|
+
accountPersonalInformation.dayPhone = "4464464464";
|
|
116
|
+
accountPersonalInformation.eveningPhone = "4464464464";
|
|
117
|
+
accountPersonalInformation.externalID = String(this.getRandomInt(1000000, 999999999));
|
|
118
|
+
accountPersonalInformation.firstName = "David";
|
|
119
|
+
accountPersonalInformation.lastName = "Tennant";
|
|
120
|
+
accountPersonalInformation.phonePIN = "1234";
|
|
121
|
+
accountPersonalInformation.sourceEmail =
|
|
122
|
+
"user" + this.getRandomInt(1, 10000) + "@user.com";
|
|
123
|
+
accountPersonalInformation.sSN = "123456789";
|
|
124
|
+
accountPersonalInformation.dateOfBirth = "01-01-1981";
|
|
125
|
+
accountPersonalInformation.tier = "TestEIN";
|
|
126
|
+
accountPersonalInformation.ipSignup = "4.14.150.145";
|
|
127
|
+
accountPersonalInformation.uSCitizen = true;
|
|
128
|
+
accountPersonalInformation.bOAttestation = true;
|
|
129
|
+
accountPersonalInformation.termsAcceptanceIP = "4.14.150.145";
|
|
130
|
+
accountPersonalInformation.termsAcceptanceTimeStamp =
|
|
131
|
+
"2022-10-27 12:57:08.2021237";
|
|
132
|
+
accountPersonalInformation.termsVersion = 1;
|
|
133
|
+
const userAddress = new Address_1.Address();
|
|
134
|
+
userAddress.streetAddress1 = "123 Main St.";
|
|
135
|
+
userAddress.city = "Downtown";
|
|
136
|
+
userAddress.state = "NJ";
|
|
137
|
+
userAddress.postalCode = "12345";
|
|
138
|
+
userAddress.country = "USA";
|
|
139
|
+
accountPersonalInformation.userAddress = userAddress;
|
|
140
|
+
const mailingAddress = new Address_1.Address();
|
|
141
|
+
mailingAddress.streetAddress1 = "123 Main St.";
|
|
142
|
+
mailingAddress.city = "Downtown";
|
|
143
|
+
mailingAddress.state = "NJ";
|
|
144
|
+
mailingAddress.postalCode = "12345";
|
|
145
|
+
mailingAddress.country = "USA";
|
|
146
|
+
accountPersonalInformation.mailingAddress = mailingAddress;
|
|
147
|
+
return accountPersonalInformation;
|
|
148
|
+
}
|
|
149
|
+
static GetThreatRiskData() {
|
|
150
|
+
const threatRiskData = new ThreatRiskData_1.ThreatRiskData();
|
|
151
|
+
threatRiskData.merchantSourceIP = "8.8.8.8";
|
|
152
|
+
threatRiskData.threatMetrixPolicy = "Default";
|
|
153
|
+
threatRiskData.threatMetrixSessionID =
|
|
154
|
+
"dad889c1-1ca4-4fq71-8f6f-807eb4408bc7";
|
|
155
|
+
return threatRiskData;
|
|
156
|
+
}
|
|
157
|
+
static GetSignificantOwnerData() {
|
|
158
|
+
const significantOwnerData = new SignificantOwnerData_1.SignificantOwnerData();
|
|
159
|
+
significantOwnerData.authorizedSignerFirstName = "John";
|
|
160
|
+
significantOwnerData.authorizedSignerLastName = "Doe";
|
|
161
|
+
significantOwnerData.authorizedSignerTitle = "Director";
|
|
162
|
+
significantOwnerData.significantOwner.firstName = "John";
|
|
163
|
+
return significantOwnerData;
|
|
164
|
+
}
|
|
165
|
+
static GetBeneficialOwnerData() {
|
|
166
|
+
const ownersInformation = new BeneficialOwnerData_1.BeneficialOwnerData();
|
|
167
|
+
ownersInformation.ownersCount = "2";
|
|
168
|
+
const firstOwner = new OwnersData_1.OwnersData();
|
|
169
|
+
firstOwner.firstName = "First1";
|
|
170
|
+
firstOwner.lastName = "Last1";
|
|
171
|
+
firstOwner.title = "CEO";
|
|
172
|
+
firstOwner.email = "abc@qamail.com";
|
|
173
|
+
firstOwner.DateOfBirth = "11-11-1988";
|
|
174
|
+
firstOwner.sSN = "123545677";
|
|
175
|
+
const firstOwnerAddress = new Address_1.Address();
|
|
176
|
+
firstOwnerAddress.streetAddress1 = "123 Main St.";
|
|
177
|
+
firstOwnerAddress.city = "Downtown";
|
|
178
|
+
firstOwnerAddress.state = "NJ";
|
|
179
|
+
firstOwnerAddress.postalCode = "12345";
|
|
180
|
+
firstOwnerAddress.country = "USA";
|
|
181
|
+
firstOwner.ownerAddress = firstOwnerAddress;
|
|
182
|
+
//Second Owner
|
|
183
|
+
const secondOwner = new OwnersData_1.OwnersData();
|
|
184
|
+
secondOwner.firstName = "First4";
|
|
185
|
+
secondOwner.lastName = "Last4";
|
|
186
|
+
secondOwner.title = "Director";
|
|
187
|
+
secondOwner.email = "abc1@qamail.com";
|
|
188
|
+
secondOwner.DateOfBirth = "11-11-1989";
|
|
189
|
+
secondOwner.sSN = "123545677";
|
|
190
|
+
const secondOwnerAddress = new Address_1.Address();
|
|
191
|
+
secondOwnerAddress.streetAddress1 = "123 Main St.";
|
|
192
|
+
secondOwnerAddress.city = "Downtown";
|
|
193
|
+
secondOwnerAddress.state = "NJ";
|
|
194
|
+
secondOwnerAddress.postalCode = "12345";
|
|
195
|
+
secondOwnerAddress.country = "USA";
|
|
196
|
+
secondOwner.ownerAddress = secondOwnerAddress;
|
|
197
|
+
ownersInformation.ownersList = [firstOwner, secondOwner];
|
|
198
|
+
return ownersInformation;
|
|
199
|
+
}
|
|
200
|
+
static GetCreditCardData() {
|
|
201
|
+
const card = new PaymentMethods_1.CreditCardData();
|
|
202
|
+
card.number = "4111111111111111";
|
|
203
|
+
card.expMonth = "12";
|
|
204
|
+
card.expYear = "2025";
|
|
205
|
+
card.cvn = "123";
|
|
206
|
+
card.cardHolderName = "Joe Smith";
|
|
207
|
+
return card;
|
|
208
|
+
}
|
|
209
|
+
static GetACHData() {
|
|
210
|
+
const bankAccountInformation = new BankAccountData_1.BankAccountData();
|
|
211
|
+
bankAccountInformation.accountNumber = "123456789";
|
|
212
|
+
bankAccountInformation.accountType = "C";
|
|
213
|
+
bankAccountInformation.routingNumber = "102000076";
|
|
214
|
+
return bankAccountInformation;
|
|
215
|
+
}
|
|
216
|
+
static GetMailingAddress() {
|
|
217
|
+
const address = new Address_1.Address();
|
|
218
|
+
address.streetAddress1 = "123 Main St.";
|
|
219
|
+
address.city = "Downtown";
|
|
220
|
+
address.state = "NJ";
|
|
221
|
+
address.postalCode = "12345";
|
|
222
|
+
address.country = "USA";
|
|
223
|
+
return address;
|
|
224
|
+
}
|
|
225
|
+
static GetSecondaryBankAccountData() {
|
|
226
|
+
const bankAccountInformation = new BankAccountData_1.BankAccountData();
|
|
227
|
+
bankAccountInformation.accountCountryCode = "USA";
|
|
228
|
+
bankAccountInformation.accountName = "MyBankAccount";
|
|
229
|
+
bankAccountInformation.accountNumber = "123456788";
|
|
230
|
+
bankAccountInformation.accountOwnershipType = "Personal";
|
|
231
|
+
bankAccountInformation.accountType = "C";
|
|
232
|
+
bankAccountInformation.routingNumber = "102000076";
|
|
233
|
+
bankAccountInformation.bankName = "My Bank";
|
|
234
|
+
return bankAccountInformation;
|
|
235
|
+
}
|
|
236
|
+
static GetGrossBillingSettleData() {
|
|
237
|
+
const grossBillingInformation = new GrossBillingInformation_1.GrossBillingInformation();
|
|
238
|
+
const grossSettleBankData = new BankAccountData_1.BankAccountData();
|
|
239
|
+
grossSettleBankData.accountCountryCode = "USA";
|
|
240
|
+
grossSettleBankData.accountName = "MyBankAccount";
|
|
241
|
+
grossSettleBankData.accountNumber = "123456788";
|
|
242
|
+
grossSettleBankData.accountOwnershipType = "Personal";
|
|
243
|
+
grossSettleBankData.accountType = "C";
|
|
244
|
+
grossSettleBankData.routingNumber = "102000076";
|
|
245
|
+
grossSettleBankData.accountHolderName = "John";
|
|
246
|
+
grossBillingInformation.grossSettleBankData = grossSettleBankData;
|
|
247
|
+
const grossSettleAddress = new Address_1.Address();
|
|
248
|
+
grossSettleAddress.streetAddress1 = "123 Main St.";
|
|
249
|
+
grossSettleAddress.city = "Downtown";
|
|
250
|
+
grossSettleAddress.state = "NJ";
|
|
251
|
+
grossSettleAddress.postalCode = "12345";
|
|
252
|
+
grossSettleAddress.country = "USA";
|
|
253
|
+
grossBillingInformation.grossSettleAddress = grossSettleAddress;
|
|
254
|
+
const grossSettleCreditCardData = new PaymentMethods_1.CreditCardData();
|
|
255
|
+
grossSettleCreditCardData.number = "4111111111111111";
|
|
256
|
+
grossSettleCreditCardData.expMonth = "12";
|
|
257
|
+
grossSettleCreditCardData.expYear = "2025";
|
|
258
|
+
grossSettleCreditCardData.cvn = "123";
|
|
259
|
+
grossSettleCreditCardData.cardHolderName = "Joe Smith";
|
|
260
|
+
grossBillingInformation.grossSettleCreditCardData =
|
|
261
|
+
grossSettleCreditCardData;
|
|
262
|
+
return grossBillingInformation;
|
|
263
|
+
}
|
|
264
|
+
static GetAccountPermissions() {
|
|
265
|
+
const accountPermissions = new AccountPermissions_1.AccountPermissions();
|
|
266
|
+
accountPermissions.cCProcessing = true;
|
|
267
|
+
return accountPermissions;
|
|
268
|
+
}
|
|
269
|
+
static GetRenewAccountDetails() {
|
|
270
|
+
const renewAccountData = new RenewAccountData_1.RenewAccountData();
|
|
271
|
+
renewAccountData.tier = "TestEIN";
|
|
272
|
+
renewAccountData.zipCode = "12345";
|
|
273
|
+
renewAccountData.creditCard = new PaymentMethods_1.CreditCardData();
|
|
274
|
+
renewAccountData.creditCard.number = "4111111111111111";
|
|
275
|
+
renewAccountData.creditCard.expMonth = "12";
|
|
276
|
+
renewAccountData.creditCard.expYear = "2025";
|
|
277
|
+
renewAccountData.creditCard.cvn = "123";
|
|
278
|
+
renewAccountData.paymentBankAccountNumber = "123456789";
|
|
279
|
+
renewAccountData.paymentBankRoutingNumber = "102000076";
|
|
280
|
+
renewAccountData.paymentBankAccountType = "Checking";
|
|
281
|
+
return renewAccountData;
|
|
282
|
+
}
|
|
283
|
+
static GetDeviceData(numDeviceTypes = 1, withAttributes = true) {
|
|
284
|
+
const deviceTypes = ["PAX S500", "Secure Submit"];
|
|
285
|
+
const deviceData = new DeviceData_1.DeviceData();
|
|
286
|
+
deviceData.devices = Array();
|
|
287
|
+
for (let i = 0; i < numDeviceTypes; i++) {
|
|
288
|
+
const deviceInfo = new DeviceInfo_1.DeviceInfo();
|
|
289
|
+
if (i >= deviceTypes.length)
|
|
290
|
+
break;
|
|
291
|
+
deviceInfo.name = deviceTypes[i];
|
|
292
|
+
deviceInfo.quantity = 1;
|
|
293
|
+
if (withAttributes) {
|
|
294
|
+
const deviceAtrributeInfo = new DeviceAttributeInfo_1.DeviceAttributeInfo();
|
|
295
|
+
deviceAtrributeInfo.name = "Heartland.AMD.OfficeKey";
|
|
296
|
+
deviceAtrributeInfo.value = "123456";
|
|
297
|
+
deviceInfo.attributes = [deviceAtrributeInfo];
|
|
298
|
+
}
|
|
299
|
+
deviceData.devices = [deviceInfo];
|
|
300
|
+
}
|
|
301
|
+
return deviceData;
|
|
302
|
+
}
|
|
303
|
+
static GetDocumentBase64String(filepath) {
|
|
304
|
+
return this.getByteArray(filepath);
|
|
305
|
+
}
|
|
306
|
+
static getByteArray(filePath) {
|
|
307
|
+
const fileData = fs.readFileSync(filePath);
|
|
308
|
+
const buff = Buffer.from(fileData);
|
|
309
|
+
const base64data = buff.toString("base64");
|
|
310
|
+
return base64data;
|
|
311
|
+
}
|
|
312
|
+
static getRandomInt(min, max) {
|
|
313
|
+
const floatRandom = Math.random();
|
|
314
|
+
const difference = max - min;
|
|
315
|
+
// random between 0 and the difference
|
|
316
|
+
const random = Math.round(difference * floatRandom);
|
|
317
|
+
const randomWithinRange = random + min;
|
|
318
|
+
return randomWithinRange;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
exports.TestAccountData = TestAccountData;
|
|
322
|
+
//# sourceMappingURL=TestAccountData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestAccountData.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA2F;AAC3F,wFAAqF;AACrF,gGAA6F;AAC7F,kFAA+E;AAC/E,8EAA2E;AAC3E,8EAA2E;AAC3E,wGAAqG;AACrG,8EAA2E;AAC3E,0FAAuF;AACvF,kGAA+F;AAC/F,sFAAmF;AACnF,0FAAuF;AACvF,sEAAmE;AACnE,uCAAyB;AACzB,gGAA6F;AAC7F,iEAA8D;AAC9D,gFAA6E;AAE7E,MAAa,eAAe;IACnB,MAAM,CAAC,kBAAkB;QAC9B,MAAM,sBAAsB,GAAG,IAAI,iCAAe,EAAE,CAAC;QACrD,sBAAsB,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAClD,sBAAsB,CAAC,WAAW,GAAG,eAAe,CAAC;QACrD,sBAAsB,CAAC,aAAa,GAAG,WAAW,CAAC;QACnD,sBAAsB,CAAC,oBAAoB,GAAG,GAAG,CAAC;QAClD,sBAAsB,CAAC,aAAa,GAAG,WAAW,CAAC;QACnD,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAEM,MAAM,CAAC,qBAAqB;QACjC,MAAM,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAC;QACtC,WAAW,CAAC,UAAU,GAAG,SAAS,CAAC;QACnC,WAAW,CAAC,MAAM,GAAG,cAAc,CAAC;QACpC,WAAW,CAAC,aAAa,GAAG,gBAAgB,CAAC;QAC7C,WAAW,CAAC,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AAC;gBACtD,mBAAmB,CAAC,IAAI,GAAG,yBAAyB,CAAC;gBACrD,mBAAmB,CAAC,KAAK,GAAG,QAAQ,CAAC;gBACrC,UAAU,CAAC,UAAU,GAAG,CAAC,mBAAmB,CAAC,CAAC;aAC/C;YACD,UAAU,CAAC,OAAO,GAAG,CAAC,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;AAzTD,0CAyTC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestFundsData = void 0;
|
|
4
|
+
const PaymentMethods_1 = require("../../../../../src/PaymentMethods");
|
|
5
|
+
const Address_1 = require("../../../../../src/Entities/Address");
|
|
6
|
+
const FlashFundsPaymentCardData_1 = require("../../../../../src/Entities/ProFac/FlashFundsPaymentCardData");
|
|
7
|
+
class TestFundsData {
|
|
8
|
+
static GetFlashFundsPaymentCardData() {
|
|
9
|
+
const cardData = new FlashFundsPaymentCardData_1.FlashFundsPaymentCardData();
|
|
10
|
+
const creditCard = new PaymentMethods_1.CreditCardData();
|
|
11
|
+
creditCard.number = "4895142232120006";
|
|
12
|
+
creditCard.expMonth = "10";
|
|
13
|
+
creditCard.expYear = "2025";
|
|
14
|
+
creditCard.cvn = "022";
|
|
15
|
+
creditCard.cardHolderName = "Clint Eastwood";
|
|
16
|
+
cardData.creditCard = creditCard;
|
|
17
|
+
const cardholderAddress = new Address_1.Address();
|
|
18
|
+
cardholderAddress.streetAddress1 = "900 Metro Center Blv";
|
|
19
|
+
cardholderAddress.city = "San Fransisco";
|
|
20
|
+
cardholderAddress.state = "CA";
|
|
21
|
+
cardholderAddress.postalCode = "94404";
|
|
22
|
+
cardholderAddress.country = "USA";
|
|
23
|
+
cardData.cardholderAddress = cardholderAddress;
|
|
24
|
+
return cardData;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.TestFundsData = TestFundsData;
|
|
28
|
+
//# sourceMappingURL=TestFundsData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TestFundsData.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.ts"],"names":[],"mappings":";;;AAAA,sEAAmE;AACnE,iEAA8D;AAC9D,4GAAyG;AAEzG,MAAa,aAAa;IACjB,MAAM,CAAC,4BAA4B;QACxC,MAAM,QAAQ,GAAG,IAAI,qDAAyB,EAAE,CAAC;QACjD,MAAM,UAAU,GAAG,IAAI,+BAAc,EAAE,CAAC;QACxC,UAAU,CAAC,MAAM,GAAG,kBAAkB,CAAC;QACvC,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC;QAC3B,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC;QAC5B,UAAU,CAAC,GAAG,GAAG,KAAK,CAAC;QACvB,UAAU,CAAC,cAAc,GAAG,gBAAgB,CAAC;QAC7C,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;QACjC,MAAM,iBAAiB,GAAG,IAAI,iBAAO,EAAE,CAAC;QACxC,iBAAiB,CAAC,cAAc,GAAG,sBAAsB,CAAC;QAC1D,iBAAiB,CAAC,IAAI,GAAG,eAAe,CAAC;QACzC,iBAAiB,CAAC,KAAK,GAAG,IAAI,CAAC;QAC/B,iBAAiB,CAAC,UAAU,GAAG,OAAO,CAAC;QACvC,iBAAiB,CAAC,OAAO,GAAG,KAAK,CAAC;QAClC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC/C,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAnBD,sCAmBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestIdProvider = void 0;
|
|
4
|
+
class RequestIdProvider {
|
|
5
|
+
getRequestId() {
|
|
6
|
+
return 10000 + Math.round(10000 * Math.random());
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.RequestIdProvider = RequestIdProvider;
|
|
10
|
+
//# sourceMappingURL=RequestIdProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestIdProvider.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/Terminals/RequestIdProvider.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;IACrB,YAAY;QACjB,OAAO,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IACnD,CAAC;CACF;AAJD,8CAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
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 src_1 = require("../../../../../src");
|
|
8
|
+
const BaseGpApiTestConfig_1 = require("../../../../../test/Data/BaseGpApiTestConfig");
|
|
9
|
+
const DeviceService_1 = require("../../../../../src/Services/DeviceService");
|
|
10
|
+
const Enums_1 = require("../../../../../src/Terminals/Enums");
|
|
11
|
+
const RequestIdProvider_1 = require("../RequestIdProvider");
|
|
12
|
+
let device;
|
|
13
|
+
const getConfig = () => {
|
|
14
|
+
const config = new src_1.ConnectionConfig();
|
|
15
|
+
config.deviceType = src_1.DeviceType.UPA_DEVICE;
|
|
16
|
+
config.connectionMode = Enums_1.ConnectionModes.MEET_IN_THE_CLOUD;
|
|
17
|
+
const gpApiConfig = BaseGpApiTestConfig_1.BaseGpApiTestConfig.gpApiSetupConfig(src_1.Channel.CardPresent);
|
|
18
|
+
gpApiConfig.country = "US";
|
|
19
|
+
gpApiConfig.deviceCurrency = "USD";
|
|
20
|
+
const accessTokenInfo = new src_1.AccessTokenInfo();
|
|
21
|
+
accessTokenInfo.transactionProcessingAccountName = "transaction_processing";
|
|
22
|
+
gpApiConfig.accessTokenInfo = accessTokenInfo;
|
|
23
|
+
config.gatewayConfig = gpApiConfig;
|
|
24
|
+
config.requestIdProvider = new RequestIdProvider_1.RequestIdProvider();
|
|
25
|
+
return config;
|
|
26
|
+
};
|
|
27
|
+
ava_1.default.before(() => {
|
|
28
|
+
device = DeviceService_1.DeviceService.create(getConfig());
|
|
29
|
+
});
|
|
30
|
+
(0, ava_1.default)("credit sale", async (t) => {
|
|
31
|
+
const response = await device.sale(15).withEcrId(13).execute();
|
|
32
|
+
t.truthy(response);
|
|
33
|
+
t.is(response.responseText, "SUCCESS");
|
|
34
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
35
|
+
});
|
|
36
|
+
(0, ava_1.default)("credit sale with terminal ref number", async (t) => {
|
|
37
|
+
const response = await device
|
|
38
|
+
.sale(15)
|
|
39
|
+
.withTerminalRefNumber(src_1.GenerationUtils.getGuuid())
|
|
40
|
+
.execute();
|
|
41
|
+
t.truthy(response);
|
|
42
|
+
t.is(response.responseText, "SUCCESS");
|
|
43
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
44
|
+
});
|
|
45
|
+
(0, ava_1.default)("line item", async (t) => {
|
|
46
|
+
const response = await device.lineItem("Line Item #1", "10.00");
|
|
47
|
+
t.truthy(response);
|
|
48
|
+
t.is(response.deviceResponseCode, "SUCCESS");
|
|
49
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
50
|
+
});
|
|
51
|
+
(0, ava_1.default)("credit auth", async (t) => {
|
|
52
|
+
const response = await device
|
|
53
|
+
.authorize(10)
|
|
54
|
+
.withEcrId(13)
|
|
55
|
+
.withTerminalRefNumber("1234")
|
|
56
|
+
.execute();
|
|
57
|
+
t.truthy(response);
|
|
58
|
+
t.is(response.responseText, "SUCCESS");
|
|
59
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
60
|
+
});
|
|
61
|
+
(0, ava_1.default)("credit auth and capture", async (t) => {
|
|
62
|
+
const response = await device
|
|
63
|
+
.authorize(15)
|
|
64
|
+
.withEcrId(13)
|
|
65
|
+
.withTerminalRefNumber("1234")
|
|
66
|
+
.execute();
|
|
67
|
+
t.truthy(response);
|
|
68
|
+
t.is(response.responseText, "SUCCESS");
|
|
69
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
70
|
+
const capture = await device
|
|
71
|
+
.capture(15)
|
|
72
|
+
.withTransactionId(response.transactionId)
|
|
73
|
+
.execute();
|
|
74
|
+
t.truthy(capture);
|
|
75
|
+
t.is(capture.responseText, "SUCCESS");
|
|
76
|
+
t.is(capture.deviceResponseText, "INITIATED");
|
|
77
|
+
});
|
|
78
|
+
(0, ava_1.default)("credit capture randomId", async (t) => {
|
|
79
|
+
const capture = await device
|
|
80
|
+
.capture(15)
|
|
81
|
+
.withTransactionId(src_1.GenerationUtils.getGuuid())
|
|
82
|
+
.execute();
|
|
83
|
+
t.truthy(capture);
|
|
84
|
+
t.is(capture.responseText, "SUCCESS");
|
|
85
|
+
t.is(capture.deviceResponseText, "INITIATED");
|
|
86
|
+
});
|
|
87
|
+
(0, ava_1.default)("credit refund", async (t) => {
|
|
88
|
+
const response = await device.sale(10).execute();
|
|
89
|
+
t.truthy(response);
|
|
90
|
+
t.is(response.responseText, "SUCCESS");
|
|
91
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
92
|
+
t.truthy(response.transactionId);
|
|
93
|
+
const refund = await device
|
|
94
|
+
.refundById(10)
|
|
95
|
+
.withTransactionId(response.transactionId)
|
|
96
|
+
.execute();
|
|
97
|
+
t.truthy(refund);
|
|
98
|
+
t.is(refund.responseText, "SUCCESS");
|
|
99
|
+
t.is(refund.deviceResponseText, "INITIATED");
|
|
100
|
+
});
|
|
101
|
+
(0, ava_1.default)("credit verify", async (t) => {
|
|
102
|
+
const verify = await device.verify().execute();
|
|
103
|
+
t.truthy(verify);
|
|
104
|
+
t.is(verify.responseText, "SUCCESS");
|
|
105
|
+
t.is(verify.deviceResponseText, "INITIATED");
|
|
106
|
+
});
|
|
107
|
+
(0, ava_1.default)("credit void", async (t) => {
|
|
108
|
+
const response = await device.sale(10).execute();
|
|
109
|
+
t.truthy(response);
|
|
110
|
+
t.is(response.responseText, "SUCCESS");
|
|
111
|
+
t.is(response.deviceResponseText, "INITIATED");
|
|
112
|
+
t.truthy(response.transactionId);
|
|
113
|
+
const voided = await device
|
|
114
|
+
.void()
|
|
115
|
+
.withTransactionId(response.transactionId)
|
|
116
|
+
.execute();
|
|
117
|
+
t.truthy(voided);
|
|
118
|
+
t.is(voided.responseText, "SUCCESS");
|
|
119
|
+
t.is(voided.deviceResponseText, "INITIATED");
|
|
120
|
+
});
|
|
121
|
+
(0, ava_1.default)("credit sale without amount", (t) => {
|
|
122
|
+
const error = t.throws(() => device.sale().execute(), {
|
|
123
|
+
instanceOf: src_1.BuilderError,
|
|
124
|
+
});
|
|
125
|
+
t.truthy(error);
|
|
126
|
+
t.is(error?.message, "amount cannot be null for this transaction type.");
|
|
127
|
+
});
|
|
128
|
+
(0, ava_1.default)("credit auth without amount", (t) => {
|
|
129
|
+
const error = t.throws(() => device.authorize().execute(), {
|
|
130
|
+
instanceOf: src_1.BuilderError,
|
|
131
|
+
});
|
|
132
|
+
t.truthy(error);
|
|
133
|
+
t.is(error?.message, "amount cannot be null for this transaction type.");
|
|
134
|
+
});
|
|
135
|
+
(0, ava_1.default)("credit capture without transactionId", (t) => {
|
|
136
|
+
const error = t.throws(() => device.capture(10).execute(), {
|
|
137
|
+
instanceOf: src_1.BuilderError,
|
|
138
|
+
});
|
|
139
|
+
t.truthy(error);
|
|
140
|
+
t.is(error?.message, "transactionId cannot be null for this transaction type.");
|
|
141
|
+
});
|
|
142
|
+
(0, ava_1.default)("credit refund without amount", (t) => {
|
|
143
|
+
const error = t.throws(() => device.refund().execute(), {
|
|
144
|
+
instanceOf: src_1.BuilderError,
|
|
145
|
+
});
|
|
146
|
+
t.truthy(error);
|
|
147
|
+
t.is(error?.message, "amount cannot be null for this transaction type.");
|
|
148
|
+
});
|
|
149
|
+
//# sourceMappingURL=UpaMicTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpaMicTest.js","sourceRoot":"","sources":["../../../../../../test/Integration/Gateways/Terminals/UPA/UpaMicTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,4CAQ4B;AAC5B,sFAAmF;AACnF,6EAA0E;AAC1E,8DAAqE;AACrE,4DAAyD;AAEzD,IAAI,MAAwB,CAAC;AAE7B,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,MAAM,MAAM,GAAG,IAAI,sBAAgB,EAAE,CAAC;IACtC,MAAM,CAAC,UAAU,GAAG,gBAAU,CAAC,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C;AAC3E,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,sCAAsC,EAAE,CAAC,CAAC,EAAE,EAAE;IACjD,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE;QACzD,UAAU,EAAE,kBAAY;KACzB,CAAC,CAAC;IAEH,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC,CAAC,EAAE,CACF,KAAK,EAAE,OAAO,EACd,yDAAyD,CAC1D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,8BAA8B,EAAE,CAAC,CAAC,EAAE,EAAE;IACzC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,EAAE;QACtD,UAAU,EAAE,kBAAY;KACzB,CAAC,CAAC;IAEH,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,kDAAkD,CAAC,CAAC;AAC3E,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GatewayProvider, ThreeDSecure } from "../../../src";
|
|
2
|
+
import { AcsResponse } from "./AcsResponse";
|
|
3
|
+
export declare class ThreeDSecureAcsClient {
|
|
4
|
+
private serviceUrl;
|
|
5
|
+
private gatewayProvider;
|
|
6
|
+
authenticationResultCode: string;
|
|
7
|
+
constructor(url: string);
|
|
8
|
+
getGatewayProvider(): GatewayProvider;
|
|
9
|
+
setGatewayProvider(value: GatewayProvider): void;
|
|
10
|
+
authenticate_v2(secureEcom: ThreeDSecure): Promise<AcsResponse | boolean>;
|
|
11
|
+
authenticate_v1(secureEcom: ThreeDSecure): Promise<AcsResponse | boolean>;
|
|
12
|
+
authenticate(payerAuthRequest: string, merchantData?: string): Promise<AcsResponse | boolean>;
|
|
13
|
+
private sendRequest;
|
|
14
|
+
private buildData;
|
|
15
|
+
private getInputValue;
|
|
16
|
+
}
|