globalpayments-api 3.0.0 → 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 -32
- package/package.json +65 -58
- 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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationClause.js","sourceRoot":"","sources":["../../../../src/Builders/BaseBuilder/ValidationClause.ts"],"names":[],"mappings":";;;AAIA;IAOE,0BACE,MAAmB,EACnB,MAAwB,EACxB,YAAoB;QAApB,6BAAA,EAAA,oBAAoB;QAEpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,oCAAS,GAAhB,UAAiB,OAAgB;QAAjC,iBAgBC;QAfC,IAAI,CAAC,QAAQ,GAAG,UAAI,OAAuB;YACzC,IAAM,KAAK,GAAG,OAAO,CAAC,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5C,OAAO,SAAS,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,CAAC;QAC/C,CAAC,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,OAAO;YACpB,CAAC,CAAC,OAAO;YACT,CAAC,CAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,+CAA4C,CAAC;QAExE,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QAED,OAAO,IAAI,CAAC,MAAM;aACf,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;IAEM,iCAAM,GAAb,UAAc,OAAgB;QAA9B,iBAgBC;QAfC,IAAI,CAAC,QAAQ,GAAG,UAAI,OAAuB;YACzC,IAAM,KAAK,GAAG,OAAO,CAAC,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5C,OAAO,SAAS,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,CAAC;QAC/C,CAAC,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,OAAO;YACpB,CAAC,CAAC,OAAO;YACT,CAAC,CAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,8CAA2C,CAAC;QAEvE,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QAED,OAAO,IAAI,CAAC,MAAM;aACf,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;IAEM,qCAAU,GAAjB,UAAkB,OAAgB;QAAlC,iBAgBC;QAfC,IAAI,CAAC,QAAQ,GAAG,UAAI,OAAuB;YACzC,IAAM,KAAK,GAAG,OAAO,CAAC,KAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5C,OAAO,CAAC,CAAC,KAAK,CAAC;QACjB,CAAC,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,OAAO;YACpB,CAAC,CAAC,OAAO;YACT,CAAC,CAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,gDAA6C,CAAC;QAEzE,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QAED,OAAO,IAAI,CAAC,MAAM;aACf,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;IACH,uBAAC;AAAD,CAAC,AAtED,IAsEC;AAtEY,4CAAgB"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ValidationClause } from "./ValidationClause";
|
|
2
|
-
import { Validations } from "./Validations";
|
|
3
|
-
export declare class ValidationTarget {
|
|
4
|
-
parent: Validations;
|
|
5
|
-
type: number;
|
|
6
|
-
property: string;
|
|
7
|
-
clause: ValidationClause;
|
|
8
|
-
constraint: number;
|
|
9
|
-
constraintProperty: string;
|
|
10
|
-
enumName: string;
|
|
11
|
-
precondition: ValidationClause;
|
|
12
|
-
constructor(parent: Validations, enumName: string, type: number);
|
|
13
|
-
with(property: string, constraint: number): this;
|
|
14
|
-
check(targetProperty: string): ValidationClause;
|
|
15
|
-
when(targetProperty: string): ValidationClause;
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationTarget = void 0;
|
|
4
|
-
var ValidationClause_1 = require("./ValidationClause");
|
|
5
|
-
var ValidationTarget = /** @class */ (function () {
|
|
6
|
-
function ValidationTarget(parent, enumName, type) {
|
|
7
|
-
this.parent = parent;
|
|
8
|
-
this.type = type;
|
|
9
|
-
this.enumName = enumName;
|
|
10
|
-
}
|
|
11
|
-
ValidationTarget.prototype.with = function (property, constraint) {
|
|
12
|
-
this.constraintProperty = property;
|
|
13
|
-
this.constraint = constraint;
|
|
14
|
-
return this;
|
|
15
|
-
};
|
|
16
|
-
ValidationTarget.prototype.check = function (targetProperty) {
|
|
17
|
-
this.property = targetProperty;
|
|
18
|
-
this.clause = new ValidationClause_1.ValidationClause(this.parent, this);
|
|
19
|
-
return this.clause;
|
|
20
|
-
};
|
|
21
|
-
ValidationTarget.prototype.when = function (targetProperty) {
|
|
22
|
-
this.property = targetProperty;
|
|
23
|
-
this.precondition = new ValidationClause_1.ValidationClause(this.parent, this, true);
|
|
24
|
-
return this.precondition;
|
|
25
|
-
};
|
|
26
|
-
return ValidationTarget;
|
|
27
|
-
}());
|
|
28
|
-
exports.ValidationTarget = ValidationTarget;
|
|
29
|
-
//# sourceMappingURL=ValidationTarget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationTarget.js","sourceRoot":"","sources":["../../../../src/Builders/BaseBuilder/ValidationTarget.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAGtD;IAUE,0BAAmB,MAAmB,EAAE,QAAgB,EAAE,IAAY;QACpE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,+BAAI,GAAX,UAAY,QAAgB,EAAE,UAAkB;QAC9C,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,gCAAK,GAAZ,UAAa,cAAsB;QACjC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEM,+BAAI,GAAX,UAAY,cAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IACH,uBAAC;AAAD,CAAC,AAjCD,IAiCC;AAjCY,4CAAgB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseBuilder } from "../../";
|
|
2
|
-
import { ValidationTarget } from "./ValidationTarget";
|
|
3
|
-
export interface IRuleSet {
|
|
4
|
-
[key: string]: ValidationTarget[][];
|
|
5
|
-
}
|
|
6
|
-
export declare class Validations {
|
|
7
|
-
rules: IRuleSet;
|
|
8
|
-
constructor();
|
|
9
|
-
of(enumProperty: string, type: number): ValidationTarget;
|
|
10
|
-
validate<T>(builder: BaseBuilder<T>): void;
|
|
11
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Validations = void 0;
|
|
4
|
-
var __1 = require("../../");
|
|
5
|
-
var ValidationTarget_1 = require("./ValidationTarget");
|
|
6
|
-
var Validations = /** @class */ (function () {
|
|
7
|
-
function Validations() {
|
|
8
|
-
this.rules = {};
|
|
9
|
-
}
|
|
10
|
-
Validations.prototype.of = function (enumProperty, type) {
|
|
11
|
-
if (!this.rules.hasOwnProperty(enumProperty)) {
|
|
12
|
-
this.rules[enumProperty] = [];
|
|
13
|
-
}
|
|
14
|
-
if (!this.rules[enumProperty].hasOwnProperty(type.toString())) {
|
|
15
|
-
this.rules[enumProperty][type] = [];
|
|
16
|
-
}
|
|
17
|
-
var target = new ValidationTarget_1.ValidationTarget(this, enumProperty, type);
|
|
18
|
-
this.rules[enumProperty][type].push(target);
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
Validations.prototype.validate = function (builder) {
|
|
22
|
-
var _this = this;
|
|
23
|
-
Object.keys(this.rules).forEach(function (enumName) {
|
|
24
|
-
_this.rules[enumName].forEach(function (rules, iKey) {
|
|
25
|
-
var value = builder[enumName];
|
|
26
|
-
if ((value === undefined || value === null) &&
|
|
27
|
-
builder instanceof __1.TransactionBuilder &&
|
|
28
|
-
builder.paymentMethod) {
|
|
29
|
-
value = builder.paymentMethod[enumName];
|
|
30
|
-
if (value === undefined || value === null) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if ((iKey & value) !== value) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
for (var _i = 0, rules_1 = rules; _i < rules_1.length; _i++) {
|
|
38
|
-
var validation = rules_1[_i];
|
|
39
|
-
if (!validation.clause) {
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
if (validation.constraint !== undefined &&
|
|
43
|
-
validation.constraint !== null &&
|
|
44
|
-
validation.constraint !== builder[validation.constraintProperty]) {
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
if (!validation.clause.callback(builder)) {
|
|
48
|
-
throw new __1.BuilderError(validation.clause.message);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
return Validations;
|
|
55
|
-
}());
|
|
56
|
-
exports.Validations = Validations;
|
|
57
|
-
//# sourceMappingURL=Validations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validations.js","sourceRoot":"","sources":["../../../../src/Builders/BaseBuilder/Validations.ts"],"names":[],"mappings":";;;AAAA,4BAAuE;AACvE,uDAAsD;AAMtD;IAGE;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,CAAC;IAEM,wBAAE,GAAT,UAAU,YAAoB,EAAE,IAAY;QAC1C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE;YAC5C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;SAC/B;QAED,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE;YAC7D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;SACrC;QAED,IAAM,MAAM,GAAG,IAAI,mCAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,8BAAQ,GAAf,UAAmB,OAAuB;QAA1C,iBAuCC;QAtCC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,UAAC,QAAQ;YACvC,KAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,UAAC,KAAK,EAAE,IAAI;gBACvC,IAAI,KAAK,GAAW,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAEtC,IACE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;oBACvC,OAAO,YAAY,sBAAkB;oBACrC,OAAO,CAAC,aAAa,EACrB;oBACA,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACxC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;wBACzC,OAAO;qBACR;iBACF;gBAED,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,KAAK,EAAE;oBAC5B,OAAO;iBACR;gBAED,KAAyB,UAAK,EAAL,eAAK,EAAL,mBAAK,EAAL,IAAK,EAAE;oBAA3B,IAAM,UAAU,cAAA;oBACnB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;wBACtB,SAAS;qBACV;oBAED,IACE,UAAU,CAAC,UAAU,KAAK,SAAS;wBACnC,UAAU,CAAC,UAAU,KAAK,IAAI;wBAC9B,UAAU,CAAC,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAChE;wBACA,SAAS;qBACV;oBAED,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;wBACxC,MAAM,IAAI,gBAAY,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;qBACnD;iBACF;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;IACH,kBAAC;AAAD,CAAC,AA7DD,IA6DC;AA7DY,kCAAW"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Validations } from "./BaseBuilder/Validations";
|
|
2
|
-
export interface IDictionary<T> {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
}
|
|
5
|
-
export declare abstract class BaseBuilder<T> {
|
|
6
|
-
protected validations: Validations;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
constructor();
|
|
9
|
-
execute(): Promise<T | undefined>;
|
|
10
|
-
protected abstract setupValidations(): void;
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseBuilder = void 0;
|
|
4
|
-
var Validations_1 = require("./BaseBuilder/Validations");
|
|
5
|
-
var BaseBuilder = /** @class */ (function () {
|
|
6
|
-
function BaseBuilder() {
|
|
7
|
-
this.validations = new Validations_1.Validations();
|
|
8
|
-
this.setupValidations();
|
|
9
|
-
}
|
|
10
|
-
BaseBuilder.prototype.execute = function () {
|
|
11
|
-
this.validations.validate(this);
|
|
12
|
-
return Promise.resolve(undefined);
|
|
13
|
-
};
|
|
14
|
-
return BaseBuilder;
|
|
15
|
-
}());
|
|
16
|
-
exports.BaseBuilder = BaseBuilder;
|
|
17
|
-
//# sourceMappingURL=BaseBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBuilder.js","sourceRoot":"","sources":["../../../src/Builders/BaseBuilder.ts"],"names":[],"mappings":";;;AAAA,yDAAwD;AAMxD;IAIE;QACE,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAC;QACrC,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAEM,6BAAO,GAAd;QACE,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;IAGH,kBAAC;AAAD,CAAC,AAfD,IAeC;AAfqB,kCAAW"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { ReasonCode, TaxType, Transaction } from "../";
|
|
2
|
-
import { TransactionBuilder } from "./TransactionBuilder";
|
|
3
|
-
export declare class ManagementBuilder extends TransactionBuilder<Transaction> {
|
|
4
|
-
amount: string | number;
|
|
5
|
-
authAmount: string | number;
|
|
6
|
-
get authorizationCode(): string | undefined;
|
|
7
|
-
get clientTransactionId(): string | undefined;
|
|
8
|
-
currency: string;
|
|
9
|
-
description: string;
|
|
10
|
-
gratuity: string | number;
|
|
11
|
-
get orderId(): string | undefined;
|
|
12
|
-
poNumber: string;
|
|
13
|
-
reasonCode?: ReasonCode;
|
|
14
|
-
taxAmount: string | number;
|
|
15
|
-
taxType: TaxType;
|
|
16
|
-
get transactionId(): string | undefined;
|
|
17
|
-
constructor(type: number);
|
|
18
|
-
/**
|
|
19
|
-
* Executes the builder against the gateway.
|
|
20
|
-
*
|
|
21
|
-
* @returns Promise<Transaction>
|
|
22
|
-
*/
|
|
23
|
-
execute(): Promise<Transaction>;
|
|
24
|
-
protected setupValidations(): void;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the current transaction's amount.
|
|
27
|
-
*
|
|
28
|
-
* @param amount The amount
|
|
29
|
-
* @returns ManagementBuilder
|
|
30
|
-
*/
|
|
31
|
-
withAmount(amount?: string | number): this;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the current transaction's authorized amount; where applicable.
|
|
34
|
-
*
|
|
35
|
-
* @param amount The authorized amount
|
|
36
|
-
* @returns ManagementBuilder
|
|
37
|
-
*/
|
|
38
|
-
withAuthAmount(amount?: string | number): this;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the currency.
|
|
41
|
-
*
|
|
42
|
-
* The formatting for the supplied value will currently depend on
|
|
43
|
-
* the configured gateway's requirements.
|
|
44
|
-
*
|
|
45
|
-
* @param currency The currency
|
|
46
|
-
* @returns ManagementBuilder
|
|
47
|
-
*/
|
|
48
|
-
withCurrency(currency?: string): this;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the transaction's description.
|
|
51
|
-
*
|
|
52
|
-
* This value is not guaranteed to be sent in the authorization
|
|
53
|
-
* or settlement process.
|
|
54
|
-
*
|
|
55
|
-
* @param description The description
|
|
56
|
-
* @returns ManagementBuilder
|
|
57
|
-
*/
|
|
58
|
-
withDescription(description?: string): this;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the gratuity amount; where applicable.
|
|
61
|
-
*
|
|
62
|
-
* This value is information only and does not affect
|
|
63
|
-
* the authorization amount.
|
|
64
|
-
*
|
|
65
|
-
* @param gratuity The gratuity amount
|
|
66
|
-
* @returns ManagementBuilder
|
|
67
|
-
*/
|
|
68
|
-
withGratuity(gratuity?: string | number): this;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the purchase order number; where applicable.
|
|
71
|
-
*
|
|
72
|
-
* @param poNumber The PO number
|
|
73
|
-
* @returns ManagementBuilder
|
|
74
|
-
*/
|
|
75
|
-
withPoNumber(poNumber?: string): this;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the reason code for the transaction.
|
|
78
|
-
*
|
|
79
|
-
* @param reasonCode The reason code
|
|
80
|
-
* @returns ManagementBuilder
|
|
81
|
-
*/
|
|
82
|
-
withReasonCode(reasonCode?: ReasonCode): this;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the tax amount.
|
|
85
|
-
*
|
|
86
|
-
* Useful for commercial purchase card requests.
|
|
87
|
-
*
|
|
88
|
-
* @see AuthorizationBuilder.WithCommercialRequest
|
|
89
|
-
* @param amount The tax amount
|
|
90
|
-
* @returns ManagementBuilder
|
|
91
|
-
*/
|
|
92
|
-
withTaxAmount(amount?: string | number): this;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the tax type.
|
|
95
|
-
*
|
|
96
|
-
* Useful for commercial purchase card requests.
|
|
97
|
-
*
|
|
98
|
-
* @see AuthorizationBuilder.withCommercialRequest
|
|
99
|
-
* @param type The tax type
|
|
100
|
-
* @returns ManagementBuilder
|
|
101
|
-
*/
|
|
102
|
-
withTaxType(type?: TaxType): this;
|
|
103
|
-
}
|
|
@@ -1,228 +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.ManagementBuilder = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var TransactionBuilder_1 = require("./TransactionBuilder");
|
|
21
|
-
var ManagementBuilder = /** @class */ (function (_super) {
|
|
22
|
-
__extends(ManagementBuilder, _super);
|
|
23
|
-
function ManagementBuilder(type) {
|
|
24
|
-
return _super.call(this, type) || this;
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(ManagementBuilder.prototype, "authorizationCode", {
|
|
27
|
-
get: function () {
|
|
28
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
29
|
-
return this.paymentMethod.authCode;
|
|
30
|
-
}
|
|
31
|
-
return undefined;
|
|
32
|
-
},
|
|
33
|
-
enumerable: false,
|
|
34
|
-
configurable: true
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(ManagementBuilder.prototype, "clientTransactionId", {
|
|
37
|
-
get: function () {
|
|
38
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
39
|
-
return this.paymentMethod.clientTransactionId;
|
|
40
|
-
}
|
|
41
|
-
return undefined;
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(ManagementBuilder.prototype, "orderId", {
|
|
47
|
-
get: function () {
|
|
48
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
49
|
-
return this.paymentMethod.orderId;
|
|
50
|
-
}
|
|
51
|
-
return undefined;
|
|
52
|
-
},
|
|
53
|
-
enumerable: false,
|
|
54
|
-
configurable: true
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(ManagementBuilder.prototype, "transactionId", {
|
|
57
|
-
get: function () {
|
|
58
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
59
|
-
return this.paymentMethod.transactionId;
|
|
60
|
-
}
|
|
61
|
-
return undefined;
|
|
62
|
-
},
|
|
63
|
-
enumerable: false,
|
|
64
|
-
configurable: true
|
|
65
|
-
});
|
|
66
|
-
/**
|
|
67
|
-
* Executes the builder against the gateway.
|
|
68
|
-
*
|
|
69
|
-
* @returns Promise<Transaction>
|
|
70
|
-
*/
|
|
71
|
-
ManagementBuilder.prototype.execute = function () {
|
|
72
|
-
_super.prototype.execute.call(this);
|
|
73
|
-
return __1.ServicesContainer.instance()
|
|
74
|
-
.getClient()
|
|
75
|
-
.manageTransaction(this);
|
|
76
|
-
};
|
|
77
|
-
ManagementBuilder.prototype.setupValidations = function () {
|
|
78
|
-
this.validations
|
|
79
|
-
.of("transactionType",
|
|
80
|
-
/* tslint:disable:trailing-comma */
|
|
81
|
-
__1.TransactionType.Capture |
|
|
82
|
-
__1.TransactionType.Edit |
|
|
83
|
-
__1.TransactionType.Hold |
|
|
84
|
-
__1.TransactionType.Release)
|
|
85
|
-
.check("transactionId")
|
|
86
|
-
.isNotNull();
|
|
87
|
-
this.validations
|
|
88
|
-
.of("transactionType", __1.TransactionType.Edit)
|
|
89
|
-
.with("transactionModifier", __1.TransactionModifier.LevelII)
|
|
90
|
-
.check("taxType")
|
|
91
|
-
.isNotNull();
|
|
92
|
-
this.validations
|
|
93
|
-
.of("transactionType", __1.TransactionType.Refund)
|
|
94
|
-
.when("amount")
|
|
95
|
-
.isNotNull()
|
|
96
|
-
.check("currency")
|
|
97
|
-
.isNotNull();
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Sets the current transaction's amount.
|
|
101
|
-
*
|
|
102
|
-
* @param amount The amount
|
|
103
|
-
* @returns ManagementBuilder
|
|
104
|
-
*/
|
|
105
|
-
ManagementBuilder.prototype.withAmount = function (amount) {
|
|
106
|
-
if (amount !== undefined) {
|
|
107
|
-
this.amount = amount;
|
|
108
|
-
}
|
|
109
|
-
return this;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Sets the current transaction's authorized amount; where applicable.
|
|
113
|
-
*
|
|
114
|
-
* @param amount The authorized amount
|
|
115
|
-
* @returns ManagementBuilder
|
|
116
|
-
*/
|
|
117
|
-
ManagementBuilder.prototype.withAuthAmount = function (amount) {
|
|
118
|
-
if (amount !== undefined) {
|
|
119
|
-
this.authAmount = amount;
|
|
120
|
-
}
|
|
121
|
-
return this;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Sets the currency.
|
|
125
|
-
*
|
|
126
|
-
* The formatting for the supplied value will currently depend on
|
|
127
|
-
* the configured gateway's requirements.
|
|
128
|
-
*
|
|
129
|
-
* @param currency The currency
|
|
130
|
-
* @returns ManagementBuilder
|
|
131
|
-
*/
|
|
132
|
-
ManagementBuilder.prototype.withCurrency = function (currency) {
|
|
133
|
-
if (currency !== undefined) {
|
|
134
|
-
this.currency = currency;
|
|
135
|
-
}
|
|
136
|
-
return this;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Sets the transaction's description.
|
|
140
|
-
*
|
|
141
|
-
* This value is not guaranteed to be sent in the authorization
|
|
142
|
-
* or settlement process.
|
|
143
|
-
*
|
|
144
|
-
* @param description The description
|
|
145
|
-
* @returns ManagementBuilder
|
|
146
|
-
*/
|
|
147
|
-
ManagementBuilder.prototype.withDescription = function (description) {
|
|
148
|
-
if (description !== undefined) {
|
|
149
|
-
this.description = description;
|
|
150
|
-
}
|
|
151
|
-
return this;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Sets the gratuity amount; where applicable.
|
|
155
|
-
*
|
|
156
|
-
* This value is information only and does not affect
|
|
157
|
-
* the authorization amount.
|
|
158
|
-
*
|
|
159
|
-
* @param gratuity The gratuity amount
|
|
160
|
-
* @returns ManagementBuilder
|
|
161
|
-
*/
|
|
162
|
-
ManagementBuilder.prototype.withGratuity = function (gratuity) {
|
|
163
|
-
if (gratuity !== undefined) {
|
|
164
|
-
this.gratuity = gratuity;
|
|
165
|
-
}
|
|
166
|
-
return this;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Sets the purchase order number; where applicable.
|
|
170
|
-
*
|
|
171
|
-
* @param poNumber The PO number
|
|
172
|
-
* @returns ManagementBuilder
|
|
173
|
-
*/
|
|
174
|
-
ManagementBuilder.prototype.withPoNumber = function (poNumber) {
|
|
175
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
176
|
-
if (poNumber !== undefined) {
|
|
177
|
-
this.poNumber = poNumber;
|
|
178
|
-
}
|
|
179
|
-
return this;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Sets the reason code for the transaction.
|
|
183
|
-
*
|
|
184
|
-
* @param reasonCode The reason code
|
|
185
|
-
* @returns ManagementBuilder
|
|
186
|
-
*/
|
|
187
|
-
ManagementBuilder.prototype.withReasonCode = function (reasonCode) {
|
|
188
|
-
if (reasonCode !== undefined) {
|
|
189
|
-
this.reasonCode = reasonCode;
|
|
190
|
-
}
|
|
191
|
-
return this;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Sets the tax amount.
|
|
195
|
-
*
|
|
196
|
-
* Useful for commercial purchase card requests.
|
|
197
|
-
*
|
|
198
|
-
* @see AuthorizationBuilder.WithCommercialRequest
|
|
199
|
-
* @param amount The tax amount
|
|
200
|
-
* @returns ManagementBuilder
|
|
201
|
-
*/
|
|
202
|
-
ManagementBuilder.prototype.withTaxAmount = function (amount) {
|
|
203
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
204
|
-
if (amount !== undefined) {
|
|
205
|
-
this.taxAmount = amount;
|
|
206
|
-
}
|
|
207
|
-
return this;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Sets the tax type.
|
|
211
|
-
*
|
|
212
|
-
* Useful for commercial purchase card requests.
|
|
213
|
-
*
|
|
214
|
-
* @see AuthorizationBuilder.withCommercialRequest
|
|
215
|
-
* @param type The tax type
|
|
216
|
-
* @returns ManagementBuilder
|
|
217
|
-
*/
|
|
218
|
-
ManagementBuilder.prototype.withTaxType = function (type) {
|
|
219
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
220
|
-
if (type !== undefined) {
|
|
221
|
-
this.taxType = type;
|
|
222
|
-
}
|
|
223
|
-
return this;
|
|
224
|
-
};
|
|
225
|
-
return ManagementBuilder;
|
|
226
|
-
}(TransactionBuilder_1.TransactionBuilder));
|
|
227
|
-
exports.ManagementBuilder = ManagementBuilder;
|
|
228
|
-
//# sourceMappingURL=ManagementBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagementBuilder.js","sourceRoot":"","sources":["../../../src/Builders/ManagementBuilder.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { BaseBuilder } from "./";
|
|
2
|
-
import { CreditCardData } from "../PaymentMethods";
|
|
3
|
-
import { DocumentUploadData } from "../Entities/DocumentUploadData";
|
|
4
|
-
import { AccountPermissions } from "../Entities/ProFac/AccountPermissions";
|
|
5
|
-
import { BankAccountData } from "../Entities/ProFac/BankAccountData";
|
|
6
|
-
import { BankAccountOwnershipData } from "../Entities/ProFac/BankAccountOwnershipData";
|
|
7
|
-
import { BeneficialOwnerData } from "../Entities/ProFac/BeneficialOwnerData";
|
|
8
|
-
import { BusinessData } from "../Entities/ProFac/BusinessData";
|
|
9
|
-
import { DeviceData } from "../Entities/ProFac/DeviceData";
|
|
10
|
-
import { FlashFundsPaymentCardData } from "../Entities/ProFac/FlashFundsPaymentCardData";
|
|
11
|
-
import { GrossBillingInformation } from "../Entities/ProFac/GrossBillingInformation";
|
|
12
|
-
import { RenewAccountData } from "../Entities/ProFac/RenewAccountData";
|
|
13
|
-
import { SignificantOwnerData } from "../Entities/ProFac/SignificantOwnerData";
|
|
14
|
-
import { ThreatRiskData } from "../Entities/ProFac/ThreatRiskData";
|
|
15
|
-
import { UserPersonalData } from "../Entities/ProFac/UserPersonalData";
|
|
16
|
-
import { SSORequestData } from "../Entities/SSORequestData";
|
|
17
|
-
import { Address, Transaction, TransactionModifier, TransactionType } from "../";
|
|
18
|
-
import { OrderDevice } from "../Entities/ProFac/OrderDevice";
|
|
19
|
-
export declare class PayFacBuilder extends BaseBuilder<Transaction> {
|
|
20
|
-
protected setupValidations(): void;
|
|
21
|
-
transactionType: TransactionType;
|
|
22
|
-
transactionModifier: TransactionModifier;
|
|
23
|
-
bankAccountData: BankAccountData;
|
|
24
|
-
beneficialOwnerData: BeneficialOwnerData;
|
|
25
|
-
deviceData: DeviceData;
|
|
26
|
-
timeZone: string;
|
|
27
|
-
businessData: BusinessData;
|
|
28
|
-
significantOwnerData: SignificantOwnerData;
|
|
29
|
-
threatRiskData: ThreatRiskData;
|
|
30
|
-
userPersonalData: UserPersonalData;
|
|
31
|
-
creditCardInformation: CreditCardData;
|
|
32
|
-
aCHInformation: BankAccountData;
|
|
33
|
-
mailingAddressInformation: Address;
|
|
34
|
-
secondaryBankInformation: BankAccountData;
|
|
35
|
-
grossBillingInformation: GrossBillingInformation;
|
|
36
|
-
negativeLimit: string;
|
|
37
|
-
renewalAccountData: RenewAccountData;
|
|
38
|
-
accountNumber: string;
|
|
39
|
-
password: string;
|
|
40
|
-
accountPermissions: AccountPermissions;
|
|
41
|
-
primaryBankAccountOwner: BankAccountOwnershipData;
|
|
42
|
-
secondaryBankAccountOwner: BankAccountOwnershipData;
|
|
43
|
-
documentUploadData: DocumentUploadData;
|
|
44
|
-
sSORequestData: SSORequestData;
|
|
45
|
-
amount: string;
|
|
46
|
-
receivingAccountNumber: string;
|
|
47
|
-
allowPending: boolean;
|
|
48
|
-
cCAmount: string;
|
|
49
|
-
requireCCRefund: boolean;
|
|
50
|
-
transNum: string;
|
|
51
|
-
externalID: string;
|
|
52
|
-
sourceEmail: string;
|
|
53
|
-
gatewayTransactionId: string;
|
|
54
|
-
cardBrandTransactionId: string;
|
|
55
|
-
globaltransId: string;
|
|
56
|
-
globalTransSource: string;
|
|
57
|
-
orderDevice: OrderDevice;
|
|
58
|
-
constructor(type: TransactionType, modifer?: TransactionModifier);
|
|
59
|
-
execute(): Promise<Transaction>;
|
|
60
|
-
withBankAccountData(bankAccountData: BankAccountData): this;
|
|
61
|
-
withBeneficialOwnerData(beneficialOwnerData: BeneficialOwnerData): this;
|
|
62
|
-
withDeviceData(deviceData: DeviceData): this;
|
|
63
|
-
withTimeZone(timezone: string): this;
|
|
64
|
-
withBusinessData(businessData: BusinessData): this;
|
|
65
|
-
withSignificantOwnerData(significantOwnerData: SignificantOwnerData): this;
|
|
66
|
-
withThreatRiskData(threatRiskData: ThreatRiskData): this;
|
|
67
|
-
withUserPersonalData(userPersonalData: UserPersonalData): this;
|
|
68
|
-
withCreditCardData(creditCardInformation: CreditCardData): this;
|
|
69
|
-
withACHData(achInformation: BankAccountData): this;
|
|
70
|
-
withMailingAddress(mailingAddressInformation: Address): this;
|
|
71
|
-
withSecondaryBankAccountData(secondaryBankInformation: BankAccountData): this;
|
|
72
|
-
withGrossBillingSettleData(grossBillingInformation: GrossBillingInformation): this;
|
|
73
|
-
withAccountNumber(accountNumber: string): this;
|
|
74
|
-
withPassword(password: string): this;
|
|
75
|
-
withAccountPermissions(accountPermissions: AccountPermissions): this;
|
|
76
|
-
withPrimaryBankAccountOwner(primaryBankAccountOwner: BankAccountOwnershipData): this;
|
|
77
|
-
withSecondaryBankAccountOwner(secondaryBankAccountOwner: BankAccountOwnershipData): this;
|
|
78
|
-
withDocumentUploadData(docUploadData: DocumentUploadData): this;
|
|
79
|
-
withSSORequestData(ssoRequestData: SSORequestData): this;
|
|
80
|
-
withNegativeLimit(negativeLimit: string): this;
|
|
81
|
-
withRenewalAccountData(renewalAccountData: RenewAccountData): this;
|
|
82
|
-
withAmount(amount: string): this;
|
|
83
|
-
withFlashFundsPaymentCardData(cardData: FlashFundsPaymentCardData): this;
|
|
84
|
-
withReceivingAccountNumber(receivingAccountNumber: string): this;
|
|
85
|
-
withAllowPending(allowPending: boolean): this;
|
|
86
|
-
withCCAmount(ccAmount: string): this;
|
|
87
|
-
withRequireCCRefund(requireCCRefund: boolean): this;
|
|
88
|
-
withTransNum(transNum: string): this;
|
|
89
|
-
withGatewayTransactionId(gatewayTransactionId: string): this;
|
|
90
|
-
withCardBrandTransactionId(cardBrandTransactionId: string): this;
|
|
91
|
-
withGlobaltransId(globaltransId: string): this;
|
|
92
|
-
withGlobalTransSource(globalTransSource: string): this;
|
|
93
|
-
withExternalID(externalId: string): this;
|
|
94
|
-
withSourceEmail(sourceEmail: string): this;
|
|
95
|
-
withOrderDevice(orderDevice: OrderDevice): this;
|
|
96
|
-
}
|