globalpayments-api 2.0.1 → 3.1.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/.eslintignore +9 -0
- package/.eslintrc.cjs +39 -0
- package/.prettierrc +14 -4
- package/CHANGELOG.md +44 -26
- package/package.json +65 -55
- package/tsconfig.eslint.json +15 -0
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -325
- package/lib/src/Builders/AuthorizationBuilder.js +0 -601
- package/lib/src/Builders/AuthorizationBuilder.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -14
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -62
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -29
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder/Validations.js +0 -57
- package/lib/src/Builders/BaseBuilder/Validations.js.map +0 -1
- package/lib/src/Builders/BaseBuilder.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder.js +0 -17
- package/lib/src/Builders/BaseBuilder.js.map +0 -1
- package/lib/src/Builders/ManagementBuilder.d.ts +0 -103
- package/lib/src/Builders/ManagementBuilder.js +0 -228
- package/lib/src/Builders/ManagementBuilder.js.map +0 -1
- package/lib/src/Builders/PayFacBuilder.d.ts +0 -96
- package/lib/src/Builders/PayFacBuilder.js +0 -185
- package/lib/src/Builders/PayFacBuilder.js.map +0 -1
- package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
- package/lib/src/Builders/RecurringBuilder.js +0 -48
- package/lib/src/Builders/RecurringBuilder.js.map +0 -1
- package/lib/src/Builders/ReportBuilder.d.ts +0 -8
- package/lib/src/Builders/ReportBuilder.js +0 -37
- package/lib/src/Builders/ReportBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +0 -22
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +0 -160
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +0 -6
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +0 -24
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +0 -2
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +0 -15
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +0 -6
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +0 -30
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/index.d.ts +0 -2
- package/lib/src/Builders/RequestBuilder/index.js +0 -15
- package/lib/src/Builders/RequestBuilder/index.js.map +0 -1
- package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
- package/lib/src/Builders/TransactionBuilder.js +0 -47
- package/lib/src/Builders/TransactionBuilder.js.map +0 -1
- package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -15
- package/lib/src/Builders/TransactionReportBuilder.js +0 -80
- package/lib/src/Builders/TransactionReportBuilder.js.map +0 -1
- package/lib/src/Builders/index.d.ts +0 -8
- package/lib/src/Builders/index.js +0 -21
- package/lib/src/Builders/index.js.map +0 -1
- package/lib/src/ConfiguredServices.d.ts +0 -22
- package/lib/src/ConfiguredServices.js +0 -57
- package/lib/src/ConfiguredServices.js.map +0 -1
- package/lib/src/Entities/Address.d.ts +0 -13
- package/lib/src/Entities/Address.js +0 -20
- package/lib/src/Entities/Address.js.map +0 -1
- package/lib/src/Entities/BatchSummary.d.ts +0 -6
- package/lib/src/Entities/BatchSummary.js +0 -10
- package/lib/src/Entities/BatchSummary.js.map +0 -1
- package/lib/src/Entities/Customer.d.ts +0 -64
- package/lib/src/Entities/Customer.js +0 -48
- package/lib/src/Entities/Customer.js.map +0 -1
- package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
- package/lib/src/Entities/DocumentUploadData.js +0 -49
- package/lib/src/Entities/DocumentUploadData.js.map +0 -1
- package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
- package/lib/src/Entities/EcommerceInfo.js +0 -15
- package/lib/src/Entities/EcommerceInfo.js.map +0 -1
- package/lib/src/Entities/EncryptionData.d.ts +0 -6
- package/lib/src/Entities/EncryptionData.js +0 -10
- package/lib/src/Entities/EncryptionData.js.map +0 -1
- package/lib/src/Entities/Enums.d.ts +0 -373
- package/lib/src/Entities/Enums.js +0 -498
- package/lib/src/Entities/Enums.js.map +0 -1
- package/lib/src/Entities/Errors.d.ts +0 -23
- package/lib/src/Entities/Errors.js +0 -107
- package/lib/src/Entities/Errors.js.map +0 -1
- package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
- package/lib/src/Entities/HostedPaymentData.js +0 -11
- package/lib/src/Entities/HostedPaymentData.js.map +0 -1
- package/lib/src/Entities/IRequestBuilder.d.ts +0 -7
- package/lib/src/Entities/IRequestBuilder.js +0 -3
- package/lib/src/Entities/IRequestBuilder.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -10
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
- package/lib/src/Entities/ProFac/AccountPermissions.js +0 -10
- package/lib/src/Entities/ProFac/AccountPermissions.js.map +0 -1
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/BankAccountData.js +0 -10
- package/lib/src/Entities/ProFac/BankAccountData.js.map +0 -1
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -12
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +0 -1
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -11
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +0 -1
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -10
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +0 -1
- package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -14
- package/lib/src/Entities/ProFac/BusinessData.js +0 -12
- package/lib/src/Entities/ProFac/BusinessData.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -10
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
- package/lib/src/Entities/ProFac/DeviceData.js +0 -11
- package/lib/src/Entities/ProFac/DeviceData.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
- package/lib/src/Entities/ProFac/DeviceInfo.js +0 -10
- package/lib/src/Entities/ProFac/DeviceInfo.js.map +0 -1
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -14
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +0 -1
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -10
- package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +0 -1
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
- package/lib/src/Entities/ProFac/OrderDevice.js +0 -10
- package/lib/src/Entities/ProFac/OrderDevice.js.map +0 -1
- package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
- package/lib/src/Entities/ProFac/OwnersData.js +0 -12
- package/lib/src/Entities/ProFac/OwnersData.js.map +0 -1
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
- package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -10
- package/lib/src/Entities/ProFac/PayFacResponseData.js.map +0 -1
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/RenewAccountData.js +0 -12
- package/lib/src/Entities/ProFac/RenewAccountData.js.map +0 -1
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -12
- package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +0 -1
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
- package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -10
- package/lib/src/Entities/ProFac/ThreatRiskData.js.map +0 -1
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
- package/lib/src/Entities/ProFac/UserPersonalData.js +0 -15
- package/lib/src/Entities/ProFac/UserPersonalData.js.map +0 -1
- package/lib/src/Entities/RecurringEntity.d.ts +0 -14
- package/lib/src/Entities/RecurringEntity.js +0 -87
- package/lib/src/Entities/RecurringEntity.js.map +0 -1
- package/lib/src/Entities/Request.d.ts +0 -9
- package/lib/src/Entities/Request.js +0 -15
- package/lib/src/Entities/Request.js.map +0 -1
- package/lib/src/Entities/SSORequestData.d.ts +0 -5
- package/lib/src/Entities/SSORequestData.js +0 -10
- package/lib/src/Entities/SSORequestData.js.map +0 -1
- package/lib/src/Entities/Schedule.d.ts +0 -47
- package/lib/src/Entities/Schedule.js +0 -254
- package/lib/src/Entities/Schedule.js.map +0 -1
- package/lib/src/Entities/ServiceEndpoints.d.ts +0 -4
- package/lib/src/Entities/ServiceEndpoints.js +0 -9
- package/lib/src/Entities/ServiceEndpoints.js.map +0 -1
- package/lib/src/Entities/Transaction.d.ts +0 -78
- package/lib/src/Entities/Transaction.js +0 -109
- package/lib/src/Entities/Transaction.js.map +0 -1
- package/lib/src/Entities/TransactionSummary.d.ts +0 -61
- package/lib/src/Entities/TransactionSummary.js +0 -10
- package/lib/src/Entities/TransactionSummary.js.map +0 -1
- package/lib/src/Entities/index.d.ts +0 -15
- package/lib/src/Entities/index.js +0 -28
- package/lib/src/Entities/index.js.map +0 -1
- package/lib/src/Gateways/Gateway.d.ts +0 -10
- package/lib/src/Gateways/Gateway.js +0 -43
- package/lib/src/Gateways/Gateway.js.map +0 -1
- package/lib/src/Gateways/GpEcomConnector.d.ts +0 -36
- package/lib/src/Gateways/GpEcomConnector.js +0 -557
- package/lib/src/Gateways/GpEcomConnector.js.map +0 -1
- package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
- package/lib/src/Gateways/IPayFacProvider.js +0 -3
- package/lib/src/Gateways/IPayFacProvider.js.map +0 -1
- package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
- package/lib/src/Gateways/IPaymentGateway.js +0 -3
- package/lib/src/Gateways/IPaymentGateway.js.map +0 -1
- package/lib/src/Gateways/IRecurringService.d.ts +0 -6
- package/lib/src/Gateways/IRecurringService.js +0 -3
- package/lib/src/Gateways/IRecurringService.js.map +0 -1
- package/lib/src/Gateways/PayPlanConnector.d.ts +0 -42
- package/lib/src/Gateways/PayPlanConnector.js +0 -553
- package/lib/src/Gateways/PayPlanConnector.js.map +0 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
- package/lib/src/Gateways/PorticoConnector.js +0 -1018
- package/lib/src/Gateways/PorticoConnector.js.map +0 -1
- package/lib/src/Gateways/ProPayConnector.d.ts +0 -41
- package/lib/src/Gateways/ProPayConnector.js +0 -695
- package/lib/src/Gateways/ProPayConnector.js.map +0 -1
- package/lib/src/Gateways/RealexConnector.d.ts +0 -30
- package/lib/src/Gateways/RealexConnector.js +0 -524
- package/lib/src/Gateways/RealexConnector.js.map +0 -1
- package/lib/src/Gateways/RestGateway.d.ts +0 -6
- package/lib/src/Gateways/RestGateway.js +0 -32
- package/lib/src/Gateways/RestGateway.js.map +0 -1
- package/lib/src/Gateways/XmlGateway.d.ts +0 -6
- package/lib/src/Gateways/XmlGateway.js +0 -38
- package/lib/src/Gateways/XmlGateway.js.map +0 -1
- package/lib/src/Gateways/https-wrapper.d.ts +0 -3
- package/lib/src/Gateways/https-wrapper.js +0 -36
- package/lib/src/Gateways/https-wrapper.js.map +0 -1
- package/lib/src/Gateways/index.d.ts +0 -8
- package/lib/src/Gateways/index.js +0 -21
- package/lib/src/Gateways/index.js.map +0 -1
- package/lib/src/HostedPaymentConfig.d.ts +0 -12
- package/lib/src/HostedPaymentConfig.js +0 -10
- package/lib/src/HostedPaymentConfig.js.map +0 -1
- package/lib/src/Mapping/GpEcomMapping.d.ts +0 -9
- package/lib/src/Mapping/GpEcomMapping.js +0 -74
- package/lib/src/Mapping/GpEcomMapping.js.map +0 -1
- package/lib/src/Mapping/index.d.ts +0 -1
- package/lib/src/Mapping/index.js +0 -14
- package/lib/src/Mapping/index.js.map +0 -1
- package/lib/src/PaymentMethods/Cash.d.ts +0 -8
- package/lib/src/PaymentMethods/Cash.js +0 -37
- package/lib/src/PaymentMethods/Cash.js.map +0 -1
- package/lib/src/PaymentMethods/Credit.d.ts +0 -85
- package/lib/src/PaymentMethods/Credit.js +0 -107
- package/lib/src/PaymentMethods/Credit.js.map +0 -1
- package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
- package/lib/src/PaymentMethods/CreditCardData.js +0 -58
- package/lib/src/PaymentMethods/CreditCardData.js.map +0 -1
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/CreditTrackData.js +0 -28
- package/lib/src/PaymentMethods/CreditTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/Debit.d.ts +0 -40
- package/lib/src/PaymentMethods/Debit.js +0 -71
- package/lib/src/PaymentMethods/Debit.js.map +0 -1
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/DebitTrackData.js +0 -28
- package/lib/src/PaymentMethods/DebitTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/EBT.d.ts +0 -48
- package/lib/src/PaymentMethods/EBT.js +0 -89
- package/lib/src/PaymentMethods/EBT.js.map +0 -1
- package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
- package/lib/src/PaymentMethods/EBTCardData.js +0 -33
- package/lib/src/PaymentMethods/EBTCardData.js.map +0 -1
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
- package/lib/src/PaymentMethods/EBTTrackData.js +0 -28
- package/lib/src/PaymentMethods/EBTTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
- package/lib/src/PaymentMethods/ECheck.js +0 -41
- package/lib/src/PaymentMethods/ECheck.js.map +0 -1
- package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
- package/lib/src/PaymentMethods/GiftCard.js +0 -206
- package/lib/src/PaymentMethods/GiftCard.js.map +0 -1
- package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
- package/lib/src/PaymentMethods/Interfaces.js +0 -3
- package/lib/src/PaymentMethods/Interfaces.js.map +0 -1
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
- package/lib/src/PaymentMethods/PaymentMethod.js +0 -115
- package/lib/src/PaymentMethods/PaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -78
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
- package/lib/src/PaymentMethods/TransactionReference.js +0 -13
- package/lib/src/PaymentMethods/TransactionReference.js.map +0 -1
- package/lib/src/PaymentMethods/index.d.ts +0 -15
- package/lib/src/PaymentMethods/index.js +0 -28
- package/lib/src/PaymentMethods/index.js.map +0 -1
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +0 -41
- package/lib/src/ServiceConfigs/AcceptorConfig.js +0 -30
- package/lib/src/ServiceConfigs/AcceptorConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Configuration.d.ts +0 -15
- package/lib/src/ServiceConfigs/Configuration.js +0 -16
- package/lib/src/ServiceConfigs/Configuration.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +0 -14
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +0 -46
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +0 -27
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +0 -61
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +0 -2
- package/lib/src/ServiceConfigs/Gateways/index.js +0 -15
- package/lib/src/ServiceConfigs/Gateways/index.js.map +0 -1
- package/lib/src/ServiceConfigs/ServicesConfig.d.ts +0 -27
- package/lib/src/ServiceConfigs/ServicesConfig.js +0 -51
- package/lib/src/ServiceConfigs/ServicesConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.d.ts +0 -10
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.js +0 -27
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.js.map +0 -1
- package/lib/src/ServiceConfigs/index.d.ts +0 -5
- package/lib/src/ServiceConfigs/index.js +0 -18
- package/lib/src/ServiceConfigs/index.js.map +0 -1
- package/lib/src/Services/BatchService.d.ts +0 -4
- package/lib/src/Services/BatchService.js +0 -18
- package/lib/src/Services/BatchService.js.map +0 -1
- package/lib/src/Services/CheckService.d.ts +0 -6
- package/lib/src/Services/CheckService.js +0 -21
- package/lib/src/Services/CheckService.js.map +0 -1
- package/lib/src/Services/CreditService.d.ts +0 -12
- package/lib/src/Services/CreditService.js +0 -55
- package/lib/src/Services/CreditService.js.map +0 -1
- package/lib/src/Services/DebitService.d.ts +0 -7
- package/lib/src/Services/DebitService.js +0 -29
- package/lib/src/Services/DebitService.js.map +0 -1
- package/lib/src/Services/EBTService.d.ts +0 -8
- package/lib/src/Services/EBTService.js +0 -33
- package/lib/src/Services/EBTService.js.map +0 -1
- package/lib/src/Services/GiftService.d.ts +0 -16
- package/lib/src/Services/GiftService.js +0 -55
- package/lib/src/Services/GiftService.js.map +0 -1
- package/lib/src/Services/HostedService.d.ts +0 -9
- package/lib/src/Services/HostedService.js +0 -60
- package/lib/src/Services/HostedService.js.map +0 -1
- package/lib/src/Services/PayFacService.d.ts +0 -26
- package/lib/src/Services/PayFacService.js +0 -78
- package/lib/src/Services/PayFacService.js.map +0 -1
- package/lib/src/Services/RecurringService.d.ts +0 -8
- package/lib/src/Services/RecurringService.js +0 -28
- package/lib/src/Services/RecurringService.js.map +0 -1
- package/lib/src/Services/ReportingService.d.ts +0 -6
- package/lib/src/Services/ReportingService.js +0 -20
- package/lib/src/Services/ReportingService.js.map +0 -1
- package/lib/src/Services/index.d.ts +0 -9
- package/lib/src/Services/index.js +0 -22
- package/lib/src/Services/index.js.map +0 -1
- package/lib/src/ServicesConfig.d.ts +0 -27
- package/lib/src/ServicesConfig.js +0 -51
- package/lib/src/ServicesConfig.js.map +0 -1
- package/lib/src/ServicesContainer.d.ts +0 -26
- package/lib/src/ServicesContainer.js +0 -140
- package/lib/src/ServicesContainer.js.map +0 -1
- package/lib/src/Utils/GenerationUtils.d.ts +0 -5
- package/lib/src/Utils/GenerationUtils.js +0 -37
- package/lib/src/Utils/GenerationUtils.js.map +0 -1
- package/lib/src/Utils/InputValidation.d.ts +0 -12
- package/lib/src/Utils/InputValidation.js +0 -73
- package/lib/src/Utils/InputValidation.js.map +0 -1
- package/lib/src/Utils/Sha1.d.ts +0 -6
- package/lib/src/Utils/Sha1.js +0 -226
- package/lib/src/Utils/Sha1.js.map +0 -1
- package/lib/src/Utils/StringUtils.d.ts +0 -6
- package/lib/src/Utils/StringUtils.js +0 -54
- package/lib/src/Utils/StringUtils.js.map +0 -1
- package/lib/src/Utils/index.d.ts +0 -2
- package/lib/src/Utils/index.js +0 -15
- package/lib/src/Utils/index.js.map +0 -1
- package/lib/src/index.d.ts +0 -12
- package/lib/src/index.js +0 -29
- package/lib/src/index.js.map +0 -1
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -233
- package/lib/test/Data/TestCards.js.map +0 -1
- package/lib/test/Data/TestChecks.d.ts +0 -4
- package/lib/test/Data/TestChecks.js +0 -33
- package/lib/test/Data/TestChecks.js.map +0 -1
- package/lib/test/Data/index.d.ts +0 -2
- package/lib/test/Data/index.js +0 -15
- package/lib/test/Data/index.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -113
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -484
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -84
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1721
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -84
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1758
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -683
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2219
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -708
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -152
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -172
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -193
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -378
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -197
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -48
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +0 -101
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +0 -353
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +0 -124
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +0 -143
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -372
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +0 -101
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +0 -536
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +0 -125
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +0 -145
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -33
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -269
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -31
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4374
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -759
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2400
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1657
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5651
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1986
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2370
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1704
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2054
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2470
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3117
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2032
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -323
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -99
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -264
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -99
- package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js +0 -314
- package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js +0 -155
- package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js +0 -136
- package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -162
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -140
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -73
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -203
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -71
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,8 +0,0 @@
|
|
|
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";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|