globalpayments-api 3.4.0 → 3.5.1-fix
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/CHANGELOG.md +7 -1
- package/package.json +1 -4
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -340
- package/lib/src/Builders/AuthorizationBuilder.js +0 -645
- package/lib/src/Builders/AuthorizationBuilder.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -92
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -36
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder/Validations.js +0 -55
- package/lib/src/Builders/BaseBuilder/Validations.js.map +0 -1
- package/lib/src/Builders/BaseBuilder.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder.js +0 -17
- package/lib/src/Builders/BaseBuilder.js.map +0 -1
- package/lib/src/Builders/ManagementBuilder.d.ts +0 -118
- package/lib/src/Builders/ManagementBuilder.js +0 -229
- package/lib/src/Builders/ManagementBuilder.js.map +0 -1
- package/lib/src/Builders/PayFacBuilder.d.ts +0 -97
- package/lib/src/Builders/PayFacBuilder.js +0 -233
- package/lib/src/Builders/PayFacBuilder.js.map +0 -1
- package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
- package/lib/src/Builders/RecurringBuilder.js +0 -34
- package/lib/src/Builders/RecurringBuilder.js.map +0 -1
- package/lib/src/Builders/ReportBuilder.d.ts +0 -10
- package/lib/src/Builders/ReportBuilder.js +0 -27
- package/lib/src/Builders/ReportBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.d.ts +0 -11
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js +0 -23
- package/lib/src/Builders/RequestBuilder/GpApi/AccessTokenRequest.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.d.ts +0 -34
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +0 -409
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.d.ts +0 -7
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js +0 -71
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiManagementRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.d.ts +0 -16
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js +0 -34
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiMiCRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.d.ts +0 -10
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +0 -89
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.d.ts +0 -6
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js +0 -49
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSessionInfo.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpApi/index.d.ts +0 -4
- package/lib/src/Builders/RequestBuilder/GpApi/index.js +0 -21
- package/lib/src/Builders/RequestBuilder/GpApi/index.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +0 -18
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +0 -125
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.d.ts +0 -11
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js +0 -83
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomManagementRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +0 -9
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +0 -66
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +0 -3
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +0 -20
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +0 -8
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +0 -39
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/index.d.ts +0 -3
- package/lib/src/Builders/RequestBuilder/index.js +0 -20
- package/lib/src/Builders/RequestBuilder/index.js.map +0 -1
- package/lib/src/Builders/TransactionBuilder.d.ts +0 -12
- package/lib/src/Builders/TransactionBuilder.js +0 -43
- package/lib/src/Builders/TransactionBuilder.js.map +0 -1
- package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -19
- package/lib/src/Builders/TransactionReportBuilder.js +0 -87
- package/lib/src/Builders/TransactionReportBuilder.js.map +0 -1
- package/lib/src/Builders/index.d.ts +0 -8
- package/lib/src/Builders/index.js +0 -25
- package/lib/src/Builders/index.js.map +0 -1
- package/lib/src/ConfiguredServices.d.ts +0 -24
- package/lib/src/ConfiguredServices.js +0 -33
- package/lib/src/ConfiguredServices.js.map +0 -1
- package/lib/src/Entities/Address.d.ts +0 -14
- package/lib/src/Entities/Address.js +0 -23
- package/lib/src/Entities/Address.js.map +0 -1
- package/lib/src/Entities/BatchSummary.d.ts +0 -6
- package/lib/src/Entities/BatchSummary.js +0 -11
- package/lib/src/Entities/BatchSummary.js.map +0 -1
- package/lib/src/Entities/Card.d.ts +0 -36
- package/lib/src/Entities/Card.js +0 -41
- package/lib/src/Entities/Card.js.map +0 -1
- package/lib/src/Entities/CardIssuerResponse.d.ts +0 -22
- package/lib/src/Entities/CardIssuerResponse.js +0 -27
- package/lib/src/Entities/CardIssuerResponse.js.map +0 -1
- package/lib/src/Entities/Customer.d.ts +0 -74
- package/lib/src/Entities/Customer.js +0 -94
- package/lib/src/Entities/Customer.js.map +0 -1
- package/lib/src/Entities/CustomerDocument.d.ts +0 -8
- package/lib/src/Entities/CustomerDocument.js +0 -16
- package/lib/src/Entities/CustomerDocument.js.map +0 -1
- package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
- package/lib/src/Entities/DocumentUploadData.js +0 -81
- package/lib/src/Entities/DocumentUploadData.js.map +0 -1
- package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
- package/lib/src/Entities/EcommerceInfo.js +0 -22
- package/lib/src/Entities/EcommerceInfo.js.map +0 -1
- package/lib/src/Entities/EncryptionData.d.ts +0 -6
- package/lib/src/Entities/EncryptionData.js +0 -11
- package/lib/src/Entities/EncryptionData.js.map +0 -1
- package/lib/src/Entities/Enums/AcquisitionType.d.ts +0 -10
- package/lib/src/Entities/Enums/AcquisitionType.js +0 -15
- package/lib/src/Entities/Enums/AcquisitionType.js.map +0 -1
- package/lib/src/Entities/Enums/CardTypeFilter.d.ts +0 -7
- package/lib/src/Entities/Enums/CardTypeFilter.js +0 -12
- package/lib/src/Entities/Enums/CardTypeFilter.js.map +0 -1
- package/lib/src/Entities/Enums.d.ts +0 -587
- package/lib/src/Entities/Enums.js +0 -769
- package/lib/src/Entities/Enums.js.map +0 -1
- package/lib/src/Entities/Errors.d.ts +0 -23
- package/lib/src/Entities/Errors.js +0 -72
- package/lib/src/Entities/Errors.js.map +0 -1
- package/lib/src/Entities/FraudRule.d.ts +0 -8
- package/lib/src/Entities/FraudRule.js +0 -17
- package/lib/src/Entities/FraudRule.js.map +0 -1
- package/lib/src/Entities/GpApi/AccessTokenInfo.d.ts +0 -16
- package/lib/src/Entities/GpApi/AccessTokenInfo.js +0 -21
- package/lib/src/Entities/GpApi/AccessTokenInfo.js.map +0 -1
- package/lib/src/Entities/GpApi/DTO/Card.d.ts +0 -16
- package/lib/src/Entities/GpApi/DTO/Card.js +0 -21
- package/lib/src/Entities/GpApi/DTO/Card.js.map +0 -1
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.d.ts +0 -17
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js +0 -21
- package/lib/src/Entities/GpApi/DTO/PaymentMethod.js.map +0 -1
- package/lib/src/Entities/GpApi/DTO/index.d.ts +0 -2
- package/lib/src/Entities/GpApi/DTO/index.js +0 -19
- package/lib/src/Entities/GpApi/DTO/index.js.map +0 -1
- package/lib/src/Entities/GpApi/GpApiAccount.d.ts +0 -5
- package/lib/src/Entities/GpApi/GpApiAccount.js +0 -13
- package/lib/src/Entities/GpApi/GpApiAccount.js.map +0 -1
- package/lib/src/Entities/GpApi/GpApiRequest.d.ts +0 -21
- package/lib/src/Entities/GpApi/GpApiRequest.js +0 -26
- package/lib/src/Entities/GpApi/GpApiRequest.js.map +0 -1
- package/lib/src/Entities/GpApi/GpApiTokenResponse.d.ts +0 -52
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js +0 -115
- package/lib/src/Entities/GpApi/GpApiTokenResponse.js.map +0 -1
- package/lib/src/Entities/GpApi/PageResult.d.ts +0 -8
- package/lib/src/Entities/GpApi/PageResult.js +0 -13
- package/lib/src/Entities/GpApi/PageResult.js.map +0 -1
- package/lib/src/Entities/GpApi/index.d.ts +0 -5
- package/lib/src/Entities/GpApi/index.js +0 -22
- package/lib/src/Entities/GpApi/index.js.map +0 -1
- package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
- package/lib/src/Entities/HostedPaymentData.js +0 -17
- package/lib/src/Entities/HostedPaymentData.js.map +0 -1
- package/lib/src/Entities/IRequestBuilder.d.ts +0 -6
- package/lib/src/Entities/IRequestBuilder.js +0 -3
- package/lib/src/Entities/IRequestBuilder.js.map +0 -1
- package/lib/src/Entities/IRequestLogger.d.ts +0 -8
- package/lib/src/Entities/IRequestLogger.js +0 -3
- package/lib/src/Entities/IRequestLogger.js.map +0 -1
- package/lib/src/Entities/MaskedValueCollection.d.ts +0 -12
- package/lib/src/Entities/MaskedValueCollection.js +0 -53
- package/lib/src/Entities/MaskedValueCollection.js.map +0 -1
- package/lib/src/Entities/PayerDetails.d.ts +0 -8
- package/lib/src/Entities/PayerDetails.js +0 -12
- package/lib/src/Entities/PayerDetails.js.map +0 -1
- package/lib/src/Entities/PhoneNumber.d.ts +0 -6
- package/lib/src/Entities/PhoneNumber.js +0 -15
- package/lib/src/Entities/PhoneNumber.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -12
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
- package/lib/src/Entities/ProFac/AccountPermissions.js +0 -19
- package/lib/src/Entities/ProFac/AccountPermissions.js.map +0 -1
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/BankAccountData.js +0 -42
- package/lib/src/Entities/ProFac/BankAccountData.js.map +0 -1
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -15
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js.map +0 -1
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -12
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js.map +0 -1
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -10
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js.map +0 -1
- package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -15
- package/lib/src/Entities/ProFac/BusinessData.js +0 -50
- package/lib/src/Entities/ProFac/BusinessData.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -17
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
- package/lib/src/Entities/ProFac/DeviceData.js +0 -11
- package/lib/src/Entities/ProFac/DeviceData.js.map +0 -1
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
- package/lib/src/Entities/ProFac/DeviceInfo.js +0 -19
- package/lib/src/Entities/ProFac/DeviceInfo.js.map +0 -1
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -15
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js.map +0 -1
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -10
- package/lib/src/Entities/ProFac/GrossBillingInformation.js.map +0 -1
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
- package/lib/src/Entities/ProFac/OrderDevice.js +0 -23
- package/lib/src/Entities/ProFac/OrderDevice.js.map +0 -1
- package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
- package/lib/src/Entities/ProFac/OwnersData.js +0 -43
- package/lib/src/Entities/ProFac/OwnersData.js.map +0 -1
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
- package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -62
- package/lib/src/Entities/ProFac/PayFacResponseData.js.map +0 -1
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/RenewAccountData.js +0 -38
- package/lib/src/Entities/ProFac/RenewAccountData.js.map +0 -1
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -27
- package/lib/src/Entities/ProFac/SignificantOwnerData.js.map +0 -1
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
- package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -19
- package/lib/src/Entities/ProFac/ThreatRiskData.js.map +0 -1
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
- package/lib/src/Entities/ProFac/UserPersonalData.js +0 -82
- package/lib/src/Entities/ProFac/UserPersonalData.js.map +0 -1
- package/lib/src/Entities/RecurringEntity.d.ts +0 -14
- package/lib/src/Entities/RecurringEntity.js +0 -92
- package/lib/src/Entities/RecurringEntity.js.map +0 -1
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +0 -105
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +0 -122
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js.map +0 -1
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.d.ts +0 -11
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js +0 -16
- package/lib/src/Entities/Reporting/StoredPaymentMethodSummary.js.map +0 -1
- package/lib/src/Entities/Reporting/index.d.ts +0 -2
- package/lib/src/Entities/Reporting/index.js +0 -19
- package/lib/src/Entities/Reporting/index.js.map +0 -1
- package/lib/src/Entities/Request.d.ts +0 -10
- package/lib/src/Entities/Request.js +0 -18
- package/lib/src/Entities/Request.js.map +0 -1
- package/lib/src/Entities/SSORequestData.d.ts +0 -5
- package/lib/src/Entities/SSORequestData.js +0 -19
- package/lib/src/Entities/SSORequestData.js.map +0 -1
- package/lib/src/Entities/Schedule.d.ts +0 -47
- package/lib/src/Entities/Schedule.js +0 -325
- package/lib/src/Entities/Schedule.js.map +0 -1
- package/lib/src/Entities/ServiceEndpoints.d.ts +0 -12
- package/lib/src/Entities/ServiceEndpoints.js +0 -17
- package/lib/src/Entities/ServiceEndpoints.js.map +0 -1
- package/lib/src/Entities/Transaction.d.ts +0 -84
- package/lib/src/Entities/Transaction.js +0 -133
- package/lib/src/Entities/Transaction.js.map +0 -1
- package/lib/src/Entities/TransactionStatus.d.ts +0 -13
- package/lib/src/Entities/TransactionStatus.js +0 -29
- package/lib/src/Entities/TransactionStatus.js.map +0 -1
- package/lib/src/Entities/TransactionSummary.d.ts +0 -61
- package/lib/src/Entities/TransactionSummary.js +0 -66
- package/lib/src/Entities/TransactionSummary.js.map +0 -1
- package/lib/src/Entities/UPA/ProcessIndicator.d.ts +0 -7
- package/lib/src/Entities/UPA/ProcessIndicator.js +0 -11
- package/lib/src/Entities/UPA/ProcessIndicator.js.map +0 -1
- package/lib/src/Entities/UPA/UpaParam.d.ts +0 -10
- package/lib/src/Entities/UPA/UpaParam.js +0 -14
- package/lib/src/Entities/UPA/UpaParam.js.map +0 -1
- package/lib/src/Entities/UPA/UpaTransactionData.d.ts +0 -8
- package/lib/src/Entities/UPA/UpaTransactionData.js +0 -12
- package/lib/src/Entities/UPA/UpaTransactionData.js.map +0 -1
- package/lib/src/Entities/UPA/index.d.ts +0 -3
- package/lib/src/Entities/UPA/index.js +0 -20
- package/lib/src/Entities/UPA/index.js.map +0 -1
- package/lib/src/Entities/index.d.ts +0 -27
- package/lib/src/Entities/index.js +0 -44
- package/lib/src/Entities/index.js.map +0 -1
- package/lib/src/Gateways/Gateway.d.ts +0 -16
- package/lib/src/Gateways/Gateway.js +0 -94
- package/lib/src/Gateways/Gateway.js.map +0 -1
- package/lib/src/Gateways/GatewayResponse.d.ts +0 -8
- package/lib/src/Gateways/GatewayResponse.js +0 -15
- package/lib/src/Gateways/GatewayResponse.js.map +0 -1
- package/lib/src/Gateways/GpApiConnector.d.ts +0 -42
- package/lib/src/Gateways/GpApiConnector.js +0 -232
- package/lib/src/Gateways/GpApiConnector.js.map +0 -1
- package/lib/src/Gateways/GpEcomConnector.d.ts +0 -36
- package/lib/src/Gateways/GpEcomConnector.js +0 -468
- package/lib/src/Gateways/GpEcomConnector.js.map +0 -1
- package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
- package/lib/src/Gateways/IPayFacProvider.js +0 -3
- package/lib/src/Gateways/IPayFacProvider.js.map +0 -1
- package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
- package/lib/src/Gateways/IPaymentGateway.js +0 -3
- package/lib/src/Gateways/IPaymentGateway.js.map +0 -1
- package/lib/src/Gateways/IRecurringService.d.ts +0 -6
- package/lib/src/Gateways/IRecurringService.js +0 -3
- package/lib/src/Gateways/IRecurringService.js.map +0 -1
- package/lib/src/Gateways/PayPlanConnector.d.ts +0 -42
- package/lib/src/Gateways/PayPlanConnector.js +0 -545
- package/lib/src/Gateways/PayPlanConnector.js.map +0 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +0 -48
- package/lib/src/Gateways/PorticoConnector.js +0 -1013
- package/lib/src/Gateways/PorticoConnector.js.map +0 -1
- package/lib/src/Gateways/ProPayConnector.d.ts +0 -45
- package/lib/src/Gateways/ProPayConnector.js +0 -801
- package/lib/src/Gateways/ProPayConnector.js.map +0 -1
- package/lib/src/Gateways/RestGateway.d.ts +0 -9
- package/lib/src/Gateways/RestGateway.js +0 -77
- package/lib/src/Gateways/RestGateway.js.map +0 -1
- package/lib/src/Gateways/XmlGateway.d.ts +0 -6
- package/lib/src/Gateways/XmlGateway.js +0 -54
- package/lib/src/Gateways/XmlGateway.js.map +0 -1
- package/lib/src/Gateways/https-wrapper.d.ts +0 -3
- package/lib/src/Gateways/https-wrapper.js +0 -81
- package/lib/src/Gateways/https-wrapper.js.map +0 -1
- package/lib/src/Gateways/index.d.ts +0 -9
- package/lib/src/Gateways/index.js +0 -26
- package/lib/src/Gateways/index.js.map +0 -1
- package/lib/src/HostedPaymentConfig.d.ts +0 -12
- package/lib/src/HostedPaymentConfig.js +0 -16
- package/lib/src/HostedPaymentConfig.js.map +0 -1
- package/lib/src/Mapping/EnumMapping.d.ts +0 -8
- package/lib/src/Mapping/EnumMapping.js +0 -84
- package/lib/src/Mapping/EnumMapping.js.map +0 -1
- package/lib/src/Mapping/GpApiMapping.d.ts +0 -11
- package/lib/src/Mapping/GpApiMapping.js +0 -190
- package/lib/src/Mapping/GpApiMapping.js.map +0 -1
- package/lib/src/Mapping/GpEcomMapping.d.ts +0 -9
- package/lib/src/Mapping/GpEcomMapping.js +0 -85
- package/lib/src/Mapping/GpEcomMapping.js.map +0 -1
- package/lib/src/Mapping/index.d.ts +0 -3
- package/lib/src/Mapping/index.js +0 -20
- package/lib/src/Mapping/index.js.map +0 -1
- package/lib/src/PaymentMethods/AlternativePaymentMethod.d.ts +0 -22
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js +0 -47
- package/lib/src/PaymentMethods/AlternativePaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/Cash.d.ts +0 -8
- package/lib/src/PaymentMethods/Cash.js +0 -16
- package/lib/src/PaymentMethods/Cash.js.map +0 -1
- package/lib/src/PaymentMethods/Credit.d.ts +0 -109
- package/lib/src/PaymentMethods/Credit.js +0 -161
- package/lib/src/PaymentMethods/Credit.js.map +0 -1
- package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
- package/lib/src/PaymentMethods/CreditCardData.js +0 -47
- package/lib/src/PaymentMethods/CreditCardData.js.map +0 -1
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/CreditTrackData.js +0 -10
- package/lib/src/PaymentMethods/CreditTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/Debit.d.ts +0 -40
- package/lib/src/PaymentMethods/Debit.js +0 -52
- package/lib/src/PaymentMethods/Debit.js.map +0 -1
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/DebitTrackData.js +0 -10
- package/lib/src/PaymentMethods/DebitTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/EBT.d.ts +0 -48
- package/lib/src/PaymentMethods/EBT.js +0 -68
- package/lib/src/PaymentMethods/EBT.js.map +0 -1
- package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
- package/lib/src/PaymentMethods/EBTCardData.js +0 -25
- package/lib/src/PaymentMethods/EBTCardData.js.map +0 -1
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
- package/lib/src/PaymentMethods/EBTTrackData.js +0 -11
- package/lib/src/PaymentMethods/EBTTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
- package/lib/src/PaymentMethods/ECheck.js +0 -38
- package/lib/src/PaymentMethods/ECheck.js.map +0 -1
- package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
- package/lib/src/PaymentMethods/GiftCard.js +0 -189
- package/lib/src/PaymentMethods/GiftCard.js.map +0 -1
- package/lib/src/PaymentMethods/Interfaces.d.ts +0 -59
- package/lib/src/PaymentMethods/Interfaces.js +0 -3
- package/lib/src/PaymentMethods/Interfaces.js.map +0 -1
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
- package/lib/src/PaymentMethods/PaymentMethod.js +0 -57
- package/lib/src/PaymentMethods/PaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -25
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -69
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
- package/lib/src/PaymentMethods/TransactionReference.js +0 -17
- package/lib/src/PaymentMethods/TransactionReference.js.map +0 -1
- package/lib/src/PaymentMethods/index.d.ts +0 -17
- package/lib/src/PaymentMethods/index.js +0 -34
- package/lib/src/PaymentMethods/index.js.map +0 -1
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +0 -29
- package/lib/src/ServiceConfigs/AcceptorConfig.js +0 -43
- package/lib/src/ServiceConfigs/AcceptorConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Configuration.d.ts +0 -15
- package/lib/src/ServiceConfigs/Configuration.js +0 -20
- package/lib/src/ServiceConfigs/Configuration.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.d.ts +0 -14
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js +0 -30
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.d.ts +0 -21
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +0 -45
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +0 -21
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +0 -51
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.d.ts +0 -22
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js +0 -117
- package/lib/src/ServiceConfigs/Gateways/PorticoConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +0 -4
- package/lib/src/ServiceConfigs/Gateways/index.js +0 -21
- package/lib/src/ServiceConfigs/Gateways/index.js.map +0 -1
- package/lib/src/ServiceConfigs/ServicesConfigs.d.ts +0 -8
- package/lib/src/ServiceConfigs/ServicesConfigs.js +0 -15
- package/lib/src/ServiceConfigs/ServicesConfigs.js.map +0 -1
- package/lib/src/ServiceConfigs/index.d.ts +0 -4
- package/lib/src/ServiceConfigs/index.js +0 -21
- package/lib/src/ServiceConfigs/index.js.map +0 -1
- package/lib/src/Services/BatchService.d.ts +0 -4
- package/lib/src/Services/BatchService.js +0 -15
- package/lib/src/Services/BatchService.js.map +0 -1
- package/lib/src/Services/CheckService.d.ts +0 -7
- package/lib/src/Services/CheckService.js +0 -20
- package/lib/src/Services/CheckService.js.map +0 -1
- package/lib/src/Services/CreditService.d.ts +0 -13
- package/lib/src/Services/CreditService.js +0 -54
- package/lib/src/Services/CreditService.js.map +0 -1
- package/lib/src/Services/DebitService.d.ts +0 -8
- package/lib/src/Services/DebitService.js +0 -28
- package/lib/src/Services/DebitService.js.map +0 -1
- package/lib/src/Services/DeviceService.d.ts +0 -5
- package/lib/src/Services/DeviceService.js +0 -19
- package/lib/src/Services/DeviceService.js.map +0 -1
- package/lib/src/Services/EBTService.d.ts +0 -9
- package/lib/src/Services/EBTService.js +0 -31
- package/lib/src/Services/EBTService.js.map +0 -1
- package/lib/src/Services/GiftService.d.ts +0 -17
- package/lib/src/Services/GiftService.js +0 -54
- package/lib/src/Services/GiftService.js.map +0 -1
- package/lib/src/Services/GpApiServices.d.ts +0 -4
- package/lib/src/Services/GpApiServices.js +0 -44
- package/lib/src/Services/GpApiServices.js.map +0 -1
- package/lib/src/Services/HostedService.d.ts +0 -10
- package/lib/src/Services/HostedService.js +0 -59
- package/lib/src/Services/HostedService.js.map +0 -1
- package/lib/src/Services/PayFacService.d.ts +0 -26
- package/lib/src/Services/PayFacService.js +0 -76
- package/lib/src/Services/PayFacService.js.map +0 -1
- package/lib/src/Services/RecurringService.d.ts +0 -8
- package/lib/src/Services/RecurringService.js +0 -24
- package/lib/src/Services/RecurringService.js.map +0 -1
- package/lib/src/Services/ReportingService.d.ts +0 -8
- package/lib/src/Services/ReportingService.js +0 -24
- package/lib/src/Services/ReportingService.js.map +0 -1
- package/lib/src/Services/index.d.ts +0 -10
- package/lib/src/Services/index.js +0 -27
- package/lib/src/Services/index.js.map +0 -1
- package/lib/src/ServicesContainer.d.ts +0 -19
- package/lib/src/ServicesContainer.js +0 -64
- package/lib/src/ServicesContainer.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.d.ts +0 -6
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceCommInterface.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceInterface.d.ts +0 -13
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceInterface.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceMessage.d.ts +0 -4
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceMessage.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IDeviceResponse.d.ts +0 -52
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js +0 -3
- package/lib/src/Terminals/Abstractions/IDeviceResponse.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.d.ts +0 -3
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js +0 -3
- package/lib/src/Terminals/Abstractions/IRequestIdProvider.js.map +0 -1
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.d.ts +0 -3
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js +0 -3
- package/lib/src/Terminals/Abstractions/IRequestSubGroup.js.map +0 -1
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.d.ts +0 -16
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js +0 -3
- package/lib/src/Terminals/Abstractions/ITerminalConfiguration.js.map +0 -1
- package/lib/src/Terminals/Abstractions/index.d.ts +0 -7
- package/lib/src/Terminals/Abstractions/index.js +0 -24
- package/lib/src/Terminals/Abstractions/index.js.map +0 -1
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.d.ts +0 -65
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js +0 -172
- package/lib/src/Terminals/Builders/TerminalAuthBuilder.js.map +0 -1
- package/lib/src/Terminals/Builders/TerminalBuilder.d.ts +0 -12
- package/lib/src/Terminals/Builders/TerminalBuilder.js +0 -32
- package/lib/src/Terminals/Builders/TerminalBuilder.js.map +0 -1
- package/lib/src/Terminals/Builders/TerminalManageBuilder.d.ts +0 -30
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js +0 -95
- package/lib/src/Terminals/Builders/TerminalManageBuilder.js.map +0 -1
- package/lib/src/Terminals/Builders/index.d.ts +0 -2
- package/lib/src/Terminals/Builders/index.js +0 -19
- package/lib/src/Terminals/Builders/index.js.map +0 -1
- package/lib/src/Terminals/ConnectionConfig.d.ts +0 -20
- package/lib/src/Terminals/ConnectionConfig.js +0 -49
- package/lib/src/Terminals/ConnectionConfig.js.map +0 -1
- package/lib/src/Terminals/DeviceController.d.ts +0 -23
- package/lib/src/Terminals/DeviceController.js +0 -42
- package/lib/src/Terminals/DeviceController.js.map +0 -1
- package/lib/src/Terminals/DeviceInterface.d.ts +0 -21
- package/lib/src/Terminals/DeviceInterface.js +0 -50
- package/lib/src/Terminals/DeviceInterface.js.map +0 -1
- package/lib/src/Terminals/DeviceMessage.d.ts +0 -15
- package/lib/src/Terminals/DeviceMessage.js +0 -42
- package/lib/src/Terminals/DeviceMessage.js.map +0 -1
- package/lib/src/Terminals/DeviceResponse.d.ts +0 -10
- package/lib/src/Terminals/DeviceResponse.js +0 -16
- package/lib/src/Terminals/DeviceResponse.js.map +0 -1
- package/lib/src/Terminals/Enums/ControlCodes.d.ts +0 -5
- package/lib/src/Terminals/Enums/ControlCodes.js +0 -10
- package/lib/src/Terminals/Enums/ControlCodes.js.map +0 -1
- package/lib/src/Terminals/Enums/index.d.ts +0 -1
- package/lib/src/Terminals/Enums/index.js +0 -18
- package/lib/src/Terminals/Enums/index.js.map +0 -1
- package/lib/src/Terminals/Enums.d.ts +0 -12
- package/lib/src/Terminals/Enums.js +0 -18
- package/lib/src/Terminals/Enums.js.map +0 -1
- package/lib/src/Terminals/SummaryResponse.d.ts +0 -28
- package/lib/src/Terminals/SummaryResponse.js +0 -33
- package/lib/src/Terminals/SummaryResponse.js.map +0 -1
- package/lib/src/Terminals/TerminalResponse.d.ts +0 -42
- package/lib/src/Terminals/TerminalResponse.js +0 -49
- package/lib/src/Terminals/TerminalResponse.js.map +0 -1
- package/lib/src/Terminals/TerminalUtils.d.ts +0 -4
- package/lib/src/Terminals/TerminalUtils.js +0 -24
- package/lib/src/Terminals/TerminalUtils.js.map +0 -1
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.d.ts +0 -20
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js +0 -25
- package/lib/src/Terminals/UPA/Entities/UpaMessageId.js.map +0 -1
- package/lib/src/Terminals/UPA/Entities/index.d.ts +0 -1
- package/lib/src/Terminals/UPA/Entities/index.js +0 -18
- package/lib/src/Terminals/UPA/Entities/index.js.map +0 -1
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.d.ts +0 -12
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js +0 -76
- package/lib/src/Terminals/UPA/Interfaces/UpaMicInterface.js.map +0 -1
- package/lib/src/Terminals/UPA/Interfaces/index.d.ts +0 -1
- package/lib/src/Terminals/UPA/Interfaces/index.js +0 -18
- package/lib/src/Terminals/UPA/Interfaces/index.js.map +0 -1
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.d.ts +0 -53
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js +0 -70
- package/lib/src/Terminals/UPA/Reponses/TransactionResponse.js.map +0 -1
- package/lib/src/Terminals/UPA/Reponses/index.d.ts +0 -1
- package/lib/src/Terminals/UPA/Reponses/index.js +0 -18
- package/lib/src/Terminals/UPA/Reponses/index.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/BaseRequest.d.ts +0 -7
- package/lib/src/Terminals/UPA/Request/BaseRequest.js +0 -11
- package/lib/src/Terminals/UPA/Request/BaseRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/GroupRequest.d.ts +0 -5
- package/lib/src/Terminals/UPA/Request/GroupRequest.js +0 -9
- package/lib/src/Terminals/UPA/Request/GroupRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/RequestParams.d.ts +0 -9
- package/lib/src/Terminals/UPA/Request/RequestParams.js +0 -14
- package/lib/src/Terminals/UPA/Request/RequestParams.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/RootRequest.d.ts +0 -5
- package/lib/src/Terminals/UPA/Request/RootRequest.js +0 -9
- package/lib/src/Terminals/UPA/Request/RootRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/TransactionRequest.d.ts +0 -10
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js +0 -15
- package/lib/src/Terminals/UPA/Request/TransactionRequest.js.map +0 -1
- package/lib/src/Terminals/UPA/Request/index.d.ts +0 -5
- package/lib/src/Terminals/UPA/Request/index.js +0 -22
- package/lib/src/Terminals/UPA/Request/index.js.map +0 -1
- package/lib/src/Terminals/UPA/UpaController.d.ts +0 -16
- package/lib/src/Terminals/UPA/UpaController.js +0 -213
- package/lib/src/Terminals/UPA/UpaController.js.map +0 -1
- package/lib/src/Terminals/UPA/UpaInterface.d.ts +0 -10
- package/lib/src/Terminals/UPA/UpaInterface.js +0 -44
- package/lib/src/Terminals/UPA/UpaInterface.js.map +0 -1
- package/lib/src/Terminals/UPA/UpaMessageType.d.ts +0 -8
- package/lib/src/Terminals/UPA/UpaMessageType.js +0 -13
- package/lib/src/Terminals/UPA/UpaMessageType.js.map +0 -1
- package/lib/src/Terminals/UPA/index.d.ts +0 -7
- package/lib/src/Terminals/UPA/index.js +0 -24
- package/lib/src/Terminals/UPA/index.js.map +0 -1
- package/lib/src/Terminals/index.d.ts +0 -8
- package/lib/src/Terminals/index.js +0 -25
- package/lib/src/Terminals/index.js.map +0 -1
- package/lib/src/Utils/GenerationUtils.d.ts +0 -6
- package/lib/src/Utils/GenerationUtils.js +0 -79
- package/lib/src/Utils/GenerationUtils.js.map +0 -1
- package/lib/src/Utils/IRawRequestBuilder.d.ts +0 -3
- package/lib/src/Utils/IRawRequestBuilder.js +0 -3
- package/lib/src/Utils/IRawRequestBuilder.js.map +0 -1
- package/lib/src/Utils/InputValidation.d.ts +0 -12
- package/lib/src/Utils/InputValidation.js +0 -71
- package/lib/src/Utils/InputValidation.js.map +0 -1
- package/lib/src/Utils/Logging/Logger.d.ts +0 -32
- package/lib/src/Utils/Logging/Logger.js +0 -209
- package/lib/src/Utils/Logging/Logger.js.map +0 -1
- package/lib/src/Utils/Logging/ProtectSensitiveData.d.ts +0 -11
- package/lib/src/Utils/Logging/ProtectSensitiveData.js +0 -23
- package/lib/src/Utils/Logging/ProtectSensitiveData.js.map +0 -1
- package/lib/src/Utils/Logging/SampleRequestLogger.d.ts +0 -12
- package/lib/src/Utils/Logging/SampleRequestLogger.js +0 -38
- package/lib/src/Utils/Logging/SampleRequestLogger.js.map +0 -1
- package/lib/src/Utils/Logging/index.d.ts +0 -3
- package/lib/src/Utils/Logging/index.js +0 -20
- package/lib/src/Utils/Logging/index.js.map +0 -1
- package/lib/src/Utils/Sha1.d.ts +0 -6
- package/lib/src/Utils/Sha1.js +0 -231
- package/lib/src/Utils/Sha1.js.map +0 -1
- package/lib/src/Utils/StringUtils.d.ts +0 -15
- package/lib/src/Utils/StringUtils.js +0 -80
- package/lib/src/Utils/StringUtils.js.map +0 -1
- package/lib/src/Utils/index.d.ts +0 -4
- package/lib/src/Utils/index.js +0 -21
- package/lib/src/Utils/index.js.map +0 -1
- package/lib/src/index.d.ts +0 -13
- package/lib/src/index.js +0 -34
- package/lib/src/index.js.map +0 -1
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +0 -14
- package/lib/test/Data/BaseGpApiTestConfig.js +0 -50
- package/lib/test/Data/BaseGpApiTestConfig.js.map +0 -1
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -220
- package/lib/test/Data/TestCards.js.map +0 -1
- package/lib/test/Data/TestChecks.d.ts +0 -4
- package/lib/test/Data/TestChecks.js +0 -27
- package/lib/test/Data/TestChecks.js.map +0 -1
- package/lib/test/Data/index.d.ts +0 -2
- package/lib/test/Data/index.js +0 -19
- package/lib/test/Data/index.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +0 -109
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +0 -360
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +0 -217
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +0 -2446
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +0 -506
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +0 -1296
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +0 -847
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +0 -215
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +0 -99
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +0 -133
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -59
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -378
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -86
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1723
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -86
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1760
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -420
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2221
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -392
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -82
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -72
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -111
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -147
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -101
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -50
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +0 -44
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +0 -221
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +0 -60
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +0 -80
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -393
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +0 -44
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +0 -330
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +0 -60
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +0 -80
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -34
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -322
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -28
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +0 -4
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +0 -10
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +0 -1
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +0 -149
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -45
- package/lib/test/Integration/Services/CheckServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js +0 -174
- package/lib/test/Integration/Services/CreditServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js +0 -81
- package/lib/test/Integration/Services/DebitServiceTest.js.map +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js +0 -64
- package/lib/test/Integration/Services/EBTServiceTest.js.map +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -111
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -62
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +0 -34
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -125
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
|
@@ -1,645 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthorizationBuilder = void 0;
|
|
4
|
-
const __1 = require("../");
|
|
5
|
-
const TransactionBuilder_1 = require("./TransactionBuilder");
|
|
6
|
-
class AuthorizationBuilder extends TransactionBuilder_1.TransactionBuilder {
|
|
7
|
-
alias;
|
|
8
|
-
aliasAction;
|
|
9
|
-
allowDuplicates;
|
|
10
|
-
allowPartialAuth;
|
|
11
|
-
amount;
|
|
12
|
-
authAmount;
|
|
13
|
-
balanceInquiryType;
|
|
14
|
-
billingAddress;
|
|
15
|
-
cardBrandTransactionId;
|
|
16
|
-
cashBackAmount;
|
|
17
|
-
clientTransactionId;
|
|
18
|
-
currency;
|
|
19
|
-
customerData;
|
|
20
|
-
customerId;
|
|
21
|
-
customerIpAddress;
|
|
22
|
-
cvn;
|
|
23
|
-
description;
|
|
24
|
-
dynamicDescriptor;
|
|
25
|
-
ecommerceInfo;
|
|
26
|
-
gratuity;
|
|
27
|
-
convenienceAmt;
|
|
28
|
-
shippingAmt;
|
|
29
|
-
hostedPaymentData;
|
|
30
|
-
invoiceNumber;
|
|
31
|
-
level2Request;
|
|
32
|
-
offlineAuthCode;
|
|
33
|
-
oneTimePayment;
|
|
34
|
-
orderId;
|
|
35
|
-
paymentMethodUsageMode;
|
|
36
|
-
productId;
|
|
37
|
-
recurringSequence;
|
|
38
|
-
recurringType;
|
|
39
|
-
requestMultiUseToken;
|
|
40
|
-
replacementCard;
|
|
41
|
-
scheduleId;
|
|
42
|
-
shippingAddress;
|
|
43
|
-
timestamp;
|
|
44
|
-
transactionInitiator;
|
|
45
|
-
idempotencyKey;
|
|
46
|
-
constructor(type, paymentMethod) {
|
|
47
|
-
super(type, paymentMethod);
|
|
48
|
-
if (paymentMethod) {
|
|
49
|
-
this.paymentMethod = paymentMethod;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Executes the authorization builder against the gateway.
|
|
54
|
-
*
|
|
55
|
-
* @returns Promise<Transaction>
|
|
56
|
-
*/
|
|
57
|
-
execute(configName = "default") {
|
|
58
|
-
super.execute();
|
|
59
|
-
return __1.ServicesContainer.instance()
|
|
60
|
-
.getClient(configName)
|
|
61
|
-
.processAuthorization(this);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Serializes an authorization builder for hosted payment page requests.
|
|
65
|
-
*
|
|
66
|
-
* Requires the gateway and account support hosted payment pages.
|
|
67
|
-
*
|
|
68
|
-
* @throws UnsupportedTransactionError Thrown when gateway doesn't support hosted payments
|
|
69
|
-
* @returns string
|
|
70
|
-
*/
|
|
71
|
-
serialize() {
|
|
72
|
-
this.transactionModifier = __1.TransactionModifier.HostedRequest;
|
|
73
|
-
super.execute();
|
|
74
|
-
const client = __1.ServicesContainer.instance().getClient();
|
|
75
|
-
if (client.supportsHostedPayments) {
|
|
76
|
-
return client.serializeRequest(this);
|
|
77
|
-
}
|
|
78
|
-
throw new __1.UnsupportedTransactionError("Your current gateway does not support hosted payments");
|
|
79
|
-
}
|
|
80
|
-
setupValidations() {
|
|
81
|
-
this.validations
|
|
82
|
-
.of("transactionType",
|
|
83
|
-
/* tslint:disable:trailing-comma */
|
|
84
|
-
__1.TransactionType.Auth |
|
|
85
|
-
__1.TransactionType.Sale |
|
|
86
|
-
__1.TransactionType.Refund |
|
|
87
|
-
__1.TransactionType.AddValue)
|
|
88
|
-
.with("transactionModifier", __1.TransactionModifier.None)
|
|
89
|
-
.check("amount")
|
|
90
|
-
.isNotNull()
|
|
91
|
-
.check("currency")
|
|
92
|
-
.isNotNull()
|
|
93
|
-
.check("paymentMethod")
|
|
94
|
-
.isNotNull();
|
|
95
|
-
this.validations
|
|
96
|
-
.of("transactionType",
|
|
97
|
-
/* tslint:disable:trailing-comma */
|
|
98
|
-
__1.TransactionType.Auth | __1.TransactionType.Sale | __1.TransactionType.Verify)
|
|
99
|
-
.with("transactionModifier", __1.TransactionModifier.HostedRequest)
|
|
100
|
-
.check("amount")
|
|
101
|
-
.isNotNull()
|
|
102
|
-
.check("currency")
|
|
103
|
-
.isNotNull();
|
|
104
|
-
this.validations
|
|
105
|
-
.of("transactionType",
|
|
106
|
-
/* tslint:disable:trailing-comma */
|
|
107
|
-
__1.TransactionType.Auth | __1.TransactionType.Sale)
|
|
108
|
-
.with("transactionModifier", __1.TransactionModifier.Offline)
|
|
109
|
-
.check("amount")
|
|
110
|
-
.isNotNull()
|
|
111
|
-
.check("currency")
|
|
112
|
-
.isNotNull()
|
|
113
|
-
.check("offlineAuthCode")
|
|
114
|
-
.isNotNull()
|
|
115
|
-
.check("offlineAuthCode")
|
|
116
|
-
.isNotEmpty();
|
|
117
|
-
this.validations
|
|
118
|
-
.of("transactionType", __1.TransactionType.Auth | __1.TransactionType.Sale)
|
|
119
|
-
.with("transactionModifier", __1.TransactionModifier.EncryptedMobile)
|
|
120
|
-
.check("paymentMethod")
|
|
121
|
-
.isNotNull()
|
|
122
|
-
.check("paymentMethod")
|
|
123
|
-
.isNotEmpty();
|
|
124
|
-
this.validations
|
|
125
|
-
.of("transactionType", __1.TransactionType.BenefitWithDrawal)
|
|
126
|
-
.with("transactionModifier", __1.TransactionModifier.CashBack)
|
|
127
|
-
.check("amount")
|
|
128
|
-
.isNotNull()
|
|
129
|
-
.check("currency")
|
|
130
|
-
.isNotNull()
|
|
131
|
-
.check("paymentMethod")
|
|
132
|
-
.isNotNull();
|
|
133
|
-
this.validations
|
|
134
|
-
.of("transactionType", __1.TransactionType.Balance)
|
|
135
|
-
.check("paymentMethod")
|
|
136
|
-
.isNotNull();
|
|
137
|
-
this.validations
|
|
138
|
-
.of("transactionType", __1.TransactionType.Alias)
|
|
139
|
-
.check("aliasAction")
|
|
140
|
-
.isNotNull()
|
|
141
|
-
.check("alias")
|
|
142
|
-
.isNotNull();
|
|
143
|
-
this.validations
|
|
144
|
-
.of("transactionType", __1.TransactionType.Replace)
|
|
145
|
-
.check("replacementCard")
|
|
146
|
-
.isNotNull();
|
|
147
|
-
this.validations
|
|
148
|
-
.of("paymentMethodType", __1.PaymentMethodType.ACH)
|
|
149
|
-
.check("billingAddress")
|
|
150
|
-
.isNotNull();
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Sets an address value; where applicable.
|
|
154
|
-
*
|
|
155
|
-
* Currently supports billing and shipping addresses.
|
|
156
|
-
*
|
|
157
|
-
* @param address The desired address information
|
|
158
|
-
* @param addressType The desired address type
|
|
159
|
-
* @returns AuthorizationBuilder
|
|
160
|
-
*/
|
|
161
|
-
withAddress(address, addressType = __1.AddressType.Billing) {
|
|
162
|
-
if (address === undefined) {
|
|
163
|
-
return this;
|
|
164
|
-
}
|
|
165
|
-
address.type = addressType;
|
|
166
|
-
if (addressType === __1.AddressType.Billing) {
|
|
167
|
-
this.billingAddress = address;
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
this.shippingAddress = address;
|
|
171
|
-
}
|
|
172
|
-
return this;
|
|
173
|
-
}
|
|
174
|
-
withAlias(aliasAction, alias) {
|
|
175
|
-
if (alias !== undefined) {
|
|
176
|
-
this.alias = alias;
|
|
177
|
-
}
|
|
178
|
-
this.aliasAction = aliasAction;
|
|
179
|
-
return this;
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Allows duplicate transactions by skipping the
|
|
183
|
-
* gateway's duplicate checking.
|
|
184
|
-
*
|
|
185
|
-
* @param allowDuplicates The duplicate skip flag
|
|
186
|
-
* @returns AuthorizationBuilder
|
|
187
|
-
*/
|
|
188
|
-
withAllowDuplicates(allowDuplicates) {
|
|
189
|
-
if (allowDuplicates !== undefined) {
|
|
190
|
-
this.allowDuplicates = allowDuplicates;
|
|
191
|
-
}
|
|
192
|
-
return this;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Allows partial authorizations to occur.
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
* @param allowPartialAuth The allow partial flag
|
|
199
|
-
* @returns AuthorizationBuilder
|
|
200
|
-
*/
|
|
201
|
-
withAllowPartialAuth(allowPartialAuth) {
|
|
202
|
-
if (allowPartialAuth !== undefined) {
|
|
203
|
-
this.allowPartialAuth = allowPartialAuth;
|
|
204
|
-
}
|
|
205
|
-
return this;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Sets the transaction's amount
|
|
209
|
-
*
|
|
210
|
-
* @param amount The amount
|
|
211
|
-
* @returns AuthorizationBuilder
|
|
212
|
-
*/
|
|
213
|
-
withAmount(amount) {
|
|
214
|
-
if (amount !== undefined) {
|
|
215
|
-
this.amount = amount;
|
|
216
|
-
}
|
|
217
|
-
return this;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Sets the transaction's authorization amount; where applicable.
|
|
221
|
-
*
|
|
222
|
-
* This is a specialized field. In most cases,
|
|
223
|
-
* `Authorization.withAmount` should be used.
|
|
224
|
-
*
|
|
225
|
-
* @param authAmount The authorization amount
|
|
226
|
-
* @returns AuthorizationBuilder
|
|
227
|
-
*/
|
|
228
|
-
withAuthAmount(authAmount) {
|
|
229
|
-
if (authAmount !== undefined) {
|
|
230
|
-
this.authAmount = authAmount;
|
|
231
|
-
}
|
|
232
|
-
return this;
|
|
233
|
-
}
|
|
234
|
-
withBalanceInquiryType(inquiry) {
|
|
235
|
-
if (inquiry !== undefined) {
|
|
236
|
-
this.balanceInquiryType = inquiry;
|
|
237
|
-
}
|
|
238
|
-
return this;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Sets Credential on File fields
|
|
242
|
-
*/
|
|
243
|
-
withCardBrandStorage(transactionInitiator, value) {
|
|
244
|
-
this.transactionInitiator = transactionInitiator;
|
|
245
|
-
if (value !== undefined) {
|
|
246
|
-
this.cardBrandTransactionId = value;
|
|
247
|
-
}
|
|
248
|
-
return this;
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Sets the cash back amount.
|
|
252
|
-
*
|
|
253
|
-
* This is a specialized field for debit or EBT transactions.
|
|
254
|
-
*
|
|
255
|
-
* @param amount The desired cash back amount
|
|
256
|
-
* @returns AuthorizationBuilder
|
|
257
|
-
*/
|
|
258
|
-
withCashBack(amount) {
|
|
259
|
-
if (amount !== undefined) {
|
|
260
|
-
this.cashBackAmount = amount;
|
|
261
|
-
this.transactionModifier = __1.TransactionModifier.CashBack;
|
|
262
|
-
}
|
|
263
|
-
return this;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Sets the client transaction ID.
|
|
267
|
-
*
|
|
268
|
-
* This is an application derived value that can be used to identify a
|
|
269
|
-
* transaction in case a gateway transaction ID is not returned, e.g.
|
|
270
|
-
* in cases of timeouts.
|
|
271
|
-
*
|
|
272
|
-
* The supplied value should be unique to the configured merchant or
|
|
273
|
-
* terminal account.
|
|
274
|
-
*
|
|
275
|
-
* @param clientTransactionId The client transaction ID
|
|
276
|
-
* @returns AuthorizationBuilder
|
|
277
|
-
*/
|
|
278
|
-
withClientTransactionId(clientTransactionId) {
|
|
279
|
-
if (clientTransactionId === undefined) {
|
|
280
|
-
return this;
|
|
281
|
-
}
|
|
282
|
-
if (this.transactionType !== __1.TransactionType.Reversal &&
|
|
283
|
-
this.transactionType !== __1.TransactionType.Refund) {
|
|
284
|
-
this.clientTransactionId = clientTransactionId;
|
|
285
|
-
return this;
|
|
286
|
-
}
|
|
287
|
-
if (!(this.paymentMethod instanceof __1.TransactionReference)) {
|
|
288
|
-
this.paymentMethod =
|
|
289
|
-
new __1.TransactionReference();
|
|
290
|
-
}
|
|
291
|
-
this.paymentMethod.clientTransactionId = clientTransactionId;
|
|
292
|
-
return this;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* Sets the transaction's currency; where applicable.
|
|
296
|
-
*
|
|
297
|
-
* The formatting for the supplied value will currently depend on
|
|
298
|
-
* the configured gateway's requirements.
|
|
299
|
-
*
|
|
300
|
-
* @param currency The currency
|
|
301
|
-
* @returns AuthorizationBuilder
|
|
302
|
-
*/
|
|
303
|
-
withCurrency(currency) {
|
|
304
|
-
if (currency !== undefined) {
|
|
305
|
-
this.currency = currency;
|
|
306
|
-
}
|
|
307
|
-
return this;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Sets the transaction's currency; where applicable.
|
|
311
|
-
*
|
|
312
|
-
* The formatting for the supplied value will currently depend on
|
|
313
|
-
* the configured gateway's requirements.
|
|
314
|
-
*
|
|
315
|
-
* @param currency The currency
|
|
316
|
-
* @returns AuthorizationBuilder
|
|
317
|
-
*/
|
|
318
|
-
withCustomerData(customerData) {
|
|
319
|
-
if (customerData !== undefined) {
|
|
320
|
-
this.customerData = customerData;
|
|
321
|
-
}
|
|
322
|
-
return this;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Sets the customer ID; where applicable.
|
|
326
|
-
*
|
|
327
|
-
* This is an application/merchant generated value.
|
|
328
|
-
*
|
|
329
|
-
* @param customerId The customer ID
|
|
330
|
-
* @returns AuthorizationBuilder
|
|
331
|
-
*/
|
|
332
|
-
withCustomerId(customerId) {
|
|
333
|
-
if (customerId !== undefined) {
|
|
334
|
-
this.customerId = customerId;
|
|
335
|
-
}
|
|
336
|
-
return this;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Sets the customer's IP address; where applicable.
|
|
340
|
-
*
|
|
341
|
-
* This value should be obtained during the payment process.
|
|
342
|
-
*
|
|
343
|
-
* @param customerIpAddress The customer's IP address
|
|
344
|
-
* @returns AuthorizationBuilder
|
|
345
|
-
*/
|
|
346
|
-
withCustomerIpAddress(customerIpAddress) {
|
|
347
|
-
if (customerIpAddress !== undefined) {
|
|
348
|
-
this.customerIpAddress = customerIpAddress;
|
|
349
|
-
}
|
|
350
|
-
return this;
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Sets the CVN value for recurring payments; where applicable.
|
|
354
|
-
*
|
|
355
|
-
* @param cvn CVN value to use in the request
|
|
356
|
-
* @returns AuthorizationBuilder
|
|
357
|
-
*/
|
|
358
|
-
withCvn(cvn) {
|
|
359
|
-
if (cvn !== undefined) {
|
|
360
|
-
this.cvn = cvn;
|
|
361
|
-
}
|
|
362
|
-
return this;
|
|
363
|
-
}
|
|
364
|
-
/**
|
|
365
|
-
* Sets the transaction's description.
|
|
366
|
-
*
|
|
367
|
-
* This value is not guaranteed to be sent in the authorization
|
|
368
|
-
* or settlement process.
|
|
369
|
-
*
|
|
370
|
-
* @param description The description
|
|
371
|
-
* @returns AuthorizationBuilder
|
|
372
|
-
*/
|
|
373
|
-
withDescription(description) {
|
|
374
|
-
if (description !== undefined) {
|
|
375
|
-
this.description = description;
|
|
376
|
-
}
|
|
377
|
-
return this;
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Sets the transaction's dynamic descriptor.
|
|
381
|
-
*
|
|
382
|
-
* This value is sent during the authorization process and is displayed
|
|
383
|
-
* in the consumer's account.
|
|
384
|
-
*
|
|
385
|
-
* @param dynamicDescriptor The dynamic descriptor
|
|
386
|
-
* @returns AuthorizationBuilder
|
|
387
|
-
*/
|
|
388
|
-
withDynamicDescriptor(dynamicDescriptor) {
|
|
389
|
-
if (dynamicDescriptor !== undefined) {
|
|
390
|
-
this.dynamicDescriptor = dynamicDescriptor;
|
|
391
|
-
}
|
|
392
|
-
return this;
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Sets eCommerce specific data; where applicable.
|
|
396
|
-
*
|
|
397
|
-
* This can include:
|
|
398
|
-
*
|
|
399
|
-
* - Consumer authentication (3DSecure) data
|
|
400
|
-
* - Direct market data
|
|
401
|
-
*
|
|
402
|
-
* @param ecommerceInfo The eCommerce data
|
|
403
|
-
* @returns AuthorizationBuilder
|
|
404
|
-
*/
|
|
405
|
-
withEcommerceInfo(ecommerceInfo) {
|
|
406
|
-
if (ecommerceInfo !== undefined) {
|
|
407
|
-
this.ecommerceInfo = ecommerceInfo;
|
|
408
|
-
}
|
|
409
|
-
return this;
|
|
410
|
-
}
|
|
411
|
-
/**
|
|
412
|
-
* Sets the gratuity amount; where applicable.
|
|
413
|
-
*
|
|
414
|
-
* This value is information only and does not affect
|
|
415
|
-
* the authorization amount.
|
|
416
|
-
*
|
|
417
|
-
* @param gratuity The gratuity amount
|
|
418
|
-
* @returns AuthorizationBuilder
|
|
419
|
-
*/
|
|
420
|
-
withGratuity(gratuity) {
|
|
421
|
-
if (gratuity !== undefined) {
|
|
422
|
-
this.gratuity = gratuity;
|
|
423
|
-
}
|
|
424
|
-
return this;
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* Sets the Convenience amount; where applicable.
|
|
428
|
-
*
|
|
429
|
-
* @param convenienceAmt The Convenience amount
|
|
430
|
-
* @returns AuthorizationBuilder
|
|
431
|
-
*/
|
|
432
|
-
withConvenienceAmt(convenienceAmt) {
|
|
433
|
-
if (convenienceAmt !== undefined) {
|
|
434
|
-
this.convenienceAmt = convenienceAmt;
|
|
435
|
-
}
|
|
436
|
-
return this;
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Sets the Shipping amount; where applicable.
|
|
440
|
-
*
|
|
441
|
-
* @param shippingAmt The Shipping amount
|
|
442
|
-
* @returns AuthorizationBuilder
|
|
443
|
-
*/
|
|
444
|
-
withShippingAmt(shippingAmt) {
|
|
445
|
-
if (shippingAmt !== undefined) {
|
|
446
|
-
this.shippingAmt = shippingAmt;
|
|
447
|
-
}
|
|
448
|
-
return this;
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* Additional hosted payment specific information for Realex HPP implementation.
|
|
452
|
-
*
|
|
453
|
-
* @param hostedPaymentData The hosted payment data
|
|
454
|
-
* @returns AuthorizationBuilder
|
|
455
|
-
*/
|
|
456
|
-
withHostedPaymentData(hostedPaymentData) {
|
|
457
|
-
const client = __1.ServicesContainer.instance().getClient();
|
|
458
|
-
if (!client.supportsHostedPayments) {
|
|
459
|
-
throw new __1.UnsupportedTransactionError("Your current gateway does not support hosted payments.");
|
|
460
|
-
}
|
|
461
|
-
if (hostedPaymentData !== undefined) {
|
|
462
|
-
this.hostedPaymentData = hostedPaymentData;
|
|
463
|
-
}
|
|
464
|
-
return this;
|
|
465
|
-
}
|
|
466
|
-
/**
|
|
467
|
-
* Sets the invoice number; where applicable.
|
|
468
|
-
*
|
|
469
|
-
* @param invoiceNumber The invoice number
|
|
470
|
-
* @returns AuthorizationBuilder
|
|
471
|
-
*/
|
|
472
|
-
withInvoiceNumber(invoiceNumber) {
|
|
473
|
-
if (invoiceNumber !== undefined) {
|
|
474
|
-
this.invoiceNumber = invoiceNumber;
|
|
475
|
-
}
|
|
476
|
-
return this;
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Sets the commercial request flag; where applicable.
|
|
480
|
-
*
|
|
481
|
-
* This flag indicates commercial purchase cards are accepted/expected.
|
|
482
|
-
* The application should inspect the transaction response and pass the
|
|
483
|
-
* appropriate Level II data when necessary.
|
|
484
|
-
*
|
|
485
|
-
* @param level2Request The commercial request flag
|
|
486
|
-
* @returns AuthorizationBuilder
|
|
487
|
-
*/
|
|
488
|
-
withCommercialRequest(level2Request) {
|
|
489
|
-
if (level2Request !== undefined) {
|
|
490
|
-
this.level2Request = level2Request;
|
|
491
|
-
}
|
|
492
|
-
return this;
|
|
493
|
-
}
|
|
494
|
-
/**
|
|
495
|
-
* Sets the offline authorization code; where applicable.
|
|
496
|
-
*
|
|
497
|
-
* The merchant is required to supply this value as obtained when
|
|
498
|
-
* calling the issuing bank for the authorization.
|
|
499
|
-
*
|
|
500
|
-
* @param offlineAuthCode The offline authorization code
|
|
501
|
-
* @returns AuthorizationBuilder
|
|
502
|
-
*/
|
|
503
|
-
withOfflineAuthCode(offlineAuthCode) {
|
|
504
|
-
if (offlineAuthCode !== undefined) {
|
|
505
|
-
this.offlineAuthCode = offlineAuthCode;
|
|
506
|
-
this.transactionModifier = __1.TransactionModifier.Offline;
|
|
507
|
-
}
|
|
508
|
-
return this;
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* Sets the one-time payment flag; where applicable.
|
|
512
|
-
*
|
|
513
|
-
* This is only useful when using recurring payment profiles for
|
|
514
|
-
* one-time payments that are not a part of a recurring schedule.
|
|
515
|
-
*
|
|
516
|
-
* @param oneTimePayment The one-time flag
|
|
517
|
-
* @returns AuthorizationBuilder
|
|
518
|
-
*/
|
|
519
|
-
withOneTimePayment(oneTimePayment) {
|
|
520
|
-
if (oneTimePayment !== undefined) {
|
|
521
|
-
this.oneTimePayment = oneTimePayment;
|
|
522
|
-
this.transactionModifier = __1.TransactionModifier.Recurring;
|
|
523
|
-
}
|
|
524
|
-
return this;
|
|
525
|
-
}
|
|
526
|
-
/**
|
|
527
|
-
* Sets the transaction's order ID; where applicable.
|
|
528
|
-
*
|
|
529
|
-
* @param orderId The order ID
|
|
530
|
-
* @returns AuthorizationBuilder
|
|
531
|
-
*/
|
|
532
|
-
withOrderId(orderId) {
|
|
533
|
-
if (orderId !== undefined) {
|
|
534
|
-
this.orderId = orderId;
|
|
535
|
-
}
|
|
536
|
-
return this;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Sets the transaction's product ID; where applicable.
|
|
540
|
-
*
|
|
541
|
-
* @param productId The product ID
|
|
542
|
-
* @returns AuthorizationBuilder
|
|
543
|
-
*/
|
|
544
|
-
withProductId(productId) {
|
|
545
|
-
if (productId !== undefined) {
|
|
546
|
-
this.productId = productId;
|
|
547
|
-
}
|
|
548
|
-
return this;
|
|
549
|
-
}
|
|
550
|
-
/**
|
|
551
|
-
* Sets the Recurring Info for Realex based recurring payments;
|
|
552
|
-
* where applicable.
|
|
553
|
-
*
|
|
554
|
-
* @param type The value can be 'fixed' or 'variable' depending on whether
|
|
555
|
-
* the amount will change for each transaction.
|
|
556
|
-
* @param sequence Indicates where in the recurring sequence the transaction
|
|
557
|
-
* occurs. Must be 'first' for the first transaction for this
|
|
558
|
-
* card, 'subsequent' for transactions after that, and 'last'
|
|
559
|
-
* for the final transaction of the set.
|
|
560
|
-
* @returns AuthorizationBuilder
|
|
561
|
-
*/
|
|
562
|
-
withRecurringInfo(type, sequence) {
|
|
563
|
-
if (type !== undefined) {
|
|
564
|
-
this.recurringType = type;
|
|
565
|
-
}
|
|
566
|
-
if (sequence !== undefined) {
|
|
567
|
-
this.recurringSequence = sequence;
|
|
568
|
-
}
|
|
569
|
-
return this;
|
|
570
|
-
}
|
|
571
|
-
/**
|
|
572
|
-
* Requests multi-use tokenization / card storage.
|
|
573
|
-
*
|
|
574
|
-
* This will depend on a successful transaction. If there was a failure
|
|
575
|
-
* or decline, the multi-use tokenization / card storage will not be
|
|
576
|
-
* successful.
|
|
577
|
-
*
|
|
578
|
-
* @param requestMultiUseToken The request flag
|
|
579
|
-
* @returns AuthorizationBuilder
|
|
580
|
-
*/
|
|
581
|
-
withRequestMultiUseToken(requestMultiUseToken) {
|
|
582
|
-
if (requestMultiUseToken !== undefined) {
|
|
583
|
-
this.requestMultiUseToken = requestMultiUseToken;
|
|
584
|
-
}
|
|
585
|
-
return this;
|
|
586
|
-
}
|
|
587
|
-
withPaymentMethodUsageMode(paymentMethodUsageMode) {
|
|
588
|
-
this.paymentMethodUsageMode = paymentMethodUsageMode;
|
|
589
|
-
return this;
|
|
590
|
-
}
|
|
591
|
-
withReplacementCard(replacementCard) {
|
|
592
|
-
if (replacementCard !== undefined) {
|
|
593
|
-
this.replacementCard = replacementCard;
|
|
594
|
-
}
|
|
595
|
-
return this;
|
|
596
|
-
}
|
|
597
|
-
/**
|
|
598
|
-
* Sets the schedule ID associated with the transaction; where applicable.
|
|
599
|
-
*
|
|
600
|
-
* This is specific to transactions against recurring profiles that are
|
|
601
|
-
* a part of a recurring schedule.
|
|
602
|
-
*
|
|
603
|
-
* @param scheduleId The schedule ID
|
|
604
|
-
* @returns AuthorizationBuilder
|
|
605
|
-
*/
|
|
606
|
-
withScheduleId(scheduleId) {
|
|
607
|
-
if (scheduleId !== undefined) {
|
|
608
|
-
this.scheduleId = scheduleId;
|
|
609
|
-
}
|
|
610
|
-
return this;
|
|
611
|
-
}
|
|
612
|
-
/**
|
|
613
|
-
* Sets the related gateway transaction ID; where applicable.
|
|
614
|
-
*
|
|
615
|
-
* This value is used to associated a previous transaction with the
|
|
616
|
-
* current transaction.
|
|
617
|
-
*
|
|
618
|
-
* @param transactionId The gateway transaction ID
|
|
619
|
-
* @returns AuthorizationBuilder
|
|
620
|
-
*/
|
|
621
|
-
withTransactionId(transactionId) {
|
|
622
|
-
if (transactionId === undefined) {
|
|
623
|
-
return this;
|
|
624
|
-
}
|
|
625
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
626
|
-
this.paymentMethod.transactionId = transactionId;
|
|
627
|
-
return this;
|
|
628
|
-
}
|
|
629
|
-
return this.withPaymentMethod(new __1.TransactionReference(transactionId));
|
|
630
|
-
}
|
|
631
|
-
withTimestamp(timestamp) {
|
|
632
|
-
if (timestamp !== undefined) {
|
|
633
|
-
this.timestamp = timestamp;
|
|
634
|
-
}
|
|
635
|
-
return this;
|
|
636
|
-
}
|
|
637
|
-
withIdempotencyKey(idempotencyKey) {
|
|
638
|
-
if (idempotencyKey !== undefined) {
|
|
639
|
-
this.idempotencyKey = idempotencyKey;
|
|
640
|
-
}
|
|
641
|
-
return this;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
exports.AuthorizationBuilder = AuthorizationBuilder;
|
|
645
|
-
//# sourceMappingURL=AuthorizationBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorizationBuilder.js","sourceRoot":"","sources":["../../../src/Builders/AuthorizationBuilder.ts"],"names":[],"mappings":";;;AAAA,2BAsBa;AACb,6DAA0D;AAE1D,MAAa,oBAAqB,SAAQ,uCAA+B;IAChE,KAAK,CAAS;IACd,WAAW,CAAc;IACzB,eAAe,CAAU;IACzB,gBAAgB,CAAU;IAC1B,MAAM,CAAkB;IACxB,UAAU,CAAkB;IAC5B,kBAAkB,CAAc;IAChC,cAAc,CAAU;IACxB,sBAAsB,CAAS;IAC/B,cAAc,CAAkB;IAChC,mBAAmB,CAAS;IAC5B,QAAQ,CAAS;IACjB,YAAY,CAAW;IACvB,UAAU,CAAS;IACnB,iBAAiB,CAAS;IAC1B,GAAG,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SAC9B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;;;;;;;OAQG;IACI,iBAAiB,CAAC,aAAsB;QAC7C,IAAI,aAAa,KAAK,SAAS,EAAE;YAC/B,OAAO,IAAI,CAAC;SACb;QAED,IAAI,IAAI,CAAC,aAAa,YAAY,wBAAoB,EAAE;YACtD,IAAI,CAAC,aAAa,CAAC,aAAa,GAAG,aAAa,CAAC;YACjD,OAAO,IAAI,CAAC;SACb;QAED,OAAO,IAAI,CAAC,iBAAiB,CAAC,IAAI,wBAAoB,CAAC,aAAa,CAAC,CAAC,CAAC;IACzE,CAAC;IAEM,aAAa,CAAC,SAAkB;QACrC,IAAI,SAAS,KAAK,SAAS,EAAE;YAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;SAC5B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,kBAAkB,CAAC,cAAuB;QAC/C,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;SACtC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA/sBD,oDA+sBC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { BaseBuilder } from "../";
|
|
2
|
-
import { Validations } from "./Validations";
|
|
3
|
-
import { ValidationTarget } from "./ValidationTarget";
|
|
4
|
-
export declare class ValidationClause {
|
|
5
|
-
parent: Validations;
|
|
6
|
-
target: ValidationTarget;
|
|
7
|
-
callback: <T>(build: BaseBuilder<T>) => boolean;
|
|
8
|
-
message: string;
|
|
9
|
-
precondition: boolean;
|
|
10
|
-
constructor(parent: Validations, target: ValidationTarget, precondition?: boolean);
|
|
11
|
-
isNotNull(message?: string): ValidationTarget;
|
|
12
|
-
isNull(message?: string): ValidationTarget;
|
|
13
|
-
isNotEmpty(message?: string): ValidationTarget;
|
|
14
|
-
isNotEqualTo(expected: unknown, message?: string): ValidationTarget;
|
|
15
|
-
isEqualTo(expected: unknown, message?: string): ValidationTarget;
|
|
16
|
-
}
|