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/{AuthTest.js → Auth.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 throttle = (i) => new Promise((resolve) => setTimeout(resolve, i * 1500));
|
|
10
6
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
@@ -15,11 +11,11 @@ config.refundPassword = "refund";
|
|
|
15
11
|
config.rebatePassword = "rebate";
|
|
16
12
|
config.timeout = 20000;
|
|
17
13
|
// const test = ava.serial;
|
|
18
|
-
|
|
14
|
+
beforeAll(() => {
|
|
19
15
|
src_1.ServicesContainer.configureService(config);
|
|
20
16
|
});
|
|
21
17
|
let i = 0;
|
|
22
|
-
|
|
18
|
+
beforeEach(async () => {
|
|
23
19
|
await throttle(i);
|
|
24
20
|
i += 0.1;
|
|
25
21
|
});
|
|
@@ -450,8 +446,7 @@ ava_1.default.beforeEach(async () => {
|
|
|
450
446
|
// t.truthy(response);
|
|
451
447
|
// t.is("00", response.responseCode);
|
|
452
448
|
// });
|
|
453
|
-
(
|
|
454
|
-
t.plan(2);
|
|
449
|
+
test("JAVA_Auth_009b", async () => {
|
|
455
450
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
456
451
|
config.merchantId = "heartlandgpsandbox";
|
|
457
452
|
config.accountId = "api";
|
|
@@ -470,15 +465,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
470
465
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
471
466
|
card.cardHolderName = "James Mason";
|
|
472
467
|
// request
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
468
|
+
try {
|
|
469
|
+
await card
|
|
470
|
+
.charge(100.01)
|
|
471
|
+
.withCurrency("USD")
|
|
472
|
+
.withDescription("JAVA-Auth-009b")
|
|
473
|
+
.execute("withAnotherChannelEcom");
|
|
474
|
+
}
|
|
475
|
+
catch (error) {
|
|
476
|
+
expect(error?.message).toBeTruthy();
|
|
477
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
478
|
+
}
|
|
479
479
|
});
|
|
480
|
-
(
|
|
481
|
-
t.plan(2);
|
|
480
|
+
test("JAVA_Auth_009c", async () => {
|
|
482
481
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
483
482
|
config.merchantId = "heartlandgpsandbox";
|
|
484
483
|
config.accountId = "api";
|
|
@@ -502,11 +501,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
502
501
|
.withCurrency("GBP")
|
|
503
502
|
.withDescription("JAVA-Auth-009c")
|
|
504
503
|
.execute("with3rdChannelEcom");
|
|
505
|
-
|
|
506
|
-
|
|
504
|
+
expect(res).toBeTruthy();
|
|
505
|
+
expect("00").toBe(res.responseCode);
|
|
507
506
|
});
|
|
508
|
-
(
|
|
509
|
-
t.plan(2);
|
|
507
|
+
test("JAVA_Auth_009d", async () => {
|
|
510
508
|
// create card
|
|
511
509
|
const card = new src_1.CreditCardData();
|
|
512
510
|
card.number = "4263970000005262";
|
|
@@ -521,11 +519,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
521
519
|
.withCurrency("GBP")
|
|
522
520
|
.withDescription("JAVA-Auth-009d")
|
|
523
521
|
.execute();
|
|
524
|
-
|
|
525
|
-
|
|
522
|
+
expect(response).toBeTruthy();
|
|
523
|
+
expect("00").toBe(response.responseCode);
|
|
526
524
|
});
|
|
527
|
-
(
|
|
528
|
-
t.plan(2);
|
|
525
|
+
test("JAVA_Auth_010a", async () => {
|
|
529
526
|
// create card
|
|
530
527
|
const card = new src_1.CreditCardData();
|
|
531
528
|
card.number = "4263970000005262";
|
|
@@ -540,11 +537,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
540
537
|
.withCurrency("USD")
|
|
541
538
|
.withDescription("JAVA-Auth-010a")
|
|
542
539
|
.execute();
|
|
543
|
-
|
|
544
|
-
|
|
540
|
+
expect(response).toBeTruthy();
|
|
541
|
+
expect("00").toBe(response.responseCode);
|
|
545
542
|
});
|
|
546
|
-
(
|
|
547
|
-
t.plan(2);
|
|
543
|
+
test("JAVA_Auth_010b", async () => {
|
|
548
544
|
// create card
|
|
549
545
|
const card = new src_1.CreditCardData();
|
|
550
546
|
card.number = "4263970000005262";
|
|
@@ -559,11 +555,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
559
555
|
.withCurrency("GBP")
|
|
560
556
|
.withDescription("JAVA-Auth-010b")
|
|
561
557
|
.execute();
|
|
562
|
-
|
|
563
|
-
|
|
558
|
+
expect(response).toBeTruthy();
|
|
559
|
+
expect("00").toBe(response.responseCode);
|
|
564
560
|
});
|
|
565
|
-
(
|
|
566
|
-
t.plan(2);
|
|
561
|
+
test("JAVA_Auth_010c", async () => {
|
|
567
562
|
// create card
|
|
568
563
|
const card = new src_1.CreditCardData();
|
|
569
564
|
card.number = "4263970000005262";
|
|
@@ -578,11 +573,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
578
573
|
.withCurrency("EUR")
|
|
579
574
|
.withDescription("JAVA-Auth-010c")
|
|
580
575
|
.execute();
|
|
581
|
-
|
|
582
|
-
|
|
576
|
+
expect(response).toBeTruthy();
|
|
577
|
+
expect("00").toBe(response.responseCode);
|
|
583
578
|
});
|
|
584
|
-
(
|
|
585
|
-
t.plan(2);
|
|
579
|
+
test("JAVA_Auth_010d", async () => {
|
|
586
580
|
// create card
|
|
587
581
|
const card = new src_1.CreditCardData();
|
|
588
582
|
card.number = "4263970000005262";
|
|
@@ -597,11 +591,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
597
591
|
.withCurrency("USD")
|
|
598
592
|
.withDescription("JAVA-Auth-010d")
|
|
599
593
|
.execute();
|
|
600
|
-
|
|
601
|
-
|
|
594
|
+
expect(response).toBeTruthy();
|
|
595
|
+
expect("00").toBe(response.responseCode);
|
|
602
596
|
});
|
|
603
|
-
(
|
|
604
|
-
t.plan(2);
|
|
597
|
+
test("JAVA_Auth_010e", async () => {
|
|
605
598
|
// create card
|
|
606
599
|
const card = new src_1.CreditCardData();
|
|
607
600
|
card.number = "4263970000005262";
|
|
@@ -616,11 +609,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
616
609
|
.withCurrency("GBP")
|
|
617
610
|
.withDescription("JAVA-Auth-010e")
|
|
618
611
|
.execute();
|
|
619
|
-
|
|
620
|
-
|
|
612
|
+
expect(response).toBeTruthy();
|
|
613
|
+
expect("00").toBe(response.responseCode);
|
|
621
614
|
});
|
|
622
|
-
(
|
|
623
|
-
t.plan(2);
|
|
615
|
+
test("JAVA_Auth_011a", async () => {
|
|
624
616
|
// create card
|
|
625
617
|
const card = new src_1.CreditCardData();
|
|
626
618
|
card.number = "4263970000005262";
|
|
@@ -635,11 +627,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
635
627
|
.withCurrency("EUR")
|
|
636
628
|
.withDescription("JAVA-Auth-011a")
|
|
637
629
|
.execute();
|
|
638
|
-
|
|
639
|
-
|
|
630
|
+
expect(response).toBeTruthy();
|
|
631
|
+
expect("00").toBe(response.responseCode);
|
|
640
632
|
});
|
|
641
|
-
(
|
|
642
|
-
t.plan(2);
|
|
633
|
+
test("JAVA_Auth_011b", async () => {
|
|
643
634
|
// create card
|
|
644
635
|
const card = new src_1.CreditCardData();
|
|
645
636
|
card.number = "4263970000005262";
|
|
@@ -654,11 +645,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
654
645
|
.withCurrency("USD")
|
|
655
646
|
.withDescription("JAVA-Auth-011b")
|
|
656
647
|
.execute();
|
|
657
|
-
|
|
658
|
-
|
|
648
|
+
expect(response).toBeTruthy();
|
|
649
|
+
expect("00").toBe(response.responseCode);
|
|
659
650
|
});
|
|
660
|
-
(
|
|
661
|
-
t.plan(2);
|
|
651
|
+
test("JAVA_Auth_011c", async () => {
|
|
662
652
|
// create card
|
|
663
653
|
const card = new src_1.CreditCardData();
|
|
664
654
|
card.number = "4263970000005262";
|
|
@@ -673,11 +663,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
673
663
|
.withCurrency("GBP")
|
|
674
664
|
.withDescription("JAVA-Auth-011c")
|
|
675
665
|
.execute();
|
|
676
|
-
|
|
677
|
-
|
|
666
|
+
expect(response).toBeTruthy();
|
|
667
|
+
expect("00").toBe(response.responseCode);
|
|
678
668
|
});
|
|
679
|
-
(
|
|
680
|
-
t.plan(2);
|
|
669
|
+
test("JAVA_Auth_011d", async () => {
|
|
681
670
|
// create card
|
|
682
671
|
const card = new src_1.CreditCardData();
|
|
683
672
|
card.number = "4263970000005262";
|
|
@@ -687,15 +676,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
687
676
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
688
677
|
card.cardHolderName = "James Mason";
|
|
689
678
|
// request
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
679
|
+
try {
|
|
680
|
+
await card
|
|
681
|
+
.charge()
|
|
682
|
+
.withCurrency("EUR")
|
|
683
|
+
.withDescription("JAVA-Auth-011d")
|
|
684
|
+
.execute();
|
|
685
|
+
}
|
|
686
|
+
catch (error) {
|
|
687
|
+
expect(error?.message).toBeTruthy();
|
|
688
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
689
|
+
}
|
|
696
690
|
});
|
|
697
|
-
(
|
|
698
|
-
t.plan(2);
|
|
691
|
+
test("JAVA_Auth_012a", async () => {
|
|
699
692
|
// create card
|
|
700
693
|
const card = new src_1.CreditCardData();
|
|
701
694
|
card.number = "4263970000005262";
|
|
@@ -710,11 +703,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
710
703
|
.withCurrency("USD")
|
|
711
704
|
.withDescription("JAVA-Auth-012a")
|
|
712
705
|
.execute();
|
|
713
|
-
|
|
714
|
-
|
|
706
|
+
expect(response).toBeTruthy();
|
|
707
|
+
expect("00").toBe(response.responseCode);
|
|
715
708
|
});
|
|
716
|
-
(
|
|
717
|
-
t.plan(2);
|
|
709
|
+
test("JAVA_Auth_012b", async () => {
|
|
718
710
|
// create card
|
|
719
711
|
const card = new src_1.CreditCardData();
|
|
720
712
|
card.number = "4263970000005262";
|
|
@@ -724,15 +716,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
724
716
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
725
717
|
card.cardHolderName = "James Mason";
|
|
726
718
|
// request
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
719
|
+
try {
|
|
720
|
+
await card
|
|
721
|
+
.charge(100.01)
|
|
722
|
+
.withCurrency("EURO")
|
|
723
|
+
.withDescription("JAVA-Auth-012b")
|
|
724
|
+
.execute();
|
|
725
|
+
}
|
|
726
|
+
catch (error) {
|
|
727
|
+
expect(error?.message).toBeTruthy();
|
|
728
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
729
|
+
}
|
|
733
730
|
});
|
|
734
|
-
(
|
|
735
|
-
t.plan(2);
|
|
731
|
+
test("JAVA_Auth_012c", async () => {
|
|
736
732
|
// create card
|
|
737
733
|
const card = new src_1.CreditCardData();
|
|
738
734
|
card.number = "4263970000005262";
|
|
@@ -742,15 +738,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
742
738
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
743
739
|
card.cardHolderName = "James Mason";
|
|
744
740
|
// request
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
741
|
+
try {
|
|
742
|
+
await card
|
|
743
|
+
.charge(100.01)
|
|
744
|
+
.withCurrency("EUR")
|
|
745
|
+
.withDescription("JAVA-Auth-012c")
|
|
746
|
+
.execute();
|
|
747
|
+
}
|
|
748
|
+
catch (error) {
|
|
749
|
+
expect(error?.message).toBeTruthy();
|
|
750
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
751
|
+
}
|
|
751
752
|
});
|
|
752
|
-
(
|
|
753
|
-
t.plan(2);
|
|
753
|
+
test("JAVA_Auth_012d", async () => {
|
|
754
754
|
// create card
|
|
755
755
|
const card = new src_1.CreditCardData();
|
|
756
756
|
card.number = "4263970000005262";
|
|
@@ -760,11 +760,15 @@ ava_1.default.beforeEach(async () => {
|
|
|
760
760
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
761
761
|
card.cardHolderName = "James Mason";
|
|
762
762
|
// request
|
|
763
|
-
|
|
764
|
-
|
|
763
|
+
try {
|
|
764
|
+
await card.charge(100.01).withDescription("JAVA-Auth-012d").execute();
|
|
765
|
+
}
|
|
766
|
+
catch (error) {
|
|
767
|
+
expect(error?.message).toBeTruthy();
|
|
768
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
769
|
+
}
|
|
765
770
|
});
|
|
766
|
-
(
|
|
767
|
-
t.plan(2);
|
|
771
|
+
test("JAVA_Auth_013a", async () => {
|
|
768
772
|
// create card
|
|
769
773
|
const card = new src_1.CreditCardData();
|
|
770
774
|
card.number = "4263970000005262";
|
|
@@ -779,11 +783,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
779
783
|
.withCurrency("GBP")
|
|
780
784
|
.withDescription("JAVA-Auth-013a")
|
|
781
785
|
.execute();
|
|
782
|
-
|
|
783
|
-
|
|
786
|
+
expect(response).toBeTruthy();
|
|
787
|
+
expect("00").toBe(response.responseCode);
|
|
784
788
|
});
|
|
785
|
-
(
|
|
786
|
-
t.plan(2);
|
|
789
|
+
test("JAVA_Auth_013b1", async () => {
|
|
787
790
|
// create card
|
|
788
791
|
const card = new src_1.CreditCardData();
|
|
789
792
|
card.number = "424242000000000000000";
|
|
@@ -793,15 +796,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
793
796
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
794
797
|
card.cardHolderName = "James Mason";
|
|
795
798
|
// request
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
799
|
+
try {
|
|
800
|
+
await card
|
|
801
|
+
.charge(100.01)
|
|
802
|
+
.withCurrency("EUR")
|
|
803
|
+
.withDescription("JAVA-Auth-013b1")
|
|
804
|
+
.execute();
|
|
805
|
+
}
|
|
806
|
+
catch (error) {
|
|
807
|
+
expect(error?.message).toBeTruthy();
|
|
808
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
809
|
+
}
|
|
802
810
|
});
|
|
803
|
-
(
|
|
804
|
-
t.plan(2);
|
|
811
|
+
test("JAVA_Auth_013b2", async () => {
|
|
805
812
|
// create card
|
|
806
813
|
const card = new src_1.CreditCardData();
|
|
807
814
|
card.number = "42424242424";
|
|
@@ -811,15 +818,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
811
818
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
812
819
|
card.cardHolderName = "James Mason";
|
|
813
820
|
// request
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
821
|
+
try {
|
|
822
|
+
await card
|
|
823
|
+
.charge(100.01)
|
|
824
|
+
.withCurrency("USD")
|
|
825
|
+
.withDescription("JAVA-Auth-013b2")
|
|
826
|
+
.execute();
|
|
827
|
+
}
|
|
828
|
+
catch (error) {
|
|
829
|
+
expect(error?.message).toBeTruthy();
|
|
830
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
831
|
+
}
|
|
820
832
|
});
|
|
821
|
-
(
|
|
822
|
-
t.plan(2);
|
|
833
|
+
test("JAVA_Auth_013c", async () => {
|
|
823
834
|
// create card
|
|
824
835
|
const card = new src_1.CreditCardData();
|
|
825
836
|
card.number = "4263970000005262#";
|
|
@@ -829,15 +840,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
829
840
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
830
841
|
card.cardHolderName = "James Mason";
|
|
831
842
|
// request
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
843
|
+
try {
|
|
844
|
+
await card
|
|
845
|
+
.charge(100.01)
|
|
846
|
+
.withCurrency("GBP")
|
|
847
|
+
.withDescription("JAVA-Auth-013c")
|
|
848
|
+
.execute();
|
|
849
|
+
}
|
|
850
|
+
catch (error) {
|
|
851
|
+
expect(error?.message).toBeTruthy();
|
|
852
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
853
|
+
}
|
|
838
854
|
});
|
|
839
|
-
(
|
|
840
|
-
t.plan(2);
|
|
855
|
+
test("JAVA_Auth_014a", async () => {
|
|
841
856
|
// create card
|
|
842
857
|
const card = new src_1.CreditCardData();
|
|
843
858
|
card.number = "4263970000005262";
|
|
@@ -852,11 +867,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
852
867
|
.withCurrency("EUR")
|
|
853
868
|
.withDescription("JAVA-Auth-014a")
|
|
854
869
|
.execute();
|
|
855
|
-
|
|
856
|
-
|
|
870
|
+
expect(response).toBeTruthy();
|
|
871
|
+
expect("00").toBe(response.responseCode);
|
|
857
872
|
});
|
|
858
|
-
(
|
|
859
|
-
t.plan(2);
|
|
873
|
+
test("JAVA_Auth_014b", async () => {
|
|
860
874
|
// create card
|
|
861
875
|
const card = new src_1.CreditCardData();
|
|
862
876
|
card.number = "4263970000005262";
|
|
@@ -865,15 +879,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
865
879
|
card.cvn = "123";
|
|
866
880
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
867
881
|
// request
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
882
|
+
try {
|
|
883
|
+
await card
|
|
884
|
+
.charge(100.01)
|
|
885
|
+
.withCurrency("USD")
|
|
886
|
+
.withDescription("JAVA-Auth-014b")
|
|
887
|
+
.execute();
|
|
888
|
+
}
|
|
889
|
+
catch (error) {
|
|
890
|
+
expect(error?.message).toBeTruthy();
|
|
891
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
892
|
+
}
|
|
874
893
|
});
|
|
875
|
-
(
|
|
876
|
-
t.plan(2);
|
|
894
|
+
test("JAVA_Auth_014c", async () => {
|
|
877
895
|
// create card
|
|
878
896
|
const card = new src_1.CreditCardData();
|
|
879
897
|
card.number = "4263970000005262";
|
|
@@ -884,15 +902,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
884
902
|
card.cardHolderName =
|
|
885
903
|
"3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep";
|
|
886
904
|
// request
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
905
|
+
try {
|
|
906
|
+
await card
|
|
907
|
+
.charge(100.01)
|
|
908
|
+
.withCurrency("GBP")
|
|
909
|
+
.withDescription("JAVA-Auth-014c")
|
|
910
|
+
.execute();
|
|
911
|
+
}
|
|
912
|
+
catch (error) {
|
|
913
|
+
expect(error?.message).toBeTruthy();
|
|
914
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
915
|
+
}
|
|
893
916
|
});
|
|
894
|
-
(
|
|
895
|
-
t.plan(2);
|
|
917
|
+
test("JAVA_Auth_014d", async () => {
|
|
896
918
|
// create card
|
|
897
919
|
const card = new src_1.CreditCardData();
|
|
898
920
|
card.number = "4263970000005262";
|
|
@@ -907,11 +929,11 @@ ava_1.default.beforeEach(async () => {
|
|
|
907
929
|
.withCurrency("EUR")
|
|
908
930
|
.withDescription("JAVA-Auth-014d")
|
|
909
931
|
.execute();
|
|
910
|
-
|
|
911
|
-
|
|
932
|
+
expect(response).toBeTruthy();
|
|
933
|
+
expect("00").toBe(response.responseCode);
|
|
912
934
|
});
|
|
913
|
-
(
|
|
914
|
-
|
|
935
|
+
test("JAVA_Auth_015a", async () => {
|
|
936
|
+
expect.assertions(2);
|
|
915
937
|
// create card
|
|
916
938
|
const card = new src_1.CreditCardData();
|
|
917
939
|
card.number = "4263970000005262";
|
|
@@ -926,11 +948,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
926
948
|
.withCurrency("USD")
|
|
927
949
|
.withDescription("JAVA-Auth-015a")
|
|
928
950
|
.execute();
|
|
929
|
-
|
|
930
|
-
|
|
951
|
+
expect(response).toBeTruthy();
|
|
952
|
+
expect("00").toBe(response.responseCode);
|
|
931
953
|
});
|
|
932
|
-
(
|
|
933
|
-
t.plan(2);
|
|
954
|
+
test("JAVA_Auth_015b", async () => {
|
|
934
955
|
// create card
|
|
935
956
|
const card = new src_1.CreditCardData();
|
|
936
957
|
card.number = "4263970000005262";
|
|
@@ -945,11 +966,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
945
966
|
.withCurrency("GBP")
|
|
946
967
|
.withDescription("JAVA-Auth-015b")
|
|
947
968
|
.execute();
|
|
948
|
-
|
|
949
|
-
|
|
969
|
+
expect(response).toBeTruthy();
|
|
970
|
+
expect("00").toBe(response.responseCode);
|
|
950
971
|
});
|
|
951
|
-
(
|
|
952
|
-
t.plan(2);
|
|
972
|
+
test("JAVA_Auth_015c", async () => {
|
|
953
973
|
// create card
|
|
954
974
|
const card = new src_1.CreditCardData();
|
|
955
975
|
card.number = "4263970000005262";
|
|
@@ -959,15 +979,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
959
979
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
960
980
|
card.cardHolderName = "James Mason";
|
|
961
981
|
// request
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
982
|
+
try {
|
|
983
|
+
await card
|
|
984
|
+
.charge(100.01)
|
|
985
|
+
.withCurrency("EUR")
|
|
986
|
+
.withDescription("JAVA-Auth-015c")
|
|
987
|
+
.execute();
|
|
988
|
+
}
|
|
989
|
+
catch (error) {
|
|
990
|
+
expect(error?.message).toBeTruthy();
|
|
991
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
992
|
+
}
|
|
968
993
|
});
|
|
969
|
-
(
|
|
970
|
-
t.plan(2);
|
|
994
|
+
test("JAVA_Auth_015d", async () => {
|
|
971
995
|
// create card
|
|
972
996
|
const card = new src_1.CreditCardData();
|
|
973
997
|
card.number = "4263970000005262";
|
|
@@ -975,15 +999,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
975
999
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
976
1000
|
card.cardHolderName = "James Mason";
|
|
977
1001
|
// request
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1002
|
+
try {
|
|
1003
|
+
await card
|
|
1004
|
+
.charge(100.01)
|
|
1005
|
+
.withCurrency("USD")
|
|
1006
|
+
.withDescription("JAVA-Auth-015d")
|
|
1007
|
+
.execute();
|
|
1008
|
+
}
|
|
1009
|
+
catch (error) {
|
|
1010
|
+
expect(error?.message).toBeTruthy();
|
|
1011
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
1012
|
+
}
|
|
984
1013
|
});
|
|
985
|
-
(
|
|
986
|
-
t.plan(2);
|
|
1014
|
+
test("JAVA_Auth_016a", async () => {
|
|
987
1015
|
// create card
|
|
988
1016
|
const card = new src_1.CreditCardData();
|
|
989
1017
|
card.number = "4263970000005262";
|
|
@@ -998,11 +1026,11 @@ ava_1.default.beforeEach(async () => {
|
|
|
998
1026
|
.withCurrency("GBP")
|
|
999
1027
|
.withDescription("JAVA-Auth-016a")
|
|
1000
1028
|
.execute();
|
|
1001
|
-
|
|
1002
|
-
|
|
1029
|
+
expect(response).toBeTruthy();
|
|
1030
|
+
expect("00").toBe(response.responseCode);
|
|
1003
1031
|
});
|
|
1004
|
-
(
|
|
1005
|
-
|
|
1032
|
+
test("JAVA_Auth_016b", async () => {
|
|
1033
|
+
expect.assertions(2);
|
|
1006
1034
|
// create card
|
|
1007
1035
|
const card = new src_1.CreditCardData();
|
|
1008
1036
|
card.number = "4263970000005262";
|
|
@@ -1016,11 +1044,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1016
1044
|
.withCurrency("EUR")
|
|
1017
1045
|
.withDescription("JAVA-Auth-016b")
|
|
1018
1046
|
.execute();
|
|
1019
|
-
|
|
1020
|
-
|
|
1047
|
+
expect(response).toBeTruthy();
|
|
1048
|
+
expect("00").toBe(response.responseCode);
|
|
1021
1049
|
});
|
|
1022
|
-
(
|
|
1023
|
-
t.plan(2);
|
|
1050
|
+
test("JAVA_Auth_016c", async () => {
|
|
1024
1051
|
// create card
|
|
1025
1052
|
const card = new src_1.CreditCardData();
|
|
1026
1053
|
card.number = "4263970000005262";
|
|
@@ -1035,11 +1062,11 @@ ava_1.default.beforeEach(async () => {
|
|
|
1035
1062
|
.withCurrency("USD")
|
|
1036
1063
|
.withDescription("JAVA-Auth-016c")
|
|
1037
1064
|
.execute();
|
|
1038
|
-
|
|
1039
|
-
|
|
1065
|
+
expect(response).toBeTruthy();
|
|
1066
|
+
expect("00").toBe(response.responseCode);
|
|
1040
1067
|
});
|
|
1041
|
-
(
|
|
1042
|
-
|
|
1068
|
+
test("JAVA_Auth_017a", async () => {
|
|
1069
|
+
expect.assertions(2);
|
|
1043
1070
|
// create card
|
|
1044
1071
|
const card = new src_1.CreditCardData();
|
|
1045
1072
|
card.number = "4263970000005262";
|
|
@@ -1054,11 +1081,11 @@ ava_1.default.beforeEach(async () => {
|
|
|
1054
1081
|
.withCurrency("GBP")
|
|
1055
1082
|
.withDescription("JAVA-Auth-017a")
|
|
1056
1083
|
.execute();
|
|
1057
|
-
|
|
1058
|
-
|
|
1084
|
+
expect(response).toBeTruthy();
|
|
1085
|
+
expect("00").toBe(response.responseCode);
|
|
1059
1086
|
});
|
|
1060
|
-
(
|
|
1061
|
-
|
|
1087
|
+
test("JAVA_Auth_018a", async () => {
|
|
1088
|
+
expect.assertions(2);
|
|
1062
1089
|
// create card
|
|
1063
1090
|
const card = new src_1.CreditCardData();
|
|
1064
1091
|
card.number = "4263970000005262";
|
|
@@ -1073,11 +1100,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1073
1100
|
.withCurrency("EUR")
|
|
1074
1101
|
.withDescription("JAVA-Auth-018a")
|
|
1075
1102
|
.execute();
|
|
1076
|
-
|
|
1077
|
-
|
|
1103
|
+
expect(response).toBeTruthy();
|
|
1104
|
+
expect("00").toBe(response.responseCode);
|
|
1078
1105
|
});
|
|
1079
|
-
(
|
|
1080
|
-
t.plan(2);
|
|
1106
|
+
test("JAVA_Auth_019a", async () => {
|
|
1081
1107
|
// create card
|
|
1082
1108
|
const card = new src_1.CreditCardData();
|
|
1083
1109
|
card.number = "4263970000005262";
|
|
@@ -1092,11 +1118,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1092
1118
|
.withCurrency("USD")
|
|
1093
1119
|
.withDescription("JAVA-Auth-019a")
|
|
1094
1120
|
.execute();
|
|
1095
|
-
|
|
1096
|
-
|
|
1121
|
+
expect(response).toBeTruthy();
|
|
1122
|
+
expect("00").toBe(response.responseCode);
|
|
1097
1123
|
});
|
|
1098
|
-
(
|
|
1099
|
-
t.plan(2);
|
|
1124
|
+
test("JAVA_Auth_019b1", async () => {
|
|
1100
1125
|
// create card
|
|
1101
1126
|
const card = new src_1.CreditCardData();
|
|
1102
1127
|
card.number = "4263970000005262";
|
|
@@ -1106,15 +1131,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
1106
1131
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
1107
1132
|
card.cardHolderName = "James Mason";
|
|
1108
1133
|
// request
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1134
|
+
try {
|
|
1135
|
+
await card
|
|
1136
|
+
.charge(100.01)
|
|
1137
|
+
.withCurrency("GBP")
|
|
1138
|
+
.withDescription("JAVA-Auth-019b1")
|
|
1139
|
+
.execute();
|
|
1140
|
+
}
|
|
1141
|
+
catch (error) {
|
|
1142
|
+
expect(error?.message).toBeTruthy();
|
|
1143
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
1144
|
+
}
|
|
1115
1145
|
});
|
|
1116
|
-
(
|
|
1117
|
-
t.plan(2);
|
|
1146
|
+
test("JAVA_Auth_019b2", async () => {
|
|
1118
1147
|
// create card
|
|
1119
1148
|
const card = new src_1.CreditCardData();
|
|
1120
1149
|
card.number = "4263970000005262";
|
|
@@ -1129,11 +1158,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1129
1158
|
.withCurrency("GBP")
|
|
1130
1159
|
.withDescription("JAVA-Auth-019b2")
|
|
1131
1160
|
.execute();
|
|
1132
|
-
|
|
1133
|
-
|
|
1161
|
+
expect(response).toBeTruthy();
|
|
1162
|
+
expect("00").toBe(response.responseCode);
|
|
1134
1163
|
});
|
|
1135
|
-
(
|
|
1136
|
-
t.plan(2);
|
|
1164
|
+
test("JAVA_Auth_019c", async () => {
|
|
1137
1165
|
// create card
|
|
1138
1166
|
const card = new src_1.CreditCardData();
|
|
1139
1167
|
card.number = "4263970000005262";
|
|
@@ -1143,15 +1171,19 @@ ava_1.default.beforeEach(async () => {
|
|
|
1143
1171
|
card.cvnPresenceIndicator = src_1.CvnPresenceIndicator.Present;
|
|
1144
1172
|
card.cardHolderName = "James Mason";
|
|
1145
1173
|
// request
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1174
|
+
try {
|
|
1175
|
+
await card
|
|
1176
|
+
.charge(100.01)
|
|
1177
|
+
.withCurrency("EUR")
|
|
1178
|
+
.withDescription("JAVA-Auth-019c")
|
|
1179
|
+
.execute();
|
|
1180
|
+
}
|
|
1181
|
+
catch (error) {
|
|
1182
|
+
expect(error?.message).toBeTruthy();
|
|
1183
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
1184
|
+
}
|
|
1152
1185
|
});
|
|
1153
|
-
(
|
|
1154
|
-
t.plan(2);
|
|
1186
|
+
test("JAVA_Auth_019d", async () => {
|
|
1155
1187
|
// create card
|
|
1156
1188
|
const card = new src_1.CreditCardData();
|
|
1157
1189
|
card.number = "374101000000608";
|
|
@@ -1166,11 +1198,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1166
1198
|
.withCurrency("USD")
|
|
1167
1199
|
.withDescription("JAVA-Auth-019d")
|
|
1168
1200
|
.execute();
|
|
1169
|
-
|
|
1170
|
-
|
|
1201
|
+
expect(response).toBeTruthy();
|
|
1202
|
+
expect("00").toBe(response.responseCode);
|
|
1171
1203
|
});
|
|
1172
|
-
(
|
|
1173
|
-
t.plan(2);
|
|
1204
|
+
test("JAVA_Auth_020a1", async () => {
|
|
1174
1205
|
// create card
|
|
1175
1206
|
const card = new src_1.CreditCardData();
|
|
1176
1207
|
card.number = "4263970000005262";
|
|
@@ -1185,11 +1216,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1185
1216
|
.withCurrency("GBP")
|
|
1186
1217
|
.withDescription("JAVA-Auth-020a1")
|
|
1187
1218
|
.execute();
|
|
1188
|
-
|
|
1189
|
-
|
|
1219
|
+
expect(response).toBeTruthy();
|
|
1220
|
+
expect("00").toBe(response.responseCode);
|
|
1190
1221
|
});
|
|
1191
|
-
(
|
|
1192
|
-
t.plan(2);
|
|
1222
|
+
test("JAVA_Auth_020a2", async () => {
|
|
1193
1223
|
// create card
|
|
1194
1224
|
const card = new src_1.CreditCardData();
|
|
1195
1225
|
card.number = "4263970000005262";
|
|
@@ -1204,11 +1234,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1204
1234
|
.withCurrency("EUR")
|
|
1205
1235
|
.withDescription("JAVA-Auth-020a2")
|
|
1206
1236
|
.execute();
|
|
1207
|
-
|
|
1208
|
-
|
|
1237
|
+
expect(response).toBeTruthy();
|
|
1238
|
+
expect("00").toBe(response.responseCode);
|
|
1209
1239
|
});
|
|
1210
|
-
(
|
|
1211
|
-
t.plan(2);
|
|
1240
|
+
test("JAVA_Auth_020a3", async () => {
|
|
1212
1241
|
// create card
|
|
1213
1242
|
const card = new src_1.CreditCardData();
|
|
1214
1243
|
card.number = "4263970000005262";
|
|
@@ -1223,11 +1252,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1223
1252
|
.withCurrency("USD")
|
|
1224
1253
|
.withDescription("JAVA-Auth-020a3")
|
|
1225
1254
|
.execute();
|
|
1226
|
-
|
|
1227
|
-
|
|
1255
|
+
expect(response).toBeTruthy();
|
|
1256
|
+
expect("00").toBe(response.responseCode);
|
|
1228
1257
|
});
|
|
1229
|
-
(
|
|
1230
|
-
t.plan(2);
|
|
1258
|
+
test("JAVA_Auth_020a4", async () => {
|
|
1231
1259
|
// create card
|
|
1232
1260
|
const card = new src_1.CreditCardData();
|
|
1233
1261
|
card.number = "4263970000005262";
|
|
@@ -1242,11 +1270,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1242
1270
|
.withCurrency("GBP")
|
|
1243
1271
|
.withDescription("JAVA-Auth-020a4")
|
|
1244
1272
|
.execute();
|
|
1245
|
-
|
|
1246
|
-
|
|
1273
|
+
expect(response).toBeTruthy();
|
|
1274
|
+
expect("00").toBe(response.responseCode);
|
|
1247
1275
|
});
|
|
1248
|
-
(
|
|
1249
|
-
t.plan(2);
|
|
1276
|
+
test("JAVA_Auth_020b", async () => {
|
|
1250
1277
|
// create card
|
|
1251
1278
|
const card = new src_1.CreditCardData();
|
|
1252
1279
|
card.number = "4263970000005262";
|
|
@@ -1256,15 +1283,24 @@ ava_1.default.beforeEach(async () => {
|
|
|
1256
1283
|
card.cvnPresenceIndicator = 5;
|
|
1257
1284
|
card.cardHolderName = "James Mason";
|
|
1258
1285
|
// request
|
|
1259
|
-
|
|
1286
|
+
await card
|
|
1260
1287
|
.charge(100.01)
|
|
1261
1288
|
.withCurrency("EUR")
|
|
1262
1289
|
.withDescription("JAVA-Auth-020b")
|
|
1263
|
-
.execute()
|
|
1264
|
-
|
|
1290
|
+
.execute();
|
|
1291
|
+
try {
|
|
1292
|
+
await card
|
|
1293
|
+
.charge(100.01)
|
|
1294
|
+
.withCurrency("EUR")
|
|
1295
|
+
.withDescription("JAVA-Auth-020b")
|
|
1296
|
+
.execute();
|
|
1297
|
+
}
|
|
1298
|
+
catch (error) {
|
|
1299
|
+
expect(error?.message).toBeTruthy();
|
|
1300
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
1301
|
+
}
|
|
1265
1302
|
});
|
|
1266
|
-
(
|
|
1267
|
-
t.plan(2);
|
|
1303
|
+
test("JAVA_Auth_020c", async () => {
|
|
1268
1304
|
// create card
|
|
1269
1305
|
const card = new src_1.CreditCardData();
|
|
1270
1306
|
card.number = "4263970000005262";
|
|
@@ -1279,11 +1315,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1279
1315
|
.withCurrency("USD")
|
|
1280
1316
|
.withDescription("JAVA-Auth-020c")
|
|
1281
1317
|
.execute();
|
|
1282
|
-
|
|
1283
|
-
|
|
1318
|
+
expect(response).toBeTruthy();
|
|
1319
|
+
expect("00").toBe(response.responseCode);
|
|
1284
1320
|
});
|
|
1285
|
-
(
|
|
1286
|
-
t.plan(2);
|
|
1321
|
+
test("JAVA_Auth_021a1", async () => {
|
|
1287
1322
|
// create card
|
|
1288
1323
|
const card = new src_1.CreditCardData();
|
|
1289
1324
|
card.number = "4263970000005262";
|
|
@@ -1298,11 +1333,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1298
1333
|
.withCurrency("GBP")
|
|
1299
1334
|
.withDescription("JAVA-Auth-021a1")
|
|
1300
1335
|
.execute();
|
|
1301
|
-
|
|
1302
|
-
|
|
1336
|
+
expect(response).toBeTruthy();
|
|
1337
|
+
expect("00").toBe(response.responseCode);
|
|
1303
1338
|
});
|
|
1304
|
-
(
|
|
1305
|
-
t.plan(2);
|
|
1339
|
+
test("JAVA_Auth_021a2", async () => {
|
|
1306
1340
|
// create card
|
|
1307
1341
|
const card = new src_1.CreditCardData();
|
|
1308
1342
|
card.number = "4263970000005262";
|
|
@@ -1317,11 +1351,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1317
1351
|
.withCurrency("EUR")
|
|
1318
1352
|
.withDescription("JAVA-Auth-021a2")
|
|
1319
1353
|
.execute();
|
|
1320
|
-
|
|
1321
|
-
|
|
1354
|
+
expect(response).toBeTruthy();
|
|
1355
|
+
expect("00").toBe(response.responseCode);
|
|
1322
1356
|
});
|
|
1323
|
-
(
|
|
1324
|
-
t.plan(2);
|
|
1357
|
+
test("JAVA_Auth_021a3", async () => {
|
|
1325
1358
|
// create card
|
|
1326
1359
|
const card = new src_1.CreditCardData();
|
|
1327
1360
|
card.number = "4263970000005262";
|
|
@@ -1336,11 +1369,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1336
1369
|
.withCurrency("USD")
|
|
1337
1370
|
.withDescription("JAVA-Auth-021a3")
|
|
1338
1371
|
.execute();
|
|
1339
|
-
|
|
1340
|
-
|
|
1372
|
+
expect(response).toBeTruthy();
|
|
1373
|
+
expect("00").toBe(response.responseCode);
|
|
1341
1374
|
});
|
|
1342
|
-
(
|
|
1343
|
-
t.plan(2);
|
|
1375
|
+
test("JAVA_Auth_021b", async () => {
|
|
1344
1376
|
// create card
|
|
1345
1377
|
const card = new src_1.CreditCardData();
|
|
1346
1378
|
card.number = "4263970000005262";
|
|
@@ -1355,11 +1387,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1355
1387
|
.withCurrency("EUR")
|
|
1356
1388
|
.withDescription("JAVA-Auth-021b")
|
|
1357
1389
|
.execute();
|
|
1358
|
-
|
|
1359
|
-
|
|
1390
|
+
expect(response).toBeTruthy();
|
|
1391
|
+
expect("00").toBe(response.responseCode);
|
|
1360
1392
|
});
|
|
1361
|
-
(
|
|
1362
|
-
t.plan(2);
|
|
1393
|
+
test("JAVA_Auth_021c", async () => {
|
|
1363
1394
|
// create card
|
|
1364
1395
|
const card = new src_1.CreditCardData();
|
|
1365
1396
|
card.number = "4263970000005262";
|
|
@@ -1374,11 +1405,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1374
1405
|
.withCurrency("USD")
|
|
1375
1406
|
.withDescription("JAVA-Auth-021c")
|
|
1376
1407
|
.execute();
|
|
1377
|
-
|
|
1378
|
-
|
|
1408
|
+
expect(response).toBeTruthy();
|
|
1409
|
+
expect("00").toBe(response.responseCode);
|
|
1379
1410
|
});
|
|
1380
|
-
(
|
|
1381
|
-
t.plan(2);
|
|
1411
|
+
test("JAVA_Auth_022a", async () => {
|
|
1382
1412
|
// create card
|
|
1383
1413
|
const card = new src_1.CreditCardData();
|
|
1384
1414
|
card.number = "4263970000005262";
|
|
@@ -1393,11 +1423,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1393
1423
|
.withCurrency("GBP")
|
|
1394
1424
|
.withDescription("JAVA-Auth-022a")
|
|
1395
1425
|
.execute();
|
|
1396
|
-
|
|
1397
|
-
|
|
1426
|
+
expect(response).toBeTruthy();
|
|
1427
|
+
expect("00").toBe(response.responseCode);
|
|
1398
1428
|
});
|
|
1399
|
-
(
|
|
1400
|
-
t.plan(2);
|
|
1429
|
+
test("JAVA_Auth_022b", async () => {
|
|
1401
1430
|
// create card
|
|
1402
1431
|
const card = new src_1.CreditCardData();
|
|
1403
1432
|
card.number = "4263970000005262";
|
|
@@ -1412,11 +1441,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1412
1441
|
.withCurrency("GBP")
|
|
1413
1442
|
.withDescription("JAVA-Auth-022b")
|
|
1414
1443
|
.execute();
|
|
1415
|
-
|
|
1416
|
-
|
|
1444
|
+
expect(response).toBeTruthy();
|
|
1445
|
+
expect("00").toBe(response.responseCode);
|
|
1417
1446
|
});
|
|
1418
|
-
(
|
|
1419
|
-
t.plan(2);
|
|
1447
|
+
test("JAVA_Auth_022c", async () => {
|
|
1420
1448
|
// create card
|
|
1421
1449
|
const card = new src_1.CreditCardData();
|
|
1422
1450
|
card.number = "4263970000005262";
|
|
@@ -1431,11 +1459,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1431
1459
|
.withCurrency("GBP")
|
|
1432
1460
|
.withDescription("JAVA-Auth-022c")
|
|
1433
1461
|
.execute();
|
|
1434
|
-
|
|
1435
|
-
|
|
1462
|
+
expect(response).toBeTruthy();
|
|
1463
|
+
expect("00").toBe(response.responseCode);
|
|
1436
1464
|
});
|
|
1437
|
-
(
|
|
1438
|
-
t.plan(2);
|
|
1465
|
+
test("JAVA_Auth_022d", async () => {
|
|
1439
1466
|
// create card
|
|
1440
1467
|
const card = new src_1.CreditCardData();
|
|
1441
1468
|
card.number = "4263970000005262";
|
|
@@ -1450,11 +1477,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1450
1477
|
.withCurrency("GBP")
|
|
1451
1478
|
.withDescription("JAVA-Auth-022d")
|
|
1452
1479
|
.execute();
|
|
1453
|
-
|
|
1454
|
-
|
|
1480
|
+
expect(response).toBeTruthy();
|
|
1481
|
+
expect("00").toBe(response.responseCode);
|
|
1455
1482
|
});
|
|
1456
|
-
(
|
|
1457
|
-
t.plan(2);
|
|
1483
|
+
test("JAVA_Auth_022e", async () => {
|
|
1458
1484
|
// create card
|
|
1459
1485
|
const card = new src_1.CreditCardData();
|
|
1460
1486
|
card.number = "4263970000005262";
|
|
@@ -1469,11 +1495,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1469
1495
|
.withCurrency("GBP")
|
|
1470
1496
|
.withDescription("JAVA-Auth-022e")
|
|
1471
1497
|
.execute();
|
|
1472
|
-
|
|
1473
|
-
|
|
1498
|
+
expect(response).toBeTruthy();
|
|
1499
|
+
expect("00").toBe(response.responseCode);
|
|
1474
1500
|
});
|
|
1475
|
-
(
|
|
1476
|
-
t.plan(2);
|
|
1501
|
+
test("JAVA_Auth_023a1", async () => {
|
|
1477
1502
|
// create card
|
|
1478
1503
|
const card = new src_1.CreditCardData();
|
|
1479
1504
|
card.number = "4263970000005262";
|
|
@@ -1488,11 +1513,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1488
1513
|
.withCurrency("EUR")
|
|
1489
1514
|
.withDescription("JAVA-Auth-023a1")
|
|
1490
1515
|
.execute();
|
|
1491
|
-
|
|
1492
|
-
|
|
1516
|
+
expect(response).toBeTruthy();
|
|
1517
|
+
expect("00").toBe(response.responseCode);
|
|
1493
1518
|
});
|
|
1494
|
-
(
|
|
1495
|
-
t.plan(2);
|
|
1519
|
+
test("JAVA_Auth_023a2", async () => {
|
|
1496
1520
|
// create card
|
|
1497
1521
|
const card = new src_1.CreditCardData();
|
|
1498
1522
|
card.number = "4263970000005262";
|
|
@@ -1507,11 +1531,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1507
1531
|
.withCurrency("USD")
|
|
1508
1532
|
.withDescription("JAVA-Auth-023a2")
|
|
1509
1533
|
.execute();
|
|
1510
|
-
|
|
1511
|
-
|
|
1534
|
+
expect(response).toBeTruthy();
|
|
1535
|
+
expect("00").toBe(response.responseCode);
|
|
1512
1536
|
});
|
|
1513
|
-
(
|
|
1514
|
-
t.plan(2);
|
|
1537
|
+
test("JAVA_Auth_023b1", async () => {
|
|
1515
1538
|
// create card
|
|
1516
1539
|
const card = new src_1.CreditCardData();
|
|
1517
1540
|
card.number = "4263970000005262";
|
|
@@ -1526,11 +1549,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1526
1549
|
.withCurrency("GBP")
|
|
1527
1550
|
.withDescription("JAVA-Auth-023b1")
|
|
1528
1551
|
.execute();
|
|
1529
|
-
|
|
1530
|
-
|
|
1552
|
+
expect(response).toBeTruthy();
|
|
1553
|
+
expect("00").toBe(response.responseCode);
|
|
1531
1554
|
});
|
|
1532
|
-
(
|
|
1533
|
-
t.plan(2);
|
|
1555
|
+
test("JAVA_Auth_023c", async () => {
|
|
1534
1556
|
// create card
|
|
1535
1557
|
const card = new src_1.CreditCardData();
|
|
1536
1558
|
card.number = "4263970000005262";
|
|
@@ -1545,11 +1567,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1545
1567
|
.withCurrency("GBP")
|
|
1546
1568
|
.withDescription("JAVA-Auth-023c")
|
|
1547
1569
|
.execute();
|
|
1548
|
-
|
|
1549
|
-
|
|
1570
|
+
expect(response).toBeTruthy();
|
|
1571
|
+
expect("00").toBe(response.responseCode);
|
|
1550
1572
|
});
|
|
1551
|
-
(
|
|
1552
|
-
t.plan(2);
|
|
1573
|
+
test("JAVA_Auth_024a1", async () => {
|
|
1553
1574
|
// create card
|
|
1554
1575
|
const card = new src_1.CreditCardData();
|
|
1555
1576
|
card.number = "4263970000005262";
|
|
@@ -1564,11 +1585,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1564
1585
|
.withCurrency("EUR")
|
|
1565
1586
|
.withDescription("JAVA-Auth-024a1")
|
|
1566
1587
|
.execute();
|
|
1567
|
-
|
|
1568
|
-
|
|
1588
|
+
expect(response).toBeTruthy();
|
|
1589
|
+
expect("00").toBe(response.responseCode);
|
|
1569
1590
|
});
|
|
1570
|
-
(
|
|
1571
|
-
t.plan(2);
|
|
1591
|
+
test("JAVA_Auth_024a2", async () => {
|
|
1572
1592
|
// create card
|
|
1573
1593
|
const card = new src_1.CreditCardData();
|
|
1574
1594
|
card.number = "4263970000005262";
|
|
@@ -1583,11 +1603,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1583
1603
|
.withCurrency("USD")
|
|
1584
1604
|
.withDescription("JAVA-Auth-024a2")
|
|
1585
1605
|
.execute();
|
|
1586
|
-
|
|
1587
|
-
|
|
1606
|
+
expect(response).toBeTruthy();
|
|
1607
|
+
expect("00").toBe(response.responseCode);
|
|
1588
1608
|
});
|
|
1589
|
-
(
|
|
1590
|
-
t.plan(2);
|
|
1609
|
+
test("JAVA_Auth_024a3", async () => {
|
|
1591
1610
|
// create card
|
|
1592
1611
|
const card = new src_1.CreditCardData();
|
|
1593
1612
|
card.number = "4263970000005262";
|
|
@@ -1602,11 +1621,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1602
1621
|
.withCurrency("GBP")
|
|
1603
1622
|
.withDescription("JAVA-Auth-024a3")
|
|
1604
1623
|
.execute();
|
|
1605
|
-
|
|
1606
|
-
|
|
1624
|
+
expect(response).toBeTruthy();
|
|
1625
|
+
expect("00").toBe(response.responseCode);
|
|
1607
1626
|
});
|
|
1608
|
-
(
|
|
1609
|
-
t.plan(2);
|
|
1627
|
+
test("JAVA_Auth_024b", async () => {
|
|
1610
1628
|
// create card
|
|
1611
1629
|
const card = new src_1.CreditCardData();
|
|
1612
1630
|
card.number = "4263970000005262";
|
|
@@ -1621,11 +1639,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1621
1639
|
.withCurrency("EUR")
|
|
1622
1640
|
.withDescription("JAVA-Auth-024b")
|
|
1623
1641
|
.execute();
|
|
1624
|
-
|
|
1625
|
-
|
|
1642
|
+
expect(response).toBeTruthy();
|
|
1643
|
+
expect("00").toBe(response.responseCode);
|
|
1626
1644
|
});
|
|
1627
|
-
(
|
|
1628
|
-
t.plan(2);
|
|
1645
|
+
test("JAVA_Auth_024c", async () => {
|
|
1629
1646
|
// create card
|
|
1630
1647
|
const card = new src_1.CreditCardData();
|
|
1631
1648
|
card.number = "4263970000005262";
|
|
@@ -1640,11 +1657,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1640
1657
|
.withCurrency("USD")
|
|
1641
1658
|
.withDescription("JAVA-Auth-024c")
|
|
1642
1659
|
.execute();
|
|
1643
|
-
|
|
1644
|
-
|
|
1660
|
+
expect(response).toBeTruthy();
|
|
1661
|
+
expect("00").toBe(response.responseCode);
|
|
1645
1662
|
});
|
|
1646
|
-
(
|
|
1647
|
-
t.plan(2);
|
|
1663
|
+
test("JAVA_Auth_025", async () => {
|
|
1648
1664
|
// create card
|
|
1649
1665
|
const card = new src_1.CreditCardData();
|
|
1650
1666
|
card.number = "4263970000005262";
|
|
@@ -1659,11 +1675,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1659
1675
|
.withCurrency("GBP")
|
|
1660
1676
|
.withDescription("JAVA-Auth-025")
|
|
1661
1677
|
.execute();
|
|
1662
|
-
|
|
1663
|
-
|
|
1678
|
+
expect(response).toBeTruthy();
|
|
1679
|
+
expect("00").toBe(response.responseCode);
|
|
1664
1680
|
});
|
|
1665
|
-
(
|
|
1666
|
-
t.plan(2);
|
|
1681
|
+
test("JAVA_Auth_026a1", async () => {
|
|
1667
1682
|
// create card
|
|
1668
1683
|
const card = new src_1.CreditCardData();
|
|
1669
1684
|
card.number = "4263970000005262";
|
|
@@ -1678,11 +1693,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1678
1693
|
.withCurrency("EUR")
|
|
1679
1694
|
.withDescription("JAVA-Auth-026a1")
|
|
1680
1695
|
.execute();
|
|
1681
|
-
|
|
1682
|
-
|
|
1696
|
+
expect(response).toBeTruthy();
|
|
1697
|
+
expect("00").toBe(response.responseCode);
|
|
1683
1698
|
});
|
|
1684
|
-
(
|
|
1685
|
-
t.plan(2);
|
|
1699
|
+
test("JAVA_Auth_026a2", async () => {
|
|
1686
1700
|
// create card
|
|
1687
1701
|
const card = new src_1.CreditCardData();
|
|
1688
1702
|
card.number = "4263970000005262";
|
|
@@ -1693,11 +1707,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1693
1707
|
card.cardHolderName = "James Mason";
|
|
1694
1708
|
// request
|
|
1695
1709
|
const response = await card.charge(100.01).withCurrency("EUR").execute();
|
|
1696
|
-
|
|
1697
|
-
|
|
1710
|
+
expect(response).toBeTruthy();
|
|
1711
|
+
expect("00").toBe(response.responseCode);
|
|
1698
1712
|
});
|
|
1699
|
-
(
|
|
1700
|
-
t.plan(2);
|
|
1713
|
+
test("JAVA_Auth_026b", async () => {
|
|
1701
1714
|
// create card
|
|
1702
1715
|
const card = new src_1.CreditCardData();
|
|
1703
1716
|
card.number = "4263970000005262";
|
|
@@ -1708,11 +1721,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1708
1721
|
card.cardHolderName = "James Mason";
|
|
1709
1722
|
// request
|
|
1710
1723
|
const response = await card.charge(100.01).withCurrency("USD").execute();
|
|
1711
|
-
|
|
1712
|
-
|
|
1724
|
+
expect(response).toBeTruthy();
|
|
1725
|
+
expect("00").toBe(response.responseCode);
|
|
1713
1726
|
});
|
|
1714
|
-
(
|
|
1715
|
-
t.plan(2);
|
|
1727
|
+
test("JAVA_Auth_026c1", async () => {
|
|
1716
1728
|
// create card
|
|
1717
1729
|
const card = new src_1.CreditCardData();
|
|
1718
1730
|
card.number = "4263970000005262";
|
|
@@ -1729,11 +1741,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1729
1741
|
.withDescription("3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIwep3uviSnW9XEB3a4wpIwepeep3a4wpIwep3uviSnW9XEB3a4wpIep3uviSnW9XEB3a4wpIW9XEB3a")
|
|
1730
1742
|
/* eslint-enable */
|
|
1731
1743
|
.execute();
|
|
1732
|
-
|
|
1733
|
-
|
|
1744
|
+
expect(response).toBeTruthy();
|
|
1745
|
+
expect("00").toBe(response.responseCode);
|
|
1734
1746
|
});
|
|
1735
|
-
(
|
|
1736
|
-
t.plan(2);
|
|
1747
|
+
test("JAVA_Auth_026c2", async () => {
|
|
1737
1748
|
// create card
|
|
1738
1749
|
const card = new src_1.CreditCardData();
|
|
1739
1750
|
card.number = "4263970000005262";
|
|
@@ -1748,11 +1759,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1748
1759
|
.withCurrency("EUR")
|
|
1749
1760
|
.withDescription("JAVA-Auth-026c2")
|
|
1750
1761
|
.execute();
|
|
1751
|
-
|
|
1752
|
-
|
|
1762
|
+
expect(response).toBeTruthy();
|
|
1763
|
+
expect("00").toBe(response.responseCode);
|
|
1753
1764
|
});
|
|
1754
|
-
(
|
|
1755
|
-
t.plan(2);
|
|
1765
|
+
test("JAVA_Auth_027a", async () => {
|
|
1756
1766
|
// create card
|
|
1757
1767
|
const card = new src_1.CreditCardData();
|
|
1758
1768
|
card.number = "4263970000005262";
|
|
@@ -1768,11 +1778,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1768
1778
|
.withCustomerId("123456")
|
|
1769
1779
|
.withDescription("JAVA-Auth-027a")
|
|
1770
1780
|
.execute();
|
|
1771
|
-
|
|
1772
|
-
|
|
1781
|
+
expect(response).toBeTruthy();
|
|
1782
|
+
expect("00").toBe(response.responseCode);
|
|
1773
1783
|
});
|
|
1774
|
-
(
|
|
1775
|
-
t.plan(2);
|
|
1784
|
+
test("JAVA_Auth_028a", async () => {
|
|
1776
1785
|
// create card
|
|
1777
1786
|
const card = new src_1.CreditCardData();
|
|
1778
1787
|
card.number = "4263970000005262";
|
|
@@ -1788,11 +1797,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1788
1797
|
.withCustomerId("123456")
|
|
1789
1798
|
.withDescription("JAVA-Auth-028a")
|
|
1790
1799
|
.execute();
|
|
1791
|
-
|
|
1792
|
-
|
|
1800
|
+
expect(response).toBeTruthy();
|
|
1801
|
+
expect("00").toBe(response.responseCode);
|
|
1793
1802
|
});
|
|
1794
|
-
(
|
|
1795
|
-
t.plan(2);
|
|
1803
|
+
test("JAVA_Auth_028b", async () => {
|
|
1796
1804
|
// create card
|
|
1797
1805
|
const card = new src_1.CreditCardData();
|
|
1798
1806
|
card.number = "4263970000005262";
|
|
@@ -1807,11 +1815,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1807
1815
|
.withCurrency("EUR")
|
|
1808
1816
|
.withDescription("JAVA-Auth-028b")
|
|
1809
1817
|
.execute();
|
|
1810
|
-
|
|
1811
|
-
|
|
1818
|
+
expect(response).toBeTruthy();
|
|
1819
|
+
expect("00").toBe(response.responseCode);
|
|
1812
1820
|
});
|
|
1813
|
-
(
|
|
1814
|
-
t.plan(2);
|
|
1821
|
+
test("JAVA_Auth_028c", async () => {
|
|
1815
1822
|
// create card
|
|
1816
1823
|
const card = new src_1.CreditCardData();
|
|
1817
1824
|
card.number = "4263970000005262";
|
|
@@ -1829,11 +1836,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1829
1836
|
// tslint:enable:max-line-length
|
|
1830
1837
|
.withDescription("JAVA-Auth-028c")
|
|
1831
1838
|
.execute();
|
|
1832
|
-
|
|
1833
|
-
|
|
1839
|
+
expect(res).toBeTruthy();
|
|
1840
|
+
expect("00").toBe(res.responseCode);
|
|
1834
1841
|
});
|
|
1835
|
-
(
|
|
1836
|
-
t.plan(2);
|
|
1842
|
+
test("JAVA_Auth_028d", async () => {
|
|
1837
1843
|
// create card
|
|
1838
1844
|
const card = new src_1.CreditCardData();
|
|
1839
1845
|
card.number = "4263970000005262";
|
|
@@ -1849,11 +1855,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1849
1855
|
.withCustomerId("123456~")
|
|
1850
1856
|
.withDescription("JAVA-Auth-028d")
|
|
1851
1857
|
.execute();
|
|
1852
|
-
|
|
1853
|
-
|
|
1858
|
+
expect(res).toBeTruthy();
|
|
1859
|
+
expect("00").toBe(res.responseCode);
|
|
1854
1860
|
});
|
|
1855
|
-
(
|
|
1856
|
-
t.plan(2);
|
|
1861
|
+
test("JAVA_Auth_029a", async () => {
|
|
1857
1862
|
// create card
|
|
1858
1863
|
const card = new src_1.CreditCardData();
|
|
1859
1864
|
card.number = "4263970000005262";
|
|
@@ -1869,11 +1874,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1869
1874
|
.withProductId("123456")
|
|
1870
1875
|
.withDescription("JAVA-Auth-029a")
|
|
1871
1876
|
.execute();
|
|
1872
|
-
|
|
1873
|
-
|
|
1877
|
+
expect(response).toBeTruthy();
|
|
1878
|
+
expect("00").toBe(response.responseCode);
|
|
1874
1879
|
});
|
|
1875
|
-
(
|
|
1876
|
-
t.plan(2);
|
|
1880
|
+
test("JAVA_Auth_029b", async () => {
|
|
1877
1881
|
// create card
|
|
1878
1882
|
const card = new src_1.CreditCardData();
|
|
1879
1883
|
card.number = "4263970000005262";
|
|
@@ -1888,11 +1892,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1888
1892
|
.withCurrency("USD")
|
|
1889
1893
|
.withDescription("JAVA-Auth-029b")
|
|
1890
1894
|
.execute();
|
|
1891
|
-
|
|
1892
|
-
|
|
1895
|
+
expect(response).toBeTruthy();
|
|
1896
|
+
expect("00").toBe(response.responseCode);
|
|
1893
1897
|
});
|
|
1894
|
-
(
|
|
1895
|
-
t.plan(2);
|
|
1898
|
+
test("JAVA_Auth_029c", async () => {
|
|
1896
1899
|
// create card
|
|
1897
1900
|
const card = new src_1.CreditCardData();
|
|
1898
1901
|
card.number = "4263970000005262";
|
|
@@ -1910,11 +1913,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1910
1913
|
// tslint:enable:max-line-length
|
|
1911
1914
|
.withDescription("JAVA-Auth-029c")
|
|
1912
1915
|
.execute();
|
|
1913
|
-
|
|
1914
|
-
|
|
1916
|
+
expect(res).toBeTruthy();
|
|
1917
|
+
expect("00").toBe(res.responseCode);
|
|
1915
1918
|
});
|
|
1916
|
-
(
|
|
1917
|
-
t.plan(2);
|
|
1919
|
+
test("JAVA_Auth_029d", async () => {
|
|
1918
1920
|
// create card
|
|
1919
1921
|
const card = new src_1.CreditCardData();
|
|
1920
1922
|
card.number = "4263970000005262";
|
|
@@ -1930,11 +1932,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1930
1932
|
.withProductId("123456~")
|
|
1931
1933
|
.withDescription("JAVA-Auth-029d")
|
|
1932
1934
|
.execute();
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
+
expect(res).toBeTruthy();
|
|
1936
|
+
expect("00").toBe(res.responseCode);
|
|
1935
1937
|
});
|
|
1936
|
-
(
|
|
1937
|
-
t.plan(2);
|
|
1938
|
+
test("JAVA_Auth_030a", async () => {
|
|
1938
1939
|
// create card
|
|
1939
1940
|
const card = new src_1.CreditCardData();
|
|
1940
1941
|
card.number = "4263970000005262";
|
|
@@ -1950,11 +1951,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1950
1951
|
.withClientTransactionId("123456")
|
|
1951
1952
|
.withDescription("JAVA-Auth-030a")
|
|
1952
1953
|
.execute();
|
|
1953
|
-
|
|
1954
|
-
|
|
1954
|
+
expect(response).toBeTruthy();
|
|
1955
|
+
expect("00").toBe(response.responseCode);
|
|
1955
1956
|
});
|
|
1956
|
-
(
|
|
1957
|
-
t.plan(2);
|
|
1957
|
+
test("JAVA_Auth_030b", async () => {
|
|
1958
1958
|
// create card
|
|
1959
1959
|
const card = new src_1.CreditCardData();
|
|
1960
1960
|
card.number = "4263970000005262";
|
|
@@ -1969,11 +1969,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1969
1969
|
.withCurrency("GBP")
|
|
1970
1970
|
.withDescription("JAVA-Auth-030b")
|
|
1971
1971
|
.execute();
|
|
1972
|
-
|
|
1973
|
-
|
|
1972
|
+
expect(response).toBeTruthy();
|
|
1973
|
+
expect("00").toBe(response.responseCode);
|
|
1974
1974
|
});
|
|
1975
|
-
(
|
|
1976
|
-
t.plan(2);
|
|
1975
|
+
test("JAVA_Auth_030c", async () => {
|
|
1977
1976
|
// create card
|
|
1978
1977
|
const card = new src_1.CreditCardData();
|
|
1979
1978
|
card.number = "4263970000005262";
|
|
@@ -1991,11 +1990,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
1991
1990
|
// tslint:enable:max-line-length
|
|
1992
1991
|
.withDescription("JAVA-Auth-030c")
|
|
1993
1992
|
.execute();
|
|
1994
|
-
|
|
1995
|
-
|
|
1993
|
+
expect(res).toBeTruthy();
|
|
1994
|
+
expect("00").toBe(res.responseCode);
|
|
1996
1995
|
});
|
|
1997
|
-
(
|
|
1998
|
-
t.plan(2);
|
|
1996
|
+
test("JAVA_Auth_030d", async () => {
|
|
1999
1997
|
// create card
|
|
2000
1998
|
const card = new src_1.CreditCardData();
|
|
2001
1999
|
card.number = "4263970000005262";
|
|
@@ -2011,11 +2009,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2011
2009
|
.withClientTransactionId("123456~")
|
|
2012
2010
|
.withDescription("JAVA-Auth-030d")
|
|
2013
2011
|
.execute();
|
|
2014
|
-
|
|
2015
|
-
|
|
2012
|
+
expect(res).toBeTruthy();
|
|
2013
|
+
expect("00").toBe(res.responseCode);
|
|
2016
2014
|
});
|
|
2017
|
-
(
|
|
2018
|
-
t.plan(2);
|
|
2015
|
+
test("JAVA_Auth_031a", async () => {
|
|
2019
2016
|
// create card
|
|
2020
2017
|
const card = new src_1.CreditCardData();
|
|
2021
2018
|
card.number = "4263970000005262";
|
|
@@ -2031,11 +2028,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2031
2028
|
.withCustomerIpAddress("123.123.123.123")
|
|
2032
2029
|
.withDescription("JAVA-Auth-031a")
|
|
2033
2030
|
.execute();
|
|
2034
|
-
|
|
2035
|
-
|
|
2031
|
+
expect(response).toBeTruthy();
|
|
2032
|
+
expect("00").toBe(response.responseCode);
|
|
2036
2033
|
});
|
|
2037
|
-
(
|
|
2038
|
-
t.plan(2);
|
|
2034
|
+
test("JAVA_Auth_031b", async () => {
|
|
2039
2035
|
// create card
|
|
2040
2036
|
const card = new src_1.CreditCardData();
|
|
2041
2037
|
card.number = "4263970000005262";
|
|
@@ -2050,11 +2046,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2050
2046
|
.withCurrency("EUR")
|
|
2051
2047
|
.withDescription("JAVA-Auth-031b")
|
|
2052
2048
|
.execute();
|
|
2053
|
-
|
|
2054
|
-
|
|
2049
|
+
expect(response).toBeTruthy();
|
|
2050
|
+
expect("00").toBe(response.responseCode);
|
|
2055
2051
|
});
|
|
2056
|
-
(
|
|
2057
|
-
t.plan(2);
|
|
2052
|
+
test("JAVA_Auth_031c1", async () => {
|
|
2058
2053
|
// create card
|
|
2059
2054
|
const card = new src_1.CreditCardData();
|
|
2060
2055
|
card.number = "4263970000005262";
|
|
@@ -2070,11 +2065,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2070
2065
|
.withCustomerIpAddress("123.123.123.123")
|
|
2071
2066
|
.withDescription("JAVA-Auth-031c1")
|
|
2072
2067
|
.execute();
|
|
2073
|
-
|
|
2074
|
-
|
|
2068
|
+
expect(response).toBeTruthy();
|
|
2069
|
+
expect("00").toBe(response.responseCode);
|
|
2075
2070
|
});
|
|
2076
|
-
(
|
|
2077
|
-
t.plan(2);
|
|
2071
|
+
test("JAVA_Auth_031c2", async () => {
|
|
2078
2072
|
// create card
|
|
2079
2073
|
const card = new src_1.CreditCardData();
|
|
2080
2074
|
card.number = "4263970000005262";
|
|
@@ -2090,11 +2084,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2090
2084
|
.withCustomerIpAddress("123.123.123.123")
|
|
2091
2085
|
.withDescription("JAVA-Auth-031c2")
|
|
2092
2086
|
.execute();
|
|
2093
|
-
|
|
2094
|
-
|
|
2087
|
+
expect(response).toBeTruthy();
|
|
2088
|
+
expect("00").toBe(response.responseCode);
|
|
2095
2089
|
});
|
|
2096
|
-
(
|
|
2097
|
-
t.plan(2);
|
|
2090
|
+
test("JAVA_Auth_032a", async () => {
|
|
2098
2091
|
// billing address
|
|
2099
2092
|
const billingAddress = new src_1.Address();
|
|
2100
2093
|
billingAddress.postalCode = "E77 4QJ";
|
|
@@ -2119,11 +2112,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2119
2112
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2120
2113
|
.withDescription("JAVA-Auth-032a")
|
|
2121
2114
|
.execute();
|
|
2122
|
-
|
|
2123
|
-
|
|
2115
|
+
expect(response).toBeTruthy();
|
|
2116
|
+
expect("00").toBe(response.responseCode);
|
|
2124
2117
|
});
|
|
2125
|
-
(
|
|
2126
|
-
t.plan(2);
|
|
2118
|
+
test("JAVA_Auth_033a", async () => {
|
|
2127
2119
|
// billing address
|
|
2128
2120
|
const billingAddress = new src_1.Address();
|
|
2129
2121
|
billingAddress.postalCode = "774|10";
|
|
@@ -2146,11 +2138,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2146
2138
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2147
2139
|
.withDescription("JAVA-Auth-033a")
|
|
2148
2140
|
.execute();
|
|
2149
|
-
|
|
2150
|
-
|
|
2141
|
+
expect(response).toBeTruthy();
|
|
2142
|
+
expect("00").toBe(response.responseCode);
|
|
2151
2143
|
});
|
|
2152
|
-
(
|
|
2153
|
-
t.plan(2);
|
|
2144
|
+
test("JAVA_Auth_033b1", async () => {
|
|
2154
2145
|
// billing address
|
|
2155
2146
|
const billingAddress = new src_1.Address();
|
|
2156
2147
|
billingAddress.postalCode = "774|10";
|
|
@@ -2169,11 +2160,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2169
2160
|
.withAddress(billingAddress)
|
|
2170
2161
|
.withDescription("JAVA-Auth-033b1")
|
|
2171
2162
|
.execute();
|
|
2172
|
-
|
|
2173
|
-
|
|
2163
|
+
expect(response).toBeTruthy();
|
|
2164
|
+
expect("00").toBe(response.responseCode);
|
|
2174
2165
|
});
|
|
2175
|
-
(
|
|
2176
|
-
t.plan(2);
|
|
2166
|
+
test("JAVA_Auth_033b2", async () => {
|
|
2177
2167
|
// shipping address
|
|
2178
2168
|
const shippingAddress = new src_1.Address();
|
|
2179
2169
|
shippingAddress.postalCode = "769|52";
|
|
@@ -2192,11 +2182,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2192
2182
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2193
2183
|
.withDescription("JAVA-Auth-033b2")
|
|
2194
2184
|
.execute();
|
|
2195
|
-
|
|
2196
|
-
|
|
2185
|
+
expect(response).toBeTruthy();
|
|
2186
|
+
expect("00").toBe(response.responseCode);
|
|
2197
2187
|
});
|
|
2198
|
-
(
|
|
2199
|
-
t.plan(2);
|
|
2188
|
+
test("JAVA_Auth_033c1", async () => {
|
|
2200
2189
|
// billing address
|
|
2201
2190
|
const billingAddress = new src_1.Address();
|
|
2202
2191
|
billingAddress.postalCode = "774|10";
|
|
@@ -2215,11 +2204,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2215
2204
|
.withAddress(billingAddress)
|
|
2216
2205
|
.withDescription("JAVA-Auth-033c1")
|
|
2217
2206
|
.execute();
|
|
2218
|
-
|
|
2219
|
-
|
|
2207
|
+
expect(response).toBeTruthy();
|
|
2208
|
+
expect("00").toBe(response.responseCode);
|
|
2220
2209
|
});
|
|
2221
|
-
(
|
|
2222
|
-
t.plan(2);
|
|
2210
|
+
test("JAVA_Auth_033c2", async () => {
|
|
2223
2211
|
// shipping address
|
|
2224
2212
|
const shippingAddress = new src_1.Address();
|
|
2225
2213
|
shippingAddress.postalCode =
|
|
@@ -2239,11 +2227,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2239
2227
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2240
2228
|
.withDescription("JAVA-Auth-033c2")
|
|
2241
2229
|
.execute();
|
|
2242
|
-
|
|
2243
|
-
|
|
2230
|
+
expect(response).toBeTruthy();
|
|
2231
|
+
expect("00").toBe(response.responseCode);
|
|
2244
2232
|
});
|
|
2245
|
-
(
|
|
2246
|
-
t.plan(2);
|
|
2233
|
+
test("JAVA_Auth_034a", async () => {
|
|
2247
2234
|
// billing address
|
|
2248
2235
|
const billingAddress = new src_1.Address();
|
|
2249
2236
|
billingAddress.country = "GB";
|
|
@@ -2266,11 +2253,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2266
2253
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2267
2254
|
.withDescription("JAVA-Auth-034a")
|
|
2268
2255
|
.execute();
|
|
2269
|
-
|
|
2270
|
-
|
|
2256
|
+
expect(response).toBeTruthy();
|
|
2257
|
+
expect("00").toBe(response.responseCode);
|
|
2271
2258
|
});
|
|
2272
|
-
(
|
|
2273
|
-
t.plan(2);
|
|
2259
|
+
test("JAVA_Auth_034b1", async () => {
|
|
2274
2260
|
// shipping address
|
|
2275
2261
|
const shippingAddress = new src_1.Address();
|
|
2276
2262
|
shippingAddress.country = "GB";
|
|
@@ -2289,11 +2275,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2289
2275
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2290
2276
|
.withDescription("JAVA-Auth-034b1")
|
|
2291
2277
|
.execute();
|
|
2292
|
-
|
|
2293
|
-
|
|
2278
|
+
expect(response).toBeTruthy();
|
|
2279
|
+
expect("00").toBe(response.responseCode);
|
|
2294
2280
|
});
|
|
2295
|
-
(
|
|
2296
|
-
t.plan(2);
|
|
2281
|
+
test("JAVA_Auth_034b2", async () => {
|
|
2297
2282
|
// billing address
|
|
2298
2283
|
const billingAddress = new src_1.Address();
|
|
2299
2284
|
billingAddress.country = "GB";
|
|
@@ -2312,11 +2297,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2312
2297
|
.withAddress(billingAddress)
|
|
2313
2298
|
.withDescription("JAVA-Auth-034b2")
|
|
2314
2299
|
.execute();
|
|
2315
|
-
|
|
2316
|
-
|
|
2300
|
+
expect(response).toBeTruthy();
|
|
2301
|
+
expect("00").toBe(response.responseCode);
|
|
2317
2302
|
});
|
|
2318
|
-
(
|
|
2319
|
-
t.plan(2);
|
|
2303
|
+
test("JAVA_Auth_034c1", async () => {
|
|
2320
2304
|
// billing address
|
|
2321
2305
|
const billingAddress = new src_1.Address();
|
|
2322
2306
|
billingAddress.country =
|
|
@@ -2336,11 +2320,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2336
2320
|
.withAddress(billingAddress)
|
|
2337
2321
|
.withDescription("JAVA-Auth-034c1")
|
|
2338
2322
|
.execute();
|
|
2339
|
-
|
|
2340
|
-
|
|
2323
|
+
expect(response).toBeTruthy();
|
|
2324
|
+
expect("00").toBe(response.responseCode);
|
|
2341
2325
|
});
|
|
2342
|
-
(
|
|
2343
|
-
t.plan(2);
|
|
2326
|
+
test("JAVA_Auth_034c2", async () => {
|
|
2344
2327
|
// shipping address
|
|
2345
2328
|
const shippingAddress = new src_1.Address();
|
|
2346
2329
|
shippingAddress.country =
|
|
@@ -2360,11 +2343,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2360
2343
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2361
2344
|
.withDescription("JAVA-Auth-034c2")
|
|
2362
2345
|
.execute();
|
|
2363
|
-
|
|
2364
|
-
|
|
2346
|
+
expect(response).toBeTruthy();
|
|
2347
|
+
expect("00").toBe(response.responseCode);
|
|
2365
2348
|
});
|
|
2366
|
-
(
|
|
2367
|
-
t.plan(2);
|
|
2349
|
+
test("JAVA_Auth_035a", async () => {
|
|
2368
2350
|
// create card
|
|
2369
2351
|
const card = new src_1.CreditCardData();
|
|
2370
2352
|
card.number = "4263970000005262";
|
|
@@ -2379,11 +2361,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2379
2361
|
.withCurrency("GBP")
|
|
2380
2362
|
.withDescription("JAVA-Auth-035a")
|
|
2381
2363
|
.execute();
|
|
2382
|
-
|
|
2383
|
-
|
|
2364
|
+
expect(response).toBeTruthy();
|
|
2365
|
+
expect("00").toBe(response.responseCode);
|
|
2384
2366
|
});
|
|
2385
|
-
(
|
|
2386
|
-
t.plan(2);
|
|
2367
|
+
test("JAVA_Auth_035b", async () => {
|
|
2387
2368
|
// create card
|
|
2388
2369
|
const card = new src_1.CreditCardData();
|
|
2389
2370
|
card.number = "4263970000005262";
|
|
@@ -2398,11 +2379,10 @@ ava_1.default.beforeEach(async () => {
|
|
|
2398
2379
|
.withCurrency("EUR")
|
|
2399
2380
|
.withDescription("JAVA-Auth-035b")
|
|
2400
2381
|
.execute();
|
|
2401
|
-
|
|
2402
|
-
|
|
2382
|
+
expect(response).toBeTruthy();
|
|
2383
|
+
expect("00").toBe(response.responseCode);
|
|
2403
2384
|
});
|
|
2404
|
-
(
|
|
2405
|
-
t.plan(2);
|
|
2385
|
+
test("JAVA_Auth_055a", async () => {
|
|
2406
2386
|
const config = new ServiceConfigs_1.GpEcomConfig();
|
|
2407
2387
|
config.merchantId = "heartlandgpsandbox";
|
|
2408
2388
|
config.accountId = "api";
|
|
@@ -2440,7 +2420,7 @@ ava_1.default.beforeEach(async () => {
|
|
|
2440
2420
|
.withAddress(shippingAddress, src_1.AddressType.Shipping)
|
|
2441
2421
|
.withDescription("JAVA-Auth-055a")
|
|
2442
2422
|
.execute("with4thChannelEcom");
|
|
2443
|
-
|
|
2444
|
-
|
|
2423
|
+
expect(response).toBeTruthy();
|
|
2424
|
+
expect("00").toBe(response.responseCode);
|
|
2445
2425
|
});
|
|
2446
|
-
//# sourceMappingURL=
|
|
2426
|
+
//# sourceMappingURL=Auth.test.js.map
|