globalpayments-api 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/package.json +1 -1
- 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,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GpApiMapping = void 0;
|
|
4
|
-
const src_1 = require("../../src");
|
|
5
|
-
const Entities_1 = require("../../src/Entities");
|
|
6
|
-
const DTO_1 = require("../../src/Entities/GpApi/DTO");
|
|
7
|
-
class GpApiMapping {
|
|
8
|
-
static mapResponseAPM(response) {
|
|
9
|
-
response;
|
|
10
|
-
}
|
|
11
|
-
static mapResponse(response) {
|
|
12
|
-
const transaction = new Entities_1.Transaction();
|
|
13
|
-
if (!response) {
|
|
14
|
-
return transaction;
|
|
15
|
-
}
|
|
16
|
-
transaction.responseCode = response.action.result_code;
|
|
17
|
-
transaction.responseMessage = response.status;
|
|
18
|
-
transaction.clientTransactionId = response.reference || null;
|
|
19
|
-
transaction.timestamp = response.time_created || "";
|
|
20
|
-
transaction.referenceNumber = response.reference || null;
|
|
21
|
-
transaction.balanceAmount = src_1.StringUtils.toAmount(response.amount);
|
|
22
|
-
if (response.status === Entities_1.TransactionStatus.PREAUTHORIZED &&
|
|
23
|
-
response.amount) {
|
|
24
|
-
transaction.authorizedAmount = src_1.StringUtils.toAmount(response.amount);
|
|
25
|
-
}
|
|
26
|
-
transaction.multiCapture =
|
|
27
|
-
response.capture_mode && response.capture_mode === Entities_1.CaptureMode.MULTIPLE;
|
|
28
|
-
transaction.fingerprint = response.fingerprint || null;
|
|
29
|
-
transaction.fingerprintIndicator =
|
|
30
|
-
response.fingerprint_presence_indicator || null;
|
|
31
|
-
transaction.token = response.id.startsWith(DTO_1.PaymentMethod.PAYMENT_METHOD_TOKEN_PREFIX)
|
|
32
|
-
? response.id
|
|
33
|
-
: null;
|
|
34
|
-
transaction.tokenUsageMode = response.usage_mode || null;
|
|
35
|
-
if (response.payment_method) {
|
|
36
|
-
GpApiMapping.mapPaymentMethodTransactionDetails(transaction, response.payment_method);
|
|
37
|
-
GpApiMapping.mapPaymentMethodTransactionDetails(transaction, response.payment_method);
|
|
38
|
-
}
|
|
39
|
-
if (response.card) {
|
|
40
|
-
const cardDetails = new Entities_1.Card();
|
|
41
|
-
cardDetails.cardNumber = response.card.number || null;
|
|
42
|
-
cardDetails.brand = response.card.brand || null;
|
|
43
|
-
cardDetails.cardExpMonth = response.card.expiry_month || null;
|
|
44
|
-
cardDetails.cardExpYear = response.card.expiry_year || null;
|
|
45
|
-
transaction.cardDetails = cardDetails;
|
|
46
|
-
transaction.cardType = response.card.brand || "";
|
|
47
|
-
transaction.cvnResponseCode = response.card.cvv || null;
|
|
48
|
-
transaction.cardBrandTransactionId =
|
|
49
|
-
response.card.brand_reference || null;
|
|
50
|
-
}
|
|
51
|
-
transaction.multiCapture =
|
|
52
|
-
response.capture_mode && response.capture_mode === Entities_1.CaptureMode.MULTIPLE;
|
|
53
|
-
return transaction;
|
|
54
|
-
}
|
|
55
|
-
static mapPaymentMethodTransactionDetails(transaction, paymentMethodResponse) {
|
|
56
|
-
transaction.authorizationCode = paymentMethodResponse.result ?? null;
|
|
57
|
-
if (paymentMethodResponse.id) {
|
|
58
|
-
transaction.token = paymentMethodResponse.id;
|
|
59
|
-
}
|
|
60
|
-
transaction.fingerprint = paymentMethodResponse.fingerprint ?? null;
|
|
61
|
-
transaction.fingerprintIndicator =
|
|
62
|
-
paymentMethodResponse.fingerprint_presence_indicator ?? null;
|
|
63
|
-
if (paymentMethodResponse.card) {
|
|
64
|
-
const card = paymentMethodResponse.card;
|
|
65
|
-
const cardDetails = new Entities_1.Card();
|
|
66
|
-
cardDetails.maskedNumberLast4 = card.masked_number_last4 ?? null;
|
|
67
|
-
cardDetails.brand = card.brand ?? null;
|
|
68
|
-
transaction.cardDetails = cardDetails;
|
|
69
|
-
transaction.cardLast4 = card.masked_number_last4 ?? null;
|
|
70
|
-
transaction.cardType = card.brand ?? null;
|
|
71
|
-
transaction.cvnResponseCode = card.cvv ?? null;
|
|
72
|
-
transaction.cvnResponseMessage = card.cvv_result ?? null;
|
|
73
|
-
transaction.cardBrandTransactionId = card.brand_reference ?? null;
|
|
74
|
-
transaction.avsResponseCode = card.avs_postal_code_result ?? null;
|
|
75
|
-
transaction.avsAddressResponse = card.avs_address_result ?? null;
|
|
76
|
-
transaction.avsResponseMessage = card.avs_action ?? null;
|
|
77
|
-
if (card.provider) {
|
|
78
|
-
GpApiMapping.mapCardIssuerResponse(transaction, card.provider);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if (paymentMethodResponse.apm &&
|
|
82
|
-
paymentMethodResponse.apm.provider ===
|
|
83
|
-
Entities_1.PaymentProvider.OPEN_BANKING.toLowerCase()) {
|
|
84
|
-
}
|
|
85
|
-
else if (paymentMethodResponse.bank_transfer) {
|
|
86
|
-
const bankTransfer = paymentMethodResponse.bank_transfer;
|
|
87
|
-
transaction.accountNumberLast4 =
|
|
88
|
-
bankTransfer.masked_account_number_last4 ?? null;
|
|
89
|
-
transaction.accountType = bankTransfer.account_type ?? null;
|
|
90
|
-
transaction.paymentMethodType = Entities_1.PaymentMethodType.ACH;
|
|
91
|
-
}
|
|
92
|
-
else if (paymentMethodResponse.apm) {
|
|
93
|
-
transaction.paymentMethodType = Entities_1.PaymentMethodType.APM;
|
|
94
|
-
}
|
|
95
|
-
if (paymentMethodResponse.shipping_address || paymentMethodResponse.payer) {
|
|
96
|
-
const payerDetails = new Entities_1.PayerDetails();
|
|
97
|
-
payerDetails.email = paymentMethodResponse.payer?.email ?? null;
|
|
98
|
-
if (paymentMethodResponse.payer?.billing_address) {
|
|
99
|
-
const billingAddress = paymentMethodResponse.payer.billing_address;
|
|
100
|
-
payerDetails.firstName = billingAddress.first_name ?? null;
|
|
101
|
-
payerDetails.lastName = billingAddress.last_name ?? null;
|
|
102
|
-
payerDetails.billingAddress = GpApiMapping.mapAddressObject(billingAddress, Entities_1.AddressType.Billing);
|
|
103
|
-
}
|
|
104
|
-
payerDetails.shippingAddress = GpApiMapping.mapAddressObject(paymentMethodResponse.shipping_address, Entities_1.AddressType.Shipping);
|
|
105
|
-
transaction.payerDetails = payerDetails;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
static mapCardIssuerResponse(transaction, cardIssuerResponse) {
|
|
109
|
-
transaction.cardIssuerResponse = new Entities_1.CardIssuerResponse();
|
|
110
|
-
transaction.cardIssuerResponse.result = cardIssuerResponse.result ?? null;
|
|
111
|
-
transaction.cardIssuerResponse.avsResult =
|
|
112
|
-
cardIssuerResponse.avs_result ?? null;
|
|
113
|
-
transaction.cardIssuerResponse.cvvResult =
|
|
114
|
-
cardIssuerResponse.cvv_result ?? null;
|
|
115
|
-
transaction.cardIssuerResponse.avsAddressResult =
|
|
116
|
-
cardIssuerResponse.avs_address_result ?? null;
|
|
117
|
-
transaction.cardIssuerResponse.avsPostalCodeResult =
|
|
118
|
-
cardIssuerResponse.avs_postal_code_result ?? null;
|
|
119
|
-
}
|
|
120
|
-
static mapAddressObject(address, type = null) {
|
|
121
|
-
if (!address) {
|
|
122
|
-
return new Entities_1.Address();
|
|
123
|
-
}
|
|
124
|
-
const userAddress = new Entities_1.Address();
|
|
125
|
-
userAddress.type = type;
|
|
126
|
-
userAddress.streetAddress1 = address.line_1 ?? null;
|
|
127
|
-
userAddress.streetAddress2 = address.line_2 ?? null;
|
|
128
|
-
userAddress.streetAddress3 = address.line_3 ?? null;
|
|
129
|
-
userAddress.city = address.city ?? null;
|
|
130
|
-
userAddress.state = address.state ?? null;
|
|
131
|
-
userAddress.postalCode = address.postal_code ?? null;
|
|
132
|
-
userAddress.countryCode = address.country ?? null;
|
|
133
|
-
userAddress.type = address.functions?.[0] ?? type;
|
|
134
|
-
return userAddress;
|
|
135
|
-
}
|
|
136
|
-
static mapReportResponse(response, reportType) {
|
|
137
|
-
let report;
|
|
138
|
-
switch (reportType) {
|
|
139
|
-
case Entities_1.ReportType.FindStoredPaymentMethodsPaged:
|
|
140
|
-
report = this.setPagingInfo(response);
|
|
141
|
-
response.payment_methods.forEach((spm) => {
|
|
142
|
-
report.result.push(this.mapStoredPaymentMethodSummary(spm));
|
|
143
|
-
});
|
|
144
|
-
break;
|
|
145
|
-
case Entities_1.ReportType.StoredPaymentMethodDetail:
|
|
146
|
-
report = this.mapStoredPaymentMethodSummary(response);
|
|
147
|
-
break;
|
|
148
|
-
default:
|
|
149
|
-
throw new Entities_1.ApiError("Report type not supported!");
|
|
150
|
-
}
|
|
151
|
-
return report;
|
|
152
|
-
}
|
|
153
|
-
static mapStoredPaymentMethodSummary(response) {
|
|
154
|
-
const summary = new Entities_1.StoredPaymentMethodSummary();
|
|
155
|
-
summary.paymentMethodId = response.id;
|
|
156
|
-
if (response.time_created) {
|
|
157
|
-
summary.timeCreated = new Date(response.time_created);
|
|
158
|
-
}
|
|
159
|
-
summary.status = !!response.status ? response.status : "";
|
|
160
|
-
summary.reference = !!response.reference ? response.reference : "";
|
|
161
|
-
summary.cardHolderName = !!response.name ? response.name : "";
|
|
162
|
-
if (response.card) {
|
|
163
|
-
const card = response.card;
|
|
164
|
-
summary.cardType = !!card.brand ? card.brand : "";
|
|
165
|
-
summary.cardNumberLastFour = !!card.number_last4 ? card.number_last4 : "";
|
|
166
|
-
summary.cardExpMonth = !!card.expiry_month ? card.expiry_month : "";
|
|
167
|
-
summary.cardExpYear = !!card.expiry_year ? card.expiry_year : "";
|
|
168
|
-
}
|
|
169
|
-
return summary;
|
|
170
|
-
}
|
|
171
|
-
static setPagingInfo(response) {
|
|
172
|
-
const pageInfo = new Entities_1.PagedResult();
|
|
173
|
-
pageInfo.totalRecordCount = !!response.total_count
|
|
174
|
-
? response.total_count
|
|
175
|
-
: !!response.total_record_count
|
|
176
|
-
? response.total_record_count
|
|
177
|
-
: null;
|
|
178
|
-
pageInfo.pageSize = !!response.paging?.page_size
|
|
179
|
-
? response.paging.page_size
|
|
180
|
-
: null;
|
|
181
|
-
pageInfo.page = !!response.paging?.page ? response.paging.page : null;
|
|
182
|
-
pageInfo.order = !!response.paging?.order ? response.paging.order : null;
|
|
183
|
-
pageInfo.orderBy = !!response.paging?.order_by
|
|
184
|
-
? response.paging.order_by
|
|
185
|
-
: null;
|
|
186
|
-
return pageInfo;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
exports.GpApiMapping = GpApiMapping;
|
|
190
|
-
//# sourceMappingURL=G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,CAAC,CAAC,QAAQ,CAAC,kBAAkB;gBAC/B,CAAC,CAAC,QAAQ,CAAC,kBAAkB;gBAC7B,CAAC,CAAC,IAAI,CAAC;QACT,QAAQ,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS;YAC9C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS;YAC3B,CAAC,CAAC,IAAI,CAAC;QACT,QAAQ,CAAC,IAAI,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;QACtE,QAAQ,CAAC,KAAK,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACzE,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ;YAC5C,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ;YAC1B,CAAC,CAAC,IAAI,CAAC;QAET,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF;AAhPD,oCAgPC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Element } from "@azz/elementtree";
|
|
2
|
-
import { BaseBuilder, ManagementBuilder } from "../../src";
|
|
3
|
-
import { Transaction } from "../../src/Entities";
|
|
4
|
-
export declare class GpEcomMapping {
|
|
5
|
-
static mapAuthRequestType(builder: BaseBuilder<Transaction>): string;
|
|
6
|
-
static mapResponse(rawResponse: string, acceptedCodes: string[]): Transaction;
|
|
7
|
-
protected static checkResponse(root: Element, acceptedCodes?: string[]): void;
|
|
8
|
-
static mapManageRequestType(builder: ManagementBuilder): "settle" | "unknown" | "hold" | "rebate" | "release" | "void";
|
|
9
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GpEcomMapping = void 0;
|
|
4
|
-
const elementtree_1 = require("@azz/elementtree");
|
|
5
|
-
const src_1 = require("../../src");
|
|
6
|
-
const Entities_1 = require("../../src/Entities");
|
|
7
|
-
class GpEcomMapping {
|
|
8
|
-
static mapAuthRequestType(builder) {
|
|
9
|
-
switch (builder.transactionType) {
|
|
10
|
-
case Entities_1.TransactionType.Sale:
|
|
11
|
-
case Entities_1.TransactionType.Auth:
|
|
12
|
-
if (builder.paymentMethod.paymentMethodType === Entities_1.PaymentMethodType.Credit) {
|
|
13
|
-
if (builder.transactionModifier === Entities_1.TransactionModifier.Offline) {
|
|
14
|
-
return "offline";
|
|
15
|
-
}
|
|
16
|
-
if (builder.transactionModifier === Entities_1.TransactionModifier.EncryptedMobile) {
|
|
17
|
-
return "auth-mobile";
|
|
18
|
-
}
|
|
19
|
-
return "auth";
|
|
20
|
-
}
|
|
21
|
-
return "receipt-in";
|
|
22
|
-
case Entities_1.TransactionType.Capture:
|
|
23
|
-
return "settle";
|
|
24
|
-
case Entities_1.TransactionType.Verify:
|
|
25
|
-
if (builder.paymentMethod.paymentMethodType === Entities_1.PaymentMethodType.Credit) {
|
|
26
|
-
return "otb";
|
|
27
|
-
}
|
|
28
|
-
return "receipt-in-otb";
|
|
29
|
-
case Entities_1.TransactionType.Refund:
|
|
30
|
-
if (builder.paymentMethod.paymentMethodType === Entities_1.PaymentMethodType.Credit) {
|
|
31
|
-
return "credit";
|
|
32
|
-
}
|
|
33
|
-
return "payment-out";
|
|
34
|
-
case Entities_1.TransactionType.Reversal:
|
|
35
|
-
throw new Entities_1.UnsupportedTransactionError("The selected gateway does not support this transaction type.");
|
|
36
|
-
default:
|
|
37
|
-
return "unknown";
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
static mapResponse(rawResponse, acceptedCodes) {
|
|
41
|
-
const result = new Entities_1.Transaction();
|
|
42
|
-
const root = (0, elementtree_1.XML)(rawResponse);
|
|
43
|
-
this.checkResponse(root, acceptedCodes);
|
|
44
|
-
result.responseCode = root.findtext(".//result");
|
|
45
|
-
result.responseMessage = root.findtext(".//message");
|
|
46
|
-
result.cvnResponseCode = root.findtext(".//cvnresult");
|
|
47
|
-
result.avsResponseCode = root.findtext(".//avspostcoderesponse");
|
|
48
|
-
result.timestamp = root.findtext(".//timestamp");
|
|
49
|
-
result.transactionReference = new src_1.TransactionReference();
|
|
50
|
-
result.transactionReference.authCode = root.findtext(".//authcode");
|
|
51
|
-
result.transactionReference.orderId = root.findtext(".//orderid");
|
|
52
|
-
result.transactionReference.paymentMethodType = Entities_1.PaymentMethodType.Credit;
|
|
53
|
-
result.transactionReference.transactionId = root.findtext(".//pasref");
|
|
54
|
-
return result;
|
|
55
|
-
}
|
|
56
|
-
static checkResponse(root, acceptedCodes) {
|
|
57
|
-
if (!acceptedCodes) {
|
|
58
|
-
acceptedCodes = ["00"];
|
|
59
|
-
}
|
|
60
|
-
const responseCode = root.findtext(".//result");
|
|
61
|
-
const responseMessage = root.findtext(".//message");
|
|
62
|
-
if (acceptedCodes.indexOf(responseCode) === -1) {
|
|
63
|
-
throw new Entities_1.GatewayError(`Unexpected Gateway Response: ${responseCode} - ${responseMessage}`, responseCode);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
static mapManageRequestType(builder) {
|
|
67
|
-
switch (builder.transactionType) {
|
|
68
|
-
case Entities_1.TransactionType.Capture:
|
|
69
|
-
return "settle";
|
|
70
|
-
case Entities_1.TransactionType.Hold:
|
|
71
|
-
return "hold";
|
|
72
|
-
case Entities_1.TransactionType.Refund:
|
|
73
|
-
return "rebate";
|
|
74
|
-
case Entities_1.TransactionType.Release:
|
|
75
|
-
return "release";
|
|
76
|
-
case Entities_1.TransactionType.Void:
|
|
77
|
-
case Entities_1.TransactionType.Reversal:
|
|
78
|
-
return "void";
|
|
79
|
-
default:
|
|
80
|
-
return "unknown";
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.GpEcomMapping = GpEcomMapping;
|
|
85
|
-
//# sourceMappingURL=GpEcomMapping.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GpEcomMapping.js","sourceRoot":"","sources":["../../../src/Mapping/GpEcomMapping.ts"],"names":[],"mappings":";;;AAAA,kDAAuD;AAEvD,mCAImB;AACnB,iDAO4B;AAE5B,MAAa,aAAa;IACjB,MAAM,CAAC,kBAAkB,CAAC,OAAiC;QAChE,QAAQ,OAAO,CAAC,eAAe,EAAE;YAC/B,KAAK,0BAAe,CAAC,IAAI,CAAC;YAC1B,KAAK,0BAAe,CAAC,IAAI;gBACvB,IACE,OAAO,CAAC,aAAa,CAAC,iBAAiB,KAAK,4BAAiB,CAAC,MAAM,EACpE;oBACA,IAAI,OAAO,CAAC,mBAAmB,KAAK,8BAAmB,CAAC,OAAO,EAAE;wBAC/D,OAAO,SAAS,CAAC;qBAClB;oBACD,IACE,OAAO,CAAC,mBAAmB,KAAK,8BAAmB,CAAC,eAAe,EACnE;wBACA,OAAO,aAAa,CAAC;qBACtB;oBACD,OAAO,MAAM,CAAC;iBACf;gBACD,OAAO,YAAY,CAAC;YACtB,KAAK,0BAAe,CAAC,OAAO;gBAC1B,OAAO,QAAQ,CAAC;YAClB,KAAK,0BAAe,CAAC,MAAM;gBACzB,IACE,OAAO,CAAC,aAAa,CAAC,iBAAiB,KAAK,4BAAiB,CAAC,MAAM,EACpE;oBACA,OAAO,KAAK,CAAC;iBACd;gBACD,OAAO,gBAAgB,CAAC;YAC1B,KAAK,0BAAe,CAAC,MAAM;gBACzB,IACE,OAAO,CAAC,aAAa,CAAC,iBAAiB,KAAK,4BAAiB,CAAC,MAAM,EACpE;oBACA,OAAO,QAAQ,CAAC;iBACjB;gBACD,OAAO,aAAa,CAAC;YACvB,KAAK,0BAAe,CAAC,QAAQ;gBAC3B,MAAM,IAAI,sCAA2B,CACnC,8DAA8D,CAC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IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAEpD,IAAI,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE;YAC9C,MAAM,IAAI,uBAAY,CACpB,gCAAgC,YAAY,MAAM,eAAe,EAAE,EACnE,YAAY,CACb,CAAC;SACH;IACH,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,OAA0B;QACpD,QAAQ,OAAO,CAAC,eAAe,EAAE;YAC/B,KAAK,0BAAe,CAAC,OAAO;gBAC1B,OAAO,QAAQ,CAAC;YAClB,KAAK,0BAAe,CAAC,IAAI;gBACvB,OAAO,MAAM,CAAC;YAChB,KAAK,0BAAe,CAAC,MAAM;gBACzB,OAAO,QAAQ,CAAC;YAClB,KAAK,0BAAe,CAAC,OAAO;gBAC1B,OAAO,SAAS,CAAC;YACnB,KAAK,0BAAe,CAAC,IAAI,CAAC;YAC1B,KAAK,0BAAe,CAAC,QAAQ;gBAC3B,OAAO,MAAM,CAAC;YAChB;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF;AAjGD,sCAiGC"}
|
package/lib/src/Mapping/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./EnumMapping"), exports);
|
|
18
|
-
__exportStar(require("./GpApiMapping"), exports);
|
|
19
|
-
__exportStar(require("./GpEcomMapping"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Mapping/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,iDAA+B;AAC/B,kDAAgC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, EncryptionData, PaymentMethodType } from "../../src";
|
|
2
|
-
import { IChargable, IEncryptable, IPaymentMethod, IPinProtected, IPrePayable, IRefundable, IReversable } from ".";
|
|
3
|
-
export declare class AlternativePaymentMethod implements IPaymentMethod, IPrePayable, IRefundable, IReversable, IChargable, IEncryptable, IPinProtected {
|
|
4
|
-
paymentMethodType: PaymentMethodType;
|
|
5
|
-
alternativePaymentMethodType: string;
|
|
6
|
-
returnUrl: string;
|
|
7
|
-
statusUpdateUrl: string;
|
|
8
|
-
cancelUrl: string;
|
|
9
|
-
descriptor: string;
|
|
10
|
-
country: string;
|
|
11
|
-
accountHolderName: string;
|
|
12
|
-
providerReference: string;
|
|
13
|
-
addressOverrideMode: string;
|
|
14
|
-
pinBlock: string;
|
|
15
|
-
encryptionData: EncryptionData;
|
|
16
|
-
constructor(alternativePaymentMethodType: string);
|
|
17
|
-
charge(amount: string | number): AuthorizationBuilder;
|
|
18
|
-
authorize(amount: string | number): AuthorizationBuilder;
|
|
19
|
-
addValue(amount: string | number): AuthorizationBuilder;
|
|
20
|
-
refund(amount: string | number): AuthorizationBuilder;
|
|
21
|
-
reverse(amount: string | number): AuthorizationBuilder;
|
|
22
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AlternativePaymentMethod = void 0;
|
|
4
|
-
const src_1 = require("../../src");
|
|
5
|
-
/* eslint-disable indent */
|
|
6
|
-
class AlternativePaymentMethod {
|
|
7
|
-
paymentMethodType = src_1.PaymentMethodType.APM;
|
|
8
|
-
alternativePaymentMethodType;
|
|
9
|
-
returnUrl;
|
|
10
|
-
statusUpdateUrl;
|
|
11
|
-
cancelUrl;
|
|
12
|
-
descriptor;
|
|
13
|
-
country;
|
|
14
|
-
accountHolderName;
|
|
15
|
-
providerReference;
|
|
16
|
-
addressOverrideMode;
|
|
17
|
-
pinBlock;
|
|
18
|
-
encryptionData;
|
|
19
|
-
/* eslint-enable indent */
|
|
20
|
-
constructor(alternativePaymentMethodType) {
|
|
21
|
-
this.alternativePaymentMethodType = alternativePaymentMethodType;
|
|
22
|
-
}
|
|
23
|
-
charge(amount) {
|
|
24
|
-
return new src_1.AuthorizationBuilder(src_1.TransactionType.Sale, this)
|
|
25
|
-
.withModifier(src_1.TransactionModifier.AlternativePaymentMethod)
|
|
26
|
-
.withAmount(amount);
|
|
27
|
-
}
|
|
28
|
-
authorize(amount) {
|
|
29
|
-
return new src_1.AuthorizationBuilder(src_1.TransactionType.Auth, this)
|
|
30
|
-
.withModifier(src_1.TransactionModifier.AlternativePaymentMethod)
|
|
31
|
-
.withAmount(amount);
|
|
32
|
-
}
|
|
33
|
-
addValue(amount) {
|
|
34
|
-
amount;
|
|
35
|
-
throw new src_1.NotImplementedError();
|
|
36
|
-
}
|
|
37
|
-
refund(amount) {
|
|
38
|
-
amount;
|
|
39
|
-
throw new src_1.NotImplementedError();
|
|
40
|
-
}
|
|
41
|
-
reverse(amount) {
|
|
42
|
-
amount;
|
|
43
|
-
throw new src_1.NotImplementedError();
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.AlternativePaymentMethod = AlternativePaymentMethod;
|
|
47
|
-
//# sourceMappingURL=AlternativePaymentMethod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AlternativePaymentMethod.js","sourceRoot":"","sources":["../../../src/PaymentMethods/AlternativePaymentMethod.ts"],"names":[],"mappings":";;;AAAA,mCAOmB;AAWnB,2BAA2B;AAC3B,MAAa,wBAAwB;IAUnC,iBAAiB,GAAG,uBAAiB,CAAC,GAAG,CAAC;IAC1C,4BAA4B,CAAS;IACrC,SAAS,CAAS;IAClB,eAAe,CAAS;IACxB,SAAS,CAAS;IAClB,UAAU,CAAS;IACnB,OAAO,CAAS;IAChB,iBAAiB,CAAS;IAC1B,iBAAiB,CAAS;IAC1B,mBAAmB,CAAS;IAC5B,QAAQ,CAAS;IACjB,cAAc,CAAiB;IAC/B,0BAA0B;IAE1B,YAAY,4BAAoC;QAC9C,IAAI,CAAC,4BAA4B,GAAG,4BAA4B,CAAC;IACnE,CAAC;IAED,MAAM,CAAC,MAAuB;QAC5B,OAAO,IAAI,0BAAoB,CAAC,qBAAe,CAAC,IAAI,EAAE,IAAI,CAAC;aACxD,YAAY,CAAC,yBAAmB,CAAC,wBAAwB,CAAC;aAC1D,UAAU,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,SAAS,CAAC,MAAuB;QAC/B,OAAO,IAAI,0BAAoB,CAAC,qBAAe,CAAC,IAAI,EAAE,IAAI,CAAC;aACxD,YAAY,CAAC,yBAAmB,CAAC,wBAAwB,CAAC;aAC1D,UAAU,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC;IAED,QAAQ,CAAC,MAAuB;QAC9B,MAAM,CAAC;QACP,MAAM,IAAI,yBAAmB,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,MAAuB;QAC5B,MAAM,CAAC;QACP,MAAM,IAAI,yBAAmB,EAAE,CAAC;IAClC,CAAC;IAED,OAAO,CAAC,MAAuB;QAC7B,MAAM,CAAC;QACP,MAAM,IAAI,yBAAmB,EAAE,CAAC;IAClC,CAAC;CACF;AAtDD,4DAsDC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, PaymentMethodType } from "../";
|
|
2
|
-
import { IChargable, IRefundable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare class Cash extends PaymentMethod implements IChargable, IRefundable {
|
|
5
|
-
paymentMethodType: PaymentMethodType;
|
|
6
|
-
charge(): AuthorizationBuilder;
|
|
7
|
-
refund(): AuthorizationBuilder;
|
|
8
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Cash = void 0;
|
|
4
|
-
const __1 = require("../");
|
|
5
|
-
const PaymentMethod_1 = require("./PaymentMethod");
|
|
6
|
-
class Cash extends PaymentMethod_1.PaymentMethod {
|
|
7
|
-
paymentMethodType = __1.PaymentMethodType.Cash;
|
|
8
|
-
charge() {
|
|
9
|
-
throw new __1.NotImplementedError();
|
|
10
|
-
}
|
|
11
|
-
refund() {
|
|
12
|
-
throw new __1.NotImplementedError();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Cash = Cash;
|
|
16
|
-
//# sourceMappingURL=Cash.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cash.js","sourceRoot":"","sources":["../../../src/PaymentMethods/Cash.ts"],"names":[],"mappings":";;;AAAA,2BAIa;AAEb,mDAAgD;AAEhD,MAAa,IAAK,SAAQ,6BAAa;IAC9B,iBAAiB,GAAG,qBAAiB,CAAC,IAAI,CAAC;IAE3C,MAAM;QACX,MAAM,IAAI,uBAAmB,EAAE,CAAC;IAClC,CAAC;IAEM,MAAM;QACX,MAAM,IAAI,uBAAmB,EAAE,CAAC;IAClC,CAAC;CACF;AAVD,oBAUC"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, EncryptionData, InquiryType, ManagementBuilder, PaymentMethodType, PaymentMethodUsageMode, Transaction } from "../";
|
|
2
|
-
import { IAuthable, IBalanceable, IChargable, IEncryptable, IPrePayable, IRefundable, IReversable, ITokenizable, IVerifyable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare abstract class Credit extends PaymentMethod implements IEncryptable, ITokenizable, IChargable, IAuthable, IRefundable, IReversable, IVerifyable, IPrePayable, IBalanceable {
|
|
5
|
-
encryptionData: EncryptionData;
|
|
6
|
-
paymentMethodType: PaymentMethodType;
|
|
7
|
-
/**
|
|
8
|
-
* The token value representing the card.
|
|
9
|
-
*
|
|
10
|
-
* For `TransactionModifier.EncryptedMobile` transactions, this value is the
|
|
11
|
-
* encrypted payload from the mobile payment scheme.
|
|
12
|
-
*/
|
|
13
|
-
token: string;
|
|
14
|
-
/**
|
|
15
|
-
* The type of mobile device used in `Transaction.Modifier.EncryptedMobile`
|
|
16
|
-
* transactions.
|
|
17
|
-
*/
|
|
18
|
-
mobileType: string;
|
|
19
|
-
/**
|
|
20
|
-
* Payment Source is the API or source of the cryptogram for WalletData.
|
|
21
|
-
*/
|
|
22
|
-
paymentSource: string;
|
|
23
|
-
cryptogram: string;
|
|
24
|
-
eci: string;
|
|
25
|
-
/**
|
|
26
|
-
* Authorizes the payment method
|
|
27
|
-
*
|
|
28
|
-
* @param string|number amount Amount to authorize
|
|
29
|
-
*
|
|
30
|
-
* @return AuthorizationBuilder
|
|
31
|
-
*/
|
|
32
|
-
authorize(amount?: string | number): AuthorizationBuilder;
|
|
33
|
-
/**
|
|
34
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
35
|
-
*
|
|
36
|
-
* @param string|number amount Amount to authorize
|
|
37
|
-
*
|
|
38
|
-
* @return AuthorizationBuilder
|
|
39
|
-
*/
|
|
40
|
-
charge(amount?: string | number): AuthorizationBuilder;
|
|
41
|
-
/**
|
|
42
|
-
* Adds value to the payment method
|
|
43
|
-
*
|
|
44
|
-
* @param string|number amount Amount to add
|
|
45
|
-
*
|
|
46
|
-
* @return AuthorizationBuilder
|
|
47
|
-
*/
|
|
48
|
-
addValue(amount?: string | number): AuthorizationBuilder;
|
|
49
|
-
/**
|
|
50
|
-
* Inquires the balance of the payment method
|
|
51
|
-
*
|
|
52
|
-
* @param InquiryType inquiry Type of inquiry
|
|
53
|
-
*
|
|
54
|
-
* @return AuthorizationBuilder
|
|
55
|
-
*/
|
|
56
|
-
balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
|
|
57
|
-
/**
|
|
58
|
-
* Refunds the payment method
|
|
59
|
-
*
|
|
60
|
-
* @param string|number amount Amount to refund
|
|
61
|
-
*
|
|
62
|
-
* @return AuthorizationBuilder
|
|
63
|
-
*/
|
|
64
|
-
refund(amount?: string | number): AuthorizationBuilder;
|
|
65
|
-
/**
|
|
66
|
-
* Reverses the payment method
|
|
67
|
-
*
|
|
68
|
-
* @param string|number amount Amount to reverse
|
|
69
|
-
*
|
|
70
|
-
* @return AuthorizationBuilder
|
|
71
|
-
*/
|
|
72
|
-
reverse(amount?: string | number): AuthorizationBuilder;
|
|
73
|
-
/**
|
|
74
|
-
* Verifies the payment method
|
|
75
|
-
*
|
|
76
|
-
* @return AuthorizationBuilder
|
|
77
|
-
*/
|
|
78
|
-
verify(): AuthorizationBuilder;
|
|
79
|
-
/**
|
|
80
|
-
* Tokenizes the payment method
|
|
81
|
-
*
|
|
82
|
-
* @return AuthorizationBuilder
|
|
83
|
-
*/
|
|
84
|
-
tokenize(verifyCard?: boolean, usageMode?: PaymentMethodUsageMode): AuthorizationBuilder;
|
|
85
|
-
/**
|
|
86
|
-
* Updates the token expiry date with the values proced to the card object
|
|
87
|
-
*
|
|
88
|
-
* @returns boolean value indicating success/failure
|
|
89
|
-
*/
|
|
90
|
-
updateTokenExpiry(): Promise<boolean>;
|
|
91
|
-
/**
|
|
92
|
-
* Updates the payment token
|
|
93
|
-
*
|
|
94
|
-
* @returns ManagementBuilder
|
|
95
|
-
*/
|
|
96
|
-
updateToken(): ManagementBuilder;
|
|
97
|
-
/**
|
|
98
|
-
* Deletes the token associated with the current card object
|
|
99
|
-
*
|
|
100
|
-
* @returns boolean value indicating success/failure
|
|
101
|
-
*/
|
|
102
|
-
deleteToken(): Promise<boolean>;
|
|
103
|
-
/**
|
|
104
|
-
* Detokenizes the payment method
|
|
105
|
-
*
|
|
106
|
-
* @returns result of the detokenization
|
|
107
|
-
*/
|
|
108
|
-
detokenize(): Promise<Transaction>;
|
|
109
|
-
}
|