globalpayments-api 3.5.1 → 3.6.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 +26 -1
- 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 +17 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +116 -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/GpApiSecureRequestBuilder.d.ts +20 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js +413 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/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 +41 -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/Secure3dBuilder.d.ts +90 -0
- package/lib/src/Builders/Secure3dBuilder.js +423 -0
- package/lib/src/Builders/Secure3dBuilder.js.map +1 -0
- package/lib/src/Builders/SecureBuilder.d.ts +446 -0
- package/lib/src/Builders/SecureBuilder.js +729 -0
- package/lib/src/Builders/SecureBuilder.js.map +1 -0
- package/lib/src/Builders/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 +10 -0
- package/lib/src/Builders/index.js +27 -0
- package/lib/src/Builders/index.js.map +1 -0
- package/lib/src/ConfiguredServices.d.ts +28 -0
- package/lib/src/ConfiguredServices.js +53 -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/BrowserData.d.ts +13 -0
- package/lib/src/Entities/BrowserData.js +18 -0
- package/lib/src/Entities/BrowserData.js.map +1 -0
- package/lib/src/Entities/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/IsoCountries.d.ts +9 -0
- package/lib/src/Entities/Enums/IsoCountries.js +1941 -0
- package/lib/src/Entities/Enums/IsoCountries.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +818 -0
- package/lib/src/Entities/Enums.js +1030 -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/MerchantDataCollection.d.ts +16 -0
- package/lib/src/Entities/MerchantDataCollection.js +102 -0
- package/lib/src/Entities/MerchantDataCollection.js.map +1 -0
- package/lib/src/Entities/MerchantKVP.d.ts +11 -0
- package/lib/src/Entities/MerchantKVP.js +28 -0
- package/lib/src/Entities/MerchantKVP.js.map +1 -0
- package/lib/src/Entities/MessageExtension.d.ts +6 -0
- package/lib/src/Entities/MessageExtension.js +11 -0
- package/lib/src/Entities/MessageExtension.js.map +1 -0
- package/lib/src/Entities/MobileData.d.ts +11 -0
- package/lib/src/Entities/MobileData.js +15 -0
- package/lib/src/Entities/MobileData.js.map +1 -0
- package/lib/src/Entities/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/ThreeDSecure.d.ts +66 -0
- package/lib/src/Entities/ThreeDSecure.js +162 -0
- package/lib/src/Entities/ThreeDSecure.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +97 -0
- package/lib/src/Entities/Transaction.js +158 -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 +38 -0
- package/lib/src/Entities/index.js +55 -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 +43 -0
- package/lib/src/Gateways/GpApiConnector.js +239 -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 +1010 -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 +10 -0
- package/lib/src/Mapping/EnumMapping.js +110 -0
- package/lib/src/Mapping/EnumMapping.js.map +1 -0
- package/lib/src/Mapping/GpApiMapping.d.ts +16 -0
- package/lib/src/Mapping/GpApiMapping.js +381 -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 +63 -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 +21 -0
- package/lib/src/PaymentMethods/PaymentMethod.js +63 -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 +47 -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/Secure3dService.d.ts +8 -0
- package/lib/src/Services/Secure3dService.js +21 -0
- package/lib/src/Services/Secure3dService.js.map +1 -0
- package/lib/src/Services/index.d.ts +11 -0
- package/lib/src/Services/index.js +28 -0
- package/lib/src/Services/index.js.map +1 -0
- package/lib/src/ServicesContainer.d.ts +20 -0
- package/lib/src/ServicesContainer.js +79 -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/CountryUtils.d.ts +9 -0
- package/lib/src/Utils/CountryUtils.js +131 -0
- package/lib/src/Utils/CountryUtils.js.map +1 -0
- package/lib/src/Utils/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 +17 -0
- package/lib/src/Utils/StringUtils.js +95 -0
- package/lib/src/Utils/StringUtils.js.map +1 -0
- package/lib/src/Utils/index.d.ts +6 -0
- package/lib/src/Utils/index.js +23 -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/GpApi3DSTestCards.d.ts +17 -0
- package/lib/test/Data/GpApi3DSTestCards.js +22 -0
- package/lib/test/Data/GpApi3DSTestCards.js.map +1 -0
- package/lib/test/Data/TestCards.d.ts +24 -0
- package/lib/test/Data/TestCards.js +220 -0
- package/lib/test/Data/TestCards.js.map +1 -0
- package/lib/test/Data/TestChecks.d.ts +4 -0
- package/lib/test/Data/TestChecks.js +27 -0
- package/lib/test/Data/TestChecks.js.map +1 -0
- package/lib/test/Data/index.d.ts +4 -0
- package/lib/test/Data/index.js +21 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/AcsResponse.d.ts +12 -0
- package/lib/test/Integration/Gateways/AcsResponse.js +33 -0
- package/lib/test/Integration/Gateways/AcsResponse.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +1029 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +649 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1023 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +337 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +88 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +111 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +16 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +212 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
- package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
- package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
- package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
- package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/package.json +10 -2
- package/.eslintignore +0 -9
- package/.eslintrc.cjs +0 -39
- package/.prettierrc +0 -14
- package/.travis.yml +0 -25
- package/tsconfig.eslint.json +0 -15
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Address"), exports);
|
|
18
|
+
__exportStar(require("./BatchSummary"), exports);
|
|
19
|
+
__exportStar(require("./BrowserData"), exports);
|
|
20
|
+
__exportStar(require("./Card"), exports);
|
|
21
|
+
__exportStar(require("./CardIssuerResponse"), exports);
|
|
22
|
+
__exportStar(require("./Customer"), exports);
|
|
23
|
+
__exportStar(require("./CustomerDocument"), exports);
|
|
24
|
+
__exportStar(require("./EcommerceInfo"), exports);
|
|
25
|
+
__exportStar(require("./EncryptionData"), exports);
|
|
26
|
+
__exportStar(require("./Enums"), exports);
|
|
27
|
+
__exportStar(require("./Enums/IsoCountries"), exports);
|
|
28
|
+
__exportStar(require("./Errors"), exports);
|
|
29
|
+
__exportStar(require("./FraudRule"), exports);
|
|
30
|
+
__exportStar(require("./GpApi"), exports);
|
|
31
|
+
__exportStar(require("./HostedPaymentData"), exports);
|
|
32
|
+
__exportStar(require("./IRequestBuilder"), exports);
|
|
33
|
+
__exportStar(require("./IRequestLogger"), exports);
|
|
34
|
+
__exportStar(require("./LodgingData"), exports);
|
|
35
|
+
__exportStar(require("./LodgingItems"), exports);
|
|
36
|
+
__exportStar(require("./LodgingData"), exports);
|
|
37
|
+
__exportStar(require("./MaskedValueCollection"), exports);
|
|
38
|
+
__exportStar(require("./MessageExtension"), exports);
|
|
39
|
+
__exportStar(require("./MerchantDataCollection"), exports);
|
|
40
|
+
__exportStar(require("./MerchantKVP"), exports);
|
|
41
|
+
__exportStar(require("./MobileData"), exports);
|
|
42
|
+
__exportStar(require("./PayerDetails"), exports);
|
|
43
|
+
__exportStar(require("./PhoneNumber"), exports);
|
|
44
|
+
__exportStar(require("./RecurringEntity"), exports);
|
|
45
|
+
__exportStar(require("./Reporting"), exports);
|
|
46
|
+
__exportStar(require("./Request"), exports);
|
|
47
|
+
__exportStar(require("./Schedule"), exports);
|
|
48
|
+
__exportStar(require("./ServiceEndpoints"), exports);
|
|
49
|
+
__exportStar(require("./StoredCredentials"), exports);
|
|
50
|
+
__exportStar(require("./ThreeDSecure"), exports);
|
|
51
|
+
__exportStar(require("./Transaction"), exports);
|
|
52
|
+
__exportStar(require("./TransactionStatus"), exports);
|
|
53
|
+
__exportStar(require("./TransactionSummary"), exports);
|
|
54
|
+
__exportStar(require("./UPA"), exports);
|
|
55
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,iDAA+B;AAC/B,gDAA8B;AAC9B,yCAAuB;AACvB,uDAAqC;AACrC,6CAA2B;AAC3B,qDAAmC;AACnC,kDAAgC;AAChC,mDAAiC;AACjC,0CAAwB;AACxB,uDAAqC;AACrC,2CAAyB;AACzB,8CAA4B;AAC5B,0CAAwB;AACxB,sDAAoC;AACpC,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,0DAAwC;AACxC,qDAAmC;AACnC,2DAAyC;AACzC,gDAA8B;AAC9B,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC;AAClC,8CAA4B;AAC5B,4CAA0B;AAC1B,6CAA2B;AAC3B,qDAAmC;AACnC,sDAAoC;AACpC,iDAA+B;AAC/B,gDAA8B;AAC9B,sDAAoC;AACpC,uDAAqC;AACrC,wCAAsB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IDictionary } from "../Builders";
|
|
2
|
+
import { GatewayResponse } from "./GatewayResponse";
|
|
3
|
+
import { Environment, IRequestLogger } from "../../src";
|
|
4
|
+
export declare abstract class Gateway {
|
|
5
|
+
headers: IDictionary<string>;
|
|
6
|
+
timeout: number;
|
|
7
|
+
serviceUrl: string;
|
|
8
|
+
protected contentType: string;
|
|
9
|
+
maskedRequestData: Record<string, string>;
|
|
10
|
+
requestLogger: IRequestLogger;
|
|
11
|
+
environment: Environment;
|
|
12
|
+
constructor(contentType: string);
|
|
13
|
+
sendRequest(httpMethod: string, endpoint: string, requestId: number, data?: string, queryStringParams?: IDictionary<string>): Promise<GatewayResponse>;
|
|
14
|
+
maskSensitiveData(data: string): void;
|
|
15
|
+
protected buildQueryString(queryStringParams?: IDictionary<string>): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.Gateway = void 0;
|
|
27
|
+
const url = __importStar(require("url"));
|
|
28
|
+
const https_wrapper_1 = require("./https-wrapper");
|
|
29
|
+
const src_1 = require("../../src");
|
|
30
|
+
class Gateway {
|
|
31
|
+
headers;
|
|
32
|
+
timeout;
|
|
33
|
+
serviceUrl;
|
|
34
|
+
contentType;
|
|
35
|
+
maskedRequestData;
|
|
36
|
+
requestLogger;
|
|
37
|
+
environment;
|
|
38
|
+
constructor(contentType) {
|
|
39
|
+
this.contentType = contentType;
|
|
40
|
+
this.headers = {};
|
|
41
|
+
this.headers["Content-Type"] = this.contentType;
|
|
42
|
+
}
|
|
43
|
+
async sendRequest(httpMethod, endpoint, requestId, data, queryStringParams) {
|
|
44
|
+
const uri = url.parse(this.serviceUrl);
|
|
45
|
+
const queryString = this.buildQueryString(queryStringParams);
|
|
46
|
+
const options = {
|
|
47
|
+
headers: this.headers,
|
|
48
|
+
host: uri.host,
|
|
49
|
+
method: httpMethod,
|
|
50
|
+
path: uri.path + endpoint + queryString,
|
|
51
|
+
port: uri.port ? parseInt(uri.port, 10) : 443,
|
|
52
|
+
timeout: this.timeout || 100000,
|
|
53
|
+
};
|
|
54
|
+
if (data !== undefined && options && options.headers) {
|
|
55
|
+
options.headers["Content-Length"] = data.length;
|
|
56
|
+
}
|
|
57
|
+
if (this.requestLogger) {
|
|
58
|
+
const dataLogged = data &&
|
|
59
|
+
this.maskedRequestData &&
|
|
60
|
+
this.environment === src_1.Environment.Production
|
|
61
|
+
? this.maskSensitiveData(data)
|
|
62
|
+
: data;
|
|
63
|
+
this.requestLogger.requestSent(httpMethod, this.serviceUrl + endpoint + (queryString || ""), requestId, this.headers, dataLogged);
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
const response = await (0, https_wrapper_1.request)(data, options);
|
|
67
|
+
return response;
|
|
68
|
+
}
|
|
69
|
+
catch (e) {
|
|
70
|
+
if (this.requestLogger) {
|
|
71
|
+
this.requestLogger.responseError(e, requestId, e.headers);
|
|
72
|
+
}
|
|
73
|
+
throw e;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
maskSensitiveData(data) {
|
|
77
|
+
// overriden in XmlGateway and RestGateway
|
|
78
|
+
data;
|
|
79
|
+
}
|
|
80
|
+
buildQueryString(queryStringParams) {
|
|
81
|
+
if (queryStringParams === undefined) {
|
|
82
|
+
return "";
|
|
83
|
+
}
|
|
84
|
+
const params = [];
|
|
85
|
+
for (const param in queryStringParams) {
|
|
86
|
+
if (queryStringParams.hasOwnProperty(param) && queryStringParams[param]) {
|
|
87
|
+
params.push(`${encodeURIComponent(param)}=${encodeURIComponent(queryStringParams[param])}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return `?${params.join("&")}`;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.Gateway = Gateway;
|
|
94
|
+
//# sourceMappingURL=Gateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gateway.js","sourceRoot":"","sources":["../../../src/Gateways/Gateway.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAA2B;AAG3B,mDAA0C;AAE1C,mCAAwD;AAExD,MAAsB,OAAO;IACpB,OAAO,CAAsB;IAC7B,OAAO,CAAS;IAChB,UAAU,CAAS;IAChB,WAAW,CAAS;IACvB,iBAAiB,CAAyB;IAC1C,aAAa,CAAiB;IAC9B,WAAW,CAAc;IAEhC,YAAmB,WAAmB;QACpC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC;IAClD,CAAC;IAEM,KAAK,CAAC,WAAW,CACtB,UAAkB,EAClB,QAAgB,EAChB,SAAiB,EACjB,IAAa,EACb,iBAAuC;QAEvC,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACvC,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;QAC7D,MAAM,OAAO,GAAmB;YA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CAAC;IAED,iBAAiB,CAAC,IAAY;QAC5B,0CAA0C;QAC1C,IAAI,CAAC;IACP,CAAC;IAES,gBAAgB,CAAC,iBAAuC;QAChE,IAAI,iBAAiB,KAAK,SAAS,EAAE;YACnC,OAAO,EAAE,CAAC;SACX;QACD,MAAM,MAAM,GAAa,EAAE,CAAC;QAC5B,KAAK,MAAM,KAAK,IAAI,iBAAiB,EAAE;YACrC,IAAI,iBAAiB,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE;gBACvE,MAAM,CAAC,IAAI,CACT,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAChD,iBAAiB,CAAC,KAAK,CAAC,CACzB,EAAE,CACJ,CAAC;aACH;SACF;QAED,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAChC,CAAC;CACF;AAxFD,0BAwFC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { IncomingHttpHeaders } from "http";
|
|
3
|
+
export declare class GatewayResponse {
|
|
4
|
+
statusCode: number;
|
|
5
|
+
rawResponse: string;
|
|
6
|
+
headers: IncomingHttpHeaders;
|
|
7
|
+
constructor(headers: IncomingHttpHeaders, rawResponse: string, statusCode: number | undefined);
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GatewayResponse = void 0;
|
|
4
|
+
class GatewayResponse {
|
|
5
|
+
statusCode;
|
|
6
|
+
rawResponse;
|
|
7
|
+
headers;
|
|
8
|
+
constructor(headers, rawResponse, statusCode) {
|
|
9
|
+
this.headers = headers;
|
|
10
|
+
this.rawResponse = rawResponse;
|
|
11
|
+
this.statusCode = statusCode || 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.GatewayResponse = GatewayResponse;
|
|
15
|
+
//# sourceMappingURL=GatewayResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GatewayResponse.js","sourceRoot":"","sources":["../../../src/Gateways/GatewayResponse.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IACnB,UAAU,CAAS;IAEnB,WAAW,CAAS;IAEpB,OAAO,CAAsB;IAEpC,YACE,OAA4B,EAC5B,WAAmB,EACnB,UAA8B;QAE9B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,UAAU,GAAG,UAAU,IAAI,CAAC,CAAC;IACpC,CAAC;CACF;AAhBD,0CAgBC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { IPayFacProvider } from "./IPayFacProvider";
|
|
2
|
+
import { IPaymentGateway } from "./IPaymentGateway";
|
|
3
|
+
import { RestGateway } from "./RestGateway";
|
|
4
|
+
import { GpApiTokenResponse, Transaction } from "../../src/Entities";
|
|
5
|
+
import { AuthorizationBuilder, GpApiConfig, IDictionary, ManagementBuilder, ReportBuilder, Secure3dBuilder } from "../../src";
|
|
6
|
+
import { PayFacBuilder } from "src/Builders/PayFacBuilder";
|
|
7
|
+
export declare class GpApiConnector extends RestGateway implements IPaymentGateway, IPayFacProvider {
|
|
8
|
+
static GP_API_VERSION: string;
|
|
9
|
+
static IDEMPOTENCY_HEADER: string;
|
|
10
|
+
private gpApiConfig;
|
|
11
|
+
private accessToken;
|
|
12
|
+
private builtInMerchantManagementService;
|
|
13
|
+
supportsHostedPayments: boolean;
|
|
14
|
+
supportsOpenBanking(): boolean;
|
|
15
|
+
hasBuiltInMerchantManagementService(): boolean;
|
|
16
|
+
constructor(config: GpApiConfig);
|
|
17
|
+
/**
|
|
18
|
+
* Get the SDK release version
|
|
19
|
+
*
|
|
20
|
+
* @return string|null
|
|
21
|
+
*/
|
|
22
|
+
private getReleaseVersion;
|
|
23
|
+
getVersion(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Serializes and executes authorization transactions
|
|
26
|
+
*
|
|
27
|
+
* @param AuthorizationBuilder builder The transaction's builder
|
|
28
|
+
*
|
|
29
|
+
* @return Transaction
|
|
30
|
+
*/
|
|
31
|
+
processAuthorization(builder: AuthorizationBuilder): Promise<Transaction>;
|
|
32
|
+
signIn(): Promise<void>;
|
|
33
|
+
getAccessToken(): Promise<GpApiTokenResponse>;
|
|
34
|
+
manageTransaction(builder: ManagementBuilder): Promise<Transaction>;
|
|
35
|
+
processReport<T>(builder: ReportBuilder<T>): Promise<T>;
|
|
36
|
+
serializeRequest(builder: AuthorizationBuilder): string;
|
|
37
|
+
processPayFac(builder: PayFacBuilder): Promise<Transaction>;
|
|
38
|
+
private executeProcess;
|
|
39
|
+
private getMerchantUrl;
|
|
40
|
+
doTransaction(verb: string, endpoint: string, data?: string, queryStringParams?: IDictionary<string>, idempotencyKey?: string): Promise<any>;
|
|
41
|
+
processPassThrough(jsonRequest: string): Promise<string>;
|
|
42
|
+
processSecure3d(builder: Secure3dBuilder): Promise<Transaction>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.GpApiConnector = void 0;
|
|
27
|
+
const fs = __importStar(require("fs"));
|
|
28
|
+
const RestGateway_1 = require("./RestGateway");
|
|
29
|
+
const Entities_1 = require("../../src/Entities");
|
|
30
|
+
const src_1 = require("../../src");
|
|
31
|
+
class GpApiConnector extends RestGateway_1.RestGateway {
|
|
32
|
+
static GP_API_VERSION = "2021-03-22";
|
|
33
|
+
static IDEMPOTENCY_HEADER = "x-gp-idempotency";
|
|
34
|
+
gpApiConfig;
|
|
35
|
+
accessToken;
|
|
36
|
+
builtInMerchantManagementService = true;
|
|
37
|
+
supportsHostedPayments = true;
|
|
38
|
+
supportsOpenBanking() {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
hasBuiltInMerchantManagementService() {
|
|
42
|
+
return this.builtInMerchantManagementService;
|
|
43
|
+
}
|
|
44
|
+
constructor(config) {
|
|
45
|
+
super();
|
|
46
|
+
this.gpApiConfig = config;
|
|
47
|
+
this.headers["X-GP-Version"] = GpApiConnector.GP_API_VERSION;
|
|
48
|
+
this.headers["Accept"] = "application/json";
|
|
49
|
+
this.headers["Accept-Encoding"] = "gzip";
|
|
50
|
+
this.headers["x-gp-sdk"] = "node;version=" + this.getReleaseVersion();
|
|
51
|
+
this.headers["Content-Type"] = "charset=UTF-8";
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Get the SDK release version
|
|
55
|
+
*
|
|
56
|
+
* @return string|null
|
|
57
|
+
*/
|
|
58
|
+
getReleaseVersion() {
|
|
59
|
+
const filename = __dirname + "/../../../package.json";
|
|
60
|
+
if (!fs.existsSync(filename)) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
const packageJson = JSON.parse(fs.readFileSync(filename).toString());
|
|
64
|
+
return packageJson.version || "";
|
|
65
|
+
}
|
|
66
|
+
getVersion() {
|
|
67
|
+
return Entities_1.Secure3dVersion.ANY;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Serializes and executes authorization transactions
|
|
71
|
+
*
|
|
72
|
+
* @param AuthorizationBuilder builder The transaction's builder
|
|
73
|
+
*
|
|
74
|
+
* @return Transaction
|
|
75
|
+
*/
|
|
76
|
+
async processAuthorization(builder) {
|
|
77
|
+
if (!this.accessToken) {
|
|
78
|
+
await this.signIn();
|
|
79
|
+
}
|
|
80
|
+
return this.executeProcess(builder).then((response) => src_1.GpApiMapping.mapResponse(response));
|
|
81
|
+
}
|
|
82
|
+
async signIn() {
|
|
83
|
+
let accessTokenInfo = this.gpApiConfig.accessTokenInfo;
|
|
84
|
+
if (accessTokenInfo && accessTokenInfo.accessToken) {
|
|
85
|
+
this.headers["Authorization"] = `Bearer ${accessTokenInfo.accessToken}`;
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
const response = await this.getAccessToken();
|
|
89
|
+
this.accessToken = response.getToken();
|
|
90
|
+
this.headers["Authorization"] = `Bearer ${this.accessToken}`;
|
|
91
|
+
if (!(accessTokenInfo instanceof Entities_1.AccessTokenInfo)) {
|
|
92
|
+
accessTokenInfo = new Entities_1.AccessTokenInfo();
|
|
93
|
+
}
|
|
94
|
+
accessTokenInfo.merchantId = response.merchantId;
|
|
95
|
+
if (!accessTokenInfo.accessToken) {
|
|
96
|
+
accessTokenInfo.accessToken = response.getToken();
|
|
97
|
+
}
|
|
98
|
+
if (!accessTokenInfo.dataAccountID) {
|
|
99
|
+
accessTokenInfo.dataAccountID = response.getDataAccountID();
|
|
100
|
+
}
|
|
101
|
+
if (!accessTokenInfo.tokenizationAccountID &&
|
|
102
|
+
!accessTokenInfo.tokenizationAccountName) {
|
|
103
|
+
accessTokenInfo.tokenizationAccountID =
|
|
104
|
+
response.getTokenizationAccountID();
|
|
105
|
+
}
|
|
106
|
+
if (!accessTokenInfo.transactionProcessingAccountID &&
|
|
107
|
+
!accessTokenInfo.transactionProcessingAccountName) {
|
|
108
|
+
accessTokenInfo.transactionProcessingAccountID =
|
|
109
|
+
response.getTransactionProcessingAccountID();
|
|
110
|
+
accessTokenInfo.transactionProcessingAccountName =
|
|
111
|
+
response.getTransactionProcessingAccountName();
|
|
112
|
+
}
|
|
113
|
+
if (!accessTokenInfo.disputeManagementAccountID &&
|
|
114
|
+
!accessTokenInfo.disputeManagementAccountName) {
|
|
115
|
+
accessTokenInfo.disputeManagementAccountID =
|
|
116
|
+
response.getDisputeManagementAccountID();
|
|
117
|
+
}
|
|
118
|
+
if (!accessTokenInfo.riskAssessmentAccountID &&
|
|
119
|
+
!accessTokenInfo.riskAssessmentAccountName) {
|
|
120
|
+
accessTokenInfo.riskAssessmentAccountID =
|
|
121
|
+
response.getRiskAssessmentAccountID();
|
|
122
|
+
}
|
|
123
|
+
if (!accessTokenInfo.merchantManagementAccountID &&
|
|
124
|
+
!accessTokenInfo.merchantManagementAccountName) {
|
|
125
|
+
accessTokenInfo.merchantManagementAccountID =
|
|
126
|
+
response.getMerchantManagementAccountID();
|
|
127
|
+
}
|
|
128
|
+
this.gpApiConfig.accessTokenInfo = accessTokenInfo;
|
|
129
|
+
}
|
|
130
|
+
async getAccessToken() {
|
|
131
|
+
this.accessToken = "";
|
|
132
|
+
const request = await src_1.GpApiSessionInfo.signIn(this.gpApiConfig.appId, this.gpApiConfig.appKey, this.gpApiConfig.secondsToExpire, this.gpApiConfig.intervalToExpire, this.gpApiConfig.permissions);
|
|
133
|
+
return super
|
|
134
|
+
.doTransaction(request.httpVerb, request.endpoint, request.requestBody)
|
|
135
|
+
.then((response) => new Entities_1.GpApiTokenResponse(response));
|
|
136
|
+
}
|
|
137
|
+
async manageTransaction(builder) {
|
|
138
|
+
if (!this.accessToken) {
|
|
139
|
+
await this.signIn();
|
|
140
|
+
}
|
|
141
|
+
return this.executeProcess(builder).then((response) => src_1.GpApiMapping.mapResponse(response));
|
|
142
|
+
}
|
|
143
|
+
async processReport(builder) {
|
|
144
|
+
if (!this.accessToken) {
|
|
145
|
+
await this.signIn();
|
|
146
|
+
}
|
|
147
|
+
return this.executeProcess(builder).then((response) => src_1.GpApiMapping.mapReportResponse(response, builder.reportType));
|
|
148
|
+
}
|
|
149
|
+
serializeRequest(builder) {
|
|
150
|
+
builder; // avoid lint error
|
|
151
|
+
throw new Entities_1.NotImplementedError();
|
|
152
|
+
}
|
|
153
|
+
async processPayFac(builder) {
|
|
154
|
+
builder; // avoid lint error
|
|
155
|
+
throw new Entities_1.NotImplementedError();
|
|
156
|
+
}
|
|
157
|
+
executeProcess(builder) {
|
|
158
|
+
const processFactory = new src_1.RequestBuilderFactory();
|
|
159
|
+
const requestBuilder = processFactory.getRequestBuilder(builder, this.gpApiConfig.gatewayProvider);
|
|
160
|
+
if (!requestBuilder) {
|
|
161
|
+
throw new Entities_1.ApiError("Request builder not found!");
|
|
162
|
+
}
|
|
163
|
+
/**.
|
|
164
|
+
* @var GpApiRequest request
|
|
165
|
+
*/
|
|
166
|
+
const request = requestBuilder.buildRequest(builder, this.gpApiConfig);
|
|
167
|
+
request.endpoint = this.getMerchantUrl(request) + request.endpoint;
|
|
168
|
+
if (!request) {
|
|
169
|
+
throw new Entities_1.ApiError("Request was not generated!");
|
|
170
|
+
}
|
|
171
|
+
const idempotencyKey = builder.idempotencyKey || null;
|
|
172
|
+
if (Entities_1.GpApiRequest.maskedValues) {
|
|
173
|
+
this.maskedRequestData = Entities_1.GpApiRequest.maskedValues;
|
|
174
|
+
}
|
|
175
|
+
return this.doTransaction(request.httpVerb, request.endpoint, request.requestBody, request.queryParams, idempotencyKey);
|
|
176
|
+
}
|
|
177
|
+
getMerchantUrl(request) {
|
|
178
|
+
return !this.gpApiConfig.merchantId &&
|
|
179
|
+
request.endpoint.indexOf(Entities_1.GpApiRequest.MERCHANT_MANAGEMENT_ENDPOINT) !== -1
|
|
180
|
+
? Entities_1.GpApiRequest.MERCHANT_MANAGEMENT_ENDPOINT +
|
|
181
|
+
"/" +
|
|
182
|
+
this.gpApiConfig.merchantId
|
|
183
|
+
: "";
|
|
184
|
+
}
|
|
185
|
+
async doTransaction(verb, endpoint, data, queryStringParams, idempotencyKey) {
|
|
186
|
+
if (!this.accessToken) {
|
|
187
|
+
await this.signIn();
|
|
188
|
+
}
|
|
189
|
+
if (idempotencyKey) {
|
|
190
|
+
this.headers[GpApiConnector.IDEMPOTENCY_HEADER] = idempotencyKey;
|
|
191
|
+
}
|
|
192
|
+
//weird bug where if you populate the contentType header on this endpoint it throws a 502 bad gateway error
|
|
193
|
+
//if you don't send it the error is even weirder, you just have to send it empty
|
|
194
|
+
if (endpoint.indexOf("settlement") !== -1 ||
|
|
195
|
+
(endpoint.indexOf("disputes") !== -1 &&
|
|
196
|
+
endpoint.indexOf("challenge") !== -1)) {
|
|
197
|
+
this.contentType = "";
|
|
198
|
+
}
|
|
199
|
+
let response;
|
|
200
|
+
try {
|
|
201
|
+
response = await super.doTransaction(verb, endpoint, data, queryStringParams);
|
|
202
|
+
}
|
|
203
|
+
catch (exception) {
|
|
204
|
+
if (exception.message.indexOf("NOT_AUTHENTICATED") !== -1 &&
|
|
205
|
+
this.gpApiConfig.appKey &&
|
|
206
|
+
this.gpApiConfig.appKey) {
|
|
207
|
+
this.accessToken = "";
|
|
208
|
+
await this.signIn();
|
|
209
|
+
return await super.doTransaction(verb, endpoint, data, queryStringParams);
|
|
210
|
+
}
|
|
211
|
+
throw exception;
|
|
212
|
+
}
|
|
213
|
+
finally {
|
|
214
|
+
delete this.headers[GpApiConnector.IDEMPOTENCY_HEADER];
|
|
215
|
+
}
|
|
216
|
+
return JSON.parse(response);
|
|
217
|
+
}
|
|
218
|
+
processPassThrough(jsonRequest) {
|
|
219
|
+
if (!this.accessToken) {
|
|
220
|
+
this.signIn();
|
|
221
|
+
}
|
|
222
|
+
const requestBuilder = new src_1.GpApiMiCRequestBuilder();
|
|
223
|
+
const request = requestBuilder.buildRequestFromJson(jsonRequest, this.gpApiConfig);
|
|
224
|
+
if (!request) {
|
|
225
|
+
throw new Entities_1.GatewayError("Request was not generated!");
|
|
226
|
+
}
|
|
227
|
+
request.endpoint = this.getMerchantUrl(request) + request.endpoint;
|
|
228
|
+
return this.doTransaction(request.httpVerb, request.endpoint, request.requestBody);
|
|
229
|
+
}
|
|
230
|
+
async processSecure3d(builder) {
|
|
231
|
+
if (!this.accessToken) {
|
|
232
|
+
await this.signIn();
|
|
233
|
+
}
|
|
234
|
+
const response = await this.executeProcess(builder);
|
|
235
|
+
return src_1.GpApiMapping.mapResponseSecure3D(response);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
exports.GpApiConnector = GpApiConnector;
|
|
239
|
+
//# sourceMappingURL=GpApiConnector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpApiConnector.js","sourceRoot":"","sources":["../../../src/Gateways/GpApiConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAGzB,+CAA4C;AAC5C,iDAU4B;AAC5B,mCAYmB;AAGnB,MAAa,cACX,SAAQ,yBAAW;IAGZ,MAAM,CAAC,cAAc,GAAW,YAAY,CAAC;IAE7C,MAAM,CAAC,kBAAkB,GAAW,kBAAkB,CAAC;IAEtD,WAAW,CAAc;IAEzB,WAAW,CAAS;IAEpB,gCAAgC,GAAY,IAAI,CAAC;IAElD,sBAAsB,GAAY,IAAI,CAAC;IAEvC,mBAAmB;QACxB,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,mCAAmC;QACxC,OAAO,IAAI,CAAC,gCAAgC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AAC;SACrB;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;QAEpD,OAAO,kBAAY,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IACpD,CAAC;;AA9TH,wCA+TC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Element } from "@azz/elementtree";
|
|
2
|
+
import { AuthorizationBuilder, Customer, HostedPaymentConfig, IPaymentGateway, IRecurringEntity, IRecurringService, ManagementBuilder, RecurringBuilder, Transaction, TransactionType } from "..";
|
|
3
|
+
import { XmlGateway } from "./XmlGateway";
|
|
4
|
+
import { GpEcomConfig } from "src/ServiceConfigs/Gateways/GpEcomConfig";
|
|
5
|
+
export declare class GpEcomConnector extends XmlGateway implements IPaymentGateway, IRecurringService {
|
|
6
|
+
merchantId: string;
|
|
7
|
+
accountId: string;
|
|
8
|
+
sharedSecret: string;
|
|
9
|
+
channel: string;
|
|
10
|
+
rebatePassword: string;
|
|
11
|
+
refundPassword: string;
|
|
12
|
+
supportsHostedPayments: boolean;
|
|
13
|
+
supportsRetrieval: boolean;
|
|
14
|
+
supportsUpdatePaymentDetails: boolean;
|
|
15
|
+
hostedPaymentConfig: HostedPaymentConfig;
|
|
16
|
+
config: GpEcomConfig;
|
|
17
|
+
constructor(config: GpEcomConfig);
|
|
18
|
+
processAuthorization(builder: AuthorizationBuilder): Promise<Transaction>;
|
|
19
|
+
manageTransaction(builder: ManagementBuilder): Promise<Transaction>;
|
|
20
|
+
private executeProcess;
|
|
21
|
+
serializeRequest(builder: AuthorizationBuilder): string;
|
|
22
|
+
oldManageTransaction(builder: ManagementBuilder): Promise<Transaction>;
|
|
23
|
+
processReport<T>(): Promise<T>;
|
|
24
|
+
processRecurring<T extends IRecurringEntity>(builder: RecurringBuilder<T>): Promise<T>;
|
|
25
|
+
protected buildEnvelope(transaction: Element): string;
|
|
26
|
+
protected buildCustomer<T extends IRecurringEntity>(customer: Customer, builder: RecurringBuilder<T>): Element;
|
|
27
|
+
protected mapResponse(rawResponse: string): Transaction;
|
|
28
|
+
protected mapRecurringResponse<T extends IRecurringEntity>(rawResponse: string, builder: RecurringBuilder<T>): T;
|
|
29
|
+
protected checkResponse(root: Element, acceptedCodes?: string[]): void;
|
|
30
|
+
protected generateHash(timestamp: string, orderId: string, amount: string, currency: string, paymentData: string, verify?: boolean): string;
|
|
31
|
+
protected mapAuthRequestType(builder: AuthorizationBuilder): string;
|
|
32
|
+
protected mapManageRequestType(type: TransactionType): string;
|
|
33
|
+
protected mapRecurringRequestType<T extends IRecurringEntity>(builder: RecurringBuilder<T>): "payer-new" | "card-new" | "schedule-new" | "payer-edit" | "card-update-card" | "card-cancel-card" | "schedule-get" | "schedule-search";
|
|
34
|
+
protected numberFormat(amount: number | string): string;
|
|
35
|
+
private mapAcceptedCodes;
|
|
36
|
+
}
|