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,413 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GpApiSecureRequestBuilder = void 0;
|
|
4
|
+
const __1 = require("../../../"); // Import necessary dependencies
|
|
5
|
+
class GpApiSecureRequestBuilder {
|
|
6
|
+
builder;
|
|
7
|
+
maskedValues = {};
|
|
8
|
+
canProcess(builder) {
|
|
9
|
+
return builder instanceof __1.SecureBuilder;
|
|
10
|
+
}
|
|
11
|
+
buildRequest(builder, config) {
|
|
12
|
+
if (!(builder instanceof __1.SecureBuilder)) {
|
|
13
|
+
throw new __1.BuilderError("Builder must be an instance of SecureBuilder!");
|
|
14
|
+
}
|
|
15
|
+
this.builder = builder;
|
|
16
|
+
let requestData = {};
|
|
17
|
+
let verb;
|
|
18
|
+
let endpoint;
|
|
19
|
+
switch (builder.transactionType) {
|
|
20
|
+
case __1.TransactionType.VerifyEnrolled:
|
|
21
|
+
verb = "POST";
|
|
22
|
+
endpoint = __1.GpApiRequest.AUTHENTICATIONS_ENDPOINT;
|
|
23
|
+
requestData = this.verifyEnrolled(builder, config);
|
|
24
|
+
break;
|
|
25
|
+
case __1.TransactionType.InitiateAuthentication:
|
|
26
|
+
verb = "POST";
|
|
27
|
+
endpoint = `${__1.GpApiRequest.AUTHENTICATIONS_ENDPOINT}/${builder.getServerTransactionId()}/initiate`;
|
|
28
|
+
requestData = this.initiateAuthenticationData(builder, config);
|
|
29
|
+
break;
|
|
30
|
+
case __1.TransactionType.VerifySignature:
|
|
31
|
+
verb = "POST";
|
|
32
|
+
endpoint = `${__1.GpApiRequest.AUTHENTICATIONS_ENDPOINT}/${builder.getServerTransactionId()}/result`;
|
|
33
|
+
if (builder.getPayerAuthenticationResponse()) {
|
|
34
|
+
requestData["three_ds"] = {
|
|
35
|
+
challenge_result_value: builder.getPayerAuthenticationResponse(),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
break;
|
|
39
|
+
case __1.TransactionType.RiskAssess:
|
|
40
|
+
verb = "POST";
|
|
41
|
+
endpoint = __1.GpApiRequest.RISK_ASSESSMENTS;
|
|
42
|
+
requestData = {
|
|
43
|
+
account_name: config.accessTokenInfo.riskAssessmentAccountName,
|
|
44
|
+
account_id: config.accessTokenInfo.riskAssessmentAccountID,
|
|
45
|
+
reference: builder.getReferenceNumber()
|
|
46
|
+
? builder.getReferenceNumber()
|
|
47
|
+
: __1.GenerationUtils.getGuuid(),
|
|
48
|
+
source: builder.getAuthenticationSource(),
|
|
49
|
+
merchant_contact_url: config.merchantContactUrl,
|
|
50
|
+
order: this.setOrderParam(),
|
|
51
|
+
payment_method: this.setPaymentMethodParam(builder.paymentMethod),
|
|
52
|
+
payer: this.setPayerParam(),
|
|
53
|
+
payer_prior_three_ds_authentication_data: this.setPayerPrior3DSAuthenticationDataParam(),
|
|
54
|
+
recurring_authorization_data: this.setRecurringAuthorizationDataParam(),
|
|
55
|
+
payer_login_data: this.setPayerLoginDataParam(),
|
|
56
|
+
browser_data: this.setBrowserDataParam(builder.getBrowserData()),
|
|
57
|
+
};
|
|
58
|
+
if (this.builder?.getShippingAddress()) {
|
|
59
|
+
requestData["order"]["shipping_address"]["country"] =
|
|
60
|
+
__1.CountryUtils.getCountryCodeByCountry(this.builder.getShippingAddress().countryCode);
|
|
61
|
+
}
|
|
62
|
+
break;
|
|
63
|
+
default:
|
|
64
|
+
throw new __1.UnsupportedTransactionError(`Your current gateway does not support ${builder.transactionType} transaction type.`);
|
|
65
|
+
}
|
|
66
|
+
__1.GpApiRequest.maskedValues = this.maskedValues;
|
|
67
|
+
return new __1.GpApiRequest(endpoint, verb, JSON.stringify(requestData));
|
|
68
|
+
}
|
|
69
|
+
verifyEnrolled(builder, config) {
|
|
70
|
+
const threeDS = {};
|
|
71
|
+
threeDS["account_name"] =
|
|
72
|
+
config.accessTokenInfo.transactionProcessingAccountName;
|
|
73
|
+
threeDS["account_id"] =
|
|
74
|
+
config.accessTokenInfo.transactionProcessingAccountID;
|
|
75
|
+
threeDS["channel"] = config.channel;
|
|
76
|
+
threeDS["country"] = config.country;
|
|
77
|
+
threeDS["reference"] = builder.getReferenceNumber()
|
|
78
|
+
? builder.getReferenceNumber()
|
|
79
|
+
: __1.GenerationUtils.getGuuid();
|
|
80
|
+
threeDS["amount"] = __1.StringUtils.toNumeric(String(builder.getAmount()));
|
|
81
|
+
threeDS["currency"] = builder.getCurrency();
|
|
82
|
+
threeDS["preference"] = builder.challengeRequestIndicator;
|
|
83
|
+
threeDS["source"] = builder.getAuthenticationSource().toString();
|
|
84
|
+
threeDS["payment_method"] = this.setPaymentMethodParam(builder.paymentMethod);
|
|
85
|
+
threeDS["notifications"] = {
|
|
86
|
+
challenge_return_url: config.challengeNotificationUrl,
|
|
87
|
+
three_ds_method_return_url: config.methodNotificationUrl,
|
|
88
|
+
decoupled_notification_url: builder.decoupledNotificationUrl || undefined,
|
|
89
|
+
};
|
|
90
|
+
if (builder.storedCredential) {
|
|
91
|
+
this.setStoreCredentialParam(builder.storedCredential, threeDS);
|
|
92
|
+
}
|
|
93
|
+
return threeDS;
|
|
94
|
+
}
|
|
95
|
+
setStoreCredentialParam(storedCredential, threeDS) {
|
|
96
|
+
const initiator = __1.EnumMapping.mapStoredCredentialInitiator(__1.GatewayProvider.GpApi, storedCredential.initiator);
|
|
97
|
+
threeDS["initiator"] = initiator ? initiator : null;
|
|
98
|
+
threeDS["stored_credential"] = {
|
|
99
|
+
model: storedCredential.type.toUpperCase(),
|
|
100
|
+
reason: storedCredential.reason.toUpperCase(),
|
|
101
|
+
sequence: storedCredential.sequence.toUpperCase(),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
initiateAuthenticationData(builder, config) {
|
|
105
|
+
const threeDS = {
|
|
106
|
+
three_ds: {
|
|
107
|
+
source: builder.getAuthenticationSource(),
|
|
108
|
+
preference: builder.challengeRequestIndicator,
|
|
109
|
+
message_version: builder.threeDSecure.messageVersion,
|
|
110
|
+
message_category: __1.EnumMapping.mapMessageCategory(__1.GatewayProvider.GpApi, builder.messageCategory),
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
if (builder.storedCredential) {
|
|
114
|
+
this.setStoreCredentialParam(builder.storedCredential, threeDS);
|
|
115
|
+
}
|
|
116
|
+
threeDS["method_url_completion_status"] = builder.methodUrlCompletion;
|
|
117
|
+
threeDS["merchant_contact_url"] = config.merchantContactUrl;
|
|
118
|
+
threeDS["order"] = this.setOrderParam();
|
|
119
|
+
threeDS["payment_method"] = this.setPaymentMethodParam(builder.paymentMethod);
|
|
120
|
+
threeDS["payer"] = this.setPayerParam();
|
|
121
|
+
if (builder.billingAddress) {
|
|
122
|
+
threeDS["payer"]["billing_address"] = {
|
|
123
|
+
line1: builder.billingAddress.streetAddress1,
|
|
124
|
+
line2: builder.billingAddress.streetAddress2,
|
|
125
|
+
line3: builder.billingAddress.streetAddress3,
|
|
126
|
+
city: builder.billingAddress.city,
|
|
127
|
+
postal_code: builder.billingAddress.postalCode,
|
|
128
|
+
state: builder.billingAddress.state,
|
|
129
|
+
country: __1.CountryUtils.getNumericCodeByCountry(builder.billingAddress.countryCode),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
threeDS["payer_prior_three_ds_authentication_data"] =
|
|
133
|
+
this.setPayerPrior3DSAuthenticationDataParam();
|
|
134
|
+
threeDS["recurring_authorization_data"] =
|
|
135
|
+
this.setRecurringAuthorizationDataParam();
|
|
136
|
+
threeDS["payer_login_data"] = this.setPayerLoginDataParam();
|
|
137
|
+
if (builder.getBrowserData() &&
|
|
138
|
+
builder.getAuthenticationSource() !== __1.AuthenticationSource.MobileSdk) {
|
|
139
|
+
threeDS["browser_data"] = this.setBrowserDataParam(builder.getBrowserData());
|
|
140
|
+
}
|
|
141
|
+
if (builder.mobileData &&
|
|
142
|
+
builder.getAuthenticationSource() === __1.AuthenticationSource.MobileSdk) {
|
|
143
|
+
threeDS["mobile_data"] = {
|
|
144
|
+
encoded_data: builder.mobileData.encodedData,
|
|
145
|
+
application_reference: builder.mobileData.applicationReference,
|
|
146
|
+
sdk_interface: builder.mobileData.sdkInterface,
|
|
147
|
+
sdk_ui_type: __1.EnumMapping.mapSdkUiType(__1.GatewayProvider.GpApi, builder.mobileData.sdkUiTypes),
|
|
148
|
+
ephemeral_public_key: JSON.parse(builder.mobileData.ephemeralPublicKey),
|
|
149
|
+
maximum_timeout: builder.mobileData.maximumTimeout,
|
|
150
|
+
reference_number: builder.mobileData.referenceNumber,
|
|
151
|
+
sdk_trans_reference: builder.mobileData.sdkTransReference,
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
if (builder.decoupledNotificationUrl) {
|
|
155
|
+
threeDS["notifications"] = {
|
|
156
|
+
decoupled_notification_url: builder.decoupledNotificationUrl,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (builder.decoupledFlowRequest !== undefined) {
|
|
160
|
+
threeDS["decoupled_flow_request"] = builder.decoupledFlowRequest
|
|
161
|
+
? __1.DecoupledFlowRequest.DecoupledPreferred
|
|
162
|
+
: __1.DecoupledFlowRequest.DoNotUseDecoupled;
|
|
163
|
+
}
|
|
164
|
+
threeDS["decoupled_flow_timeout"] =
|
|
165
|
+
builder.decoupledFlowTimeout || undefined;
|
|
166
|
+
return threeDS;
|
|
167
|
+
}
|
|
168
|
+
setPaymentMethodParam(cardData) {
|
|
169
|
+
const paymentMethod = new __1.PaymentMethod();
|
|
170
|
+
if (cardData.isTokenizable && cardData.token) {
|
|
171
|
+
paymentMethod.id = cardData.token;
|
|
172
|
+
}
|
|
173
|
+
if (cardData.isCardData && !cardData.token) {
|
|
174
|
+
const expMonth = cardData.expMonth ?? "";
|
|
175
|
+
const expYear = cardData.expYear
|
|
176
|
+
? cardData.expYear.toString().padStart(4, "0").substring(2, 4)
|
|
177
|
+
: "";
|
|
178
|
+
paymentMethod.card = {
|
|
179
|
+
brand: cardData.getCardType()?.toUpperCase() || "",
|
|
180
|
+
number: cardData.number || "",
|
|
181
|
+
expiry_month: expMonth,
|
|
182
|
+
expiry_year: expYear,
|
|
183
|
+
};
|
|
184
|
+
paymentMethod.name = cardData.cardHolderName || "";
|
|
185
|
+
// Mask sensitive values
|
|
186
|
+
this.maskedValues = {
|
|
187
|
+
...this.maskedValues,
|
|
188
|
+
...__1.ProtectSensitiveData.hideValues({
|
|
189
|
+
"payment_method.card.expiry_month": expMonth,
|
|
190
|
+
"payment_method.card.expiry_year": expYear,
|
|
191
|
+
}),
|
|
192
|
+
};
|
|
193
|
+
this.maskedValues = {
|
|
194
|
+
...this.maskedValues,
|
|
195
|
+
...__1.ProtectSensitiveData.hideValue("payment_method.card.number", cardData.number, 4, 6),
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
return paymentMethod;
|
|
199
|
+
}
|
|
200
|
+
setOrderParam() {
|
|
201
|
+
let preorder_availability_date = undefined;
|
|
202
|
+
if (this.builder.getPreOrderAvailabilityDate()) {
|
|
203
|
+
preorder_availability_date = new Date(this.builder.getPreOrderAvailabilityDate())
|
|
204
|
+
.toISOString()
|
|
205
|
+
.split("T")[0];
|
|
206
|
+
}
|
|
207
|
+
const order = {
|
|
208
|
+
time_created_reference: this.builder.getOrderCreateDate()
|
|
209
|
+
? new Date(this.builder.getOrderCreateDate()).toISOString()
|
|
210
|
+
: null,
|
|
211
|
+
amount: __1.StringUtils.toNumeric(String(this.builder.getAmount())),
|
|
212
|
+
currency: this.builder.getCurrency(),
|
|
213
|
+
reference: this.builder.getOrderId() || __1.GenerationUtils.getGuuid(),
|
|
214
|
+
address_match_indicator: __1.StringUtils.boolToString(this.builder.isAddressMatchIndicator()),
|
|
215
|
+
gift_card_count: this.builder.getGiftCardCount(),
|
|
216
|
+
gift_card_currency: this.builder.getGiftCardCurrency(),
|
|
217
|
+
gift_card_amount: this.builder.getGiftCardAmount(),
|
|
218
|
+
delivery_email: this.builder.getDeliveryEmail(),
|
|
219
|
+
delivery_timeframe: this.builder.getDeliveryTimeframe(),
|
|
220
|
+
shipping_method: this.builder.getShippingMethod(),
|
|
221
|
+
shipping_name_matches_cardholder_name: __1.StringUtils.boolToString(this.builder.getShippingNameMatchesCardHolderName()),
|
|
222
|
+
preorder_indicator: this.builder.getPreOrderIndicator(),
|
|
223
|
+
preorder_availability_date,
|
|
224
|
+
category: this.builder.getOrderTransactionType(),
|
|
225
|
+
};
|
|
226
|
+
if (this.builder.getShippingAddress()) {
|
|
227
|
+
const shippingAddress = this.builder.getShippingAddress();
|
|
228
|
+
order["shipping_address"] = {
|
|
229
|
+
line1: shippingAddress.streetAddress1,
|
|
230
|
+
line2: shippingAddress.streetAddress2,
|
|
231
|
+
line3: shippingAddress.streetAddress3,
|
|
232
|
+
city: shippingAddress.city,
|
|
233
|
+
postal_code: shippingAddress.postalCode,
|
|
234
|
+
state: shippingAddress.state,
|
|
235
|
+
country: __1.CountryUtils.getNumericCodeByCountry(shippingAddress.countryCode),
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
return order;
|
|
239
|
+
}
|
|
240
|
+
setPayerParam() {
|
|
241
|
+
let account_creation_date = undefined;
|
|
242
|
+
if (this.builder.getAccountCreateDate()) {
|
|
243
|
+
account_creation_date = new Date(this.builder.getAccountCreateDate())
|
|
244
|
+
.toISOString()
|
|
245
|
+
.split("T")[0];
|
|
246
|
+
}
|
|
247
|
+
let account_change_date = undefined;
|
|
248
|
+
if (this.builder.getAccountChangeDate()) {
|
|
249
|
+
account_change_date = new Date(this.builder.getAccountChangeDate())
|
|
250
|
+
.toISOString()
|
|
251
|
+
.split("T")[0];
|
|
252
|
+
}
|
|
253
|
+
let account_password_change_date = undefined;
|
|
254
|
+
if (this.builder.getAccountCreateDate()) {
|
|
255
|
+
account_password_change_date = new Date(this.builder.getPasswordChangeDate())
|
|
256
|
+
.toISOString()
|
|
257
|
+
.split("T")[0];
|
|
258
|
+
}
|
|
259
|
+
let payment_account_creation_date = undefined;
|
|
260
|
+
if (this.builder.getPaymentAccountCreateDate()) {
|
|
261
|
+
payment_account_creation_date = new Date(this.builder.getPaymentAccountCreateDate())
|
|
262
|
+
.toISOString()
|
|
263
|
+
.split("T")[0];
|
|
264
|
+
}
|
|
265
|
+
let provision_attempt_last_24hours_count = undefined;
|
|
266
|
+
if (this.builder.getNumberOfAddCardAttemptsInLast24Hours()) {
|
|
267
|
+
provision_attempt_last_24hours_count = new Date(this.builder.getNumberOfAddCardAttemptsInLast24Hours())
|
|
268
|
+
.toISOString()
|
|
269
|
+
.split("T")[0];
|
|
270
|
+
}
|
|
271
|
+
let home_phone = undefined;
|
|
272
|
+
if (this.builder.getHomeCountryCode() || this.builder.getHomeNumber()) {
|
|
273
|
+
home_phone = {
|
|
274
|
+
country_code: this.builder.getHomeCountryCode(),
|
|
275
|
+
subscriber_number: this.builder.getHomeNumber(),
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
let work_phone = undefined;
|
|
279
|
+
if (this.builder.getWorkCountryCode() || this.builder.getWorkNumber()) {
|
|
280
|
+
work_phone = {
|
|
281
|
+
country_code: this.builder.getWorkCountryCode(),
|
|
282
|
+
subscriber_number: this.builder.getWorkNumber(),
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
let mobile_phone = undefined;
|
|
286
|
+
if (this.builder.getMobileCountryCode() || this.builder.getMobileNumber()) {
|
|
287
|
+
mobile_phone = {
|
|
288
|
+
country_code: this.builder.getMobileCountryCode(),
|
|
289
|
+
subscriber_number: this.builder.getMobileNumber(),
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
const payer = {
|
|
293
|
+
reference: this.builder.getCustomerAccountId(),
|
|
294
|
+
account_age: this.builder.getAccountAgeIndicator()?.toString(),
|
|
295
|
+
account_creation_date,
|
|
296
|
+
account_change_date,
|
|
297
|
+
account_change_indicator: this.builder
|
|
298
|
+
.getAccountChangeIndicator()
|
|
299
|
+
?.toString(),
|
|
300
|
+
account_password_change_date,
|
|
301
|
+
account_password_change_indicator: this.builder
|
|
302
|
+
.getPasswordChangeIndicator()
|
|
303
|
+
?.toString(),
|
|
304
|
+
home_phone,
|
|
305
|
+
work_phone,
|
|
306
|
+
mobile_phone,
|
|
307
|
+
payment_account_creation_date,
|
|
308
|
+
payment_account_age_indicator: this.builder
|
|
309
|
+
.getPaymentAgeIndicator()
|
|
310
|
+
?.toString(),
|
|
311
|
+
suspicious_account_activity: __1.StringUtils.boolToString(this.builder.getPreviousSuspiciousActivity()),
|
|
312
|
+
purchases_last_6months_count: this.builder.getNumberOfPurchasesInLastSixMonths()
|
|
313
|
+
? this.padNumber(this.builder.getNumberOfPurchasesInLastSixMonths())
|
|
314
|
+
: undefined,
|
|
315
|
+
transactions_last_24hours_count: this.builder.getNumberOfTransactionsInLast24Hours()
|
|
316
|
+
? this.padNumber(this.builder.getNumberOfTransactionsInLast24Hours())
|
|
317
|
+
: undefined,
|
|
318
|
+
transaction_last_year_count: this.builder.getNumberOfTransactionsInLastYear()
|
|
319
|
+
? this.padNumber(this.builder.getNumberOfTransactionsInLastYear())
|
|
320
|
+
: undefined,
|
|
321
|
+
provision_attempt_last_24hours_count,
|
|
322
|
+
shipping_address_time_created_reference: this.builder.getShippingAddressCreateDate()
|
|
323
|
+
? new Date(this.builder.getShippingAddressCreateDate()).toISOString()
|
|
324
|
+
: undefined,
|
|
325
|
+
shipping_address_creation_indicator: this.builder
|
|
326
|
+
.getShippingAddressUsageIndicator()
|
|
327
|
+
?.toString(),
|
|
328
|
+
email: this.builder.getCustomerEmail(),
|
|
329
|
+
};
|
|
330
|
+
return !this.areAllKeysUndefined(payer) ? payer : undefined;
|
|
331
|
+
}
|
|
332
|
+
areAllKeysUndefined(obj) {
|
|
333
|
+
for (const key in obj) {
|
|
334
|
+
if (obj[key] !== undefined) {
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return true;
|
|
339
|
+
}
|
|
340
|
+
padNumber(num) {
|
|
341
|
+
return num.toString().padStart(2, "0");
|
|
342
|
+
}
|
|
343
|
+
setBrowserDataParam(browserData) {
|
|
344
|
+
if (!browserData) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
return {
|
|
348
|
+
accept_header: browserData.acceptHeader,
|
|
349
|
+
color_depth: browserData.colorDepth.toString(),
|
|
350
|
+
ip: browserData.ipAddress,
|
|
351
|
+
java_enabled: __1.StringUtils.boolToString(browserData.javaEnabled),
|
|
352
|
+
javascript_enabled: __1.StringUtils.boolToString(browserData.javaScriptEnabled),
|
|
353
|
+
language: browserData.language,
|
|
354
|
+
screen_height: browserData.screenHeight,
|
|
355
|
+
screen_width: browserData.screenWidth,
|
|
356
|
+
challenge_window_size: browserData.challengWindowSize.toString(),
|
|
357
|
+
timezone: browserData.timeZone.toString(),
|
|
358
|
+
user_agent: browserData.userAgent,
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
setPayerPrior3DSAuthenticationDataParam() {
|
|
362
|
+
const payerPrior3DSAuthenticationDataParam = {
|
|
363
|
+
authentication_method: this.builder
|
|
364
|
+
.getPriorAuthenticationMethod()
|
|
365
|
+
?.toString(),
|
|
366
|
+
acs_transaction_reference: this.builder.getPriorAuthenticationTransactionId(),
|
|
367
|
+
authentication_timestamp: this.builder.getPriorAuthenticationTimestamp()
|
|
368
|
+
? new Date(this.builder.getPriorAuthenticationTimestamp()).toISOString()
|
|
369
|
+
: undefined,
|
|
370
|
+
authentication_data: this.builder.getPriorAuthenticationData(),
|
|
371
|
+
};
|
|
372
|
+
return !this.areAllKeysUndefined(payerPrior3DSAuthenticationDataParam)
|
|
373
|
+
? payerPrior3DSAuthenticationDataParam
|
|
374
|
+
: undefined;
|
|
375
|
+
}
|
|
376
|
+
setRecurringAuthorizationDataParam() {
|
|
377
|
+
const recurringAuthorizationDataParam = {
|
|
378
|
+
max_number_of_instalments: this.builder.getMaxNumberOfInstallments()
|
|
379
|
+
? this.padNumber(this.builder.getMaxNumberOfInstallments())
|
|
380
|
+
: undefined,
|
|
381
|
+
frequency: this.builder.getRecurringAuthorizationFrequency(),
|
|
382
|
+
expiry_date: this.builder.getRecurringAuthorizationExpiryDate(),
|
|
383
|
+
};
|
|
384
|
+
return !this.areAllKeysUndefined(recurringAuthorizationDataParam)
|
|
385
|
+
? recurringAuthorizationDataParam
|
|
386
|
+
: undefined;
|
|
387
|
+
}
|
|
388
|
+
setPayerLoginDataParam() {
|
|
389
|
+
let authentication_timestamp = undefined;
|
|
390
|
+
if (this.builder.getCustomerAuthenticationTimestamp()) {
|
|
391
|
+
authentication_timestamp = new Date(this.builder.getCustomerAuthenticationTimestamp())
|
|
392
|
+
.toISOString()
|
|
393
|
+
.split("T")[0];
|
|
394
|
+
}
|
|
395
|
+
const payerLoginDataParam = {
|
|
396
|
+
authentication_data: this.builder.getCustomerAuthenticationData(),
|
|
397
|
+
authentication_timestamp,
|
|
398
|
+
authentication_type: this.builder
|
|
399
|
+
.getCustomerAuthenticationMethod()
|
|
400
|
+
?.toString(),
|
|
401
|
+
};
|
|
402
|
+
return !this.areAllKeysUndefined(payerLoginDataParam)
|
|
403
|
+
? payerLoginDataParam
|
|
404
|
+
: undefined;
|
|
405
|
+
}
|
|
406
|
+
buildRequestFromJson(jsonRequest, config) {
|
|
407
|
+
// TODO: Implement buildRequestFromJson() method.
|
|
408
|
+
jsonRequest;
|
|
409
|
+
config;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
exports.GpApiSecureRequestBuilder = GpApiSecureRequestBuilder;
|
|
413
|
+
//# sourceMappingURL=GpApiSecureRequestBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpApiSecureRequestBuilder.js","sourceRoot":"","sources":["../../../../../src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.ts"],"names":[],"mappings":";;;AAAA,iCAqBmB,CAAC,gCAAgC;AAEpD,MAAa,yBAAyB;IAC5B,OAAO,CAAkB;IACzB,YAAY,GAA2B,EAAE,CAAC;IAElD,UAAU,CAAC,OAAiC;QAC1C,OAAO,OAAO,YAAY,iBAAa,CAAC;IAC1C,CAAC;IAED,YAAY,CAAC,OAAwB,EAAE,MAAmB;QACxD,IAAI,CAAC,CAAC,OAAO,YAAY,iBAAa,CAAC,EAAE;YACvC,MAAM,IAAI,gBAAY,CAAC,+CAA+C,CAAC,CAAC;SACzE;QAED,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,WAAW,GAAwB,EAAE,CAAC;QAC1C,IAAI,IAAY,CAAC;QACjB,IAAI,QAAgB,CAAC;QAErB,QAAQ,OAAO,CAAC,eAAe,EAAE;YAC/B,KAAK,mBAAe,CAAC,cAAc;gBACjC,IAAI,GAAG,MAAM,CAAC;gBACd,QAAQ,GAAG,gBAAY,CAAC,wBAAwB,CAAC;gBACjD,WAAW,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBACnD,MAAM;YACR,KAAK,mBAAe,CAAC,sBAAsB;gBACzC,IAAI,GAAG,MAAM,CAAC;gBACd,QAAQ,GAAG,GACT,gBA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T,CAAC;CACF;AAtgBD,8DAsgBC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GpApiRequest, IntervalToExpire } from "../../../../src/Entities";
|
|
2
|
+
export declare class GpApiSessionInfo {
|
|
3
|
+
private static generateSecret;
|
|
4
|
+
private static generateNonce;
|
|
5
|
+
static signIn(appId: string, appKey: string, secondsToExpire: number | undefined, intervalToExpire: IntervalToExpire | null | undefined, permissions: string[]): Promise<GpApiRequest>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.GpApiSessionInfo = void 0;
|
|
27
|
+
const crypto = __importStar(require("crypto"));
|
|
28
|
+
const Entities_1 = require("../../../../src/Entities");
|
|
29
|
+
const AccessTokenRequest_1 = require("./AccessTokenRequest");
|
|
30
|
+
class GpApiSessionInfo {
|
|
31
|
+
static generateSecret(nonce, appKey) {
|
|
32
|
+
return crypto
|
|
33
|
+
.createHash("sha512")
|
|
34
|
+
.update(nonce + appKey)
|
|
35
|
+
.digest("hex")
|
|
36
|
+
.toLowerCase();
|
|
37
|
+
}
|
|
38
|
+
static generateNonce() {
|
|
39
|
+
const base = new Date();
|
|
40
|
+
return base.toISOString();
|
|
41
|
+
}
|
|
42
|
+
static async signIn(appId, appKey, secondsToExpire = 0, intervalToExpire = null, permissions) {
|
|
43
|
+
const nonce = GpApiSessionInfo.generateNonce();
|
|
44
|
+
const requestBody = new AccessTokenRequest_1.AccessTokenRequest(appId, nonce, GpApiSessionInfo.generateSecret(nonce, appKey), "client_credentials", secondsToExpire, intervalToExpire, permissions);
|
|
45
|
+
return new Entities_1.GpApiRequest(Entities_1.GpApiRequest.ACCESS_TOKEN_ENDPOINT, "POST", JSON.stringify(requestBody));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.GpApiSessionInfo = GpApiSessionInfo;
|
|
49
|
+
//# sourceMappingURL=GpApiSessionInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpApiSessionInfo.js","sourceRoot":"","sources":["../../../../../src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,uDAA0E;AAC1E,6DAA0D;AAE1D,MAAa,gBAAgB;IACnB,MAAM,CAAC,cAAc,CAAC,KAAa,EAAE,MAAc;QACzD,OAAO,MAAM;aACV,UAAU,CAAC,QAAQ,CAAC;aACpB,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC;aACtB,MAAM,CAAC,KAAK,CAAC;aACb,WAAW,EAAE,CAAC;IACnB,CAAC;IAEO,MAAM,CAAC,aAAa;QAC1B,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,KAAK,CAAC,MAAM,CACxB,KAAa,EACb,MAAc,EACd,kBAA0B,CAAC,EAC3B,mBAA4C,IAAI,EAChD,WAAqB;QAErB,MAAM,KAAK,GAAG,gBAAgB,CAAC,aAAa,EAAE,CAAC;QAE/C,MAAM,WAAW,GAAG,IAAI,uCAAkB,CACxC,KAAK,EACL,KAAK,EACL,gBAAgB,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,EAC9C,oBAAoB,EACpB,eAAe,EACf,gBAAgB,EAChB,WAAW,CACZ,CAAC;QAEF,OAAO,IAAI,uBAAY,CACrB,uBAAY,CAAC,qBAAqB,EAClC,MAAM,EACN,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,CAC5B,CAAC;IACJ,CAAC;CACF;AAvCD,4CAuCC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./AccessTokenRequest"), exports);
|
|
18
|
+
__exportStar(require("./GpApiAuthorizationRequestBuilder"), exports);
|
|
19
|
+
__exportStar(require("./GpApiMiCRequestBuilder"), exports);
|
|
20
|
+
__exportStar(require("./GpApiSessionInfo"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Builders/RequestBuilder/GpApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qEAAmD;AACnD,2DAAyC;AACzC,qDAAmC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AuthorizationBuilder, BaseBuilder, GpEcomConfig, IRequestBuilder, Request, Transaction } from "../../../../src";
|
|
2
|
+
import { GpEcomRequestBuilder } from "./GpEcomRequestBuilder";
|
|
3
|
+
export declare class GpEcomAuthorizationRequestBuilder extends GpEcomRequestBuilder implements IRequestBuilder {
|
|
4
|
+
private maskedValues;
|
|
5
|
+
/***
|
|
6
|
+
* @param AuthorizationBuilder builder
|
|
7
|
+
*
|
|
8
|
+
* @return bool
|
|
9
|
+
*/
|
|
10
|
+
canProcess(builder: BaseBuilder<Transaction>): boolean;
|
|
11
|
+
buildRequestFromJson(jsonRequest: string, config: GpEcomConfig): void;
|
|
12
|
+
/**
|
|
13
|
+
* @param BaseBuilder builder
|
|
14
|
+
* @param GpEcomConfig config
|
|
15
|
+
* @return Request
|
|
16
|
+
*/
|
|
17
|
+
buildRequest(builder: AuthorizationBuilder, config: GpEcomConfig): Request;
|
|
18
|
+
}
|