globalpayments-api 3.5.1-fix-4 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -3
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -348
- package/lib/src/Builders/AuthorizationBuilder.js +0 -668
- 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 -122
- package/lib/src/Builders/ManagementBuilder.js +0 -244
- 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 -35
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiAuthorizationRequestBuilder.js +0 -448
- 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 -179
- 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 -11
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiReportRequestBuilder.js +0 -163
- 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 -13
- package/lib/src/Builders/TransactionBuilder.js +0 -47
- package/lib/src/Builders/TransactionBuilder.js.map +0 -1
- package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -19
- package/lib/src/Builders/TransactionReportBuilder.js +0 -92
- 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 -7
- package/lib/src/Entities/EncryptionData.js +0 -16
- 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 -669
- package/lib/src/Entities/Enums.js +0 -859
- 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/LodgingData.d.ts +0 -14
- package/lib/src/Entities/LodgingData.js +0 -18
- package/lib/src/Entities/LodgingData.js.map +0 -1
- package/lib/src/Entities/LodgingItems.d.ts +0 -6
- package/lib/src/Entities/LodgingItems.js +0 -11
- package/lib/src/Entities/LodgingItems.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/BaseSummary.d.ts +0 -8
- package/lib/src/Entities/Reporting/BaseSummary.js +0 -13
- package/lib/src/Entities/Reporting/BaseSummary.js.map +0 -1
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.d.ts +0 -108
- package/lib/src/Entities/Reporting/SearchCriteriaBuilder.js +0 -125
- 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 -3
- package/lib/src/Entities/Reporting/index.js +0 -20
- 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/StoredCredentials.d.ts +0 -9
- package/lib/src/Entities/StoredCredentials.js +0 -13
- package/lib/src/Entities/StoredCredentials.js.map +0 -1
- package/lib/src/Entities/Transaction.d.ts +0 -96
- package/lib/src/Entities/Transaction.js +0 -157
- 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 -78
- package/lib/src/Entities/TransactionSummary.js +0 -83
- 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 -31
- package/lib/src/Entities/index.js +0 -48
- 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 -15
- package/lib/src/Mapping/GpApiMapping.js +0 -285
- 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 -15
- package/lib/src/PaymentMethods/CreditTrackData.js +0 -36
- package/lib/src/PaymentMethods/CreditTrackData.js.map +0 -1
- package/lib/src/PaymentMethods/Debit.d.ts +0 -48
- package/lib/src/PaymentMethods/Debit.js +0 -64
- package/lib/src/PaymentMethods/Debit.js.map +0 -1
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -9
- package/lib/src/PaymentMethods/DebitTrackData.js +0 -24
- 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 -10
- package/lib/src/Services/ReportingService.js +0 -34
- 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/CardUtils.d.ts +0 -13
- package/lib/src/Utils/CardUtils.js +0 -221
- package/lib/src/Utils/CardUtils.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 -5
- package/lib/src/Utils/index.js +0 -22
- 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 -1023
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +0 -439
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +0 -143
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +0 -434
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.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/GpApiConnector/ReportingTransactionsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +0 -337
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.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,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationClause = void 0;
|
|
4
|
-
class ValidationClause {
|
|
5
|
-
parent;
|
|
6
|
-
target;
|
|
7
|
-
callback;
|
|
8
|
-
message;
|
|
9
|
-
precondition;
|
|
10
|
-
constructor(parent, target, precondition = false) {
|
|
11
|
-
this.parent = parent;
|
|
12
|
-
this.target = target;
|
|
13
|
-
this.precondition = precondition;
|
|
14
|
-
}
|
|
15
|
-
isNotNull(message) {
|
|
16
|
-
this.callback = (builder) => {
|
|
17
|
-
const value = builder[this.target.property];
|
|
18
|
-
return undefined !== value && null !== value;
|
|
19
|
-
};
|
|
20
|
-
this.message = message
|
|
21
|
-
? message
|
|
22
|
-
: `${this.target.property} cannot be null for this transaction type.`;
|
|
23
|
-
if (this.precondition) {
|
|
24
|
-
return this.target;
|
|
25
|
-
}
|
|
26
|
-
return this.parent
|
|
27
|
-
.of(this.target.enumName, this.target.type)
|
|
28
|
-
.with(this.target.constraintProperty, this.target.constraint);
|
|
29
|
-
}
|
|
30
|
-
isNull(message) {
|
|
31
|
-
this.callback = (builder) => {
|
|
32
|
-
const value = builder[this.target.property];
|
|
33
|
-
return undefined === value || null === value;
|
|
34
|
-
};
|
|
35
|
-
this.message = message
|
|
36
|
-
? message
|
|
37
|
-
: `${this.target.property} cannot be set for this transaction type.`;
|
|
38
|
-
if (this.precondition) {
|
|
39
|
-
return this.target;
|
|
40
|
-
}
|
|
41
|
-
return this.parent
|
|
42
|
-
.of(this.target.enumName, this.target.type)
|
|
43
|
-
.with(this.target.constraintProperty, this.target.constraint);
|
|
44
|
-
}
|
|
45
|
-
isNotEmpty(message) {
|
|
46
|
-
this.callback = (builder) => {
|
|
47
|
-
const value = builder[this.target.property];
|
|
48
|
-
return !!value;
|
|
49
|
-
};
|
|
50
|
-
this.message = message
|
|
51
|
-
? message
|
|
52
|
-
: `${this.target.property} cannot be empty for this transaction type.`;
|
|
53
|
-
if (this.precondition) {
|
|
54
|
-
return this.target;
|
|
55
|
-
}
|
|
56
|
-
return this.parent
|
|
57
|
-
.of(this.target.enumName, this.target.type)
|
|
58
|
-
.with(this.target.constraintProperty, this.target.constraint);
|
|
59
|
-
}
|
|
60
|
-
isNotEqualTo(expected, message) {
|
|
61
|
-
this.callback = (builder) => {
|
|
62
|
-
const value = builder[this.target.property];
|
|
63
|
-
return expected !== value;
|
|
64
|
-
};
|
|
65
|
-
this.message = message
|
|
66
|
-
? message
|
|
67
|
-
: `${this.target.property} cannot be ${expected} for this transaction type.`;
|
|
68
|
-
if (this.precondition) {
|
|
69
|
-
return this.target;
|
|
70
|
-
}
|
|
71
|
-
return this.parent
|
|
72
|
-
.of(this.target.enumName, this.target.type)
|
|
73
|
-
.with(this.target.constraintProperty, this.target.constraint);
|
|
74
|
-
}
|
|
75
|
-
isEqualTo(expected, message) {
|
|
76
|
-
this.callback = (builder) => {
|
|
77
|
-
const value = builder[this.target.property];
|
|
78
|
-
return expected === value;
|
|
79
|
-
};
|
|
80
|
-
this.message = message
|
|
81
|
-
? message
|
|
82
|
-
: `${this.target.property} cannot be different than ${expected} for this transaction type.`;
|
|
83
|
-
if (this.precondition) {
|
|
84
|
-
return this.target;
|
|
85
|
-
}
|
|
86
|
-
return this.parent
|
|
87
|
-
.of(this.target.enumName, this.target.type)
|
|
88
|
-
.with(this.target.constraintProperty, this.target.constraint);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.ValidationClause = ValidationClause;
|
|
92
|
-
//# sourceMappingURL=ValidationClause.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationClause.js","sourceRoot":"","sources":["../../../../src/Builders/BaseBuilder/ValidationClause.ts"],"names":[],"mappings":";;;AAIA,MAAa,gBAAgB;IACpB,MAAM,CAAc;IACpB,MAAM,CAAmB;IACzB,QAAQ,CAAwC;IAChD,OAAO,CAAS;IAChB,YAAY,CAAU;IAE7B,YACE,MAAmB,EACnB,MAAwB,EACxB,YAAY,GAAG,KAAK;QAEpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAEM,SAAS,CAAC,OAAgB;QAC/B,IAAI,CAAC,QAAQ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AAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;IAEM,SAAS,CAAC,QAAiB,EAAE,OAAgB;QAClD,IAAI,CAAC,QAAQ,GAAG,CAAI,OAAuB,EAAE,EAAE;YAC7C,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5C,OAAO,QAAQ,KAAK,KAAK,CAAC;QAC5B,CAAC,CAAC;QACF,IAAI,CAAC,OAAO,GAAG,OAAO;YACpB,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,6BAA6B,QAAQ,6BAA6B,CAAC;QAE9F,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QAED,OAAO,IAAI,CAAC,MAAM;aACf,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;aAC1C,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAClE,CAAC;CACF;AA1GD,4CA0GC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ValidationClause } from "./ValidationClause";
|
|
2
|
-
import { Validations } from "./Validations";
|
|
3
|
-
export declare class ValidationTarget {
|
|
4
|
-
parent: Validations;
|
|
5
|
-
type: number;
|
|
6
|
-
property: string;
|
|
7
|
-
clause: ValidationClause;
|
|
8
|
-
constraint: number;
|
|
9
|
-
constraintProperty: string;
|
|
10
|
-
enumName: string;
|
|
11
|
-
precondition: ValidationClause;
|
|
12
|
-
constructor(parent: Validations, enumName: string, type: number);
|
|
13
|
-
with(property: string, constraint: number): this;
|
|
14
|
-
check(targetProperty: string): ValidationClause;
|
|
15
|
-
when(targetProperty: string): ValidationClause;
|
|
16
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationTarget = void 0;
|
|
4
|
-
const ValidationClause_1 = require("./ValidationClause");
|
|
5
|
-
class ValidationTarget {
|
|
6
|
-
parent;
|
|
7
|
-
type;
|
|
8
|
-
property;
|
|
9
|
-
clause;
|
|
10
|
-
constraint;
|
|
11
|
-
constraintProperty;
|
|
12
|
-
enumName;
|
|
13
|
-
precondition;
|
|
14
|
-
constructor(parent, enumName, type) {
|
|
15
|
-
this.parent = parent;
|
|
16
|
-
this.type = type;
|
|
17
|
-
this.enumName = enumName;
|
|
18
|
-
}
|
|
19
|
-
with(property, constraint) {
|
|
20
|
-
this.constraintProperty = property;
|
|
21
|
-
this.constraint = constraint;
|
|
22
|
-
return this;
|
|
23
|
-
}
|
|
24
|
-
check(targetProperty) {
|
|
25
|
-
this.property = targetProperty;
|
|
26
|
-
this.clause = new ValidationClause_1.ValidationClause(this.parent, this);
|
|
27
|
-
return this.clause;
|
|
28
|
-
}
|
|
29
|
-
when(targetProperty) {
|
|
30
|
-
this.property = targetProperty;
|
|
31
|
-
this.precondition = new ValidationClause_1.ValidationClause(this.parent, this, true);
|
|
32
|
-
return this.precondition;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.ValidationTarget = ValidationTarget;
|
|
36
|
-
//# sourceMappingURL=ValidationTarget.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ValidationTarget.js","sourceRoot":"","sources":["../../../../src/Builders/BaseBuilder/ValidationTarget.ts"],"names":[],"mappings":";;;AAAA,yDAAsD;AAGtD,MAAa,gBAAgB;IACpB,MAAM,CAAc;IACpB,IAAI,CAAS;IACb,QAAQ,CAAS;IACjB,MAAM,CAAmB;IACzB,UAAU,CAAS;IACnB,kBAAkB,CAAS;IAC3B,QAAQ,CAAS;IACjB,YAAY,CAAmB;IAEtC,YAAmB,MAAmB,EAAE,QAAgB,EAAE,IAAY;QACpE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,IAAI,CAAC,QAAgB,EAAE,UAAkB;QAC9C,IAAI,CAAC,kBAAkB,GAAG,QAAQ,CAAC;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,KAAK,CAAC,cAAsB;QACjC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QACtD,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAEM,IAAI,CAAC,cAAsB;QAChC,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;CACF;AAjCD,4CAiCC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseBuilder } from "../../";
|
|
2
|
-
import { ValidationTarget } from "./ValidationTarget";
|
|
3
|
-
export interface IRuleSet {
|
|
4
|
-
[key: string]: ValidationTarget[][];
|
|
5
|
-
}
|
|
6
|
-
export declare class Validations {
|
|
7
|
-
rules: IRuleSet;
|
|
8
|
-
constructor();
|
|
9
|
-
of(enumProperty: string, type: number): ValidationTarget;
|
|
10
|
-
validate<T>(builder: BaseBuilder<T>): void;
|
|
11
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Validations = void 0;
|
|
4
|
-
const __1 = require("../../");
|
|
5
|
-
const ValidationTarget_1 = require("./ValidationTarget");
|
|
6
|
-
class Validations {
|
|
7
|
-
rules;
|
|
8
|
-
constructor() {
|
|
9
|
-
this.rules = {};
|
|
10
|
-
}
|
|
11
|
-
of(enumProperty, type) {
|
|
12
|
-
if (!this.rules.hasOwnProperty(enumProperty)) {
|
|
13
|
-
this.rules[enumProperty] = [];
|
|
14
|
-
}
|
|
15
|
-
if (!this.rules[enumProperty].hasOwnProperty(type.toString())) {
|
|
16
|
-
this.rules[enumProperty][type] = [];
|
|
17
|
-
}
|
|
18
|
-
const target = new ValidationTarget_1.ValidationTarget(this, enumProperty, type);
|
|
19
|
-
this.rules[enumProperty][type].push(target);
|
|
20
|
-
return target;
|
|
21
|
-
}
|
|
22
|
-
validate(builder) {
|
|
23
|
-
Object.keys(this.rules).forEach((enumName) => {
|
|
24
|
-
this.rules[enumName].forEach((rules, iKey) => {
|
|
25
|
-
let value = builder[enumName];
|
|
26
|
-
if ((value === undefined || value === null) &&
|
|
27
|
-
builder instanceof __1.TransactionBuilder &&
|
|
28
|
-
builder.paymentMethod) {
|
|
29
|
-
value = builder.paymentMethod[enumName];
|
|
30
|
-
if (value === undefined || value === null) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if ((iKey & value) !== value) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
for (const validation of rules) {
|
|
38
|
-
if (!validation.clause) {
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (validation.constraint !== undefined &&
|
|
42
|
-
validation.constraint !== null &&
|
|
43
|
-
validation.constraint !== builder[validation.constraintProperty]) {
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
if (!validation.clause.callback(builder)) {
|
|
47
|
-
throw new __1.BuilderError(validation.clause.message);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.Validations = Validations;
|
|
55
|
-
//# sourceMappingURL=Validations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Validations.js","sourceRoot":"","sources":["../../../../src/Builders/BaseBuilder/Validations.ts"],"names":[],"mappings":";;;AAAA,8BAAuE;AACvE,yDAAsD;AAMtD,MAAa,WAAW;IACf,KAAK,CAAW;IAEvB;QACE,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IAClB,CAAC;IAEM,EAAE,CAAC,YAAoB,EAAE,IAAY;QAC1C,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE;YAC5C,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;SAC/B;QAED,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE;YAC7D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;SACrC;QAED,MAAM,MAAM,GAAG,IAAI,mCAAgB,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC5C,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,QAAQ,CAAI,OAAuB;QACxC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;YAC3C,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;gBAC3C,IAAI,KAAK,GAAW,OAAO,CAAC,QAAQ,CAAC,CAAC;gBAEtC,IACE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;oBACvC,OAAO,YAAY,sBAAkB;oBACrC,OAAO,CAAC,aAAa,EACrB;oBACA,KAAK,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;oBACxC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE;wBACzC,OAAO;qBACR;iBACF;gBAED,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,KAAK,KAAK,EAAE;oBAC5B,OAAO;iBACR;gBAED,KAAK,MAAM,UAAU,IAAI,KAAK,EAAE;oBAC9B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;wBACtB,SAAS;qBACV;oBAED,IACE,UAAU,CAAC,UAAU,KAAK,SAAS;wBACnC,UAAU,CAAC,UAAU,KAAK,IAAI;wBAC9B,UAAU,CAAC,UAAU,KAAK,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAChE;wBACA,SAAS;qBACV;oBAED,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;wBACxC,MAAM,IAAI,gBAAY,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;qBACnD;iBACF;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA7DD,kCA6DC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Validations } from "./BaseBuilder/Validations";
|
|
2
|
-
export interface IDictionary<T> {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
}
|
|
5
|
-
export declare abstract class BaseBuilder<T> {
|
|
6
|
-
protected validations: Validations;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
constructor();
|
|
9
|
-
execute(): Promise<T | undefined>;
|
|
10
|
-
protected abstract setupValidations(): void;
|
|
11
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseBuilder = void 0;
|
|
4
|
-
const Validations_1 = require("./BaseBuilder/Validations");
|
|
5
|
-
class BaseBuilder {
|
|
6
|
-
validations;
|
|
7
|
-
constructor() {
|
|
8
|
-
this.validations = new Validations_1.Validations();
|
|
9
|
-
this.setupValidations();
|
|
10
|
-
}
|
|
11
|
-
execute() {
|
|
12
|
-
this.validations.validate(this);
|
|
13
|
-
return Promise.resolve(undefined);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.BaseBuilder = BaseBuilder;
|
|
17
|
-
//# sourceMappingURL=BaseBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBuilder.js","sourceRoot":"","sources":["../../../src/Builders/BaseBuilder.ts"],"names":[],"mappings":";;;AAAA,2DAAwD;AAMxD,MAAsB,WAAW;IACrB,WAAW,CAAc;IAGnC;QACE,IAAI,CAAC,WAAW,GAAG,IAAI,yBAAW,EAAE,CAAC;QACrC,IAAI,CAAC,gBAAgB,EAAE,CAAC;IAC1B,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChC,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,CAAC;CAGF;AAfD,kCAeC"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { LodgingData, PaymentMethod, PaymentMethodUsageMode, ReasonCode, StoredCredentialSequence, TaxType, Transaction } from "../";
|
|
2
|
-
import { TransactionBuilder } from "./TransactionBuilder";
|
|
3
|
-
export declare class ManagementBuilder extends TransactionBuilder<Transaction> {
|
|
4
|
-
amount: string | number | null;
|
|
5
|
-
authAmount: string | number;
|
|
6
|
-
get authorizationCode(): string | undefined;
|
|
7
|
-
get clientTransactionId(): string | undefined;
|
|
8
|
-
currency: string;
|
|
9
|
-
description: string;
|
|
10
|
-
gratuity: string | number | null;
|
|
11
|
-
lodgingData: LodgingData;
|
|
12
|
-
get orderId(): string | undefined;
|
|
13
|
-
poNumber: string;
|
|
14
|
-
reasonCode?: ReasonCode;
|
|
15
|
-
taxAmount: string | number;
|
|
16
|
-
taxType: TaxType;
|
|
17
|
-
get transactionId(): string | undefined;
|
|
18
|
-
constructor(type: number, paymentMethod?: PaymentMethod);
|
|
19
|
-
/**
|
|
20
|
-
* Executes the builder against the gateway.
|
|
21
|
-
*
|
|
22
|
-
* @returns Promise<Transaction>
|
|
23
|
-
*/
|
|
24
|
-
execute(configName?: string): Promise<Transaction>;
|
|
25
|
-
protected setupValidations(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Sets the current transaction's amount.
|
|
28
|
-
*
|
|
29
|
-
* @param amount The amount
|
|
30
|
-
* @returns ManagementBuilder
|
|
31
|
-
*/
|
|
32
|
-
withAmount(amount?: string | number | null): this;
|
|
33
|
-
/**
|
|
34
|
-
* Sets the current transaction's authorized amount; where applicable.
|
|
35
|
-
*
|
|
36
|
-
* @param amount The authorized amount
|
|
37
|
-
* @returns ManagementBuilder
|
|
38
|
-
*/
|
|
39
|
-
withAuthAmount(amount?: string | number): this;
|
|
40
|
-
/**
|
|
41
|
-
* Sets the currency.
|
|
42
|
-
*
|
|
43
|
-
* The formatting for the supplied value will currently depend on
|
|
44
|
-
* the configured gateway's requirements.
|
|
45
|
-
*
|
|
46
|
-
* @param currency The currency
|
|
47
|
-
* @returns ManagementBuilder
|
|
48
|
-
*/
|
|
49
|
-
withCurrency(currency?: string): this;
|
|
50
|
-
/**
|
|
51
|
-
* Sets the transaction's description.
|
|
52
|
-
*
|
|
53
|
-
* This value is not guaranteed to be sent in the authorization
|
|
54
|
-
* or settlement process.
|
|
55
|
-
*
|
|
56
|
-
* @param description The description
|
|
57
|
-
* @returns ManagementBuilder
|
|
58
|
-
*/
|
|
59
|
-
withDescription(description?: string): this;
|
|
60
|
-
/**
|
|
61
|
-
* Sets the gratuity amount; where applicable.
|
|
62
|
-
*
|
|
63
|
-
* This value is information only and does not affect
|
|
64
|
-
* the authorization amount.
|
|
65
|
-
*
|
|
66
|
-
* @param gratuity The gratuity amount
|
|
67
|
-
* @returns ManagementBuilder
|
|
68
|
-
*/
|
|
69
|
-
withGratuity(gratuity?: string | number | null): this;
|
|
70
|
-
/**
|
|
71
|
-
* Sets the purchase order number; where applicable.
|
|
72
|
-
*
|
|
73
|
-
* @param poNumber The PO number
|
|
74
|
-
* @returns ManagementBuilder
|
|
75
|
-
*/
|
|
76
|
-
withPoNumber(poNumber?: string): this;
|
|
77
|
-
/**
|
|
78
|
-
* Sets the reason code for the transaction.
|
|
79
|
-
*
|
|
80
|
-
* @param reasonCode The reason code
|
|
81
|
-
* @returns ManagementBuilder
|
|
82
|
-
*/
|
|
83
|
-
withReasonCode(reasonCode?: ReasonCode): this;
|
|
84
|
-
/**
|
|
85
|
-
* Sets the tax amount.
|
|
86
|
-
*
|
|
87
|
-
* Useful for commercial purchase card requests.
|
|
88
|
-
*
|
|
89
|
-
* @see AuthorizationBuilder.WithCommercialRequest
|
|
90
|
-
* @param amount The tax amount
|
|
91
|
-
* @returns ManagementBuilder
|
|
92
|
-
*/
|
|
93
|
-
withTaxAmount(amount?: string | number): this;
|
|
94
|
-
/**
|
|
95
|
-
* Sets the tax type.
|
|
96
|
-
*
|
|
97
|
-
* Useful for commercial purchase card requests.
|
|
98
|
-
*
|
|
99
|
-
* @see AuthorizationBuilder.withCommercialRequest
|
|
100
|
-
* @param type The tax type
|
|
101
|
-
* @returns ManagementBuilder
|
|
102
|
-
*/
|
|
103
|
-
withTaxType(type?: TaxType): this;
|
|
104
|
-
withDynamicDescriptor(dynamicDescriptor: string): this;
|
|
105
|
-
/**
|
|
106
|
-
* Sets the idempotency key
|
|
107
|
-
*
|
|
108
|
-
* @param idempotencyKey string
|
|
109
|
-
* @returns {this}
|
|
110
|
-
*/
|
|
111
|
-
withIdempotencyKey(idempotencyKey: string): this;
|
|
112
|
-
/**
|
|
113
|
-
* Sets the idempotency key
|
|
114
|
-
*
|
|
115
|
-
* @param idempotencyKey string
|
|
116
|
-
* @returns {this}
|
|
117
|
-
*/
|
|
118
|
-
withPaymentMethodUsageMode(paymentMethodUsageMode: PaymentMethodUsageMode): this;
|
|
119
|
-
withMultiCapture(sequence?: StoredCredentialSequence, paymentCount?: number): this;
|
|
120
|
-
withTagData(tagData: string): this;
|
|
121
|
-
withLodgingData(value: LodgingData): this;
|
|
122
|
-
}
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManagementBuilder = void 0;
|
|
4
|
-
const __1 = require("../");
|
|
5
|
-
const TransactionBuilder_1 = require("./TransactionBuilder");
|
|
6
|
-
class ManagementBuilder extends TransactionBuilder_1.TransactionBuilder {
|
|
7
|
-
amount;
|
|
8
|
-
authAmount;
|
|
9
|
-
get authorizationCode() {
|
|
10
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
11
|
-
return this.paymentMethod.authCode;
|
|
12
|
-
}
|
|
13
|
-
return undefined;
|
|
14
|
-
}
|
|
15
|
-
get clientTransactionId() {
|
|
16
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
17
|
-
return this.paymentMethod.clientTransactionId;
|
|
18
|
-
}
|
|
19
|
-
return undefined;
|
|
20
|
-
}
|
|
21
|
-
currency;
|
|
22
|
-
description;
|
|
23
|
-
gratuity;
|
|
24
|
-
lodgingData;
|
|
25
|
-
get orderId() {
|
|
26
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
27
|
-
return this.paymentMethod.orderId;
|
|
28
|
-
}
|
|
29
|
-
return undefined;
|
|
30
|
-
}
|
|
31
|
-
poNumber;
|
|
32
|
-
reasonCode;
|
|
33
|
-
taxAmount;
|
|
34
|
-
taxType;
|
|
35
|
-
get transactionId() {
|
|
36
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
37
|
-
return this.paymentMethod.transactionId;
|
|
38
|
-
}
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
|
-
constructor(type, paymentMethod) {
|
|
42
|
-
super(type, paymentMethod);
|
|
43
|
-
this.supplementaryData = {};
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Executes the builder against the gateway.
|
|
47
|
-
*
|
|
48
|
-
* @returns Promise<Transaction>
|
|
49
|
-
*/
|
|
50
|
-
execute(configName = "default") {
|
|
51
|
-
super.execute();
|
|
52
|
-
return __1.ServicesContainer.instance()
|
|
53
|
-
.getClient(configName)
|
|
54
|
-
.manageTransaction(this);
|
|
55
|
-
}
|
|
56
|
-
setupValidations() {
|
|
57
|
-
this.validations
|
|
58
|
-
.of("transactionType",
|
|
59
|
-
/* tslint:disable:trailing-comma */
|
|
60
|
-
__1.TransactionType.Capture |
|
|
61
|
-
__1.TransactionType.Edit |
|
|
62
|
-
__1.TransactionType.Hold |
|
|
63
|
-
__1.TransactionType.Release)
|
|
64
|
-
.check("transactionId")
|
|
65
|
-
.isNotNull();
|
|
66
|
-
this.validations
|
|
67
|
-
.of("transactionType", __1.TransactionType.Edit)
|
|
68
|
-
.with("transactionModifier", __1.TransactionModifier.LevelII)
|
|
69
|
-
.check("taxType")
|
|
70
|
-
.isNotNull();
|
|
71
|
-
this.validations
|
|
72
|
-
.of("transactionType", __1.TransactionType.Refund)
|
|
73
|
-
.when("amount")
|
|
74
|
-
.isNotNull()
|
|
75
|
-
.check("currency")
|
|
76
|
-
.isNotNull();
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Sets the current transaction's amount.
|
|
80
|
-
*
|
|
81
|
-
* @param amount The amount
|
|
82
|
-
* @returns ManagementBuilder
|
|
83
|
-
*/
|
|
84
|
-
withAmount(amount) {
|
|
85
|
-
if (amount !== undefined) {
|
|
86
|
-
this.amount = amount;
|
|
87
|
-
}
|
|
88
|
-
return this;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Sets the current transaction's authorized amount; where applicable.
|
|
92
|
-
*
|
|
93
|
-
* @param amount The authorized amount
|
|
94
|
-
* @returns ManagementBuilder
|
|
95
|
-
*/
|
|
96
|
-
withAuthAmount(amount) {
|
|
97
|
-
if (amount !== undefined) {
|
|
98
|
-
this.authAmount = amount;
|
|
99
|
-
}
|
|
100
|
-
return this;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Sets the currency.
|
|
104
|
-
*
|
|
105
|
-
* The formatting for the supplied value will currently depend on
|
|
106
|
-
* the configured gateway's requirements.
|
|
107
|
-
*
|
|
108
|
-
* @param currency The currency
|
|
109
|
-
* @returns ManagementBuilder
|
|
110
|
-
*/
|
|
111
|
-
withCurrency(currency) {
|
|
112
|
-
if (currency !== undefined) {
|
|
113
|
-
this.currency = currency;
|
|
114
|
-
}
|
|
115
|
-
return this;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Sets the transaction's description.
|
|
119
|
-
*
|
|
120
|
-
* This value is not guaranteed to be sent in the authorization
|
|
121
|
-
* or settlement process.
|
|
122
|
-
*
|
|
123
|
-
* @param description The description
|
|
124
|
-
* @returns ManagementBuilder
|
|
125
|
-
*/
|
|
126
|
-
withDescription(description) {
|
|
127
|
-
if (description !== undefined) {
|
|
128
|
-
this.description = description;
|
|
129
|
-
}
|
|
130
|
-
return this;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Sets the gratuity amount; where applicable.
|
|
134
|
-
*
|
|
135
|
-
* This value is information only and does not affect
|
|
136
|
-
* the authorization amount.
|
|
137
|
-
*
|
|
138
|
-
* @param gratuity The gratuity amount
|
|
139
|
-
* @returns ManagementBuilder
|
|
140
|
-
*/
|
|
141
|
-
withGratuity(gratuity = null) {
|
|
142
|
-
if (gratuity !== undefined) {
|
|
143
|
-
this.gratuity = gratuity;
|
|
144
|
-
}
|
|
145
|
-
return this;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Sets the purchase order number; where applicable.
|
|
149
|
-
*
|
|
150
|
-
* @param poNumber The PO number
|
|
151
|
-
* @returns ManagementBuilder
|
|
152
|
-
*/
|
|
153
|
-
withPoNumber(poNumber) {
|
|
154
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
155
|
-
if (poNumber !== undefined) {
|
|
156
|
-
this.poNumber = poNumber;
|
|
157
|
-
}
|
|
158
|
-
return this;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Sets the reason code for the transaction.
|
|
162
|
-
*
|
|
163
|
-
* @param reasonCode The reason code
|
|
164
|
-
* @returns ManagementBuilder
|
|
165
|
-
*/
|
|
166
|
-
withReasonCode(reasonCode) {
|
|
167
|
-
if (reasonCode !== undefined) {
|
|
168
|
-
this.reasonCode = reasonCode;
|
|
169
|
-
}
|
|
170
|
-
return this;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* Sets the tax amount.
|
|
174
|
-
*
|
|
175
|
-
* Useful for commercial purchase card requests.
|
|
176
|
-
*
|
|
177
|
-
* @see AuthorizationBuilder.WithCommercialRequest
|
|
178
|
-
* @param amount The tax amount
|
|
179
|
-
* @returns ManagementBuilder
|
|
180
|
-
*/
|
|
181
|
-
withTaxAmount(amount) {
|
|
182
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
183
|
-
if (amount !== undefined) {
|
|
184
|
-
this.taxAmount = amount;
|
|
185
|
-
}
|
|
186
|
-
return this;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Sets the tax type.
|
|
190
|
-
*
|
|
191
|
-
* Useful for commercial purchase card requests.
|
|
192
|
-
*
|
|
193
|
-
* @see AuthorizationBuilder.withCommercialRequest
|
|
194
|
-
* @param type The tax type
|
|
195
|
-
* @returns ManagementBuilder
|
|
196
|
-
*/
|
|
197
|
-
withTaxType(type) {
|
|
198
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
199
|
-
if (type !== undefined) {
|
|
200
|
-
this.taxType = type;
|
|
201
|
-
}
|
|
202
|
-
return this;
|
|
203
|
-
}
|
|
204
|
-
withDynamicDescriptor(dynamicDescriptor) {
|
|
205
|
-
this.dynamicDescriptor = dynamicDescriptor;
|
|
206
|
-
return this;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* Sets the idempotency key
|
|
210
|
-
*
|
|
211
|
-
* @param idempotencyKey string
|
|
212
|
-
* @returns {this}
|
|
213
|
-
*/
|
|
214
|
-
withIdempotencyKey(idempotencyKey) {
|
|
215
|
-
this.idempotencyKey = idempotencyKey;
|
|
216
|
-
return this;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Sets the idempotency key
|
|
220
|
-
*
|
|
221
|
-
* @param idempotencyKey string
|
|
222
|
-
* @returns {this}
|
|
223
|
-
*/
|
|
224
|
-
withPaymentMethodUsageMode(paymentMethodUsageMode) {
|
|
225
|
-
this.paymentMethodUsageMode = paymentMethodUsageMode;
|
|
226
|
-
return this;
|
|
227
|
-
}
|
|
228
|
-
withMultiCapture(sequence = __1.StoredCredentialSequence.FIRST, paymentCount = 1) {
|
|
229
|
-
this.multiCapture = true;
|
|
230
|
-
this.multiCaptureSequence = sequence;
|
|
231
|
-
this.multiCapturePaymentCount = paymentCount;
|
|
232
|
-
return this;
|
|
233
|
-
}
|
|
234
|
-
withTagData(tagData) {
|
|
235
|
-
this.tagData = tagData;
|
|
236
|
-
return this;
|
|
237
|
-
}
|
|
238
|
-
withLodgingData(value) {
|
|
239
|
-
this.lodgingData = value;
|
|
240
|
-
return this;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
exports.ManagementBuilder = ManagementBuilder;
|
|
244
|
-
//# sourceMappingURL=ManagementBuilder.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ManagementBuilder.js","sourceRoot":"","sources":["../../../src/Builders/ManagementBuilder.ts"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