globalpayments-api 3.0.0 → 3.1.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/.eslintignore +9 -0
- package/.eslintrc.cjs +39 -0
- package/.prettierrc +14 -4
- package/CHANGELOG.md +44 -32
- package/package.json +65 -58
- package/tsconfig.eslint.json +15 -0
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -325
- package/lib/src/Builders/AuthorizationBuilder.js +0 -601
- package/lib/src/Builders/AuthorizationBuilder.js.map +0 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -14
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -62
- 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 -29
- 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 -57
- 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 -103
- package/lib/src/Builders/ManagementBuilder.js +0 -228
- package/lib/src/Builders/ManagementBuilder.js.map +0 -1
- package/lib/src/Builders/PayFacBuilder.d.ts +0 -96
- package/lib/src/Builders/PayFacBuilder.js +0 -185
- 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 -48
- package/lib/src/Builders/RecurringBuilder.js.map +0 -1
- package/lib/src/Builders/ReportBuilder.d.ts +0 -8
- package/lib/src/Builders/ReportBuilder.js +0 -37
- package/lib/src/Builders/ReportBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.d.ts +0 -22
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js +0 -160
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.d.ts +0 -6
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js +0 -24
- package/lib/src/Builders/RequestBuilder/GpEcom/GpEcomRequestBuilder.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/GpEcom/index.d.ts +0 -2
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js +0 -15
- package/lib/src/Builders/RequestBuilder/GpEcom/index.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +0 -6
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +0 -30
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +0 -1
- package/lib/src/Builders/RequestBuilder/index.d.ts +0 -2
- package/lib/src/Builders/RequestBuilder/index.js +0 -15
- package/lib/src/Builders/RequestBuilder/index.js.map +0 -1
- package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
- 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 -15
- package/lib/src/Builders/TransactionReportBuilder.js +0 -80
- 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 -21
- package/lib/src/Builders/index.js.map +0 -1
- package/lib/src/ConfiguredServices.d.ts +0 -22
- package/lib/src/ConfiguredServices.js +0 -57
- package/lib/src/ConfiguredServices.js.map +0 -1
- package/lib/src/Entities/Address.d.ts +0 -13
- package/lib/src/Entities/Address.js +0 -20
- 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 -10
- package/lib/src/Entities/BatchSummary.js.map +0 -1
- package/lib/src/Entities/Customer.d.ts +0 -64
- package/lib/src/Entities/Customer.js +0 -48
- package/lib/src/Entities/Customer.js.map +0 -1
- package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
- package/lib/src/Entities/DocumentUploadData.js +0 -49
- 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 -15
- 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 -10
- package/lib/src/Entities/EncryptionData.js.map +0 -1
- package/lib/src/Entities/Enums.d.ts +0 -373
- package/lib/src/Entities/Enums.js +0 -498
- 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 -107
- package/lib/src/Entities/Errors.js.map +0 -1
- package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
- package/lib/src/Entities/HostedPaymentData.js +0 -11
- package/lib/src/Entities/HostedPaymentData.js.map +0 -1
- package/lib/src/Entities/IRequestBuilder.d.ts +0 -7
- package/lib/src/Entities/IRequestBuilder.js +0 -3
- package/lib/src/Entities/IRequestBuilder.js.map +0 -1
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -10
- 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 -10
- 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 -10
- 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 -12
- 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 -11
- 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 -14
- package/lib/src/Entities/ProFac/BusinessData.js +0 -12
- 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 -10
- 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 -10
- 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 -14
- 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 -10
- 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 -12
- 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 -10
- 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 -12
- 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 -12
- 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 -10
- 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 -15
- 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 -87
- package/lib/src/Entities/RecurringEntity.js.map +0 -1
- package/lib/src/Entities/Request.d.ts +0 -9
- package/lib/src/Entities/Request.js +0 -15
- 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 -10
- 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 -254
- package/lib/src/Entities/Schedule.js.map +0 -1
- package/lib/src/Entities/ServiceEndpoints.d.ts +0 -4
- package/lib/src/Entities/ServiceEndpoints.js +0 -9
- package/lib/src/Entities/ServiceEndpoints.js.map +0 -1
- package/lib/src/Entities/Transaction.d.ts +0 -78
- package/lib/src/Entities/Transaction.js +0 -109
- package/lib/src/Entities/Transaction.js.map +0 -1
- package/lib/src/Entities/TransactionSummary.d.ts +0 -61
- package/lib/src/Entities/TransactionSummary.js +0 -10
- package/lib/src/Entities/TransactionSummary.js.map +0 -1
- package/lib/src/Entities/index.d.ts +0 -15
- package/lib/src/Entities/index.js +0 -28
- package/lib/src/Entities/index.js.map +0 -1
- package/lib/src/Gateways/Gateway.d.ts +0 -10
- package/lib/src/Gateways/Gateway.js +0 -43
- package/lib/src/Gateways/Gateway.js.map +0 -1
- package/lib/src/Gateways/GpEcomConnector.d.ts +0 -36
- package/lib/src/Gateways/GpEcomConnector.js +0 -557
- 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 -553
- package/lib/src/Gateways/PayPlanConnector.js.map +0 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
- package/lib/src/Gateways/PorticoConnector.js +0 -1018
- package/lib/src/Gateways/PorticoConnector.js.map +0 -1
- package/lib/src/Gateways/ProPayConnector.d.ts +0 -41
- package/lib/src/Gateways/ProPayConnector.js +0 -695
- package/lib/src/Gateways/ProPayConnector.js.map +0 -1
- package/lib/src/Gateways/RealexConnector.d.ts +0 -30
- package/lib/src/Gateways/RealexConnector.js +0 -524
- package/lib/src/Gateways/RealexConnector.js.map +0 -1
- package/lib/src/Gateways/RestGateway.d.ts +0 -6
- package/lib/src/Gateways/RestGateway.js +0 -32
- 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 -38
- 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 -36
- package/lib/src/Gateways/https-wrapper.js.map +0 -1
- package/lib/src/Gateways/index.d.ts +0 -8
- package/lib/src/Gateways/index.js +0 -21
- package/lib/src/Gateways/index.js.map +0 -1
- package/lib/src/HostedPaymentConfig.d.ts +0 -12
- package/lib/src/HostedPaymentConfig.js +0 -10
- package/lib/src/HostedPaymentConfig.js.map +0 -1
- package/lib/src/Mapping/GpEcomMapping.d.ts +0 -9
- package/lib/src/Mapping/GpEcomMapping.js +0 -74
- package/lib/src/Mapping/GpEcomMapping.js.map +0 -1
- package/lib/src/Mapping/index.d.ts +0 -1
- package/lib/src/Mapping/index.js +0 -14
- package/lib/src/Mapping/index.js.map +0 -1
- package/lib/src/PaymentMethods/Cash.d.ts +0 -8
- package/lib/src/PaymentMethods/Cash.js +0 -37
- package/lib/src/PaymentMethods/Cash.js.map +0 -1
- package/lib/src/PaymentMethods/Credit.d.ts +0 -85
- package/lib/src/PaymentMethods/Credit.js +0 -107
- 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 -58
- 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 -28
- 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 -71
- 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 -28
- 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 -89
- 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 -33
- 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 -28
- 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 -41
- 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 -206
- package/lib/src/PaymentMethods/GiftCard.js.map +0 -1
- package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
- 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 -115
- package/lib/src/PaymentMethods/PaymentMethod.js.map +0 -1
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -78
- 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 -13
- package/lib/src/PaymentMethods/TransactionReference.js.map +0 -1
- package/lib/src/PaymentMethods/index.d.ts +0 -15
- package/lib/src/PaymentMethods/index.js +0 -28
- package/lib/src/PaymentMethods/index.js.map +0 -1
- package/lib/src/ServiceConfigs/AcceptorConfig.d.ts +0 -41
- package/lib/src/ServiceConfigs/AcceptorConfig.js +0 -30
- 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 -16
- 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 -46
- package/lib/src/ServiceConfigs/Gateways/GatewayConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.d.ts +0 -27
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js +0 -61
- package/lib/src/ServiceConfigs/Gateways/GpEcomConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/Gateways/index.d.ts +0 -2
- package/lib/src/ServiceConfigs/Gateways/index.js +0 -15
- package/lib/src/ServiceConfigs/Gateways/index.js.map +0 -1
- package/lib/src/ServiceConfigs/ServicesConfig.d.ts +0 -27
- package/lib/src/ServiceConfigs/ServicesConfig.js +0 -51
- package/lib/src/ServiceConfigs/ServicesConfig.js.map +0 -1
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.d.ts +0 -10
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.js +0 -27
- package/lib/src/ServiceConfigs/ServicesConfigsAdded.js.map +0 -1
- package/lib/src/ServiceConfigs/index.d.ts +0 -5
- package/lib/src/ServiceConfigs/index.js +0 -18
- 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 -18
- package/lib/src/Services/BatchService.js.map +0 -1
- package/lib/src/Services/CheckService.d.ts +0 -6
- package/lib/src/Services/CheckService.js +0 -21
- package/lib/src/Services/CheckService.js.map +0 -1
- package/lib/src/Services/CreditService.d.ts +0 -12
- package/lib/src/Services/CreditService.js +0 -55
- package/lib/src/Services/CreditService.js.map +0 -1
- package/lib/src/Services/DebitService.d.ts +0 -7
- package/lib/src/Services/DebitService.js +0 -29
- package/lib/src/Services/DebitService.js.map +0 -1
- package/lib/src/Services/EBTService.d.ts +0 -8
- package/lib/src/Services/EBTService.js +0 -33
- package/lib/src/Services/EBTService.js.map +0 -1
- package/lib/src/Services/GiftService.d.ts +0 -16
- package/lib/src/Services/GiftService.js +0 -55
- package/lib/src/Services/GiftService.js.map +0 -1
- package/lib/src/Services/HostedService.d.ts +0 -9
- package/lib/src/Services/HostedService.js +0 -60
- 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 -78
- 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 -28
- package/lib/src/Services/RecurringService.js.map +0 -1
- package/lib/src/Services/ReportingService.d.ts +0 -6
- package/lib/src/Services/ReportingService.js +0 -20
- package/lib/src/Services/ReportingService.js.map +0 -1
- package/lib/src/Services/index.d.ts +0 -9
- package/lib/src/Services/index.js +0 -22
- package/lib/src/Services/index.js.map +0 -1
- package/lib/src/ServicesConfig.d.ts +0 -27
- package/lib/src/ServicesConfig.js +0 -51
- package/lib/src/ServicesConfig.js.map +0 -1
- package/lib/src/ServicesContainer.d.ts +0 -26
- package/lib/src/ServicesContainer.js +0 -140
- package/lib/src/ServicesContainer.js.map +0 -1
- package/lib/src/Utils/GenerationUtils.d.ts +0 -5
- package/lib/src/Utils/GenerationUtils.js +0 -37
- package/lib/src/Utils/GenerationUtils.js.map +0 -1
- package/lib/src/Utils/InputValidation.d.ts +0 -12
- package/lib/src/Utils/InputValidation.js +0 -73
- package/lib/src/Utils/InputValidation.js.map +0 -1
- package/lib/src/Utils/Sha1.d.ts +0 -6
- package/lib/src/Utils/Sha1.js +0 -226
- package/lib/src/Utils/Sha1.js.map +0 -1
- package/lib/src/Utils/StringUtils.d.ts +0 -6
- package/lib/src/Utils/StringUtils.js +0 -54
- package/lib/src/Utils/StringUtils.js.map +0 -1
- package/lib/src/Utils/index.d.ts +0 -2
- package/lib/src/Utils/index.js +0 -15
- package/lib/src/Utils/index.js.map +0 -1
- package/lib/src/index.d.ts +0 -12
- package/lib/src/index.js +0 -29
- package/lib/src/index.js.map +0 -1
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -233
- 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 -33
- 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 -15
- package/lib/test/Data/index.js.map +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -113
- 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 -484
- 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 -84
- 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 -1721
- 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 -84
- 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 -1758
- 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 -683
- 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 -2219
- 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 -708
- 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 -152
- 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 -172
- 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 -193
- 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 -378
- 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 -197
- 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 -48
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +0 -101
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +0 -353
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +0 -124
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +0 -143
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.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 -372
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +0 -101
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +0 -536
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +0 -125
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +0 -145
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js.map +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -33
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -269
- 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 -31
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4374
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -759
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2400
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1657
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5651
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1986
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2370
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1704
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2054
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2470
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3117
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2032
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -323
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -99
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js.map +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -264
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js.map +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -99
- 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 -314
- 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 -155
- 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 -136
- 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 -162
- 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 -140
- 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 -73
- 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 -203
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +0 -1
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -71
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js.map +0 -1
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, InquiryType, PaymentMethodType } from "../";
|
|
2
|
-
import { IBalanceable, IChargable, IPrePayable, IReversable } from "./Interfaces";
|
|
3
|
-
import { PaymentMethod } from "./PaymentMethod";
|
|
4
|
-
export declare class GiftCard extends PaymentMethod implements IPrePayable, IBalanceable, IReversable, IChargable {
|
|
5
|
-
/**
|
|
6
|
-
* Payment method value types
|
|
7
|
-
*
|
|
8
|
-
* @var string[]
|
|
9
|
-
*/
|
|
10
|
-
protected static valueTypes: string[];
|
|
11
|
-
/**
|
|
12
|
-
* Payment method type
|
|
13
|
-
*
|
|
14
|
-
* @var PaymentMethodType
|
|
15
|
-
*/
|
|
16
|
-
paymentMethodType: PaymentMethodType;
|
|
17
|
-
/**
|
|
18
|
-
* Payment method PIN
|
|
19
|
-
*
|
|
20
|
-
* @var string
|
|
21
|
-
*/
|
|
22
|
-
pin: string;
|
|
23
|
-
/**
|
|
24
|
-
* Payment method value
|
|
25
|
-
*
|
|
26
|
-
* @internal
|
|
27
|
-
* @var string
|
|
28
|
-
*/
|
|
29
|
-
value: string;
|
|
30
|
-
/**
|
|
31
|
-
* Payment method value type
|
|
32
|
-
*
|
|
33
|
-
* @internal
|
|
34
|
-
* @var string
|
|
35
|
-
*/
|
|
36
|
-
valueType: string;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new payment method
|
|
39
|
-
*
|
|
40
|
-
* @param string alias Alias to use
|
|
41
|
-
*
|
|
42
|
-
* @return GiftCard
|
|
43
|
-
*/
|
|
44
|
-
static create(alias?: string): Promise<GiftCard>;
|
|
45
|
-
/**
|
|
46
|
-
* Adds an alias to the payment method
|
|
47
|
-
*
|
|
48
|
-
* @param string alias Alias to add
|
|
49
|
-
*
|
|
50
|
-
* @return AuthorizationBuilder
|
|
51
|
-
*/
|
|
52
|
-
addAlias(alias?: string): AuthorizationBuilder;
|
|
53
|
-
/**
|
|
54
|
-
* Activates the payment method with the given amount
|
|
55
|
-
*
|
|
56
|
-
* @param string|number amount Amount to add
|
|
57
|
-
*
|
|
58
|
-
* @return AuthorizationBuilder
|
|
59
|
-
*/
|
|
60
|
-
activate(amount?: string | number): AuthorizationBuilder;
|
|
61
|
-
/**
|
|
62
|
-
* Adds value to the payment method
|
|
63
|
-
*
|
|
64
|
-
* @param string|number amount Amount to add
|
|
65
|
-
*
|
|
66
|
-
* @return AuthorizationBuilder
|
|
67
|
-
*/
|
|
68
|
-
addValue(amount?: string | number): AuthorizationBuilder;
|
|
69
|
-
/**
|
|
70
|
-
* Inquires the balance of the payment method
|
|
71
|
-
*
|
|
72
|
-
* @param InquiryType inquiry Type of inquiry
|
|
73
|
-
*
|
|
74
|
-
* @return AuthorizationBuilder
|
|
75
|
-
*/
|
|
76
|
-
balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
|
|
77
|
-
/**
|
|
78
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
79
|
-
*
|
|
80
|
-
* @param string|number amount Amount to authorize
|
|
81
|
-
*
|
|
82
|
-
* @return AuthorizationBuilder
|
|
83
|
-
*/
|
|
84
|
-
charge(amount?: string | number): AuthorizationBuilder;
|
|
85
|
-
/**
|
|
86
|
-
* Deactivates the payment method
|
|
87
|
-
*
|
|
88
|
-
* @return AuthorizationBuilder
|
|
89
|
-
*/
|
|
90
|
-
deactivate(): AuthorizationBuilder;
|
|
91
|
-
/**
|
|
92
|
-
* Removes an alias to the payment method
|
|
93
|
-
*
|
|
94
|
-
* @param string alias Alias to remove
|
|
95
|
-
*
|
|
96
|
-
* @return AuthorizationBuilder
|
|
97
|
-
*/
|
|
98
|
-
removeAlias(alias?: string): AuthorizationBuilder;
|
|
99
|
-
/**
|
|
100
|
-
* Replaces the payment method with the given one
|
|
101
|
-
*
|
|
102
|
-
* @param GiftCard newCard Replacement gift card
|
|
103
|
-
*
|
|
104
|
-
* @return AuthorizationBuilder
|
|
105
|
-
*/
|
|
106
|
-
replaceWith(newCard?: GiftCard): AuthorizationBuilder;
|
|
107
|
-
/**
|
|
108
|
-
* Reverses the payment method
|
|
109
|
-
*
|
|
110
|
-
* @param string|number amount Amount to reverse
|
|
111
|
-
*
|
|
112
|
-
* @return AuthorizationBuilder
|
|
113
|
-
*/
|
|
114
|
-
reverse(amount?: string | number): AuthorizationBuilder;
|
|
115
|
-
/**
|
|
116
|
-
* Rewards the payment method
|
|
117
|
-
*
|
|
118
|
-
* @param string|number amount Amount to reward
|
|
119
|
-
*
|
|
120
|
-
* @return AuthorizationBuilder
|
|
121
|
-
*/
|
|
122
|
-
rewards(amount?: string | number): AuthorizationBuilder;
|
|
123
|
-
get alias(): string;
|
|
124
|
-
set alias(value: string);
|
|
125
|
-
get number(): string;
|
|
126
|
-
set number(value: string);
|
|
127
|
-
get token(): string;
|
|
128
|
-
set token(value: string);
|
|
129
|
-
get trackData(): string;
|
|
130
|
-
set trackData(value: string);
|
|
131
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.GiftCard = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var PaymentMethod_1 = require("./PaymentMethod");
|
|
21
|
-
var GiftCard = /** @class */ (function (_super) {
|
|
22
|
-
__extends(GiftCard, _super);
|
|
23
|
-
function GiftCard() {
|
|
24
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
25
|
-
/**
|
|
26
|
-
* Payment method type
|
|
27
|
-
*
|
|
28
|
-
* @var PaymentMethodType
|
|
29
|
-
*/
|
|
30
|
-
_this.paymentMethodType = __1.PaymentMethodType.Gift;
|
|
31
|
-
return _this;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Creates a new payment method
|
|
35
|
-
*
|
|
36
|
-
* @param string alias Alias to use
|
|
37
|
-
*
|
|
38
|
-
* @return GiftCard
|
|
39
|
-
*/
|
|
40
|
-
GiftCard.create = function (alias) {
|
|
41
|
-
var card = new GiftCard();
|
|
42
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Alias, card)
|
|
43
|
-
.withAlias(__1.AliasAction.Create, alias)
|
|
44
|
-
.execute()
|
|
45
|
-
.then(function (response) {
|
|
46
|
-
if (response.responseCode === "00") {
|
|
47
|
-
return response.giftCard;
|
|
48
|
-
}
|
|
49
|
-
throw new __1.ApiError(response.responseMessage);
|
|
50
|
-
})
|
|
51
|
-
.catch(function () {
|
|
52
|
-
throw new __1.ApiError("Unable to create gift card alias");
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Adds an alias to the payment method
|
|
57
|
-
*
|
|
58
|
-
* @param string alias Alias to add
|
|
59
|
-
*
|
|
60
|
-
* @return AuthorizationBuilder
|
|
61
|
-
*/
|
|
62
|
-
GiftCard.prototype.addAlias = function (alias) {
|
|
63
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Alias, this).withAlias(__1.AliasAction.Add, alias);
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Activates the payment method with the given amount
|
|
67
|
-
*
|
|
68
|
-
* @param string|number amount Amount to add
|
|
69
|
-
*
|
|
70
|
-
* @return AuthorizationBuilder
|
|
71
|
-
*/
|
|
72
|
-
GiftCard.prototype.activate = function (amount) {
|
|
73
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Activate, this).withAmount(amount);
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Adds value to the payment method
|
|
77
|
-
*
|
|
78
|
-
* @param string|number amount Amount to add
|
|
79
|
-
*
|
|
80
|
-
* @return AuthorizationBuilder
|
|
81
|
-
*/
|
|
82
|
-
GiftCard.prototype.addValue = function (amount) {
|
|
83
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.AddValue, this).withAmount(amount);
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* Inquires the balance of the payment method
|
|
87
|
-
*
|
|
88
|
-
* @param InquiryType inquiry Type of inquiry
|
|
89
|
-
*
|
|
90
|
-
* @return AuthorizationBuilder
|
|
91
|
-
*/
|
|
92
|
-
GiftCard.prototype.balanceInquiry = function (inquiry) {
|
|
93
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Balance, this).withBalanceInquiryType(inquiry);
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Authorizes the payment method and captures the entire authorized amount
|
|
97
|
-
*
|
|
98
|
-
* @param string|number amount Amount to authorize
|
|
99
|
-
*
|
|
100
|
-
* @return AuthorizationBuilder
|
|
101
|
-
*/
|
|
102
|
-
GiftCard.prototype.charge = function (amount) {
|
|
103
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this).withAmount(amount);
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Deactivates the payment method
|
|
107
|
-
*
|
|
108
|
-
* @return AuthorizationBuilder
|
|
109
|
-
*/
|
|
110
|
-
GiftCard.prototype.deactivate = function () {
|
|
111
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Deactivate, this);
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Removes an alias to the payment method
|
|
115
|
-
*
|
|
116
|
-
* @param string alias Alias to remove
|
|
117
|
-
*
|
|
118
|
-
* @return AuthorizationBuilder
|
|
119
|
-
*/
|
|
120
|
-
GiftCard.prototype.removeAlias = function (alias) {
|
|
121
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Alias, this).withAlias(__1.AliasAction.Delete, alias);
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Replaces the payment method with the given one
|
|
125
|
-
*
|
|
126
|
-
* @param GiftCard newCard Replacement gift card
|
|
127
|
-
*
|
|
128
|
-
* @return AuthorizationBuilder
|
|
129
|
-
*/
|
|
130
|
-
GiftCard.prototype.replaceWith = function (newCard) {
|
|
131
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Replace, this).withReplacementCard(newCard);
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Reverses the payment method
|
|
135
|
-
*
|
|
136
|
-
* @param string|number amount Amount to reverse
|
|
137
|
-
*
|
|
138
|
-
* @return AuthorizationBuilder
|
|
139
|
-
*/
|
|
140
|
-
GiftCard.prototype.reverse = function (amount) {
|
|
141
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Reversal, this).withAmount(amount);
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* Rewards the payment method
|
|
145
|
-
*
|
|
146
|
-
* @param string|number amount Amount to reward
|
|
147
|
-
*
|
|
148
|
-
* @return AuthorizationBuilder
|
|
149
|
-
*/
|
|
150
|
-
GiftCard.prototype.rewards = function (amount) {
|
|
151
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Reward, this).withAmount(amount);
|
|
152
|
-
};
|
|
153
|
-
Object.defineProperty(GiftCard.prototype, "alias", {
|
|
154
|
-
get: function () {
|
|
155
|
-
return this.value;
|
|
156
|
-
},
|
|
157
|
-
set: function (value) {
|
|
158
|
-
this.value = value;
|
|
159
|
-
this.valueType = "Alias";
|
|
160
|
-
},
|
|
161
|
-
enumerable: false,
|
|
162
|
-
configurable: true
|
|
163
|
-
});
|
|
164
|
-
Object.defineProperty(GiftCard.prototype, "number", {
|
|
165
|
-
get: function () {
|
|
166
|
-
return this.value;
|
|
167
|
-
},
|
|
168
|
-
set: function (value) {
|
|
169
|
-
this.value = value;
|
|
170
|
-
this.valueType = "CardNbr";
|
|
171
|
-
},
|
|
172
|
-
enumerable: false,
|
|
173
|
-
configurable: true
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(GiftCard.prototype, "token", {
|
|
176
|
-
get: function () {
|
|
177
|
-
return this.value;
|
|
178
|
-
},
|
|
179
|
-
set: function (value) {
|
|
180
|
-
this.value = value;
|
|
181
|
-
this.valueType = "TokenValue";
|
|
182
|
-
},
|
|
183
|
-
enumerable: false,
|
|
184
|
-
configurable: true
|
|
185
|
-
});
|
|
186
|
-
Object.defineProperty(GiftCard.prototype, "trackData", {
|
|
187
|
-
get: function () {
|
|
188
|
-
return this.value;
|
|
189
|
-
},
|
|
190
|
-
set: function (value) {
|
|
191
|
-
this.value = value;
|
|
192
|
-
this.valueType = "TrackData";
|
|
193
|
-
},
|
|
194
|
-
enumerable: false,
|
|
195
|
-
configurable: true
|
|
196
|
-
});
|
|
197
|
-
/**
|
|
198
|
-
* Payment method value types
|
|
199
|
-
*
|
|
200
|
-
* @var string[]
|
|
201
|
-
*/
|
|
202
|
-
GiftCard.valueTypes = ["alias", "number", "token", "trackData"];
|
|
203
|
-
return GiftCard;
|
|
204
|
-
}(PaymentMethod_1.PaymentMethod));
|
|
205
|
-
exports.GiftCard = GiftCard;
|
|
206
|
-
//# sourceMappingURL=GiftCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GiftCard.js","sourceRoot":"","sources":["../../../src/PaymentMethods/GiftCard.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yBAOa;AAOb,iDAAgD;AAEhD;IAA8B,4BAAa;IAA3C;QAAA,qEAqOC;QA5NC;;;;WAIG;QACI,uBAAiB,GAAG,qBAAiB,CAAC,IAAI,CAAC;;IAuNpD,CAAC;IA9LC;;;;;;OAMG;IACW,eAAM,GAApB,UAAqB,KAAc;QACjC,IAAM,IAAI,GAAG,IAAI,QAAQ,EAAE,CAAC;QAE5B,OAAO,IAAI,wBAAoB,CAAC,mBAAe,CAAC,KAAK,EAAE,IAAI,CAAC;aACzD,SAAS,CAAC,eAAW,CAAC,MAAM,EAAE,KAAK,CAAC;a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ED,UAAU,KAAa;YACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC;QAChC,CAAC;;;OALA;IAOD,sBAAI,+BAAS;aAAb;YACE,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;aAED,UAAc,KAAa;YACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,SAAS,GAAG,WAAW,CAAC;QAC/B,CAAC;;;OALA;IA7ND;;;;OAIG;IACc,mBAAU,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;IA8N1E,eAAC;CAAA,AArOD,CAA8B,6BAAa,GAqO1C;AArOY,4BAAQ"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { AuthorizationBuilder, CvnPresenceIndicator, EncryptionData, EntryMethod, InquiryType, ManagementBuilder, PaymentMethodType } from "../";
|
|
2
|
-
export interface IAuthable {
|
|
3
|
-
authorize(amount?: string | number): AuthorizationBuilder;
|
|
4
|
-
}
|
|
5
|
-
export interface IBalanceable {
|
|
6
|
-
balanceInquiry(inquiry?: InquiryType): AuthorizationBuilder;
|
|
7
|
-
}
|
|
8
|
-
export interface ICardData {
|
|
9
|
-
number: string;
|
|
10
|
-
expMonth: string;
|
|
11
|
-
expYear: string;
|
|
12
|
-
cvn: string;
|
|
13
|
-
cvnPresenceIndicator: CvnPresenceIndicator;
|
|
14
|
-
cardHolderName: string;
|
|
15
|
-
cardPresent: boolean;
|
|
16
|
-
readerPresent: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface IChargable {
|
|
19
|
-
charge(amount?: string | number): AuthorizationBuilder;
|
|
20
|
-
}
|
|
21
|
-
export interface IEditable {
|
|
22
|
-
edit(amount?: string | number): AuthorizationBuilder;
|
|
23
|
-
}
|
|
24
|
-
export interface IEncryptable {
|
|
25
|
-
encryptionData: EncryptionData;
|
|
26
|
-
}
|
|
27
|
-
export interface IPaymentMethod {
|
|
28
|
-
paymentMethodType: PaymentMethodType;
|
|
29
|
-
}
|
|
30
|
-
export interface IPinProtected {
|
|
31
|
-
pinBlock: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IPrePayable {
|
|
34
|
-
addValue(amount?: string | number): AuthorizationBuilder;
|
|
35
|
-
}
|
|
36
|
-
export interface IRefundable {
|
|
37
|
-
refund(amount?: string | number): AuthorizationBuilder;
|
|
38
|
-
}
|
|
39
|
-
export interface IReversable {
|
|
40
|
-
reverse(amount?: string | number): AuthorizationBuilder;
|
|
41
|
-
}
|
|
42
|
-
export interface ITokenizable {
|
|
43
|
-
token: string;
|
|
44
|
-
tokenize(): AuthorizationBuilder;
|
|
45
|
-
}
|
|
46
|
-
export interface ITrackData {
|
|
47
|
-
value: string;
|
|
48
|
-
entryMethod: EntryMethod;
|
|
49
|
-
}
|
|
50
|
-
export interface IVerifyable {
|
|
51
|
-
verify(): AuthorizationBuilder;
|
|
52
|
-
}
|
|
53
|
-
export interface IVoidable {
|
|
54
|
-
void(): ManagementBuilder;
|
|
55
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Interfaces.js","sourceRoot":"","sources":["../../../src/PaymentMethods/Interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IPaymentMethod, PaymentMethodType } from "../";
|
|
2
|
-
export declare abstract class PaymentMethod implements IPaymentMethod {
|
|
3
|
-
paymentMethodType: PaymentMethodType;
|
|
4
|
-
[key: string]: any;
|
|
5
|
-
get isAuthable(): boolean;
|
|
6
|
-
get isBalanceable(): boolean;
|
|
7
|
-
get isCardData(): boolean;
|
|
8
|
-
get isChargable(): boolean;
|
|
9
|
-
get isEditable(): boolean;
|
|
10
|
-
get isEncryptable(): boolean;
|
|
11
|
-
get isPinProtected(): boolean;
|
|
12
|
-
get isPrePayable(): boolean;
|
|
13
|
-
get isRefundable(): boolean;
|
|
14
|
-
get isReversable(): boolean;
|
|
15
|
-
get isTokenizable(): boolean;
|
|
16
|
-
get isTrackData(): boolean;
|
|
17
|
-
get isVerifyable(): boolean;
|
|
18
|
-
get isVoidable(): boolean;
|
|
19
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaymentMethod = void 0;
|
|
4
|
-
var __1 = require("../");
|
|
5
|
-
var PaymentMethod = /** @class */ (function () {
|
|
6
|
-
function PaymentMethod() {
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(PaymentMethod.prototype, "isAuthable", {
|
|
9
|
-
get: function () {
|
|
10
|
-
return this.authorize !== undefined;
|
|
11
|
-
},
|
|
12
|
-
enumerable: false,
|
|
13
|
-
configurable: true
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(PaymentMethod.prototype, "isBalanceable", {
|
|
16
|
-
get: function () {
|
|
17
|
-
return this.balanceInquiry !== undefined;
|
|
18
|
-
},
|
|
19
|
-
enumerable: false,
|
|
20
|
-
configurable: true
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(PaymentMethod.prototype, "isCardData", {
|
|
23
|
-
get: function () {
|
|
24
|
-
return (((this.isTokenizable &&
|
|
25
|
-
this.token !== undefined) ||
|
|
26
|
-
this.number !== undefined) &&
|
|
27
|
-
this.paymentMethodType !== __1.PaymentMethodType.Gift);
|
|
28
|
-
},
|
|
29
|
-
enumerable: false,
|
|
30
|
-
configurable: true
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(PaymentMethod.prototype, "isChargable", {
|
|
33
|
-
get: function () {
|
|
34
|
-
return this.charge !== undefined;
|
|
35
|
-
},
|
|
36
|
-
enumerable: false,
|
|
37
|
-
configurable: true
|
|
38
|
-
});
|
|
39
|
-
Object.defineProperty(PaymentMethod.prototype, "isEditable", {
|
|
40
|
-
get: function () {
|
|
41
|
-
return this.edit !== undefined;
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(PaymentMethod.prototype, "isEncryptable", {
|
|
47
|
-
get: function () {
|
|
48
|
-
return this.encryptionData !== undefined;
|
|
49
|
-
},
|
|
50
|
-
enumerable: false,
|
|
51
|
-
configurable: true
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(PaymentMethod.prototype, "isPinProtected", {
|
|
54
|
-
get: function () {
|
|
55
|
-
return this.pinBlock !== undefined;
|
|
56
|
-
},
|
|
57
|
-
enumerable: false,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(PaymentMethod.prototype, "isPrePayable", {
|
|
61
|
-
get: function () {
|
|
62
|
-
return this.addValue !== undefined;
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
|
-
Object.defineProperty(PaymentMethod.prototype, "isRefundable", {
|
|
68
|
-
get: function () {
|
|
69
|
-
return this.refund !== undefined;
|
|
70
|
-
},
|
|
71
|
-
enumerable: false,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(PaymentMethod.prototype, "isReversable", {
|
|
75
|
-
get: function () {
|
|
76
|
-
return this.reverse !== undefined;
|
|
77
|
-
},
|
|
78
|
-
enumerable: false,
|
|
79
|
-
configurable: true
|
|
80
|
-
});
|
|
81
|
-
Object.defineProperty(PaymentMethod.prototype, "isTokenizable", {
|
|
82
|
-
get: function () {
|
|
83
|
-
return this.tokenize !== undefined;
|
|
84
|
-
},
|
|
85
|
-
enumerable: false,
|
|
86
|
-
configurable: true
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(PaymentMethod.prototype, "isTrackData", {
|
|
89
|
-
get: function () {
|
|
90
|
-
return (this.value !== undefined &&
|
|
91
|
-
(this.entryMethod !== undefined ||
|
|
92
|
-
this.pinBlock !== undefined ||
|
|
93
|
-
this.encryptionData !== undefined));
|
|
94
|
-
},
|
|
95
|
-
enumerable: false,
|
|
96
|
-
configurable: true
|
|
97
|
-
});
|
|
98
|
-
Object.defineProperty(PaymentMethod.prototype, "isVerifyable", {
|
|
99
|
-
get: function () {
|
|
100
|
-
return this.verify !== undefined;
|
|
101
|
-
},
|
|
102
|
-
enumerable: false,
|
|
103
|
-
configurable: true
|
|
104
|
-
});
|
|
105
|
-
Object.defineProperty(PaymentMethod.prototype, "isVoidable", {
|
|
106
|
-
get: function () {
|
|
107
|
-
return this.void !== undefined;
|
|
108
|
-
},
|
|
109
|
-
enumerable: false,
|
|
110
|
-
configurable: true
|
|
111
|
-
});
|
|
112
|
-
return PaymentMethod;
|
|
113
|
-
}());
|
|
114
|
-
exports.PaymentMethod = PaymentMethod;
|
|
115
|
-
//# sourceMappingURL=PaymentMethod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethod.js","sourceRoot":"","sources":["../../../src/PaymentMethods/PaymentMethod.ts"],"names":[],"mappings":";;;AAAA,yBAiBa;AAEb;IAAA;IAqEA,CAAC;IAjEC,sBAAI,qCAAU;aAAd;YACE,OAAS,IAA6B,CAAC,SAAS,KAAK,SAAS,CAAC;QACjE,CAAC;;;OAAA;IAED,sBAAI,wCAAa;aAAjB;YACE,OAAS,IAAgC,CAAC,cAAc,KAAK,SAAS,CAAC;QACzE,CAAC;;;OAAA;IAED,sBAAI,qCAAU;aAAd;YACE,OAAO,CACL,CAAC,CAAC,IAAI,CAAC,aAAa;gBAChB,IAAgC,CAAC,KAAK,KAAK,SAAS,CAAC;gBACrD,IAA6B,CAAC,MAAM,KAAK,SAAS,CAAC;gBACvD,IAAI,CAAC,iBAAiB,KAAK,qBAAiB,CAAC,IAAI,CAClD,CAAC;QACJ,CAAC;;;OAAA;IAED,sBAAI,sCAAW;aAAf;YACE,OAAS,IAA8B,CAAC,MAAM,KAAK,SAAS,CAAC;QAC/D,CAAC;;;OAAA;IAED,sBAAI,qCAAU;aAAd;YAC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} from "../Entities";
|
|
3
|
-
export declare class RecurringPaymentMethod extends RecurringEntity<RecurringPaymentMethod> {
|
|
4
|
-
address: Address;
|
|
5
|
-
commercialIndicator: string;
|
|
6
|
-
customerKey: string;
|
|
7
|
-
expirationDate: string;
|
|
8
|
-
nameOnAccount: string;
|
|
9
|
-
paymentMethodType: PaymentMethodType;
|
|
10
|
-
paymentType: string;
|
|
11
|
-
preferredPayment: boolean;
|
|
12
|
-
status: string;
|
|
13
|
-
taxType: string;
|
|
14
|
-
private _paymentMethod;
|
|
15
|
-
get paymentMethod(): IPaymentMethod;
|
|
16
|
-
set paymentMethod(value: IPaymentMethod);
|
|
17
|
-
constructor(customerIdOrPaymentMethod?: string | IPaymentMethod, paymentId?: string);
|
|
18
|
-
authorize(amount?: number | string): AuthorizationBuilder;
|
|
19
|
-
charge(amount?: number | string): AuthorizationBuilder;
|
|
20
|
-
refund(amount?: number | string): AuthorizationBuilder;
|
|
21
|
-
verify(): AuthorizationBuilder;
|
|
22
|
-
addSchedule(scheduleId: string): Schedule;
|
|
23
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.RecurringPaymentMethod = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var Entities_1 = require("../Entities");
|
|
21
|
-
var RecurringPaymentMethod = /** @class */ (function (_super) {
|
|
22
|
-
__extends(RecurringPaymentMethod, _super);
|
|
23
|
-
function RecurringPaymentMethod(customerIdOrPaymentMethod, paymentId) {
|
|
24
|
-
var _this = _super.call(this) || this;
|
|
25
|
-
_this.paymentMethodType = __1.PaymentMethodType.Recurring;
|
|
26
|
-
if (customerIdOrPaymentMethod &&
|
|
27
|
-
(typeof customerIdOrPaymentMethod === "string" ||
|
|
28
|
-
customerIdOrPaymentMethod instanceof String)) {
|
|
29
|
-
_this.paymentType = "Credit Card";
|
|
30
|
-
_this.customerKey = customerIdOrPaymentMethod;
|
|
31
|
-
if (paymentId) {
|
|
32
|
-
_this.key = paymentId;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else if (customerIdOrPaymentMethod) {
|
|
36
|
-
_this._paymentMethod = customerIdOrPaymentMethod;
|
|
37
|
-
}
|
|
38
|
-
return _this;
|
|
39
|
-
}
|
|
40
|
-
Object.defineProperty(RecurringPaymentMethod.prototype, "paymentMethod", {
|
|
41
|
-
get: function () {
|
|
42
|
-
return this._paymentMethod;
|
|
43
|
-
},
|
|
44
|
-
set: function (value) {
|
|
45
|
-
var client = __1.ServicesContainer.instance().getRecurringClient();
|
|
46
|
-
if (!client.supportsUpdatePaymentDetails) {
|
|
47
|
-
throw new __1.UnsupportedTransactionError();
|
|
48
|
-
}
|
|
49
|
-
this._paymentMethod = value;
|
|
50
|
-
},
|
|
51
|
-
enumerable: false,
|
|
52
|
-
configurable: true
|
|
53
|
-
});
|
|
54
|
-
RecurringPaymentMethod.prototype.authorize = function (amount) {
|
|
55
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Auth, this)
|
|
56
|
-
.withAmount(amount)
|
|
57
|
-
.withOneTimePayment(true);
|
|
58
|
-
};
|
|
59
|
-
RecurringPaymentMethod.prototype.charge = function (amount) {
|
|
60
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Sale, this)
|
|
61
|
-
.withAmount(amount)
|
|
62
|
-
.withOneTimePayment(true);
|
|
63
|
-
};
|
|
64
|
-
RecurringPaymentMethod.prototype.refund = function (amount) {
|
|
65
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Refund, this).withAmount(amount);
|
|
66
|
-
};
|
|
67
|
-
RecurringPaymentMethod.prototype.verify = function () {
|
|
68
|
-
return new __1.AuthorizationBuilder(__1.TransactionType.Verify, this);
|
|
69
|
-
};
|
|
70
|
-
RecurringPaymentMethod.prototype.addSchedule = function (scheduleId) {
|
|
71
|
-
var schedule = new __1.Schedule(this.customerKey, this.key);
|
|
72
|
-
schedule.id = scheduleId;
|
|
73
|
-
return schedule;
|
|
74
|
-
};
|
|
75
|
-
return RecurringPaymentMethod;
|
|
76
|
-
}(Entities_1.RecurringEntity));
|
|
77
|
-
exports.RecurringPaymentMethod = RecurringPaymentMethod;
|
|
78
|
-
//# sourceMappingURL=RecurringPaymentMethod.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecurringPaymentMethod.js","sourceRoot":"","sources":["../../../src/PaymentMethods/RecurringPaymentMethod.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yBASa;AACb,wCAA8C;AAE9C;IAA4C,0CAE3C;IAyBC,gCACE,yBAAmD,EACnD,SAAkB;QAFpB,YAIE,iBAAO,SAeR;QAtCM,uBAAiB,GAAG,qBAAiB,CAAC,SAAS,CAAC;QAyBrD,IACE,yBAAyB;YACvB,CAAC,OAAO,yBAAyB,KAAK,QAAQ;gBAChD,yBAAyB,YAAY,MAAM,CAAC,EAC5C;YACA,KAAI,CAAC,WAAW,GAAG,aAAa,CAAC;YACjC,KAAI,CAAC,WAAW,GAAG,yBAAmC,CAAC;YACvD,IAAI,SAAS,EAAE;gBACb,KAA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,CAAC,EAAE,GAAG,UAAU,CAAC;QACzB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACH,6BAAC;AAAD,CAAC,AA3ED,CAA4C,0BAAe,GA2E1D;AA3EY,wDAAsB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PaymentMethodType } from "../";
|
|
2
|
-
import { IPaymentMethod } from "./Interfaces";
|
|
3
|
-
export declare class TransactionReference implements IPaymentMethod {
|
|
4
|
-
authCode: string;
|
|
5
|
-
orderId: string;
|
|
6
|
-
transactionId: string;
|
|
7
|
-
paymentMethodType: PaymentMethodType;
|
|
8
|
-
clientTransactionId: string;
|
|
9
|
-
constructor(transactionId?: string);
|
|
10
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionReference = void 0;
|
|
4
|
-
var TransactionReference = /** @class */ (function () {
|
|
5
|
-
function TransactionReference(transactionId) {
|
|
6
|
-
if (transactionId) {
|
|
7
|
-
this.transactionId = transactionId;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
return TransactionReference;
|
|
11
|
-
}());
|
|
12
|
-
exports.TransactionReference = TransactionReference;
|
|
13
|
-
//# sourceMappingURL=TransactionReference.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionReference.js","sourceRoot":"","sources":["../../../src/PaymentMethods/TransactionReference.ts"],"names":[],"mappings":";;;AAGA;IAOE,8BAAmB,aAAsB;QACvC,IAAI,aAAa,EAAE;YACjB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;SACpC;IACH,CAAC;IACH,2BAAC;AAAD,CAAC,AAZD,IAYC;AAZY,oDAAoB"}
|