globalpayments-api 3.1.0 → 3.1.1
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/lib/src/Builders/AuthorizationBuilder.d.ts +325 -0
- package/lib/src/Builders/AuthorizationBuilder.js +617 -0
- package/lib/src/Builders/AuthorizationBuilder.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +14 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +62 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +16 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +36 -0
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +11 -0
- package/lib/src/Builders/BaseBuilder/Validations.js +55 -0
- package/lib/src/Builders/BaseBuilder/Validations.js.map +1 -0
- package/lib/src/Builders/BaseBuilder.d.ts +11 -0
- package/lib/src/Builders/BaseBuilder.js +17 -0
- package/lib/src/Builders/BaseBuilder.js.map +1 -0
- package/lib/src/Builders/ManagementBuilder.d.ts +104 -0
- package/lib/src/Builders/ManagementBuilder.js +208 -0
- package/lib/src/Builders/ManagementBuilder.js.map +1 -0
- package/lib/src/Builders/PayFacBuilder.d.ts +98 -0
- package/lib/src/Builders/PayFacBuilder.js +234 -0
- package/lib/src/Builders/PayFacBuilder.js.map +1 -0
- package/lib/src/Builders/RecurringBuilder.d.ts +13 -0
- package/lib/src/Builders/RecurringBuilder.js +34 -0
- package/lib/src/Builders/RecurringBuilder.js.map +1 -0
- package/lib/src/Builders/ReportBuilder.d.ts +8 -0
- package/lib/src/Builders/ReportBuilder.js +21 -0
- package/lib/src/Builders/ReportBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js +23 -0
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +17 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +36 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +6 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +49 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +17 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +109 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js +83 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +9 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +66 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +7 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +31 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/index.d.ts +3 -0
- package/lib/src/Builders/RequestBuilder/index.js +20 -0
- package/lib/src/Builders/RequestBuilder/index.js.map +1 -0
- package/lib/src/Builders/TransactionBuilder.d.ts +12 -0
- package/lib/src/Builders/TransactionBuilder.js +43 -0
- package/lib/src/Builders/TransactionBuilder.js.map +1 -0
- package/lib/src/Builders/TransactionReportBuilder.d.ts +15 -0
- package/lib/src/Builders/TransactionReportBuilder.js +65 -0
- package/lib/src/Builders/TransactionReportBuilder.js.map +1 -0
- package/lib/src/Builders/index.d.ts +8 -0
- package/lib/src/Builders/index.js +25 -0
- package/lib/src/Builders/index.js.map +1 -0
- package/lib/src/ConfiguredServices.d.ts +18 -0
- package/lib/src/ConfiguredServices.js +24 -0
- package/lib/src/ConfiguredServices.js.map +1 -0
- package/lib/src/Entities/Address.d.ts +13 -0
- package/lib/src/Entities/Address.js +21 -0
- package/lib/src/Entities/Address.js.map +1 -0
- package/lib/src/Entities/BatchSummary.d.ts +6 -0
- package/lib/src/Entities/BatchSummary.js +11 -0
- package/lib/src/Entities/BatchSummary.js.map +1 -0
- package/lib/src/Entities/Customer.d.ts +64 -0
- package/lib/src/Entities/Customer.js +80 -0
- package/lib/src/Entities/Customer.js.map +1 -0
- package/lib/src/Entities/CustomerDocument.d.ts +8 -0
- package/lib/src/Entities/CustomerDocument.js +16 -0
- package/lib/src/Entities/CustomerDocument.js.map +1 -0
- package/lib/src/Entities/DocumentUploadData.d.ts +13 -0
- package/lib/src/Entities/DocumentUploadData.js +81 -0
- package/lib/src/Entities/DocumentUploadData.js.map +1 -0
- package/lib/src/Entities/EcommerceInfo.d.ts +12 -0
- package/lib/src/Entities/EcommerceInfo.js +22 -0
- package/lib/src/Entities/EcommerceInfo.js.map +1 -0
- package/lib/src/Entities/EncryptionData.d.ts +6 -0
- package/lib/src/Entities/EncryptionData.js +11 -0
- package/lib/src/Entities/EncryptionData.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +428 -0
- package/lib/src/Entities/Enums.js +565 -0
- package/lib/src/Entities/Enums.js.map +1 -0
- package/lib/src/Entities/Errors.d.ts +23 -0
- package/lib/src/Entities/Errors.js +72 -0
- package/lib/src/Entities/Errors.js.map +1 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.d.ts +16 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.js +21 -0
- package/lib/src/Entities/GpApi/AccessTokenInfo.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiAccount.d.ts +5 -0
- package/lib/src/Entities/GpApi/GpApiAccount.js +13 -0
- package/lib/src/Entities/GpApi/GpApiAccount.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiRequest.d.ts +21 -0
- package/lib/src/Entities/GpApi/GpApiRequest.js +26 -0
- package/lib/src/Entities/GpApi/GpApiRequest.js.map +1 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.d.ts +52 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js +115 -0
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js.map +1 -0
- package/lib/src/Entities/GpApi/index.d.ts +4 -0
- package/lib/src/Entities/GpApi/index.js +21 -0
- package/lib/src/Entities/GpApi/index.js.map +1 -0
- package/lib/src/Entities/HostedPaymentData.d.ts +10 -0
- package/lib/src/Entities/HostedPaymentData.js +17 -0
- package/lib/src/Entities/HostedPaymentData.js.map +1 -0
- package/lib/src/Entities/IRequestBuilder.d.ts +6 -0
- package/lib/src/Entities/IRequestBuilder.js +3 -0
- package/lib/src/Entities/IRequestBuilder.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +7 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +12 -0
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +1 -0
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +15 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js +19 -0
- package/lib/src/Entities/ProFac/AccountPermissions.js.map +1 -0
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/BankAccountData.js +42 -0
- package/lib/src/Entities/ProFac/BankAccountData.js.map +1 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +8 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +15 -0
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +1 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +6 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +12 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +1 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +5 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +10 -0
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +1 -0
- package/lib/src/Entities/ProFac/BusinessData.d.ts +15 -0
- package/lib/src/Entities/ProFac/BusinessData.js +50 -0
- package/lib/src/Entities/ProFac/BusinessData.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +4 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +17 -0
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceData.d.ts +5 -0
- package/lib/src/Entities/ProFac/DeviceData.js +11 -0
- package/lib/src/Entities/ProFac/DeviceData.js.map +1 -0
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +6 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js +19 -0
- package/lib/src/Entities/ProFac/DeviceInfo.js.map +1 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +7 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +15 -0
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +1 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +8 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +10 -0
- package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +1 -0
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +18 -0
- package/lib/src/Entities/ProFac/OrderDevice.js +23 -0
- package/lib/src/Entities/ProFac/OrderDevice.js.map +1 -0
- package/lib/src/Entities/ProFac/OwnersData.d.ts +12 -0
- package/lib/src/Entities/ProFac/OwnersData.js +43 -0
- package/lib/src/Entities/ProFac/OwnersData.js.map +1 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +55 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js +62 -0
- package/lib/src/Entities/ProFac/PayFacResponseData.js.map +1 -0
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +10 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js +38 -0
- package/lib/src/Entities/ProFac/RenewAccountData.js.map +1 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +8 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +27 -0
- package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +1 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +5 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js +19 -0
- package/lib/src/Entities/ProFac/ThreatRiskData.js.map +1 -0
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +26 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js +82 -0
- package/lib/src/Entities/ProFac/UserPersonalData.js.map +1 -0
- package/lib/src/Entities/RecurringEntity.d.ts +14 -0
- package/lib/src/Entities/RecurringEntity.js +92 -0
- package/lib/src/Entities/RecurringEntity.js.map +1 -0
- package/lib/src/Entities/Request.d.ts +10 -0
- package/lib/src/Entities/Request.js +18 -0
- package/lib/src/Entities/Request.js.map +1 -0
- package/lib/src/Entities/SSORequestData.d.ts +5 -0
- package/lib/src/Entities/SSORequestData.js +19 -0
- package/lib/src/Entities/SSORequestData.js.map +1 -0
- package/lib/src/Entities/Schedule.d.ts +47 -0
- package/lib/src/Entities/Schedule.js +325 -0
- package/lib/src/Entities/Schedule.js.map +1 -0
- package/lib/src/Entities/ServiceEndpoints.d.ts +12 -0
- package/lib/src/Entities/ServiceEndpoints.js +17 -0
- package/lib/src/Entities/ServiceEndpoints.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +78 -0
- package/lib/src/Entities/Transaction.js +127 -0
- package/lib/src/Entities/Transaction.js.map +1 -0
- package/lib/src/Entities/TransactionSummary.d.ts +61 -0
- package/lib/src/Entities/TransactionSummary.js +66 -0
- package/lib/src/Entities/TransactionSummary.js.map +1 -0
- package/lib/src/Entities/index.d.ts +17 -0
- package/lib/src/Entities/index.js +34 -0
- package/lib/src/Entities/index.js.map +1 -0
- package/lib/src/Gateways/Gateway.d.ts +12 -0
- package/lib/src/Gateways/Gateway.js +70 -0
- package/lib/src/Gateways/Gateway.js.map +1 -0
- package/lib/src/Gateways/GatewayResponse.d.ts +8 -0
- package/lib/src/Gateways/GatewayResponse.js +15 -0
- package/lib/src/Gateways/GatewayResponse.js.map +1 -0
- package/lib/src/Gateways/GpApiConnector.d.ts +41 -0
- package/lib/src/Gateways/GpApiConnector.js +218 -0
- package/lib/src/Gateways/GpApiConnector.js.map +1 -0
- package/lib/src/Gateways/GpEcomConnector.d.ts +36 -0
- package/lib/src/Gateways/GpEcomConnector.js +465 -0
- package/lib/src/Gateways/GpEcomConnector.js.map +1 -0
- package/lib/src/Gateways/IPayFacProvider.d.ts +5 -0
- package/lib/src/Gateways/IPayFacProvider.js +3 -0
- package/lib/src/Gateways/IPayFacProvider.js.map +1 -0
- package/lib/src/Gateways/IPaymentGateway.d.ts +8 -0
- package/lib/src/Gateways/IPaymentGateway.js +3 -0
- package/lib/src/Gateways/IPaymentGateway.js.map +1 -0
- package/lib/src/Gateways/IRecurringService.d.ts +6 -0
- package/lib/src/Gateways/IRecurringService.js +3 -0
- package/lib/src/Gateways/IRecurringService.js.map +1 -0
- package/lib/src/Gateways/PayPlanConnector.d.ts +42 -0
- package/lib/src/Gateways/PayPlanConnector.js +532 -0
- package/lib/src/Gateways/PayPlanConnector.js.map +1 -0
- package/lib/src/Gateways/PorticoConnector.d.ts +48 -0
- package/lib/src/Gateways/PorticoConnector.js +1013 -0
- package/lib/src/Gateways/PorticoConnector.js.map +1 -0
- package/lib/src/Gateways/ProPayConnector.d.ts +45 -0
- package/lib/src/Gateways/ProPayConnector.js +802 -0
- package/lib/src/Gateways/ProPayConnector.js.map +1 -0
- package/lib/src/Gateways/RestGateway.d.ts +8 -0
- package/lib/src/Gateways/RestGateway.js +49 -0
- package/lib/src/Gateways/RestGateway.js.map +1 -0
- package/lib/src/Gateways/XmlGateway.d.ts +5 -0
- package/lib/src/Gateways/XmlGateway.js +14 -0
- package/lib/src/Gateways/XmlGateway.js.map +1 -0
- package/lib/src/Gateways/https-wrapper.d.ts +3 -0
- package/lib/src/Gateways/https-wrapper.js +77 -0
- package/lib/src/Gateways/https-wrapper.js.map +1 -0
- package/lib/src/Gateways/index.d.ts +9 -0
- package/lib/src/Gateways/index.js +26 -0
- package/lib/src/Gateways/index.js.map +1 -0
- package/lib/src/HostedPaymentConfig.d.ts +12 -0
- package/lib/src/HostedPaymentConfig.js +16 -0
- package/lib/src/HostedPaymentConfig.js.map +1 -0
- package/lib/src/Mapping/GpApiMapping.d.ts +5 -0
- package/lib/src/Mapping/GpApiMapping.js +14 -0
- package/lib/src/Mapping/GpApiMapping.js.map +1 -0
- package/lib/src/Mapping/GpEcomMapping.d.ts +9 -0
- package/lib/src/Mapping/GpEcomMapping.js +85 -0
- package/lib/src/Mapping/GpEcomMapping.js.map +1 -0
- package/lib/src/Mapping/index.d.ts +2 -0
- package/lib/src/Mapping/index.js +19 -0
- package/lib/src/Mapping/index.js.map +1 -0
- package/lib/src/PaymentMethods/Cash.d.ts +8 -0
- package/lib/src/PaymentMethods/Cash.js +16 -0
- package/lib/src/PaymentMethods/Cash.js.map +1 -0
- package/lib/src/PaymentMethods/Credit.d.ts +85 -0
- package/lib/src/PaymentMethods/Credit.js +105 -0
- package/lib/src/PaymentMethods/Credit.js.map +1 -0
- package/lib/src/PaymentMethods/CreditCardData.d.ts +20 -0
- package/lib/src/PaymentMethods/CreditCardData.js +47 -0
- package/lib/src/PaymentMethods/CreditCardData.js.map +1 -0
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +7 -0
- package/lib/src/PaymentMethods/CreditTrackData.js +10 -0
- package/lib/src/PaymentMethods/CreditTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/Debit.d.ts +40 -0
- package/lib/src/PaymentMethods/Debit.js +52 -0
- package/lib/src/PaymentMethods/Debit.js.map +1 -0
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +7 -0
- package/lib/src/PaymentMethods/DebitTrackData.js +10 -0
- package/lib/src/PaymentMethods/DebitTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/EBT.d.ts +48 -0
- package/lib/src/PaymentMethods/EBT.js +68 -0
- package/lib/src/PaymentMethods/EBT.js.map +1 -0
- package/lib/src/PaymentMethods/EBTCardData.d.ts +16 -0
- package/lib/src/PaymentMethods/EBTCardData.js +25 -0
- package/lib/src/PaymentMethods/EBTCardData.js.map +1 -0
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +8 -0
- package/lib/src/PaymentMethods/EBTTrackData.js +11 -0
- package/lib/src/PaymentMethods/EBTTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/ECheck.d.ts +32 -0
- package/lib/src/PaymentMethods/ECheck.js +38 -0
- package/lib/src/PaymentMethods/ECheck.js.map +1 -0
- package/lib/src/PaymentMethods/GiftCard.d.ts +131 -0
- package/lib/src/PaymentMethods/GiftCard.js +189 -0
- package/lib/src/PaymentMethods/GiftCard.js.map +1 -0
- package/lib/src/PaymentMethods/Interfaces.d.ts +55 -0
- package/lib/src/PaymentMethods/Interfaces.js +3 -0
- package/lib/src/PaymentMethods/Interfaces.js.map +1 -0
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +19 -0
- package/lib/src/PaymentMethods/PaymentMethod.js +57 -0
- package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +23 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +66 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +1 -0
- package/lib/src/PaymentMethods/TransactionReference.d.ts +10 -0
- package/lib/src/PaymentMethods/TransactionReference.js +17 -0
- package/lib/src/PaymentMethods/TransactionReference.js.map +1 -0
- package/lib/src/PaymentMethods/index.d.ts +15 -0
- package/lib/src/PaymentMethods/index.js +32 -0
- package/lib/src/PaymentMethods/index.js.map +1 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +29 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js +43 -0
- package/lib/src/ServiceConfigs/AcceptorConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Configuration.d.ts +15 -0
- package/lib/src/ServiceConfigs/Configuration.js +20 -0
- package/lib/src/ServiceConfigs/Configuration.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +14 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +30 -0
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +21 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +44 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +21 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +50 -0
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.d.ts +22 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js +116 -0
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js.map +1 -0
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +4 -0
- package/lib/src/ServiceConfigs/Gateways/index.js +21 -0
- package/lib/src/ServiceConfigs/Gateways/index.js.map +1 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.d.ts +6 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js +14 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js.map +1 -0
- package/lib/src/ServiceConfigs/index.d.ts +4 -0
- package/lib/src/ServiceConfigs/index.js +21 -0
- package/lib/src/ServiceConfigs/index.js.map +1 -0
- package/lib/src/Services/BatchService.d.ts +4 -0
- package/lib/src/Services/BatchService.js +15 -0
- package/lib/src/Services/BatchService.js.map +1 -0
- package/lib/src/Services/CheckService.d.ts +7 -0
- package/lib/src/Services/CheckService.js +20 -0
- package/lib/src/Services/CheckService.js.map +1 -0
- package/lib/src/Services/CreditService.d.ts +13 -0
- package/lib/src/Services/CreditService.js +54 -0
- package/lib/src/Services/CreditService.js.map +1 -0
- package/lib/src/Services/DebitService.d.ts +8 -0
- package/lib/src/Services/DebitService.js +28 -0
- package/lib/src/Services/DebitService.js.map +1 -0
- package/lib/src/Services/EBTService.d.ts +9 -0
- package/lib/src/Services/EBTService.js +31 -0
- package/lib/src/Services/EBTService.js.map +1 -0
- package/lib/src/Services/GiftService.d.ts +17 -0
- package/lib/src/Services/GiftService.js +54 -0
- package/lib/src/Services/GiftService.js.map +1 -0
- package/lib/src/Services/GpApiServices.d.ts +4 -0
- package/lib/src/Services/GpApiServices.js +44 -0
- package/lib/src/Services/GpApiServices.js.map +1 -0
- package/lib/src/Services/HostedService.d.ts +10 -0
- package/lib/src/Services/HostedService.js +59 -0
- package/lib/src/Services/HostedService.js.map +1 -0
- package/lib/src/Services/PayFacService.d.ts +26 -0
- package/lib/src/Services/PayFacService.js +76 -0
- package/lib/src/Services/PayFacService.js.map +1 -0
- package/lib/src/Services/RecurringService.d.ts +8 -0
- package/lib/src/Services/RecurringService.js +24 -0
- package/lib/src/Services/RecurringService.js.map +1 -0
- package/lib/src/Services/ReportingService.d.ts +6 -0
- package/lib/src/Services/ReportingService.js +18 -0
- package/lib/src/Services/ReportingService.js.map +1 -0
- package/lib/src/Services/index.d.ts +10 -0
- package/lib/src/Services/index.js +27 -0
- package/lib/src/Services/index.js.map +1 -0
- package/lib/src/ServicesContainer.d.ts +17 -0
- package/lib/src/ServicesContainer.js +58 -0
- package/lib/src/ServicesContainer.js.map +1 -0
- package/lib/src/Utils/GenerationUtils.d.ts +5 -0
- package/lib/src/Utils/GenerationUtils.js +34 -0
- package/lib/src/Utils/GenerationUtils.js.map +1 -0
- package/lib/src/Utils/InputValidation.d.ts +12 -0
- package/lib/src/Utils/InputValidation.js +71 -0
- package/lib/src/Utils/InputValidation.js.map +1 -0
- package/lib/src/Utils/Sha1.d.ts +6 -0
- package/lib/src/Utils/Sha1.js +231 -0
- package/lib/src/Utils/Sha1.js.map +1 -0
- package/lib/src/Utils/StringUtils.d.ts +6 -0
- package/lib/src/Utils/StringUtils.js +51 -0
- package/lib/src/Utils/StringUtils.js.map +1 -0
- package/lib/src/Utils/index.d.ts +2 -0
- package/lib/src/Utils/index.js +19 -0
- package/lib/src/Utils/index.js.map +1 -0
- package/lib/src/index.d.ts +12 -0
- package/lib/src/index.js +33 -0
- package/lib/src/index.js.map +1 -0
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +13 -0
- package/lib/test/Data/BaseGpApiTestConfig.js +42 -0
- package/lib/test/Data/BaseGpApiTestConfig.js.map +1 -0
- package/lib/test/Data/TestCards.d.ts +24 -0
- package/lib/test/Data/TestCards.js +220 -0
- package/lib/test/Data/TestCards.js.map +1 -0
- package/lib/test/Data/TestChecks.d.ts +4 -0
- package/lib/test/Data/TestChecks.js +27 -0
- package/lib/test/Data/TestChecks.js.map +1 -0
- package/lib/test/Data/index.d.ts +2 -0
- package/lib/test/Data/index.js +19 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +102 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +214 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +98 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +132 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +82 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +111 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
- package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
- package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
- package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
- package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// tslint:disable:max-classes-per-file
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.UnsupportedTransactionError = exports.NotImplementedError = exports.GatewayError = exports.ConfigurationError = exports.BuilderError = exports.ArgumentError = exports.ApiError = void 0;
|
|
5
|
+
class ApiError extends Error {
|
|
6
|
+
constructor(m) {
|
|
7
|
+
super(m);
|
|
8
|
+
Object.setPrototypeOf(this, ApiError.prototype);
|
|
9
|
+
this.name = this.constructor.name;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.ApiError = ApiError;
|
|
13
|
+
class ArgumentError extends ApiError {
|
|
14
|
+
constructor(m) {
|
|
15
|
+
super(m);
|
|
16
|
+
Object.setPrototypeOf(this, ArgumentError.prototype);
|
|
17
|
+
this.name = this.constructor.name;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.ArgumentError = ArgumentError;
|
|
21
|
+
class BuilderError extends ApiError {
|
|
22
|
+
constructor(m) {
|
|
23
|
+
super(m);
|
|
24
|
+
Object.setPrototypeOf(this, BuilderError.prototype);
|
|
25
|
+
this.name = this.constructor.name;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BuilderError = BuilderError;
|
|
29
|
+
class ConfigurationError extends ApiError {
|
|
30
|
+
constructor(m) {
|
|
31
|
+
super(m);
|
|
32
|
+
Object.setPrototypeOf(this, ConfigurationError.prototype);
|
|
33
|
+
this.name = this.constructor.name;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ConfigurationError = ConfigurationError;
|
|
37
|
+
class GatewayError extends ApiError {
|
|
38
|
+
responseCode;
|
|
39
|
+
responseMessage;
|
|
40
|
+
constructor(m, code, message) {
|
|
41
|
+
super(m);
|
|
42
|
+
Object.setPrototypeOf(this, GatewayError.prototype);
|
|
43
|
+
this.name = this.constructor.name;
|
|
44
|
+
if (code) {
|
|
45
|
+
this.responseCode = code;
|
|
46
|
+
}
|
|
47
|
+
if (message) {
|
|
48
|
+
this.responseMessage = message;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.GatewayError = GatewayError;
|
|
53
|
+
class NotImplementedError extends ApiError {
|
|
54
|
+
constructor(m) {
|
|
55
|
+
super(m);
|
|
56
|
+
Object.setPrototypeOf(this, NotImplementedError.prototype);
|
|
57
|
+
this.name = this.constructor.name;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.NotImplementedError = NotImplementedError;
|
|
61
|
+
class UnsupportedTransactionError extends ApiError {
|
|
62
|
+
constructor(m) {
|
|
63
|
+
if (!m) {
|
|
64
|
+
m = "Transaction type not supported for this payment method.";
|
|
65
|
+
}
|
|
66
|
+
super(m);
|
|
67
|
+
Object.setPrototypeOf(this, UnsupportedTransactionError.prototype);
|
|
68
|
+
this.name = this.constructor.name;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.UnsupportedTransactionError = UnsupportedTransactionError;
|
|
72
|
+
//# sourceMappingURL=Errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../../src/Entities/Errors.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEtC,MAAa,QAAS,SAAQ,KAAK;IACjC,YAAY,CAAU;QACpB,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;QAChD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,4BAMC;AAED,MAAa,aAAc,SAAQ,QAAQ;IACzC,YAAY,CAAU;QACpB,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;QACrD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,sCAMC;AAED,MAAa,YAAa,SAAQ,QAAQ;IACxC,YAAY,CAAU;QACpB,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,oCAMC;AAED,MAAa,kBAAmB,SAAQ,QAAQ;IAC9C,YAAY,CAAU;QACpB,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,gDAMC;AAED,MAAa,YAAa,SAAQ,QAAQ;IACjC,YAAY,CAAS;IACrB,eAAe,CAAS;IAC/B,YAAY,CAAU,EAAE,IAAa,EAAE,OAAgB;QACrD,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,IAAI,EAAE;YACR,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;SAC1B;QACD,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC;SAChC;IACH,CAAC;CACF;AAdD,oCAcC;AAED,MAAa,mBAAoB,SAAQ,QAAQ;IAC/C,YAAY,CAAU;QACpB,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;QAC3D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAND,kDAMC;AAED,MAAa,2BAA4B,SAAQ,QAAQ;IACvD,YAAY,CAAU;QACpB,IAAI,CAAC,CAAC,EAAE;YACN,CAAC,GAAG,yDAAyD,CAAC;SAC/D;QACD,KAAK,CAAC,CAAC,CAAC,CAAC;QACT,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;QACnE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AATD,kEASC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class AccessTokenInfo {
|
|
2
|
+
accessToken: string;
|
|
3
|
+
merchantId: string;
|
|
4
|
+
dataAccountName: string;
|
|
5
|
+
disputeManagementAccountName: string;
|
|
6
|
+
tokenizationAccountName: string;
|
|
7
|
+
transactionProcessingAccountName: string;
|
|
8
|
+
riskAssessmentAccountName: string;
|
|
9
|
+
dataAccountID: string;
|
|
10
|
+
disputeManagementAccountID: string;
|
|
11
|
+
tokenizationAccountID: string;
|
|
12
|
+
transactionProcessingAccountID: string;
|
|
13
|
+
riskAssessmentAccountID: string;
|
|
14
|
+
merchantManagementAccountName: string;
|
|
15
|
+
merchantManagementAccountID: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccessTokenInfo = void 0;
|
|
4
|
+
class AccessTokenInfo {
|
|
5
|
+
accessToken;
|
|
6
|
+
merchantId;
|
|
7
|
+
dataAccountName;
|
|
8
|
+
disputeManagementAccountName;
|
|
9
|
+
tokenizationAccountName;
|
|
10
|
+
transactionProcessingAccountName;
|
|
11
|
+
riskAssessmentAccountName;
|
|
12
|
+
dataAccountID;
|
|
13
|
+
disputeManagementAccountID;
|
|
14
|
+
tokenizationAccountID;
|
|
15
|
+
transactionProcessingAccountID;
|
|
16
|
+
riskAssessmentAccountID;
|
|
17
|
+
merchantManagementAccountName;
|
|
18
|
+
merchantManagementAccountID;
|
|
19
|
+
}
|
|
20
|
+
exports.AccessTokenInfo = AccessTokenInfo;
|
|
21
|
+
//# sourceMappingURL=AccessTokenInfo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessTokenInfo.js","sourceRoot":"","sources":["../../../../src/Entities/GpApi/AccessTokenInfo.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;IACnB,WAAW,CAAS;IAEpB,UAAU,CAAS;IAEnB,eAAe,CAAS;IAExB,4BAA4B,CAAS;IAErC,uBAAuB,CAAS;IAEhC,gCAAgC,CAAS;IAEzC,yBAAyB,CAAS;IAElC,aAAa,CAAS;IAEtB,0BAA0B,CAAS;IAEnC,qBAAqB,CAAS;IAE9B,8BAA8B,CAAS;IAEvC,uBAAuB,CAAS;IAEhC,6BAA6B,CAAS;IAEtC,2BAA2B,CAAS;CAC5C;AA5BD,0CA4BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GpApiAccount = void 0;
|
|
4
|
+
class GpApiAccount {
|
|
5
|
+
id;
|
|
6
|
+
name;
|
|
7
|
+
constructor(id, name) {
|
|
8
|
+
this.id = id;
|
|
9
|
+
this.name = name;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.GpApiAccount = GpApiAccount;
|
|
13
|
+
//# sourceMappingURL=GpApiAccount.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpApiAccount.js","sourceRoot":"","sources":["../../../../src/Entities/GpApi/GpApiAccount.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;IAChB,EAAE,CAAS;IACX,IAAI,CAAS;IAEpB,YAAY,EAAU,EAAE,IAAY;QAClC,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AARD,oCAQC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Request } from "../Request";
|
|
2
|
+
export declare class GpApiRequest extends Request {
|
|
3
|
+
static ACCESS_TOKEN_ENDPOINT: string;
|
|
4
|
+
static TRANSACTION_ENDPOINT: string;
|
|
5
|
+
static PAYMENT_METHODS_ENDPOINT: string;
|
|
6
|
+
static VERIFICATIONS_ENDPOINT: string;
|
|
7
|
+
static DEPOSITS_ENDPOINT: string;
|
|
8
|
+
static DISPUTES_ENDPOINT: string;
|
|
9
|
+
static SETTLEMENT_DISPUTES_ENDPOINT: string;
|
|
10
|
+
static SETTLEMENT_TRANSACTIONS_ENDPOINT: string;
|
|
11
|
+
static AUTHENTICATIONS_ENDPOINT: string;
|
|
12
|
+
static BATCHES_ENDPOINT: string;
|
|
13
|
+
static ACTIONS_ENDPOINT: string;
|
|
14
|
+
static MERCHANT_MANAGEMENT_ENDPOINT: string;
|
|
15
|
+
static DCC_ENDPOINT: string;
|
|
16
|
+
static PAYBYLINK_ENDPOINT: string;
|
|
17
|
+
static RISK_ASSESSMENTS: string;
|
|
18
|
+
static ACCOUNTS_ENDPOINT: string;
|
|
19
|
+
static TRANSFER_ENDPOINT: string;
|
|
20
|
+
static DEVICE_ENDPOINT: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GpApiRequest = void 0;
|
|
4
|
+
const Request_1 = require("../Request");
|
|
5
|
+
class GpApiRequest extends Request_1.Request {
|
|
6
|
+
static ACCESS_TOKEN_ENDPOINT = "/accesstoken";
|
|
7
|
+
static TRANSACTION_ENDPOINT = "/transactions";
|
|
8
|
+
static PAYMENT_METHODS_ENDPOINT = "/payment-methods";
|
|
9
|
+
static VERIFICATIONS_ENDPOINT = "/verifications";
|
|
10
|
+
static DEPOSITS_ENDPOINT = "/settlement/deposits";
|
|
11
|
+
static DISPUTES_ENDPOINT = "/disputes";
|
|
12
|
+
static SETTLEMENT_DISPUTES_ENDPOINT = "/settlement/disputes";
|
|
13
|
+
static SETTLEMENT_TRANSACTIONS_ENDPOINT = "/settlement/transactions";
|
|
14
|
+
static AUTHENTICATIONS_ENDPOINT = "/authentications";
|
|
15
|
+
static BATCHES_ENDPOINT = "/batches";
|
|
16
|
+
static ACTIONS_ENDPOINT = "/actions";
|
|
17
|
+
static MERCHANT_MANAGEMENT_ENDPOINT = "/merchants";
|
|
18
|
+
static DCC_ENDPOINT = "/currency-conversions";
|
|
19
|
+
static PAYBYLINK_ENDPOINT = "/links";
|
|
20
|
+
static RISK_ASSESSMENTS = "/risk-assessments";
|
|
21
|
+
static ACCOUNTS_ENDPOINT = "/accounts";
|
|
22
|
+
static TRANSFER_ENDPOINT = "/transfers";
|
|
23
|
+
static DEVICE_ENDPOINT = "/devices";
|
|
24
|
+
}
|
|
25
|
+
exports.GpApiRequest = GpApiRequest;
|
|
26
|
+
//# sourceMappingURL=GpApiRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpApiRequest.js","sourceRoot":"","sources":["../../../../src/Entities/GpApi/GpApiRequest.ts"],"names":[],"mappings":";;;AAAA,wCAAqC;AAErC,MAAa,YAAa,SAAQ,iBAAO;IAChC,MAAM,CAAC,qBAAqB,GAAG,cAAc,CAAC;IAC9C,MAAM,CAAC,oBAAoB,GAAG,eAAe,CAAC;IAC9C,MAAM,CAAC,wBAAwB,GAAG,kBAAkB,CAAC;IACrD,MAAM,CAAC,sBAAsB,GAAG,gBAAgB,CAAC;IACjD,MAAM,CAAC,iBAAiB,GAAG,sBAAsB,CAAC;IAClD,MAAM,CAAC,iBAAiB,GAAG,WAAW,CAAC;IACvC,MAAM,CAAC,4BAA4B,GAAG,sBAAsB,CAAC;IAC7D,MAAM,CAAC,gCAAgC,GAAG,0BAA0B,CAAC;IACrE,MAAM,CAAC,wBAAwB,GAAG,kBAAkB,CAAC;IACrD,MAAM,CAAC,gBAAgB,GAAG,UAAU,CAAC;IACrC,MAAM,CAAC,gBAAgB,GAAG,UAAU,CAAC;IACrC,MAAM,CAAC,4BAA4B,GAAG,YAAY,CAAC;IACnD,MAAM,CAAC,YAAY,GAAG,uBAAuB,CAAC;IAC9C,MAAM,CAAC,kBAAkB,GAAG,QAAQ,CAAC;IACrC,MAAM,CAAC,gBAAgB,GAAG,mBAAmB,CAAC;IAC9C,MAAM,CAAC,iBAAiB,GAAG,WAAW,CAAC;IACvC,MAAM,CAAC,iBAAiB,GAAG,YAAY,CAAC;IACxC,MAAM,CAAC,eAAe,GAAG,UAAU,CAAC;;AAlB7C,oCAmBC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GpApiAccount } from "./GpApiAccount";
|
|
2
|
+
export declare class GpApiTokenResponse {
|
|
3
|
+
token: string;
|
|
4
|
+
type: string;
|
|
5
|
+
timeCreated: string;
|
|
6
|
+
secondsToExpire: number;
|
|
7
|
+
appId: string;
|
|
8
|
+
appName: string;
|
|
9
|
+
email: string;
|
|
10
|
+
merchantId: string;
|
|
11
|
+
merchantName: string;
|
|
12
|
+
accounts: GpApiAccount[];
|
|
13
|
+
dataAccountName: string;
|
|
14
|
+
disputeManagementAccountName: string;
|
|
15
|
+
tokenizationAccountName: string;
|
|
16
|
+
transactionProcessingAccountName: string;
|
|
17
|
+
merchantManagementAccountName: string;
|
|
18
|
+
merchantManagementAccountId: string;
|
|
19
|
+
static DATA_ACCOUNT_NAME_PREFIX: string;
|
|
20
|
+
static DISPUTE_MANAGEMENT_ACCOUNT_NAME_PREFIX: string;
|
|
21
|
+
static TOKENIZATION_ACCOUNT_NAME_PREFIX: string;
|
|
22
|
+
static TRANSACTION_PROCESSING_ACCOUNT_NAME_PREFIX: string;
|
|
23
|
+
static RIKS_ASSESSMENT_ACCOUNT_NAME_PREFIX: string;
|
|
24
|
+
static MERCHANT_MANAGEMENT_ACCOUNT_PREFIX: string;
|
|
25
|
+
constructor(response: string);
|
|
26
|
+
/**
|
|
27
|
+
* @param string accountPrefix
|
|
28
|
+
*
|
|
29
|
+
* @return null|string
|
|
30
|
+
*/
|
|
31
|
+
private getAccountName;
|
|
32
|
+
/**
|
|
33
|
+
* @param string accountPrefix
|
|
34
|
+
*
|
|
35
|
+
* @return null|string
|
|
36
|
+
*/
|
|
37
|
+
private getAccountID;
|
|
38
|
+
getDataAccountName(): string;
|
|
39
|
+
getDataAccountID(): string;
|
|
40
|
+
getDisputeManagementAccountName(): string;
|
|
41
|
+
getDisputeManagementAccountID(): string;
|
|
42
|
+
getTokenizationAccountName(): string;
|
|
43
|
+
getTokenizationAccountID(): string;
|
|
44
|
+
getTransactionProcessingAccountName(): string;
|
|
45
|
+
getTransactionProcessingAccountID(): string;
|
|
46
|
+
getRiskAssessmentAccountName(): string;
|
|
47
|
+
getRiskAssessmentAccountID(): string;
|
|
48
|
+
getMerchantManagementAccountName(): string;
|
|
49
|
+
getMerchantManagementAccountID(): string;
|
|
50
|
+
getToken(): string;
|
|
51
|
+
private mapResponseValues;
|
|
52
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GpApiTokenResponse = void 0;
|
|
4
|
+
// import { AccessTokenInfo } from "./AccessTokenInfo";
|
|
5
|
+
const GpApiAccount_1 = require("./GpApiAccount");
|
|
6
|
+
class GpApiTokenResponse {
|
|
7
|
+
token;
|
|
8
|
+
type;
|
|
9
|
+
timeCreated;
|
|
10
|
+
secondsToExpire;
|
|
11
|
+
appId;
|
|
12
|
+
appName;
|
|
13
|
+
email;
|
|
14
|
+
merchantId;
|
|
15
|
+
merchantName;
|
|
16
|
+
accounts = [];
|
|
17
|
+
dataAccountName;
|
|
18
|
+
disputeManagementAccountName;
|
|
19
|
+
tokenizationAccountName;
|
|
20
|
+
transactionProcessingAccountName;
|
|
21
|
+
merchantManagementAccountName;
|
|
22
|
+
merchantManagementAccountId;
|
|
23
|
+
static DATA_ACCOUNT_NAME_PREFIX = "DAA_";
|
|
24
|
+
static DISPUTE_MANAGEMENT_ACCOUNT_NAME_PREFIX = "DIA_";
|
|
25
|
+
static TOKENIZATION_ACCOUNT_NAME_PREFIX = "TKA_";
|
|
26
|
+
static TRANSACTION_PROCESSING_ACCOUNT_NAME_PREFIX = "TRA_";
|
|
27
|
+
static RIKS_ASSESSMENT_ACCOUNT_NAME_PREFIX = "RAA_";
|
|
28
|
+
static MERCHANT_MANAGEMENT_ACCOUNT_PREFIX = "MMA_";
|
|
29
|
+
constructor(response) {
|
|
30
|
+
this.mapResponseValues(JSON.parse(response));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @param string accountPrefix
|
|
34
|
+
*
|
|
35
|
+
* @return null|string
|
|
36
|
+
*/
|
|
37
|
+
getAccountName(accountPrefix) {
|
|
38
|
+
for (const account of this.accounts) {
|
|
39
|
+
if (account.id && account.id.substr(0, 4) === accountPrefix) {
|
|
40
|
+
return account.name;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return "";
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* @param string accountPrefix
|
|
47
|
+
*
|
|
48
|
+
* @return null|string
|
|
49
|
+
*/
|
|
50
|
+
getAccountID(accountPrefix) {
|
|
51
|
+
for (const account of this.accounts) {
|
|
52
|
+
if (account.id && account.id.substr(0, 4) === accountPrefix) {
|
|
53
|
+
return account.id;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return "";
|
|
57
|
+
}
|
|
58
|
+
getDataAccountName() {
|
|
59
|
+
return this.getAccountName(GpApiTokenResponse.DATA_ACCOUNT_NAME_PREFIX);
|
|
60
|
+
}
|
|
61
|
+
getDataAccountID() {
|
|
62
|
+
return this.getAccountID(GpApiTokenResponse.DATA_ACCOUNT_NAME_PREFIX);
|
|
63
|
+
}
|
|
64
|
+
getDisputeManagementAccountName() {
|
|
65
|
+
return this.getAccountName(GpApiTokenResponse.DISPUTE_MANAGEMENT_ACCOUNT_NAME_PREFIX);
|
|
66
|
+
}
|
|
67
|
+
getDisputeManagementAccountID() {
|
|
68
|
+
return this.getAccountID(GpApiTokenResponse.DISPUTE_MANAGEMENT_ACCOUNT_NAME_PREFIX);
|
|
69
|
+
}
|
|
70
|
+
getTokenizationAccountName() {
|
|
71
|
+
return this.getAccountName(GpApiTokenResponse.TOKENIZATION_ACCOUNT_NAME_PREFIX);
|
|
72
|
+
}
|
|
73
|
+
getTokenizationAccountID() {
|
|
74
|
+
return this.getAccountID(GpApiTokenResponse.TOKENIZATION_ACCOUNT_NAME_PREFIX);
|
|
75
|
+
}
|
|
76
|
+
getTransactionProcessingAccountName() {
|
|
77
|
+
return this.getAccountName(GpApiTokenResponse.TRANSACTION_PROCESSING_ACCOUNT_NAME_PREFIX);
|
|
78
|
+
}
|
|
79
|
+
getTransactionProcessingAccountID() {
|
|
80
|
+
return this.getAccountID(GpApiTokenResponse.TRANSACTION_PROCESSING_ACCOUNT_NAME_PREFIX);
|
|
81
|
+
}
|
|
82
|
+
getRiskAssessmentAccountName() {
|
|
83
|
+
return this.getAccountName(GpApiTokenResponse.RIKS_ASSESSMENT_ACCOUNT_NAME_PREFIX);
|
|
84
|
+
}
|
|
85
|
+
getRiskAssessmentAccountID() {
|
|
86
|
+
return this.getAccountID(GpApiTokenResponse.RIKS_ASSESSMENT_ACCOUNT_NAME_PREFIX);
|
|
87
|
+
}
|
|
88
|
+
getMerchantManagementAccountName() {
|
|
89
|
+
return this.getAccountName(GpApiTokenResponse.MERCHANT_MANAGEMENT_ACCOUNT_PREFIX);
|
|
90
|
+
}
|
|
91
|
+
getMerchantManagementAccountID() {
|
|
92
|
+
return this.getAccountID(GpApiTokenResponse.MERCHANT_MANAGEMENT_ACCOUNT_PREFIX);
|
|
93
|
+
}
|
|
94
|
+
getToken() {
|
|
95
|
+
return this.token;
|
|
96
|
+
}
|
|
97
|
+
mapResponseValues(response) {
|
|
98
|
+
this.token = response.token;
|
|
99
|
+
this.type = response.type;
|
|
100
|
+
this.appId = response.app_id;
|
|
101
|
+
this.appName = response.app_name;
|
|
102
|
+
this.timeCreated = response.time_created;
|
|
103
|
+
this.secondsToExpire = response.seconds_to_expire;
|
|
104
|
+
this.email = response.email;
|
|
105
|
+
if (response.scope) {
|
|
106
|
+
this.merchantId = response.scope.merchant_id;
|
|
107
|
+
this.merchantName = response.scope.merchant_name;
|
|
108
|
+
for (const account of response.scope.accounts) {
|
|
109
|
+
this.accounts.push(new GpApiAccount_1.GpApiAccount(account.id, account.name));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.GpApiTokenResponse = GpApiTokenResponse;
|
|
115
|
+
//# sourceMappingURL=GpApiTokenResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GpApiTokenResponse.js","sourceRoot":"","sources":["../../../../src/Entities/GpApi/GpApiTokenResponse.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AccessTokenInfo"), exports);
|
|
18
|
+
__exportStar(require("./GpApiAccount"), exports);
|
|
19
|
+
__exportStar(require("./GpApiRequest"), exports);
|
|
20
|
+
__exportStar(require("./GpApiTokenResponse"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Entities/GpApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,iDAA+B;AAC/B,iDAA+B;AAC/B,uDAAqC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostedPaymentData = void 0;
|
|
4
|
+
class HostedPaymentData {
|
|
5
|
+
customerExists;
|
|
6
|
+
customerKey;
|
|
7
|
+
customerNumber;
|
|
8
|
+
offerToSaveCard;
|
|
9
|
+
paymentKey;
|
|
10
|
+
productId;
|
|
11
|
+
supplementaryData;
|
|
12
|
+
constructor() {
|
|
13
|
+
this.supplementaryData = {};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.HostedPaymentData = HostedPaymentData;
|
|
17
|
+
//# sourceMappingURL=HostedPaymentData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HostedPaymentData.js","sourceRoot":"","sources":["../../../src/Entities/HostedPaymentData.ts"],"names":[],"mappings":";;;AAAA,MAAa,iBAAiB;IACrB,cAAc,CAAU;IACxB,WAAW,CAAS;IACpB,cAAc,CAAS;IACvB,eAAe,CAAU;IACzB,UAAU,CAAS;IACnB,SAAS,CAAS;IAClB,iBAAiB,CAAS;IAEjC;QACE,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;IAC9B,CAAC;CACF;AAZD,8CAYC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BaseBuilder, GatewayConfig, Request, Transaction } from "../../src";
|
|
2
|
+
export interface IRequestBuilder {
|
|
3
|
+
buildRequest(builder: BaseBuilder<Transaction>, config: GatewayConfig): Request;
|
|
4
|
+
buildRequestFromJson(jsonRequest: any, config: GatewayConfig): void;
|
|
5
|
+
canProcess(builder: BaseBuilder<Transaction>): boolean;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IRequestBuilder.js","sourceRoot":"","sources":["../../../src/Entities/IRequestBuilder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountBalanceResponseData = void 0;
|
|
4
|
+
class AccountBalanceResponseData {
|
|
5
|
+
enabled;
|
|
6
|
+
limitRemaining;
|
|
7
|
+
transferFee;
|
|
8
|
+
feeType;
|
|
9
|
+
accountLastFour;
|
|
10
|
+
}
|
|
11
|
+
exports.AccountBalanceResponseData = AccountBalanceResponseData;
|
|
12
|
+
//# sourceMappingURL=AccountBalanceResponseData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountBalanceResponseData.js","sourceRoot":"","sources":["../../../../src/Entities/ProFac/AccountBalanceResponseData.ts"],"names":[],"mappings":";;;AAAA,MAAa,0BAA0B;IAC9B,OAAO,CAAS;IAChB,cAAc,CAAS;IACvB,WAAW,CAAS;IACpB,OAAO,CAAS;IAChB,eAAe,CAAS;CAChC;AAND,gEAMC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProPayAccountStatus } from "../../Entities";
|
|
2
|
+
export declare class AccountPermissions {
|
|
3
|
+
aCHIn: boolean;
|
|
4
|
+
aCHOut: boolean;
|
|
5
|
+
cCProcessing: boolean;
|
|
6
|
+
proPayIn: boolean;
|
|
7
|
+
proPayOut: boolean;
|
|
8
|
+
creditCardMonthLimit: string;
|
|
9
|
+
creditCardTransactionLimit: string;
|
|
10
|
+
merchantOverallStatus: ProPayAccountStatus;
|
|
11
|
+
softLimitEnabled: boolean;
|
|
12
|
+
aCHPaymentSoftLimitEnabled: boolean;
|
|
13
|
+
softLimitACHOffPercent: string;
|
|
14
|
+
aCHPaymentACHOffPercent: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AccountPermissions = void 0;
|
|
4
|
+
class AccountPermissions {
|
|
5
|
+
aCHIn;
|
|
6
|
+
aCHOut;
|
|
7
|
+
cCProcessing;
|
|
8
|
+
proPayIn;
|
|
9
|
+
proPayOut;
|
|
10
|
+
creditCardMonthLimit;
|
|
11
|
+
creditCardTransactionLimit;
|
|
12
|
+
merchantOverallStatus;
|
|
13
|
+
softLimitEnabled;
|
|
14
|
+
aCHPaymentSoftLimitEnabled;
|
|
15
|
+
softLimitACHOffPercent;
|
|
16
|
+
aCHPaymentACHOffPercent;
|
|
17
|
+
}
|
|
18
|
+
exports.AccountPermissions = AccountPermissions;
|
|
19
|
+
//# sourceMappingURL=AccountPermissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountPermissions.js","sourceRoot":"","sources":["../../../../src/Entities/ProFac/AccountPermissions.ts"],"names":[],"mappings":";;;AAEA,MAAa,kBAAkB;IACtB,KAAK,CAAU;IACf,MAAM,CAAU;IAChB,YAAY,CAAU;IACtB,QAAQ,CAAU;IAClB,SAAS,CAAU;IACnB,oBAAoB,CAAS;IAC7B,0BAA0B,CAAS;IACnC,qBAAqB,CAAsB;IAC3C,gBAAgB,CAAU;IAC1B,0BAA0B,CAAU;IACpC,sBAAsB,CAAS;IAC/B,uBAAuB,CAAS;CACxC;AAbD,gDAaC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankAccountData = void 0;
|
|
4
|
+
class BankAccountData {
|
|
5
|
+
/// <summary>
|
|
6
|
+
/// ISO 3166 standard 3-character country code
|
|
7
|
+
/// </summary>
|
|
8
|
+
accountCountryCode;
|
|
9
|
+
/// <summary>
|
|
10
|
+
/// Merchant/Individual Name
|
|
11
|
+
/// </summary>
|
|
12
|
+
accountName;
|
|
13
|
+
/// <summary>
|
|
14
|
+
/// Financial Institution account number
|
|
15
|
+
/// </summary>
|
|
16
|
+
accountNumber;
|
|
17
|
+
/// <summary>
|
|
18
|
+
/// Valid values are: Personal and Business
|
|
19
|
+
/// </summary>
|
|
20
|
+
accountOwnershipType;
|
|
21
|
+
/// <summary>
|
|
22
|
+
/// Valid Values are:
|
|
23
|
+
/// C - Checking
|
|
24
|
+
/// S - Savings
|
|
25
|
+
/// G - General Ledger
|
|
26
|
+
/// </summary>
|
|
27
|
+
accountType;
|
|
28
|
+
/// <summary>
|
|
29
|
+
/// Name of financial institution
|
|
30
|
+
/// </summary>
|
|
31
|
+
bankName;
|
|
32
|
+
/// <summary>
|
|
33
|
+
/// Financial institution routing number. Must be a valid ACH routing number.
|
|
34
|
+
/// </summary>
|
|
35
|
+
routingNumber;
|
|
36
|
+
/// <summary>
|
|
37
|
+
/// The account holder's name. This is required if payment method is a bank account.
|
|
38
|
+
/// </summary>
|
|
39
|
+
accountHolderName;
|
|
40
|
+
}
|
|
41
|
+
exports.BankAccountData = BankAccountData;
|
|
42
|
+
//# sourceMappingURL=BankAccountData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankAccountData.js","sourceRoot":"","sources":["../../../../src/Entities/ProFac/BankAccountData.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;IAC1B,aAAa;IACb,8CAA8C;IAC9C,cAAc;IACP,kBAAkB,CAAS;IAClC,aAAa;IACb,4BAA4B;IAC5B,cAAc;IACP,WAAW,CAAS;IAC3B,aAAa;IACb,wCAAwC;IACxC,cAAc;IACP,aAAa,CAAS;IAC7B,aAAa;IACb,2CAA2C;IAC3C,cAAc;IACP,oBAAoB,CAAS;IACpC,aAAa;IACb,qBAAqB;IACrB,gBAAgB;IAChB,eAAe;IACf,sBAAsB;IACtB,cAAc;IACP,WAAW,CAAS;IAC3B,aAAa;IACb,iCAAiC;IACjC,cAAc;IACP,QAAQ,CAAS;IACxB,aAAa;IACb,6EAA6E;IAC7E,cAAc;IACP,aAAa,CAAS;IAE7B,aAAa;IACb,oFAAoF;IACpF,cAAc;IACP,iBAAiB,CAAS;CAClC;AArCD,0CAqCC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankAccountOwnershipData = void 0;
|
|
4
|
+
const Entities_1 = require("../../Entities");
|
|
5
|
+
class BankAccountOwnershipData {
|
|
6
|
+
firstName;
|
|
7
|
+
lastName;
|
|
8
|
+
ownerAddress;
|
|
9
|
+
phoneNumber;
|
|
10
|
+
constructor() {
|
|
11
|
+
this.ownerAddress = new Entities_1.Address();
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.BankAccountOwnershipData = BankAccountOwnershipData;
|
|
15
|
+
//# sourceMappingURL=BankAccountOwnershipData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BankAccountOwnershipData.js","sourceRoot":"","sources":["../../../../src/Entities/ProFac/BankAccountOwnershipData.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AACzC,MAAa,wBAAwB;IAC5B,SAAS,CAAS;IAClB,QAAQ,CAAS;IACjB,YAAY,CAAU;IACtB,WAAW,CAAS;IAE3B;QACE,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAO,EAAE,CAAC;IACpC,CAAC;CACF;AATD,4DASC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BeneficialOwnerData = void 0;
|
|
4
|
+
class BeneficialOwnerData {
|
|
5
|
+
ownersCount;
|
|
6
|
+
ownersList;
|
|
7
|
+
constructor() {
|
|
8
|
+
this.ownersList = new Array();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BeneficialOwnerData = BeneficialOwnerData;
|
|
12
|
+
//# sourceMappingURL=BeneficialOwnerData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BeneficialOwnerData.js","sourceRoot":"","sources":["../../../../src/Entities/ProFac/BeneficialOwnerData.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;IACvB,WAAW,CAAS;IACpB,UAAU,CAAoB;IAErC;QACE,IAAI,CAAC,UAAU,GAAG,IAAI,KAAK,EAAc,CAAC;IAC5C,CAAC;CACF;AAPD,kDAOC"}
|