globalpayments-api 3.6.2 → 3.8.0
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 +143 -125
- package/lib/src/Builders/AuthorizationBuilder.d.ts +9 -1
- package/lib/src/Builders/AuthorizationBuilder.js +10 -1
- package/lib/src/Builders/AuthorizationBuilder.js.map +1 -1
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +3 -1
- package/lib/src/Builders/BaseBuilder/Validations.js +5 -5
- package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -1
- package/lib/src/Builders/ManagementBuilder.d.ts +17 -1
- package/lib/src/Builders/ManagementBuilder.js +22 -0
- 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 +120 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +1 -1
- package/lib/src/Builders/TransactionReportBuilder.d.ts +7 -2
- package/lib/src/Builders/TransactionReportBuilder.js +28 -0
- package/lib/src/Builders/TransactionReportBuilder.js.map +1 -1
- 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/DepositSortProperty.d.ts +6 -0
- package/lib/src/Entities/Enums/DepositSortProperty.js +11 -0
- package/lib/src/Entities/Enums/DepositSortProperty.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 +8 -0
- package/lib/src/Entities/Enums.js +8 -0
- 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/DepositSummary.d.ts +29 -0
- package/lib/src/Entities/Reporting/DepositSummary.js +34 -0
- package/lib/src/Entities/Reporting/DepositSummary.js.map +1 -0
- 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 +2 -0
- package/lib/src/Entities/Reporting/index.js +2 -0
- package/lib/src/Entities/Reporting/index.js.map +1 -1
- package/lib/src/Entities/Transaction.d.ts +15 -1
- package/lib/src/Entities/Transaction.js +34 -0
- package/lib/src/Entities/Transaction.js.map +1 -1
- package/lib/src/Entities/index.d.ts +8 -0
- package/lib/src/Entities/index.js +8 -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/PorticoConnector.js +5 -0
- package/lib/src/Gateways/PorticoConnector.js.map +1 -1
- package/lib/src/Mapping/GpApiMapping.d.ts +3 -0
- package/lib/src/Mapping/GpApiMapping.js +128 -13
- package/lib/src/Mapping/GpApiMapping.js.map +1 -1
- package/lib/src/Services/ReportingService.d.ts +8 -1
- package/lib/src/Services/ReportingService.js +21 -0
- package/lib/src/Services/ReportingService.js.map +1 -1
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +14 -0
- package/lib/test/Data/BaseGpApiTestConfig.js +50 -0
- package/lib/test/Data/BaseGpApiTestConfig.js.map +1 -0
- package/lib/test/Data/GpApi3DSTestCards.d.ts +17 -0
- package/lib/test/Data/GpApi3DSTestCards.js +22 -0
- package/lib/test/Data/GpApi3DSTestCards.js.map +1 -0
- package/lib/test/Data/TestCards.d.ts +24 -0
- package/lib/test/Data/TestCards.js +220 -0
- package/lib/test/Data/TestCards.js.map +1 -0
- package/lib/test/Data/TestChecks.d.ts +4 -0
- package/lib/test/Data/TestChecks.js +27 -0
- package/lib/test/Data/TestChecks.js.map +1 -0
- package/lib/test/Data/index.d.ts +4 -0
- package/lib/test/Data/index.js +21 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/AcsResponse.d.ts +12 -0
- package/lib/test/Integration/Gateways/AcsResponse.js +33 -0
- package/lib/test/Integration/Gateways/AcsResponse.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js +1026 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +1029 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js +643 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecure.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +649 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessToken.test.d.ts +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/AccessTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresent.test.d.ts +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/CreditCardNotPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1025 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.js +137 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCard.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.js +642 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js +639 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagement.test.d.ts +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/GpApiTokenManagementTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js +149 -0
- package/lib/test/Integration/Gateways/GpApiConnector/GpApiTokenManagementTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.js +226 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDeposits.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js +226 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDepositsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingDisputes.test.d.ts +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/ReportingSettlementTransactions.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.js +430 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactions.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js +216 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.js +340 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactions.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +338 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.js +2426 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Auth.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.js +562 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Avs.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.js +1292 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Credit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.js +880 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/Hold.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js +207 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Hpp.test.d.ts +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/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Recurring.test.d.ts +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/GpEcomConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ach.test.d.ts +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/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Check.test.d.ts +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/CheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js +1667 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Ecommerce.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.js +80 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheck.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.js +1487 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Moto.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.js +80 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheck.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Recurring.test.d.ts +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/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.js +2102 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/Retail.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js +367 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Credit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.js +83 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Debit.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +88 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.js +63 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ebt.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js +136 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Ecommerce.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +143 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Gift.test.d.ts +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/GiftTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.js +40 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementToken.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js +48 -0
- package/lib/test/Integration/Gateways/PorticoConnector/PorticoManagementTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Recurring.test.d.ts +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/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.js +44 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Reporting.test.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.js +38 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.js +206 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.js +52 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.js +72 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertification.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.js +37 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformation.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.js +310 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccount.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.js +53 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFunds.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.js +72 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransaction.test.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMic.test.d.ts +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/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +16 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +212 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +1 -0
- package/lib/test/Integration/Services/CheckService.test.d.ts +1 -0
- package/lib/test/Integration/Services/CheckService.test.js +38 -0
- package/lib/test/Integration/Services/CheckService.test.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
- package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/CreditService.test.d.ts +1 -0
- package/lib/test/Integration/Services/CreditService.test.js +158 -0
- package/lib/test/Integration/Services/CreditService.test.js.map +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
- package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/DebitService.test.d.ts +1 -0
- package/lib/test/Integration/Services/DebitService.test.js +77 -0
- package/lib/test/Integration/Services/DebitService.test.js.map +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
- package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/EBTService.test.d.ts +1 -0
- package/lib/test/Integration/Services/EBTService.test.js +54 -0
- package/lib/test/Integration/Services/EBTService.test.js.map +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
- package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/Validation.test.d.ts +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/AuthorizationBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/Validation.test.d.ts +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/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.js +32 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/Credit.test.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidation.test.d.ts +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/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/package.json +62 -71
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const src_1 = require("../../../../src");
|
|
4
|
+
const BaseGpApiTestConfig_1 = require("../../../Data/BaseGpApiTestConfig");
|
|
5
|
+
const date = new Date();
|
|
6
|
+
const card = new src_1.CreditCardData();
|
|
7
|
+
card.number = "4263970000005262";
|
|
8
|
+
card.expMonth = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
9
|
+
card.expYear = (date.getFullYear() + 1).toString();
|
|
10
|
+
card.cvn = "131";
|
|
11
|
+
card.cardHolderName = "James Mason";
|
|
12
|
+
beforeAll(() => {
|
|
13
|
+
src_1.ServicesContainer.configureService(BaseGpApiTestConfig_1.BaseGpApiTestConfig.gpApiSetupConfig(src_1.Channel.CardNotPresent));
|
|
14
|
+
});
|
|
15
|
+
afterAll(() => BaseGpApiTestConfig_1.BaseGpApiTestConfig.resetGpApiConfig());
|
|
16
|
+
test("find stored payment method by start date and end date", async () => {
|
|
17
|
+
const startDate = new Date(), endDate = new Date();
|
|
18
|
+
startDate.setDate(startDate.getDate() - 30);
|
|
19
|
+
startDate.setHours(0);
|
|
20
|
+
startDate.setMinutes(0);
|
|
21
|
+
startDate.setSeconds(0);
|
|
22
|
+
endDate.setDate(endDate.getDate() - 3);
|
|
23
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
24
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Desc)
|
|
25
|
+
.where(src_1.SearchCriteria.StartDate, `${startDate.getFullYear()}-${(startDate.getMonth() + 1)
|
|
26
|
+
.toString()
|
|
27
|
+
.padStart(2, "0")}-${startDate.getDate().toString().padStart(2, "0")}`)
|
|
28
|
+
.andWith(src_1.SearchCriteria.EndDate, `${endDate.getFullYear()}-${(endDate.getMonth() + 1)
|
|
29
|
+
.toString()
|
|
30
|
+
.padStart(2, "0")}-${endDate.getDate().toString().padStart(2, "0")}`)
|
|
31
|
+
.execute();
|
|
32
|
+
expect(response.result.length).toBe(10);
|
|
33
|
+
const paymentMethodList = response.result;
|
|
34
|
+
expect(paymentMethodList).toBeTruthy();
|
|
35
|
+
const paymentMethodListSorted = paymentMethodList.sort((a, b) => {
|
|
36
|
+
return (new Date(a.timeCreated).getTime() < new Date(b.timeCreated).getTime());
|
|
37
|
+
});
|
|
38
|
+
paymentMethodListSorted.forEach((element, index) => {
|
|
39
|
+
expect(JSON.stringify(element)).toBe(JSON.stringify(paymentMethodList[index]));
|
|
40
|
+
expect(startDate.getTime() <= new Date(element.timeCreated).getTime()).toBe(true);
|
|
41
|
+
endDate.setDate(endDate.getDate() + 1);
|
|
42
|
+
expect(endDate.getTime() >= new Date(element.timeCreated).getTime()).toBe(true);
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
test("find stored payment method by last updated", async () => {
|
|
46
|
+
const startDate = new Date(), endDate = new Date();
|
|
47
|
+
startDate.setDate(startDate.getDate() - 30);
|
|
48
|
+
startDate.setHours(0);
|
|
49
|
+
startDate.setMinutes(0);
|
|
50
|
+
startDate.setSeconds(0);
|
|
51
|
+
endDate.setDate(endDate.getDate() - 3);
|
|
52
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
53
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Desc)
|
|
54
|
+
.where(src_1.SearchCriteria.FromTimeLastUpdated, `${startDate.getFullYear()}-${(startDate.getMonth() + 1)
|
|
55
|
+
.toString()
|
|
56
|
+
.padStart(2, "0")}-${startDate.getDate().toString().padStart(2, "0")}`)
|
|
57
|
+
.andWith(src_1.SearchCriteria.ToTimeLastUpdated, `${endDate.getFullYear()}-${(endDate.getMonth() + 1)
|
|
58
|
+
.toString()
|
|
59
|
+
.padStart(2, "0")}-${endDate.getDate().toString().padStart(2, "0")}`)
|
|
60
|
+
.execute();
|
|
61
|
+
expect(response).toBeTruthy();
|
|
62
|
+
expect(response.result.length).toBe(10);
|
|
63
|
+
});
|
|
64
|
+
test("find stored payment method by last updated current day", async () => {
|
|
65
|
+
const currentDate = new Date();
|
|
66
|
+
currentDate.setDate(currentDate.getDate() - 30);
|
|
67
|
+
currentDate.setHours(0);
|
|
68
|
+
currentDate.setMinutes(0);
|
|
69
|
+
currentDate.setSeconds(0);
|
|
70
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
71
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Desc)
|
|
72
|
+
.where(src_1.SearchCriteria.FromTimeLastUpdated, `${currentDate.getFullYear()}-${(currentDate.getMonth() + 1)
|
|
73
|
+
.toString()
|
|
74
|
+
.padStart(2, "0")}-${currentDate
|
|
75
|
+
.getDate()
|
|
76
|
+
.toString()
|
|
77
|
+
.padStart(2, "0")}`)
|
|
78
|
+
.andWith(src_1.SearchCriteria.ToTimeLastUpdated, `${currentDate.getFullYear()}-${(currentDate.getMonth() + 1)
|
|
79
|
+
.toString()
|
|
80
|
+
.padStart(2, "0")}-${currentDate
|
|
81
|
+
.getDate()
|
|
82
|
+
.toString()
|
|
83
|
+
.padStart(2, "0")}`)
|
|
84
|
+
.execute();
|
|
85
|
+
expect(response).toBeTruthy();
|
|
86
|
+
expect(response.result.length).toBe(10);
|
|
87
|
+
});
|
|
88
|
+
test("find stored payment method by id", async () => {
|
|
89
|
+
const tokenizedPayment = await card.tokenize().execute();
|
|
90
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
91
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
92
|
+
.where(src_1.SearchCriteria.StoredPaymentMethodId, tokenizedPayment.token)
|
|
93
|
+
.execute();
|
|
94
|
+
expect(response).toBeTruthy();
|
|
95
|
+
expect(response.result.length).toBe(1);
|
|
96
|
+
expect(response.result[0].paymentMethodId).toBe(tokenizedPayment.token);
|
|
97
|
+
});
|
|
98
|
+
test("find stored payment method by random id", async () => {
|
|
99
|
+
const paymentMethodId = "PMT_" + src_1.GenerationUtils.getGuuid();
|
|
100
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
101
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
102
|
+
.where(src_1.SearchCriteria.StoredPaymentMethodId, paymentMethodId)
|
|
103
|
+
.execute();
|
|
104
|
+
expect(response).toBeTruthy();
|
|
105
|
+
expect(response.result).toBeTruthy();
|
|
106
|
+
expect(response.result.length).toBe(0);
|
|
107
|
+
});
|
|
108
|
+
test("find stored payment method by status", async () => {
|
|
109
|
+
const statuses = ["ACTIVE", "DELETED"];
|
|
110
|
+
for (const status of statuses) {
|
|
111
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
112
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
113
|
+
.where(src_1.SearchCriteria.StoredPaymentMethodStatus, status)
|
|
114
|
+
.execute();
|
|
115
|
+
expect(response).toBeTruthy();
|
|
116
|
+
expect(response.result).toBeTruthy();
|
|
117
|
+
for (const result of response.result) {
|
|
118
|
+
expect(result.status).toBe(status);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
test("find stored payment method by reference", async () => {
|
|
123
|
+
const reference = "5e3d3885-ceb3-a5ea-015c-945eaa4df8c8";
|
|
124
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
125
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
126
|
+
.where(src_1.SearchCriteria.ReferenceNumber, reference)
|
|
127
|
+
.execute();
|
|
128
|
+
expect(response).toBeTruthy();
|
|
129
|
+
expect(response.result).toBeTruthy();
|
|
130
|
+
for (const result of response.result) {
|
|
131
|
+
expect(result.reference).toBe(reference);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
test("find stored payment method by card info", async () => {
|
|
135
|
+
const card = new src_1.CreditCardData();
|
|
136
|
+
card.number = "4242424242424242";
|
|
137
|
+
card.expMonth = "12";
|
|
138
|
+
card.expYear = (new Date().getFullYear() + 1).toString();
|
|
139
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
140
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
141
|
+
.where(src_1.SearchCriteria.PaymentMethod, card)
|
|
142
|
+
.execute();
|
|
143
|
+
expect(response).toBeTruthy();
|
|
144
|
+
expect(response.result).toBeTruthy();
|
|
145
|
+
for (const result of response.result) {
|
|
146
|
+
expect(result.cardExpMonth).toBe(card.expMonth);
|
|
147
|
+
expect(result.cardExpYear).toBe(card.expYear.substring(card.expYear.length - 2, card.expYear.length));
|
|
148
|
+
expect(result.cardNumberLastFour.substring(result.cardNumberLastFour.length - 4, result.cardNumberLastFour.length)).toBe(card.number.substring(card.number.length - 4, card.number.length));
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
test("find stored payment method by only card number info", async () => {
|
|
152
|
+
const card = new src_1.CreditCardData();
|
|
153
|
+
card.number = "4242424242424242";
|
|
154
|
+
card.expMonth = "12";
|
|
155
|
+
card.expYear = (new Date().getFullYear() + 1).toString();
|
|
156
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
157
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
158
|
+
.where(src_1.SearchCriteria.PaymentMethod, card)
|
|
159
|
+
.execute();
|
|
160
|
+
expect(response).toBeTruthy();
|
|
161
|
+
expect(response.result).toBeTruthy();
|
|
162
|
+
for (const result of response.result) {
|
|
163
|
+
expect(result.cardExpMonth).toBe(card.expMonth);
|
|
164
|
+
expect(result.cardExpYear).toBe(card.expYear.substring(card.expYear.length - 2, card.expYear.length));
|
|
165
|
+
expect(result.cardNumberLastFour.substring(result.cardNumberLastFour.length - 4, result.cardNumberLastFour.length)).toBe(card.number.substring(card.number.length - 4, card.number.length));
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
test("find stored payment method without mandatory card number", async () => {
|
|
169
|
+
const card = new src_1.CreditCardData();
|
|
170
|
+
try {
|
|
171
|
+
await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
172
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
173
|
+
.where(src_1.SearchCriteria.PaymentMethod, card)
|
|
174
|
+
.execute();
|
|
175
|
+
}
|
|
176
|
+
catch (error) {
|
|
177
|
+
expect(error).toBeTruthy();
|
|
178
|
+
expect(error?.responseCode).toBe("40005");
|
|
179
|
+
expect(error?.message).toBe("Status Code: MANDATORY_DATA_MISSING - Request expects the following fields : number");
|
|
180
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
test("find stored payment method detail", async () => {
|
|
184
|
+
const paymentMethodId = "PMT_deea3267-e182-4c03-b3db-c9469a32a6a8";
|
|
185
|
+
// eslint-disable-next-line prettier/prettier
|
|
186
|
+
const response = await src_1.ReportingService.storedPaymentMethodDetail(paymentMethodId).execute();
|
|
187
|
+
// eslint-enable-next-line prettier/prettier
|
|
188
|
+
expect(response).toBeTruthy();
|
|
189
|
+
expect(response instanceof src_1.StoredPaymentMethodSummary).toBe(true);
|
|
190
|
+
expect(response.paymentMethodId).toBe(paymentMethodId);
|
|
191
|
+
});
|
|
192
|
+
test("find stored payment method detail by random id", async () => {
|
|
193
|
+
const paymentMethodId = "PMT_" + src_1.GenerationUtils.getGuuid();
|
|
194
|
+
try {
|
|
195
|
+
await src_1.ReportingService.storedPaymentMethodDetail(paymentMethodId).execute();
|
|
196
|
+
}
|
|
197
|
+
catch (error) {
|
|
198
|
+
expect(error).toBeTruthy();
|
|
199
|
+
expect(error?.responseCode).toBe("40118");
|
|
200
|
+
expect(error?.message).toBe(`Status Code: RESOURCE_NOT_FOUND - PAYMENT_METHODS ${paymentMethodId} not found at this /ucp/payment-methods/${paymentMethodId}`);
|
|
201
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
test("find stored payment method detail by wrong format id", async () => {
|
|
205
|
+
const paymentMethodId = src_1.GenerationUtils.getGuuid();
|
|
206
|
+
try {
|
|
207
|
+
await src_1.ReportingService.storedPaymentMethodDetail(paymentMethodId).execute();
|
|
208
|
+
}
|
|
209
|
+
catch (error) {
|
|
210
|
+
expect(error).toBeTruthy();
|
|
211
|
+
expect(error?.responseCode).toBe("40213");
|
|
212
|
+
expect(error?.message).toBe(`Status Code: INVALID_REQUEST_DATA - payment_method.id: ${paymentMethodId} contains unexpected data`);
|
|
213
|
+
expect(error instanceof src_1.GatewayError).toBe(true);
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
//# sourceMappingURL=ReportingStoredPaymentMethods.test.js.map
|
package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportingStoredPaymentMethods.test.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethods.test.ts"],"names":[],"mappings":";;AAAA,yCAWyB;AACzB,2EAAwE;AAExE,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;AACxB,MAAM,IAAI,GAAG,IAAI,oBAAc,EAAE,CAAC;AAClC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC;AACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAClE,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AACnD,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;AACjB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;AAEpC,SAAS,CAAC,GAAG,EAA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AO,KAAK,EAAE;QACd,MAAM,CAAC,KAAK,CAAC,CAAC,UAAU,EAAE,CAAC;QAC3B,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CACzB,0DAA0D,eAAe,2BAA2B,CACrG,CAAC;QACF,MAAM,CAAC,KAAK,YAAY,kBAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClD;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ava_1 = __importDefault(require("ava"));
|
|
7
|
+
const src_1 = require("../../../../src");
|
|
8
|
+
const BaseGpApiTestConfig_1 = require("../../../../test/Data/BaseGpApiTestConfig");
|
|
9
|
+
const date = new Date();
|
|
10
|
+
const card = new src_1.CreditCardData();
|
|
11
|
+
card.number = "4263970000005262";
|
|
12
|
+
card.expMonth = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
13
|
+
card.expYear = (date.getFullYear() + 1).toString();
|
|
14
|
+
card.cvn = "131";
|
|
15
|
+
card.cardHolderName = "James Mason";
|
|
16
|
+
ava_1.default.before(() => {
|
|
17
|
+
src_1.ServicesContainer.configureService(BaseGpApiTestConfig_1.BaseGpApiTestConfig.gpApiSetupConfig(src_1.Channel.CardNotPresent));
|
|
18
|
+
});
|
|
19
|
+
ava_1.default.after(() => BaseGpApiTestConfig_1.BaseGpApiTestConfig.resetGpApiConfig());
|
|
20
|
+
(0, ava_1.default)("find stored payment method by start date and end date", async (t) => {
|
|
21
|
+
const startDate = new Date(), endDate = new Date();
|
|
22
|
+
startDate.setDate(startDate.getDate() - 30);
|
|
23
|
+
startDate.setHours(0);
|
|
24
|
+
startDate.setMinutes(0);
|
|
25
|
+
startDate.setSeconds(0);
|
|
26
|
+
endDate.setDate(endDate.getDate() - 3);
|
|
27
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
28
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Desc)
|
|
29
|
+
.where(src_1.SearchCriteria.StartDate, `${startDate.getFullYear()}-${(startDate.getMonth() + 1)
|
|
30
|
+
.toString()
|
|
31
|
+
.padStart(2, "0")}-${startDate.getDate().toString().padStart(2, "0")}`)
|
|
32
|
+
.andWith(src_1.SearchCriteria.EndDate, `${endDate.getFullYear()}-${(endDate.getMonth() + 1)
|
|
33
|
+
.toString()
|
|
34
|
+
.padStart(2, "0")}-${endDate.getDate().toString().padStart(2, "0")}`)
|
|
35
|
+
.execute();
|
|
36
|
+
t.is(response.result.length, 10);
|
|
37
|
+
const paymentMethodList = response.result;
|
|
38
|
+
t.truthy(paymentMethodList);
|
|
39
|
+
const paymentMethodListSorted = paymentMethodList.sort((a, b) => {
|
|
40
|
+
return (new Date(a.timeCreated).getTime() < new Date(b.timeCreated).getTime());
|
|
41
|
+
});
|
|
42
|
+
paymentMethodListSorted.forEach((element, index) => {
|
|
43
|
+
t.is(JSON.stringify(element), JSON.stringify(paymentMethodList[index]));
|
|
44
|
+
t.is(startDate.getTime() <= new Date(element.timeCreated).getTime(), true);
|
|
45
|
+
endDate.setDate(endDate.getDate() + 1);
|
|
46
|
+
t.is(endDate.getTime() >= new Date(element.timeCreated).getTime(), true);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
(0, ava_1.default)("find stored payment method by last updated", async (t) => {
|
|
50
|
+
const startDate = new Date(), endDate = new Date();
|
|
51
|
+
startDate.setDate(startDate.getDate() - 30);
|
|
52
|
+
startDate.setHours(0);
|
|
53
|
+
startDate.setMinutes(0);
|
|
54
|
+
startDate.setSeconds(0);
|
|
55
|
+
endDate.setDate(endDate.getDate() - 3);
|
|
56
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
57
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Desc)
|
|
58
|
+
.where(src_1.SearchCriteria.FromTimeLastUpdated, `${startDate.getFullYear()}-${(startDate.getMonth() + 1)
|
|
59
|
+
.toString()
|
|
60
|
+
.padStart(2, "0")}-${startDate.getDate().toString().padStart(2, "0")}`)
|
|
61
|
+
.andWith(src_1.SearchCriteria.ToTimeLastUpdated, `${endDate.getFullYear()}-${(endDate.getMonth() + 1)
|
|
62
|
+
.toString()
|
|
63
|
+
.padStart(2, "0")}-${endDate.getDate().toString().padStart(2, "0")}`)
|
|
64
|
+
.execute();
|
|
65
|
+
t.truthy(response);
|
|
66
|
+
t.is(response.result.length, 10);
|
|
67
|
+
});
|
|
68
|
+
(0, ava_1.default)("find stored payment method by last updated current day", async (t) => {
|
|
69
|
+
const currentDate = new Date();
|
|
70
|
+
currentDate.setDate(currentDate.getDate() - 30);
|
|
71
|
+
currentDate.setHours(0);
|
|
72
|
+
currentDate.setMinutes(0);
|
|
73
|
+
currentDate.setSeconds(0);
|
|
74
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
75
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Desc)
|
|
76
|
+
.where(src_1.SearchCriteria.FromTimeLastUpdated, `${currentDate.getFullYear()}-${(currentDate.getMonth() + 1)
|
|
77
|
+
.toString()
|
|
78
|
+
.padStart(2, "0")}-${currentDate
|
|
79
|
+
.getDate()
|
|
80
|
+
.toString()
|
|
81
|
+
.padStart(2, "0")}`)
|
|
82
|
+
.andWith(src_1.SearchCriteria.ToTimeLastUpdated, `${currentDate.getFullYear()}-${(currentDate.getMonth() + 1)
|
|
83
|
+
.toString()
|
|
84
|
+
.padStart(2, "0")}-${currentDate
|
|
85
|
+
.getDate()
|
|
86
|
+
.toString()
|
|
87
|
+
.padStart(2, "0")}`)
|
|
88
|
+
.execute();
|
|
89
|
+
t.truthy(response);
|
|
90
|
+
t.is(response.result.length, 10);
|
|
91
|
+
});
|
|
92
|
+
(0, ava_1.default)("find stored payment method by id", async (t) => {
|
|
93
|
+
const tokenizedPayment = await card.tokenize().execute();
|
|
94
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
95
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
96
|
+
.where(src_1.SearchCriteria.StoredPaymentMethodId, tokenizedPayment.token)
|
|
97
|
+
.execute();
|
|
98
|
+
t.truthy(response);
|
|
99
|
+
t.is(response.result.length, 1);
|
|
100
|
+
t.is(response.result[0].paymentMethodId, tokenizedPayment.token);
|
|
101
|
+
});
|
|
102
|
+
(0, ava_1.default)("find stored payment method by random id", async (t) => {
|
|
103
|
+
const paymentMethodId = "PMT_" + src_1.GenerationUtils.getGuuid();
|
|
104
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
105
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
106
|
+
.where(src_1.SearchCriteria.StoredPaymentMethodId, paymentMethodId)
|
|
107
|
+
.execute();
|
|
108
|
+
t.truthy(response);
|
|
109
|
+
t.truthy(response.result);
|
|
110
|
+
t.is(response.result.length, 0);
|
|
111
|
+
});
|
|
112
|
+
(0, ava_1.default)("find stored payment method by status", async (t) => {
|
|
113
|
+
const statuses = ["ACTIVE", "DELETED"];
|
|
114
|
+
for (const status of statuses) {
|
|
115
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
116
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
117
|
+
.where(src_1.SearchCriteria.StoredPaymentMethodStatus, status)
|
|
118
|
+
.execute();
|
|
119
|
+
t.truthy(response);
|
|
120
|
+
t.truthy(response.result);
|
|
121
|
+
for (const result of response.result) {
|
|
122
|
+
t.is(result.status, status);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
(0, ava_1.default)("find stored payment method by reference", async (t) => {
|
|
127
|
+
const reference = "5e3d3885-ceb3-a5ea-015c-945eaa4df8c8";
|
|
128
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
129
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
130
|
+
.where(src_1.SearchCriteria.ReferenceNumber, reference)
|
|
131
|
+
.execute();
|
|
132
|
+
t.truthy(response);
|
|
133
|
+
t.truthy(response.result);
|
|
134
|
+
for (const result of response.result) {
|
|
135
|
+
t.is(result.reference, reference);
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
(0, ava_1.default)("find stored payment method by card info", async (t) => {
|
|
139
|
+
const card = new src_1.CreditCardData();
|
|
140
|
+
card.number = "4242424242424242";
|
|
141
|
+
card.expMonth = "12";
|
|
142
|
+
card.expYear = (new Date().getFullYear() + 1).toString();
|
|
143
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
144
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
145
|
+
.where(src_1.SearchCriteria.PaymentMethod, card)
|
|
146
|
+
.execute();
|
|
147
|
+
t.truthy(response);
|
|
148
|
+
t.truthy(response.result);
|
|
149
|
+
for (const result of response.result) {
|
|
150
|
+
t.is(result.cardExpMonth, card.expMonth);
|
|
151
|
+
t.is(result.cardExpYear, card.expYear.substring(card.expYear.length - 2, card.expYear.length));
|
|
152
|
+
t.is(result.cardNumberLastFour.substring(result.cardNumberLastFour.length - 4, result.cardNumberLastFour.length), card.number.substring(card.number.length - 4, card.number.length));
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
(0, ava_1.default)("find stored payment method by only card number info", async (t) => {
|
|
156
|
+
const card = new src_1.CreditCardData();
|
|
157
|
+
card.number = "4242424242424242";
|
|
158
|
+
card.expMonth = "12";
|
|
159
|
+
card.expYear = (new Date().getFullYear() + 1).toString();
|
|
160
|
+
const response = await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
161
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
162
|
+
.where(src_1.SearchCriteria.PaymentMethod, card)
|
|
163
|
+
.execute();
|
|
164
|
+
t.truthy(response);
|
|
165
|
+
t.truthy(response.result);
|
|
166
|
+
for (const result of response.result) {
|
|
167
|
+
t.is(result.cardExpMonth, card.expMonth);
|
|
168
|
+
t.is(result.cardExpYear, card.expYear.substring(card.expYear.length - 2, card.expYear.length));
|
|
169
|
+
t.is(result.cardNumberLastFour.substring(result.cardNumberLastFour.length - 4, result.cardNumberLastFour.length), card.number.substring(card.number.length - 4, card.number.length));
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
(0, ava_1.default)("find stored payment method without mandatory card number", async (t) => {
|
|
173
|
+
const card = new src_1.CreditCardData();
|
|
174
|
+
const error = await t.throwsAsync(async () => {
|
|
175
|
+
await src_1.ReportingService.findStoredPaymentMethodsPaged(1, 10)
|
|
176
|
+
.orderBy(src_1.StoredPaymentMethodSortProperty.TimeCreated, src_1.SortDirection.Asc)
|
|
177
|
+
.where(src_1.SearchCriteria.PaymentMethod, card)
|
|
178
|
+
.execute();
|
|
179
|
+
}, {
|
|
180
|
+
instanceOf: src_1.GatewayError,
|
|
181
|
+
});
|
|
182
|
+
t.truthy(error);
|
|
183
|
+
t.is(error?.responseCode, "40005");
|
|
184
|
+
t.is(error?.message, "Status Code: MANDATORY_DATA_MISSING - Request expects the following fields : number");
|
|
185
|
+
});
|
|
186
|
+
(0, ava_1.default)("find stored payment method detail", async (t) => {
|
|
187
|
+
const paymentMethodId = "PMT_deea3267-e182-4c03-b3db-c9469a32a6a8";
|
|
188
|
+
// eslint-disable-next-line prettier/prettier
|
|
189
|
+
const response = await src_1.ReportingService.storedPaymentMethodDetail(paymentMethodId).execute();
|
|
190
|
+
// eslint-enable-next-line prettier/prettier
|
|
191
|
+
t.truthy(response);
|
|
192
|
+
t.true(response instanceof src_1.StoredPaymentMethodSummary);
|
|
193
|
+
t.is(response.paymentMethodId, paymentMethodId);
|
|
194
|
+
});
|
|
195
|
+
(0, ava_1.default)("find stored payment method detail by random id", async (t) => {
|
|
196
|
+
const paymentMethodId = "PMT_" + src_1.GenerationUtils.getGuuid();
|
|
197
|
+
const error = await t.throwsAsync(async () => {
|
|
198
|
+
await src_1.ReportingService.storedPaymentMethodDetail(paymentMethodId).execute();
|
|
199
|
+
}, {
|
|
200
|
+
instanceOf: src_1.GatewayError,
|
|
201
|
+
});
|
|
202
|
+
t.truthy(error);
|
|
203
|
+
t.is(error?.responseCode, "40118");
|
|
204
|
+
t.is(error?.message, `Status Code: RESOURCE_NOT_FOUND - PAYMENT_METHODS ${paymentMethodId} not found at this /ucp/payment-methods/${paymentMethodId}`);
|
|
205
|
+
});
|
|
206
|
+
(0, ava_1.default)("find stored payment method detail by wrong format id", async (t) => {
|
|
207
|
+
const paymentMethodId = src_1.GenerationUtils.getGuuid();
|
|
208
|
+
const error = await t.throwsAsync(async () => {
|
|
209
|
+
await src_1.ReportingService.storedPaymentMethodDetail(paymentMethodId).execute();
|
|
210
|
+
}, {
|
|
211
|
+
instanceOf: src_1.GatewayError,
|
|
212
|
+
});
|
|
213
|
+
t.truthy(error);
|
|
214
|
+
t.is(error?.responseCode, "40213");
|
|
215
|
+
t.is(error?.message, `Status Code: INVALID_REQUEST_DATA - payment_method.id: ${paymentMethodId} contains unexpected data`);
|
|
216
|
+
});
|
|
217
|
+
//# sourceMappingURL=ReportingStoredPaymentMethodsTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportingStoredPaymentMethodsTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,yCAWyB;AACzB,mFAAgF;AAEhF,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;AACxB,MAAM,IAAI,GAAG,IAAI,oBAAc,EAAE,CAAC;AAClC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC;AACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAClE,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AACnD,IAAI,CAAC,GAAG,GAAG,KAAK,CAAC;AACjB,IAAI,CAAC,cAAc,GAAG,aAAa,CAAC;AAEpC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAChC,yCAAmB,CAAC,gBAAgB,CAAC,aAAO,CAAC,cAAc,CAAC,CAC7D,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,yCAAmB,CAAC,gBAAgB,EAAE,CAAC,CAAC;AAEzD,IAAA,aAAI,EAAC,uDAAuD,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACxE,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,EAC1B,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC;IACvB,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5C,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACtB,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAA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