globalpayments-api 2.0.0 → 3.0.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 +7 -1
- package/lib/src/Builders/AuthorizationBuilder.d.ts +325 -0
- package/lib/src/Builders/AuthorizationBuilder.js +601 -0
- package/lib/src/Builders/AuthorizationBuilder.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +14 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +62 -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 +29 -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 +57 -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 +103 -0
- package/lib/src/Builders/ManagementBuilder.js +228 -0
- package/lib/src/Builders/ManagementBuilder.js.map +1 -0
- package/lib/src/Builders/PayFacBuilder.d.ts +96 -0
- package/lib/src/Builders/PayFacBuilder.js +185 -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 +48 -0
- package/lib/src/Builders/RecurringBuilder.js.map +1 -0
- package/lib/src/Builders/ReportBuilder.d.ts +8 -0
- package/lib/src/Builders/ReportBuilder.js +37 -0
- package/lib/src/Builders/ReportBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +22 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +160 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +6 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +24 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +2 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +15 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +6 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +30 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/index.d.ts +2 -0
- package/lib/src/Builders/RequestBuilder/index.js +15 -0
- package/lib/src/Builders/RequestBuilder/index.js.map +1 -0
- package/lib/src/Builders/TransactionBuilder.d.ts +10 -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 +15 -0
- package/lib/src/Builders/TransactionReportBuilder.js +80 -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 +21 -0
- package/lib/src/Builders/index.js.map +1 -0
- package/lib/src/ConfiguredServices.d.ts +22 -0
- package/lib/src/ConfiguredServices.js +57 -0
- package/lib/src/ConfiguredServices.js.map +1 -0
- package/lib/src/Entities/Address.d.ts +13 -0
- package/lib/src/Entities/Address.js +20 -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 +10 -0
- package/lib/src/Entities/BatchSummary.js.map +1 -0
- package/lib/src/Entities/Customer.d.ts +64 -0
- package/lib/src/Entities/Customer.js +48 -0
- package/lib/src/Entities/Customer.js.map +1 -0
- package/lib/src/Entities/DocumentUploadData.d.ts +13 -0
- package/lib/src/Entities/DocumentUploadData.js +49 -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 +15 -0
- package/lib/src/Entities/EcommerceInfo.js.map +1 -0
- package/lib/src/Entities/EncryptionData.d.ts +6 -0
- package/lib/src/Entities/EncryptionData.js +10 -0
- package/lib/src/Entities/EncryptionData.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +373 -0
- package/lib/src/Entities/Enums.js +498 -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 +107 -0
- package/lib/src/Entities/Errors.js.map +1 -0
- package/lib/src/Entities/HostedPaymentData.d.ts +10 -0
- package/lib/src/Entities/HostedPaymentData.js +11 -0
- package/lib/src/Entities/HostedPaymentData.js.map +1 -0
- package/lib/src/Entities/IRequestBuilder.d.ts +7 -0
- package/lib/src/Entities/IRequestBuilder.js +3 -0
- package/lib/src/Entities/IRequestBuilder.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +7 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +10 -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 +10 -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 +10 -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 +12 -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 +11 -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 +14 -0
- package/lib/src/Entities/ProFac/BusinessData.js +12 -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 +10 -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 +10 -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 +14 -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 +10 -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 +12 -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 +10 -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 +12 -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 +12 -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 +10 -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 +15 -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 +87 -0
- package/lib/src/Entities/RecurringEntity.js.map +1 -0
- package/lib/src/Entities/Request.d.ts +9 -0
- package/lib/src/Entities/Request.js +15 -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 +10 -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 +254 -0
- package/lib/src/Entities/Schedule.js.map +1 -0
- package/lib/src/Entities/ServiceEndpoints.d.ts +4 -0
- package/lib/src/Entities/ServiceEndpoints.js +9 -0
- package/lib/src/Entities/ServiceEndpoints.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +78 -0
- package/lib/src/Entities/Transaction.js +109 -0
- package/lib/src/Entities/Transaction.js.map +1 -0
- package/lib/src/Entities/TransactionSummary.d.ts +61 -0
- package/lib/src/Entities/TransactionSummary.js +10 -0
- package/lib/src/Entities/TransactionSummary.js.map +1 -0
- package/lib/src/Entities/index.d.ts +15 -0
- package/lib/src/Entities/index.js +28 -0
- package/lib/src/Entities/index.js.map +1 -0
- package/lib/src/Gateways/Gateway.d.ts +10 -0
- package/lib/src/Gateways/Gateway.js +43 -0
- package/lib/src/Gateways/Gateway.js.map +1 -0
- package/lib/src/Gateways/GpEcomConnector.d.ts +36 -0
- package/lib/src/Gateways/GpEcomConnector.js +557 -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 +553 -0
- package/lib/src/Gateways/PayPlanConnector.js.map +1 -0
- package/lib/src/Gateways/PorticoConnector.d.ts +44 -0
- package/lib/src/Gateways/PorticoConnector.js +1018 -0
- package/lib/src/Gateways/PorticoConnector.js.map +1 -0
- package/lib/src/Gateways/ProPayConnector.d.ts +41 -0
- package/lib/src/Gateways/ProPayConnector.js +695 -0
- package/lib/src/Gateways/ProPayConnector.js.map +1 -0
- package/lib/src/Gateways/RealexConnector.d.ts +30 -0
- package/lib/src/Gateways/RealexConnector.js +524 -0
- package/lib/src/Gateways/RealexConnector.js.map +1 -0
- package/lib/src/Gateways/RestGateway.d.ts +6 -0
- package/lib/src/Gateways/RestGateway.js +32 -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 +38 -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 +36 -0
- package/lib/src/Gateways/https-wrapper.js.map +1 -0
- package/lib/src/Gateways/index.d.ts +8 -0
- package/lib/src/Gateways/index.js +21 -0
- package/lib/src/Gateways/index.js.map +1 -0
- package/lib/src/HostedPaymentConfig.d.ts +12 -0
- package/lib/src/HostedPaymentConfig.js +10 -0
- package/lib/src/HostedPaymentConfig.js.map +1 -0
- package/lib/src/Mapping/GpEcomMapping.d.ts +9 -0
- package/lib/src/Mapping/GpEcomMapping.js +74 -0
- package/lib/src/Mapping/GpEcomMapping.js.map +1 -0
- package/lib/src/Mapping/index.d.ts +1 -0
- package/lib/src/Mapping/index.js +14 -0
- package/lib/src/Mapping/index.js.map +1 -0
- package/lib/src/PaymentMethods/Cash.d.ts +8 -0
- package/lib/src/PaymentMethods/Cash.js +37 -0
- package/lib/src/PaymentMethods/Cash.js.map +1 -0
- package/lib/src/PaymentMethods/Credit.d.ts +85 -0
- package/lib/src/PaymentMethods/Credit.js +107 -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 +58 -0
- package/lib/src/PaymentMethods/CreditCardData.js.map +1 -0
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +7 -0
- package/lib/src/PaymentMethods/CreditTrackData.js +28 -0
- package/lib/src/PaymentMethods/CreditTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/Debit.d.ts +40 -0
- package/lib/src/PaymentMethods/Debit.js +71 -0
- package/lib/src/PaymentMethods/Debit.js.map +1 -0
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +7 -0
- package/lib/src/PaymentMethods/DebitTrackData.js +28 -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 +89 -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 +33 -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 +28 -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 +41 -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 +206 -0
- package/lib/src/PaymentMethods/GiftCard.js.map +1 -0
- package/lib/src/PaymentMethods/Interfaces.d.ts +55 -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 +115 -0
- package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +23 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +78 -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 +13 -0
- package/lib/src/PaymentMethods/TransactionReference.js.map +1 -0
- package/lib/src/PaymentMethods/index.d.ts +15 -0
- package/lib/src/PaymentMethods/index.js +28 -0
- package/lib/src/PaymentMethods/index.js.map +1 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +41 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js +30 -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 +16 -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 +46 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +27 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +61 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +2 -0
- package/lib/src/ServiceConfigs/Gateways/index.js +15 -0
- package/lib/src/ServiceConfigs/Gateways/index.js.map +1 -0
- package/lib/src/ServiceConfigs/ServicesConfig.d.ts +27 -0
- package/lib/src/ServiceConfigs/ServicesConfig.js +51 -0
- package/lib/src/ServiceConfigs/ServicesConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.d.ts +10 -0
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.js +27 -0
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.js.map +1 -0
- package/lib/src/ServiceConfigs/index.d.ts +5 -0
- package/lib/src/ServiceConfigs/index.js +18 -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 +18 -0
- package/lib/src/Services/BatchService.js.map +1 -0
- package/lib/src/Services/CheckService.d.ts +6 -0
- package/lib/src/Services/CheckService.js +21 -0
- package/lib/src/Services/CheckService.js.map +1 -0
- package/lib/src/Services/CreditService.d.ts +12 -0
- package/lib/src/Services/CreditService.js +55 -0
- package/lib/src/Services/CreditService.js.map +1 -0
- package/lib/src/Services/DebitService.d.ts +7 -0
- package/lib/src/Services/DebitService.js +29 -0
- package/lib/src/Services/DebitService.js.map +1 -0
- package/lib/src/Services/EBTService.d.ts +8 -0
- package/lib/src/Services/EBTService.js +33 -0
- package/lib/src/Services/EBTService.js.map +1 -0
- package/lib/src/Services/GiftService.d.ts +16 -0
- package/lib/src/Services/GiftService.js +55 -0
- package/lib/src/Services/GiftService.js.map +1 -0
- package/lib/src/Services/HostedService.d.ts +9 -0
- package/lib/src/Services/HostedService.js +60 -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 +78 -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 +28 -0
- package/lib/src/Services/RecurringService.js.map +1 -0
- package/lib/src/Services/ReportingService.d.ts +6 -0
- package/lib/src/Services/ReportingService.js +20 -0
- package/lib/src/Services/ReportingService.js.map +1 -0
- package/lib/src/Services/index.d.ts +9 -0
- package/lib/src/Services/index.js +22 -0
- package/lib/src/Services/index.js.map +1 -0
- package/lib/src/ServicesConfig.d.ts +27 -0
- package/lib/src/ServicesConfig.js +51 -0
- package/lib/src/ServicesConfig.js.map +1 -0
- package/lib/src/ServicesContainer.d.ts +26 -0
- package/lib/src/ServicesContainer.js +140 -0
- package/lib/src/ServicesContainer.js.map +1 -0
- package/lib/src/Utils/GenerationUtils.d.ts +5 -0
- package/lib/src/Utils/GenerationUtils.js +37 -0
- package/lib/src/Utils/GenerationUtils.js.map +1 -0
- package/lib/src/Utils/InputValidation.d.ts +12 -0
- package/lib/src/Utils/InputValidation.js +73 -0
- package/lib/src/Utils/InputValidation.js.map +1 -0
- package/lib/src/Utils/Sha1.d.ts +6 -0
- package/lib/src/Utils/Sha1.js +226 -0
- package/lib/src/Utils/Sha1.js.map +1 -0
- package/lib/src/Utils/StringUtils.d.ts +6 -0
- package/lib/src/Utils/StringUtils.js +54 -0
- package/lib/src/Utils/StringUtils.js.map +1 -0
- package/lib/src/Utils/index.d.ts +2 -0
- package/lib/src/Utils/index.js +15 -0
- package/lib/src/Utils/index.js.map +1 -0
- package/lib/src/index.d.ts +12 -0
- package/lib/src/index.js +29 -0
- package/lib/src/index.js.map +1 -0
- package/lib/test/Data/TestCards.d.ts +24 -0
- package/lib/test/Data/TestCards.js +233 -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 +33 -0
- package/lib/test/Data/TestChecks.js.map +1 -0
- package/lib/test/Data/index.d.ts +2 -0
- package/lib/test/Data/index.js +15 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +113 -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 +484 -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 +84 -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 +1721 -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 +84 -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 +1758 -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 +683 -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 +2219 -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 +708 -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 +152 -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 +172 -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 +193 -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 +378 -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 +197 -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 +48 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +101 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +353 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +124 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +143 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.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 +372 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +101 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +536 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +125 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +145 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +33 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +269 -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 +31 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +4374 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +759 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +2400 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +1657 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +5651 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +1986 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +2370 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +1704 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +2054 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +2470 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +3117 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +2032 -0
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +323 -0
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +99 -0
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +264 -0
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +99 -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 +314 -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 +155 -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 +136 -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 +162 -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 +140 -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 +73 -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 +203 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +71 -0
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js.map +1 -0
- package/package.json +15 -12
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
constructor(type: TransactionType, paymentMethod?: IPaymentMethod);
|
|
8
|
+
withModifier(modifier?: TransactionModifier): this;
|
|
9
|
+
withPaymentMethod(paymentMethod?: IPaymentMethod): this;
|
|
10
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TransactionBuilder = void 0;
|
|
19
|
+
var __1 = require("../");
|
|
20
|
+
var BaseBuilder_1 = require("./BaseBuilder");
|
|
21
|
+
var TransactionBuilder = /** @class */ (function (_super) {
|
|
22
|
+
__extends(TransactionBuilder, _super);
|
|
23
|
+
function TransactionBuilder(type, paymentMethod) {
|
|
24
|
+
var _this = _super.call(this) || this;
|
|
25
|
+
_this.transactionModifier = __1.TransactionModifier.None;
|
|
26
|
+
_this.transactionType = type;
|
|
27
|
+
if (paymentMethod) {
|
|
28
|
+
_this.paymentMethod = paymentMethod;
|
|
29
|
+
}
|
|
30
|
+
return _this;
|
|
31
|
+
}
|
|
32
|
+
TransactionBuilder.prototype.withModifier = function (modifier) {
|
|
33
|
+
if (modifier !== undefined) {
|
|
34
|
+
this.transactionModifier = modifier;
|
|
35
|
+
}
|
|
36
|
+
return this;
|
|
37
|
+
};
|
|
38
|
+
TransactionBuilder.prototype.withPaymentMethod = function (paymentMethod) {
|
|
39
|
+
if (paymentMethod !== undefined) {
|
|
40
|
+
this.paymentMethod = paymentMethod;
|
|
41
|
+
}
|
|
42
|
+
return this;
|
|
43
|
+
};
|
|
44
|
+
return TransactionBuilder;
|
|
45
|
+
}(BaseBuilder_1.BaseBuilder));
|
|
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,yBAKa;AACb,6CAA4C;AAE5C;IAAoD,sCAAc;IAKhE,4BAAmB,IAAqB,EAAE,aAA8B;QAAxE,YACE,iBAAO,SAMR;QATM,yBAAmB,GAAG,uBAAmB,CAAC,IAAI,CAAC;QAKpD,KAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,IAAI,aAAa,EAAE;YACjB,KAAI,CAAC,aAAa,GAAG,aAA8B,CAAC;SACrD;;IACH,CAAC;IAEM,yCAAY,GAAnB,UAAoB,QAA8B;QAChD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,IAAI,CAAC,mBAAmB,GAAG,QAAQ,CAAC;SACrC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,8CAAiB,GAAxB,UAAyB,aAA8B;QACrD,IAAI,aAAa,KAAK,SAAS,EAAE;YAC/B,IAAI,CAAC,aAAa,GAAG,aAA8B,CAAC;SACrD;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACH,yBAAC;AAAD,CAAC,AA3BD,CAAoD,yBAAW,GA2B9D;AA3BqB,gDAAkB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReportBuilder } from "./ReportBuilder";
|
|
2
|
+
import { IDictionary } from "./BaseBuilder";
|
|
3
|
+
export declare class TransactionReportBuilder<T> extends ReportBuilder<T> {
|
|
4
|
+
deviceId: string;
|
|
5
|
+
endDate: Date;
|
|
6
|
+
startDate: Date;
|
|
7
|
+
transactionId: string;
|
|
8
|
+
searchCriteria: IDictionary<string>;
|
|
9
|
+
setupValidations(): void;
|
|
10
|
+
withDeviceId(deviceId?: string): this;
|
|
11
|
+
withEndDate(endDate?: Date): this;
|
|
12
|
+
withStartDate(startDate?: Date): this;
|
|
13
|
+
withTransactionId(transactionId?: string): this;
|
|
14
|
+
where(criteria: string, value: string): this;
|
|
15
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.TransactionReportBuilder = void 0;
|
|
19
|
+
var __1 = require("../");
|
|
20
|
+
var ReportBuilder_1 = require("./ReportBuilder");
|
|
21
|
+
var TransactionReportBuilder = /** @class */ (function (_super) {
|
|
22
|
+
__extends(TransactionReportBuilder, _super);
|
|
23
|
+
function TransactionReportBuilder() {
|
|
24
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
+
}
|
|
26
|
+
TransactionReportBuilder.prototype.setupValidations = function () {
|
|
27
|
+
this.validations
|
|
28
|
+
.of("reportType", __1.ReportType.TransactionDetail)
|
|
29
|
+
.check("transactionId")
|
|
30
|
+
.isNotNull()
|
|
31
|
+
.check("transactionId")
|
|
32
|
+
.isNotEmpty()
|
|
33
|
+
.check("deviceId")
|
|
34
|
+
.isNull()
|
|
35
|
+
.check("startDate")
|
|
36
|
+
.isNull()
|
|
37
|
+
.check("endDate")
|
|
38
|
+
.isNull();
|
|
39
|
+
this.validations
|
|
40
|
+
.of("reportType", __1.ReportType.Activity)
|
|
41
|
+
.check("transactionId")
|
|
42
|
+
.isNull();
|
|
43
|
+
};
|
|
44
|
+
TransactionReportBuilder.prototype.withDeviceId = function (deviceId) {
|
|
45
|
+
if (deviceId !== undefined) {
|
|
46
|
+
this.deviceId = deviceId;
|
|
47
|
+
}
|
|
48
|
+
return this;
|
|
49
|
+
};
|
|
50
|
+
TransactionReportBuilder.prototype.withEndDate = function (endDate) {
|
|
51
|
+
if (endDate !== undefined) {
|
|
52
|
+
this.endDate = endDate;
|
|
53
|
+
}
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
TransactionReportBuilder.prototype.withStartDate = function (startDate) {
|
|
57
|
+
if (startDate !== undefined) {
|
|
58
|
+
this.startDate = startDate;
|
|
59
|
+
}
|
|
60
|
+
return this;
|
|
61
|
+
};
|
|
62
|
+
TransactionReportBuilder.prototype.withTransactionId = function (transactionId) {
|
|
63
|
+
if (transactionId !== undefined) {
|
|
64
|
+
this.transactionId = transactionId;
|
|
65
|
+
}
|
|
66
|
+
return this;
|
|
67
|
+
};
|
|
68
|
+
TransactionReportBuilder.prototype.where = function (criteria, value) {
|
|
69
|
+
if (criteria !== undefined && value !== undefined) {
|
|
70
|
+
if (this.searchCriteria == undefined) {
|
|
71
|
+
this.searchCriteria = {};
|
|
72
|
+
}
|
|
73
|
+
this.searchCriteria[criteria] = value;
|
|
74
|
+
}
|
|
75
|
+
return this;
|
|
76
|
+
};
|
|
77
|
+
return TransactionReportBuilder;
|
|
78
|
+
}(ReportBuilder_1.ReportBuilder));
|
|
79
|
+
exports.TransactionReportBuilder = TransactionReportBuilder;
|
|
80
|
+
//# sourceMappingURL=TransactionReportBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionReportBuilder.js","sourceRoot":"","sources":["../../../src/Builders/TransactionReportBuilder.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yBAAiC;AACjC,iDAAgD;AAGhD;IAAiD,4CAAgB;IAAjE;;IAgEA,CAAC;IAzDQ,mDAAgB,GAAvB;QACE,IAAI,CAAC,WAAW;aACb,EAAE,CAAC,YAAY,EAAE,cAAU,CAAC,iBAAiB,CAAC;aAC9C,KAAK,CAAC,eAAe,CAAC;aACtB,SAAS,EAAE;aACX,KAAK,CAAC,eAAe,CAAC;aACtB,UAAU,EAAE;aACZ,KAAK,CAAC,UAAU,CAAC;aACjB,MAAM,EAAE;aACR,KAAK,CAAC,WAAW,CAAC;aAClB,MAAM,EAAE;aACR,KAAK,CAAC,SAAS,CAAC;aAChB,MAAM,EAAE,CAAC;QAEZ,IAAI,CAAC,WAAW;aACb,EAAE,CAAC,YAAY,EAAE,cAAU,CAAC,QAAQ,CAAC;aACrC,KAAK,CAAC,eAAe,CAAC;aACtB,MAAM,EAAE,CAAC;IACd,CAAC;IAEM,+CAAY,GAAnB,UAAoB,QAAiB;QACnC,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;SAC1B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,8CAAW,GAAlB,UAAmB,OAAc;QAC/B,IAAI,OAAO,KAAK,SAAS,EAAE;YACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;SACxB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,gDAAa,GAApB,UAAqB,SAAgB;QACnC,IAAI,SAAS,KAAK,SAAS,EAAE;YAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,oDAAiB,GAAxB,UAAyB,aAAsB;QAC7C,IAAI,aAAa,KAAK,SAAS,EAAE;YAC/B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;SACpC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,wCAAK,GAAZ,UAAa,QAAgB,EAAE,KAAa;QAC1C,IAAI,QAAQ,KAAK,SAAS,IAAI,KAAK,KAAK,SAAS,EAAE;YACjD,IAAI,IAAI,CAAC,cAAc,IAAI,SAAS,EAAE;gBACpC,IAAI,CAAC,cAAc,GAAG,EAAE,CAAC;aAC1B;YACD,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;SACvC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACH,+BAAC;AAAD,CAAC,AAhED,CAAiD,6BAAa,GAgE7D;AAhEY,4DAAwB"}
|
|
@@ -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,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./BaseBuilder"), exports);
|
|
14
|
+
__exportStar(require("./AuthorizationBuilder"), exports);
|
|
15
|
+
__exportStar(require("./ManagementBuilder"), exports);
|
|
16
|
+
__exportStar(require("./RecurringBuilder"), exports);
|
|
17
|
+
__exportStar(require("./ReportBuilder"), exports);
|
|
18
|
+
__exportStar(require("./RequestBuilder"), exports);
|
|
19
|
+
__exportStar(require("./TransactionBuilder"), exports);
|
|
20
|
+
__exportStar(require("./TransactionReportBuilder"), exports);
|
|
21
|
+
//# 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,mDAAgC;AAChC,uDAAqC;AACrC,6DAA2C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { IPaymentGateway, IRecurringService } from "./Gateways";
|
|
2
|
+
import { IPayFacProvider } from "./Gateways/IPayFacProvider";
|
|
3
|
+
export declare class ConfiguredServices {
|
|
4
|
+
private payFacProvider;
|
|
5
|
+
gatewayConnector: IPaymentGateway;
|
|
6
|
+
recurringConnector: IRecurringService;
|
|
7
|
+
/** @var IReportingService */
|
|
8
|
+
reportingService: unknown;
|
|
9
|
+
deviceInterface: unknown;
|
|
10
|
+
/** @var DeviceController */
|
|
11
|
+
deviceController: unknown;
|
|
12
|
+
constructor();
|
|
13
|
+
/**
|
|
14
|
+
* @return void
|
|
15
|
+
*/
|
|
16
|
+
setPayFacProvider(provider: IPayFacProvider): void;
|
|
17
|
+
/**
|
|
18
|
+
* @return IPayFacProvider
|
|
19
|
+
*/
|
|
20
|
+
getPayFacProvider(): IPayFacProvider;
|
|
21
|
+
setDeviceController(deviceController: any): void;
|
|
22
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfiguredServices = void 0;
|
|
4
|
+
var ConfiguredServices = /** @class */ (function () {
|
|
5
|
+
// /** @var OnlineBoardingConnector */
|
|
6
|
+
// public boardingConnector: unknown;
|
|
7
|
+
// /** @var TableServiceConnector */
|
|
8
|
+
// public tableServiceConnector: unknown;
|
|
9
|
+
// /** @var PayrollConnector */
|
|
10
|
+
// public payrollConnector: unknown;
|
|
11
|
+
// /** @var FraudService */
|
|
12
|
+
// public fraudService: unknown;
|
|
13
|
+
function ConfiguredServices() {
|
|
14
|
+
}
|
|
15
|
+
// public getSecure3dProvider(version: Secure3dVersion)
|
|
16
|
+
// {
|
|
17
|
+
// if (this.secure3dProviders[version]) {
|
|
18
|
+
// return this.secure3dProviders[version];
|
|
19
|
+
// } else if (version == Secure3dVersion.ANY) {
|
|
20
|
+
// let provider = this.secure3dProviders[Secure3dVersion.TWO];
|
|
21
|
+
// return provider;
|
|
22
|
+
// } else {
|
|
23
|
+
// return null;
|
|
24
|
+
// }
|
|
25
|
+
// }
|
|
26
|
+
// public setSecure3dProvider(version: Secure3dVersion, provider: IPayFacProvider)
|
|
27
|
+
// {
|
|
28
|
+
// this.secure3dProviders[version] = provider;
|
|
29
|
+
// }
|
|
30
|
+
/**
|
|
31
|
+
* @return void
|
|
32
|
+
*/
|
|
33
|
+
ConfiguredServices.prototype.setPayFacProvider = function (provider) {
|
|
34
|
+
this.payFacProvider = provider;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @return IPayFacProvider
|
|
38
|
+
*/
|
|
39
|
+
ConfiguredServices.prototype.getPayFacProvider = function () {
|
|
40
|
+
return this.payFacProvider || null;
|
|
41
|
+
};
|
|
42
|
+
// public setOpenBankingProvider(provider: IPayFacProvider)
|
|
43
|
+
// {
|
|
44
|
+
// this.openBankingProvider = provider;
|
|
45
|
+
// }
|
|
46
|
+
// public getOpenBankingProvider()
|
|
47
|
+
// {
|
|
48
|
+
// return this.openBankingProvider;
|
|
49
|
+
// }
|
|
50
|
+
ConfiguredServices.prototype.setDeviceController = function (deviceController) {
|
|
51
|
+
this.deviceController = deviceController;
|
|
52
|
+
this.deviceInterface = deviceController.configureInterface();
|
|
53
|
+
};
|
|
54
|
+
return ConfiguredServices;
|
|
55
|
+
}());
|
|
56
|
+
exports.ConfiguredServices = ConfiguredServices;
|
|
57
|
+
//# sourceMappingURL=ConfiguredServices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfiguredServices.js","sourceRoot":"","sources":["../../src/ConfiguredServices.ts"],"names":[],"mappings":";;;AAIA;IAmBI,sCAAsC;IACtC,qCAAqC;IAErC,oCAAoC;IACpC,yCAAyC;IAEzC,+BAA+B;IAC/B,oCAAoC;IAEpC,2BAA2B;IAC3B,gCAAgC;IAEhC;IAEA,CAAC;IAED,uDAAuD;IACvD,IAAI;IACJ,6CAA6C;IAC7C,kDAAkD;IAClD,mDAAmD;IACnD,sEAAsE;IAEtE,2BAA2B;IAC3B,eAAe;IACf,uBAAuB;IACvB,QAAQ;IACR,IAAI;IAEJ,kFAAkF;IAClF,IAAI;IACJ,kDAAkD;IAClD,IAAI;IAEJ;;OAEG;IACI,8CAAiB,GAAxB,UAAyB,QAAyB;QAE9C,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED;;OAEG;IACI,8CAAiB,GAAxB;QAEI,OAAO,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC;IACvC,CAAC;IAED,2DAA2D;IAC3D,IAAI;IACJ,2CAA2C;IAC3C,IAAI;IAEJ,kCAAkC;IAClC,IAAI;IACJ,uCAAuC;IACvC,IAAI;IAEG,gDAAmB,GAA1B,UAA2B,gBAAqB;QAE5C,IAAI,CAAC,gBAAgB,GAAE,gBAAgB,CAAC;QACxC,IAAI,CAAC,eAAe,GAAG,gBAAgB,CAAC,kBAAkB,EAAE,CAAC;IACjE,CAAC;IACL,yBAAC;AAAD,CAAC,AApFD,IAoFC;AApFY,gDAAkB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
get state(): string;
|
|
12
|
+
set state(value: string);
|
|
13
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Address = void 0;
|
|
4
|
+
var Address = /** @class */ (function () {
|
|
5
|
+
function Address() {
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(Address.prototype, "state", {
|
|
8
|
+
get: function () {
|
|
9
|
+
return this.province;
|
|
10
|
+
},
|
|
11
|
+
set: function (value) {
|
|
12
|
+
this.province = value;
|
|
13
|
+
},
|
|
14
|
+
enumerable: false,
|
|
15
|
+
configurable: true
|
|
16
|
+
});
|
|
17
|
+
return Address;
|
|
18
|
+
}());
|
|
19
|
+
exports.Address = Address;
|
|
20
|
+
//# sourceMappingURL=Address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../src/Entities/Address.ts"],"names":[],"mappings":";;;AAEA;IAAA;IAiBA,CAAC;IAPC,sBAAI,0BAAK;aAAT;YACE,OAAO,IAAI,CAAC,QAAQ,CAAC;QACvB,CAAC;aAED,UAAU,KAAa;YACrB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACxB,CAAC;;;OAJA;IAKH,cAAC;AAAD,CAAC,AAjBD,IAiBC;AAjBY,0BAAO"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchSummary = void 0;
|
|
4
|
+
var BatchSummary = /** @class */ (function () {
|
|
5
|
+
function BatchSummary() {
|
|
6
|
+
}
|
|
7
|
+
return BatchSummary;
|
|
8
|
+
}());
|
|
9
|
+
exports.BatchSummary = BatchSummary;
|
|
10
|
+
//# sourceMappingURL=BatchSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchSummary.js","sourceRoot":"","sources":["../../../src/Entities/BatchSummary.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAKA,CAAC;IAAD,mBAAC;AAAD,CAAC,AALD,IAKC;AALY,oCAAY"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Address, IPaymentMethod, RecurringPaymentMethod } from "../";
|
|
2
|
+
import { RecurringEntity } from "./RecurringEntity";
|
|
3
|
+
export declare class Customer extends RecurringEntity<Customer> {
|
|
4
|
+
/**
|
|
5
|
+
* Customer's title
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Customer's first name
|
|
10
|
+
*/
|
|
11
|
+
firstName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Customer's last name
|
|
14
|
+
*/
|
|
15
|
+
lastName: string;
|
|
16
|
+
/**
|
|
17
|
+
* Customer's company
|
|
18
|
+
*/
|
|
19
|
+
company: string;
|
|
20
|
+
/**
|
|
21
|
+
* Customer's address
|
|
22
|
+
*/
|
|
23
|
+
address: Address;
|
|
24
|
+
/**
|
|
25
|
+
* Customer's home phone number
|
|
26
|
+
*/
|
|
27
|
+
homePhone: string;
|
|
28
|
+
/**
|
|
29
|
+
* Customer's work phone number
|
|
30
|
+
*/
|
|
31
|
+
workPhone: string;
|
|
32
|
+
/**
|
|
33
|
+
* Customer's fax phone number
|
|
34
|
+
*/
|
|
35
|
+
fax: string;
|
|
36
|
+
/**
|
|
37
|
+
* Customer's mobile phone number
|
|
38
|
+
*/
|
|
39
|
+
mobilePhone: string;
|
|
40
|
+
/**
|
|
41
|
+
* Customer's email address
|
|
42
|
+
*/
|
|
43
|
+
email: string;
|
|
44
|
+
/**
|
|
45
|
+
* Customer comments
|
|
46
|
+
*/
|
|
47
|
+
comments: string;
|
|
48
|
+
/**
|
|
49
|
+
* Customer's department within its organization
|
|
50
|
+
*/
|
|
51
|
+
department: string;
|
|
52
|
+
/**
|
|
53
|
+
* Customer resource's status
|
|
54
|
+
*/
|
|
55
|
+
status: string;
|
|
56
|
+
/**
|
|
57
|
+
* Adds a payment method to the customer
|
|
58
|
+
*
|
|
59
|
+
* @param paymentId An application derived ID for the payment method
|
|
60
|
+
* @param paymentMethod The payment method
|
|
61
|
+
* @returns RecurringPaymentMethod
|
|
62
|
+
*/
|
|
63
|
+
addPaymentMethod(paymentId: string, paymentMethod: IPaymentMethod): RecurringPaymentMethod;
|
|
64
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Customer = void 0;
|
|
19
|
+
var __1 = require("../");
|
|
20
|
+
var RecurringEntity_1 = require("./RecurringEntity");
|
|
21
|
+
var Customer = /** @class */ (function (_super) {
|
|
22
|
+
__extends(Customer, _super);
|
|
23
|
+
function Customer() {
|
|
24
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Adds a payment method to the customer
|
|
28
|
+
*
|
|
29
|
+
* @param paymentId An application derived ID for the payment method
|
|
30
|
+
* @param paymentMethod The payment method
|
|
31
|
+
* @returns RecurringPaymentMethod
|
|
32
|
+
*/
|
|
33
|
+
Customer.prototype.addPaymentMethod = function (paymentId, paymentMethod) {
|
|
34
|
+
var nameOnAccount = this.firstName + " " + this.lastName;
|
|
35
|
+
if (!this.firstName && !this.lastName) {
|
|
36
|
+
nameOnAccount = this.company;
|
|
37
|
+
}
|
|
38
|
+
var result = new __1.RecurringPaymentMethod(paymentMethod);
|
|
39
|
+
result.address = this.address;
|
|
40
|
+
result.customerKey = this.key;
|
|
41
|
+
result.id = paymentId;
|
|
42
|
+
result.nameOnAccount = nameOnAccount;
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
return Customer;
|
|
46
|
+
}(RecurringEntity_1.RecurringEntity));
|
|
47
|
+
exports.Customer = Customer;
|
|
48
|
+
//# sourceMappingURL=Customer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Customer.js","sourceRoot":"","sources":["../../../src/Entities/Customer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yBAAsE;AACtE,qDAAoD;AAEpD;IAA8B,4BAAyB;IAAvD;;IAsFA,CAAC;IApBC;;;;;;OAMG;IACI,mCAAgB,GAAvB,UAAwB,SAAiB,EAAE,aAA6B;QACtE,IAAI,aAAa,GAAM,IAAI,CAAC,SAAS,SAAI,IAAI,CAAC,QAAU,CAAC;QACzD,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACrC,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC;SAC9B;QAED,IAAM,MAAM,GAAG,IAAI,0BAAsB,CAAC,aAAa,CAAC,CAAC;QACzD,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC9B,MAAM,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC;QAC9B,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;QACtB,MAAM,CAAC,aAAa,GAAG,aAAa,CAAC;QACrC,OAAO,MAAM,CAAC;IAChB,CAAC;IACH,eAAC;AAAD,CAAC,AAtFD,CAA8B,iCAAe,GAsF5C;AAtFY,4BAAQ"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class DocumentUploadData {
|
|
2
|
+
documentName: string;
|
|
3
|
+
transactionReference: string;
|
|
4
|
+
docType: string;
|
|
5
|
+
get DocType(): string;
|
|
6
|
+
set DocType(value: string);
|
|
7
|
+
document: string;
|
|
8
|
+
docCategory: string;
|
|
9
|
+
documentPath: string;
|
|
10
|
+
DocumentPath(value: string): void;
|
|
11
|
+
private getByteArray;
|
|
12
|
+
_validDocTypes: Array<string>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentUploadData = void 0;
|
|
4
|
+
var fs = require("fs");
|
|
5
|
+
var DocumentUploadData = /** @class */ (function () {
|
|
6
|
+
function DocumentUploadData() {
|
|
7
|
+
this._validDocTypes = ['tif', 'tiff', 'bmp', 'jpg', 'jpeg', 'gif', 'png', 'doc', 'docx'];
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(DocumentUploadData.prototype, "DocType", {
|
|
10
|
+
get: function () {
|
|
11
|
+
return this.docType;
|
|
12
|
+
},
|
|
13
|
+
set: function (value) {
|
|
14
|
+
if (this._validDocTypes.includes(value)) {
|
|
15
|
+
this.docType = value;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
throw new Error("The provided file type is not supported.");
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
enumerable: false,
|
|
22
|
+
configurable: true
|
|
23
|
+
});
|
|
24
|
+
DocumentUploadData.prototype.DocumentPath = function (value) {
|
|
25
|
+
var docPath = value;
|
|
26
|
+
if (docPath != null) {
|
|
27
|
+
var documentType = docPath.substring(docPath.lastIndexOf('.') + 1);
|
|
28
|
+
if (this._validDocTypes.includes(documentType)) {
|
|
29
|
+
this.docType = documentType;
|
|
30
|
+
this.document = String(this.getByteArray(docPath));
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
throw new Error("The document provided is not a valid file type.");
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
throw new Error("DocumentPath has not been set");
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
DocumentUploadData.prototype.getByteArray = function (filePath) {
|
|
41
|
+
var fileData = fs.readFileSync(filePath);
|
|
42
|
+
var buff = Buffer.from(fileData);
|
|
43
|
+
var base64data = buff.toString('base64');
|
|
44
|
+
return base64data;
|
|
45
|
+
};
|
|
46
|
+
return DocumentUploadData;
|
|
47
|
+
}());
|
|
48
|
+
exports.DocumentUploadData = DocumentUploadData;
|
|
49
|
+
//# sourceMappingURL=DocumentUploadData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentUploadData.js","sourceRoot":"","sources":["../../../src/Entities/DocumentUploadData.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AAEzB;IAAA;QA4CI,mBAAc,GAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;IACvG,CAAC;IAzCG,sBAAI,uCAAO;aAAX;YACI,OAAO,IAAI,CAAC,OAAO,CAAC;QACxB,CAAC;aACD,UAAY,KAAa;YACrB,IAAI,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;gBACrC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;aACxB;iBACI;gBACD,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;aAC/D;QACL,CAAC;;;OARA;IAaD,yCAAY,GAAZ,UAAa,KAAa;QACtB,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,IAAI,OAAO,IAAI,IAAI,EAAE;YACb,IAAI,YAAY,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACnE,IAAI,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE;gBAC5C,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC;gBAC5B,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;aACtD;iBACI;gBACD,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;aACtE;SACJ;aACI;YACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;SACpD;IACT,CAAC;IAGO,yCAAY,GAApB,UAAqB,QAAgB;QACjC,IAAI,QAAQ,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjC,IAAI,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACzC,OAAO,UAAU,CAAC;IACtB,CAAC;IAGL,yBAAC;AAAD,CAAC,AA7CD,IA6CC;AA7CY,gDAAkB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EcommerceChannel } from "../Entities";
|
|
2
|
+
export declare class EcommerceInfo {
|
|
3
|
+
cavv: string;
|
|
4
|
+
channel: EcommerceChannel;
|
|
5
|
+
eci: string;
|
|
6
|
+
paymentDataSource: string;
|
|
7
|
+
paymentDataType: string;
|
|
8
|
+
shipDay: string;
|
|
9
|
+
shipMonth: string;
|
|
10
|
+
xid: string;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EcommerceInfo = void 0;
|
|
4
|
+
var Entities_1 = require("../Entities");
|
|
5
|
+
var EcommerceInfo = /** @class */ (function () {
|
|
6
|
+
function EcommerceInfo() {
|
|
7
|
+
this.channel = Entities_1.EcommerceChannel.Ecom;
|
|
8
|
+
this.shipDay = new Date().getUTCDate().toString();
|
|
9
|
+
this.shipMonth = (new Date().getUTCMonth() + 1).toString();
|
|
10
|
+
this.paymentDataType = "3DSecure";
|
|
11
|
+
}
|
|
12
|
+
return EcommerceInfo;
|
|
13
|
+
}());
|
|
14
|
+
exports.EcommerceInfo = EcommerceInfo;
|
|
15
|
+
//# sourceMappingURL=EcommerceInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EcommerceInfo.js","sourceRoot":"","sources":["../../../src/Entities/EcommerceInfo.ts"],"names":[],"mappings":";;;AAAA,wCAA+C;AAC/C;IAUE;QACE,IAAI,CAAC,OAAO,GAAG,2BAAgB,CAAC,IAAI,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,IAAI,IAAI,EAAE,CAAC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC;QAClD,IAAI,CAAC,SAAS,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC3D,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC;IACpC,CAAC;IACH,oBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,sCAAa"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EncryptionData = void 0;
|
|
4
|
+
var EncryptionData = /** @class */ (function () {
|
|
5
|
+
function EncryptionData() {
|
|
6
|
+
}
|
|
7
|
+
return EncryptionData;
|
|
8
|
+
}());
|
|
9
|
+
exports.EncryptionData = EncryptionData;
|
|
10
|
+
//# sourceMappingURL=EncryptionData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EncryptionData.js","sourceRoot":"","sources":["../../../src/Entities/EncryptionData.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAKA,CAAC;IAAD,qBAAC;AAAD,CAAC,AALD,IAKC;AALY,wCAAc"}
|