globalpayments-api 3.5.1-fix-3 → 3.5.1-fix-4
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/lib/src/Builders/AuthorizationBuilder.d.ts +348 -0
- package/lib/src/Builders/AuthorizationBuilder.js +668 -0
- package/lib/src/Builders/AuthorizationBuilder.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +16 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +92 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +16 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +36 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +11 -0
- package/lib/src/Builders/BaseBuilder/Validations.js +55 -0
- package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -0
- package/lib/src/Builders/BaseBuilder.d.ts +11 -0
- package/lib/src/Builders/BaseBuilder.js +17 -0
- package/lib/src/Builders/BaseBuilder.js.map +1 -0
- package/lib/src/Builders/ManagementBuilder.d.ts +122 -0
- package/lib/src/Builders/ManagementBuilder.js +244 -0
- package/lib/src/Builders/ManagementBuilder.js.map +1 -0
- package/lib/src/Builders/PayFacBuilder.d.ts +97 -0
- package/lib/src/Builders/PayFacBuilder.js +233 -0
- package/lib/src/Builders/PayFacBuilder.js.map +1 -0
- package/lib/src/Builders/RecurringBuilder.d.ts +13 -0
- package/lib/src/Builders/RecurringBuilder.js +34 -0
- package/lib/src/Builders/RecurringBuilder.js.map +1 -0
- package/lib/src/Builders/ReportBuilder.d.ts +10 -0
- package/lib/src/Builders/ReportBuilder.js +27 -0
- package/lib/src/Builders/ReportBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js +23 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +35 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +448 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +7 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +179 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.d.ts +16 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js +34 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +163 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +6 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +49 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.d.ts +4 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js +21 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +18 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +125 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js +83 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +9 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +66 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +8 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +39 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/index.js.map +1 -0
- package/lib/src/Builders/TransactionBuilder.d.ts +13 -0
- package/lib/src/Builders/TransactionBuilder.js +47 -0
- package/lib/src/Builders/TransactionBuilder.js.map +1 -0
- package/lib/src/Builders/TransactionReportBuilder.d.ts +19 -0
- package/lib/src/Builders/TransactionReportBuilder.js +92 -0
- package/lib/src/Builders/TransactionReportBuilder.js.map +1 -0
- package/lib/src/Builders/index.d.ts +8 -0
- package/lib/src/Builders/index.js +25 -0
- package/lib/src/Builders/index.js.map +1 -0
- package/lib/src/ConfiguredServices.d.ts +24 -0
- package/lib/src/ConfiguredServices.js +33 -0
- package/lib/src/ConfiguredServices.js.map +1 -0
- package/lib/src/Entities/Address.d.ts +14 -0
- package/lib/src/Entities/Address.js +23 -0
- package/lib/src/Entities/Address.js.map +1 -0
- package/lib/src/Entities/BatchSummary.d.ts +6 -0
- package/lib/src/Entities/BatchSummary.js +11 -0
- package/lib/src/Entities/BatchSummary.js.map +1 -0
- package/lib/src/Entities/Card.d.ts +36 -0
- package/lib/src/Entities/Card.js +41 -0
- package/lib/src/Entities/Card.js.map +1 -0
- package/lib/src/Entities/CardIssuerResponse.d.ts +22 -0
- package/lib/src/Entities/CardIssuerResponse.js +27 -0
- package/lib/src/Entities/CardIssuerResponse.js.map +1 -0
- package/lib/src/Entities/Customer.d.ts +74 -0
- package/lib/src/Entities/Customer.js +94 -0
- package/lib/src/Entities/Customer.js.map +1 -0
- package/lib/src/Entities/CustomerDocument.d.ts +8 -0
- package/lib/src/Entities/CustomerDocument.js +16 -0
- package/lib/src/Entities/CustomerDocument.js.map +1 -0
- package/lib/src/Entities/DocumentUploadData.d.ts +13 -0
- package/lib/src/Entities/DocumentUploadData.js +81 -0
- package/lib/src/Entities/DocumentUploadData.js.map +1 -0
- package/lib/src/Entities/EcommerceInfo.d.ts +12 -0
- package/lib/src/Entities/EcommerceInfo.js +22 -0
- package/lib/src/Entities/EcommerceInfo.js.map +1 -0
- package/lib/src/Entities/EncryptionData.d.ts +7 -0
- package/lib/src/Entities/EncryptionData.js +16 -0
- package/lib/src/Entities/EncryptionData.js.map +1 -0
- package/lib/src/Entities/Enums/AcquisitionType.d.ts +10 -0
- package/lib/src/Entities/Enums/AcquisitionType.js +15 -0
- package/lib/src/Entities/Enums/AcquisitionType.js.map +1 -0
- package/lib/src/Entities/Enums/CardTypeFilter.d.ts +7 -0
- package/lib/src/Entities/Enums/CardTypeFilter.js +12 -0
- package/lib/src/Entities/Enums/CardTypeFilter.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +669 -0
- package/lib/src/Entities/Enums.js +859 -0
- package/lib/src/Entities/Enums.js.map +1 -0
- package/lib/src/Entities/Errors.d.ts +23 -0
- package/lib/src/Entities/Errors.js +72 -0
- package/lib/src/Entities/Errors.js.map +1 -0
- package/lib/src/Entities/FraudRule.d.ts +8 -0
- package/lib/src/Entities/FraudRule.js +17 -0
- package/lib/src/Entities/FraudRule.js.map +1 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.d.ts +16 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.js +21 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/Card.d.ts +16 -0
- package/lib/src/Entities/GpApi/DTO/Card.js +21 -0
- package/lib/src/Entities/GpApi/DTO/Card.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.d.ts +17 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js +21 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/index.d.ts +2 -0
- package/lib/src/Entities/GpApi/DTO/index.js +19 -0
- package/lib/src/Entities/GpApi/DTO/index.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiAccount.d.ts +5 -0
- package/lib/src/Entities/GpApi/GpApiAccount.js +13 -0
- package/lib/src/Entities/GpApi/GpApiAccount.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiRequest.d.ts +21 -0
- package/lib/src/Entities/GpApi/GpApiRequest.js +26 -0
- package/lib/src/Entities/GpApi/GpApiRequest.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.d.ts +52 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js +115 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js.map +1 -0
- package/lib/src/Entities/GpApi/PageResult.d.ts +8 -0
- package/lib/src/Entities/GpApi/PageResult.js +13 -0
- package/lib/src/Entities/GpApi/PageResult.js.map +1 -0
- package/lib/src/Entities/GpApi/index.d.ts +5 -0
- package/lib/src/Entities/GpApi/index.js +22 -0
- package/lib/src/Entities/GpApi/index.js.map +1 -0
- package/lib/src/Entities/HostedPaymentData.d.ts +10 -0
- package/lib/src/Entities/HostedPaymentData.js +17 -0
- package/lib/src/Entities/HostedPaymentData.js.map +1 -0
- package/lib/src/Entities/IRequestBuilder.d.ts +6 -0
- package/lib/src/Entities/IRequestBuilder.js +3 -0
- package/lib/src/Entities/IRequestBuilder.js.map +1 -0
- package/lib/src/Entities/IRequestLogger.d.ts +8 -0
- package/lib/src/Entities/IRequestLogger.js +3 -0
- package/lib/src/Entities/IRequestLogger.js.map +1 -0
- package/lib/src/Entities/LodgingData.d.ts +14 -0
- package/lib/src/Entities/LodgingData.js +18 -0
- package/lib/src/Entities/LodgingData.js.map +1 -0
- package/lib/src/Entities/LodgingItems.d.ts +6 -0
- package/lib/src/Entities/LodgingItems.js +11 -0
- package/lib/src/Entities/LodgingItems.js.map +1 -0
- package/lib/src/Entities/MaskedValueCollection.d.ts +12 -0
- package/lib/src/Entities/MaskedValueCollection.js +53 -0
- package/lib/src/Entities/MaskedValueCollection.js.map +1 -0
- package/lib/src/Entities/PayerDetails.d.ts +8 -0
- package/lib/src/Entities/PayerDetails.js +12 -0
- package/lib/src/Entities/PayerDetails.js.map +1 -0
- package/lib/src/Entities/PhoneNumber.d.ts +6 -0
- package/lib/src/Entities/PhoneNumber.js +15 -0
- package/lib/src/Entities/PhoneNumber.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +7 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +12 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +15 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js +19 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js.map +1 -0
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/BankAccountData.js +42 -0
- package/lib/src/Entities/ProFac/BankAccountData.js.map +1 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +8 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +15 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +1 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +6 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +12 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +1 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +5 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +10 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +1 -0
- package/lib/src/Entities/ProFac/BusinessData.d.ts +15 -0
- package/lib/src/Entities/ProFac/BusinessData.js +50 -0
- package/lib/src/Entities/ProFac/BusinessData.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +4 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +17 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceData.d.ts +5 -0
- package/lib/src/Entities/ProFac/DeviceData.js +11 -0
- package/lib/src/Entities/ProFac/DeviceData.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +6 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js +19 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js.map +1 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +7 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +15 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +1 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +8 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +10 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +1 -0
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +18 -0
- package/lib/src/Entities/ProFac/OrderDevice.js +23 -0
- package/lib/src/Entities/ProFac/OrderDevice.js.map +1 -0
- package/lib/src/Entities/ProFac/OwnersData.d.ts +12 -0
- package/lib/src/Entities/ProFac/OwnersData.js +43 -0
- package/lib/src/Entities/ProFac/OwnersData.js.map +1 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +55 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js +62 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js.map +1 -0
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js +38 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js.map +1 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +8 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +27 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +1 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +5 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js +19 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js.map +1 -0
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +26 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js +82 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js.map +1 -0
- package/lib/src/Entities/RecurringEntity.d.ts +14 -0
- package/lib/src/Entities/RecurringEntity.js +92 -0
- package/lib/src/Entities/RecurringEntity.js.map +1 -0
- package/lib/src/Entities/Reporting/BaseSummary.d.ts +8 -0
- package/lib/src/Entities/Reporting/BaseSummary.js +13 -0
- package/lib/src/Entities/Reporting/BaseSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +108 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +125 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +1 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.d.ts +11 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js +16 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/index.d.ts +3 -0
- package/lib/src/Entities/Reporting/index.js +20 -0
- package/lib/src/Entities/Reporting/index.js.map +1 -0
- package/lib/src/Entities/Request.d.ts +10 -0
- package/lib/src/Entities/Request.js +18 -0
- package/lib/src/Entities/Request.js.map +1 -0
- package/lib/src/Entities/SSORequestData.d.ts +5 -0
- package/lib/src/Entities/SSORequestData.js +19 -0
- package/lib/src/Entities/SSORequestData.js.map +1 -0
- package/lib/src/Entities/Schedule.d.ts +47 -0
- package/lib/src/Entities/Schedule.js +325 -0
- package/lib/src/Entities/Schedule.js.map +1 -0
- package/lib/src/Entities/ServiceEndpoints.d.ts +12 -0
- package/lib/src/Entities/ServiceEndpoints.js +17 -0
- package/lib/src/Entities/ServiceEndpoints.js.map +1 -0
- package/lib/src/Entities/StoredCredentials.d.ts +9 -0
- package/lib/src/Entities/StoredCredentials.js +13 -0
- package/lib/src/Entities/StoredCredentials.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +96 -0
- package/lib/src/Entities/Transaction.js +157 -0
- package/lib/src/Entities/Transaction.js.map +1 -0
- package/lib/src/Entities/TransactionStatus.d.ts +13 -0
- package/lib/src/Entities/TransactionStatus.js +29 -0
- package/lib/src/Entities/TransactionStatus.js.map +1 -0
- package/lib/src/Entities/TransactionSummary.d.ts +78 -0
- package/lib/src/Entities/TransactionSummary.js +83 -0
- package/lib/src/Entities/TransactionSummary.js.map +1 -0
- package/lib/src/Entities/UPA/ProcessIndicator.d.ts +7 -0
- package/lib/src/Entities/UPA/ProcessIndicator.js +11 -0
- package/lib/src/Entities/UPA/ProcessIndicator.js.map +1 -0
- package/lib/src/Entities/UPA/UpaParam.d.ts +10 -0
- package/lib/src/Entities/UPA/UpaParam.js +14 -0
- package/lib/src/Entities/UPA/UpaParam.js.map +1 -0
- package/lib/src/Entities/UPA/UpaTransactionData.d.ts +8 -0
- package/lib/src/Entities/UPA/UpaTransactionData.js +12 -0
- package/lib/src/Entities/UPA/UpaTransactionData.js.map +1 -0
- package/lib/src/Entities/UPA/index.d.ts +3 -0
- package/lib/src/Entities/UPA/index.js +20 -0
- package/lib/src/Entities/UPA/index.js.map +1 -0
- package/lib/src/Entities/index.d.ts +31 -0
- package/lib/src/Entities/index.js +48 -0
- package/lib/src/Entities/index.js.map +1 -0
- package/lib/src/Gateways/Gateway.d.ts +16 -0
- package/lib/src/Gateways/Gateway.js +94 -0
- package/lib/src/Gateways/Gateway.js.map +1 -0
- package/lib/src/Gateways/GatewayResponse.d.ts +8 -0
- package/lib/src/Gateways/GatewayResponse.js +15 -0
- package/lib/src/Gateways/GatewayResponse.js.map +1 -0
- package/lib/src/Gateways/GpApiConnector.d.ts +42 -0
- package/lib/src/Gateways/GpApiConnector.js +232 -0
- package/lib/src/Gateways/GpApiConnector.js.map +1 -0
- package/lib/src/Gateways/GpEcomConnector.d.ts +36 -0
- package/lib/src/Gateways/GpEcomConnector.js +468 -0
- package/lib/src/Gateways/GpEcomConnector.js.map +1 -0
- package/lib/src/Gateways/IPayFacProvider.d.ts +5 -0
- package/lib/src/Gateways/IPayFacProvider.js +3 -0
- package/lib/src/Gateways/IPayFacProvider.js.map +1 -0
- package/lib/src/Gateways/IPaymentGateway.d.ts +8 -0
- package/lib/src/Gateways/IPaymentGateway.js +3 -0
- package/lib/src/Gateways/IPaymentGateway.js.map +1 -0
- package/lib/src/Gateways/IRecurringService.d.ts +6 -0
- package/lib/src/Gateways/IRecurringService.js +3 -0
- package/lib/src/Gateways/IRecurringService.js.map +1 -0
- package/lib/src/Gateways/PayPlanConnector.d.ts +42 -0
- package/lib/src/Gateways/PayPlanConnector.js +545 -0
- package/lib/src/Gateways/PayPlanConnector.js.map +1 -0
- package/lib/src/Gateways/PorticoConnector.d.ts +48 -0
- package/lib/src/Gateways/PorticoConnector.js +1013 -0
- package/lib/src/Gateways/PorticoConnector.js.map +1 -0
- package/lib/src/Gateways/ProPayConnector.d.ts +45 -0
- package/lib/src/Gateways/ProPayConnector.js +801 -0
- package/lib/src/Gateways/ProPayConnector.js.map +1 -0
- package/lib/src/Gateways/RestGateway.d.ts +9 -0
- package/lib/src/Gateways/RestGateway.js +77 -0
- package/lib/src/Gateways/RestGateway.js.map +1 -0
- package/lib/src/Gateways/XmlGateway.d.ts +6 -0
- package/lib/src/Gateways/XmlGateway.js +54 -0
- package/lib/src/Gateways/XmlGateway.js.map +1 -0
- package/lib/src/Gateways/https-wrapper.d.ts +3 -0
- package/lib/src/Gateways/https-wrapper.js +81 -0
- package/lib/src/Gateways/https-wrapper.js.map +1 -0
- package/lib/src/Gateways/index.d.ts +9 -0
- package/lib/src/Gateways/index.js +26 -0
- package/lib/src/Gateways/index.js.map +1 -0
- package/lib/src/HostedPaymentConfig.d.ts +12 -0
- package/lib/src/HostedPaymentConfig.js +16 -0
- package/lib/src/HostedPaymentConfig.js.map +1 -0
- package/lib/src/Mapping/EnumMapping.d.ts +8 -0
- package/lib/src/Mapping/EnumMapping.js +84 -0
- package/lib/src/Mapping/EnumMapping.js.map +1 -0
- package/lib/src/Mapping/GpApiMapping.d.ts +15 -0
- package/lib/src/Mapping/GpApiMapping.js +285 -0
- package/lib/src/Mapping/GpApiMapping.js.map +1 -0
- package/lib/src/Mapping/GpEcomMapping.d.ts +9 -0
- package/lib/src/Mapping/GpEcomMapping.js +85 -0
- package/lib/src/Mapping/GpEcomMapping.js.map +1 -0
- package/lib/src/Mapping/index.d.ts +3 -0
- package/lib/src/Mapping/index.js +20 -0
- package/lib/src/Mapping/index.js.map +1 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.d.ts +22 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js +47 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/Cash.d.ts +8 -0
- package/lib/src/PaymentMethods/Cash.js +16 -0
- package/lib/src/PaymentMethods/Cash.js.map +1 -0
- package/lib/src/PaymentMethods/Credit.d.ts +109 -0
- package/lib/src/PaymentMethods/Credit.js +161 -0
- package/lib/src/PaymentMethods/Credit.js.map +1 -0
- package/lib/src/PaymentMethods/CreditCardData.d.ts +20 -0
- package/lib/src/PaymentMethods/CreditCardData.js +47 -0
- package/lib/src/PaymentMethods/CreditCardData.js.map +1 -0
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +15 -0
- package/lib/src/PaymentMethods/CreditTrackData.js +36 -0
- package/lib/src/PaymentMethods/CreditTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/Debit.d.ts +48 -0
- package/lib/src/PaymentMethods/Debit.js +64 -0
- package/lib/src/PaymentMethods/Debit.js.map +1 -0
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +9 -0
- package/lib/src/PaymentMethods/DebitTrackData.js +24 -0
- package/lib/src/PaymentMethods/DebitTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/EBT.d.ts +48 -0
- package/lib/src/PaymentMethods/EBT.js +68 -0
- package/lib/src/PaymentMethods/EBT.js.map +1 -0
- package/lib/src/PaymentMethods/EBTCardData.d.ts +16 -0
- package/lib/src/PaymentMethods/EBTCardData.js +25 -0
- package/lib/src/PaymentMethods/EBTCardData.js.map +1 -0
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +8 -0
- package/lib/src/PaymentMethods/EBTTrackData.js +11 -0
- package/lib/src/PaymentMethods/EBTTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/ECheck.d.ts +32 -0
- package/lib/src/PaymentMethods/ECheck.js +38 -0
- package/lib/src/PaymentMethods/ECheck.js.map +1 -0
- package/lib/src/PaymentMethods/GiftCard.d.ts +131 -0
- package/lib/src/PaymentMethods/GiftCard.js +189 -0
- package/lib/src/PaymentMethods/GiftCard.js.map +1 -0
- package/lib/src/PaymentMethods/Interfaces.d.ts +59 -0
- package/lib/src/PaymentMethods/Interfaces.js +3 -0
- package/lib/src/PaymentMethods/Interfaces.js.map +1 -0
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +19 -0
- package/lib/src/PaymentMethods/PaymentMethod.js +57 -0
- package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +25 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +69 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/TransactionReference.d.ts +10 -0
- package/lib/src/PaymentMethods/TransactionReference.js +17 -0
- package/lib/src/PaymentMethods/TransactionReference.js.map +1 -0
- package/lib/src/PaymentMethods/index.d.ts +17 -0
- package/lib/src/PaymentMethods/index.js +34 -0
- package/lib/src/PaymentMethods/index.js.map +1 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +29 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js +43 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Configuration.d.ts +15 -0
- package/lib/src/ServiceConfigs/Configuration.js +20 -0
- package/lib/src/ServiceConfigs/Configuration.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +14 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +30 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +21 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +45 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +21 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +51 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.d.ts +22 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js +117 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +4 -0
- package/lib/src/ServiceConfigs/Gateways/index.js +21 -0
- package/lib/src/ServiceConfigs/Gateways/index.js.map +1 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.d.ts +8 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js +15 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js.map +1 -0
- package/lib/src/ServiceConfigs/index.d.ts +4 -0
- package/lib/src/ServiceConfigs/index.js +21 -0
- package/lib/src/ServiceConfigs/index.js.map +1 -0
- package/lib/src/Services/BatchService.d.ts +4 -0
- package/lib/src/Services/BatchService.js +15 -0
- package/lib/src/Services/BatchService.js.map +1 -0
- package/lib/src/Services/CheckService.d.ts +7 -0
- package/lib/src/Services/CheckService.js +20 -0
- package/lib/src/Services/CheckService.js.map +1 -0
- package/lib/src/Services/CreditService.d.ts +13 -0
- package/lib/src/Services/CreditService.js +54 -0
- package/lib/src/Services/CreditService.js.map +1 -0
- package/lib/src/Services/DebitService.d.ts +8 -0
- package/lib/src/Services/DebitService.js +28 -0
- package/lib/src/Services/DebitService.js.map +1 -0
- package/lib/src/Services/DeviceService.d.ts +5 -0
- package/lib/src/Services/DeviceService.js +19 -0
- package/lib/src/Services/DeviceService.js.map +1 -0
- package/lib/src/Services/EBTService.d.ts +9 -0
- package/lib/src/Services/EBTService.js +31 -0
- package/lib/src/Services/EBTService.js.map +1 -0
- package/lib/src/Services/GiftService.d.ts +17 -0
- package/lib/src/Services/GiftService.js +54 -0
- package/lib/src/Services/GiftService.js.map +1 -0
- package/lib/src/Services/GpApiServices.d.ts +4 -0
- package/lib/src/Services/GpApiServices.js +44 -0
- package/lib/src/Services/GpApiServices.js.map +1 -0
- package/lib/src/Services/HostedService.d.ts +10 -0
- package/lib/src/Services/HostedService.js +59 -0
- package/lib/src/Services/HostedService.js.map +1 -0
- package/lib/src/Services/PayFacService.d.ts +26 -0
- package/lib/src/Services/PayFacService.js +76 -0
- package/lib/src/Services/PayFacService.js.map +1 -0
- package/lib/src/Services/RecurringService.d.ts +8 -0
- package/lib/src/Services/RecurringService.js +24 -0
- package/lib/src/Services/RecurringService.js.map +1 -0
- package/lib/src/Services/ReportingService.d.ts +10 -0
- package/lib/src/Services/ReportingService.js +34 -0
- package/lib/src/Services/ReportingService.js.map +1 -0
- package/lib/src/Services/index.d.ts +10 -0
- package/lib/src/Services/index.js +27 -0
- package/lib/src/Services/index.js.map +1 -0
- package/lib/src/ServicesContainer.d.ts +19 -0
- package/lib/src/ServicesContainer.js +64 -0
- package/lib/src/ServicesContainer.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.d.ts +6 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.d.ts +13 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.d.ts +4 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.d.ts +52 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.d.ts +3 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js +3 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.d.ts +3 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js +3 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js.map +1 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.d.ts +16 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js +3 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js.map +1 -0
- package/lib/src/Terminals/Abstractions/index.d.ts +7 -0
- package/lib/src/Terminals/Abstractions/index.js +24 -0
- package/lib/src/Terminals/Abstractions/index.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.d.ts +65 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js +172 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.d.ts +12 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.js +32 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.d.ts +30 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js +95 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/index.d.ts +2 -0
- package/lib/src/Terminals/Builders/index.js +19 -0
- package/lib/src/Terminals/Builders/index.js.map +1 -0
- package/lib/src/Terminals/ConnectionConfig.d.ts +20 -0
- package/lib/src/Terminals/ConnectionConfig.js +49 -0
- package/lib/src/Terminals/ConnectionConfig.js.map +1 -0
- package/lib/src/Terminals/DeviceController.d.ts +23 -0
- package/lib/src/Terminals/DeviceController.js +42 -0
- package/lib/src/Terminals/DeviceController.js.map +1 -0
- package/lib/src/Terminals/DeviceInterface.d.ts +21 -0
- package/lib/src/Terminals/DeviceInterface.js +50 -0
- package/lib/src/Terminals/DeviceInterface.js.map +1 -0
- package/lib/src/Terminals/DeviceMessage.d.ts +15 -0
- package/lib/src/Terminals/DeviceMessage.js +42 -0
- package/lib/src/Terminals/DeviceMessage.js.map +1 -0
- package/lib/src/Terminals/DeviceResponse.d.ts +10 -0
- package/lib/src/Terminals/DeviceResponse.js +16 -0
- package/lib/src/Terminals/DeviceResponse.js.map +1 -0
- package/lib/src/Terminals/Enums/ControlCodes.d.ts +5 -0
- package/lib/src/Terminals/Enums/ControlCodes.js +10 -0
- package/lib/src/Terminals/Enums/ControlCodes.js.map +1 -0
- package/lib/src/Terminals/Enums/index.d.ts +1 -0
- package/lib/src/Terminals/Enums/index.js +18 -0
- package/lib/src/Terminals/Enums/index.js.map +1 -0
- package/lib/src/Terminals/Enums.d.ts +12 -0
- package/lib/src/Terminals/Enums.js +18 -0
- package/lib/src/Terminals/Enums.js.map +1 -0
- package/lib/src/Terminals/SummaryResponse.d.ts +28 -0
- package/lib/src/Terminals/SummaryResponse.js +33 -0
- package/lib/src/Terminals/SummaryResponse.js.map +1 -0
- package/lib/src/Terminals/TerminalResponse.d.ts +42 -0
- package/lib/src/Terminals/TerminalResponse.js +49 -0
- package/lib/src/Terminals/TerminalResponse.js.map +1 -0
- package/lib/src/Terminals/TerminalUtils.d.ts +4 -0
- package/lib/src/Terminals/TerminalUtils.js +24 -0
- package/lib/src/Terminals/TerminalUtils.js.map +1 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.d.ts +20 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js +25 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js.map +1 -0
- package/lib/src/Terminals/UPA/Entities/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Entities/index.js +18 -0
- package/lib/src/Terminals/UPA/Entities/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.d.ts +12 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js +76 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js.map +1 -0
- package/lib/src/Terminals/UPA/Interfaces/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Interfaces/index.js +18 -0
- package/lib/src/Terminals/UPA/Interfaces/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.d.ts +53 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js +70 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js.map +1 -0
- package/lib/src/Terminals/UPA/Reponses/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Reponses/index.js +18 -0
- package/lib/src/Terminals/UPA/Reponses/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.d.ts +7 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.js +11 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.js +9 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.d.ts +9 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.js +14 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.js +9 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.d.ts +10 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js +15 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/index.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/index.js +22 -0
- package/lib/src/Terminals/UPA/Request/index.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaController.d.ts +16 -0
- package/lib/src/Terminals/UPA/UpaController.js +213 -0
- package/lib/src/Terminals/UPA/UpaController.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaInterface.d.ts +10 -0
- package/lib/src/Terminals/UPA/UpaInterface.js +44 -0
- package/lib/src/Terminals/UPA/UpaInterface.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaMessageType.d.ts +8 -0
- package/lib/src/Terminals/UPA/UpaMessageType.js +13 -0
- package/lib/src/Terminals/UPA/UpaMessageType.js.map +1 -0
- package/lib/src/Terminals/UPA/index.d.ts +7 -0
- package/lib/src/Terminals/UPA/index.js +24 -0
- package/lib/src/Terminals/UPA/index.js.map +1 -0
- package/lib/src/Terminals/index.d.ts +8 -0
- package/lib/src/Terminals/index.js +25 -0
- package/lib/src/Terminals/index.js.map +1 -0
- package/lib/src/Utils/CardUtils.d.ts +13 -0
- package/lib/src/Utils/CardUtils.js +221 -0
- package/lib/src/Utils/CardUtils.js.map +1 -0
- package/lib/src/Utils/GenerationUtils.d.ts +6 -0
- package/lib/src/Utils/GenerationUtils.js +79 -0
- package/lib/src/Utils/GenerationUtils.js.map +1 -0
- package/lib/src/Utils/IRawRequestBuilder.d.ts +3 -0
- package/lib/src/Utils/IRawRequestBuilder.js +3 -0
- package/lib/src/Utils/IRawRequestBuilder.js.map +1 -0
- package/lib/src/Utils/InputValidation.d.ts +12 -0
- package/lib/src/Utils/InputValidation.js +71 -0
- package/lib/src/Utils/InputValidation.js.map +1 -0
- package/lib/src/Utils/Logging/Logger.d.ts +32 -0
- package/lib/src/Utils/Logging/Logger.js +209 -0
- package/lib/src/Utils/Logging/Logger.js.map +1 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.d.ts +11 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.js +23 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.js.map +1 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.d.ts +12 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.js +38 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.js.map +1 -0
- package/lib/src/Utils/Logging/index.d.ts +3 -0
- package/lib/src/Utils/Logging/index.js +20 -0
- package/lib/src/Utils/Logging/index.js.map +1 -0
- package/lib/src/Utils/Sha1.d.ts +6 -0
- package/lib/src/Utils/Sha1.js +231 -0
- package/lib/src/Utils/Sha1.js.map +1 -0
- package/lib/src/Utils/StringUtils.d.ts +15 -0
- package/lib/src/Utils/StringUtils.js +80 -0
- package/lib/src/Utils/StringUtils.js.map +1 -0
- package/lib/src/Utils/index.d.ts +5 -0
- package/lib/src/Utils/index.js +22 -0
- package/lib/src/Utils/index.js.map +1 -0
- package/lib/src/index.d.ts +13 -0
- package/lib/src/index.js +34 -0
- package/lib/src/index.js.map +1 -0
- 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/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 +2 -0
- package/lib/test/Data/index.js +19 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1023 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +337 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +82 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +111 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
- package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
- package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
- package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
- package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ava_1 = __importDefault(require("ava"));
|
|
7
|
+
const PayFacService_1 = require("../../../../src/Services/PayFacService");
|
|
8
|
+
const src_1 = require("../../../../src");
|
|
9
|
+
const TestAccountData_1 = require("./TestData/TestAccountData");
|
|
10
|
+
const UserPersonalData_1 = require("../../../../src/Entities/ProFac/UserPersonalData");
|
|
11
|
+
const SSORequestData_1 = require("../../../../src/Entities/SSORequestData");
|
|
12
|
+
const BankAccountOwnershipData_1 = require("../../../../src/Entities/ProFac/BankAccountOwnershipData");
|
|
13
|
+
const DocumentUploadData_1 = require("../../../../src/Entities/DocumentUploadData");
|
|
14
|
+
const config = new src_1.PorticoConfig();
|
|
15
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
16
|
+
config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
|
|
17
|
+
config.terminalId = "7039dd";
|
|
18
|
+
config.selfSignedCertLocation =
|
|
19
|
+
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
20
|
+
const _service = new PayFacService_1.PayFacService();
|
|
21
|
+
ava_1.default.before(() => {
|
|
22
|
+
src_1.ServicesContainer.configureService(config);
|
|
23
|
+
});
|
|
24
|
+
(0, ava_1.default)("create account", async (t) => {
|
|
25
|
+
t.plan(5);
|
|
26
|
+
const bankAccountInfo = TestAccountData_1.TestAccountData.GetBankAccountData();
|
|
27
|
+
const userBusinessInfo = TestAccountData_1.TestAccountData.GetBusinessData();
|
|
28
|
+
const accountPersonalInfo = TestAccountData_1.TestAccountData.GetUserPersonalData();
|
|
29
|
+
const threatRiskData = TestAccountData_1.TestAccountData.GetThreatRiskData();
|
|
30
|
+
const significantOwnerData = TestAccountData_1.TestAccountData.GetSignificantOwnerData();
|
|
31
|
+
const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
32
|
+
const creditCardInfo = TestAccountData_1.TestAccountData.GetCreditCardData();
|
|
33
|
+
const achInfo = TestAccountData_1.TestAccountData.GetACHData();
|
|
34
|
+
const secondaryBankInformation = TestAccountData_1.TestAccountData.GetSecondaryBankAccountData();
|
|
35
|
+
const mailingAddressInfo = TestAccountData_1.TestAccountData.GetMailingAddress();
|
|
36
|
+
const deviceData = TestAccountData_1.TestAccountData.GetDeviceData(1, false);
|
|
37
|
+
const response = await _service
|
|
38
|
+
.createAccount()
|
|
39
|
+
.withBankAccountData(bankAccountInfo)
|
|
40
|
+
.withBusinessData(userBusinessInfo)
|
|
41
|
+
.withUserPersonalData(accountPersonalInfo)
|
|
42
|
+
.withThreatRiskData(threatRiskData)
|
|
43
|
+
.withSignificantOwnerData(significantOwnerData)
|
|
44
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
45
|
+
.withCreditCardData(creditCardInfo)
|
|
46
|
+
.withACHData(achInfo)
|
|
47
|
+
.withMailingAddress(mailingAddressInfo)
|
|
48
|
+
.withSecondaryBankAccountData(secondaryBankInformation)
|
|
49
|
+
.withDeviceData(deviceData)
|
|
50
|
+
.withTimeZone("ET")
|
|
51
|
+
.execute();
|
|
52
|
+
t.truthy(response);
|
|
53
|
+
t.is("00", response.responseCode);
|
|
54
|
+
t.truthy(response.payFacData.accountNumber);
|
|
55
|
+
t.truthy(response.payFacData.password);
|
|
56
|
+
t.truthy(response.payFacData.sourceEmail);
|
|
57
|
+
});
|
|
58
|
+
(0, ava_1.default)("Order a new device", async (t) => {
|
|
59
|
+
t.plan(2);
|
|
60
|
+
const orderDeviceInfo = TestAccountData_1.TestAccountData.GetOrderNewDeviceData();
|
|
61
|
+
const deviceData = TestAccountData_1.TestAccountData.GetDeviceDataForOrderDevice(1, false);
|
|
62
|
+
const response = await _service
|
|
63
|
+
.orderDevice()
|
|
64
|
+
.withOrderDevice(orderDeviceInfo)
|
|
65
|
+
.withOrderDeviceData(deviceData)
|
|
66
|
+
.execute();
|
|
67
|
+
t.truthy(response);
|
|
68
|
+
t.is("00", response.responseCode);
|
|
69
|
+
});
|
|
70
|
+
(0, ava_1.default)("reset password", async (t) => {
|
|
71
|
+
const response = await _service
|
|
72
|
+
.resetPassword()
|
|
73
|
+
.withAccountNumber("718150930")
|
|
74
|
+
.withNegativeLimit("1")
|
|
75
|
+
.execute();
|
|
76
|
+
t.truthy(response);
|
|
77
|
+
});
|
|
78
|
+
/* Note : This method may be used to add new beneficial owner information when the original account boarding call included OwnerCount,
|
|
79
|
+
* but did not include all owner data
|
|
80
|
+
*/
|
|
81
|
+
(0, ava_1.default)("update beneficial data", async (t) => {
|
|
82
|
+
//Owners count shoud not be excedded 6
|
|
83
|
+
const ownersInfo = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
84
|
+
const response = await _service
|
|
85
|
+
.updateBeneficialOwnershipInfo()
|
|
86
|
+
.withAccountNumber("718568507")
|
|
87
|
+
.withBeneficialOwnerData(ownersInfo)
|
|
88
|
+
.execute();
|
|
89
|
+
t.truthy(response);
|
|
90
|
+
});
|
|
91
|
+
//#region edit aacount
|
|
92
|
+
(0, ava_1.default)("edit account information", async (t) => {
|
|
93
|
+
t.plan(2);
|
|
94
|
+
const accountPersonalInfo = new UserPersonalData_1.UserPersonalData();
|
|
95
|
+
accountPersonalInfo.dayPhone = "4464464464";
|
|
96
|
+
accountPersonalInfo.eveningPhone = "4464464464";
|
|
97
|
+
accountPersonalInfo.externalID = String(getRandomInt(100000000, 999999999));
|
|
98
|
+
accountPersonalInfo.firstName = "John";
|
|
99
|
+
accountPersonalInfo.lastName = "Doe";
|
|
100
|
+
accountPersonalInfo.middleInitial = "A";
|
|
101
|
+
accountPersonalInfo.sourceEmail =
|
|
102
|
+
"user" + getRandomInt(1, 10000) + "@user.com";
|
|
103
|
+
accountPersonalInfo.sSN = "1234";
|
|
104
|
+
const response = await _service
|
|
105
|
+
.editAccount()
|
|
106
|
+
.withAccountNumber("718135662")
|
|
107
|
+
.withUserPersonalData(accountPersonalInfo)
|
|
108
|
+
.execute();
|
|
109
|
+
t.truthy(response);
|
|
110
|
+
t.is("00", response.responseCode);
|
|
111
|
+
});
|
|
112
|
+
(0, ava_1.default)("edit account password", async (t) => {
|
|
113
|
+
t.plan(2);
|
|
114
|
+
const response = await _service
|
|
115
|
+
.editAccount()
|
|
116
|
+
.withAccountNumber("718568506")
|
|
117
|
+
.withPassword("testPwd_" + getRandomInt(1, 100))
|
|
118
|
+
.execute();
|
|
119
|
+
t.truthy(response);
|
|
120
|
+
t.is("00", response.responseCode);
|
|
121
|
+
});
|
|
122
|
+
(0, ava_1.default)("edit account address", async (t) => {
|
|
123
|
+
t.plan(2);
|
|
124
|
+
const personalInfo = new UserPersonalData_1.UserPersonalData();
|
|
125
|
+
personalInfo.userAddress = new src_1.Address();
|
|
126
|
+
personalInfo.userAddress.streetAddress1 = "124 Main St.";
|
|
127
|
+
personalInfo.userAddress.city = "Downtown";
|
|
128
|
+
personalInfo.userAddress.state = "NJ";
|
|
129
|
+
personalInfo.userAddress.postalCode = "12345";
|
|
130
|
+
personalInfo.userAddress.country = "USA";
|
|
131
|
+
personalInfo.mailingAddress = new src_1.Address();
|
|
132
|
+
personalInfo.mailingAddress.streetAddress1 = "125 Main St.";
|
|
133
|
+
personalInfo.mailingAddress.city = "Downtown";
|
|
134
|
+
personalInfo.mailingAddress.state = "NJ";
|
|
135
|
+
personalInfo.mailingAddress.postalCode = "12345";
|
|
136
|
+
const response = await _service
|
|
137
|
+
.editAccount()
|
|
138
|
+
.withAccountNumber("718138433")
|
|
139
|
+
.withUserPersonalData(personalInfo)
|
|
140
|
+
.execute();
|
|
141
|
+
t.truthy(response);
|
|
142
|
+
t.is("00", response.responseCode);
|
|
143
|
+
});
|
|
144
|
+
(0, ava_1.default)("edit account permissions", async (t) => {
|
|
145
|
+
t.plan(2);
|
|
146
|
+
const response = await _service
|
|
147
|
+
.editAccount()
|
|
148
|
+
.withAccountNumber("718135662")
|
|
149
|
+
.withAccountPermissions(TestAccountData_1.TestAccountData.GetAccountPermissions())
|
|
150
|
+
.execute();
|
|
151
|
+
t.truthy(response);
|
|
152
|
+
t.is("00", response.responseCode);
|
|
153
|
+
});
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region renew account
|
|
156
|
+
(0, ava_1.default)("renew account", async (t) => {
|
|
157
|
+
t.plan(2);
|
|
158
|
+
const response = await _service
|
|
159
|
+
.renewAccount()
|
|
160
|
+
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
161
|
+
.withAccountNumber("718568507")
|
|
162
|
+
.execute();
|
|
163
|
+
t.truthy(response);
|
|
164
|
+
t.is("00", response.responseCode);
|
|
165
|
+
});
|
|
166
|
+
(0, ava_1.default)("renew account by credit card", async (t) => {
|
|
167
|
+
t.plan(2);
|
|
168
|
+
const response = await _service
|
|
169
|
+
.renewAccount()
|
|
170
|
+
.withAccountNumber("718135662")
|
|
171
|
+
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
172
|
+
.execute();
|
|
173
|
+
t.truthy(response);
|
|
174
|
+
t.is("00", response.responseCode);
|
|
175
|
+
});
|
|
176
|
+
ava_1.default.skip("renew account by bank account", async (t) => {
|
|
177
|
+
t.plan(2);
|
|
178
|
+
const response = await _service
|
|
179
|
+
.renewAccount()
|
|
180
|
+
.withAccountNumber("718151055")
|
|
181
|
+
.withRenewalAccountData(TestAccountData_1.TestAccountData.GetRenewAccountDetails())
|
|
182
|
+
.execute();
|
|
183
|
+
t.truthy(response);
|
|
184
|
+
t.is("00", response.responseCode);
|
|
185
|
+
});
|
|
186
|
+
//#endregion
|
|
187
|
+
ava_1.default.skip("update account beneficial ownership", async (t) => {
|
|
188
|
+
t.plan(3);
|
|
189
|
+
const beneficialOwners = TestAccountData_1.TestAccountData.GetBeneficialOwnerData();
|
|
190
|
+
const response = await _service
|
|
191
|
+
.updateBeneficialOwnershipInfo()
|
|
192
|
+
.withAccountNumber("718134589") // This account must have been created with a beneficial owner count specified, but no owner details passed
|
|
193
|
+
.withBeneficialOwnerData(beneficialOwners)
|
|
194
|
+
.execute();
|
|
195
|
+
t.truthy(response);
|
|
196
|
+
t.is("00", response.responseCode);
|
|
197
|
+
t.truthy(response.payFacData.beneficialOwnerDataResults);
|
|
198
|
+
});
|
|
199
|
+
ava_1.default.skip("disown account", async (t) => {
|
|
200
|
+
t.plan(2);
|
|
201
|
+
const response = await _service
|
|
202
|
+
.disownAccount()
|
|
203
|
+
.withAccountNumber("718134204") // The account being "disowned" needs to have another affiliation set. Contact propayimplementations@tsys.com and they will set one if necessary
|
|
204
|
+
.execute();
|
|
205
|
+
t.truthy(response);
|
|
206
|
+
t.is("00", response.responseCode);
|
|
207
|
+
});
|
|
208
|
+
// Note : The transaction number of the chargeback you need to dispute. (can be verify at certification process)
|
|
209
|
+
(0, ava_1.default)("upload document chargeback", async (t) => {
|
|
210
|
+
t.plan(2);
|
|
211
|
+
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
212
|
+
docUploadData.documentName = "TestDocCB_12345";
|
|
213
|
+
docUploadData.transactionReference = "123456789";
|
|
214
|
+
docUploadData.documentPath =
|
|
215
|
+
"test/Integration/Gateways/ProPayConnector/TestData/TestDocChargeback.docx";
|
|
216
|
+
docUploadData.DocumentPath(docUploadData.documentPath);
|
|
217
|
+
const response = await _service
|
|
218
|
+
.uploadDocumentChargeback()
|
|
219
|
+
.withAccountNumber("718567300")
|
|
220
|
+
.withDocumentUploadData(docUploadData)
|
|
221
|
+
.execute();
|
|
222
|
+
t.truthy(response);
|
|
223
|
+
t.is("00", response.responseCode);
|
|
224
|
+
});
|
|
225
|
+
(0, ava_1.default)("upload document", async (t) => {
|
|
226
|
+
t.plan(2);
|
|
227
|
+
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
228
|
+
docUploadData.documentName = "TestDoc_12345";
|
|
229
|
+
docUploadData.docCategory = "Verification";
|
|
230
|
+
docUploadData.documentPath =
|
|
231
|
+
"test/Integration/Gateways/ProPayConnector/TestData/TestDoc.docx";
|
|
232
|
+
docUploadData.DocumentPath(docUploadData.documentPath);
|
|
233
|
+
const response = await _service
|
|
234
|
+
.uploadDocument()
|
|
235
|
+
.withAccountNumber("718134204")
|
|
236
|
+
.withDocumentUploadData(docUploadData)
|
|
237
|
+
.execute();
|
|
238
|
+
t.truthy(response);
|
|
239
|
+
t.is("00", response.responseCode);
|
|
240
|
+
});
|
|
241
|
+
(0, ava_1.default)("upload document chargeback by document string", async (t) => {
|
|
242
|
+
t.plan(2);
|
|
243
|
+
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
244
|
+
docUploadData.documentName = "TestDocCB_12345";
|
|
245
|
+
docUploadData.transactionReference = "123456789";
|
|
246
|
+
docUploadData.document = TestAccountData_1.TestAccountData.GetDocumentBase64String("test/Integration/Gateways/ProPayConnector/TestData/TestDocChargeback.docx");
|
|
247
|
+
docUploadData.docType = "docx";
|
|
248
|
+
const response = await _service
|
|
249
|
+
.uploadDocumentChargeback()
|
|
250
|
+
.withAccountNumber("718134204")
|
|
251
|
+
.withDocumentUploadData(docUploadData)
|
|
252
|
+
.execute();
|
|
253
|
+
t.truthy(response);
|
|
254
|
+
t.is("00", response.responseCode);
|
|
255
|
+
});
|
|
256
|
+
(0, ava_1.default)("upload document by document string", async (t) => {
|
|
257
|
+
t.plan(2);
|
|
258
|
+
const docUploadData = new DocumentUploadData_1.DocumentUploadData();
|
|
259
|
+
docUploadData.documentName = "TestDoc_12345";
|
|
260
|
+
docUploadData.docCategory = "Verification";
|
|
261
|
+
docUploadData.document = TestAccountData_1.TestAccountData.GetDocumentBase64String("test/Integration/Gateways/ProPayConnector/TestData/TestDoc.docx");
|
|
262
|
+
docUploadData.docType = "docx";
|
|
263
|
+
const response = await _service
|
|
264
|
+
.uploadDocument()
|
|
265
|
+
.withAccountNumber("718134204")
|
|
266
|
+
.withDocumentUploadData(docUploadData)
|
|
267
|
+
.execute();
|
|
268
|
+
t.truthy(response);
|
|
269
|
+
t.is("00", response.responseCode);
|
|
270
|
+
});
|
|
271
|
+
(0, ava_1.default)("obtain sSO key", async (t) => {
|
|
272
|
+
t.plan(3);
|
|
273
|
+
const ssoRequestData = new SSORequestData_1.SSORequestData();
|
|
274
|
+
ssoRequestData.referrerURL = "https://www.globalpaymentsinc.com/";
|
|
275
|
+
ssoRequestData.iPAddress = "40.81.11.219";
|
|
276
|
+
ssoRequestData.iPSubnetMask = "255.255.255.0";
|
|
277
|
+
const response = await _service
|
|
278
|
+
.obtainSSOKey()
|
|
279
|
+
.withAccountNumber("718150930")
|
|
280
|
+
.withSSORequestData(ssoRequestData)
|
|
281
|
+
.execute();
|
|
282
|
+
t.truthy(response);
|
|
283
|
+
t.is("00", response.responseCode);
|
|
284
|
+
t.truthy(response.payFacData.authToken);
|
|
285
|
+
});
|
|
286
|
+
(0, ava_1.default)("update bank account ownership info", async (t) => {
|
|
287
|
+
t.plan(2);
|
|
288
|
+
config.selfSignedCertLocation =
|
|
289
|
+
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificateCAN.crt";
|
|
290
|
+
config.serviceUrl = "https://xmltestcanada.propay.com/API/PropayAPI.aspx";
|
|
291
|
+
config.certificationStr = "7c4ddcba7054a1d9e00bcac4743b98";
|
|
292
|
+
config.terminalId = "3b98";
|
|
293
|
+
src_1.ServicesContainer.configureService(config, "secondService");
|
|
294
|
+
const primaryOwner = new BankAccountOwnershipData_1.BankAccountOwnershipData();
|
|
295
|
+
primaryOwner.firstName = "Style";
|
|
296
|
+
primaryOwner.lastName = "Stallone";
|
|
297
|
+
primaryOwner.phoneNumber = "123456789";
|
|
298
|
+
const ownerAddress = new src_1.Address();
|
|
299
|
+
primaryOwner.ownerAddress = ownerAddress;
|
|
300
|
+
const secondaryOwner = new BankAccountOwnershipData_1.BankAccountOwnershipData();
|
|
301
|
+
secondaryOwner.firstName = "Thomas";
|
|
302
|
+
secondaryOwner.lastName = "Hanks";
|
|
303
|
+
secondaryOwner.phoneNumber = "123456789";
|
|
304
|
+
const secondaryOwnerAddress = new src_1.Address();
|
|
305
|
+
secondaryOwnerAddress.streetAddress1 = "1970 Diamond Blvd";
|
|
306
|
+
secondaryOwnerAddress.streetAddress2 = "1971 Diamond Blvd";
|
|
307
|
+
secondaryOwnerAddress.streetAddress3 = "1972 Diamond Blvd";
|
|
308
|
+
secondaryOwnerAddress.city = "Orlando";
|
|
309
|
+
secondaryOwnerAddress.state = "FL";
|
|
310
|
+
secondaryOwnerAddress.postalCode = "X0A 0H0";
|
|
311
|
+
secondaryOwnerAddress.country = "CAN";
|
|
312
|
+
secondaryOwner.ownerAddress = secondaryOwnerAddress;
|
|
313
|
+
const response = await _service
|
|
314
|
+
.updateBankAccountOwnershipInfo()
|
|
315
|
+
.withAccountNumber("716016890")
|
|
316
|
+
.withPrimaryBankAccountOwner(primaryOwner)
|
|
317
|
+
.withSecondaryBankAccountOwner(secondaryOwner)
|
|
318
|
+
.execute("secondService");
|
|
319
|
+
t.truthy(response);
|
|
320
|
+
t.is("00", response.responseCode);
|
|
321
|
+
});
|
|
322
|
+
function getRandomInt(min, max) {
|
|
323
|
+
const floatRandom = Math.random();
|
|
324
|
+
const difference = max - min;
|
|
325
|
+
// random between 0 and the difference
|
|
326
|
+
const random = Math.round(difference * floatRandom);
|
|
327
|
+
const randomWithinRange = random + min;
|
|
328
|
+
return randomWithinRange;
|
|
329
|
+
}
|
|
330
|
+
//# sourceMappingURL=ProPayAccountTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProPayAccountTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayAccountTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAA4E;AAE5E,gEAA6D;AAC7D,uFAAoF;AACpF,4EAAyE;AACzE,uGAAoG;AACpG,oFAAiF;AAEjF,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sB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export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ava_1 = __importDefault(require("ava"));
|
|
7
|
+
const PayFacService_1 = require("../../../../src/Services/PayFacService");
|
|
8
|
+
const src_1 = require("../../../../src");
|
|
9
|
+
const TestFundsData_1 = require("./TestData/TestFundsData");
|
|
10
|
+
const config = new src_1.PorticoConfig();
|
|
11
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
12
|
+
config.certificationStr = "4ee64cbd706400fb4a34e65aab6f48";
|
|
13
|
+
config.terminalId = "ab6f48";
|
|
14
|
+
config.selfSignedCertLocation =
|
|
15
|
+
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
16
|
+
const _service = new PayFacService_1.PayFacService();
|
|
17
|
+
ava_1.default.before(() => {
|
|
18
|
+
src_1.ServicesContainer.configureService(config);
|
|
19
|
+
});
|
|
20
|
+
(0, ava_1.default)("add funds", async (t) => {
|
|
21
|
+
t.plan(2);
|
|
22
|
+
const response = await _service
|
|
23
|
+
.addFunds()
|
|
24
|
+
.withAccountNumber("718134204")
|
|
25
|
+
.withAmount("10")
|
|
26
|
+
.execute();
|
|
27
|
+
t.truthy(response);
|
|
28
|
+
t.is("00", response.responseCode);
|
|
29
|
+
});
|
|
30
|
+
(0, ava_1.default)("sweep funds", async (t) => {
|
|
31
|
+
t.plan(2);
|
|
32
|
+
const response = await _service
|
|
33
|
+
.sweepFunds()
|
|
34
|
+
.withAccountNumber("718570822")
|
|
35
|
+
.withAmount("10")
|
|
36
|
+
.execute();
|
|
37
|
+
t.truthy(response);
|
|
38
|
+
t.is("00", response.responseCode);
|
|
39
|
+
});
|
|
40
|
+
(0, ava_1.default)("add flash funds payment card", async (t) => {
|
|
41
|
+
t.plan(2);
|
|
42
|
+
const response = await _service
|
|
43
|
+
.addCardFlashFunds()
|
|
44
|
+
.withAccountNumber("718136438")
|
|
45
|
+
.withFlashFundsPaymentCardData(TestFundsData_1.TestFundsData.GetFlashFundsPaymentCardData())
|
|
46
|
+
.execute();
|
|
47
|
+
t.truthy(response);
|
|
48
|
+
t.is("00", response.responseCode);
|
|
49
|
+
});
|
|
50
|
+
ava_1.default.skip("push money to flash funds card", async (t) => {
|
|
51
|
+
t.plan(2);
|
|
52
|
+
const response = await _service
|
|
53
|
+
.pushMoneyToFlashFundsCard()
|
|
54
|
+
.withAccountNumber("718136438")
|
|
55
|
+
.withAmount("100")
|
|
56
|
+
.execute();
|
|
57
|
+
t.truthy(response);
|
|
58
|
+
t.is("00", response.responseCode);
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=ProPayFundsTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProPayFundsTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayFundsTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AACnE,4DAAyD;AAEzD,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC;AAC3D,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sBAAsB;IAC3B,8EAA8E,CAAC;AACjF,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,WAAW,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAC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AAE,CAAC,EAAE,EAAE;IACtD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,yBAAyB,EAAE;SAC3B,iBAAiB,CAAC,WAAW,CAAC;SAC9B,UAAU,CAAC,KAAK,CAAC;SACjB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ava_1 = __importDefault(require("ava"));
|
|
7
|
+
const PayFacService_1 = require("../../../../src/Services/PayFacService");
|
|
8
|
+
const src_1 = require("../../../../src");
|
|
9
|
+
const config = new src_1.PorticoConfig();
|
|
10
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
11
|
+
config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd"; // other transactions except disburment based
|
|
12
|
+
config.terminalId = "7039dd";
|
|
13
|
+
config.selfSignedCertLocation =
|
|
14
|
+
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
15
|
+
const _service = new PayFacService_1.PayFacService();
|
|
16
|
+
ava_1.default.before(() => {
|
|
17
|
+
src_1.ServicesContainer.configureService(config);
|
|
18
|
+
});
|
|
19
|
+
(0, ava_1.default)("disburse funds", async (t) => {
|
|
20
|
+
t.plan(2);
|
|
21
|
+
config.serviceUrl = "https://xmltest.propay.com/API/PropayAPI.aspx";
|
|
22
|
+
config.certificationStr = "C7277D317D1840F5ADEBE600CF47B9"; // disburment of fund only
|
|
23
|
+
config.terminalId = "7039dd";
|
|
24
|
+
config.selfSignedCertLocation =
|
|
25
|
+
"test/Integration/Gateways/ProPayConnector/TestData/selfSignedCertificate.crt";
|
|
26
|
+
src_1.ServicesContainer.configureService(config);
|
|
27
|
+
const response = await _service
|
|
28
|
+
.disburseFunds()
|
|
29
|
+
.withReceivingAccountNumber("718136438")
|
|
30
|
+
.withAmount("100")
|
|
31
|
+
.execute();
|
|
32
|
+
t.truthy(response);
|
|
33
|
+
t.is("00", response.responseCode);
|
|
34
|
+
});
|
|
35
|
+
(0, ava_1.default)("spend back transaction", async (t) => {
|
|
36
|
+
t.plan(2);
|
|
37
|
+
const config = new src_1.PorticoConfig();
|
|
38
|
+
config.certificationStr = "5dbacb0fc504dd7bdc2eadeb7039dd";
|
|
39
|
+
const response = await _service
|
|
40
|
+
.spendBack()
|
|
41
|
+
.withAccountNumber("718136438")
|
|
42
|
+
.withReceivingAccountNumber("718567304")
|
|
43
|
+
.withAmount("100")
|
|
44
|
+
.withAllowPending(true)
|
|
45
|
+
.execute();
|
|
46
|
+
t.truthy(response);
|
|
47
|
+
t.is("00", response.responseCode);
|
|
48
|
+
});
|
|
49
|
+
/* before executing need to run Transaction Type 04 -> and from success response,
|
|
50
|
+
* the transNum value need to use here
|
|
51
|
+
*/
|
|
52
|
+
(0, ava_1.default)("split funds", async (t) => {
|
|
53
|
+
t.plan(2);
|
|
54
|
+
const response = await _service
|
|
55
|
+
.splitFunds()
|
|
56
|
+
.withAccountNumber("718567304")
|
|
57
|
+
.withReceivingAccountNumber("718136438")
|
|
58
|
+
.withAmount("100")
|
|
59
|
+
.withTransNum("9")
|
|
60
|
+
.execute();
|
|
61
|
+
t.truthy(response);
|
|
62
|
+
t.is("00", response.responseCode);
|
|
63
|
+
});
|
|
64
|
+
(0, ava_1.default)("reverse split pay", async (t) => {
|
|
65
|
+
t.plan(5);
|
|
66
|
+
const response = await _service
|
|
67
|
+
.reverseSplitPay()
|
|
68
|
+
.withAccountNumber("718136438")
|
|
69
|
+
.withAmount("1")
|
|
70
|
+
.withCCAmount("10")
|
|
71
|
+
.withRequireCCRefund(true)
|
|
72
|
+
.withTransNum("49")
|
|
73
|
+
.execute();
|
|
74
|
+
t.truthy(response);
|
|
75
|
+
t.is("00", response.responseCode);
|
|
76
|
+
t.truthy(response.payFacData.amount);
|
|
77
|
+
t.truthy(response.payFacData.recAccountNum);
|
|
78
|
+
t.truthy(response.payFacData.transNum);
|
|
79
|
+
});
|
|
80
|
+
//# sourceMappingURL=ProPayInNetworkTransactionTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProPayInNetworkTransactionTest.js","sourceRoot":"","sources":["../../../../../test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.ts"],"names":[],"mappings":";;;;;AAAA,8CAAuB;AACvB,0EAAuE;AACvE,yCAAmE;AAEnE,MAAM,MAAM,GAAG,IAAI,mBAAa,EAAE,CAAC;AACnC,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;AACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC,CAAC,6CAA6C;AACzG,MAAM,CAAC,UAAU,GAAG,QAAQ,CAAC;AAC7B,MAAM,CAAC,sBAAsB;IAC3B,8EAA8E,CAAC;AACjF,MAAM,QAAQ,GAAG,IAAI,6BAAa,EAAE,CAAC;AAErC,aAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IACf,uBAAiB,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,gBAAgB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACjC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,CAAC,UAAU,GAAG,+CAA+C,CAAC;IACpE,MAAM,CAAC,gBAAgB,GAAG,gCAAgC,CAAC,CAAC,0BAA0B;IACtF,MA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AC,WAAW,CAAC;SACvC,UAAU,CAAC,KAAK,CAAC;SACjB,YAAY,CAAC,GAAG,CAAC;SACjB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;AACpC,CAAC,CAAC,CAAC;AAEH,IAAA,aAAI,EAAC,mBAAmB,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IACpC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,MAAM,QAAQ,GAAG,MAAM,QAAQ;SAC5B,eAAe,EAAE;SACjB,iBAAiB,CAAC,WAAW,CAAC;SAC9B,UAAU,CAAC,GAAG,CAAC;SACf,YAAY,CAAC,IAAI,CAAC;SAClB,mBAAmB,CAAC,IAAI,CAAC;SACzB,YAAY,CAAC,IAAI,CAAC;SAClB,OAAO,EAAE,CAAC;IAEb,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IACnB,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAClC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC5C,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AccountPermissions } from "../../../../../src/Entities/ProFac/AccountPermissions";
|
|
2
|
+
import { BankAccountData } from "../../../../../src/Entities/ProFac/BankAccountData";
|
|
3
|
+
import { BeneficialOwnerData } from "../../../../../src/Entities/ProFac/BeneficialOwnerData";
|
|
4
|
+
import { BusinessData } from "../../../../../src/Entities/ProFac/BusinessData";
|
|
5
|
+
import { DeviceData } from "../../../../../src/Entities/ProFac/DeviceData";
|
|
6
|
+
import { GrossBillingInformation } from "../../../../../src/Entities/ProFac/GrossBillingInformation";
|
|
7
|
+
import { RenewAccountData } from "../../../../../src/Entities/ProFac/RenewAccountData";
|
|
8
|
+
import { SignificantOwnerData } from "../../../../../src/Entities/ProFac/SignificantOwnerData";
|
|
9
|
+
import { ThreatRiskData } from "../../../../../src/Entities/ProFac/ThreatRiskData";
|
|
10
|
+
import { UserPersonalData } from "../../../../../src/Entities/ProFac/UserPersonalData";
|
|
11
|
+
import { CreditCardData } from "../../../../../src/PaymentMethods";
|
|
12
|
+
import { Address } from "../../../../../src/Entities/Address";
|
|
13
|
+
import { OrderDevice } from "../../../../../src/Entities/ProFac/OrderDevice";
|
|
14
|
+
export declare class TestAccountData {
|
|
15
|
+
static GetBankAccountData(): BankAccountData;
|
|
16
|
+
static GetOrderNewDeviceData(): OrderDevice;
|
|
17
|
+
static GetDeviceDataForOrderDevice(numDeviceTypes?: number, withAttributes?: boolean): DeviceData;
|
|
18
|
+
static GetBusinessData(): BusinessData;
|
|
19
|
+
static GetUserPersonalData(): UserPersonalData;
|
|
20
|
+
static GetThreatRiskData(): ThreatRiskData;
|
|
21
|
+
static GetSignificantOwnerData(): SignificantOwnerData;
|
|
22
|
+
static GetBeneficialOwnerData(): BeneficialOwnerData;
|
|
23
|
+
static GetCreditCardData(): CreditCardData;
|
|
24
|
+
static GetACHData(): BankAccountData;
|
|
25
|
+
static GetMailingAddress(): Address;
|
|
26
|
+
static GetSecondaryBankAccountData(): BankAccountData;
|
|
27
|
+
static GetGrossBillingSettleData(): GrossBillingInformation;
|
|
28
|
+
static GetAccountPermissions(): AccountPermissions;
|
|
29
|
+
static GetRenewAccountDetails(): RenewAccountData;
|
|
30
|
+
static GetDeviceData(numDeviceTypes?: number, withAttributes?: boolean): DeviceData;
|
|
31
|
+
static GetDocumentBase64String(filepath: string): string;
|
|
32
|
+
private static getByteArray;
|
|
33
|
+
static getRandomInt(min: number, max: number): number;
|
|
34
|
+
}
|