globalpayments-api 3.4.0 → 3.5.1-fix
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 +7 -1
- package/package.json +1 -4
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -340
- package/lib/src/Builders/AuthorizationBuilder.js +0 -645
- package/lib/src/Builders/AuthorizationBuilder.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -92
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -36
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder/Validations.js +0 -55
- package/lib/src/Builders/BaseBuilder/Validations.js.map +0 -1
- package/lib/src/Builders/BaseBuilder.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder.js +0 -17
- package/lib/src/Builders/BaseBuilder.js.map +0 -1
- package/lib/src/Builders/ManagementBuilder.d.ts +0 -118
- package/lib/src/Builders/ManagementBuilder.js +0 -229
- package/lib/src/Builders/ManagementBuilder.js.map +0 -1
- package/lib/src/Builders/PayFacBuilder.d.ts +0 -97
- package/lib/src/Builders/PayFacBuilder.js +0 -233
- package/lib/src/Builders/PayFacBuilder.js.map +0 -1
- package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
- package/lib/src/Builders/RecurringBuilder.js +0 -34
- package/lib/src/Builders/RecurringBuilder.js.map +0 -1
- package/lib/src/Builders/ReportBuilder.d.ts +0 -10
- package/lib/src/Builders/ReportBuilder.js +0 -27
- package/lib/src/Builders/ReportBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.d.ts +0 -11
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js +0 -23
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +0 -34
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +0 -409
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +0 -7
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +0 -71
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.d.ts +0 -16
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js +0 -34
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +0 -10
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +0 -89
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +0 -6
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +0 -49
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/index.d.ts +0 -4
- package/lib/src/Builders/RequestBuilder/GpApi/index.js +0 -21
- package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +0 -18
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +0 -125
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.d.ts +0 -11
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js +0 -83
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +0 -9
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +0 -66
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +0 -3
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +0 -20
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +0 -8
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +0 -39
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/index.d.ts +0 -3
- package/lib/src/Builders/RequestBuilder/index.js +0 -20
- package/lib/src/Builders/RequestBuilder/index.js.map +0 -1
- package/lib/src/Builders/TransactionBuilder.d.ts +0 -12
- package/lib/src/Builders/TransactionBuilder.js +0 -43
- package/lib/src/Builders/TransactionBuilder.js.map +0 -1
- package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -19
- package/lib/src/Builders/TransactionReportBuilder.js +0 -87
- package/lib/src/Builders/TransactionReportBuilder.js.map +0 -1
- package/lib/src/Builders/index.d.ts +0 -8
- package/lib/src/Builders/index.js +0 -25
- package/lib/src/Builders/index.js.map +0 -1
- package/lib/src/ConfiguredServices.d.ts +0 -24
- package/lib/src/ConfiguredServices.js +0 -33
- package/lib/src/ConfiguredServices.js.map +0 -1
- package/lib/src/Entities/Address.d.ts +0 -14
- package/lib/src/Entities/Address.js +0 -23
- package/lib/src/Entities/Address.js.map +0 -1
- package/lib/src/Entities/BatchSummary.d.ts +0 -6
- package/lib/src/Entities/BatchSummary.js +0 -11
- package/lib/src/Entities/BatchSummary.js.map +0 -1
- package/lib/src/Entities/Card.d.ts +0 -36
- package/lib/src/Entities/Card.js +0 -41
- package/lib/src/Entities/Card.js.map +0 -1
- package/lib/src/Entities/CardIssuerResponse.d.ts +0 -22
- package/lib/src/Entities/CardIssuerResponse.js +0 -27
- package/lib/src/Entities/CardIssuerResponse.js.map +0 -1
- package/lib/src/Entities/Customer.d.ts +0 -74
- package/lib/src/Entities/Customer.js +0 -94
- package/lib/src/Entities/Customer.js.map +0 -1
- package/lib/src/Entities/CustomerDocument.d.ts +0 -8
- package/lib/src/Entities/CustomerDocument.js +0 -16
- package/lib/src/Entities/CustomerDocument.js.map +0 -1
- package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
- package/lib/src/Entities/DocumentUploadData.js +0 -81
- package/lib/src/Entities/DocumentUploadData.js.map +0 -1
- package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
- package/lib/src/Entities/EcommerceInfo.js +0 -22
- package/lib/src/Entities/EcommerceInfo.js.map +0 -1
- package/lib/src/Entities/EncryptionData.d.ts +0 -6
- package/lib/src/Entities/EncryptionData.js +0 -11
- package/lib/src/Entities/EncryptionData.js.map +0 -1
- package/lib/src/Entities/Enums/AcquisitionType.d.ts +0 -10
- package/lib/src/Entities/Enums/AcquisitionType.js +0 -15
- package/lib/src/Entities/Enums/AcquisitionType.js.map +0 -1
- package/lib/src/Entities/Enums/CardTypeFilter.d.ts +0 -7
- package/lib/src/Entities/Enums/CardTypeFilter.js +0 -12
- package/lib/src/Entities/Enums/CardTypeFilter.js.map +0 -1
- package/lib/src/Entities/Enums.d.ts +0 -587
- package/lib/src/Entities/Enums.js +0 -769
- package/lib/src/Entities/Enums.js.map +0 -1
- package/lib/src/Entities/Errors.d.ts +0 -23
- package/lib/src/Entities/Errors.js +0 -72
- package/lib/src/Entities/Errors.js.map +0 -1
- package/lib/src/Entities/FraudRule.d.ts +0 -8
- package/lib/src/Entities/FraudRule.js +0 -17
- package/lib/src/Entities/FraudRule.js.map +0 -1
- package/lib/src/Entities/GpApi/AccessTokenInfo.d.ts +0 -16
- package/lib/src/Entities/GpApi/AccessTokenInfo.js +0 -21
- package/lib/src/Entities/GpApi/AccessTokenInfo.js.map +0 -1
- package/lib/src/Entities/GpApi/DTO/Card.d.ts +0 -16
- package/lib/src/Entities/GpApi/DTO/Card.js +0 -21
- package/lib/src/Entities/GpApi/DTO/Card.js.map +0 -1
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.d.ts +0 -17
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js +0 -21
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js.map +0 -1
- package/lib/src/Entities/GpApi/DTO/index.d.ts +0 -2
- package/lib/src/Entities/GpApi/DTO/index.js +0 -19
- package/lib/src/Entities/GpApi/DTO/index.js.map +0 -1
- package/lib/src/Entities/GpApi/GpApiAccount.d.ts +0 -5
- package/lib/src/Entities/GpApi/GpApiAccount.js +0 -13
- package/lib/src/Entities/GpApi/GpApiAccount.js.map +0 -1
- package/lib/src/Entities/GpApi/GpApiRequest.d.ts +0 -21
- package/lib/src/Entities/GpApi/GpApiRequest.js +0 -26
- package/lib/src/Entities/GpApi/GpApiRequest.js.map +0 -1
- package/lib/src/Entities/GpApi/GpApiTokenResponse.d.ts +0 -52
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js +0 -115
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js.map +0 -1
- package/lib/src/Entities/GpApi/PageResult.d.ts +0 -8
- package/lib/src/Entities/GpApi/PageResult.js +0 -13
- package/lib/src/Entities/GpApi/PageResult.js.map +0 -1
- package/lib/src/Entities/GpApi/index.d.ts +0 -5
- package/lib/src/Entities/GpApi/index.js +0 -22
- package/lib/src/Entities/GpApi/index.js.map +0 -1
- package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
- package/lib/src/Entities/HostedPaymentData.js +0 -17
- package/lib/src/Entities/HostedPaymentData.js.map +0 -1
- package/lib/src/Entities/IRequestBuilder.d.ts +0 -6
- package/lib/src/Entities/IRequestBuilder.js +0 -3
- package/lib/src/Entities/IRequestBuilder.js.map +0 -1
- package/lib/src/Entities/IRequestLogger.d.ts +0 -8
- package/lib/src/Entities/IRequestLogger.js +0 -3
- package/lib/src/Entities/IRequestLogger.js.map +0 -1
- package/lib/src/Entities/MaskedValueCollection.d.ts +0 -12
- package/lib/src/Entities/MaskedValueCollection.js +0 -53
- package/lib/src/Entities/MaskedValueCollection.js.map +0 -1
- package/lib/src/Entities/PayerDetails.d.ts +0 -8
- package/lib/src/Entities/PayerDetails.js +0 -12
- package/lib/src/Entities/PayerDetails.js.map +0 -1
- package/lib/src/Entities/PhoneNumber.d.ts +0 -6
- package/lib/src/Entities/PhoneNumber.js +0 -15
- package/lib/src/Entities/PhoneNumber.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -12
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
- package/lib/src/Entities/ProFac/AccountPermissions.js +0 -19
- package/lib/src/Entities/ProFac/AccountPermissions.js.map +0 -1
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/BankAccountData.js +0 -42
- package/lib/src/Entities/ProFac/BankAccountData.js.map +0 -1
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -15
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +0 -1
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -12
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +0 -1
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -10
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +0 -1
- package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -15
- package/lib/src/Entities/ProFac/BusinessData.js +0 -50
- package/lib/src/Entities/ProFac/BusinessData.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -17
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
- package/lib/src/Entities/ProFac/DeviceData.js +0 -11
- package/lib/src/Entities/ProFac/DeviceData.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
- package/lib/src/Entities/ProFac/DeviceInfo.js +0 -19
- package/lib/src/Entities/ProFac/DeviceInfo.js.map +0 -1
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -15
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +0 -1
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -10
- package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +0 -1
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
- package/lib/src/Entities/ProFac/OrderDevice.js +0 -23
- package/lib/src/Entities/ProFac/OrderDevice.js.map +0 -1
- package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
- package/lib/src/Entities/ProFac/OwnersData.js +0 -43
- package/lib/src/Entities/ProFac/OwnersData.js.map +0 -1
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
- package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -62
- package/lib/src/Entities/ProFac/PayFacResponseData.js.map +0 -1
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/RenewAccountData.js +0 -38
- package/lib/src/Entities/ProFac/RenewAccountData.js.map +0 -1
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -27
- package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +0 -1
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
- package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -19
- package/lib/src/Entities/ProFac/ThreatRiskData.js.map +0 -1
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
- package/lib/src/Entities/ProFac/UserPersonalData.js +0 -82
- package/lib/src/Entities/ProFac/UserPersonalData.js.map +0 -1
- package/lib/src/Entities/RecurringEntity.d.ts +0 -14
- package/lib/src/Entities/RecurringEntity.js +0 -92
- package/lib/src/Entities/RecurringEntity.js.map +0 -1
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +0 -105
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +0 -122
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +0 -1
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.d.ts +0 -11
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js +0 -16
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js.map +0 -1
- package/lib/src/Entities/Reporting/index.d.ts +0 -2
- package/lib/src/Entities/Reporting/index.js +0 -19
- package/lib/src/Entities/Reporting/index.js.map +0 -1
- package/lib/src/Entities/Request.d.ts +0 -10
- package/lib/src/Entities/Request.js +0 -18
- package/lib/src/Entities/Request.js.map +0 -1
- package/lib/src/Entities/SSORequestData.d.ts +0 -5
- package/lib/src/Entities/SSORequestData.js +0 -19
- package/lib/src/Entities/SSORequestData.js.map +0 -1
- package/lib/src/Entities/Schedule.d.ts +0 -47
- package/lib/src/Entities/Schedule.js +0 -325
- package/lib/src/Entities/Schedule.js.map +0 -1
- package/lib/src/Entities/ServiceEndpoints.d.ts +0 -12
- package/lib/src/Entities/ServiceEndpoints.js +0 -17
- package/lib/src/Entities/ServiceEndpoints.js.map +0 -1
- package/lib/src/Entities/Transaction.d.ts +0 -84
- package/lib/src/Entities/Transaction.js +0 -133
- package/lib/src/Entities/Transaction.js.map +0 -1
- package/lib/src/Entities/TransactionStatus.d.ts +0 -13
- package/lib/src/Entities/TransactionStatus.js +0 -29
- package/lib/src/Entities/TransactionStatus.js.map +0 -1
- package/lib/src/Entities/TransactionSummary.d.ts +0 -61
- package/lib/src/Entities/TransactionSummary.js +0 -66
- package/lib/src/Entities/TransactionSummary.js.map +0 -1
- package/lib/src/Entities/UPA/ProcessIndicator.d.ts +0 -7
- package/lib/src/Entities/UPA/ProcessIndicator.js +0 -11
- package/lib/src/Entities/UPA/ProcessIndicator.js.map +0 -1
- package/lib/src/Entities/UPA/UpaParam.d.ts +0 -10
- package/lib/src/Entities/UPA/UpaParam.js +0 -14
- package/lib/src/Entities/UPA/UpaParam.js.map +0 -1
- package/lib/src/Entities/UPA/UpaTransactionData.d.ts +0 -8
- package/lib/src/Entities/UPA/UpaTransactionData.js +0 -12
- package/lib/src/Entities/UPA/UpaTransactionData.js.map +0 -1
- package/lib/src/Entities/UPA/index.d.ts +0 -3
- package/lib/src/Entities/UPA/index.js +0 -20
- package/lib/src/Entities/UPA/index.js.map +0 -1
- package/lib/src/Entities/index.d.ts +0 -27
- package/lib/src/Entities/index.js +0 -44
- package/lib/src/Entities/index.js.map +0 -1
- package/lib/src/Gateways/Gateway.d.ts +0 -16
- package/lib/src/Gateways/Gateway.js +0 -94
- package/lib/src/Gateways/Gateway.js.map +0 -1
- package/lib/src/Gateways/GatewayResponse.d.ts +0 -8
- package/lib/src/Gateways/GatewayResponse.js +0 -15
- package/lib/src/Gateways/GatewayResponse.js.map +0 -1
- package/lib/src/Gateways/GpApiConnector.d.ts +0 -42
- package/lib/src/Gateways/GpApiConnector.js +0 -232
- package/lib/src/Gateways/GpApiConnector.js.map +0 -1
- package/lib/src/Gateways/GpEcomConnector.d.ts +0 -36
- package/lib/src/Gateways/GpEcomConnector.js +0 -468
- package/lib/src/Gateways/GpEcomConnector.js.map +0 -1
- package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
- package/lib/src/Gateways/IPayFacProvider.js +0 -3
- package/lib/src/Gateways/IPayFacProvider.js.map +0 -1
- package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
- package/lib/src/Gateways/IPaymentGateway.js +0 -3
- package/lib/src/Gateways/IPaymentGateway.js.map +0 -1
- package/lib/src/Gateways/IRecurringService.d.ts +0 -6
- package/lib/src/Gateways/IRecurringService.js +0 -3
- package/lib/src/Gateways/IRecurringService.js.map +0 -1
- package/lib/src/Gateways/PayPlanConnector.d.ts +0 -42
- package/lib/src/Gateways/PayPlanConnector.js +0 -545
- package/lib/src/Gateways/PayPlanConnector.js.map +0 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +0 -48
- package/lib/src/Gateways/PorticoConnector.js +0 -1013
- package/lib/src/Gateways/PorticoConnector.js.map +0 -1
- package/lib/src/Gateways/ProPayConnector.d.ts +0 -45
- package/lib/src/Gateways/ProPayConnector.js +0 -801
- package/lib/src/Gateways/ProPayConnector.js.map +0 -1
- package/lib/src/Gateways/RestGateway.d.ts +0 -9
- package/lib/src/Gateways/RestGateway.js +0 -77
- package/lib/src/Gateways/RestGateway.js.map +0 -1
- package/lib/src/Gateways/XmlGateway.d.ts +0 -6
- package/lib/src/Gateways/XmlGateway.js +0 -54
- package/lib/src/Gateways/XmlGateway.js.map +0 -1
- package/lib/src/Gateways/https-wrapper.d.ts +0 -3
- package/lib/src/Gateways/https-wrapper.js +0 -81
- package/lib/src/Gateways/https-wrapper.js.map +0 -1
- package/lib/src/Gateways/index.d.ts +0 -9
- package/lib/src/Gateways/index.js +0 -26
- package/lib/src/Gateways/index.js.map +0 -1
- package/lib/src/HostedPaymentConfig.d.ts +0 -12
- package/lib/src/HostedPaymentConfig.js +0 -16
- package/lib/src/HostedPaymentConfig.js.map +0 -1
- package/lib/src/Mapping/EnumMapping.d.ts +0 -8
- package/lib/src/Mapping/EnumMapping.js +0 -84
- package/lib/src/Mapping/EnumMapping.js.map +0 -1
- package/lib/src/Mapping/GpApiMapping.d.ts +0 -11
- package/lib/src/Mapping/GpApiMapping.js +0 -190
- package/lib/src/Mapping/GpApiMapping.js.map +0 -1
- package/lib/src/Mapping/GpEcomMapping.d.ts +0 -9
- package/lib/src/Mapping/GpEcomMapping.js +0 -85
- package/lib/src/Mapping/GpEcomMapping.js.map +0 -1
- package/lib/src/Mapping/index.d.ts +0 -3
- package/lib/src/Mapping/index.js +0 -20
- package/lib/src/Mapping/index.js.map +0 -1
- package/lib/src/PaymentMethods/AlternativePaymentMethod.d.ts +0 -22
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js +0 -47
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/Cash.d.ts +0 -8
- package/lib/src/PaymentMethods/Cash.js +0 -16
- package/lib/src/PaymentMethods/Cash.js.map +0 -1
- package/lib/src/PaymentMethods/Credit.d.ts +0 -109
- package/lib/src/PaymentMethods/Credit.js +0 -161
- package/lib/src/PaymentMethods/Credit.js.map +0 -1
- package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
- package/lib/src/PaymentMethods/CreditCardData.js +0 -47
- package/lib/src/PaymentMethods/CreditCardData.js.map +0 -1
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/CreditTrackData.js +0 -10
- package/lib/src/PaymentMethods/CreditTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/Debit.d.ts +0 -40
- package/lib/src/PaymentMethods/Debit.js +0 -52
- package/lib/src/PaymentMethods/Debit.js.map +0 -1
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/DebitTrackData.js +0 -10
- package/lib/src/PaymentMethods/DebitTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/EBT.d.ts +0 -48
- package/lib/src/PaymentMethods/EBT.js +0 -68
- package/lib/src/PaymentMethods/EBT.js.map +0 -1
- package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
- package/lib/src/PaymentMethods/EBTCardData.js +0 -25
- package/lib/src/PaymentMethods/EBTCardData.js.map +0 -1
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
- package/lib/src/PaymentMethods/EBTTrackData.js +0 -11
- package/lib/src/PaymentMethods/EBTTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
- package/lib/src/PaymentMethods/ECheck.js +0 -38
- package/lib/src/PaymentMethods/ECheck.js.map +0 -1
- package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
- package/lib/src/PaymentMethods/GiftCard.js +0 -189
- package/lib/src/PaymentMethods/GiftCard.js.map +0 -1
- package/lib/src/PaymentMethods/Interfaces.d.ts +0 -59
- package/lib/src/PaymentMethods/Interfaces.js +0 -3
- package/lib/src/PaymentMethods/Interfaces.js.map +0 -1
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
- package/lib/src/PaymentMethods/PaymentMethod.js +0 -57
- package/lib/src/PaymentMethods/PaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -25
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -69
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
- package/lib/src/PaymentMethods/TransactionReference.js +0 -17
- package/lib/src/PaymentMethods/TransactionReference.js.map +0 -1
- package/lib/src/PaymentMethods/index.d.ts +0 -17
- package/lib/src/PaymentMethods/index.js +0 -34
- package/lib/src/PaymentMethods/index.js.map +0 -1
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +0 -29
- package/lib/src/ServiceConfigs/AcceptorConfig.js +0 -43
- package/lib/src/ServiceConfigs/AcceptorConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Configuration.d.ts +0 -15
- package/lib/src/ServiceConfigs/Configuration.js +0 -20
- package/lib/src/ServiceConfigs/Configuration.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +0 -14
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +0 -30
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +0 -21
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +0 -45
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +0 -21
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +0 -51
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.d.ts +0 -22
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js +0 -117
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +0 -4
- package/lib/src/ServiceConfigs/Gateways/index.js +0 -21
- package/lib/src/ServiceConfigs/Gateways/index.js.map +0 -1
- package/lib/src/ServiceConfigs/ServicesConfigs.d.ts +0 -8
- package/lib/src/ServiceConfigs/ServicesConfigs.js +0 -15
- package/lib/src/ServiceConfigs/ServicesConfigs.js.map +0 -1
- package/lib/src/ServiceConfigs/index.d.ts +0 -4
- package/lib/src/ServiceConfigs/index.js +0 -21
- package/lib/src/ServiceConfigs/index.js.map +0 -1
- package/lib/src/Services/BatchService.d.ts +0 -4
- package/lib/src/Services/BatchService.js +0 -15
- package/lib/src/Services/BatchService.js.map +0 -1
- package/lib/src/Services/CheckService.d.ts +0 -7
- package/lib/src/Services/CheckService.js +0 -20
- package/lib/src/Services/CheckService.js.map +0 -1
- package/lib/src/Services/CreditService.d.ts +0 -13
- package/lib/src/Services/CreditService.js +0 -54
- package/lib/src/Services/CreditService.js.map +0 -1
- package/lib/src/Services/DebitService.d.ts +0 -8
- package/lib/src/Services/DebitService.js +0 -28
- package/lib/src/Services/DebitService.js.map +0 -1
- package/lib/src/Services/DeviceService.d.ts +0 -5
- package/lib/src/Services/DeviceService.js +0 -19
- package/lib/src/Services/DeviceService.js.map +0 -1
- package/lib/src/Services/EBTService.d.ts +0 -9
- package/lib/src/Services/EBTService.js +0 -31
- package/lib/src/Services/EBTService.js.map +0 -1
- package/lib/src/Services/GiftService.d.ts +0 -17
- package/lib/src/Services/GiftService.js +0 -54
- package/lib/src/Services/GiftService.js.map +0 -1
- package/lib/src/Services/GpApiServices.d.ts +0 -4
- package/lib/src/Services/GpApiServices.js +0 -44
- package/lib/src/Services/GpApiServices.js.map +0 -1
- package/lib/src/Services/HostedService.d.ts +0 -10
- package/lib/src/Services/HostedService.js +0 -59
- package/lib/src/Services/HostedService.js.map +0 -1
- package/lib/src/Services/PayFacService.d.ts +0 -26
- package/lib/src/Services/PayFacService.js +0 -76
- package/lib/src/Services/PayFacService.js.map +0 -1
- package/lib/src/Services/RecurringService.d.ts +0 -8
- package/lib/src/Services/RecurringService.js +0 -24
- package/lib/src/Services/RecurringService.js.map +0 -1
- package/lib/src/Services/ReportingService.d.ts +0 -8
- package/lib/src/Services/ReportingService.js +0 -24
- package/lib/src/Services/ReportingService.js.map +0 -1
- package/lib/src/Services/index.d.ts +0 -10
- package/lib/src/Services/index.js +0 -27
- package/lib/src/Services/index.js.map +0 -1
- package/lib/src/ServicesContainer.d.ts +0 -19
- package/lib/src/ServicesContainer.js +0 -64
- package/lib/src/ServicesContainer.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.d.ts +0 -6
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceInterface.d.ts +0 -13
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceMessage.d.ts +0 -4
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceResponse.d.ts +0 -52
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.d.ts +0 -3
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js +0 -3
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.d.ts +0 -3
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js +0 -3
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js.map +0 -1
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.d.ts +0 -16
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js +0 -3
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js.map +0 -1
- package/lib/src/Terminals/Abstractions/index.d.ts +0 -7
- package/lib/src/Terminals/Abstractions/index.js +0 -24
- package/lib/src/Terminals/Abstractions/index.js.map +0 -1
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.d.ts +0 -65
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js +0 -172
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js.map +0 -1
- package/lib/src/Terminals/Builders/TerminalBuilder.d.ts +0 -12
- package/lib/src/Terminals/Builders/TerminalBuilder.js +0 -32
- package/lib/src/Terminals/Builders/TerminalBuilder.js.map +0 -1
- package/lib/src/Terminals/Builders/TerminalManageBuilder.d.ts +0 -30
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js +0 -95
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js.map +0 -1
- package/lib/src/Terminals/Builders/index.d.ts +0 -2
- package/lib/src/Terminals/Builders/index.js +0 -19
- package/lib/src/Terminals/Builders/index.js.map +0 -1
- package/lib/src/Terminals/ConnectionConfig.d.ts +0 -20
- package/lib/src/Terminals/ConnectionConfig.js +0 -49
- package/lib/src/Terminals/ConnectionConfig.js.map +0 -1
- package/lib/src/Terminals/DeviceController.d.ts +0 -23
- package/lib/src/Terminals/DeviceController.js +0 -42
- package/lib/src/Terminals/DeviceController.js.map +0 -1
- package/lib/src/Terminals/DeviceInterface.d.ts +0 -21
- package/lib/src/Terminals/DeviceInterface.js +0 -50
- package/lib/src/Terminals/DeviceInterface.js.map +0 -1
- package/lib/src/Terminals/DeviceMessage.d.ts +0 -15
- package/lib/src/Terminals/DeviceMessage.js +0 -42
- package/lib/src/Terminals/DeviceMessage.js.map +0 -1
- package/lib/src/Terminals/DeviceResponse.d.ts +0 -10
- package/lib/src/Terminals/DeviceResponse.js +0 -16
- package/lib/src/Terminals/DeviceResponse.js.map +0 -1
- package/lib/src/Terminals/Enums/ControlCodes.d.ts +0 -5
- package/lib/src/Terminals/Enums/ControlCodes.js +0 -10
- package/lib/src/Terminals/Enums/ControlCodes.js.map +0 -1
- package/lib/src/Terminals/Enums/index.d.ts +0 -1
- package/lib/src/Terminals/Enums/index.js +0 -18
- package/lib/src/Terminals/Enums/index.js.map +0 -1
- package/lib/src/Terminals/Enums.d.ts +0 -12
- package/lib/src/Terminals/Enums.js +0 -18
- package/lib/src/Terminals/Enums.js.map +0 -1
- package/lib/src/Terminals/SummaryResponse.d.ts +0 -28
- package/lib/src/Terminals/SummaryResponse.js +0 -33
- package/lib/src/Terminals/SummaryResponse.js.map +0 -1
- package/lib/src/Terminals/TerminalResponse.d.ts +0 -42
- package/lib/src/Terminals/TerminalResponse.js +0 -49
- package/lib/src/Terminals/TerminalResponse.js.map +0 -1
- package/lib/src/Terminals/TerminalUtils.d.ts +0 -4
- package/lib/src/Terminals/TerminalUtils.js +0 -24
- package/lib/src/Terminals/TerminalUtils.js.map +0 -1
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.d.ts +0 -20
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js +0 -25
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js.map +0 -1
- package/lib/src/Terminals/UPA/Entities/index.d.ts +0 -1
- package/lib/src/Terminals/UPA/Entities/index.js +0 -18
- package/lib/src/Terminals/UPA/Entities/index.js.map +0 -1
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.d.ts +0 -12
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js +0 -76
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js.map +0 -1
- package/lib/src/Terminals/UPA/Interfaces/index.d.ts +0 -1
- package/lib/src/Terminals/UPA/Interfaces/index.js +0 -18
- package/lib/src/Terminals/UPA/Interfaces/index.js.map +0 -1
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.d.ts +0 -53
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js +0 -70
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js.map +0 -1
- package/lib/src/Terminals/UPA/Reponses/index.d.ts +0 -1
- package/lib/src/Terminals/UPA/Reponses/index.js +0 -18
- package/lib/src/Terminals/UPA/Reponses/index.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/BaseRequest.d.ts +0 -7
- package/lib/src/Terminals/UPA/Request/BaseRequest.js +0 -11
- package/lib/src/Terminals/UPA/Request/BaseRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/GroupRequest.d.ts +0 -5
- package/lib/src/Terminals/UPA/Request/GroupRequest.js +0 -9
- package/lib/src/Terminals/UPA/Request/GroupRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/RequestParams.d.ts +0 -9
- package/lib/src/Terminals/UPA/Request/RequestParams.js +0 -14
- package/lib/src/Terminals/UPA/Request/RequestParams.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/RootRequest.d.ts +0 -5
- package/lib/src/Terminals/UPA/Request/RootRequest.js +0 -9
- package/lib/src/Terminals/UPA/Request/RootRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/TransactionRequest.d.ts +0 -10
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js +0 -15
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/index.d.ts +0 -5
- package/lib/src/Terminals/UPA/Request/index.js +0 -22
- package/lib/src/Terminals/UPA/Request/index.js.map +0 -1
- package/lib/src/Terminals/UPA/UpaController.d.ts +0 -16
- package/lib/src/Terminals/UPA/UpaController.js +0 -213
- package/lib/src/Terminals/UPA/UpaController.js.map +0 -1
- package/lib/src/Terminals/UPA/UpaInterface.d.ts +0 -10
- package/lib/src/Terminals/UPA/UpaInterface.js +0 -44
- package/lib/src/Terminals/UPA/UpaInterface.js.map +0 -1
- package/lib/src/Terminals/UPA/UpaMessageType.d.ts +0 -8
- package/lib/src/Terminals/UPA/UpaMessageType.js +0 -13
- package/lib/src/Terminals/UPA/UpaMessageType.js.map +0 -1
- package/lib/src/Terminals/UPA/index.d.ts +0 -7
- package/lib/src/Terminals/UPA/index.js +0 -24
- package/lib/src/Terminals/UPA/index.js.map +0 -1
- package/lib/src/Terminals/index.d.ts +0 -8
- package/lib/src/Terminals/index.js +0 -25
- package/lib/src/Terminals/index.js.map +0 -1
- package/lib/src/Utils/GenerationUtils.d.ts +0 -6
- package/lib/src/Utils/GenerationUtils.js +0 -79
- package/lib/src/Utils/GenerationUtils.js.map +0 -1
- package/lib/src/Utils/IRawRequestBuilder.d.ts +0 -3
- package/lib/src/Utils/IRawRequestBuilder.js +0 -3
- package/lib/src/Utils/IRawRequestBuilder.js.map +0 -1
- package/lib/src/Utils/InputValidation.d.ts +0 -12
- package/lib/src/Utils/InputValidation.js +0 -71
- package/lib/src/Utils/InputValidation.js.map +0 -1
- package/lib/src/Utils/Logging/Logger.d.ts +0 -32
- package/lib/src/Utils/Logging/Logger.js +0 -209
- package/lib/src/Utils/Logging/Logger.js.map +0 -1
- package/lib/src/Utils/Logging/ProtectSensitiveData.d.ts +0 -11
- package/lib/src/Utils/Logging/ProtectSensitiveData.js +0 -23
- package/lib/src/Utils/Logging/ProtectSensitiveData.js.map +0 -1
- package/lib/src/Utils/Logging/SampleRequestLogger.d.ts +0 -12
- package/lib/src/Utils/Logging/SampleRequestLogger.js +0 -38
- package/lib/src/Utils/Logging/SampleRequestLogger.js.map +0 -1
- package/lib/src/Utils/Logging/index.d.ts +0 -3
- package/lib/src/Utils/Logging/index.js +0 -20
- package/lib/src/Utils/Logging/index.js.map +0 -1
- package/lib/src/Utils/Sha1.d.ts +0 -6
- package/lib/src/Utils/Sha1.js +0 -231
- package/lib/src/Utils/Sha1.js.map +0 -1
- package/lib/src/Utils/StringUtils.d.ts +0 -15
- package/lib/src/Utils/StringUtils.js +0 -80
- package/lib/src/Utils/StringUtils.js.map +0 -1
- package/lib/src/Utils/index.d.ts +0 -4
- package/lib/src/Utils/index.js +0 -21
- package/lib/src/Utils/index.js.map +0 -1
- package/lib/src/index.d.ts +0 -13
- package/lib/src/index.js +0 -34
- package/lib/src/index.js.map +0 -1
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +0 -14
- package/lib/test/Data/BaseGpApiTestConfig.js +0 -50
- package/lib/test/Data/BaseGpApiTestConfig.js.map +0 -1
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -220
- package/lib/test/Data/TestCards.js.map +0 -1
- package/lib/test/Data/TestChecks.d.ts +0 -4
- package/lib/test/Data/TestChecks.js +0 -27
- package/lib/test/Data/TestChecks.js.map +0 -1
- package/lib/test/Data/index.d.ts +0 -2
- package/lib/test/Data/index.js +0 -19
- package/lib/test/Data/index.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -360
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -82
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -111
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -393
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -34
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -322
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -28
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +0 -4
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +0 -10
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +0 -1
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
- package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
- package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
- package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
- package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
|
@@ -1,232 +0,0 @@
|
|
|
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
|
-
}
|
|
231
|
-
exports.GpApiConnector = GpApiConnector;
|
|
232
|
-
//# sourceMappingURL=GpApiConnector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GpApiConnector.js","sourceRoot":"","sources":["../../../src/Gateways/GpApiConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAyB;AAGzB,+CAA4C;AAC5C,iDAU4B;AAC5B,mCAWmB;AAGnB,MAAa,cACX,SAAQ,yBAAW;IAGZ,MAAM,CAAC,cAAc,GAAW,YAAY,CAAC;IAE7C,MAAM,CAAC,kBAAkB,GAAW,kBAAkB,CAAC;IAEtD,WAAW,CAAc;IAE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AAC,QAAQ,EAChB,OAAO,CAAC,WAAW,CACpB,CAAC;IACJ,CAAC;;AAlTH,wCAmTC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
}
|