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,695 +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.ProPayConnector = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var Enums_1 = require("../Entities/Enums");
|
|
21
|
-
var XmlGateway_1 = require("./XmlGateway");
|
|
22
|
-
var elementtree_1 = require("@azz/elementtree");
|
|
23
|
-
var BusinessData_1 = require("../Entities/ProFac/BusinessData");
|
|
24
|
-
var UserPersonalData_1 = require("../Entities/ProFac/UserPersonalData");
|
|
25
|
-
var AccountPermissions_1 = require("../Entities/ProFac/AccountPermissions");
|
|
26
|
-
var GrossBillingInformation_1 = require("../Entities/ProFac/GrossBillingInformation");
|
|
27
|
-
var Entities_1 = require("../Entities");
|
|
28
|
-
var PayFacResponseData_1 = require("../Entities/ProFac/PayFacResponseData");
|
|
29
|
-
var BankAccountData_1 = require("../Entities/ProFac/BankAccountData");
|
|
30
|
-
var AccountBalanceResponseData_1 = require("../Entities/ProFac/AccountBalanceResponseData");
|
|
31
|
-
var BeneficialOwnerDataResult_1 = require("../Entities/ProFac/BeneficialOwnerDataResult");
|
|
32
|
-
var fs = require("fs");
|
|
33
|
-
var ProPayConnector = /** @class */ (function (_super) {
|
|
34
|
-
__extends(ProPayConnector, _super);
|
|
35
|
-
function ProPayConnector() {
|
|
36
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
-
}
|
|
38
|
-
ProPayConnector.prototype.processPayFac = function (builder) {
|
|
39
|
-
var _this = this;
|
|
40
|
-
var transaction = elementtree_1.Element("XMLRequest");
|
|
41
|
-
// Credentials
|
|
42
|
-
elementtree_1.SubElement(transaction, "certStr").append(elementtree_1.CData(this.certStr.toString()));
|
|
43
|
-
elementtree_1.SubElement(transaction, "termid").append(elementtree_1.CData(this.termID));
|
|
44
|
-
elementtree_1.SubElement(transaction, "class").append(elementtree_1.CData("partner"));
|
|
45
|
-
//Transaction
|
|
46
|
-
var xmlTrans = elementtree_1.SubElement(transaction, "XMLTrans");
|
|
47
|
-
elementtree_1.SubElement(xmlTrans, "transType").append(elementtree_1.CData(this.mapRequestType(builder)));
|
|
48
|
-
this.HydrateAccountDetails(xmlTrans, builder);
|
|
49
|
-
return this.doTransaction(new elementtree_1.ElementTree(transaction).write()).then(function (response) { return _this.mapResponse(builder, response); });
|
|
50
|
-
};
|
|
51
|
-
ProPayConnector.prototype.HydrateAccountDetails = function (xmlTrans, builder) {
|
|
52
|
-
this.UpdateGatewaySettings(builder);
|
|
53
|
-
// common fields
|
|
54
|
-
this.hydrateCommonFields(xmlTrans, builder);
|
|
55
|
-
if (builder.password != null) {
|
|
56
|
-
elementtree_1.SubElement(xmlTrans, "password").append(elementtree_1.CData(builder.password));
|
|
57
|
-
}
|
|
58
|
-
if (builder.accountPermissions != null) {
|
|
59
|
-
this.HydrateAccountPermissions(xmlTrans, builder.accountPermissions);
|
|
60
|
-
}
|
|
61
|
-
if (builder.userPersonalData != null) {
|
|
62
|
-
this.HydrateUserPersonalData(xmlTrans, builder.userPersonalData);
|
|
63
|
-
}
|
|
64
|
-
if (builder.businessData != null) {
|
|
65
|
-
this.HydrateBusinessData(xmlTrans, builder.businessData);
|
|
66
|
-
}
|
|
67
|
-
this.HydrateBankDetails(xmlTrans, builder);
|
|
68
|
-
if (builder.mailingAddressInformation != null || builder.mailingAddressInformation != undefined) {
|
|
69
|
-
this.HydrateMailAddress(xmlTrans, builder.mailingAddressInformation);
|
|
70
|
-
}
|
|
71
|
-
if (builder.threatRiskData != null) {
|
|
72
|
-
this.HydrateThreatRiskData(xmlTrans, builder.threatRiskData);
|
|
73
|
-
}
|
|
74
|
-
if (builder.significantOwnerData != null) {
|
|
75
|
-
this.HydrateSignificantOwnerData(xmlTrans, builder.significantOwnerData);
|
|
76
|
-
}
|
|
77
|
-
if (builder.timeZone && builder.timeZone.trim()) {
|
|
78
|
-
elementtree_1.SubElement(xmlTrans, "TimeZone").append(elementtree_1.CData(builder.timeZone));
|
|
79
|
-
}
|
|
80
|
-
if (builder.deviceData != null) {
|
|
81
|
-
this.HydrateDeviceData(xmlTrans, builder.deviceData);
|
|
82
|
-
}
|
|
83
|
-
if (builder.beneficialOwnerData != null || builder.beneficialOwnerData != undefined) {
|
|
84
|
-
this.HydrateBeneficialOwnerData(xmlTrans, builder.beneficialOwnerData);
|
|
85
|
-
}
|
|
86
|
-
if (builder.grossBillingInformation != null) {
|
|
87
|
-
this.HydrateGrossBillingData(xmlTrans, builder.grossBillingInformation);
|
|
88
|
-
}
|
|
89
|
-
if (builder.renewalAccountData != null) {
|
|
90
|
-
this.HydrateAccountRenewDetails(xmlTrans, builder.renewalAccountData);
|
|
91
|
-
}
|
|
92
|
-
if (builder.FlashFundsPaymentCardData != null) {
|
|
93
|
-
this.HydrateFlashFundsPaymentCardData(xmlTrans, builder.FlashFundsPaymentCardData);
|
|
94
|
-
}
|
|
95
|
-
if (builder.documentUploadData != null) {
|
|
96
|
-
this.HydrateDocumentUploadData(xmlTrans, builder.TransactionType, builder.documentUploadData);
|
|
97
|
-
}
|
|
98
|
-
if (builder.sSORequestData != null) {
|
|
99
|
-
this.HydrateSSORequestData(xmlTrans, builder.sSORequestData);
|
|
100
|
-
}
|
|
101
|
-
if (builder.orderDevice != null) {
|
|
102
|
-
this.HydrateOrderDeviceData(xmlTrans, builder.orderDevice);
|
|
103
|
-
}
|
|
104
|
-
this.HydrateBankAccountOwnershipData(xmlTrans, builder);
|
|
105
|
-
};
|
|
106
|
-
ProPayConnector.prototype.hydrateCommonFields = function (xmlTrans, builder) {
|
|
107
|
-
var elementMap = {
|
|
108
|
-
'accountNum': builder.accountNumber ? builder.accountNumber : '',
|
|
109
|
-
'amount': builder.amount ? builder.amount : '',
|
|
110
|
-
'recAccntNum': builder.receivingAccountNumber ? builder.receivingAccountNumber : '',
|
|
111
|
-
'allowPending': builder.allowPending == true ? 'Y' : '',
|
|
112
|
-
'ccAmount': builder.cCAmount ? builder.cCAmount : '',
|
|
113
|
-
'requireCCRefund': builder.requireCCRefund == true ? 'Y' : builder.requireCCRefund == false ? 'N' : '',
|
|
114
|
-
'transNum': builder.transNum ? builder.transNum : '',
|
|
115
|
-
'gatewayTransactionId': builder.gatewayTransactionId ? builder.gatewayTransactionId : '',
|
|
116
|
-
'globaltransId': builder.globaltransId ? builder.globaltransId : '',
|
|
117
|
-
'globalTransSource': builder.globalTransSource ? builder.globalTransSource : '',
|
|
118
|
-
'cardBrandTransactionId': builder.cardBrandTransactionId ? builder.cardBrandTransactionId : '',
|
|
119
|
-
};
|
|
120
|
-
this.createNewElements(xmlTrans, elementMap);
|
|
121
|
-
};
|
|
122
|
-
ProPayConnector.prototype.HydrateBankAccountOwnershipData = function (xmlTrans, builder) {
|
|
123
|
-
var _a, _b;
|
|
124
|
-
if (builder.primaryBankAccountOwner != null || builder.secondaryBankAccountOwner != null) {
|
|
125
|
-
var ownersDataTag = elementtree_1.SubElement(xmlTrans, "BankAccountOwnerData");
|
|
126
|
-
if (builder.primaryBankAccountOwner != null) {
|
|
127
|
-
var primaryOwnerTag = elementtree_1.SubElement(ownersDataTag, "PrimaryBankAccountOwner");
|
|
128
|
-
elementtree_1.SubElement(primaryOwnerTag, "FirstName").text = builder.primaryBankAccountOwner.firstName;
|
|
129
|
-
elementtree_1.SubElement(primaryOwnerTag, "LastName").text = builder.primaryBankAccountOwner.lastName;
|
|
130
|
-
elementtree_1.SubElement(primaryOwnerTag, "Address1").text = (_a = builder.primaryBankAccountOwner.ownerAddress) === null || _a === void 0 ? void 0 : _a.streetAddress1;
|
|
131
|
-
elementtree_1.SubElement(primaryOwnerTag, "Address2").text = builder.primaryBankAccountOwner.ownerAddress.streetAddress2;
|
|
132
|
-
elementtree_1.SubElement(primaryOwnerTag, "Address3").text = builder.primaryBankAccountOwner.ownerAddress.streetAddress3;
|
|
133
|
-
elementtree_1.SubElement(primaryOwnerTag, "City").text = builder.primaryBankAccountOwner.ownerAddress.city;
|
|
134
|
-
elementtree_1.SubElement(primaryOwnerTag, "StateProvince").text = builder.primaryBankAccountOwner.ownerAddress.state;
|
|
135
|
-
elementtree_1.SubElement(primaryOwnerTag, "PostalCode").text = builder.primaryBankAccountOwner.ownerAddress.postalCode;
|
|
136
|
-
elementtree_1.SubElement(primaryOwnerTag, "Country").text = builder.primaryBankAccountOwner.ownerAddress.country;
|
|
137
|
-
elementtree_1.SubElement(primaryOwnerTag, "Phone").text = builder.primaryBankAccountOwner.phoneNumber;
|
|
138
|
-
}
|
|
139
|
-
if (builder.secondaryBankAccountOwner != null) {
|
|
140
|
-
var secondaryOwnerTag = elementtree_1.SubElement(ownersDataTag, "SecondaryBankAccountOwner");
|
|
141
|
-
elementtree_1.SubElement(secondaryOwnerTag, "FirstName").text = builder.secondaryBankAccountOwner.firstName;
|
|
142
|
-
elementtree_1.SubElement(secondaryOwnerTag, "LastName").text = builder.secondaryBankAccountOwner.lastName;
|
|
143
|
-
elementtree_1.SubElement(secondaryOwnerTag, "Address1").text = (_b = builder.secondaryBankAccountOwner.ownerAddress) === null || _b === void 0 ? void 0 : _b.streetAddress1;
|
|
144
|
-
elementtree_1.SubElement(secondaryOwnerTag, "Address2").text = builder.secondaryBankAccountOwner.ownerAddress.streetAddress2;
|
|
145
|
-
elementtree_1.SubElement(secondaryOwnerTag, "Address3").text = builder.secondaryBankAccountOwner.ownerAddress.streetAddress3;
|
|
146
|
-
elementtree_1.SubElement(secondaryOwnerTag, "City").text = builder.secondaryBankAccountOwner.ownerAddress.city;
|
|
147
|
-
elementtree_1.SubElement(secondaryOwnerTag, "StateProvince").text = builder.secondaryBankAccountOwner.ownerAddress.state;
|
|
148
|
-
elementtree_1.SubElement(secondaryOwnerTag, "PostalCode").text = builder.secondaryBankAccountOwner.ownerAddress.postalCode;
|
|
149
|
-
elementtree_1.SubElement(secondaryOwnerTag, "Country").text = builder.secondaryBankAccountOwner.ownerAddress.country;
|
|
150
|
-
elementtree_1.SubElement(secondaryOwnerTag, "Phone").text = builder.secondaryBankAccountOwner.phoneNumber;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
ProPayConnector.prototype.HydrateMailAddress = function (xmlTrans, mailingAddressInformation) {
|
|
155
|
-
elementtree_1.SubElement(xmlTrans, "mailAddr").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.streetAddress1));
|
|
156
|
-
elementtree_1.SubElement(xmlTrans, "mailApt").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.streetAddress2));
|
|
157
|
-
elementtree_1.SubElement(xmlTrans, "mailAddr3").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.streetAddress3));
|
|
158
|
-
elementtree_1.SubElement(xmlTrans, "mailCity").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.city));
|
|
159
|
-
elementtree_1.SubElement(xmlTrans, "mailCountry").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.country));
|
|
160
|
-
elementtree_1.SubElement(xmlTrans, "mailState").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.state));
|
|
161
|
-
elementtree_1.SubElement(xmlTrans, "mailZip").append(elementtree_1.CData(mailingAddressInformation === null || mailingAddressInformation === void 0 ? void 0 : mailingAddressInformation.postalCode));
|
|
162
|
-
};
|
|
163
|
-
ProPayConnector.prototype.HydrateBankDetails = function (xmlTrans, builder) {
|
|
164
|
-
if (builder.creditCardInformation != null) {
|
|
165
|
-
elementtree_1.SubElement(xmlTrans, "NameOnCard").append(elementtree_1.CData(builder.creditCardInformation.cardHolderName));
|
|
166
|
-
elementtree_1.SubElement(xmlTrans, "ccNum").append(elementtree_1.CData(builder.creditCardInformation.number));
|
|
167
|
-
elementtree_1.SubElement(xmlTrans, "expDate").append(elementtree_1.CData(builder.creditCardInformation.getShortExpiry()));
|
|
168
|
-
}
|
|
169
|
-
if (builder.aCHInformation != null) {
|
|
170
|
-
elementtree_1.SubElement(xmlTrans, "PaymentBankAccountNumber").append(elementtree_1.CData(builder.aCHInformation.accountNumber));
|
|
171
|
-
elementtree_1.SubElement(xmlTrans, "PaymentBankRoutingNumber").append(elementtree_1.CData(builder.aCHInformation.routingNumber));
|
|
172
|
-
elementtree_1.SubElement(xmlTrans, "PaymentBankAccountType").append(elementtree_1.CData(builder.aCHInformation.accountType));
|
|
173
|
-
}
|
|
174
|
-
if (builder.bankAccountData != null) {
|
|
175
|
-
elementtree_1.SubElement(xmlTrans, "AccountCountryCode").append(elementtree_1.CData(builder.bankAccountData.accountCountryCode));
|
|
176
|
-
elementtree_1.SubElement(xmlTrans, "accountName").append(elementtree_1.CData(builder.bankAccountData.accountName));
|
|
177
|
-
elementtree_1.SubElement(xmlTrans, "AccountNumber").append(elementtree_1.CData(builder.bankAccountData.accountNumber));
|
|
178
|
-
elementtree_1.SubElement(xmlTrans, "AccountOwnershipType").append(elementtree_1.CData(builder.bankAccountData.accountOwnershipType));
|
|
179
|
-
elementtree_1.SubElement(xmlTrans, "AccountType").append(elementtree_1.CData(builder.bankAccountData.accountType));
|
|
180
|
-
elementtree_1.SubElement(xmlTrans, "BankName").append(elementtree_1.CData(builder.bankAccountData.bankName));
|
|
181
|
-
elementtree_1.SubElement(xmlTrans, "RoutingNumber").append(elementtree_1.CData(builder.bankAccountData.routingNumber));
|
|
182
|
-
}
|
|
183
|
-
if (builder.secondaryBankInformation != null) {
|
|
184
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryAccountCountryCode").append(elementtree_1.CData(builder.secondaryBankInformation.accountCountryCode));
|
|
185
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryAccountName").append(elementtree_1.CData(builder.secondaryBankInformation.accountName));
|
|
186
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryAccountNumber").append(elementtree_1.CData(builder.secondaryBankInformation.accountNumber));
|
|
187
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryAccountOwnershipType").append(elementtree_1.CData(builder.secondaryBankInformation.accountOwnershipType));
|
|
188
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryAccountType").append(elementtree_1.CData(builder.secondaryBankInformation.accountType));
|
|
189
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryBankName").append(elementtree_1.CData(builder.secondaryBankInformation.bankName));
|
|
190
|
-
elementtree_1.SubElement(xmlTrans, "SecondaryRoutingNumber").append(elementtree_1.CData(builder.secondaryBankInformation.routingNumber));
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
ProPayConnector.prototype.HydrateBusinessData = function (xmlTrans, businessData) {
|
|
194
|
-
var _a;
|
|
195
|
-
elementtree_1.SubElement(xmlTrans, "BusinessLegalName").append(elementtree_1.CData(businessData.businessLegalName));
|
|
196
|
-
elementtree_1.SubElement(xmlTrans, "DoingBusinessAs").append(elementtree_1.CData(businessData.doingBusinessAs));
|
|
197
|
-
elementtree_1.SubElement(xmlTrans, "EIN").append(elementtree_1.CData(businessData.employerIdentificationNumber));
|
|
198
|
-
elementtree_1.SubElement(xmlTrans, "MCCCode").append(elementtree_1.CData(businessData.merchantCategoryCode));
|
|
199
|
-
elementtree_1.SubElement(xmlTrans, "WebsiteURL").append(elementtree_1.CData(businessData.websiteURL));
|
|
200
|
-
elementtree_1.SubElement(xmlTrans, "BusinessDesc").append(elementtree_1.CData(businessData.businessDescription));
|
|
201
|
-
elementtree_1.SubElement(xmlTrans, "MonthlyBankCardVolume").append(elementtree_1.CData(businessData.monthlyBankCardVolume));
|
|
202
|
-
elementtree_1.SubElement(xmlTrans, "AverageTicket").append(elementtree_1.CData(businessData.averageTicket));
|
|
203
|
-
elementtree_1.SubElement(xmlTrans, "HighestTicket").append(elementtree_1.CData(businessData.highestTicket));
|
|
204
|
-
elementtree_1.SubElement(xmlTrans, "BusinessAddress").append(elementtree_1.CData((_a = businessData.businessAddress) === null || _a === void 0 ? void 0 : _a.streetAddress1));
|
|
205
|
-
elementtree_1.SubElement(xmlTrans, "BusinessAddress2").append(elementtree_1.CData(businessData.businessAddress.streetAddress2));
|
|
206
|
-
elementtree_1.SubElement(xmlTrans, "BusinessCity").append(elementtree_1.CData(businessData.businessAddress.city));
|
|
207
|
-
elementtree_1.SubElement(xmlTrans, "BusinessCountry").append(elementtree_1.CData(businessData.businessAddress.country));
|
|
208
|
-
elementtree_1.SubElement(xmlTrans, "BusinessState").append(elementtree_1.CData(businessData.businessAddress.state));
|
|
209
|
-
elementtree_1.SubElement(xmlTrans, "BusinessZip").append(elementtree_1.CData(businessData.businessAddress.postalCode));
|
|
210
|
-
};
|
|
211
|
-
ProPayConnector.prototype.HydrateUserPersonalData = function (xmlTrans, userPersonalData) {
|
|
212
|
-
elementtree_1.SubElement(xmlTrans, "firstName").append(elementtree_1.CData(userPersonalData.firstName));
|
|
213
|
-
elementtree_1.SubElement(xmlTrans, "mInitial").append(elementtree_1.CData(userPersonalData.middleInitial));
|
|
214
|
-
elementtree_1.SubElement(xmlTrans, "lastName").append(elementtree_1.CData(userPersonalData.lastName));
|
|
215
|
-
elementtree_1.SubElement(xmlTrans, "dob").append(elementtree_1.CData(userPersonalData.dateOfBirth));
|
|
216
|
-
elementtree_1.SubElement(xmlTrans, "ssn").append(elementtree_1.CData(userPersonalData.sSN));
|
|
217
|
-
if (userPersonalData.sourceEmail != null)
|
|
218
|
-
elementtree_1.SubElement(xmlTrans, "sourceEmail").append(elementtree_1.CData(userPersonalData.sourceEmail));
|
|
219
|
-
elementtree_1.SubElement(xmlTrans, "dayPhone").append(elementtree_1.CData(userPersonalData.dayPhone));
|
|
220
|
-
elementtree_1.SubElement(xmlTrans, "evenPhone").append(elementtree_1.CData(userPersonalData.eveningPhone));
|
|
221
|
-
elementtree_1.SubElement(xmlTrans, "NotificationEmail").append(elementtree_1.CData(userPersonalData.notificationEmail));
|
|
222
|
-
elementtree_1.SubElement(xmlTrans, "currencyCode").append(elementtree_1.CData(userPersonalData.currencyCode));
|
|
223
|
-
elementtree_1.SubElement(xmlTrans, "tier").append(elementtree_1.CData(userPersonalData.tier));
|
|
224
|
-
if (userPersonalData.externalID != null)
|
|
225
|
-
elementtree_1.SubElement(xmlTrans, "externalId").append(elementtree_1.CData(userPersonalData.externalID));
|
|
226
|
-
if (userPersonalData.userAddress != null)
|
|
227
|
-
elementtree_1.SubElement(xmlTrans, "addr").append(elementtree_1.CData(userPersonalData.userAddress.streetAddress1));
|
|
228
|
-
if (userPersonalData.userAddress != null)
|
|
229
|
-
elementtree_1.SubElement(xmlTrans, "aptNum").append(elementtree_1.CData(userPersonalData.userAddress.streetAddress2));
|
|
230
|
-
if (userPersonalData.userAddress != null)
|
|
231
|
-
elementtree_1.SubElement(xmlTrans, "addr3").append(elementtree_1.CData(userPersonalData.userAddress.streetAddress3));
|
|
232
|
-
if (userPersonalData.userAddress != null)
|
|
233
|
-
elementtree_1.SubElement(xmlTrans, "city").append(elementtree_1.CData(userPersonalData.userAddress.city));
|
|
234
|
-
if (userPersonalData.userAddress != null)
|
|
235
|
-
elementtree_1.SubElement(xmlTrans, "state").append(elementtree_1.CData(userPersonalData.userAddress.state));
|
|
236
|
-
if (userPersonalData.userAddress != null)
|
|
237
|
-
elementtree_1.SubElement(xmlTrans, "zip").append(elementtree_1.CData(userPersonalData.userAddress.postalCode));
|
|
238
|
-
if (userPersonalData.userAddress != null)
|
|
239
|
-
elementtree_1.SubElement(xmlTrans, "country").append(elementtree_1.CData(userPersonalData.userAddress.country));
|
|
240
|
-
elementtree_1.SubElement(xmlTrans, "IpSignup").append(elementtree_1.CData(userPersonalData.ipSignup));
|
|
241
|
-
elementtree_1.SubElement(xmlTrans, "USCitizen").append(elementtree_1.CData(userPersonalData.uSCitizen == true ? 'true' : userPersonalData.uSCitizen == false ? 'false' : ''));
|
|
242
|
-
elementtree_1.SubElement(xmlTrans, "bOAttestation").append(elementtree_1.CData(userPersonalData.bOAttestation == true ? 'true' : userPersonalData.bOAttestation == false ? 'false' : ''));
|
|
243
|
-
elementtree_1.SubElement(xmlTrans, "TermsAcceptanceIP").append(elementtree_1.CData(userPersonalData.termsAcceptanceIP));
|
|
244
|
-
elementtree_1.SubElement(xmlTrans, "TermsAcceptanceTimeStamp").append(elementtree_1.CData(userPersonalData.termsAcceptanceTimeStamp));
|
|
245
|
-
elementtree_1.SubElement(xmlTrans, "TermsVersion").append(elementtree_1.CData(userPersonalData.termsVersion == null ? '' : userPersonalData.termsVersion.toString()));
|
|
246
|
-
};
|
|
247
|
-
ProPayConnector.prototype.HydrateThreatRiskData = function (xmlTrans, threatRiskData) {
|
|
248
|
-
elementtree_1.SubElement(xmlTrans, "MerchantSourceip").append(elementtree_1.CData(threatRiskData === null || threatRiskData === void 0 ? void 0 : threatRiskData.merchantSourceIP));
|
|
249
|
-
elementtree_1.SubElement(xmlTrans, "ThreatMetrixPolicy").append(elementtree_1.CData(threatRiskData === null || threatRiskData === void 0 ? void 0 : threatRiskData.threatMetrixPolicy));
|
|
250
|
-
elementtree_1.SubElement(xmlTrans, "ThreatMetrixSessionid").append(elementtree_1.CData(threatRiskData === null || threatRiskData === void 0 ? void 0 : threatRiskData.threatMetrixSessionID));
|
|
251
|
-
};
|
|
252
|
-
ProPayConnector.prototype.HydrateSignificantOwnerData = function (xmlTrans, significantOwnerData) {
|
|
253
|
-
var _a;
|
|
254
|
-
elementtree_1.SubElement(xmlTrans, "AuthorizedSignerFirstName").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.authorizedSignerFirstName));
|
|
255
|
-
elementtree_1.SubElement(xmlTrans, "AuthorizedSignerLastName").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.authorizedSignerLastName));
|
|
256
|
-
elementtree_1.SubElement(xmlTrans, "AuthorizedSignerTitle").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.authorizedSignerTitle));
|
|
257
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerFirstName").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.firstName));
|
|
258
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerLastName").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.lastName));
|
|
259
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerSSN").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.sSN));
|
|
260
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerDateOfBirth").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.DateOfBirth));
|
|
261
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerStreetAddress").append(elementtree_1.CData((_a = significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.ownerAddress) === null || _a === void 0 ? void 0 : _a.streetAddress1));
|
|
262
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerCityName").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.ownerAddress.city));
|
|
263
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerRegionCode").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.ownerAddress.state));
|
|
264
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerPostalCode").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.ownerAddress.postalCode));
|
|
265
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerCountryCode").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.ownerAddress.country));
|
|
266
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerTitle").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.title));
|
|
267
|
-
elementtree_1.SubElement(xmlTrans, "SignificantOwnerPercentage").append(elementtree_1.CData(significantOwnerData === null || significantOwnerData === void 0 ? void 0 : significantOwnerData.significantOwner.percentage));
|
|
268
|
-
};
|
|
269
|
-
ProPayConnector.prototype.HydrateAccountPermissions = function (xmlTrans, accountPermissions) {
|
|
270
|
-
if (accountPermissions.aCHIn != null)
|
|
271
|
-
elementtree_1.SubElement(xmlTrans, "ACHIn").append(elementtree_1.CData(accountPermissions.aCHIn == true ? "Y" : "N"));
|
|
272
|
-
if (accountPermissions.aCHOut != null)
|
|
273
|
-
elementtree_1.SubElement(xmlTrans, "ACHOut").append(elementtree_1.CData(accountPermissions.aCHOut == true ? "Y" : "N"));
|
|
274
|
-
if (accountPermissions.cCProcessing != null)
|
|
275
|
-
elementtree_1.SubElement(xmlTrans, "CCProcessing").append(elementtree_1.CData(accountPermissions.cCProcessing == true ? "Y" : "N"));
|
|
276
|
-
if (accountPermissions.proPayIn != null)
|
|
277
|
-
elementtree_1.SubElement(xmlTrans, "ProPayIn").append(elementtree_1.CData(accountPermissions.proPayIn == true ? "Y" : "N"));
|
|
278
|
-
if (accountPermissions.proPayOut != null)
|
|
279
|
-
elementtree_1.SubElement(xmlTrans, "ProPayOut").append(elementtree_1.CData(accountPermissions.proPayOut == true ? "Y" : "N"));
|
|
280
|
-
if (accountPermissions.creditCardMonthLimit != null)
|
|
281
|
-
elementtree_1.SubElement(xmlTrans, "CreditCardMonthLimit").append(elementtree_1.CData(accountPermissions.creditCardMonthLimit));
|
|
282
|
-
if (accountPermissions.creditCardTransactionLimit != null)
|
|
283
|
-
elementtree_1.SubElement(xmlTrans, "CreditCardTransactionLimit").append(elementtree_1.CData(accountPermissions.creditCardTransactionLimit));
|
|
284
|
-
if (accountPermissions.merchantOverallStatus != null)
|
|
285
|
-
elementtree_1.SubElement(xmlTrans, "MerchantOverallStatus").append(elementtree_1.CData(String(accountPermissions.merchantOverallStatus)));
|
|
286
|
-
if (accountPermissions.softLimitEnabled != null)
|
|
287
|
-
elementtree_1.SubElement(xmlTrans, "SoftLimitEnabled", accountPermissions.softLimitEnabled == true ? "Y" : "N");
|
|
288
|
-
if (accountPermissions.aCHPaymentSoftLimitEnabled != null)
|
|
289
|
-
elementtree_1.SubElement(xmlTrans, "AchPaymentSoftLimitEnabled", accountPermissions.aCHPaymentSoftLimitEnabled == true ? "Y" : "N");
|
|
290
|
-
if (accountPermissions.softLimitACHOffPercent != null)
|
|
291
|
-
elementtree_1.SubElement(xmlTrans, "SoftLimitAchOffPercent", accountPermissions.softLimitACHOffPercent);
|
|
292
|
-
if (accountPermissions.aCHPaymentACHOffPercent != null)
|
|
293
|
-
elementtree_1.SubElement(xmlTrans, "AchPaymentAchOffPercent", accountPermissions.aCHPaymentACHOffPercent);
|
|
294
|
-
};
|
|
295
|
-
ProPayConnector.prototype.HydrateDeviceData = function (xmlTrans, deviceData) {
|
|
296
|
-
var devices = elementtree_1.SubElement(xmlTrans, "Devices");
|
|
297
|
-
if (deviceData.devices.length > 0) {
|
|
298
|
-
deviceData.devices.forEach(function (deviceObj) {
|
|
299
|
-
var device = elementtree_1.SubElement(devices, "Device");
|
|
300
|
-
elementtree_1.SubElement(device, "Name").append(elementtree_1.CData(deviceObj.name));
|
|
301
|
-
elementtree_1.SubElement(device, "Quantity").append(elementtree_1.CData(deviceObj.quantity == null ? "0" : String(deviceObj.quantity)));
|
|
302
|
-
if (deviceObj.attributes != null) {
|
|
303
|
-
if (deviceObj.attributes.length > 0) {
|
|
304
|
-
var attributes = elementtree_1.SubElement(device, "Attributes");
|
|
305
|
-
deviceObj.attributes.forEach(function (attributeInfo) {
|
|
306
|
-
var item = elementtree_1.SubElement(attributes, "Item");
|
|
307
|
-
item.set("Name", attributeInfo.name);
|
|
308
|
-
item.set("Value", attributeInfo.value);
|
|
309
|
-
});
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
ProPayConnector.prototype.HydrateBeneficialOwnerData = function (xmlTrans, beneficialOwnerData) {
|
|
316
|
-
var ownerDetails = elementtree_1.SubElement(xmlTrans, "BeneficialOwnerData");
|
|
317
|
-
elementtree_1.SubElement(ownerDetails, "OwnerCount").text = beneficialOwnerData === null || beneficialOwnerData === void 0 ? void 0 : beneficialOwnerData.ownersCount;
|
|
318
|
-
if (Number(beneficialOwnerData === null || beneficialOwnerData === void 0 ? void 0 : beneficialOwnerData.ownersCount) > 0) {
|
|
319
|
-
var ownersList = elementtree_1.SubElement(ownerDetails, "Owners");
|
|
320
|
-
beneficialOwnerData.ownersList.forEach(function (ownerInfo) {
|
|
321
|
-
var _a;
|
|
322
|
-
var newOwner = elementtree_1.SubElement(ownersList, "Owner");
|
|
323
|
-
elementtree_1.SubElement(newOwner, "FirstName").text = ownerInfo.firstName;
|
|
324
|
-
elementtree_1.SubElement(newOwner, "LastName").text = ownerInfo.lastName;
|
|
325
|
-
elementtree_1.SubElement(newOwner, "Email").text = ownerInfo.email;
|
|
326
|
-
elementtree_1.SubElement(newOwner, "SSN").text = ownerInfo.sSN;
|
|
327
|
-
elementtree_1.SubElement(newOwner, "DateOfBirth").text = ownerInfo.DateOfBirth;
|
|
328
|
-
elementtree_1.SubElement(newOwner, "Address").text = (_a = ownerInfo.ownerAddress) === null || _a === void 0 ? void 0 : _a.streetAddress1;
|
|
329
|
-
elementtree_1.SubElement(newOwner, "City").text = ownerInfo.ownerAddress.city;
|
|
330
|
-
elementtree_1.SubElement(newOwner, "State").text = ownerInfo.ownerAddress.state;
|
|
331
|
-
elementtree_1.SubElement(newOwner, "Zip").text = ownerInfo.ownerAddress.postalCode;
|
|
332
|
-
elementtree_1.SubElement(newOwner, "Country").text = ownerInfo.ownerAddress.country;
|
|
333
|
-
elementtree_1.SubElement(newOwner, "Title").text = ownerInfo.title;
|
|
334
|
-
if (ownerInfo.percentage != null)
|
|
335
|
-
elementtree_1.SubElement(newOwner, "Percentage").text = ownerInfo.percentage;
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
ProPayConnector.prototype.HydrateGrossBillingData = function (xmlTrans, grossBillingInformation) {
|
|
340
|
-
var _a;
|
|
341
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleAddress").append(elementtree_1.CData((_a = grossBillingInformation.grossSettleAddress) === null || _a === void 0 ? void 0 : _a.streetAddress1));
|
|
342
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleCity").append(elementtree_1.CData(grossBillingInformation.grossSettleAddress.city));
|
|
343
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleState").append(elementtree_1.CData(grossBillingInformation.grossSettleAddress.state));
|
|
344
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleZipCode").append(elementtree_1.CData(grossBillingInformation.grossSettleAddress.postalCode));
|
|
345
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleCountry").append(elementtree_1.CData(grossBillingInformation.grossSettleAddress.country));
|
|
346
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleCreditCardNumber").append(elementtree_1.CData(grossBillingInformation.grossSettleCreditCardData.Number));
|
|
347
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleNameOnCard").append(elementtree_1.CData(grossBillingInformation.grossSettleCreditCardData.CardHolderName));
|
|
348
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleCreditCardExpDate").append(elementtree_1.CData(grossBillingInformation.grossSettleCreditCardData.getShortExpiry()));
|
|
349
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleAccountCountryCode").append(elementtree_1.CData(grossBillingInformation.grossSettleBankData.accountCountryCode));
|
|
350
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleAccountHolderName").append(elementtree_1.CData(grossBillingInformation.grossSettleBankData.accountHolderName));
|
|
351
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleAccountNumber").append(elementtree_1.CData(grossBillingInformation.grossSettleBankData.accountNumber));
|
|
352
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleAccountType").append(elementtree_1.CData(grossBillingInformation.grossSettleBankData.accountType));
|
|
353
|
-
elementtree_1.SubElement(xmlTrans, "GrossSettleRoutingNumber").append(elementtree_1.CData(grossBillingInformation.grossSettleBankData.routingNumber));
|
|
354
|
-
};
|
|
355
|
-
ProPayConnector.prototype.HydrateAccountRenewDetails = function (xmlTrans, renewAccountData) {
|
|
356
|
-
var elementMap = {
|
|
357
|
-
'tier': renewAccountData.tier,
|
|
358
|
-
'CVV2': renewAccountData.creditCard.cvn,
|
|
359
|
-
'ccNum': renewAccountData.creditCard.number,
|
|
360
|
-
'expDate': renewAccountData.creditCard.getShortExpiry(),
|
|
361
|
-
'zip': renewAccountData.zipCode,
|
|
362
|
-
'PaymentBankAccountNumber': renewAccountData.paymentBankAccountNumber,
|
|
363
|
-
'PaymentBankRoutingNumber': renewAccountData.paymentBankRoutingNumber,
|
|
364
|
-
'PaymentBankAccountType': renewAccountData.paymentBankAccountType
|
|
365
|
-
};
|
|
366
|
-
this.createNewElements(xmlTrans, elementMap);
|
|
367
|
-
};
|
|
368
|
-
ProPayConnector.prototype.HydrateFlashFundsPaymentCardData = function (xmlTrans, cardData) {
|
|
369
|
-
var _a;
|
|
370
|
-
elementtree_1.SubElement(xmlTrans, "ccNum").append(elementtree_1.CData(cardData.creditCard.number));
|
|
371
|
-
elementtree_1.SubElement(xmlTrans, "expDate").append(elementtree_1.CData(cardData.creditCard.getShortExpiry()));
|
|
372
|
-
elementtree_1.SubElement(xmlTrans, "CVV2").append(elementtree_1.CData(cardData.creditCard.cvn));
|
|
373
|
-
elementtree_1.SubElement(xmlTrans, "cardholderName").append(elementtree_1.CData(cardData.creditCard.cardHolderName));
|
|
374
|
-
elementtree_1.SubElement(xmlTrans, "addr").append(elementtree_1.CData((_a = cardData.cardholderAddress) === null || _a === void 0 ? void 0 : _a.streetAddress1));
|
|
375
|
-
elementtree_1.SubElement(xmlTrans, "city").append(elementtree_1.CData(cardData.cardholderAddress.city));
|
|
376
|
-
elementtree_1.SubElement(xmlTrans, "state").append(elementtree_1.CData(cardData.cardholderAddress.state));
|
|
377
|
-
elementtree_1.SubElement(xmlTrans, "zip").append(elementtree_1.CData(cardData.cardholderAddress.postalCode));
|
|
378
|
-
elementtree_1.SubElement(xmlTrans, "country").append(elementtree_1.CData(cardData.cardholderAddress.country));
|
|
379
|
-
};
|
|
380
|
-
ProPayConnector.prototype.HydrateDocumentUploadData = function (xmlTrans, transType, docUploadData) {
|
|
381
|
-
var docNameTag = transType == Enums_1.TransactionType.UploadDocumentChargeback ? "DocumentName" : "documentName";
|
|
382
|
-
var docTypeTag = transType == Enums_1.TransactionType.UploadDocumentChargeback ? "DocType" : "docType";
|
|
383
|
-
elementtree_1.SubElement(xmlTrans, docNameTag).append(elementtree_1.CData(docUploadData.documentName));
|
|
384
|
-
docUploadData.transactionReference ? elementtree_1.SubElement(xmlTrans, "TransactionReference").append(elementtree_1.CData(docUploadData.transactionReference)) : '';
|
|
385
|
-
docUploadData.docCategory ? elementtree_1.SubElement(xmlTrans, "DocCategory").append(elementtree_1.CData(docUploadData.docCategory)) : '';
|
|
386
|
-
elementtree_1.SubElement(xmlTrans, docTypeTag).append(elementtree_1.CData(docUploadData.docType));
|
|
387
|
-
elementtree_1.SubElement(xmlTrans, "Document").append(elementtree_1.CData(docUploadData.document));
|
|
388
|
-
};
|
|
389
|
-
ProPayConnector.prototype.HydrateSSORequestData = function (xmlTrans, ssoRequestData) {
|
|
390
|
-
elementtree_1.SubElement(xmlTrans, "ReferrerUrl").append(elementtree_1.CData(ssoRequestData.referrerURL));
|
|
391
|
-
elementtree_1.SubElement(xmlTrans, "IpAddress").append(elementtree_1.CData(ssoRequestData.iPAddress));
|
|
392
|
-
elementtree_1.SubElement(xmlTrans, "IpSubnetMask").append(elementtree_1.CData(ssoRequestData.iPSubnetMask));
|
|
393
|
-
};
|
|
394
|
-
ProPayConnector.prototype.HydrateOrderDeviceData = function (xmlTrans, orderDeviceData) {
|
|
395
|
-
elementtree_1.SubElement(xmlTrans, "accntNum").append(elementtree_1.CData(orderDeviceData.accountNum.toString()));
|
|
396
|
-
elementtree_1.SubElement(xmlTrans, "shipTo").append(elementtree_1.CData(orderDeviceData.shipTo));
|
|
397
|
-
elementtree_1.SubElement(xmlTrans, "shipToContact").append(elementtree_1.CData(orderDeviceData.shipToContact));
|
|
398
|
-
elementtree_1.SubElement(xmlTrans, "shipToAddress").append(elementtree_1.CData(orderDeviceData.shipToAddress));
|
|
399
|
-
elementtree_1.SubElement(xmlTrans, "shipToAddress2").append(elementtree_1.CData(orderDeviceData.shipToAddress2));
|
|
400
|
-
elementtree_1.SubElement(xmlTrans, "shipToCity").append(elementtree_1.CData(orderDeviceData.shipToCity));
|
|
401
|
-
elementtree_1.SubElement(xmlTrans, "shipToState").append(elementtree_1.CData(orderDeviceData.shipToState));
|
|
402
|
-
elementtree_1.SubElement(xmlTrans, "shipToZip").append(elementtree_1.CData(orderDeviceData.shipToZip));
|
|
403
|
-
elementtree_1.SubElement(xmlTrans, "shipToPhone").append(elementtree_1.CData(orderDeviceData.shipToPhone));
|
|
404
|
-
elementtree_1.SubElement(xmlTrans, "cardholderName").append(elementtree_1.CData(orderDeviceData.cardholderName));
|
|
405
|
-
elementtree_1.SubElement(xmlTrans, "CcNum").append(elementtree_1.CData(orderDeviceData.ccNum));
|
|
406
|
-
elementtree_1.SubElement(xmlTrans, "ExpDate").append(elementtree_1.CData(orderDeviceData.expDate));
|
|
407
|
-
elementtree_1.SubElement(xmlTrans, "CVV2").append(elementtree_1.CData(orderDeviceData.cVV2));
|
|
408
|
-
elementtree_1.SubElement(xmlTrans, "billingZip").append(elementtree_1.CData(orderDeviceData.billingZip));
|
|
409
|
-
};
|
|
410
|
-
ProPayConnector.prototype.UpdateGatewaySettings = function (builder) {
|
|
411
|
-
var certTransactions = [
|
|
412
|
-
Enums_1.TransactionType.EditAccount,
|
|
413
|
-
Enums_1.TransactionType.ObtainSSOKey,
|
|
414
|
-
Enums_1.TransactionType.UpdateBankAccountOwnership,
|
|
415
|
-
Enums_1.TransactionType.AddFunds,
|
|
416
|
-
Enums_1.TransactionType.AddCardFlashFunds
|
|
417
|
-
];
|
|
418
|
-
if (certTransactions.includes(builder.transactionType)) {
|
|
419
|
-
this.headers["X509Certificate"] = this.setX509Certificate();
|
|
420
|
-
}
|
|
421
|
-
};
|
|
422
|
-
ProPayConnector.prototype.createNewElements = function (xmlns, mapping) {
|
|
423
|
-
for (var _i = 0, _a = Object.entries(mapping); _i < _a.length; _i++) {
|
|
424
|
-
var _b = _a[_i], key = _b[0], value = _b[1];
|
|
425
|
-
if (value != null && value != '')
|
|
426
|
-
elementtree_1.SubElement(xmlns, key).append(elementtree_1.CData("" + value));
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
ProPayConnector.prototype.setX509Certificate = function () {
|
|
430
|
-
var x509RawData = fs.readFileSync(this.x509CertificatePath);
|
|
431
|
-
return x509RawData.toString().replace(/(\r\n|\n|\r)/gm, "");
|
|
432
|
-
};
|
|
433
|
-
ProPayConnector.prototype.mapRequestType = function (builder) {
|
|
434
|
-
switch (builder.transactionType) {
|
|
435
|
-
case Enums_1.TransactionType.CreateAccount:
|
|
436
|
-
return "01";
|
|
437
|
-
case Enums_1.TransactionType.EditAccount:
|
|
438
|
-
return "42";
|
|
439
|
-
case Enums_1.TransactionType.ResetPassword:
|
|
440
|
-
return "32";
|
|
441
|
-
case Enums_1.TransactionType.RenewAccount:
|
|
442
|
-
return "39";
|
|
443
|
-
case Enums_1.TransactionType.UpdateBeneficialOwnership:
|
|
444
|
-
return "44";
|
|
445
|
-
case Enums_1.TransactionType.DisownAccount:
|
|
446
|
-
return "41";
|
|
447
|
-
case Enums_1.TransactionType.UploadDocumentChargeback:
|
|
448
|
-
return "46";
|
|
449
|
-
case Enums_1.TransactionType.UploadDocument:
|
|
450
|
-
return "47";
|
|
451
|
-
case Enums_1.TransactionType.ObtainSSOKey:
|
|
452
|
-
return "300";
|
|
453
|
-
case Enums_1.TransactionType.UpdateBankAccountOwnership:
|
|
454
|
-
return "210";
|
|
455
|
-
case Enums_1.TransactionType.AddFunds:
|
|
456
|
-
return "37";
|
|
457
|
-
case Enums_1.TransactionType.SweepFunds:
|
|
458
|
-
return "38";
|
|
459
|
-
case Enums_1.TransactionType.AddCardFlashFunds:
|
|
460
|
-
return "209";
|
|
461
|
-
case Enums_1.TransactionType.PushMoneyFlashFunds:
|
|
462
|
-
return "45";
|
|
463
|
-
case Enums_1.TransactionType.DisburseFunds:
|
|
464
|
-
return "02";
|
|
465
|
-
case Enums_1.TransactionType.SpendBack:
|
|
466
|
-
return "11";
|
|
467
|
-
case Enums_1.TransactionType.ReverseSplitPay:
|
|
468
|
-
return "43";
|
|
469
|
-
case Enums_1.TransactionType.SplitFunds:
|
|
470
|
-
return "16";
|
|
471
|
-
case Enums_1.TransactionType.GetAccountDetails:
|
|
472
|
-
// We are using the Additional TransactionModifier to differentiate between GetAccountDetails and GetAccountDetailsEnhanced
|
|
473
|
-
if (builder.transactionModifier == Enums_1.TransactionModifier.Additional) {
|
|
474
|
-
return "19";
|
|
475
|
-
}
|
|
476
|
-
// If the TransactionModifier isn't "Additional" then it is either "None" or an unsupported value that should be treated as "None"
|
|
477
|
-
return "13";
|
|
478
|
-
case Enums_1.TransactionType.GetAccountBalance:
|
|
479
|
-
return "14";
|
|
480
|
-
case Enums_1.TransactionType.OrderDevice:
|
|
481
|
-
return "430";
|
|
482
|
-
default:
|
|
483
|
-
throw new Error("Unsupported transaction exception.");
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
ProPayConnector.prototype.mapResponse = function (builder, rawResponse) {
|
|
487
|
-
var xmlTransaction = elementtree_1.XML(rawResponse).find(".//XMLTrans");
|
|
488
|
-
var responseCode = xmlTransaction.findtext(".//status");
|
|
489
|
-
if (responseCode != "00" && responseCode != "66") {
|
|
490
|
-
throw new Error("Unexpected Gateway Response: " + String(responseCode));
|
|
491
|
-
}
|
|
492
|
-
var proPayResponse = this.populateProPayResponse(builder, xmlTransaction);
|
|
493
|
-
var response = new __1.Transaction();
|
|
494
|
-
response.payFacData = proPayResponse,
|
|
495
|
-
response.responseCode = responseCode;
|
|
496
|
-
return response;
|
|
497
|
-
};
|
|
498
|
-
ProPayConnector.prototype.populateProPayResponse = function (builder, root) {
|
|
499
|
-
if (builder.transactionType == Enums_1.TransactionType.GetAccountDetails &&
|
|
500
|
-
builder.transactionModifier == Enums_1.TransactionModifier.Additional) {
|
|
501
|
-
return this.populateResponseWithEnhancedAccountDetails(root);
|
|
502
|
-
}
|
|
503
|
-
else {
|
|
504
|
-
var responseData = new PayFacResponseData_1.PayFacResponseData();
|
|
505
|
-
responseData.accountNumber = this.getAccountNumberFromResponse(root);
|
|
506
|
-
responseData.recAccountNum = root.findtext(".//recAccntNum");
|
|
507
|
-
responseData.password = root.findtext(".//password");
|
|
508
|
-
responseData.amount = root.findtext(".//amount");
|
|
509
|
-
responseData.transNum = root.findtext(".//transNum");
|
|
510
|
-
responseData.pending = root.findtext(".//pending");
|
|
511
|
-
responseData.secondaryAmount = root.findtext(".//secondaryAmount");
|
|
512
|
-
responseData.secondaryTransNum = root.findtext(".//secondaryTransNum");
|
|
513
|
-
responseData.sourceEmail = root.findtext(".//sourceEmail");
|
|
514
|
-
responseData.authToken = root.findtext(".//AuthToken");
|
|
515
|
-
responseData.beneficialOwnerDataResults = this.getBeneficialOwnerDataResultsFromResponse(root);
|
|
516
|
-
responseData.accountStatus = root.findtext(".//accntStatus");
|
|
517
|
-
responseData.physicalAddress = this.getPhysicalAddressFromResponse(root);
|
|
518
|
-
responseData.affiliation = root.findtext(".//affiliation");
|
|
519
|
-
responseData.aPIReady = root.findtext(".//apiReady");
|
|
520
|
-
responseData.currencyCode = root.findtext(".//currencyCode");
|
|
521
|
-
responseData.expiration = root.findtext(".//expiration");
|
|
522
|
-
responseData.signupDate = root.findtext(".//signupDate");
|
|
523
|
-
responseData.tier = root.findtext(".//tier");
|
|
524
|
-
responseData.visaCheckoutMerchantID = root.findtext(".//visaCheckoutMerchantId");
|
|
525
|
-
responseData.creditCardTransactionLimit = root.findtext(".//CreditCardTransactionLimit");
|
|
526
|
-
responseData.creditCardMonthLimit = root.findtext(".//CreditCardMonthLimit");
|
|
527
|
-
responseData.aCHPaymentPerTranLimit = root.findtext(".//ACHPaymentPerTranLimit");
|
|
528
|
-
responseData.aCHPaymentMonthLimit = root.findtext(".//ACHPaymentMonthLimit");
|
|
529
|
-
responseData.creditCardMonthlyVolume = root.findtext(".//CreditCardMonthlyVolume");
|
|
530
|
-
responseData.aCHPaymentMonthlyVolume = root.findtext(".//ACHPaymentMonthlyVolume");
|
|
531
|
-
responseData.reserveBalance = root.findtext(".//ReserveBalance");
|
|
532
|
-
responseData.masterPassCheckoutMerchantID = root.findtext(".//MasterPassCheckoutMerchantId");
|
|
533
|
-
responseData.pendingAmount = root.findtext(".//pendingAmount");
|
|
534
|
-
responseData.reserveAmount = root.findtext(".//reserveAmount>");
|
|
535
|
-
responseData.aCHOut = this.getACHOutBalanceInfoFromResponse(root);
|
|
536
|
-
responseData.flashFunds = this.getFlashFundsBalanceInfoFromResponse(root);
|
|
537
|
-
return responseData;
|
|
538
|
-
}
|
|
539
|
-
;
|
|
540
|
-
};
|
|
541
|
-
ProPayConnector.prototype.populateResponseWithEnhancedAccountDetails = function (root) {
|
|
542
|
-
var _a, _b;
|
|
543
|
-
var responseResult = new PayFacResponseData_1.PayFacResponseData();
|
|
544
|
-
responseResult.accountNumber = this.getAccountNumberFromResponse(root);
|
|
545
|
-
var personalData = new UserPersonalData_1.UserPersonalData();
|
|
546
|
-
personalData.sourceEmail = root.findtext(".//sourceEmail");
|
|
547
|
-
personalData.firstName = root.findtext(".//firstName");
|
|
548
|
-
personalData.middleInitial = root.findtext(".//middleInitial");
|
|
549
|
-
personalData.lastName = root.findtext(".//lastName");
|
|
550
|
-
personalData.dayPhone = root.findtext(".//dayPhone");
|
|
551
|
-
personalData.eveningPhone = root.findtext(".//evenPhone");
|
|
552
|
-
personalData.externalID = root.findtext(".//externalId");
|
|
553
|
-
personalData.tier = root.findtext(".//tier");
|
|
554
|
-
personalData.currencyCode = root.findtext(".//currencyCode");
|
|
555
|
-
personalData.notificationEmail = root.findtext(".//notificati;onEmail");
|
|
556
|
-
responseResult.personalData = personalData;
|
|
557
|
-
var homeAddress = new Entities_1.Address();
|
|
558
|
-
homeAddress.streetAddress1 = root.findtext(".//addr");
|
|
559
|
-
homeAddress.streetAddress2 = root.findtext(".//aptNum");
|
|
560
|
-
homeAddress.city = root.findtext(".//city");
|
|
561
|
-
homeAddress.state = root.findtext(".//state");
|
|
562
|
-
homeAddress.postalCode = root.findtext(".//postalCode");
|
|
563
|
-
homeAddress.country = root.findtext(".//country");
|
|
564
|
-
responseResult.homeAddress = homeAddress;
|
|
565
|
-
var mailAddress = new Entities_1.Address();
|
|
566
|
-
mailAddress.streetAddress1 = root.findtext(".//mailAddr");
|
|
567
|
-
mailAddress.streetAddress2 = root.findtext(".//mailApt");
|
|
568
|
-
mailAddress.city = root.findtext(".//mailCity");
|
|
569
|
-
mailAddress.state = root.findtext(".//mailState");
|
|
570
|
-
mailAddress.postalCode = root.findtext(".//mailPostalCode");
|
|
571
|
-
mailAddress.country = root.findtext(".//mailCountry");
|
|
572
|
-
responseResult.mailAddress = mailAddress;
|
|
573
|
-
var businessData = new BusinessData_1.BusinessData();
|
|
574
|
-
businessData.businessLegalName = root.findtext(".//businessLegalName");
|
|
575
|
-
businessData.doingBusinessAs = root.findtext(".//doingBusinessAs");
|
|
576
|
-
businessData.employerIdentificationNumber = root.findtext(".//ein");
|
|
577
|
-
businessData.websiteURL = root.findtext(".//websiteURL");
|
|
578
|
-
businessData.averageTicket = root.findtext(".//averageTicket");
|
|
579
|
-
businessData.highestTicket = root.findtext(".//highestTicket");
|
|
580
|
-
responseResult.businessData = businessData;
|
|
581
|
-
var businessAddress = new Entities_1.Address();
|
|
582
|
-
businessAddress.streetAddress1 = root.findtext(".//businessAddress");
|
|
583
|
-
businessAddress.streetAddress2 = root.findtext(".//businessAddress2");
|
|
584
|
-
businessAddress.city = root.findtext(".//businessCity");
|
|
585
|
-
businessAddress.state = root.findtext(".//businessState");
|
|
586
|
-
businessAddress.postalCode = root.findtext(".//businessZip");
|
|
587
|
-
businessData.businessAddress = businessAddress;
|
|
588
|
-
responseResult.businessData = businessData;
|
|
589
|
-
var accountLimits = new AccountPermissions_1.AccountPermissions();
|
|
590
|
-
accountLimits.creditCardTransactionLimit = root.findtext(".//creditCardTransactionLimit");
|
|
591
|
-
accountLimits.creditCardMonthLimit = root.findtext(".//creditCardMonthLimit");
|
|
592
|
-
accountLimits.aCHPaymentSoftLimitEnabled = ((_a = root.findtext(".//achPaymentSoftLimitEnabled")) === null || _a === void 0 ? void 0 : _a.toUpperCase()) == "Y" ? true : false;
|
|
593
|
-
accountLimits.aCHPaymentACHOffPercent = root.findtext(".//achPaymentAchOffPercent");
|
|
594
|
-
accountLimits.softLimitEnabled = ((_b = root.findtext(".//softLimitEnabled")) === null || _b === void 0 ? void 0 : _b.toUpperCase()) == "Y" ? true : false;
|
|
595
|
-
accountLimits.softLimitACHOffPercent = root.findtext(".//softLimitAchOffPercent");
|
|
596
|
-
responseResult.aCHPaymentPerTranLimit = root.findtext(".//achPaymentPerTranLimit");
|
|
597
|
-
responseResult.aCHPaymentMonthLimit = root.findtext(".//achPaymentMonthLimit");
|
|
598
|
-
responseResult.aCHPaymentMonthlyVolume = root.findtext(".//achPaymentMonthlyVolume");
|
|
599
|
-
responseResult.creditCardMonthlyVolume = root.findtext(".//creditCardMonthlyVolume");
|
|
600
|
-
responseResult.availableBalance = root.findtext(".//availableBalance");
|
|
601
|
-
responseResult.pendingBalance = root.findtext(".//pendingBalance");
|
|
602
|
-
responseResult.reserveBalance = root.findtext(".//reserveBalance");
|
|
603
|
-
responseResult.accountLimits = accountLimits;
|
|
604
|
-
var primaryBankAccountData = new BankAccountData_1.BankAccountData();
|
|
605
|
-
primaryBankAccountData.accountCountryCode = root.findtext(".//primaryAccountCountryCode");
|
|
606
|
-
primaryBankAccountData.accountType = root.findtext(".//primaryAccountType");
|
|
607
|
-
primaryBankAccountData.accountOwnershipType = root.findtext(".//primaryAccountOwnershipType");
|
|
608
|
-
primaryBankAccountData.bankName = root.findtext(".//primaryBankName");
|
|
609
|
-
primaryBankAccountData.accountNumber = root.findtext(".//primaryAccountNumberLast4");
|
|
610
|
-
primaryBankAccountData.routingNumber = root.findtext(".//primaryRoutingNumber");
|
|
611
|
-
responseResult.primaryBankAccountData = primaryBankAccountData;
|
|
612
|
-
var secondaryBankAccountData = new BankAccountData_1.BankAccountData();
|
|
613
|
-
secondaryBankAccountData.accountCountryCode = root.findtext(".//secondaryAccountCountryCode");
|
|
614
|
-
secondaryBankAccountData.accountType = root.findtext(".//secondaryAccountType");
|
|
615
|
-
secondaryBankAccountData.accountOwnershipType = root.findtext(".//secondaryAccountOwnershipTy;e");
|
|
616
|
-
secondaryBankAccountData.bankName = root.findtext(".//secondaryBankName");
|
|
617
|
-
secondaryBankAccountData.accountNumber = root.findtext(".//secondaryAccoun;tNumberLast4");
|
|
618
|
-
secondaryBankAccountData.routingNumber = root.findtext(".//secondaryRoutingNumber");
|
|
619
|
-
responseResult.secondaryBankAccountData = secondaryBankAccountData;
|
|
620
|
-
var grossBillingInformation = new GrossBillingInformation_1.GrossBillingInformation();
|
|
621
|
-
var grossSettleBankData = new BankAccountData_1.BankAccountData();
|
|
622
|
-
grossSettleBankData.accountHolderName = root.findtext(".//grossSettleAccountHolderName");
|
|
623
|
-
grossSettleBankData.accountNumber = root.findtext(".//grossSettleAccountNumberLast4");
|
|
624
|
-
grossSettleBankData.routingNumber = root.findtext(".//grossSettleRoutingNumber");
|
|
625
|
-
grossSettleBankData.accountType = root.findtext(".//grossSettleAccountType");
|
|
626
|
-
var grossSettleAddress = new Entities_1.Address();
|
|
627
|
-
grossSettleAddress.streetAddress1 = root.findtext(".//grossSettleAccountAddress");
|
|
628
|
-
grossSettleAddress.city = root.findtext(".//rossSettleAccountCity");
|
|
629
|
-
grossSettleAddress.state = root.findtext(".//grossSettleAccountState");
|
|
630
|
-
grossSettleAddress.country = root.findtext(".//grossSettleAccountCountryCode");
|
|
631
|
-
grossSettleAddress.postalCode = root.findtext(".//grossSettleAccountZipCode");
|
|
632
|
-
grossBillingInformation.grossSettleBankData = grossSettleBankData;
|
|
633
|
-
grossBillingInformation.grossSettleAddress = grossSettleAddress;
|
|
634
|
-
return responseResult;
|
|
635
|
-
};
|
|
636
|
-
ProPayConnector.prototype.getAccountNumberFromResponse = function (root) {
|
|
637
|
-
// ProPay API 4.1 (Create an account) has the account number specified in the response as "accntNum"
|
|
638
|
-
// All other methods specify it as "accountNum" in the response
|
|
639
|
-
if (root.find(".//accntNum")) {
|
|
640
|
-
return root.findtext(".//accntNum");
|
|
641
|
-
}
|
|
642
|
-
else {
|
|
643
|
-
return root.findtext(".//accountNum");
|
|
644
|
-
}
|
|
645
|
-
};
|
|
646
|
-
ProPayConnector.prototype.getBeneficialOwnerDataResultsFromResponse = function (root) {
|
|
647
|
-
var beneficialOwnerDataResults = new Array();
|
|
648
|
-
if (root.find("beneficialOwnerDataResult")) {
|
|
649
|
-
root.findall("Owner").forEach(function (owner) {
|
|
650
|
-
var beneficialOwner = new BeneficialOwnerDataResult_1.BeneficialOwnerDataResult();
|
|
651
|
-
beneficialOwner.firstName = owner.findtext(".//FirstName");
|
|
652
|
-
beneficialOwner.lastName = owner.findtext(".//LastName");
|
|
653
|
-
beneficialOwner.status = owner.findtext(".//Status");
|
|
654
|
-
beneficialOwnerDataResults.push(beneficialOwner);
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
return beneficialOwnerDataResults;
|
|
658
|
-
};
|
|
659
|
-
ProPayConnector.prototype.getPhysicalAddressFromResponse = function (root) {
|
|
660
|
-
var addr = new Entities_1.Address();
|
|
661
|
-
if (root.find("addr") || root.find("city") || root.find("state") || root.find("zip")) {
|
|
662
|
-
addr.streetAddress1 = root.findtext(".//addr"),
|
|
663
|
-
addr.city = root.findtext(".//city"),
|
|
664
|
-
addr.state = root.findtext(".//state"),
|
|
665
|
-
addr.postalCode = root.findtext(".//zip");
|
|
666
|
-
}
|
|
667
|
-
return addr;
|
|
668
|
-
};
|
|
669
|
-
ProPayConnector.prototype.getACHOutBalanceInfoFromResponse = function (root) {
|
|
670
|
-
var balanceResponse = new AccountBalanceResponseData_1.AccountBalanceResponseData();
|
|
671
|
-
if (root.find("achOut")) {
|
|
672
|
-
balanceResponse.enabled = root.findtext(".//enabled"),
|
|
673
|
-
balanceResponse.limitRemaining = root.findtext(".//limitRemaining"),
|
|
674
|
-
balanceResponse.transferFee = root.findtext(".//transferFee"),
|
|
675
|
-
balanceResponse.feeType = root.findtext(".//feeType"),
|
|
676
|
-
balanceResponse.accountLastFour = root.findtext(".//accountLastFour");
|
|
677
|
-
}
|
|
678
|
-
return balanceResponse;
|
|
679
|
-
;
|
|
680
|
-
};
|
|
681
|
-
ProPayConnector.prototype.getFlashFundsBalanceInfoFromResponse = function (root) {
|
|
682
|
-
var balanceResponse = new AccountBalanceResponseData_1.AccountBalanceResponseData();
|
|
683
|
-
if (root.find("flashFunds")) {
|
|
684
|
-
balanceResponse.enabled = root.findtext(".//enabled"),
|
|
685
|
-
balanceResponse.limitRemaining = root.findtext(".//limitRemaining"),
|
|
686
|
-
balanceResponse.transferFee = root.findtext(".//transferFee"),
|
|
687
|
-
balanceResponse.feeType = root.findtext(".//feeType"),
|
|
688
|
-
balanceResponse.accountLastFour = root.findtext(".//accountLastFour");
|
|
689
|
-
}
|
|
690
|
-
return balanceResponse;
|
|
691
|
-
};
|
|
692
|
-
return ProPayConnector;
|
|
693
|
-
}(XmlGateway_1.XmlGateway));
|
|
694
|
-
exports.ProPayConnector = ProPayConnector;
|
|
695
|
-
//# sourceMappingURL=ProPayConnector.js.map
|