globalpayments-api 3.5.1 → 3.5.3
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 +107 -88
- package/lib/src/Builders/AuthorizationBuilder.d.ts +348 -0
- package/lib/src/Builders/AuthorizationBuilder.js +668 -0
- package/lib/src/Builders/AuthorizationBuilder.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +16 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +92 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +16 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +36 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +11 -0
- package/lib/src/Builders/BaseBuilder/Validations.js +55 -0
- package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -0
- package/lib/src/Builders/BaseBuilder.d.ts +11 -0
- package/lib/src/Builders/BaseBuilder.js +17 -0
- package/lib/src/Builders/BaseBuilder.js.map +1 -0
- package/lib/src/Builders/ManagementBuilder.d.ts +122 -0
- package/lib/src/Builders/ManagementBuilder.js +244 -0
- package/lib/src/Builders/ManagementBuilder.js.map +1 -0
- package/lib/src/Builders/PayFacBuilder.d.ts +97 -0
- package/lib/src/Builders/PayFacBuilder.js +233 -0
- package/lib/src/Builders/PayFacBuilder.js.map +1 -0
- package/lib/src/Builders/RecurringBuilder.d.ts +13 -0
- package/lib/src/Builders/RecurringBuilder.js +34 -0
- package/lib/src/Builders/RecurringBuilder.js.map +1 -0
- package/lib/src/Builders/ReportBuilder.d.ts +10 -0
- package/lib/src/Builders/ReportBuilder.js +27 -0
- package/lib/src/Builders/ReportBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js +23 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +35 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +448 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +7 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +179 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.d.ts +16 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js +34 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +163 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +6 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +49 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.d.ts +4 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js +21 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +18 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +125 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js +83 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +9 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +66 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +8 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +39 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/index.js.map +1 -0
- package/lib/src/Builders/TransactionBuilder.d.ts +13 -0
- package/lib/src/Builders/TransactionBuilder.js +47 -0
- package/lib/src/Builders/TransactionBuilder.js.map +1 -0
- package/lib/src/Builders/TransactionReportBuilder.d.ts +19 -0
- package/lib/src/Builders/TransactionReportBuilder.js +92 -0
- package/lib/src/Builders/TransactionReportBuilder.js.map +1 -0
- package/lib/src/Builders/index.d.ts +8 -0
- package/lib/src/Builders/index.js +25 -0
- package/lib/src/Builders/index.js.map +1 -0
- package/lib/src/ConfiguredServices.d.ts +24 -0
- package/lib/src/ConfiguredServices.js +33 -0
- package/lib/src/ConfiguredServices.js.map +1 -0
- package/lib/src/Entities/Address.d.ts +14 -0
- package/lib/src/Entities/Address.js +23 -0
- package/lib/src/Entities/Address.js.map +1 -0
- package/lib/src/Entities/BatchSummary.d.ts +6 -0
- package/lib/src/Entities/BatchSummary.js +11 -0
- package/lib/src/Entities/BatchSummary.js.map +1 -0
- package/lib/src/Entities/Card.d.ts +36 -0
- package/lib/src/Entities/Card.js +41 -0
- package/lib/src/Entities/Card.js.map +1 -0
- package/lib/src/Entities/CardIssuerResponse.d.ts +22 -0
- package/lib/src/Entities/CardIssuerResponse.js +27 -0
- package/lib/src/Entities/CardIssuerResponse.js.map +1 -0
- package/lib/src/Entities/Customer.d.ts +74 -0
- package/lib/src/Entities/Customer.js +94 -0
- package/lib/src/Entities/Customer.js.map +1 -0
- package/lib/src/Entities/CustomerDocument.d.ts +8 -0
- package/lib/src/Entities/CustomerDocument.js +16 -0
- package/lib/src/Entities/CustomerDocument.js.map +1 -0
- package/lib/src/Entities/DocumentUploadData.d.ts +13 -0
- package/lib/src/Entities/DocumentUploadData.js +81 -0
- package/lib/src/Entities/DocumentUploadData.js.map +1 -0
- package/lib/src/Entities/EcommerceInfo.d.ts +12 -0
- package/lib/src/Entities/EcommerceInfo.js +22 -0
- package/lib/src/Entities/EcommerceInfo.js.map +1 -0
- package/lib/src/Entities/EncryptionData.d.ts +7 -0
- package/lib/src/Entities/EncryptionData.js +16 -0
- package/lib/src/Entities/EncryptionData.js.map +1 -0
- package/lib/src/Entities/Enums/AcquisitionType.d.ts +10 -0
- package/lib/src/Entities/Enums/AcquisitionType.js +15 -0
- package/lib/src/Entities/Enums/AcquisitionType.js.map +1 -0
- package/lib/src/Entities/Enums/CardTypeFilter.d.ts +7 -0
- package/lib/src/Entities/Enums/CardTypeFilter.js +12 -0
- package/lib/src/Entities/Enums/CardTypeFilter.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +669 -0
- package/lib/src/Entities/Enums.js +859 -0
- package/lib/src/Entities/Enums.js.map +1 -0
- package/lib/src/Entities/Errors.d.ts +23 -0
- package/lib/src/Entities/Errors.js +72 -0
- package/lib/src/Entities/Errors.js.map +1 -0
- package/lib/src/Entities/FraudRule.d.ts +8 -0
- package/lib/src/Entities/FraudRule.js +17 -0
- package/lib/src/Entities/FraudRule.js.map +1 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.d.ts +16 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.js +21 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/Card.d.ts +16 -0
- package/lib/src/Entities/GpApi/DTO/Card.js +21 -0
- package/lib/src/Entities/GpApi/DTO/Card.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.d.ts +17 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js +21 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/index.d.ts +2 -0
- package/lib/src/Entities/GpApi/DTO/index.js +19 -0
- package/lib/src/Entities/GpApi/DTO/index.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiAccount.d.ts +5 -0
- package/lib/src/Entities/GpApi/GpApiAccount.js +13 -0
- package/lib/src/Entities/GpApi/GpApiAccount.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiRequest.d.ts +21 -0
- package/lib/src/Entities/GpApi/GpApiRequest.js +26 -0
- package/lib/src/Entities/GpApi/GpApiRequest.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.d.ts +52 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js +115 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js.map +1 -0
- package/lib/src/Entities/GpApi/PageResult.d.ts +8 -0
- package/lib/src/Entities/GpApi/PageResult.js +13 -0
- package/lib/src/Entities/GpApi/PageResult.js.map +1 -0
- package/lib/src/Entities/GpApi/index.d.ts +5 -0
- package/lib/src/Entities/GpApi/index.js +22 -0
- package/lib/src/Entities/GpApi/index.js.map +1 -0
- package/lib/src/Entities/HostedPaymentData.d.ts +10 -0
- package/lib/src/Entities/HostedPaymentData.js +17 -0
- package/lib/src/Entities/HostedPaymentData.js.map +1 -0
- package/lib/src/Entities/IRequestBuilder.d.ts +6 -0
- package/lib/src/Entities/IRequestBuilder.js +3 -0
- package/lib/src/Entities/IRequestBuilder.js.map +1 -0
- package/lib/src/Entities/IRequestLogger.d.ts +8 -0
- package/lib/src/Entities/IRequestLogger.js +3 -0
- package/lib/src/Entities/IRequestLogger.js.map +1 -0
- package/lib/src/Entities/LodgingData.d.ts +14 -0
- package/lib/src/Entities/LodgingData.js +18 -0
- package/lib/src/Entities/LodgingData.js.map +1 -0
- package/lib/src/Entities/LodgingItems.d.ts +6 -0
- package/lib/src/Entities/LodgingItems.js +11 -0
- package/lib/src/Entities/LodgingItems.js.map +1 -0
- package/lib/src/Entities/MaskedValueCollection.d.ts +12 -0
- package/lib/src/Entities/MaskedValueCollection.js +53 -0
- package/lib/src/Entities/MaskedValueCollection.js.map +1 -0
- package/lib/src/Entities/PayerDetails.d.ts +8 -0
- package/lib/src/Entities/PayerDetails.js +12 -0
- package/lib/src/Entities/PayerDetails.js.map +1 -0
- package/lib/src/Entities/PhoneNumber.d.ts +6 -0
- package/lib/src/Entities/PhoneNumber.js +15 -0
- package/lib/src/Entities/PhoneNumber.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +7 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +12 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +15 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js +19 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js.map +1 -0
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/BankAccountData.js +42 -0
- package/lib/src/Entities/ProFac/BankAccountData.js.map +1 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +8 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +15 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +1 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +6 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +12 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +1 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +5 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +10 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +1 -0
- package/lib/src/Entities/ProFac/BusinessData.d.ts +15 -0
- package/lib/src/Entities/ProFac/BusinessData.js +50 -0
- package/lib/src/Entities/ProFac/BusinessData.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +4 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +17 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceData.d.ts +5 -0
- package/lib/src/Entities/ProFac/DeviceData.js +11 -0
- package/lib/src/Entities/ProFac/DeviceData.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +6 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js +19 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js.map +1 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +7 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +15 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +1 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +8 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +10 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +1 -0
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +18 -0
- package/lib/src/Entities/ProFac/OrderDevice.js +23 -0
- package/lib/src/Entities/ProFac/OrderDevice.js.map +1 -0
- package/lib/src/Entities/ProFac/OwnersData.d.ts +12 -0
- package/lib/src/Entities/ProFac/OwnersData.js +43 -0
- package/lib/src/Entities/ProFac/OwnersData.js.map +1 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +55 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js +62 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js.map +1 -0
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js +38 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js.map +1 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +8 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +27 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +1 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +5 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js +19 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js.map +1 -0
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +26 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js +82 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js.map +1 -0
- package/lib/src/Entities/RecurringEntity.d.ts +14 -0
- package/lib/src/Entities/RecurringEntity.js +92 -0
- package/lib/src/Entities/RecurringEntity.js.map +1 -0
- package/lib/src/Entities/Reporting/BaseSummary.d.ts +8 -0
- package/lib/src/Entities/Reporting/BaseSummary.js +13 -0
- package/lib/src/Entities/Reporting/BaseSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +108 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +125 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +1 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.d.ts +11 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js +16 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/index.d.ts +3 -0
- package/lib/src/Entities/Reporting/index.js +20 -0
- package/lib/src/Entities/Reporting/index.js.map +1 -0
- package/lib/src/Entities/Request.d.ts +10 -0
- package/lib/src/Entities/Request.js +18 -0
- package/lib/src/Entities/Request.js.map +1 -0
- package/lib/src/Entities/SSORequestData.d.ts +5 -0
- package/lib/src/Entities/SSORequestData.js +19 -0
- package/lib/src/Entities/SSORequestData.js.map +1 -0
- package/lib/src/Entities/Schedule.d.ts +47 -0
- package/lib/src/Entities/Schedule.js +325 -0
- package/lib/src/Entities/Schedule.js.map +1 -0
- package/lib/src/Entities/ServiceEndpoints.d.ts +12 -0
- package/lib/src/Entities/ServiceEndpoints.js +17 -0
- package/lib/src/Entities/ServiceEndpoints.js.map +1 -0
- package/lib/src/Entities/StoredCredentials.d.ts +9 -0
- package/lib/src/Entities/StoredCredentials.js +13 -0
- package/lib/src/Entities/StoredCredentials.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +96 -0
- package/lib/src/Entities/Transaction.js +157 -0
- package/lib/src/Entities/Transaction.js.map +1 -0
- package/lib/src/Entities/TransactionStatus.d.ts +13 -0
- package/lib/src/Entities/TransactionStatus.js +29 -0
- package/lib/src/Entities/TransactionStatus.js.map +1 -0
- package/lib/src/Entities/TransactionSummary.d.ts +78 -0
- package/lib/src/Entities/TransactionSummary.js +83 -0
- package/lib/src/Entities/TransactionSummary.js.map +1 -0
- package/lib/src/Entities/UPA/ProcessIndicator.d.ts +7 -0
- package/lib/src/Entities/UPA/ProcessIndicator.js +11 -0
- package/lib/src/Entities/UPA/ProcessIndicator.js.map +1 -0
- package/lib/src/Entities/UPA/UpaParam.d.ts +10 -0
- package/lib/src/Entities/UPA/UpaParam.js +14 -0
- package/lib/src/Entities/UPA/UpaParam.js.map +1 -0
- package/lib/src/Entities/UPA/UpaTransactionData.d.ts +8 -0
- package/lib/src/Entities/UPA/UpaTransactionData.js +12 -0
- package/lib/src/Entities/UPA/UpaTransactionData.js.map +1 -0
- package/lib/src/Entities/UPA/index.d.ts +3 -0
- package/lib/src/Entities/UPA/index.js +20 -0
- package/lib/src/Entities/UPA/index.js.map +1 -0
- package/lib/src/Entities/index.d.ts +31 -0
- package/lib/src/Entities/index.js +48 -0
- package/lib/src/Entities/index.js.map +1 -0
- package/lib/src/Gateways/Gateway.d.ts +16 -0
- package/lib/src/Gateways/Gateway.js +94 -0
- package/lib/src/Gateways/Gateway.js.map +1 -0
- package/lib/src/Gateways/GatewayResponse.d.ts +8 -0
- package/lib/src/Gateways/GatewayResponse.js +15 -0
- package/lib/src/Gateways/GatewayResponse.js.map +1 -0
- package/lib/src/Gateways/GpApiConnector.d.ts +42 -0
- package/lib/src/Gateways/GpApiConnector.js +232 -0
- package/lib/src/Gateways/GpApiConnector.js.map +1 -0
- package/lib/src/Gateways/GpEcomConnector.d.ts +36 -0
- package/lib/src/Gateways/GpEcomConnector.js +468 -0
- package/lib/src/Gateways/GpEcomConnector.js.map +1 -0
- package/lib/src/Gateways/IPayFacProvider.d.ts +5 -0
- package/lib/src/Gateways/IPayFacProvider.js +3 -0
- package/lib/src/Gateways/IPayFacProvider.js.map +1 -0
- package/lib/src/Gateways/IPaymentGateway.d.ts +8 -0
- package/lib/src/Gateways/IPaymentGateway.js +3 -0
- package/lib/src/Gateways/IPaymentGateway.js.map +1 -0
- package/lib/src/Gateways/IRecurringService.d.ts +6 -0
- package/lib/src/Gateways/IRecurringService.js +3 -0
- package/lib/src/Gateways/IRecurringService.js.map +1 -0
- package/lib/src/Gateways/PayPlanConnector.d.ts +42 -0
- package/lib/src/Gateways/PayPlanConnector.js +545 -0
- package/lib/src/Gateways/PayPlanConnector.js.map +1 -0
- package/lib/src/Gateways/PorticoConnector.d.ts +48 -0
- package/lib/src/Gateways/PorticoConnector.js +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 +8 -0
- package/lib/src/Mapping/EnumMapping.js +84 -0
- package/lib/src/Mapping/EnumMapping.js.map +1 -0
- package/lib/src/Mapping/GpApiMapping.d.ts +15 -0
- package/lib/src/Mapping/GpApiMapping.js +285 -0
- package/lib/src/Mapping/GpApiMapping.js.map +1 -0
- package/lib/src/Mapping/GpEcomMapping.d.ts +9 -0
- package/lib/src/Mapping/GpEcomMapping.js +85 -0
- package/lib/src/Mapping/GpEcomMapping.js.map +1 -0
- package/lib/src/Mapping/index.d.ts +3 -0
- package/lib/src/Mapping/index.js +20 -0
- package/lib/src/Mapping/index.js.map +1 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.d.ts +22 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js +47 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/Cash.d.ts +8 -0
- package/lib/src/PaymentMethods/Cash.js +16 -0
- package/lib/src/PaymentMethods/Cash.js.map +1 -0
- package/lib/src/PaymentMethods/Credit.d.ts +109 -0
- package/lib/src/PaymentMethods/Credit.js +161 -0
- package/lib/src/PaymentMethods/Credit.js.map +1 -0
- package/lib/src/PaymentMethods/CreditCardData.d.ts +20 -0
- package/lib/src/PaymentMethods/CreditCardData.js +47 -0
- package/lib/src/PaymentMethods/CreditCardData.js.map +1 -0
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +15 -0
- package/lib/src/PaymentMethods/CreditTrackData.js +36 -0
- package/lib/src/PaymentMethods/CreditTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/Debit.d.ts +48 -0
- package/lib/src/PaymentMethods/Debit.js +64 -0
- package/lib/src/PaymentMethods/Debit.js.map +1 -0
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +9 -0
- package/lib/src/PaymentMethods/DebitTrackData.js +24 -0
- package/lib/src/PaymentMethods/DebitTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/EBT.d.ts +48 -0
- package/lib/src/PaymentMethods/EBT.js +68 -0
- package/lib/src/PaymentMethods/EBT.js.map +1 -0
- package/lib/src/PaymentMethods/EBTCardData.d.ts +16 -0
- package/lib/src/PaymentMethods/EBTCardData.js +25 -0
- package/lib/src/PaymentMethods/EBTCardData.js.map +1 -0
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +8 -0
- package/lib/src/PaymentMethods/EBTTrackData.js +11 -0
- package/lib/src/PaymentMethods/EBTTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/ECheck.d.ts +32 -0
- package/lib/src/PaymentMethods/ECheck.js +38 -0
- package/lib/src/PaymentMethods/ECheck.js.map +1 -0
- package/lib/src/PaymentMethods/GiftCard.d.ts +131 -0
- package/lib/src/PaymentMethods/GiftCard.js +189 -0
- package/lib/src/PaymentMethods/GiftCard.js.map +1 -0
- package/lib/src/PaymentMethods/Interfaces.d.ts +59 -0
- package/lib/src/PaymentMethods/Interfaces.js +3 -0
- package/lib/src/PaymentMethods/Interfaces.js.map +1 -0
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +19 -0
- package/lib/src/PaymentMethods/PaymentMethod.js +57 -0
- package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +25 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +69 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/TransactionReference.d.ts +10 -0
- package/lib/src/PaymentMethods/TransactionReference.js +17 -0
- package/lib/src/PaymentMethods/TransactionReference.js.map +1 -0
- package/lib/src/PaymentMethods/index.d.ts +17 -0
- package/lib/src/PaymentMethods/index.js +34 -0
- package/lib/src/PaymentMethods/index.js.map +1 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +29 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js +43 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Configuration.d.ts +15 -0
- package/lib/src/ServiceConfigs/Configuration.js +20 -0
- package/lib/src/ServiceConfigs/Configuration.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +14 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +30 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +21 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +45 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +21 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +51 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.d.ts +22 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js +117 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +4 -0
- package/lib/src/ServiceConfigs/Gateways/index.js +21 -0
- package/lib/src/ServiceConfigs/Gateways/index.js.map +1 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.d.ts +8 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js +15 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js.map +1 -0
- package/lib/src/ServiceConfigs/index.d.ts +4 -0
- package/lib/src/ServiceConfigs/index.js +21 -0
- package/lib/src/ServiceConfigs/index.js.map +1 -0
- package/lib/src/Services/BatchService.d.ts +4 -0
- package/lib/src/Services/BatchService.js +15 -0
- package/lib/src/Services/BatchService.js.map +1 -0
- package/lib/src/Services/CheckService.d.ts +7 -0
- package/lib/src/Services/CheckService.js +20 -0
- package/lib/src/Services/CheckService.js.map +1 -0
- package/lib/src/Services/CreditService.d.ts +13 -0
- package/lib/src/Services/CreditService.js +54 -0
- package/lib/src/Services/CreditService.js.map +1 -0
- package/lib/src/Services/DebitService.d.ts +8 -0
- package/lib/src/Services/DebitService.js +28 -0
- package/lib/src/Services/DebitService.js.map +1 -0
- package/lib/src/Services/DeviceService.d.ts +5 -0
- package/lib/src/Services/DeviceService.js +19 -0
- package/lib/src/Services/DeviceService.js.map +1 -0
- package/lib/src/Services/EBTService.d.ts +9 -0
- package/lib/src/Services/EBTService.js +31 -0
- package/lib/src/Services/EBTService.js.map +1 -0
- package/lib/src/Services/GiftService.d.ts +17 -0
- package/lib/src/Services/GiftService.js +54 -0
- package/lib/src/Services/GiftService.js.map +1 -0
- package/lib/src/Services/GpApiServices.d.ts +4 -0
- package/lib/src/Services/GpApiServices.js +44 -0
- package/lib/src/Services/GpApiServices.js.map +1 -0
- package/lib/src/Services/HostedService.d.ts +10 -0
- package/lib/src/Services/HostedService.js +59 -0
- package/lib/src/Services/HostedService.js.map +1 -0
- package/lib/src/Services/PayFacService.d.ts +26 -0
- package/lib/src/Services/PayFacService.js +76 -0
- package/lib/src/Services/PayFacService.js.map +1 -0
- package/lib/src/Services/RecurringService.d.ts +8 -0
- package/lib/src/Services/RecurringService.js +24 -0
- package/lib/src/Services/RecurringService.js.map +1 -0
- package/lib/src/Services/ReportingService.d.ts +10 -0
- package/lib/src/Services/ReportingService.js +34 -0
- package/lib/src/Services/ReportingService.js.map +1 -0
- package/lib/src/Services/index.d.ts +10 -0
- package/lib/src/Services/index.js +27 -0
- package/lib/src/Services/index.js.map +1 -0
- package/lib/src/ServicesContainer.d.ts +19 -0
- package/lib/src/ServicesContainer.js +64 -0
- package/lib/src/ServicesContainer.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.d.ts +6 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.d.ts +13 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.d.ts +4 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.d.ts +52 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.d.ts +3 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js +3 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.d.ts +3 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js +3 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js.map +1 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.d.ts +16 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js +3 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js.map +1 -0
- package/lib/src/Terminals/Abstractions/index.d.ts +7 -0
- package/lib/src/Terminals/Abstractions/index.js +24 -0
- package/lib/src/Terminals/Abstractions/index.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.d.ts +65 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js +172 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.d.ts +12 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.js +32 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.d.ts +30 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js +95 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/index.d.ts +2 -0
- package/lib/src/Terminals/Builders/index.js +19 -0
- package/lib/src/Terminals/Builders/index.js.map +1 -0
- package/lib/src/Terminals/ConnectionConfig.d.ts +20 -0
- package/lib/src/Terminals/ConnectionConfig.js +49 -0
- package/lib/src/Terminals/ConnectionConfig.js.map +1 -0
- package/lib/src/Terminals/DeviceController.d.ts +23 -0
- package/lib/src/Terminals/DeviceController.js +42 -0
- package/lib/src/Terminals/DeviceController.js.map +1 -0
- package/lib/src/Terminals/DeviceInterface.d.ts +21 -0
- package/lib/src/Terminals/DeviceInterface.js +50 -0
- package/lib/src/Terminals/DeviceInterface.js.map +1 -0
- package/lib/src/Terminals/DeviceMessage.d.ts +15 -0
- package/lib/src/Terminals/DeviceMessage.js +42 -0
- package/lib/src/Terminals/DeviceMessage.js.map +1 -0
- package/lib/src/Terminals/DeviceResponse.d.ts +10 -0
- package/lib/src/Terminals/DeviceResponse.js +16 -0
- package/lib/src/Terminals/DeviceResponse.js.map +1 -0
- package/lib/src/Terminals/Enums/ControlCodes.d.ts +5 -0
- package/lib/src/Terminals/Enums/ControlCodes.js +10 -0
- package/lib/src/Terminals/Enums/ControlCodes.js.map +1 -0
- package/lib/src/Terminals/Enums/index.d.ts +1 -0
- package/lib/src/Terminals/Enums/index.js +18 -0
- package/lib/src/Terminals/Enums/index.js.map +1 -0
- package/lib/src/Terminals/Enums.d.ts +12 -0
- package/lib/src/Terminals/Enums.js +18 -0
- package/lib/src/Terminals/Enums.js.map +1 -0
- package/lib/src/Terminals/SummaryResponse.d.ts +28 -0
- package/lib/src/Terminals/SummaryResponse.js +33 -0
- package/lib/src/Terminals/SummaryResponse.js.map +1 -0
- package/lib/src/Terminals/TerminalResponse.d.ts +42 -0
- package/lib/src/Terminals/TerminalResponse.js +49 -0
- package/lib/src/Terminals/TerminalResponse.js.map +1 -0
- package/lib/src/Terminals/TerminalUtils.d.ts +4 -0
- package/lib/src/Terminals/TerminalUtils.js +24 -0
- package/lib/src/Terminals/TerminalUtils.js.map +1 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.d.ts +20 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js +25 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js.map +1 -0
- package/lib/src/Terminals/UPA/Entities/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Entities/index.js +18 -0
- package/lib/src/Terminals/UPA/Entities/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.d.ts +12 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js +76 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js.map +1 -0
- package/lib/src/Terminals/UPA/Interfaces/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Interfaces/index.js +18 -0
- package/lib/src/Terminals/UPA/Interfaces/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.d.ts +53 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js +70 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js.map +1 -0
- package/lib/src/Terminals/UPA/Reponses/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Reponses/index.js +18 -0
- package/lib/src/Terminals/UPA/Reponses/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.d.ts +7 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.js +11 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.js +9 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.d.ts +9 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.js +14 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.js +9 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.d.ts +10 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js +15 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/index.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/index.js +22 -0
- package/lib/src/Terminals/UPA/Request/index.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaController.d.ts +16 -0
- package/lib/src/Terminals/UPA/UpaController.js +213 -0
- package/lib/src/Terminals/UPA/UpaController.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaInterface.d.ts +10 -0
- package/lib/src/Terminals/UPA/UpaInterface.js +44 -0
- package/lib/src/Terminals/UPA/UpaInterface.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaMessageType.d.ts +8 -0
- package/lib/src/Terminals/UPA/UpaMessageType.js +13 -0
- package/lib/src/Terminals/UPA/UpaMessageType.js.map +1 -0
- package/lib/src/Terminals/UPA/index.d.ts +7 -0
- package/lib/src/Terminals/UPA/index.js +24 -0
- package/lib/src/Terminals/UPA/index.js.map +1 -0
- package/lib/src/Terminals/index.d.ts +8 -0
- package/lib/src/Terminals/index.js +25 -0
- package/lib/src/Terminals/index.js.map +1 -0
- package/lib/src/Utils/CardUtils.d.ts +13 -0
- package/lib/src/Utils/CardUtils.js +221 -0
- package/lib/src/Utils/CardUtils.js.map +1 -0
- package/lib/src/Utils/GenerationUtils.d.ts +6 -0
- package/lib/src/Utils/GenerationUtils.js +79 -0
- package/lib/src/Utils/GenerationUtils.js.map +1 -0
- package/lib/src/Utils/IRawRequestBuilder.d.ts +3 -0
- package/lib/src/Utils/IRawRequestBuilder.js +3 -0
- package/lib/src/Utils/IRawRequestBuilder.js.map +1 -0
- package/lib/src/Utils/InputValidation.d.ts +12 -0
- package/lib/src/Utils/InputValidation.js +71 -0
- package/lib/src/Utils/InputValidation.js.map +1 -0
- package/lib/src/Utils/Logging/Logger.d.ts +32 -0
- package/lib/src/Utils/Logging/Logger.js +209 -0
- package/lib/src/Utils/Logging/Logger.js.map +1 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.d.ts +11 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.js +23 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.js.map +1 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.d.ts +12 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.js +38 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.js.map +1 -0
- package/lib/src/Utils/Logging/index.d.ts +3 -0
- package/lib/src/Utils/Logging/index.js +20 -0
- package/lib/src/Utils/Logging/index.js.map +1 -0
- package/lib/src/Utils/Sha1.d.ts +6 -0
- package/lib/src/Utils/Sha1.js +231 -0
- package/lib/src/Utils/Sha1.js.map +1 -0
- package/lib/src/Utils/StringUtils.d.ts +15 -0
- package/lib/src/Utils/StringUtils.js +80 -0
- package/lib/src/Utils/StringUtils.js.map +1 -0
- package/lib/src/Utils/index.d.ts +5 -0
- package/lib/src/Utils/index.js +22 -0
- package/lib/src/Utils/index.js.map +1 -0
- package/lib/src/index.d.ts +13 -0
- package/lib/src/index.js +34 -0
- package/lib/src/index.js.map +1 -0
- package/package.json +71 -64
- 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,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GpEcomRequestBuilder = void 0;
|
|
4
|
+
const elementtree_1 = require("@azz/elementtree");
|
|
5
|
+
const src_1 = require("../../../../src");
|
|
6
|
+
class GpEcomRequestBuilder {
|
|
7
|
+
buildSupplementaryData(supplementaryData, request) {
|
|
8
|
+
const supplementaryDataElem = (0, elementtree_1.SubElement)(request, "supplementaryData");
|
|
9
|
+
for (const key of Object.keys(supplementaryData)) {
|
|
10
|
+
const item = (0, elementtree_1.SubElement)(supplementaryDataElem, "item", { type: key });
|
|
11
|
+
const items = !Array.isArray(supplementaryData[key])
|
|
12
|
+
? supplementaryData[key].split(" ")
|
|
13
|
+
: supplementaryData[key];
|
|
14
|
+
items.map((itemSplitted, index) => {
|
|
15
|
+
(0, elementtree_1.SubElement)(item, "field" + index).append((0, elementtree_1.CData)(itemSplitted));
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
buildEnvelope(transaction) {
|
|
20
|
+
return new elementtree_1.ElementTree(transaction).write();
|
|
21
|
+
}
|
|
22
|
+
numberFormat(amount) {
|
|
23
|
+
const f = parseFloat(amount.toString()) * 100;
|
|
24
|
+
return parseFloat(f.toFixed(2)).toString();
|
|
25
|
+
}
|
|
26
|
+
generateHash(config, timestamp, orderId, amount, currency, paymentData, verify = false) {
|
|
27
|
+
const data = [timestamp, config.merchantId, orderId];
|
|
28
|
+
if (false === verify) {
|
|
29
|
+
data.push(amount);
|
|
30
|
+
data.push(currency);
|
|
31
|
+
}
|
|
32
|
+
data.push(paymentData);
|
|
33
|
+
return src_1.GenerationUtils.generateHash(data.join("."), config.sharedSecret);
|
|
34
|
+
}
|
|
35
|
+
buildCustomer(customer) {
|
|
36
|
+
const payer = (0, elementtree_1.Element)("payer", {
|
|
37
|
+
ref: customer.key || src_1.StringUtils.uuid(),
|
|
38
|
+
type: "Retail",
|
|
39
|
+
});
|
|
40
|
+
(0, elementtree_1.SubElement)(payer, "title").append((0, elementtree_1.CData)(customer.title));
|
|
41
|
+
(0, elementtree_1.SubElement)(payer, "firstname").append((0, elementtree_1.CData)(customer.firstName));
|
|
42
|
+
(0, elementtree_1.SubElement)(payer, "surname").append((0, elementtree_1.CData)(customer.lastName));
|
|
43
|
+
(0, elementtree_1.SubElement)(payer, "company").append((0, elementtree_1.CData)(customer.company));
|
|
44
|
+
if (customer.address) {
|
|
45
|
+
const address = (0, elementtree_1.SubElement)(payer, "address");
|
|
46
|
+
(0, elementtree_1.SubElement)(address, "line1").append((0, elementtree_1.CData)(customer.address.streetAddress1));
|
|
47
|
+
(0, elementtree_1.SubElement)(address, "line2").append((0, elementtree_1.CData)(customer.address.streetAddress2));
|
|
48
|
+
(0, elementtree_1.SubElement)(address, "line3").append((0, elementtree_1.CData)(customer.address.streetAddress3));
|
|
49
|
+
(0, elementtree_1.SubElement)(address, "city").append((0, elementtree_1.CData)(customer.address.city));
|
|
50
|
+
(0, elementtree_1.SubElement)(address, "county").append((0, elementtree_1.CData)(customer.address.province));
|
|
51
|
+
(0, elementtree_1.SubElement)(address, "postcode").append((0, elementtree_1.CData)(customer.address.postalCode));
|
|
52
|
+
if (customer.address.country) {
|
|
53
|
+
(0, elementtree_1.SubElement)(address, "country", { code: "GB" }).append((0, elementtree_1.CData)(customer.address.country));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const phone = (0, elementtree_1.SubElement)(payer, "phonenumbers");
|
|
57
|
+
(0, elementtree_1.SubElement)(phone, "home").append((0, elementtree_1.CData)(customer.homePhone));
|
|
58
|
+
(0, elementtree_1.SubElement)(phone, "work").append((0, elementtree_1.CData)(customer.workPhone));
|
|
59
|
+
(0, elementtree_1.SubElement)(phone, "fax").append((0, elementtree_1.CData)(customer.fax));
|
|
60
|
+
(0, elementtree_1.SubElement)(phone, "mobile").append((0, elementtree_1.CData)(customer.mobilePhone));
|
|
61
|
+
(0, elementtree_1.SubElement)(payer, "email").append((0, elementtree_1.CData)(customer.email));
|
|
62
|
+
return payer;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.GpEcomRequestBuilder = GpEcomRequestBuilder;
|
|
66
|
+
//# sourceMappingURL=GpEcomRequestBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpEcomRequestBuilder.js","sourceRoot":"","sources":["../../../../../src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./GpEcomAuthorizationRequestBuilder"), exports);
|
|
18
|
+
__exportStar(require("./GpEcomManagementRequestBuilder"), exports);
|
|
19
|
+
__exportStar(require("./GpEcomRequestBuilder"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/Builders/RequestBuilder/GpEcom/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sEAAoD;AACpD,mEAAiD;AACjD,yDAAuC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReportBuilder } from "src";
|
|
2
|
+
import { GatewayProvider, IRequestBuilder, Transaction, TransactionSummary } from "../../Entities/";
|
|
3
|
+
import { BaseBuilder } from "../BaseBuilder";
|
|
4
|
+
export declare class RequestBuilderFactory {
|
|
5
|
+
supplementaryData: Record<string, string | string[]>;
|
|
6
|
+
private static processes;
|
|
7
|
+
getRequestBuilder(builder: BaseBuilder<Transaction> | ReportBuilder<TransactionSummary>, gatewayProvider: GatewayProvider): IRequestBuilder | null;
|
|
8
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestBuilderFactory = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
const Entities_1 = require("../../Entities/");
|
|
6
|
+
const GpApiManagementRequestBuilder_1 = require("./GpApi/GpApiManagementRequestBuilder");
|
|
7
|
+
const GpApiMiCRequestBuilder_1 = require("./GpApi/GpApiMiCRequestBuilder");
|
|
8
|
+
const GpEcomAuthorizationRequestBuilder_1 = require("./GpEcom/GpEcomAuthorizationRequestBuilder");
|
|
9
|
+
const GpEcomManagementRequestBuilder_1 = require("./GpEcom/GpEcomManagementRequestBuilder");
|
|
10
|
+
const GpApiReportRequestBuilder_1 = require("./GpApi/GpApiReportRequestBuilder");
|
|
11
|
+
class RequestBuilderFactory {
|
|
12
|
+
supplementaryData;
|
|
13
|
+
static processes = {
|
|
14
|
+
[Entities_1.GatewayProvider.GpApi]: [
|
|
15
|
+
new _1.GpApiAuthorizationRequestBuilder(),
|
|
16
|
+
new GpApiManagementRequestBuilder_1.GpApiManagementRequestBuilder(),
|
|
17
|
+
new GpApiReportRequestBuilder_1.GpApiReportRequestBuilder(),
|
|
18
|
+
new GpApiMiCRequestBuilder_1.GpApiMiCRequestBuilder(),
|
|
19
|
+
],
|
|
20
|
+
[Entities_1.GatewayProvider.GpEcom]: [
|
|
21
|
+
new GpEcomAuthorizationRequestBuilder_1.GpEcomAuthorizationRequestBuilder(),
|
|
22
|
+
new GpEcomManagementRequestBuilder_1.GpEcomManagementRequestBuilder(),
|
|
23
|
+
],
|
|
24
|
+
[Entities_1.GatewayProvider.Portico]: [],
|
|
25
|
+
};
|
|
26
|
+
getRequestBuilder(builder, gatewayProvider) {
|
|
27
|
+
if (!RequestBuilderFactory.processes[gatewayProvider]) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
for (const processName of RequestBuilderFactory.processes[gatewayProvider]) {
|
|
31
|
+
if (processName.canProcess(builder)) {
|
|
32
|
+
return processName;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.RequestBuilderFactory = RequestBuilderFactory;
|
|
39
|
+
//# sourceMappingURL=RequestBuilderFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestBuilderFactory.js","sourceRoot":"","sources":["../../../../src/Builders/RequestBuilder/RequestBuilderFactory.ts"],"names":[],"mappings":";;;AACA,wBAAqD;AACrD,8CAKyB;AAEzB,yFAAsF;AACtF,2EAAwE;AACxE,kGAA+F;AAC/F,4FAAyF;AACzF,iFAA8E;AAE9E,MAAa,qBAAqB;IACzB,iBAAiB,CAAoC;IAEpD,MAAM,CAAC,SAAS,GAA+C;QACrE,CAAC,0BAAe,CAAC,KAAK,CAAC,EAAE;YACvB,IAAI,mCAAgC,EAAE;YACtC,IAAI,6DAA6B,EAAE;YACnC,IAAI,qDAAyB,EAAE;YAC/B,IAAI,+CAAsB,EAAE;SAC7B;QACD,CAAC,0BAAe,CAAC,MAAM,CAAC,EAAE;YACxB,IAAI,qEAAiC,EAAE;YACvC,IAAI,+DAA8B,EAAE;SACrC;QACD,CAAC,0BAAe,CAAC,OAAO,CAAC,EAAE,EAAE;KAC9B,CAAC;IAEK,iBAAiB,CACtB,OAAqE,EACrE,eAAgC;QAEhC,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE;YACrD,OAAO,IAAI,CAAC;SACb;QAED,KAAK,MAAM,WAAW,IAAI,qBAAqB,CAAC,SAAS,CACvD,eAAe,CAChB,EAAE;YACD,IAAI,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE;gBACnC,OAAO,WAAW,CAAC;aACpB;SACF;QAED,OAAO,IAAI,CAAC;IACd,CAAC;;AAlCH,sDAmCC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./GpApi"), exports);
|
|
18
|
+
__exportStar(require("./GpEcom"), exports);
|
|
19
|
+
__exportStar(require("./RequestBuilderFactory"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Builders/RequestBuilder/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,0DAAwC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPaymentMethod, PaymentMethod, TransactionModifier, TransactionType } from "../";
|
|
2
|
+
import { BaseBuilder } from "./BaseBuilder";
|
|
3
|
+
export declare abstract class TransactionBuilder<T> extends BaseBuilder<T> {
|
|
4
|
+
paymentMethod: PaymentMethod;
|
|
5
|
+
transactionType: TransactionType;
|
|
6
|
+
transactionModifier: TransactionModifier;
|
|
7
|
+
supplementaryData: Record<string, string | string[]>;
|
|
8
|
+
constructor(type: TransactionType, paymentMethod?: IPaymentMethod);
|
|
9
|
+
withModifier(modifier?: TransactionModifier): this;
|
|
10
|
+
withPaymentMethod(paymentMethod?: IPaymentMethod): this;
|
|
11
|
+
withSupplementaryData(key: Record<string, string | string[]> | string, value?: string | string[]): this;
|
|
12
|
+
withAllowDuplicates(allowDuplicates: boolean): this;
|
|
13
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionBuilder = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const BaseBuilder_1 = require("./BaseBuilder");
|
|
6
|
+
class TransactionBuilder extends BaseBuilder_1.BaseBuilder {
|
|
7
|
+
paymentMethod;
|
|
8
|
+
transactionType;
|
|
9
|
+
transactionModifier = __1.TransactionModifier.None;
|
|
10
|
+
supplementaryData = {};
|
|
11
|
+
constructor(type, paymentMethod) {
|
|
12
|
+
super();
|
|
13
|
+
this.transactionType = type;
|
|
14
|
+
if (paymentMethod) {
|
|
15
|
+
this.paymentMethod = paymentMethod;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
withModifier(modifier) {
|
|
19
|
+
if (modifier !== undefined) {
|
|
20
|
+
this.transactionModifier = modifier;
|
|
21
|
+
}
|
|
22
|
+
return this;
|
|
23
|
+
}
|
|
24
|
+
withPaymentMethod(paymentMethod) {
|
|
25
|
+
if (paymentMethod !== undefined) {
|
|
26
|
+
this.paymentMethod = paymentMethod;
|
|
27
|
+
}
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
withSupplementaryData(key, value) {
|
|
31
|
+
if (key instanceof Object) {
|
|
32
|
+
for (const supplementaryDataKey of Object.keys(key)) {
|
|
33
|
+
this.withSupplementaryData(supplementaryDataKey, key[supplementaryDataKey]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
if (key && typeof key === "string" && !!value) {
|
|
37
|
+
this.supplementaryData[key] = value;
|
|
38
|
+
}
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
withAllowDuplicates(allowDuplicates) {
|
|
42
|
+
this.allowDupplicates = allowDuplicates;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.TransactionBuilder = TransactionBuilder;
|
|
47
|
+
//# sourceMappingURL=TransactionBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionBuilder.js","sourceRoot":"","sources":["../../../src/Builders/TransactionBuilder.ts"],"names":[],"mappings":";;;AAAA,2BAKa;AACb,+CAA4C;AAE5C,MAAsB,kBAAsB,SAAQ,yBAAc;IACzD,aAAa,CAAgB;IAC7B,eAAe,CAAkB;IACjC,mBAAmB,GAAG,uBAAmB,CAAC,IAAI,CAAC;IAC/C,iBAAiB,GAAsC,EAAE,CAAC;IAEjE,YAAmB,IAAqB,EAAE,aAA8B;QACtE,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,aAAa,GAAG,aAA8B,CAAC;SACrD;IACH,CAAC;IAEM,YAAY,CAAC,QAA8B;QAChD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,IAAI,CAAC,mBAAmB,GAAG,QAAQ,CAAC;SACrC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,iBAAiB,CAAC,aAA8B;QACrD,IAAI,aAAa,KAAK,SAAS,EAAE;YAC/B,IAAI,CAAC,aAAa,GAAG,aAA8B,CAAC;SACrD;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,qBAAqB,CAC1B,GAA+C,EAC/C,KAAyB;QAEzB,IAAI,GAAG,YAAY,MAAM,EAAE;YACzB,KAAK,MAAM,oBAAoB,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;gBACnD,IAAI,CAAC,qBAAqB,CACxB,oBAAoB,EACpB,GAAG,CAAC,oBAAoB,CAAC,CAC1B,CAAC;aACH;SACF;QAED,IAAI,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,CAAC,KAAK,EAAE;YAC7C,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;SACrC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,mBAAmB,CAAC,eAAwB;QACjD,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;QAExC,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAtDD,gDAsDC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReportType, SearchCriteriaBuilder, SortDirection, StoredPaymentMethodSortProperty, TransactionSortProperty } from "../";
|
|
2
|
+
import { ReportBuilder } from "./ReportBuilder";
|
|
3
|
+
import { IDictionary } from "./BaseBuilder";
|
|
4
|
+
export declare class TransactionReportBuilder<T> extends ReportBuilder<T> {
|
|
5
|
+
deviceId: string;
|
|
6
|
+
endDate: Date;
|
|
7
|
+
startDate: Date;
|
|
8
|
+
transactionId: string;
|
|
9
|
+
searchCriteria: IDictionary<string>;
|
|
10
|
+
constructor(type: ReportType);
|
|
11
|
+
setupValidations(): void;
|
|
12
|
+
withDeviceId(deviceId?: string): this;
|
|
13
|
+
withEndDate(endDate?: Date): this;
|
|
14
|
+
withStartDate(startDate?: Date): this;
|
|
15
|
+
withStoredPaymentMethodId(storedPaymentMethodId?: string): this;
|
|
16
|
+
withTransactionId(transactionId?: string): this;
|
|
17
|
+
where(criteria: string, value: any): SearchCriteriaBuilder<T>;
|
|
18
|
+
orderBy(sortProperty: StoredPaymentMethodSortProperty | TransactionSortProperty, sortDirection?: SortDirection): this;
|
|
19
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionReportBuilder = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const ReportBuilder_1 = require("./ReportBuilder");
|
|
6
|
+
class TransactionReportBuilder extends ReportBuilder_1.ReportBuilder {
|
|
7
|
+
deviceId;
|
|
8
|
+
endDate;
|
|
9
|
+
startDate;
|
|
10
|
+
transactionId;
|
|
11
|
+
searchCriteria;
|
|
12
|
+
constructor(type) {
|
|
13
|
+
super(type);
|
|
14
|
+
this.searchBuilder = new __1.SearchCriteriaBuilder(this);
|
|
15
|
+
}
|
|
16
|
+
setupValidations() {
|
|
17
|
+
this.validations
|
|
18
|
+
.of("reportType", __1.ReportType.TransactionDetail)
|
|
19
|
+
.check("transactionId")
|
|
20
|
+
.isNotNull()
|
|
21
|
+
.check("transactionId")
|
|
22
|
+
.isNotEmpty()
|
|
23
|
+
.check("deviceId")
|
|
24
|
+
.isNull()
|
|
25
|
+
.check("startDate")
|
|
26
|
+
.isNull()
|
|
27
|
+
.check("endDate")
|
|
28
|
+
.isNull();
|
|
29
|
+
this.validations
|
|
30
|
+
.of("reportType", __1.ReportType.Activity)
|
|
31
|
+
.check("transactionId")
|
|
32
|
+
.isNull();
|
|
33
|
+
}
|
|
34
|
+
withDeviceId(deviceId) {
|
|
35
|
+
if (deviceId !== undefined) {
|
|
36
|
+
this.deviceId = deviceId;
|
|
37
|
+
}
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
withEndDate(endDate) {
|
|
41
|
+
if (endDate !== undefined) {
|
|
42
|
+
this.endDate = endDate;
|
|
43
|
+
}
|
|
44
|
+
return this;
|
|
45
|
+
}
|
|
46
|
+
withStartDate(startDate) {
|
|
47
|
+
if (startDate !== undefined) {
|
|
48
|
+
this.startDate = startDate;
|
|
49
|
+
}
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
withStoredPaymentMethodId(storedPaymentMethodId) {
|
|
53
|
+
if (storedPaymentMethodId !== undefined) {
|
|
54
|
+
this.searchBuilder.storedPaymentMethodId = storedPaymentMethodId;
|
|
55
|
+
}
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
withTransactionId(transactionId) {
|
|
59
|
+
if (transactionId !== undefined) {
|
|
60
|
+
this.transactionId = transactionId;
|
|
61
|
+
}
|
|
62
|
+
return this;
|
|
63
|
+
}
|
|
64
|
+
where(criteria, value) {
|
|
65
|
+
if (criteria !== undefined && value !== undefined) {
|
|
66
|
+
if (this.searchCriteria == undefined) {
|
|
67
|
+
this.searchCriteria = {};
|
|
68
|
+
}
|
|
69
|
+
this.searchCriteria[criteria] = value;
|
|
70
|
+
this.searchBuilder.andWith(criteria, value);
|
|
71
|
+
}
|
|
72
|
+
return this.searchBuilder;
|
|
73
|
+
}
|
|
74
|
+
orderBy(sortProperty, sortDirection = __1.SortDirection.Desc) {
|
|
75
|
+
this.order = sortDirection;
|
|
76
|
+
switch (this.reportType) {
|
|
77
|
+
case __1.ReportType.FindStoredPaymentMethodsPaged:
|
|
78
|
+
this.storedPaymentMethodOrderBy = sortProperty;
|
|
79
|
+
break;
|
|
80
|
+
case __1.ReportType.FindTransactions:
|
|
81
|
+
case __1.ReportType.FindTransactionsPaged:
|
|
82
|
+
case __1.ReportType.FindSettlementTransactionsPaged:
|
|
83
|
+
this.transactionOrderBy = sortProperty;
|
|
84
|
+
break;
|
|
85
|
+
default:
|
|
86
|
+
throw new __1.NotImplementedError();
|
|
87
|
+
}
|
|
88
|
+
return this;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.TransactionReportBuilder = TransactionReportBuilder;
|
|
92
|
+
//# sourceMappingURL=TransactionReportBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionReportBuilder.js","sourceRoot":"","sources":["../../../src/Builders/TransactionReportBuilder.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./BaseBuilder";
|
|
2
|
+
export * from "./AuthorizationBuilder";
|
|
3
|
+
export * from "./ManagementBuilder";
|
|
4
|
+
export * from "./RecurringBuilder";
|
|
5
|
+
export * from "./ReportBuilder";
|
|
6
|
+
export * from "./RequestBuilder";
|
|
7
|
+
export * from "./TransactionBuilder";
|
|
8
|
+
export * from "./TransactionReportBuilder";
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./BaseBuilder"), exports);
|
|
18
|
+
__exportStar(require("./AuthorizationBuilder"), exports);
|
|
19
|
+
__exportStar(require("./ManagementBuilder"), exports);
|
|
20
|
+
__exportStar(require("./RecurringBuilder"), exports);
|
|
21
|
+
__exportStar(require("./ReportBuilder"), exports);
|
|
22
|
+
__exportStar(require("./RequestBuilder"), exports);
|
|
23
|
+
__exportStar(require("./TransactionBuilder"), exports);
|
|
24
|
+
__exportStar(require("./TransactionReportBuilder"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Builders/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,kDAAgC;AAChC,mDAAiC;AACjC,uDAAqC;AACrC,6DAA2C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IPaymentGateway, IRecurringService } from "./Gateways";
|
|
2
|
+
import { IPayFacProvider } from "./Gateways/IPayFacProvider";
|
|
3
|
+
import { ReportingService } from "./Services";
|
|
4
|
+
import { IDeviceInterface } from "./Terminals";
|
|
5
|
+
import { DeviceController } from "./Terminals/DeviceController";
|
|
6
|
+
export declare class ConfiguredServices {
|
|
7
|
+
private payFacProvider;
|
|
8
|
+
gatewayConnector: IPaymentGateway;
|
|
9
|
+
recurringConnector: IRecurringService;
|
|
10
|
+
reportingService: ReportingService;
|
|
11
|
+
deviceInterface: IDeviceInterface;
|
|
12
|
+
private _deviceController;
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* @return void
|
|
16
|
+
*/
|
|
17
|
+
setPayFacProvider(provider: IPayFacProvider): void;
|
|
18
|
+
/**
|
|
19
|
+
* @return IPayFacProvider
|
|
20
|
+
*/
|
|
21
|
+
getPayFacProvider(): IPayFacProvider;
|
|
22
|
+
get deviceController(): DeviceController;
|
|
23
|
+
set deviceController(deviceController: DeviceController);
|
|
24
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfiguredServices = void 0;
|
|
4
|
+
class ConfiguredServices {
|
|
5
|
+
payFacProvider;
|
|
6
|
+
gatewayConnector;
|
|
7
|
+
recurringConnector;
|
|
8
|
+
reportingService;
|
|
9
|
+
deviceInterface;
|
|
10
|
+
_deviceController;
|
|
11
|
+
constructor() { }
|
|
12
|
+
/**
|
|
13
|
+
* @return void
|
|
14
|
+
*/
|
|
15
|
+
setPayFacProvider(provider) {
|
|
16
|
+
this.payFacProvider = provider;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @return IPayFacProvider
|
|
20
|
+
*/
|
|
21
|
+
getPayFacProvider() {
|
|
22
|
+
return this.payFacProvider || null;
|
|
23
|
+
}
|
|
24
|
+
get deviceController() {
|
|
25
|
+
return this._deviceController;
|
|
26
|
+
}
|
|
27
|
+
set deviceController(deviceController) {
|
|
28
|
+
this._deviceController = deviceController;
|
|
29
|
+
this.deviceInterface = deviceController.configureInterface();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.ConfiguredServices = ConfiguredServices;
|
|
33
|
+
//# sourceMappingURL=ConfiguredServices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfiguredServices.js","sourceRoot":"","sources":["../../src/ConfiguredServices.ts"],"names":[],"mappings":";;;AAMA,MAAa,kBAAkB;IACrB,cAAc,CAAkB;IAEjC,gBAAgB,CAAkB;IAElC,kBAAkB,CAAoB;IAEtC,gBAAgB,CAAmB;IAEnC,eAAe,CAAmB;IAEjC,iBAAiB,CAAmB;IAE5C,gBAAe,CAAC;IAEhB;;OAEG;IACI,iBAAiB,CAAC,QAAyB;QAChD,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,iBAAiB;QACtB,OAAO,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC;IACrC,CAAC;IAED,IAAW,gBAAgB;QACzB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IAED,IAAW,gBAAgB,CAAC,gBAAkC;QAC5D,IAAI,CAAC,iBAAiB,GAAG,gBAAgB,CAAC;QAC1C,IAAI,CAAC,eAAe,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,CAAC;IAC/D,CAAC;CACF;AArCD,gDAqCC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AddressType } from "../Entities";
|
|
2
|
+
export declare class Address {
|
|
3
|
+
type: AddressType;
|
|
4
|
+
streetAddress1: string;
|
|
5
|
+
streetAddress2: string;
|
|
6
|
+
streetAddress3: string;
|
|
7
|
+
city: string;
|
|
8
|
+
province: string;
|
|
9
|
+
postalCode: string;
|
|
10
|
+
country: string;
|
|
11
|
+
countryCode: string;
|
|
12
|
+
get state(): string;
|
|
13
|
+
set state(value: string);
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Address = void 0;
|
|
4
|
+
class Address {
|
|
5
|
+
// TODO backfill address with missing fields
|
|
6
|
+
type;
|
|
7
|
+
streetAddress1;
|
|
8
|
+
streetAddress2;
|
|
9
|
+
streetAddress3;
|
|
10
|
+
city;
|
|
11
|
+
province;
|
|
12
|
+
postalCode;
|
|
13
|
+
country;
|
|
14
|
+
countryCode;
|
|
15
|
+
get state() {
|
|
16
|
+
return this.province;
|
|
17
|
+
}
|
|
18
|
+
set state(value) {
|
|
19
|
+
this.province = value;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.Address = Address;
|
|
23
|
+
//# sourceMappingURL=Address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../src/Entities/Address.ts"],"names":[],"mappings":";;;AAEA,MAAa,OAAO;IAClB,4CAA4C;IACrC,IAAI,CAAc;IAClB,cAAc,CAAS;IACvB,cAAc,CAAS;IACvB,cAAc,CAAS;IACvB,IAAI,CAAS;IACb,QAAQ,CAAS;IACjB,UAAU,CAAS;IACnB,OAAO,CAAS;IAChB,WAAW,CAAS;IAE3B,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAI,KAAK,CAAC,KAAa;QACrB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IACxB,CAAC;CACF;AAnBD,0BAmBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchSummary = void 0;
|
|
4
|
+
class BatchSummary {
|
|
5
|
+
id;
|
|
6
|
+
transactionCount;
|
|
7
|
+
totalAmount;
|
|
8
|
+
sequenceNumber;
|
|
9
|
+
}
|
|
10
|
+
exports.BatchSummary = BatchSummary;
|
|
11
|
+
//# sourceMappingURL=BatchSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchSummary.js","sourceRoot":"","sources":["../../../src/Entities/BatchSummary.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAChB,EAAE,CAAS;IACX,gBAAgB,CAAS;IACzB,WAAW,CAAS;IACpB,cAAc,CAAS;CAC/B;AALD,oCAKC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare class Card {
|
|
2
|
+
cardholderName: string;
|
|
3
|
+
cardNumber: string;
|
|
4
|
+
maskedCardNumber: string;
|
|
5
|
+
cardExpMonth: string;
|
|
6
|
+
cardExpYear: string;
|
|
7
|
+
token: string;
|
|
8
|
+
/**
|
|
9
|
+
* Masked card number with last 4 digits showing.
|
|
10
|
+
*/
|
|
11
|
+
maskedNumberLast4: string;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates the card brand that issued the card.
|
|
14
|
+
*/
|
|
15
|
+
brand: string;
|
|
16
|
+
/**
|
|
17
|
+
* The unique reference created by the brands/schemes to uniquely identify the transaction.
|
|
18
|
+
*/
|
|
19
|
+
brandReference: string;
|
|
20
|
+
/**
|
|
21
|
+
* Contains the first 6 digits of the card
|
|
22
|
+
*/
|
|
23
|
+
bin: string;
|
|
24
|
+
/**
|
|
25
|
+
* The issuing country that the bin is associated with.
|
|
26
|
+
*/
|
|
27
|
+
binCountry: string;
|
|
28
|
+
/**
|
|
29
|
+
* The card provider's description of their card product.
|
|
30
|
+
*/
|
|
31
|
+
accountType: string;
|
|
32
|
+
/**
|
|
33
|
+
* The label of the issuing bank or financial institution of the bin.
|
|
34
|
+
*/
|
|
35
|
+
issuer: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Card = void 0;
|
|
4
|
+
class Card {
|
|
5
|
+
cardholderName;
|
|
6
|
+
cardNumber;
|
|
7
|
+
maskedCardNumber;
|
|
8
|
+
cardExpMonth;
|
|
9
|
+
cardExpYear;
|
|
10
|
+
token;
|
|
11
|
+
/**
|
|
12
|
+
* Masked card number with last 4 digits showing.
|
|
13
|
+
*/
|
|
14
|
+
maskedNumberLast4;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates the card brand that issued the card.
|
|
17
|
+
*/
|
|
18
|
+
brand;
|
|
19
|
+
/**
|
|
20
|
+
* The unique reference created by the brands/schemes to uniquely identify the transaction.
|
|
21
|
+
*/
|
|
22
|
+
brandReference;
|
|
23
|
+
/**
|
|
24
|
+
* Contains the first 6 digits of the card
|
|
25
|
+
*/
|
|
26
|
+
bin;
|
|
27
|
+
/**
|
|
28
|
+
* The issuing country that the bin is associated with.
|
|
29
|
+
*/
|
|
30
|
+
binCountry;
|
|
31
|
+
/**
|
|
32
|
+
* The card provider's description of their card product.
|
|
33
|
+
*/
|
|
34
|
+
accountType;
|
|
35
|
+
/**
|
|
36
|
+
* The label of the issuing bank or financial institution of the bin.
|
|
37
|
+
*/
|
|
38
|
+
issuer;
|
|
39
|
+
}
|
|
40
|
+
exports.Card = Card;
|
|
41
|
+
//# sourceMappingURL=Card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../src/Entities/Card.ts"],"names":[],"mappings":";;;AAAA,MAAa,IAAI;IACR,cAAc,CAAS;IAEvB,UAAU,CAAS;IAEnB,gBAAgB,CAAS;IAEzB,YAAY,CAAS;IAErB,WAAW,CAAS;IAEpB,KAAK,CAAS;IAErB;;OAEG;IACI,iBAAiB,CAAS;IAEjC;;OAEG;IACI,KAAK,CAAS;IAErB;;OAEG;IACI,cAAc,CAAS;IAE9B;;OAEG;IACI,GAAG,CAAS;IAEnB;;OAEG;IACI,UAAU,CAAS;IAE1B;;OAEG;IACI,WAAW,CAAS;IAE3B;;OAEG;IACI,MAAM,CAAS;CACvB;AA/CD,oBA+CC"}
|