globalpayments-api 3.5.1-fix-2 → 3.5.1-fix-4
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 +348 -0
- package/lib/src/Builders/AuthorizationBuilder.js +668 -0
- package/lib/src/Builders/AuthorizationBuilder.js.map +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +16 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +92 -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 +122 -0
- package/lib/src/Builders/ManagementBuilder.js +244 -0
- package/lib/src/Builders/ManagementBuilder.js.map +1 -0
- package/lib/src/Builders/PayFacBuilder.d.ts +97 -0
- package/lib/src/Builders/PayFacBuilder.js +233 -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 +10 -0
- package/lib/src/Builders/ReportBuilder.js +27 -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 +35 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +448 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +7 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +179 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.d.ts +16 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js +34 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +11 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +163 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.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 +4 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js +21 -0
- package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +18 -0
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +125 -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 +8 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +39 -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 +13 -0
- package/lib/src/Builders/TransactionBuilder.js +47 -0
- package/lib/src/Builders/TransactionBuilder.js.map +1 -0
- package/lib/src/Builders/TransactionReportBuilder.d.ts +19 -0
- package/lib/src/Builders/TransactionReportBuilder.js +92 -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 +24 -0
- package/lib/src/ConfiguredServices.js +33 -0
- package/lib/src/ConfiguredServices.js.map +1 -0
- package/lib/src/Entities/Address.d.ts +14 -0
- package/lib/src/Entities/Address.js +23 -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/Card.d.ts +36 -0
- package/lib/src/Entities/Card.js +41 -0
- package/lib/src/Entities/Card.js.map +1 -0
- package/lib/src/Entities/CardIssuerResponse.d.ts +22 -0
- package/lib/src/Entities/CardIssuerResponse.js +27 -0
- package/lib/src/Entities/CardIssuerResponse.js.map +1 -0
- package/lib/src/Entities/Customer.d.ts +74 -0
- package/lib/src/Entities/Customer.js +94 -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 +7 -0
- package/lib/src/Entities/EncryptionData.js +16 -0
- package/lib/src/Entities/EncryptionData.js.map +1 -0
- package/lib/src/Entities/Enums/AcquisitionType.d.ts +10 -0
- package/lib/src/Entities/Enums/AcquisitionType.js +15 -0
- package/lib/src/Entities/Enums/AcquisitionType.js.map +1 -0
- package/lib/src/Entities/Enums/CardTypeFilter.d.ts +7 -0
- package/lib/src/Entities/Enums/CardTypeFilter.js +12 -0
- package/lib/src/Entities/Enums/CardTypeFilter.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +669 -0
- package/lib/src/Entities/Enums.js +859 -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/FraudRule.d.ts +8 -0
- package/lib/src/Entities/FraudRule.js +17 -0
- package/lib/src/Entities/FraudRule.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/DTO/Card.d.ts +16 -0
- package/lib/src/Entities/GpApi/DTO/Card.js +21 -0
- package/lib/src/Entities/GpApi/DTO/Card.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.d.ts +17 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js +21 -0
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js.map +1 -0
- package/lib/src/Entities/GpApi/DTO/index.d.ts +2 -0
- package/lib/src/Entities/GpApi/DTO/index.js +19 -0
- package/lib/src/Entities/GpApi/DTO/index.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/PageResult.d.ts +8 -0
- package/lib/src/Entities/GpApi/PageResult.js +13 -0
- package/lib/src/Entities/GpApi/PageResult.js.map +1 -0
- package/lib/src/Entities/GpApi/index.d.ts +5 -0
- package/lib/src/Entities/GpApi/index.js +22 -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/IRequestLogger.d.ts +8 -0
- package/lib/src/Entities/IRequestLogger.js +3 -0
- package/lib/src/Entities/IRequestLogger.js.map +1 -0
- package/lib/src/Entities/LodgingData.d.ts +14 -0
- package/lib/src/Entities/LodgingData.js +18 -0
- package/lib/src/Entities/LodgingData.js.map +1 -0
- package/lib/src/Entities/LodgingItems.d.ts +6 -0
- package/lib/src/Entities/LodgingItems.js +11 -0
- package/lib/src/Entities/LodgingItems.js.map +1 -0
- package/lib/src/Entities/MaskedValueCollection.d.ts +12 -0
- package/lib/src/Entities/MaskedValueCollection.js +53 -0
- package/lib/src/Entities/MaskedValueCollection.js.map +1 -0
- package/lib/src/Entities/PayerDetails.d.ts +8 -0
- package/lib/src/Entities/PayerDetails.js +12 -0
- package/lib/src/Entities/PayerDetails.js.map +1 -0
- package/lib/src/Entities/PhoneNumber.d.ts +6 -0
- package/lib/src/Entities/PhoneNumber.js +15 -0
- package/lib/src/Entities/PhoneNumber.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/Reporting/BaseSummary.d.ts +8 -0
- package/lib/src/Entities/Reporting/BaseSummary.js +13 -0
- package/lib/src/Entities/Reporting/BaseSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +108 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +125 -0
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +1 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.d.ts +11 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js +16 -0
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js.map +1 -0
- package/lib/src/Entities/Reporting/index.d.ts +3 -0
- package/lib/src/Entities/Reporting/index.js +20 -0
- package/lib/src/Entities/Reporting/index.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/StoredCredentials.d.ts +9 -0
- package/lib/src/Entities/StoredCredentials.js +13 -0
- package/lib/src/Entities/StoredCredentials.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +96 -0
- package/lib/src/Entities/Transaction.js +157 -0
- package/lib/src/Entities/Transaction.js.map +1 -0
- package/lib/src/Entities/TransactionStatus.d.ts +13 -0
- package/lib/src/Entities/TransactionStatus.js +29 -0
- package/lib/src/Entities/TransactionStatus.js.map +1 -0
- package/lib/src/Entities/TransactionSummary.d.ts +78 -0
- package/lib/src/Entities/TransactionSummary.js +83 -0
- package/lib/src/Entities/TransactionSummary.js.map +1 -0
- package/lib/src/Entities/UPA/ProcessIndicator.d.ts +7 -0
- package/lib/src/Entities/UPA/ProcessIndicator.js +11 -0
- package/lib/src/Entities/UPA/ProcessIndicator.js.map +1 -0
- package/lib/src/Entities/UPA/UpaParam.d.ts +10 -0
- package/lib/src/Entities/UPA/UpaParam.js +14 -0
- package/lib/src/Entities/UPA/UpaParam.js.map +1 -0
- package/lib/src/Entities/UPA/UpaTransactionData.d.ts +8 -0
- package/lib/src/Entities/UPA/UpaTransactionData.js +12 -0
- package/lib/src/Entities/UPA/UpaTransactionData.js.map +1 -0
- package/lib/src/Entities/UPA/index.d.ts +3 -0
- package/lib/src/Entities/UPA/index.js +20 -0
- package/lib/src/Entities/UPA/index.js.map +1 -0
- package/lib/src/Entities/index.d.ts +31 -0
- package/lib/src/Entities/index.js +48 -0
- package/lib/src/Entities/index.js.map +1 -0
- package/lib/src/Gateways/Gateway.d.ts +16 -0
- package/lib/src/Gateways/Gateway.js +94 -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 +42 -0
- package/lib/src/Gateways/GpApiConnector.js +232 -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 +468 -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 +545 -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 +801 -0
- package/lib/src/Gateways/ProPayConnector.js.map +1 -0
- package/lib/src/Gateways/RestGateway.d.ts +9 -0
- package/lib/src/Gateways/RestGateway.js +77 -0
- package/lib/src/Gateways/RestGateway.js.map +1 -0
- package/lib/src/Gateways/XmlGateway.d.ts +6 -0
- package/lib/src/Gateways/XmlGateway.js +54 -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 +81 -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/EnumMapping.d.ts +8 -0
- package/lib/src/Mapping/EnumMapping.js +84 -0
- package/lib/src/Mapping/EnumMapping.js.map +1 -0
- package/lib/src/Mapping/GpApiMapping.d.ts +15 -0
- package/lib/src/Mapping/GpApiMapping.js +285 -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 +3 -0
- package/lib/src/Mapping/index.js +20 -0
- package/lib/src/Mapping/index.js.map +1 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.d.ts +22 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js +47 -0
- package/lib/src/PaymentMethods/AlternativePaymentMethod.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 +109 -0
- package/lib/src/PaymentMethods/Credit.js +161 -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 +15 -0
- package/lib/src/PaymentMethods/CreditTrackData.js +36 -0
- package/lib/src/PaymentMethods/CreditTrackData.js.map +1 -0
- package/lib/src/PaymentMethods/Debit.d.ts +48 -0
- package/lib/src/PaymentMethods/Debit.js +64 -0
- package/lib/src/PaymentMethods/Debit.js.map +1 -0
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +9 -0
- package/lib/src/PaymentMethods/DebitTrackData.js +24 -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 +59 -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 +25 -0
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +69 -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 +17 -0
- package/lib/src/PaymentMethods/index.js +34 -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 +45 -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 +51 -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 +117 -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 +8 -0
- package/lib/src/ServiceConfigs/ServicesConfigs.js +15 -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/DeviceService.d.ts +5 -0
- package/lib/src/Services/DeviceService.js +19 -0
- package/lib/src/Services/DeviceService.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 +10 -0
- package/lib/src/Services/ReportingService.js +34 -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 +19 -0
- package/lib/src/ServicesContainer.js +64 -0
- package/lib/src/ServicesContainer.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.d.ts +6 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.d.ts +13 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.d.ts +4 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.d.ts +52 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js +3 -0
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.d.ts +3 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js +3 -0
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js.map +1 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.d.ts +3 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js +3 -0
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js.map +1 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.d.ts +16 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js +3 -0
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js.map +1 -0
- package/lib/src/Terminals/Abstractions/index.d.ts +7 -0
- package/lib/src/Terminals/Abstractions/index.js +24 -0
- package/lib/src/Terminals/Abstractions/index.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.d.ts +65 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js +172 -0
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.d.ts +12 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.js +32 -0
- package/lib/src/Terminals/Builders/TerminalBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.d.ts +30 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js +95 -0
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js.map +1 -0
- package/lib/src/Terminals/Builders/index.d.ts +2 -0
- package/lib/src/Terminals/Builders/index.js +19 -0
- package/lib/src/Terminals/Builders/index.js.map +1 -0
- package/lib/src/Terminals/ConnectionConfig.d.ts +20 -0
- package/lib/src/Terminals/ConnectionConfig.js +49 -0
- package/lib/src/Terminals/ConnectionConfig.js.map +1 -0
- package/lib/src/Terminals/DeviceController.d.ts +23 -0
- package/lib/src/Terminals/DeviceController.js +42 -0
- package/lib/src/Terminals/DeviceController.js.map +1 -0
- package/lib/src/Terminals/DeviceInterface.d.ts +21 -0
- package/lib/src/Terminals/DeviceInterface.js +50 -0
- package/lib/src/Terminals/DeviceInterface.js.map +1 -0
- package/lib/src/Terminals/DeviceMessage.d.ts +15 -0
- package/lib/src/Terminals/DeviceMessage.js +42 -0
- package/lib/src/Terminals/DeviceMessage.js.map +1 -0
- package/lib/src/Terminals/DeviceResponse.d.ts +10 -0
- package/lib/src/Terminals/DeviceResponse.js +16 -0
- package/lib/src/Terminals/DeviceResponse.js.map +1 -0
- package/lib/src/Terminals/Enums/ControlCodes.d.ts +5 -0
- package/lib/src/Terminals/Enums/ControlCodes.js +10 -0
- package/lib/src/Terminals/Enums/ControlCodes.js.map +1 -0
- package/lib/src/Terminals/Enums/index.d.ts +1 -0
- package/lib/src/Terminals/Enums/index.js +18 -0
- package/lib/src/Terminals/Enums/index.js.map +1 -0
- package/lib/src/Terminals/Enums.d.ts +12 -0
- package/lib/src/Terminals/Enums.js +18 -0
- package/lib/src/Terminals/Enums.js.map +1 -0
- package/lib/src/Terminals/SummaryResponse.d.ts +28 -0
- package/lib/src/Terminals/SummaryResponse.js +33 -0
- package/lib/src/Terminals/SummaryResponse.js.map +1 -0
- package/lib/src/Terminals/TerminalResponse.d.ts +42 -0
- package/lib/src/Terminals/TerminalResponse.js +49 -0
- package/lib/src/Terminals/TerminalResponse.js.map +1 -0
- package/lib/src/Terminals/TerminalUtils.d.ts +4 -0
- package/lib/src/Terminals/TerminalUtils.js +24 -0
- package/lib/src/Terminals/TerminalUtils.js.map +1 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.d.ts +20 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js +25 -0
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js.map +1 -0
- package/lib/src/Terminals/UPA/Entities/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Entities/index.js +18 -0
- package/lib/src/Terminals/UPA/Entities/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.d.ts +12 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js +76 -0
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js.map +1 -0
- package/lib/src/Terminals/UPA/Interfaces/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Interfaces/index.js +18 -0
- package/lib/src/Terminals/UPA/Interfaces/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.d.ts +53 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js +70 -0
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js.map +1 -0
- package/lib/src/Terminals/UPA/Reponses/index.d.ts +1 -0
- package/lib/src/Terminals/UPA/Reponses/index.js +18 -0
- package/lib/src/Terminals/UPA/Reponses/index.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.d.ts +7 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.js +11 -0
- package/lib/src/Terminals/UPA/Request/BaseRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.js +9 -0
- package/lib/src/Terminals/UPA/Request/GroupRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.d.ts +9 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.js +14 -0
- package/lib/src/Terminals/UPA/Request/RequestParams.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.js +9 -0
- package/lib/src/Terminals/UPA/Request/RootRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.d.ts +10 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js +15 -0
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js.map +1 -0
- package/lib/src/Terminals/UPA/Request/index.d.ts +5 -0
- package/lib/src/Terminals/UPA/Request/index.js +22 -0
- package/lib/src/Terminals/UPA/Request/index.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaController.d.ts +16 -0
- package/lib/src/Terminals/UPA/UpaController.js +213 -0
- package/lib/src/Terminals/UPA/UpaController.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaInterface.d.ts +10 -0
- package/lib/src/Terminals/UPA/UpaInterface.js +44 -0
- package/lib/src/Terminals/UPA/UpaInterface.js.map +1 -0
- package/lib/src/Terminals/UPA/UpaMessageType.d.ts +8 -0
- package/lib/src/Terminals/UPA/UpaMessageType.js +13 -0
- package/lib/src/Terminals/UPA/UpaMessageType.js.map +1 -0
- package/lib/src/Terminals/UPA/index.d.ts +7 -0
- package/lib/src/Terminals/UPA/index.js +24 -0
- package/lib/src/Terminals/UPA/index.js.map +1 -0
- package/lib/src/Terminals/index.d.ts +8 -0
- package/lib/src/Terminals/index.js +25 -0
- package/lib/src/Terminals/index.js.map +1 -0
- package/lib/src/Utils/CardUtils.d.ts +13 -0
- package/lib/src/Utils/CardUtils.js +221 -0
- package/lib/src/Utils/CardUtils.js.map +1 -0
- package/lib/src/Utils/GenerationUtils.d.ts +6 -0
- package/lib/src/Utils/GenerationUtils.js +79 -0
- package/lib/src/Utils/GenerationUtils.js.map +1 -0
- package/lib/src/Utils/IRawRequestBuilder.d.ts +3 -0
- package/lib/src/Utils/IRawRequestBuilder.js +3 -0
- package/lib/src/Utils/IRawRequestBuilder.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/Logging/Logger.d.ts +32 -0
- package/lib/src/Utils/Logging/Logger.js +209 -0
- package/lib/src/Utils/Logging/Logger.js.map +1 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.d.ts +11 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.js +23 -0
- package/lib/src/Utils/Logging/ProtectSensitiveData.js.map +1 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.d.ts +12 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.js +38 -0
- package/lib/src/Utils/Logging/SampleRequestLogger.js.map +1 -0
- package/lib/src/Utils/Logging/index.d.ts +3 -0
- package/lib/src/Utils/Logging/index.js +20 -0
- package/lib/src/Utils/Logging/index.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 +15 -0
- package/lib/src/Utils/StringUtils.js +80 -0
- package/lib/src/Utils/StringUtils.js.map +1 -0
- package/lib/src/Utils/index.d.ts +5 -0
- package/lib/src/Utils/index.js +22 -0
- package/lib/src/Utils/index.js.map +1 -0
- package/lib/src/index.d.ts +13 -0
- package/lib/src/index.js +34 -0
- package/lib/src/index.js.map +1 -0
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +14 -0
- package/lib/test/Data/BaseGpApiTestConfig.js +50 -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 +109 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1023 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +337 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.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 +215 -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 +99 -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 +133 -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/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.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,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Credit = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const PaymentMethod_1 = require("./PaymentMethod");
|
|
6
|
+
class Credit extends PaymentMethod_1.PaymentMethod {
|
|
7
|
+
encryptionData;
|
|
8
|
+
paymentMethodType = __1.PaymentMethodType.Credit;
|
|
9
|
+
/**
|
|
10
|
+
* The token value representing the card.
|
|
11
|
+
*
|
|
12
|
+
* For `TransactionModifier.EncryptedMobile` transactions, this value is the
|
|
13
|
+
* encrypted payload from the mobile payment scheme.
|
|
14
|
+
*/
|
|
15
|
+
token;
|
|
16
|
+
/**
|
|
17
|
+
* The type of mobile device used in `Transaction.Modifier.EncryptedMobile`
|
|
18
|
+
* transactions.
|
|
19
|
+
*/
|
|
20
|
+
mobileType;
|
|
21
|
+
/**
|
|
22
|
+
* Payment Source is the API or source of the cryptogram for WalletData.
|
|
23
|
+
*/
|
|
24
|
+
paymentSource;
|
|
25
|
+
cryptogram;
|
|
26
|
+
eci;
|
|
27
|
+
/**
|
|
28
|
+
* Authorizes the payment method
|
|
29
|
+
*
|
|
30
|
+
* @param string|number amount Amount to authorize
|
|
31
|
+
*
|
|
32
|
+
* @return AuthorizationBuilder
|
|
33
|
+
*/
|
|
34
|
+
authorize(amount) {
|
|
35
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Auth, this).withAmount(amount);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Authorizes the payment method and captures the entire authorized amount
|
|
39
|
+
*
|
|
40
|
+
* @param string|number amount Amount to authorize
|
|
41
|
+
*
|
|
42
|
+
* @return AuthorizationBuilder
|
|
43
|
+
*/
|
|
44
|
+
charge(amount) {
|
|
45
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Adds value to the payment method
|
|
49
|
+
*
|
|
50
|
+
* @param string|number amount Amount to add
|
|
51
|
+
*
|
|
52
|
+
* @return AuthorizationBuilder
|
|
53
|
+
*/
|
|
54
|
+
addValue(amount) {
|
|
55
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Inquires the balance of the payment method
|
|
59
|
+
*
|
|
60
|
+
* @param InquiryType inquiry Type of inquiry
|
|
61
|
+
*
|
|
62
|
+
* @return AuthorizationBuilder
|
|
63
|
+
*/
|
|
64
|
+
balanceInquiry(inquiry) {
|
|
65
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Balance, this).withBalanceInquiryType(inquiry);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Refunds the payment method
|
|
69
|
+
*
|
|
70
|
+
* @param string|number amount Amount to refund
|
|
71
|
+
*
|
|
72
|
+
* @return AuthorizationBuilder
|
|
73
|
+
*/
|
|
74
|
+
refund(amount) {
|
|
75
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Reverses the payment method
|
|
79
|
+
*
|
|
80
|
+
* @param string|number amount Amount to reverse
|
|
81
|
+
*
|
|
82
|
+
* @return AuthorizationBuilder
|
|
83
|
+
*/
|
|
84
|
+
reverse(amount) {
|
|
85
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Verifies the payment method
|
|
89
|
+
*
|
|
90
|
+
* @return AuthorizationBuilder
|
|
91
|
+
*/
|
|
92
|
+
verify() {
|
|
93
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Verify, this);
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Tokenizes the payment method
|
|
97
|
+
*
|
|
98
|
+
* @return AuthorizationBuilder
|
|
99
|
+
*/
|
|
100
|
+
tokenize(verifyCard = true, usageMode = __1.PaymentMethodUsageMode.MULTIPLE) {
|
|
101
|
+
if (verifyCard !== false) {
|
|
102
|
+
verifyCard = true;
|
|
103
|
+
}
|
|
104
|
+
const type = verifyCard ? __1.TransactionType.Verify : __1.TransactionType.Tokenize;
|
|
105
|
+
return new __1.AuthorizationBuilder(type, this)
|
|
106
|
+
.withRequestMultiUseToken(true)
|
|
107
|
+
.withPaymentMethodUsageMode(usageMode);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Updates the token expiry date with the values proced to the card object
|
|
111
|
+
*
|
|
112
|
+
* @returns boolean value indicating success/failure
|
|
113
|
+
*/
|
|
114
|
+
async updateTokenExpiry() {
|
|
115
|
+
if (!this.token) {
|
|
116
|
+
throw new __1.BuilderError("Token cannot be null");
|
|
117
|
+
}
|
|
118
|
+
await new __1.ManagementBuilder(__1.TransactionType.TokenUpdate)
|
|
119
|
+
.withPaymentMethod(this)
|
|
120
|
+
.execute();
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Updates the payment token
|
|
125
|
+
*
|
|
126
|
+
* @returns ManagementBuilder
|
|
127
|
+
*/
|
|
128
|
+
updateToken() {
|
|
129
|
+
if (!this.token) {
|
|
130
|
+
throw new __1.BuilderError("Token cannot be null");
|
|
131
|
+
}
|
|
132
|
+
return new __1.ManagementBuilder(__1.TransactionType.TokenUpdate).withPaymentMethod(this);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Deletes the token associated with the current card object
|
|
136
|
+
*
|
|
137
|
+
* @returns boolean value indicating success/failure
|
|
138
|
+
*/
|
|
139
|
+
async deleteToken() {
|
|
140
|
+
if (!this.token) {
|
|
141
|
+
throw new __1.BuilderError("Token cannot be null");
|
|
142
|
+
}
|
|
143
|
+
await new __1.ManagementBuilder(__1.TransactionType.TokenUpdate)
|
|
144
|
+
.withPaymentMethod(this)
|
|
145
|
+
.execute();
|
|
146
|
+
return true;
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Detokenizes the payment method
|
|
150
|
+
*
|
|
151
|
+
* @returns result of the detokenization
|
|
152
|
+
*/
|
|
153
|
+
async detokenize() {
|
|
154
|
+
if (!this.token) {
|
|
155
|
+
throw new __1.BuilderError("Token cannot be null or empty");
|
|
156
|
+
}
|
|
157
|
+
return await new __1.ManagementBuilder(__1.TransactionType.Detokenize, this).execute();
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.Credit = Credit;
|
|
161
|
+
//# sourceMappingURL=Credit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Credit.js","sourceRoot":"","sources":["../../../src/PaymentMethods/Credit.ts"],"names":[],"mappings":";;;AAAA,2BAUa;AAYb,mDAAgD;AAEhD,MAAsB,MACpB,SAAQ,6BAAa;IAYd,cAAc,CAAiB;IAC/B,iBAAiB,GAAG,qBAAiB,CAAC,MAAM,CAAC;IAEpD;;;;;OAKG;IACI,KAAK,CAAS;IAErB;;;OAGG;IACI,UAAU,CAAS;IAC1B;;OAEG;IACI,aAAa,CAAS;IACtB,UAAU,CAAS;IACnB,GAAG,CAAS;IAEnB;;;;;;OAMG;IACI,SAAS,CAAC,MAAwB;QACvC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,UAAU,CACpE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAwB;QACpC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,UAAU,CACpE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,QAAQ,CAAC,MAAwB;QACtC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,UAAU,CACxE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CAAC,OAAqB;QACzC,OAAO,IAAI,wBAAoB,CAC7B,mBAAe,CAAC,OAAO,EACvB,IAAI,CACL,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAwB;QACpC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,CACtE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,OAAO,CAAC,MAAwB;QACrC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,UAAU,CACxE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,MAAM;QACX,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACI,QAAQ,CACb,aAAsB,IAAI,EAC1B,YAAoC,0BAAsB,CAAC,QAAQ;QAEnE,IAAI,UAAU,KAAK,KAAK,EAAE;YACxB,UAAU,GAAG,IAAI,CAAC;SACnB;QACD,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,mBAAe,CAAC,MAAM,CAAC,CAAC,CAAC,mBAAe,CAAC,QAAQ,CAAC;QAE5E,OAAO,IAAI,wBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC;aACxC,wBAAwB,CAAC,IAAI,CAAC;aAC9B,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,iBAAiB;QAC5B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,MAAM,IAAI,gBAAY,CAAC,sBAAsB,CAAC,CAAC;SAChD;QAED,MAAM,IAAI,qBAAiB,CAAC,mBAAe,CAAC,WAAW,CAAC;aACrD,iBAAiB,CAAC,IAAI,CAAC;aACvB,OAAO,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACI,WAAW;QAChB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,MAAM,IAAI,gBAAY,CAAC,sBAAsB,CAAC,CAAC;SAChD;QAED,OAAO,IAAI,qBAAiB,CAAC,mBAAe,CAAC,WAAW,CAAC,CAAC,iBAAiB,CACzE,IAAI,CACL,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,WAAW;QACtB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,MAAM,IAAI,gBAAY,CAAC,sBAAsB,CAAC,CAAC;SAChD;QAED,MAAM,IAAI,qBAAiB,CAAC,mBAAe,CAAC,WAAW,CAAC;aACrD,iBAAiB,CAAC,IAAI,CAAC;aACvB,OAAO,EAAE,CAAC;QAEb,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,UAAU;QACrB,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,MAAM,IAAI,gBAAY,CAAC,+BAA+B,CAAC,CAAC;SACzD;QAED,OAAO,MAAM,IAAI,qBAAiB,CAChC,mBAAe,CAAC,UAAU,EAC1B,IAAI,CACL,CAAC,OAAO,EAAE,CAAC;IACd,CAAC;CACF;AA/MD,wBA+MC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CvnPresenceIndicator } from "../";
|
|
2
|
+
import { Credit } from "./Credit";
|
|
3
|
+
import { ICardData } from "./Interfaces";
|
|
4
|
+
export declare class CreditCardData extends Credit implements ICardData {
|
|
5
|
+
static cardTypes: {
|
|
6
|
+
name: string;
|
|
7
|
+
regex: RegExp;
|
|
8
|
+
}[];
|
|
9
|
+
number: string;
|
|
10
|
+
expMonth: string;
|
|
11
|
+
expYear: string;
|
|
12
|
+
cvn: string;
|
|
13
|
+
cvnPresenceIndicator: CvnPresenceIndicator;
|
|
14
|
+
cardHolderName: string;
|
|
15
|
+
cardPresent: boolean;
|
|
16
|
+
readerPresent: boolean;
|
|
17
|
+
constructor();
|
|
18
|
+
getCardType(): string;
|
|
19
|
+
getShortExpiry(): string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditCardData = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const Credit_1 = require("./Credit");
|
|
6
|
+
class CreditCardData extends Credit_1.Credit {
|
|
7
|
+
static cardTypes = [
|
|
8
|
+
{ name: "Visa", regex: /^4/ },
|
|
9
|
+
{ name: "MC", regex: /^(5[1-5]|2[2-7])/ },
|
|
10
|
+
{ name: "Amex", regex: /^3[47]/ },
|
|
11
|
+
{ name: "Diners", regex: /^3[0689]/ },
|
|
12
|
+
{ name: "EnRoute", regex: /^2(014|149)/ },
|
|
13
|
+
{ name: "Discover", regex: /^6([045]|22)/ },
|
|
14
|
+
{ name: "Jcb", regex: /^35/ },
|
|
15
|
+
];
|
|
16
|
+
number;
|
|
17
|
+
expMonth;
|
|
18
|
+
expYear;
|
|
19
|
+
cvn;
|
|
20
|
+
cvnPresenceIndicator;
|
|
21
|
+
cardHolderName;
|
|
22
|
+
cardPresent;
|
|
23
|
+
readerPresent;
|
|
24
|
+
constructor() {
|
|
25
|
+
super();
|
|
26
|
+
this.cardPresent = false;
|
|
27
|
+
this.readerPresent = false;
|
|
28
|
+
this.cvnPresenceIndicator = __1.CvnPresenceIndicator.NotRequested;
|
|
29
|
+
}
|
|
30
|
+
getCardType() {
|
|
31
|
+
const number = this.number.replace(" ", "").replace("-", "");
|
|
32
|
+
for (const type of CreditCardData.cardTypes) {
|
|
33
|
+
if (type.regex.test(number)) {
|
|
34
|
+
return type.name;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return "Unknown";
|
|
38
|
+
}
|
|
39
|
+
getShortExpiry() {
|
|
40
|
+
if (this.expMonth != null && this.expYear != null) {
|
|
41
|
+
return this.expMonth + this.expYear.slice(-2);
|
|
42
|
+
}
|
|
43
|
+
return "";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreditCardData = CreditCardData;
|
|
47
|
+
//# sourceMappingURL=CreditCardData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditCardData.js","sourceRoot":"","sources":["../../../src/PaymentMethods/CreditCardData.ts"],"names":[],"mappings":";;;AAAA,2BAA2C;AAC3C,qCAAkC;AAGlC,MAAa,cAAe,SAAQ,eAAM;IACjC,MAAM,CAAC,SAAS,GAAG;QACxB,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;QAC7B,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,kBAAkB,EAAE;QACzC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE;QACjC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE;QACrC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,aAAa,EAAE;QACzC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE;QAC3C,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;KAC9B,CAAC;IAEK,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,OAAO,CAAS;IAChB,GAAG,CAAS;IACZ,oBAAoB,CAAuB;IAC3C,cAAc,CAAS;IACvB,WAAW,CAAU;IACrB,aAAa,CAAU;IAE9B;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,oBAAoB,GAAG,wBAAoB,CAAC,YAAY,CAAC;IAChE,CAAC;IAEM,WAAW;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAE7D,KAAK,MAAM,IAAI,IAAI,cAAc,CAAC,SAAS,EAAE;YAC3C,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;gBAC3B,OAAO,IAAI,CAAC,IAAI,CAAC;aAClB;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IAEM,cAAc;QACnB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,EAAE;YACjD,OAAO,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;SAC/C;QAED,OAAO,EAAE,CAAC;IACZ,CAAC;;AA7CH,wCA8CC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EntryMethod } from "../";
|
|
2
|
+
import { Credit } from "./Credit";
|
|
3
|
+
import { ITrackData } from "./Interfaces";
|
|
4
|
+
export declare class CreditTrackData extends Credit implements ITrackData {
|
|
5
|
+
entryMethod: EntryMethod;
|
|
6
|
+
value: string;
|
|
7
|
+
discretionaryData: string;
|
|
8
|
+
expiry: string;
|
|
9
|
+
pan: string;
|
|
10
|
+
purchaseDeviceSequenceNumber: string;
|
|
11
|
+
trackNumber: string;
|
|
12
|
+
trackData: string;
|
|
13
|
+
setTrackData(value: string): void;
|
|
14
|
+
setValue(value: string): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditTrackData = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const Credit_1 = require("./Credit");
|
|
6
|
+
class CreditTrackData extends Credit_1.Credit {
|
|
7
|
+
entryMethod;
|
|
8
|
+
value;
|
|
9
|
+
discretionaryData;
|
|
10
|
+
expiry;
|
|
11
|
+
pan;
|
|
12
|
+
purchaseDeviceSequenceNumber;
|
|
13
|
+
trackNumber;
|
|
14
|
+
trackData;
|
|
15
|
+
setTrackData(value) {
|
|
16
|
+
if (!this.value) {
|
|
17
|
+
this.setValue(value);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
this.trackData = value;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
setValue(value) {
|
|
24
|
+
this.value = value;
|
|
25
|
+
__1.CardUtils.parseTrackData(this);
|
|
26
|
+
this.cardType = __1.CardUtils.getCardType(this.pan);
|
|
27
|
+
this.isFleet = __1.CardUtils.isFleet(this.cardType, this.pan);
|
|
28
|
+
if (this.cardType === "WexFleet" &&
|
|
29
|
+
this.discretionaryData !== null &&
|
|
30
|
+
this.discretionaryData.length >= 8) {
|
|
31
|
+
this.purchaseDeviceSequenceNumber = this.discretionaryData.substring(3, 11);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.CreditTrackData = CreditTrackData;
|
|
36
|
+
//# sourceMappingURL=CreditTrackData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreditTrackData.js","sourceRoot":"","sources":["../../../src/PaymentMethods/CreditTrackData.ts"],"names":[],"mappings":";;;AAAA,2BAA6C;AAC7C,qCAAkC;AAGlC,MAAa,eAAgB,SAAQ,eAAM;IAClC,WAAW,CAAc;IACzB,KAAK,CAAS;IACd,iBAAiB,CAAS;IAC1B,MAAM,CAAS;IACf,GAAG,CAAS;IACZ,4BAA4B,CAAS;IACrC,WAAW,CAAS;IACpB,SAAS,CAAS;IAElB,YAAY,CAAC,KAAa;QAC/B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACtB;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;SACxB;IACH,CAAC;IAED,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,aAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,aAAS,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,GAAG,aAAS,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QAE1D,IACE,IAAI,CAAC,QAAQ,KAAK,UAAU;YAC5B,IAAI,CAAC,iBAAiB,KAAK,IAAI;YAC/B,IAAI,CAAC,iBAAiB,CAAC,MAAM,IAAI,CAAC,EAClC;YACA,IAAI,CAAC,4BAA4B,GAAG,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAClE,CAAC,EACD,EAAE,CACH,CAAC;SACH;IACH,CAAC;CACF;AAnCD,0CAmCC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AuthorizationBuilder, EncryptionData, PaymentMethodType } from "../";
|
|
2
|
+
import { IChargable, IEncryptable, IPinProtected, IPrePayable, IRefundable, IReversable } from "./Interfaces";
|
|
3
|
+
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
+
export declare abstract class Debit extends PaymentMethod implements IChargable, IEncryptable, IRefundable, IReversable, IPrePayable, IPinProtected {
|
|
5
|
+
encryptionData: EncryptionData;
|
|
6
|
+
paymentMethodType: PaymentMethodType;
|
|
7
|
+
pinBlock: string;
|
|
8
|
+
/**
|
|
9
|
+
* Authorizes the payment method and captures the entire authorized amount
|
|
10
|
+
*
|
|
11
|
+
* @param string|number amount Amount to authorize
|
|
12
|
+
*
|
|
13
|
+
* @return AuthorizationBuilder
|
|
14
|
+
*/
|
|
15
|
+
charge(amount?: string | number): AuthorizationBuilder;
|
|
16
|
+
/**
|
|
17
|
+
* Adds value to the payment method
|
|
18
|
+
*
|
|
19
|
+
* @param string|number amount Amount to add
|
|
20
|
+
*
|
|
21
|
+
* @return AuthorizationBuilder
|
|
22
|
+
*/
|
|
23
|
+
addValue(amount?: string | number): AuthorizationBuilder;
|
|
24
|
+
/**
|
|
25
|
+
* Refunds the payment method
|
|
26
|
+
*
|
|
27
|
+
* @param string|number amount Amount to refund
|
|
28
|
+
*
|
|
29
|
+
* @return AuthorizationBuilder
|
|
30
|
+
*/
|
|
31
|
+
refund(amount?: string | number): AuthorizationBuilder;
|
|
32
|
+
/**
|
|
33
|
+
* Reverses the payment method
|
|
34
|
+
*
|
|
35
|
+
* @param string|number amount Amount to reverse
|
|
36
|
+
*
|
|
37
|
+
* @return AuthorizationBuilder
|
|
38
|
+
*/
|
|
39
|
+
reverse(amount?: string | number): AuthorizationBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Authorizes the payment method
|
|
42
|
+
*
|
|
43
|
+
* @param string|number amount Amount to reverse
|
|
44
|
+
*
|
|
45
|
+
* @return AuthorizationBuilder
|
|
46
|
+
*/
|
|
47
|
+
authorize(amount?: string | number): AuthorizationBuilder;
|
|
48
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Debit = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const PaymentMethod_1 = require("./PaymentMethod");
|
|
6
|
+
class Debit extends PaymentMethod_1.PaymentMethod {
|
|
7
|
+
encryptionData;
|
|
8
|
+
paymentMethodType = __1.PaymentMethodType.Debit;
|
|
9
|
+
pinBlock;
|
|
10
|
+
/**
|
|
11
|
+
* Authorizes the payment method and captures the entire authorized amount
|
|
12
|
+
*
|
|
13
|
+
* @param string|number amount Amount to authorize
|
|
14
|
+
*
|
|
15
|
+
* @return AuthorizationBuilder
|
|
16
|
+
*/
|
|
17
|
+
charge(amount) {
|
|
18
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Adds value to the payment method
|
|
22
|
+
*
|
|
23
|
+
* @param string|number amount Amount to add
|
|
24
|
+
*
|
|
25
|
+
* @return AuthorizationBuilder
|
|
26
|
+
*/
|
|
27
|
+
addValue(amount) {
|
|
28
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Refunds the payment method
|
|
32
|
+
*
|
|
33
|
+
* @param string|number amount Amount to refund
|
|
34
|
+
*
|
|
35
|
+
* @return AuthorizationBuilder
|
|
36
|
+
*/
|
|
37
|
+
refund(amount) {
|
|
38
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Reverses the payment method
|
|
42
|
+
*
|
|
43
|
+
* @param string|number amount Amount to reverse
|
|
44
|
+
*
|
|
45
|
+
* @return AuthorizationBuilder
|
|
46
|
+
*/
|
|
47
|
+
reverse(amount) {
|
|
48
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Authorizes the payment method
|
|
52
|
+
*
|
|
53
|
+
* @param string|number amount Amount to reverse
|
|
54
|
+
*
|
|
55
|
+
* @return AuthorizationBuilder
|
|
56
|
+
*/
|
|
57
|
+
authorize(amount) {
|
|
58
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Auth, this)
|
|
59
|
+
.withAmount(amount)
|
|
60
|
+
.withAmountEstimated(true);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.Debit = Debit;
|
|
64
|
+
//# sourceMappingURL=Debit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Debit.js","sourceRoot":"","sources":["../../../src/PaymentMethods/Debit.ts"],"names":[],"mappings":";;;AAAA,2BAKa;AASb,mDAAgD;AAEhD,MAAsB,KACpB,SAAQ,6BAAa;IASd,cAAc,CAAiB;IAC/B,iBAAiB,GAAsB,qBAAiB,CAAC,KAAK,CAAC;IAC/D,QAAQ,CAAS;IAExB;;;;;;OAMG;IACI,MAAM,CAAC,MAAwB;QACpC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,UAAU,CACpE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,QAAQ,CAAC,MAAwB;QACtC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,UAAU,CACxE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAwB;QACpC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,CACtE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,OAAO,CAAC,MAAwB;QACrC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,UAAU,CACxE,MAAM,CACP,CAAC;IACJ,CAAC;IACD;;;;;;OAMG;IACI,SAAS,CAAC,MAAwB;QACvC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,IAAI,EAAE,IAAI,CAAC;aACxD,UAAU,CAAC,MAAM,CAAC;aAClB,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;CACF;AA7ED,sBA6EC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EntryMethod } from "../";
|
|
2
|
+
import { Debit } from "./Debit";
|
|
3
|
+
import { ITrackData } from "./Interfaces";
|
|
4
|
+
export declare class DebitTrackData extends Debit implements ITrackData {
|
|
5
|
+
entryMethod: EntryMethod;
|
|
6
|
+
value: string;
|
|
7
|
+
setTrackData(value: string): void;
|
|
8
|
+
setValue(value: string): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DebitTrackData = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const Debit_1 = require("./Debit");
|
|
6
|
+
class DebitTrackData extends Debit_1.Debit {
|
|
7
|
+
entryMethod;
|
|
8
|
+
value;
|
|
9
|
+
setTrackData(value) {
|
|
10
|
+
if (!this.value) {
|
|
11
|
+
this.setValue(value);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
this.trackData = value;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
setValue(value) {
|
|
18
|
+
this.value = value;
|
|
19
|
+
__1.CardUtils.parseTrackData(this);
|
|
20
|
+
this.cardType = __1.CardUtils.getCardType(this.pan);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.DebitTrackData = DebitTrackData;
|
|
24
|
+
//# sourceMappingURL=DebitTrackData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebitTrackData.js","sourceRoot":"","sources":["../../../src/PaymentMethods/DebitTrackData.ts"],"names":[],"mappings":";;;AAAA,2BAA6C;AAC7C,mCAAgC;AAGhC,MAAa,cAAe,SAAQ,aAAK;IAChC,WAAW,CAAc;IACzB,KAAK,CAAS;IAEd,YAAY,CAAC,KAAa;QAC/B,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE;YACf,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;SACtB;aAAM;YACL,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;SACxB;IACH,CAAC;IAEM,QAAQ,CAAC,KAAa;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,aAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,aAAS,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;CACF;AAjBD,wCAiBC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AuthorizationBuilder, InquiryType, PaymentMethodType } from "../";
|
|
2
|
+
import { IBalanceable, IChargable, IPinProtected, IPrePayable, IRefundable, IReversable } from "./Interfaces";
|
|
3
|
+
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
+
export declare abstract class EBT extends PaymentMethod implements IBalanceable, IChargable, IRefundable, IReversable, IPrePayable, IPinProtected {
|
|
5
|
+
paymentMethodType: PaymentMethodType;
|
|
6
|
+
pinBlock: string;
|
|
7
|
+
/**
|
|
8
|
+
* Authorizes the payment method and captures the entire authorized amount
|
|
9
|
+
*
|
|
10
|
+
* @param string|number amount Amount to authorize
|
|
11
|
+
*
|
|
12
|
+
* @return AuthorizationBuilder
|
|
13
|
+
*/
|
|
14
|
+
charge(amount?: string | number): AuthorizationBuilder;
|
|
15
|
+
/**
|
|
16
|
+
* Adds value to the payment method
|
|
17
|
+
*
|
|
18
|
+
* @param string|number amount Amount to add
|
|
19
|
+
*
|
|
20
|
+
* @return AuthorizationBuilder
|
|
21
|
+
*/
|
|
22
|
+
addValue(amount?: string | number): AuthorizationBuilder;
|
|
23
|
+
/**
|
|
24
|
+
* Inquires the balance of the payment method
|
|
25
|
+
*
|
|
26
|
+
* @param InquiryType inquiry Type of inquiry
|
|
27
|
+
*
|
|
28
|
+
* @return AuthorizationBuilder
|
|
29
|
+
*/
|
|
30
|
+
balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
|
|
31
|
+
benefitWithdrawal(amount?: number | string): AuthorizationBuilder;
|
|
32
|
+
/**
|
|
33
|
+
* Refunds the payment method
|
|
34
|
+
*
|
|
35
|
+
* @param string|number amount Amount to refund
|
|
36
|
+
*
|
|
37
|
+
* @return AuthorizationBuilder
|
|
38
|
+
*/
|
|
39
|
+
refund(amount?: string | number): AuthorizationBuilder;
|
|
40
|
+
/**
|
|
41
|
+
* Reverses the payment method
|
|
42
|
+
*
|
|
43
|
+
* @param string|number amount Amount to reverse
|
|
44
|
+
*
|
|
45
|
+
* @return AuthorizationBuilder
|
|
46
|
+
*/
|
|
47
|
+
reverse(): AuthorizationBuilder;
|
|
48
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBT = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const PaymentMethod_1 = require("./PaymentMethod");
|
|
6
|
+
class EBT extends PaymentMethod_1.PaymentMethod {
|
|
7
|
+
paymentMethodType = __1.PaymentMethodType.EBT;
|
|
8
|
+
pinBlock;
|
|
9
|
+
/**
|
|
10
|
+
* Authorizes the payment method and captures the entire authorized amount
|
|
11
|
+
*
|
|
12
|
+
* @param string|number amount Amount to authorize
|
|
13
|
+
*
|
|
14
|
+
* @return AuthorizationBuilder
|
|
15
|
+
*/
|
|
16
|
+
charge(amount) {
|
|
17
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Adds value to the payment method
|
|
21
|
+
*
|
|
22
|
+
* @param string|number amount Amount to add
|
|
23
|
+
*
|
|
24
|
+
* @return AuthorizationBuilder
|
|
25
|
+
*/
|
|
26
|
+
addValue(amount) {
|
|
27
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Inquires the balance of the payment method
|
|
31
|
+
*
|
|
32
|
+
* @param InquiryType inquiry Type of inquiry
|
|
33
|
+
*
|
|
34
|
+
* @return AuthorizationBuilder
|
|
35
|
+
*/
|
|
36
|
+
balanceInquiry(inquiry = __1.InquiryType.Foodstamp) {
|
|
37
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Balance, this)
|
|
38
|
+
.withBalanceInquiryType(inquiry)
|
|
39
|
+
.withAmount(0);
|
|
40
|
+
}
|
|
41
|
+
benefitWithdrawal(amount) {
|
|
42
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.BenefitWithDrawal, this)
|
|
43
|
+
.withAmount(amount)
|
|
44
|
+
.withCashBack(0);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Refunds the payment method
|
|
48
|
+
*
|
|
49
|
+
* @param string|number amount Amount to refund
|
|
50
|
+
*
|
|
51
|
+
* @return AuthorizationBuilder
|
|
52
|
+
*/
|
|
53
|
+
refund(amount) {
|
|
54
|
+
return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Reverses the payment method
|
|
58
|
+
*
|
|
59
|
+
* @param string|number amount Amount to reverse
|
|
60
|
+
*
|
|
61
|
+
* @return AuthorizationBuilder
|
|
62
|
+
*/
|
|
63
|
+
reverse() {
|
|
64
|
+
throw new __1.NotImplementedError();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
exports.EBT = EBT;
|
|
68
|
+
//# sourceMappingURL=EBT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EBT.js","sourceRoot":"","sources":["../../../src/PaymentMethods/EBT.ts"],"names":[],"mappings":";;;AAAA,2BAMa;AASb,mDAAgD;AAEhD,MAAsB,GACpB,SAAQ,6BAAa;IASd,iBAAiB,GAAsB,qBAAiB,CAAC,GAAG,CAAC;IAC7D,QAAQ,CAAS;IAExB;;;;;;OAMG;IACI,MAAM,CAAC,MAAwB;QACpC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,UAAU,CACpE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,QAAQ,CAAC,MAAwB;QACtC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,UAAU,CACxE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,cAAc,CAAC,OAAO,GAAG,eAAW,CAAC,SAAS;QACnD,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,OAAO,EAAE,IAAI,CAAC;aAC3D,sBAAsB,CAAC,OAAO,CAAC;aAC/B,UAAU,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IAEM,iBAAiB,CAAC,MAAwB;QAC/C,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,iBAAiB,EAAE,IAAI,CAAC;aACrE,UAAU,CAAC,MAAM,CAAC;aAClB,YAAY,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAwB;QACpC,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,UAAU,CACtE,MAAM,CACP,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACI,OAAO;QACZ,MAAM,IAAI,uBAAmB,EAAE,CAAC;IAClC,CAAC;CACF;AAjFD,kBAiFC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CvnPresenceIndicator } from "../";
|
|
2
|
+
import { EBT } from "./EBT";
|
|
3
|
+
import { ICardData } from "./Interfaces";
|
|
4
|
+
export declare class EBTCardData extends EBT implements ICardData {
|
|
5
|
+
approvalCode: string;
|
|
6
|
+
number: string;
|
|
7
|
+
expMonth: string;
|
|
8
|
+
expYear: string;
|
|
9
|
+
cvn: string;
|
|
10
|
+
cvnPresenceIndicator: CvnPresenceIndicator;
|
|
11
|
+
cardHolderName: string;
|
|
12
|
+
cardPresent: boolean;
|
|
13
|
+
readerPresent: boolean;
|
|
14
|
+
serialNumber: string;
|
|
15
|
+
constructor();
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBTCardData = void 0;
|
|
4
|
+
const __1 = require("../");
|
|
5
|
+
const EBT_1 = require("./EBT");
|
|
6
|
+
class EBTCardData extends EBT_1.EBT {
|
|
7
|
+
approvalCode;
|
|
8
|
+
number;
|
|
9
|
+
expMonth;
|
|
10
|
+
expYear;
|
|
11
|
+
cvn;
|
|
12
|
+
cvnPresenceIndicator;
|
|
13
|
+
cardHolderName;
|
|
14
|
+
cardPresent;
|
|
15
|
+
readerPresent;
|
|
16
|
+
serialNumber;
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
this.cardPresent = false;
|
|
20
|
+
this.readerPresent = false;
|
|
21
|
+
this.cvnPresenceIndicator = __1.CvnPresenceIndicator.NotRequested;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.EBTCardData = EBTCardData;
|
|
25
|
+
//# sourceMappingURL=EBTCardData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EBTCardData.js","sourceRoot":"","sources":["../../../src/PaymentMethods/EBTCardData.ts"],"names":[],"mappings":";;;AAAA,2BAA2C;AAC3C,+BAA4B;AAG5B,MAAa,WAAY,SAAQ,SAAG;IAC3B,YAAY,CAAS;IACrB,MAAM,CAAS;IACf,QAAQ,CAAS;IACjB,OAAO,CAAS;IAChB,GAAG,CAAS;IACZ,oBAAoB,CAAuB;IAC3C,cAAc,CAAS;IACvB,WAAW,CAAU;IACrB,aAAa,CAAU;IACvB,YAAY,CAAS;IAE5B;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,oBAAoB,GAAG,wBAAoB,CAAC,YAAY,CAAC;IAChE,CAAC;CACF;AAlBD,kCAkBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EncryptionData, EntryMethod } from "../";
|
|
2
|
+
import { EBT } from "./EBT";
|
|
3
|
+
import { IEncryptable, ITrackData } from "./Interfaces";
|
|
4
|
+
export declare class EBTTrackData extends EBT implements ITrackData, IEncryptable {
|
|
5
|
+
encryptionData: EncryptionData;
|
|
6
|
+
entryMethod: EntryMethod;
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBTTrackData = void 0;
|
|
4
|
+
const EBT_1 = require("./EBT");
|
|
5
|
+
class EBTTrackData extends EBT_1.EBT {
|
|
6
|
+
encryptionData;
|
|
7
|
+
entryMethod;
|
|
8
|
+
value;
|
|
9
|
+
}
|
|
10
|
+
exports.EBTTrackData = EBTTrackData;
|
|
11
|
+
//# sourceMappingURL=EBTTrackData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EBTTrackData.js","sourceRoot":"","sources":["../../../src/PaymentMethods/EBTTrackData.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAG5B,MAAa,YAAa,SAAQ,SAAG;IAC5B,cAAc,CAAiB;IAC/B,WAAW,CAAc;IACzB,KAAK,CAAS;CACtB;AAJD,oCAIC"}
|