globalpayments-api 3.7.0 → 3.8.1
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 +17 -1
- package/LICENSE.md +257 -257
- package/README.md +141 -141
- package/lib/src/Builders/BaseBuilder/Validations.js +1 -1
- package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -1
- package/lib/src/Builders/ManagementBuilder.d.ts +26 -6
- package/lib/src/Builders/ManagementBuilder.js +66 -34
- package/lib/src/Builders/ManagementBuilder.js.map +1 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +19 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +2 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +86 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +1 -1
- package/lib/src/Builders/TransactionReportBuilder.d.ts +5 -2
- package/lib/src/Builders/TransactionReportBuilder.js +19 -0
- package/lib/src/Builders/TransactionReportBuilder.js.map +1 -1
- package/lib/src/Entities/AdditionalTaxDetails.d.ts +5 -0
- package/lib/src/Entities/AdditionalTaxDetails.js +10 -0
- package/lib/src/Entities/AdditionalTaxDetails.js.map +1 -0
- package/lib/src/Entities/CommercialData.d.ts +26 -0
- package/lib/src/Entities/CommercialData.js +36 -0
- package/lib/src/Entities/CommercialData.js.map +1 -0
- package/lib/src/Entities/CommercialLineItem.d.ts +21 -0
- package/lib/src/Entities/CommercialLineItem.js +24 -0
- package/lib/src/Entities/CommercialLineItem.js.map +1 -0
- package/lib/src/Entities/DiscountDetails.d.ts +8 -0
- package/lib/src/Entities/DiscountDetails.js +13 -0
- package/lib/src/Entities/DiscountDetails.js.map +1 -0
- package/lib/src/Entities/DisputeDocument.d.ts +5 -0
- package/lib/src/Entities/DisputeDocument.js +10 -0
- package/lib/src/Entities/DisputeDocument.js.map +1 -0
- package/lib/src/Entities/Document.d.ts +10 -0
- package/lib/src/Entities/Document.js +13 -0
- package/lib/src/Entities/Document.js.map +1 -0
- package/lib/src/Entities/Enums/DisputeSortProperty.d.ts +12 -0
- package/lib/src/Entities/Enums/DisputeSortProperty.js +17 -0
- package/lib/src/Entities/Enums/DisputeSortProperty.js.map +1 -0
- package/lib/src/Entities/Enums/DisputeStage.d.ts +11 -0
- package/lib/src/Entities/Enums/DisputeStage.js +16 -0
- package/lib/src/Entities/Enums/DisputeStage.js.map +1 -0
- package/lib/src/Entities/Enums/DisputeStatus.d.ts +7 -0
- package/lib/src/Entities/Enums/DisputeStatus.js +12 -0
- package/lib/src/Entities/Enums/DisputeStatus.js.map +1 -0
- package/lib/src/Entities/Enums/DocumentCategory.d.ts +5 -0
- package/lib/src/Entities/Enums/DocumentCategory.js +10 -0
- package/lib/src/Entities/Enums/DocumentCategory.js.map +1 -0
- package/lib/src/Entities/Enums/FileType.d.ts +11 -0
- package/lib/src/Entities/Enums/FileType.js +16 -0
- package/lib/src/Entities/Enums/FileType.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +17 -1
- package/lib/src/Entities/Enums.js +20 -2
- package/lib/src/Entities/Enums.js.map +1 -1
- package/lib/src/Entities/HostedPaymentData.d.ts +3 -0
- package/lib/src/Entities/HostedPaymentData.js +3 -0
- package/lib/src/Entities/HostedPaymentData.js.map +1 -1
- package/lib/src/Entities/Reporting/DisputeSummary.d.ts +53 -0
- package/lib/src/Entities/Reporting/DisputeSummary.js +64 -0
- package/lib/src/Entities/Reporting/DisputeSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +4 -2
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +2 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +1 -1
- package/lib/src/Entities/Reporting/index.d.ts +1 -0
- package/lib/src/Entities/Reporting/index.js +1 -0
- package/lib/src/Entities/Reporting/index.js.map +1 -1
- package/lib/src/Entities/Transaction.js +3 -0
- package/lib/src/Entities/Transaction.js.map +1 -1
- package/lib/src/Entities/TransactionSummary.d.ts +1 -0
- package/lib/src/Entities/TransactionSummary.js +1 -0
- package/lib/src/Entities/TransactionSummary.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.js +3 -0
- package/lib/src/Gateways/GpApiConnector.js.map +1 -1
- package/lib/src/Gateways/GpEcomConnector.js +9 -0
- package/lib/src/Gateways/GpEcomConnector.js.map +1 -1
- package/lib/src/Gateways/PayPlanConnector.d.ts +1 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +3 -3
- package/lib/src/Gateways/PorticoConnector.js +117 -4
- package/lib/src/Gateways/PorticoConnector.js.map +1 -1
- package/lib/src/Mapping/GpApiMapping.d.ts +2 -1
- package/lib/src/Mapping/GpApiMapping.js +75 -2
- package/lib/src/Mapping/GpApiMapping.js.map +1 -1
- package/lib/src/Services/ReportingService.d.ts +6 -1
- package/lib/src/Services/ReportingService.js +15 -0
- package/lib/src/Services/ReportingService.js.map +1 -1
- package/lib/test/Integration/Gateways/GpApiConnector/{3DS2Test.js → 3DS2.test.js} +338 -341
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{3DSecureTest.js → 3DSecure.test.js} +167 -173
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.js +130 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.js +1070 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{DebitCardTest.js → DebitCard.test.js} +27 -33
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{GpApiCertificationTest.js → GpApiCertification.test.js} +211 -208
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.js +151 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{ReportingDepositsTest.js → ReportingDeposits.test.js} +103 -103
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.js +571 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{ReportingSettlementTransactionsTest.js → ReportingSettlementTransactions.test.js} +104 -108
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{ReportingStoredPaymentMethodsTest.js → ReportingStoredPaymentMethods.test.js} +75 -76
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/{ReportingTransactionsTest.js → ReportingTransactions.test.js} +97 -95
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AuthTest.js → Auth.test.js} +441 -461
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AvsTest.js → Avs.test.js} +274 -218
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{CreditTest.js → Credit.test.js} +317 -321
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{HoldTest.js → Hold.test.js} +290 -257
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/{CreditTest.js → Credit.test.js} +76 -84
- package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.js +137 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.js +124 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.js +54 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.js +357 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceTest.js → Ecommerce.test.js} +403 -459
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceCheckTest.js → EcommerceCheck.test.js} +17 -23
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoTest.js → Moto.test.js} +377 -650
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoCheckTest.js → MotoCheck.test.js} +16 -22
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.js +393 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{RetailTest.js → Retail.test.js} +481 -600
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js +433 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/{DebitTest.js → Debit.test.js} +32 -37
- package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/{EbtTest.js → Ebt.test.js} +30 -39
- package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/{EcommerceTest.js → Ecommerce.test.js} +38 -45
- package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.js +121 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/{PorticoManagementTokenTest.js → PorticoManagementToken.test.js} +8 -16
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.js +87 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/{ReportingTest.js → Reporting.test.js} +12 -18
- package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{GetInformationCertificationTest.js → GetInformationCertification.test.js} +12 -18
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayAccountCertificationTest.js → ProPayAccountCertification.test.js} +49 -64
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayFundCertificationTest.js → ProPayFundCertification.test.js} +14 -22
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayInNetworkTransactionCertificationTest.js → ProPayInNetworkTransactionCertification.test.js} +18 -26
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/{GetInformationTest.js → GetInformation.test.js} +11 -18
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/{ProPayAccountTest.js → ProPayAccount.test.js} +63 -83
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/{ProPayFundsTest.js → ProPayFunds.test.js} +15 -22
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/{ProPayInNetworkTransactionTest.js → ProPayInNetworkTransaction.test.js} +17 -25
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.js +165 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.js.map +1 -0
- package/lib/test/Integration/Services/{CheckServiceTest.js → CheckService.test.js} +11 -18
- package/lib/test/Integration/Services/CheckService.test.js.map +1 -0
- package/lib/test/Integration/Services/{CreditServiceTest.js → CreditService.test.js} +48 -64
- package/lib/test/Integration/Services/CreditService.test.js.map +1 -0
- package/lib/test/Integration/Services/{DebitServiceTest.js → DebitService.test.js} +28 -32
- package/lib/test/Integration/Services/DebitService.test.js.map +1 -0
- package/lib/test/Integration/Services/{EBTServiceTest.js → EBTService.test.js} +16 -26
- package/lib/test/Integration/Services/EBTService.test.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.js +122 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/Validation.test.js +66 -0
- package/lib/test/Unit/Builders/ReportBuilder/Validation.test.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/{CreditTest.js → Credit.test.js} +13 -15
- package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.js +128 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.js.map +1 -0
- package/package.json +7 -17
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +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.js +0 -1025
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +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.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js +0 -149
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +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.js +0 -133
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +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.js +0 -378
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +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.js.map +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.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +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/PorticoManagementTokenTest.js.map +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.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +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/Services/CheckServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js.map +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.js +0 -62
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
- /package/lib/test/Integration/Gateways/GpApiConnector/{3DS2Test.d.ts → 3DS2.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{3DSecureTest.d.ts → 3DSecure.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{AccessTokenTest.d.ts → AccessToken.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{CreditCardNotPresentTest.d.ts → CreditCardNotPresent.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{CreditCardPresentTest.d.ts → DebitCard.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{DebitCardTest.d.ts → GpApiCertification.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{GpApiCertificationTest.d.ts → GpApiTokenManagement.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{GpApiTokenManagementTest.d.ts → ReportingDeposits.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingDepositsTest.d.ts → ReportingDisputes.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingSettlementTransactionsTest.d.ts → ReportingSettlementTransactions.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingStoredPaymentMethodsTest.d.ts → ReportingStoredPaymentMethods.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpApiConnector/{ReportingTransactionsTest.d.ts → ReportingTransactions.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AuthTest.d.ts → Auth.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{AvsTest.d.ts → Avs.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{HoldTest.d.ts → Hold.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/{HppTest.d.ts → Hpp.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/GpEcomConnector/{RecurringTest.d.ts → Recurring.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{AchTest.d.ts → Ach.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{CheckTest.d.ts → Check.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceCheckTest.d.ts → Ecommerce.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{EcommerceTest.d.ts → EcommerceCheck.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoCheckTest.d.ts → Moto.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{MotoTest.d.ts → MotoCheck.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{RecurringTest.d.ts → Recurring.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/Certifications/{RetailTest.d.ts → Retail.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{DebitTest.d.ts → Debit.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{EbtTest.d.ts → Ebt.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{EcommerceTest.d.ts → Ecommerce.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{GiftTest.d.ts → Gift.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{PorticoManagementTokenTest.d.ts → PorticoManagementToken.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{RecurringTest.d.ts → Recurring.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/PorticoConnector/{ReportingTest.d.ts → Reporting.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{GetInformationCertificationTest.d.ts → GetInformationCertification.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayAccountCertificationTest.d.ts → ProPayAccountCertification.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayFundCertificationTest.d.ts → ProPayFundCertification.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/Certifications/{ProPayInNetworkTransactionCertificationTest.d.ts → ProPayInNetworkTransactionCertification.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/{GetInformationTest.d.ts → GetInformation.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/{ProPayAccountTest.d.ts → ProPayAccount.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/{ProPayFundsTest.d.ts → ProPayFunds.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/ProPayConnector/{ProPayInNetworkTransactionTest.d.ts → ProPayInNetworkTransaction.test.d.ts} +0 -0
- /package/lib/test/Integration/Gateways/Terminals/UPA/{UpaMicTest.d.ts → UpaMic.test.d.ts} +0 -0
- /package/lib/test/Integration/Services/{CheckServiceTest.d.ts → CheckService.test.d.ts} +0 -0
- /package/lib/test/Integration/Services/{CreditServiceTest.d.ts → CreditService.test.d.ts} +0 -0
- /package/lib/test/Integration/Services/{DebitServiceTest.d.ts → DebitService.test.d.ts} +0 -0
- /package/lib/test/Integration/Services/{EBTServiceTest.d.ts → EBTService.test.d.ts} +0 -0
- /package/lib/test/Unit/Builders/AuthorizationBuilder/{ValidationTest.d.ts → Validation.test.d.ts} +0 -0
- /package/lib/test/Unit/Builders/ReportBuilder/{ValidationTest.d.ts → Validation.test.d.ts} +0 -0
- /package/lib/test/Unit/Gateways/GpEcomConnector/{CreditTest.d.ts → Credit.test.d.ts} +0 -0
- /package/lib/test/Unit/Gateways/PorticoConnector/{InputValidationTest.d.ts → InputValidation.test.d.ts} +0 -0
package/lib/test/Integration/Gateways/GpEcomConnector/Certification/{HoldTest.js → Hold.test.js}
RENAMED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
const src_1 = require("../../../../../src/");
|
|
3
|
+
const src_1 = require("../../../../../src");
|
|
8
4
|
const ServiceConfigs_1 = require("../../../../../src/ServiceConfigs");
|
|
9
5
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
10
6
|
config.merchantId = "heartlandgpsandbox";
|
|
@@ -23,16 +19,15 @@ configWithoutChannel.rebatePassword = "rebate";
|
|
|
23
19
|
configWithoutChannel.serviceUrl =
|
|
24
20
|
"https://api.sandbox.realexpayments.com/epage-remote.cgi";
|
|
25
21
|
configWithoutChannel.timeout = 5000;
|
|
26
|
-
|
|
22
|
+
beforeAll(() => {
|
|
27
23
|
src_1.ServicesContainer.configureService(config);
|
|
28
24
|
src_1.ServicesContainer.configureService(configWithoutChannel, "withoutChannel");
|
|
29
25
|
});
|
|
30
26
|
const throttle = () => new Promise((resolve) => setTimeout(resolve, 1500));
|
|
31
|
-
|
|
27
|
+
beforeEach(async () => {
|
|
32
28
|
await throttle();
|
|
33
29
|
});
|
|
34
|
-
|
|
35
|
-
t.plan(4);
|
|
30
|
+
test.skip("JAVA_Hold_Sample", async () => {
|
|
36
31
|
// create card
|
|
37
32
|
const card = new src_1.CreditCardData();
|
|
38
33
|
card.number = "4263970000005262";
|
|
@@ -43,8 +38,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
43
38
|
card.cardHolderName = "James Mason";
|
|
44
39
|
// build transaction
|
|
45
40
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
expect(saleResponse).toBeTruthy();
|
|
42
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
48
43
|
await throttle();
|
|
49
44
|
// request
|
|
50
45
|
const response = await saleResponse
|
|
@@ -52,11 +47,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
52
47
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
53
48
|
.withDescription("JAVA-Hold")
|
|
54
49
|
.execute();
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
expect(response).toBeTruthy();
|
|
51
|
+
expect("00").toBe(response.responseCode);
|
|
57
52
|
});
|
|
58
|
-
(
|
|
59
|
-
t.plan(4);
|
|
53
|
+
test("JAVA_Hold_006a", async () => {
|
|
60
54
|
// create card
|
|
61
55
|
const card = new src_1.CreditCardData();
|
|
62
56
|
card.number = "4263970000005262";
|
|
@@ -67,8 +61,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
67
61
|
card.cardHolderName = "James Mason";
|
|
68
62
|
// build transaction
|
|
69
63
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
expect(saleResponse).toBeTruthy();
|
|
65
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
72
66
|
await throttle();
|
|
73
67
|
// request
|
|
74
68
|
const response = await saleResponse
|
|
@@ -76,11 +70,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
76
70
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
77
71
|
.withDescription("JAVA-Hold")
|
|
78
72
|
.execute();
|
|
79
|
-
|
|
80
|
-
|
|
73
|
+
expect(response).toBeTruthy();
|
|
74
|
+
expect("00").toBe(response.responseCode);
|
|
81
75
|
});
|
|
82
|
-
(
|
|
83
|
-
t.plan(4);
|
|
76
|
+
test("JAVA_Hold_006b", async () => {
|
|
84
77
|
// create card
|
|
85
78
|
const card = new src_1.CreditCardData();
|
|
86
79
|
card.number = "4263970000005262";
|
|
@@ -91,8 +84,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
91
84
|
card.cardHolderName = "James Mason";
|
|
92
85
|
// build transaction
|
|
93
86
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
expect(saleResponse).toBeTruthy();
|
|
88
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
96
89
|
await throttle();
|
|
97
90
|
// request
|
|
98
91
|
const response = await saleResponse
|
|
@@ -100,11 +93,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
100
93
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
101
94
|
.withDescription("JAVA-Hold")
|
|
102
95
|
.execute();
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
expect(response).toBeTruthy();
|
|
97
|
+
expect("00").toBe(response.responseCode);
|
|
105
98
|
});
|
|
106
|
-
(
|
|
107
|
-
t.plan(4);
|
|
99
|
+
test("JAVA_Hold_006c", async () => {
|
|
108
100
|
// create card
|
|
109
101
|
const card = new src_1.CreditCardData();
|
|
110
102
|
card.number = "4263970000005262";
|
|
@@ -115,8 +107,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
115
107
|
card.cardHolderName = "James Mason";
|
|
116
108
|
// build transaction
|
|
117
109
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
118
|
-
|
|
119
|
-
|
|
110
|
+
expect(saleResponse).toBeTruthy();
|
|
111
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
120
112
|
await throttle();
|
|
121
113
|
// request
|
|
122
114
|
const response = await saleResponse
|
|
@@ -124,11 +116,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
124
116
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
125
117
|
.withDescription("JAVA-Hold")
|
|
126
118
|
.execute();
|
|
127
|
-
|
|
128
|
-
|
|
119
|
+
expect(response).toBeTruthy();
|
|
120
|
+
expect("00").toBe(response.responseCode);
|
|
129
121
|
});
|
|
130
|
-
(
|
|
131
|
-
t.plan(4);
|
|
122
|
+
test("JAVA_Hold_006d", async () => {
|
|
132
123
|
// create card
|
|
133
124
|
const card = new src_1.CreditCardData();
|
|
134
125
|
card.number = "4263970000005262";
|
|
@@ -139,8 +130,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
139
130
|
card.cardHolderName = "James Mason";
|
|
140
131
|
// build transaction
|
|
141
132
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
142
|
-
|
|
143
|
-
|
|
133
|
+
expect(saleResponse).toBeTruthy();
|
|
134
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
144
135
|
await throttle();
|
|
145
136
|
// request
|
|
146
137
|
const response = await saleResponse
|
|
@@ -148,11 +139,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
148
139
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
149
140
|
.withDescription("JAVA-Hold")
|
|
150
141
|
.execute();
|
|
151
|
-
|
|
152
|
-
|
|
142
|
+
expect(response).toBeTruthy();
|
|
143
|
+
expect("00").toBe(response.responseCode);
|
|
153
144
|
});
|
|
154
|
-
(
|
|
155
|
-
t.plan(4);
|
|
145
|
+
test("JAVA_Hold_006e", async () => {
|
|
156
146
|
// create card
|
|
157
147
|
const card = new src_1.CreditCardData();
|
|
158
148
|
card.number = "4263970000005262";
|
|
@@ -163,8 +153,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
163
153
|
card.cardHolderName = "James Mason";
|
|
164
154
|
// build transaction
|
|
165
155
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
166
|
-
|
|
167
|
-
|
|
156
|
+
expect(saleResponse).toBeTruthy();
|
|
157
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
168
158
|
await throttle();
|
|
169
159
|
// request
|
|
170
160
|
const response = await saleResponse
|
|
@@ -172,10 +162,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
172
162
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
173
163
|
.withDescription("JAVA-Hold")
|
|
174
164
|
.execute();
|
|
175
|
-
|
|
176
|
-
|
|
165
|
+
expect(response).toBeTruthy();
|
|
166
|
+
expect("00").toBe(response.responseCode);
|
|
177
167
|
});
|
|
178
|
-
(
|
|
168
|
+
test("JAVA_Hold_006f", async () => {
|
|
179
169
|
// create card
|
|
180
170
|
const card = new src_1.CreditCardData();
|
|
181
171
|
card.number = "4263970000005262";
|
|
@@ -186,8 +176,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
186
176
|
card.cardHolderName = "James Mason";
|
|
187
177
|
// build transaction
|
|
188
178
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
189
|
-
|
|
190
|
-
|
|
179
|
+
expect(saleResponse).toBeTruthy();
|
|
180
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
191
181
|
await throttle();
|
|
192
182
|
// request
|
|
193
183
|
const response = await saleResponse
|
|
@@ -195,10 +185,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
195
185
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
196
186
|
.withDescription("JAVA-Hold")
|
|
197
187
|
.execute();
|
|
198
|
-
|
|
199
|
-
|
|
188
|
+
expect(response).toBeTruthy();
|
|
189
|
+
expect("00").toBe(response.responseCode);
|
|
200
190
|
});
|
|
201
|
-
(
|
|
191
|
+
test("JAVA_Hold_006g", async () => {
|
|
202
192
|
// create card
|
|
203
193
|
const card = new src_1.CreditCardData();
|
|
204
194
|
card.number = "4263970000005262";
|
|
@@ -209,8 +199,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
209
199
|
card.cardHolderName = "James Mason";
|
|
210
200
|
// build transaction
|
|
211
201
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
212
|
-
|
|
213
|
-
|
|
202
|
+
expect(saleResponse).toBeTruthy();
|
|
203
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
214
204
|
await throttle();
|
|
215
205
|
// request
|
|
216
206
|
const response = await saleResponse
|
|
@@ -218,10 +208,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
218
208
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
219
209
|
.withDescription("JAVA-Hold")
|
|
220
210
|
.execute();
|
|
221
|
-
|
|
222
|
-
|
|
211
|
+
expect(response).toBeTruthy();
|
|
212
|
+
expect("00").toBe(response.responseCode);
|
|
223
213
|
});
|
|
224
|
-
(
|
|
214
|
+
test("JAVA_Hold_006h", async () => {
|
|
225
215
|
// create card
|
|
226
216
|
const card = new src_1.CreditCardData();
|
|
227
217
|
card.number = "4263970000005262";
|
|
@@ -232,8 +222,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
232
222
|
card.cardHolderName = "James Mason";
|
|
233
223
|
// build transaction
|
|
234
224
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
235
|
-
|
|
236
|
-
|
|
225
|
+
expect(saleResponse).toBeTruthy();
|
|
226
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
237
227
|
await throttle();
|
|
238
228
|
// request
|
|
239
229
|
const response = await saleResponse
|
|
@@ -241,10 +231,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
241
231
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
242
232
|
.withDescription("JAVA-Hold")
|
|
243
233
|
.execute();
|
|
244
|
-
|
|
245
|
-
|
|
234
|
+
expect(response).toBeTruthy();
|
|
235
|
+
expect("00").toBe(response.responseCode);
|
|
246
236
|
});
|
|
247
|
-
(
|
|
237
|
+
test("JAVA_Hold_006i", async () => {
|
|
248
238
|
// create card
|
|
249
239
|
const card = new src_1.CreditCardData();
|
|
250
240
|
card.number = "4263970000005262";
|
|
@@ -255,8 +245,8 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
255
245
|
card.cardHolderName = "James Mason";
|
|
256
246
|
// build transaction
|
|
257
247
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
258
|
-
|
|
259
|
-
|
|
248
|
+
expect(saleResponse).toBeTruthy();
|
|
249
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
260
250
|
await throttle();
|
|
261
251
|
// request
|
|
262
252
|
const response = await saleResponse
|
|
@@ -264,10 +254,10 @@ ava_1.default.skip("JAVA_Hold_Sample", async (t) => {
|
|
|
264
254
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
265
255
|
.withDescription("JAVA-Hold")
|
|
266
256
|
.execute();
|
|
267
|
-
|
|
268
|
-
|
|
257
|
+
expect(response).toBeTruthy();
|
|
258
|
+
expect("00").toBe(response.responseCode);
|
|
269
259
|
});
|
|
270
|
-
|
|
260
|
+
test.skip("JAVA_Hold_006k", async () => {
|
|
271
261
|
// create card
|
|
272
262
|
const card = new src_1.CreditCardData();
|
|
273
263
|
card.number = "4263970000005262";
|
|
@@ -278,8 +268,8 @@ ava_1.default.skip("JAVA_Hold_006k", async (t) => {
|
|
|
278
268
|
card.cardHolderName = "James Mason";
|
|
279
269
|
// build transaction
|
|
280
270
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
281
|
-
|
|
282
|
-
|
|
271
|
+
expect(saleResponse).toBeTruthy();
|
|
272
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
283
273
|
await throttle();
|
|
284
274
|
// request
|
|
285
275
|
const response = await saleResponse
|
|
@@ -287,10 +277,10 @@ ava_1.default.skip("JAVA_Hold_006k", async (t) => {
|
|
|
287
277
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
288
278
|
.withDescription("JAVA-Hold")
|
|
289
279
|
.execute();
|
|
290
|
-
|
|
291
|
-
|
|
280
|
+
expect(response).toBeTruthy();
|
|
281
|
+
expect("00").toBe(response.responseCode);
|
|
292
282
|
});
|
|
293
|
-
|
|
283
|
+
test.skip("JAVA_Hold_006l", async () => {
|
|
294
284
|
// create card
|
|
295
285
|
const card = new src_1.CreditCardData();
|
|
296
286
|
card.number = "4263970000005262";
|
|
@@ -301,8 +291,8 @@ ava_1.default.skip("JAVA_Hold_006l", async (t) => {
|
|
|
301
291
|
card.cardHolderName = "James Mason";
|
|
302
292
|
// build transaction
|
|
303
293
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
304
|
-
|
|
305
|
-
|
|
294
|
+
expect(saleResponse).toBeTruthy();
|
|
295
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
306
296
|
await throttle();
|
|
307
297
|
// request
|
|
308
298
|
const response = await saleResponse
|
|
@@ -310,11 +300,10 @@ ava_1.default.skip("JAVA_Hold_006l", async (t) => {
|
|
|
310
300
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
311
301
|
.withDescription("JAVA-Hold")
|
|
312
302
|
.execute();
|
|
313
|
-
|
|
314
|
-
|
|
303
|
+
expect(response).toBeTruthy();
|
|
304
|
+
expect("00").toBe(response.responseCode);
|
|
315
305
|
});
|
|
316
|
-
|
|
317
|
-
t.plan(2);
|
|
306
|
+
test.skip("JAVA_Hold_007a", async () => {
|
|
318
307
|
// create card
|
|
319
308
|
const card = new src_1.CreditCardData();
|
|
320
309
|
card.number = "4263970000005262";
|
|
@@ -325,8 +314,8 @@ ava_1.default.skip("JAVA_Hold_007a", async (t) => {
|
|
|
325
314
|
card.cardHolderName = "James Mason";
|
|
326
315
|
// build transaction
|
|
327
316
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
328
|
-
|
|
329
|
-
|
|
317
|
+
expect(saleResponse).toBeTruthy();
|
|
318
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
330
319
|
await throttle();
|
|
331
320
|
// request
|
|
332
321
|
const response = await saleResponse
|
|
@@ -334,11 +323,11 @@ ava_1.default.skip("JAVA_Hold_007a", async (t) => {
|
|
|
334
323
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
335
324
|
.withDescription("JAVA-Hold")
|
|
336
325
|
.execute();
|
|
337
|
-
|
|
338
|
-
|
|
326
|
+
expect(response).toBeTruthy();
|
|
327
|
+
expect("00").toBe(response.responseCode);
|
|
339
328
|
});
|
|
340
|
-
|
|
341
|
-
|
|
329
|
+
test.skip("JAVA_Hold_007b", async () => {
|
|
330
|
+
expect.assertions(2);
|
|
342
331
|
// create card
|
|
343
332
|
const card = new src_1.CreditCardData();
|
|
344
333
|
card.number = "4263970000005262";
|
|
@@ -349,8 +338,8 @@ ava_1.default.skip("JAVA_Hold_007b", async (t) => {
|
|
|
349
338
|
card.cardHolderName = "James Mason";
|
|
350
339
|
// build transaction
|
|
351
340
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
352
|
-
|
|
353
|
-
|
|
341
|
+
expect(saleResponse).toBeTruthy();
|
|
342
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
354
343
|
await throttle();
|
|
355
344
|
// request
|
|
356
345
|
const response = await saleResponse
|
|
@@ -358,11 +347,11 @@ ava_1.default.skip("JAVA_Hold_007b", async (t) => {
|
|
|
358
347
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
359
348
|
.withDescription("JAVA-Hold")
|
|
360
349
|
.execute();
|
|
361
|
-
|
|
362
|
-
|
|
350
|
+
expect(response).toBeTruthy();
|
|
351
|
+
expect("00").toBe(response.responseCode);
|
|
363
352
|
});
|
|
364
|
-
|
|
365
|
-
|
|
353
|
+
test.skip("JAVA_Hold_007c", async () => {
|
|
354
|
+
expect.assertions(2);
|
|
366
355
|
// create card
|
|
367
356
|
const card = new src_1.CreditCardData();
|
|
368
357
|
card.number = "4263970000005262";
|
|
@@ -373,8 +362,8 @@ ava_1.default.skip("JAVA_Hold_007c", async (t) => {
|
|
|
373
362
|
card.cardHolderName = "James Mason";
|
|
374
363
|
// build transaction
|
|
375
364
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
376
|
-
|
|
377
|
-
|
|
365
|
+
expect(saleResponse).toBeTruthy();
|
|
366
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
378
367
|
await throttle();
|
|
379
368
|
// request
|
|
380
369
|
const response = await saleResponse
|
|
@@ -382,31 +371,39 @@ ava_1.default.skip("JAVA_Hold_007c", async (t) => {
|
|
|
382
371
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
383
372
|
.withDescription("JAVA-Hold")
|
|
384
373
|
.execute();
|
|
385
|
-
|
|
386
|
-
|
|
374
|
+
expect(response).toBeTruthy();
|
|
375
|
+
expect("00").toBe(response.responseCode);
|
|
387
376
|
});
|
|
388
|
-
(
|
|
389
|
-
t.plan(2);
|
|
377
|
+
test("JAVA_Hold_007d", async () => {
|
|
390
378
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
391
379
|
// request
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
|
|
380
|
+
try {
|
|
381
|
+
await saleResponse
|
|
382
|
+
.hold()
|
|
383
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
384
|
+
.execute("withoutChannel");
|
|
385
|
+
}
|
|
386
|
+
catch (error) {
|
|
387
|
+
expect(error?.message).toBeTruthy();
|
|
388
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
test("JAVA_Hold_007e", async () => {
|
|
392
|
+
expect.assertions(2);
|
|
400
393
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
401
394
|
// request
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
|
|
395
|
+
try {
|
|
396
|
+
await saleResponse
|
|
397
|
+
.hold()
|
|
398
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
399
|
+
.execute("withoutChannel");
|
|
400
|
+
}
|
|
401
|
+
catch (error) {
|
|
402
|
+
expect(error?.message).toBeTruthy();
|
|
403
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
test.skip("JAVA_Hold_008a", async () => {
|
|
410
407
|
// create card
|
|
411
408
|
const card = new src_1.CreditCardData();
|
|
412
409
|
card.number = "4263970000005262";
|
|
@@ -417,8 +414,8 @@ ava_1.default.skip("JAVA_Hold_008a", async (t) => {
|
|
|
417
414
|
card.cardHolderName = "James Mason";
|
|
418
415
|
// build transaction
|
|
419
416
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
420
|
-
|
|
421
|
-
|
|
417
|
+
expect(saleResponse).toBeTruthy();
|
|
418
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
422
419
|
await throttle();
|
|
423
420
|
// request
|
|
424
421
|
const response = await saleResponse
|
|
@@ -426,11 +423,10 @@ ava_1.default.skip("JAVA_Hold_008a", async (t) => {
|
|
|
426
423
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
427
424
|
.withDescription("JAVA-Hold")
|
|
428
425
|
.execute();
|
|
429
|
-
|
|
430
|
-
|
|
426
|
+
expect(response).toBeTruthy();
|
|
427
|
+
expect("00").toBe(response.responseCode);
|
|
431
428
|
});
|
|
432
|
-
|
|
433
|
-
t.plan(2);
|
|
429
|
+
test.skip("JAVA_Hold_008b", async () => {
|
|
434
430
|
// create card
|
|
435
431
|
const card = new src_1.CreditCardData();
|
|
436
432
|
card.number = "4263970000005262";
|
|
@@ -441,8 +437,8 @@ ava_1.default.skip("JAVA_Hold_008b", async (t) => {
|
|
|
441
437
|
card.cardHolderName = "James Mason";
|
|
442
438
|
// build transaction
|
|
443
439
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
444
|
-
|
|
445
|
-
|
|
440
|
+
expect(saleResponse).toBeTruthy();
|
|
441
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
446
442
|
await throttle();
|
|
447
443
|
// request
|
|
448
444
|
const response = await saleResponse
|
|
@@ -450,41 +446,55 @@ ava_1.default.skip("JAVA_Hold_008b", async (t) => {
|
|
|
450
446
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
451
447
|
.withDescription("JAVA-Hold")
|
|
452
448
|
.execute();
|
|
453
|
-
|
|
454
|
-
|
|
449
|
+
expect(response).toBeTruthy();
|
|
450
|
+
expect("00").toBe(response.responseCode);
|
|
455
451
|
});
|
|
456
|
-
(
|
|
457
|
-
|
|
452
|
+
test("JAVA_Hold_008c", async () => {
|
|
453
|
+
expect.assertions(2);
|
|
458
454
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
459
455
|
// request
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
|
|
456
|
+
try {
|
|
457
|
+
await saleResponse
|
|
458
|
+
.hold()
|
|
459
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
460
|
+
.execute("withoutChannel");
|
|
461
|
+
}
|
|
462
|
+
catch (error) {
|
|
463
|
+
expect(error?.message).toBeTruthy();
|
|
464
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
test("JAVA_Hold_008d", async () => {
|
|
468
|
+
expect.assertions(2);
|
|
468
469
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
469
470
|
// request
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
|
|
471
|
+
try {
|
|
472
|
+
await saleResponse
|
|
473
|
+
.hold()
|
|
474
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
475
|
+
.execute("withoutChannel");
|
|
476
|
+
}
|
|
477
|
+
catch (error) {
|
|
478
|
+
expect(error?.message).toBeTruthy();
|
|
479
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
480
|
+
}
|
|
481
|
+
});
|
|
482
|
+
test("JAVA_Hold_008e", async () => {
|
|
483
|
+
expect.assertions(2);
|
|
478
484
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
479
485
|
// request
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
|
|
486
|
+
try {
|
|
487
|
+
await saleResponse
|
|
488
|
+
.hold()
|
|
489
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
490
|
+
.execute("withoutChannel");
|
|
491
|
+
}
|
|
492
|
+
catch (error) {
|
|
493
|
+
expect(error?.message).toBeTruthy();
|
|
494
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
test.skip("JAVA_Hold_009c", async () => {
|
|
488
498
|
// create card
|
|
489
499
|
const card = new src_1.CreditCardData();
|
|
490
500
|
card.number = "4263970000005262";
|
|
@@ -495,8 +505,8 @@ ava_1.default.skip("JAVA_Hold_009c", async (t) => {
|
|
|
495
505
|
card.cardHolderName = "James Mason";
|
|
496
506
|
// build transaction
|
|
497
507
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
498
|
-
|
|
499
|
-
|
|
508
|
+
expect(saleResponse).toBeTruthy();
|
|
509
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
500
510
|
await throttle();
|
|
501
511
|
// request
|
|
502
512
|
const response = await saleResponse
|
|
@@ -504,33 +514,40 @@ ava_1.default.skip("JAVA_Hold_009c", async (t) => {
|
|
|
504
514
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
505
515
|
.withDescription("JAVA-Hold")
|
|
506
516
|
.execute();
|
|
507
|
-
|
|
508
|
-
|
|
517
|
+
expect(response).toBeTruthy();
|
|
518
|
+
expect("00").toBe(response.responseCode);
|
|
509
519
|
});
|
|
510
|
-
(
|
|
511
|
-
t.plan(2);
|
|
520
|
+
test("JAVA_Hold_009d", async () => {
|
|
512
521
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
513
522
|
// request
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
+
try {
|
|
524
|
+
await saleResponse
|
|
525
|
+
.hold()
|
|
526
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
527
|
+
.withDescription("SDK-JAVA-Query")
|
|
528
|
+
.execute();
|
|
529
|
+
}
|
|
530
|
+
catch (error) {
|
|
531
|
+
expect(error?.message).toBeTruthy();
|
|
532
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
test("JAVA_Hold_009e", async () => {
|
|
523
536
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
524
537
|
// request
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
|
|
538
|
+
try {
|
|
539
|
+
await saleResponse
|
|
540
|
+
.hold()
|
|
541
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
542
|
+
.withDescription("SDK-JAVA-Query")
|
|
543
|
+
.execute();
|
|
544
|
+
}
|
|
545
|
+
catch (error) {
|
|
546
|
+
expect(error?.message).toBeTruthy();
|
|
547
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
test.skip("JAVA_Hold_010a", async () => {
|
|
534
551
|
// create card
|
|
535
552
|
const card = new src_1.CreditCardData();
|
|
536
553
|
card.number = "4263970000005262";
|
|
@@ -541,8 +558,8 @@ ava_1.default.skip("JAVA_Hold_010a", async (t) => {
|
|
|
541
558
|
card.cardHolderName = "James Mason";
|
|
542
559
|
// build transaction
|
|
543
560
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
544
|
-
|
|
545
|
-
|
|
561
|
+
expect(saleResponse).toBeTruthy();
|
|
562
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
546
563
|
await throttle();
|
|
547
564
|
// request
|
|
548
565
|
const response = await saleResponse
|
|
@@ -550,10 +567,10 @@ ava_1.default.skip("JAVA_Hold_010a", async (t) => {
|
|
|
550
567
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
551
568
|
.withDescription("JAVA-Hold")
|
|
552
569
|
.execute();
|
|
553
|
-
|
|
554
|
-
|
|
570
|
+
expect(response).toBeTruthy();
|
|
571
|
+
expect("00").toBe(response.responseCode);
|
|
555
572
|
});
|
|
556
|
-
(
|
|
573
|
+
test("JAVA_Hold_010b", async () => {
|
|
557
574
|
// create card
|
|
558
575
|
const card = new src_1.CreditCardData();
|
|
559
576
|
card.number = "4263970000005262";
|
|
@@ -564,8 +581,8 @@ ava_1.default.skip("JAVA_Hold_010a", async (t) => {
|
|
|
564
581
|
card.cardHolderName = "James Mason";
|
|
565
582
|
// build transaction
|
|
566
583
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
567
|
-
|
|
568
|
-
|
|
584
|
+
expect(saleResponse).toBeTruthy();
|
|
585
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
569
586
|
await throttle();
|
|
570
587
|
// request
|
|
571
588
|
const response = await saleResponse
|
|
@@ -573,22 +590,26 @@ ava_1.default.skip("JAVA_Hold_010a", async (t) => {
|
|
|
573
590
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
574
591
|
.withDescription("JAVA-Hold")
|
|
575
592
|
.execute();
|
|
576
|
-
|
|
577
|
-
|
|
593
|
+
expect(response).toBeTruthy();
|
|
594
|
+
expect("00").toBe(response.responseCode);
|
|
578
595
|
});
|
|
579
|
-
(
|
|
580
|
-
|
|
596
|
+
test("JAVA_Hold_010c", async () => {
|
|
597
|
+
expect.assertions(2);
|
|
581
598
|
const saleResponse = src_1.Transaction.fromId(undefined);
|
|
582
599
|
// request
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
|
|
600
|
+
try {
|
|
601
|
+
await saleResponse
|
|
602
|
+
.hold()
|
|
603
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
604
|
+
.withDescription("JAVA-Hold")
|
|
605
|
+
.execute();
|
|
606
|
+
}
|
|
607
|
+
catch (error) {
|
|
608
|
+
expect(error?.message).toBeTruthy();
|
|
609
|
+
expect(error instanceof src_1.BuilderError).toBe(true);
|
|
610
|
+
}
|
|
611
|
+
});
|
|
612
|
+
test.skip("JAVA_Hold_010d", async () => {
|
|
592
613
|
// create card
|
|
593
614
|
const card = new src_1.CreditCardData();
|
|
594
615
|
card.number = "4263970000005262";
|
|
@@ -599,8 +620,8 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
599
620
|
card.cardHolderName = "James Mason";
|
|
600
621
|
// build transaction
|
|
601
622
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
602
|
-
|
|
603
|
-
|
|
623
|
+
expect(saleResponse).toBeTruthy();
|
|
624
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
604
625
|
await throttle();
|
|
605
626
|
// request
|
|
606
627
|
const response = await saleResponse
|
|
@@ -608,10 +629,10 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
608
629
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
609
630
|
.withDescription("JAVA-Hold")
|
|
610
631
|
.execute();
|
|
611
|
-
|
|
612
|
-
|
|
632
|
+
expect(response).toBeTruthy();
|
|
633
|
+
expect("00").toBe(response.responseCode);
|
|
613
634
|
});
|
|
614
|
-
(
|
|
635
|
+
test("JAVA_Hold_011a", async () => {
|
|
615
636
|
// create card
|
|
616
637
|
const card = new src_1.CreditCardData();
|
|
617
638
|
card.number = "4263970000005262";
|
|
@@ -622,8 +643,8 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
622
643
|
card.cardHolderName = "James Mason";
|
|
623
644
|
// build transaction
|
|
624
645
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
625
|
-
|
|
626
|
-
|
|
646
|
+
expect(saleResponse).toBeTruthy();
|
|
647
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
627
648
|
await throttle();
|
|
628
649
|
// request
|
|
629
650
|
const response = await saleResponse
|
|
@@ -631,10 +652,10 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
631
652
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
632
653
|
.withDescription("JAVA-Hold")
|
|
633
654
|
.execute();
|
|
634
|
-
|
|
635
|
-
|
|
655
|
+
expect(response).toBeTruthy();
|
|
656
|
+
expect("00").toBe(response.responseCode);
|
|
636
657
|
});
|
|
637
|
-
(
|
|
658
|
+
test("JAVA_Hold_011b", async () => {
|
|
638
659
|
// create card
|
|
639
660
|
const card = new src_1.CreditCardData();
|
|
640
661
|
card.number = "4263970000005262";
|
|
@@ -645,8 +666,8 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
645
666
|
card.cardHolderName = "James Mason";
|
|
646
667
|
// build transaction
|
|
647
668
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
648
|
-
|
|
649
|
-
|
|
669
|
+
expect(saleResponse).toBeTruthy();
|
|
670
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
650
671
|
await throttle();
|
|
651
672
|
// request
|
|
652
673
|
const response = await saleResponse
|
|
@@ -654,10 +675,10 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
654
675
|
.withReasonCode(undefined)
|
|
655
676
|
.withDescription("JAVA-Hold")
|
|
656
677
|
.execute();
|
|
657
|
-
|
|
658
|
-
|
|
678
|
+
expect(response).toBeTruthy();
|
|
679
|
+
expect("00").toBe(response.responseCode);
|
|
659
680
|
});
|
|
660
|
-
(
|
|
681
|
+
test("JAVA_Hold_011c", async () => {
|
|
661
682
|
// create card
|
|
662
683
|
const card = new src_1.CreditCardData();
|
|
663
684
|
card.number = "4263970000005262";
|
|
@@ -668,18 +689,18 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
668
689
|
card.cardHolderName = "James Mason";
|
|
669
690
|
// build transaction
|
|
670
691
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
671
|
-
|
|
672
|
-
|
|
692
|
+
expect(saleResponse).toBeTruthy();
|
|
693
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
673
694
|
await throttle();
|
|
674
695
|
// request
|
|
675
696
|
const response = await saleResponse
|
|
676
697
|
.hold()
|
|
677
698
|
.withDescription("JAVA-Hold")
|
|
678
699
|
.execute();
|
|
679
|
-
|
|
680
|
-
|
|
700
|
+
expect(response).toBeTruthy();
|
|
701
|
+
expect("00").toBe(response.responseCode);
|
|
681
702
|
});
|
|
682
|
-
(
|
|
703
|
+
test("JAVA_Hold_011d", async () => {
|
|
683
704
|
// create card
|
|
684
705
|
const card = new src_1.CreditCardData();
|
|
685
706
|
card.number = "4263970000005262";
|
|
@@ -690,8 +711,8 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
690
711
|
card.cardHolderName = "James Mason";
|
|
691
712
|
// build transaction
|
|
692
713
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
693
|
-
|
|
694
|
-
|
|
714
|
+
expect(saleResponse).toBeTruthy();
|
|
715
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
695
716
|
await throttle();
|
|
696
717
|
// request
|
|
697
718
|
const response = await saleResponse
|
|
@@ -699,10 +720,10 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
699
720
|
.withReasonCode(undefined)
|
|
700
721
|
.withDescription("JAVA-Hold")
|
|
701
722
|
.execute();
|
|
702
|
-
|
|
703
|
-
|
|
723
|
+
expect(response).toBeTruthy();
|
|
724
|
+
expect("00").toBe(response.responseCode);
|
|
704
725
|
});
|
|
705
|
-
(
|
|
726
|
+
test("JAVA_Hold_012a", async () => {
|
|
706
727
|
// create card
|
|
707
728
|
const card = new src_1.CreditCardData();
|
|
708
729
|
card.number = "4263970000005262";
|
|
@@ -713,8 +734,8 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
713
734
|
card.cardHolderName = "James Mason";
|
|
714
735
|
// build transaction
|
|
715
736
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
716
|
-
|
|
717
|
-
|
|
737
|
+
expect(saleResponse).toBeTruthy();
|
|
738
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
718
739
|
await throttle();
|
|
719
740
|
// request
|
|
720
741
|
const response = await saleResponse
|
|
@@ -722,11 +743,10 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
722
743
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
723
744
|
.withDescription("JAVA-Hold")
|
|
724
745
|
.execute();
|
|
725
|
-
|
|
726
|
-
|
|
746
|
+
expect(response).toBeTruthy();
|
|
747
|
+
expect("00").toBe(response.responseCode);
|
|
727
748
|
});
|
|
728
|
-
|
|
729
|
-
t.plan(2);
|
|
749
|
+
test.skip("JAVA_Hold_012b", async () => {
|
|
730
750
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
731
751
|
config.merchantId = "heartlandgpsandbox";
|
|
732
752
|
config.accountId = "api";
|
|
@@ -746,18 +766,23 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
746
766
|
card.cardHolderName = "James Mason";
|
|
747
767
|
// build transaction
|
|
748
768
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
749
|
-
|
|
750
|
-
|
|
769
|
+
expect(saleResponse).toBeTruthy();
|
|
770
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
751
771
|
await throttle();
|
|
752
772
|
// request
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
}
|
|
760
|
-
|
|
773
|
+
try {
|
|
774
|
+
await saleResponse
|
|
775
|
+
.hold()
|
|
776
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
777
|
+
.withDescription("SDK-JAVA-Query")
|
|
778
|
+
.execute();
|
|
779
|
+
}
|
|
780
|
+
catch (error) {
|
|
781
|
+
expect(error?.message).toBeTruthy();
|
|
782
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
test("JAVA_Hold_013a", async () => {
|
|
761
786
|
// create card
|
|
762
787
|
const card = new src_1.CreditCardData();
|
|
763
788
|
card.number = "4263970000005262";
|
|
@@ -768,8 +793,8 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
768
793
|
card.cardHolderName = "James Mason";
|
|
769
794
|
// build transaction
|
|
770
795
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
771
|
-
|
|
772
|
-
|
|
796
|
+
expect(saleResponse).toBeTruthy();
|
|
797
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
773
798
|
await throttle();
|
|
774
799
|
// request
|
|
775
800
|
const response = await saleResponse
|
|
@@ -777,11 +802,10 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
777
802
|
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
778
803
|
.withDescription("JAVA-Hold")
|
|
779
804
|
.execute();
|
|
780
|
-
|
|
781
|
-
|
|
805
|
+
expect(response).toBeTruthy();
|
|
806
|
+
expect("00").toBe(response.responseCode);
|
|
782
807
|
});
|
|
783
|
-
|
|
784
|
-
t.plan(2);
|
|
808
|
+
test.skip("JAVA_Hold_013b", async () => {
|
|
785
809
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
786
810
|
config.merchantId = "heartlandgpsandbox";
|
|
787
811
|
config.accountId = "api";
|
|
@@ -801,19 +825,23 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
801
825
|
card.cardHolderName = "James Mason";
|
|
802
826
|
// build transaction
|
|
803
827
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
804
|
-
|
|
805
|
-
|
|
828
|
+
expect(saleResponse).toBeTruthy();
|
|
829
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
806
830
|
await throttle();
|
|
807
831
|
// request
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
|
|
832
|
+
try {
|
|
833
|
+
await saleResponse
|
|
834
|
+
.hold()
|
|
835
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
836
|
+
.withDescription("SDK-JAVA-Query")
|
|
837
|
+
.execute();
|
|
838
|
+
}
|
|
839
|
+
catch (error) {
|
|
840
|
+
expect(error?.message).toBeTruthy();
|
|
841
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
842
|
+
}
|
|
843
|
+
});
|
|
844
|
+
test.skip("JAVA_Hold_013c", async () => {
|
|
817
845
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
818
846
|
config.merchantId = "heartlandgpsandbox";
|
|
819
847
|
config.accountId = "api";
|
|
@@ -833,15 +861,20 @@ ava_1.default.skip("JAVA_Hold_010d", async (t) => {
|
|
|
833
861
|
card.cardHolderName = "James Mason";
|
|
834
862
|
// build transaction
|
|
835
863
|
const saleResponse = await card.charge(10).withCurrency("EUR").execute();
|
|
836
|
-
|
|
837
|
-
|
|
864
|
+
expect(saleResponse).toBeTruthy();
|
|
865
|
+
expect("00").toBe(saleResponse.responseCode);
|
|
838
866
|
await throttle();
|
|
839
867
|
// request
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
847
|
-
|
|
868
|
+
try {
|
|
869
|
+
await saleResponse
|
|
870
|
+
.hold()
|
|
871
|
+
.withReasonCode(src_1.ReasonCode.Fraud)
|
|
872
|
+
.withDescription("SDK-JAVA-Query")
|
|
873
|
+
.execute();
|
|
874
|
+
}
|
|
875
|
+
catch (error) {
|
|
876
|
+
expect(error?.message).toBeTruthy();
|
|
877
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
//# sourceMappingURL=Hold.test.js.map
|