globalpayments-api 1.4.9 → 2.0.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 -3
- package/package.json +3 -4
- package/lib/src/Builders/AuthorizationBuilder.d.ts +0 -325
- package/lib/src/Builders/AuthorizationBuilder.js +0 -599
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +0 -14
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +0 -61
- package/lib/src/Builders/BaseBuilder/ValidationTarget.d.ts +0 -16
- package/lib/src/Builders/BaseBuilder/ValidationTarget.js +0 -28
- package/lib/src/Builders/BaseBuilder/Validations.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder/Validations.js +0 -56
- package/lib/src/Builders/BaseBuilder.d.ts +0 -11
- package/lib/src/Builders/BaseBuilder.js +0 -16
- package/lib/src/Builders/ManagementBuilder.d.ts +0 -103
- package/lib/src/Builders/ManagementBuilder.js +0 -227
- package/lib/src/Builders/PayFacBuilder.d.ts +0 -96
- package/lib/src/Builders/PayFacBuilder.js +0 -184
- package/lib/src/Builders/RecurringBuilder.d.ts +0 -13
- package/lib/src/Builders/RecurringBuilder.js +0 -47
- package/lib/src/Builders/ReportBuilder.d.ts +0 -8
- package/lib/src/Builders/ReportBuilder.js +0 -36
- package/lib/src/Builders/TransactionBuilder.d.ts +0 -10
- package/lib/src/Builders/TransactionBuilder.js +0 -46
- package/lib/src/Builders/TransactionReportBuilder.d.ts +0 -15
- package/lib/src/Builders/TransactionReportBuilder.js +0 -79
- package/lib/src/Builders/index.d.ts +0 -7
- package/lib/src/Builders/index.js +0 -19
- package/lib/src/Entities/Address.d.ts +0 -13
- package/lib/src/Entities/Address.js +0 -19
- package/lib/src/Entities/BatchSummary.d.ts +0 -6
- package/lib/src/Entities/BatchSummary.js +0 -9
- package/lib/src/Entities/Customer.d.ts +0 -64
- package/lib/src/Entities/Customer.js +0 -47
- package/lib/src/Entities/DocumentUploadData.d.ts +0 -13
- package/lib/src/Entities/DocumentUploadData.js +0 -48
- package/lib/src/Entities/EcommerceInfo.d.ts +0 -12
- package/lib/src/Entities/EcommerceInfo.js +0 -14
- package/lib/src/Entities/EncryptionData.d.ts +0 -6
- package/lib/src/Entities/EncryptionData.js +0 -9
- package/lib/src/Entities/Enums.d.ts +0 -273
- package/lib/src/Entities/Enums.js +0 -385
- package/lib/src/Entities/Errors.d.ts +0 -23
- package/lib/src/Entities/Errors.js +0 -106
- package/lib/src/Entities/HostedPaymentData.d.ts +0 -10
- package/lib/src/Entities/HostedPaymentData.js +0 -10
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.d.ts +0 -7
- package/lib/src/Entities/ProFac/AccountBalanceResponseData.js +0 -9
- package/lib/src/Entities/ProFac/AccountPermissions.d.ts +0 -15
- package/lib/src/Entities/ProFac/AccountPermissions.js +0 -9
- package/lib/src/Entities/ProFac/BankAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/BankAccountData.js +0 -9
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.d.ts +0 -8
- package/lib/src/Entities/ProFac/BankAccountOwnershipData.js +0 -11
- package/lib/src/Entities/ProFac/BeneficialOwnerData.d.ts +0 -6
- package/lib/src/Entities/ProFac/BeneficialOwnerData.js +0 -10
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.d.ts +0 -5
- package/lib/src/Entities/ProFac/BeneficialOwnerDataResult.js +0 -9
- package/lib/src/Entities/ProFac/BusinessData.d.ts +0 -14
- package/lib/src/Entities/ProFac/BusinessData.js +0 -11
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.d.ts +0 -4
- package/lib/src/Entities/ProFac/DeviceAttributeInfo.js +0 -9
- package/lib/src/Entities/ProFac/DeviceData.d.ts +0 -5
- package/lib/src/Entities/ProFac/DeviceData.js +0 -10
- package/lib/src/Entities/ProFac/DeviceInfo.d.ts +0 -6
- package/lib/src/Entities/ProFac/DeviceInfo.js +0 -9
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.d.ts +0 -7
- package/lib/src/Entities/ProFac/FlashFundsPaymentCardData.js +0 -13
- package/lib/src/Entities/ProFac/GrossBillingInformation.d.ts +0 -8
- package/lib/src/Entities/ProFac/GrossBillingInformation.js +0 -9
- package/lib/src/Entities/ProFac/OrderDevice.d.ts +0 -18
- package/lib/src/Entities/ProFac/OrderDevice.js +0 -9
- package/lib/src/Entities/ProFac/OwnersData.d.ts +0 -12
- package/lib/src/Entities/ProFac/OwnersData.js +0 -11
- package/lib/src/Entities/ProFac/PayFacResponseData.d.ts +0 -55
- package/lib/src/Entities/ProFac/PayFacResponseData.js +0 -9
- package/lib/src/Entities/ProFac/RenewAccountData.d.ts +0 -10
- package/lib/src/Entities/ProFac/RenewAccountData.js +0 -11
- package/lib/src/Entities/ProFac/SignificantOwnerData.d.ts +0 -8
- package/lib/src/Entities/ProFac/SignificantOwnerData.js +0 -11
- package/lib/src/Entities/ProFac/ThreatRiskData.d.ts +0 -5
- package/lib/src/Entities/ProFac/ThreatRiskData.js +0 -9
- package/lib/src/Entities/ProFac/UserPersonalData.d.ts +0 -26
- package/lib/src/Entities/ProFac/UserPersonalData.js +0 -14
- package/lib/src/Entities/RecurringEntity.d.ts +0 -14
- package/lib/src/Entities/RecurringEntity.js +0 -86
- package/lib/src/Entities/SSORequestData.d.ts +0 -5
- package/lib/src/Entities/SSORequestData.js +0 -9
- package/lib/src/Entities/Schedule.d.ts +0 -47
- package/lib/src/Entities/Schedule.js +0 -253
- package/lib/src/Entities/Transaction.d.ts +0 -78
- package/lib/src/Entities/Transaction.js +0 -108
- package/lib/src/Entities/TransactionSummary.d.ts +0 -61
- package/lib/src/Entities/TransactionSummary.js +0 -9
- package/lib/src/Entities/index.d.ts +0 -12
- package/lib/src/Entities/index.js +0 -24
- package/lib/src/Gateways/Gateway.d.ts +0 -10
- package/lib/src/Gateways/Gateway.js +0 -42
- package/lib/src/Gateways/IPayFacProvider.d.ts +0 -5
- package/lib/src/Gateways/IPayFacProvider.js +0 -2
- package/lib/src/Gateways/IPaymentGateway.d.ts +0 -8
- package/lib/src/Gateways/IPaymentGateway.js +0 -2
- package/lib/src/Gateways/IRecurringService.d.ts +0 -6
- package/lib/src/Gateways/IRecurringService.js +0 -2
- package/lib/src/Gateways/PayPlanConnector.d.ts +0 -43
- package/lib/src/Gateways/PayPlanConnector.js +0 -564
- package/lib/src/Gateways/PorticoConnector.d.ts +0 -44
- package/lib/src/Gateways/PorticoConnector.js +0 -1017
- package/lib/src/Gateways/ProPayConnector.d.ts +0 -41
- package/lib/src/Gateways/ProPayConnector.js +0 -698
- package/lib/src/Gateways/RealexConnector.d.ts +0 -30
- package/lib/src/Gateways/RealexConnector.js +0 -523
- package/lib/src/Gateways/RestGateway.d.ts +0 -6
- package/lib/src/Gateways/RestGateway.js +0 -31
- package/lib/src/Gateways/XmlGateway.d.ts +0 -6
- package/lib/src/Gateways/XmlGateway.js +0 -39
- package/lib/src/Gateways/https-wrapper.d.ts +0 -3
- package/lib/src/Gateways/https-wrapper.js +0 -35
- package/lib/src/Gateways/index.d.ts +0 -7
- package/lib/src/Gateways/index.js +0 -19
- package/lib/src/HostedPaymentConfig.d.ts +0 -12
- package/lib/src/HostedPaymentConfig.js +0 -9
- package/lib/src/PaymentMethods/Cash.d.ts +0 -8
- package/lib/src/PaymentMethods/Cash.js +0 -36
- package/lib/src/PaymentMethods/Credit.d.ts +0 -85
- package/lib/src/PaymentMethods/Credit.js +0 -106
- package/lib/src/PaymentMethods/CreditCardData.d.ts +0 -20
- package/lib/src/PaymentMethods/CreditCardData.js +0 -57
- package/lib/src/PaymentMethods/CreditTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/CreditTrackData.js +0 -27
- package/lib/src/PaymentMethods/Debit.d.ts +0 -40
- package/lib/src/PaymentMethods/Debit.js +0 -70
- package/lib/src/PaymentMethods/DebitTrackData.d.ts +0 -7
- package/lib/src/PaymentMethods/DebitTrackData.js +0 -27
- package/lib/src/PaymentMethods/EBT.d.ts +0 -48
- package/lib/src/PaymentMethods/EBT.js +0 -88
- package/lib/src/PaymentMethods/EBTCardData.d.ts +0 -16
- package/lib/src/PaymentMethods/EBTCardData.js +0 -32
- package/lib/src/PaymentMethods/EBTTrackData.d.ts +0 -8
- package/lib/src/PaymentMethods/EBTTrackData.js +0 -27
- package/lib/src/PaymentMethods/ECheck.d.ts +0 -32
- package/lib/src/PaymentMethods/ECheck.js +0 -40
- package/lib/src/PaymentMethods/GiftCard.d.ts +0 -131
- package/lib/src/PaymentMethods/GiftCard.js +0 -205
- package/lib/src/PaymentMethods/Interfaces.d.ts +0 -55
- package/lib/src/PaymentMethods/Interfaces.js +0 -2
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +0 -19
- package/lib/src/PaymentMethods/PaymentMethod.js +0 -114
- package/lib/src/PaymentMethods/RecurringPaymentMethod.d.ts +0 -23
- package/lib/src/PaymentMethods/RecurringPaymentMethod.js +0 -77
- package/lib/src/PaymentMethods/TransactionReference.d.ts +0 -10
- package/lib/src/PaymentMethods/TransactionReference.js +0 -12
- package/lib/src/PaymentMethods/index.d.ts +0 -15
- package/lib/src/PaymentMethods/index.js +0 -27
- package/lib/src/Services/BatchService.d.ts +0 -4
- package/lib/src/Services/BatchService.js +0 -17
- package/lib/src/Services/CheckService.d.ts +0 -6
- package/lib/src/Services/CheckService.js +0 -20
- package/lib/src/Services/CreditService.d.ts +0 -12
- package/lib/src/Services/CreditService.js +0 -54
- package/lib/src/Services/DebitService.d.ts +0 -7
- package/lib/src/Services/DebitService.js +0 -28
- package/lib/src/Services/EBTService.d.ts +0 -8
- package/lib/src/Services/EBTService.js +0 -32
- package/lib/src/Services/GiftService.d.ts +0 -16
- package/lib/src/Services/GiftService.js +0 -54
- package/lib/src/Services/HostedService.d.ts +0 -9
- package/lib/src/Services/HostedService.js +0 -59
- package/lib/src/Services/PayFacService.d.ts +0 -26
- package/lib/src/Services/PayFacService.js +0 -77
- package/lib/src/Services/RecurringService.d.ts +0 -8
- package/lib/src/Services/RecurringService.js +0 -27
- package/lib/src/Services/ReportingService.d.ts +0 -6
- package/lib/src/Services/ReportingService.js +0 -19
- package/lib/src/Services/index.d.ts +0 -9
- package/lib/src/Services/index.js +0 -21
- package/lib/src/ServicesConfig.d.ts +0 -27
- package/lib/src/ServicesConfig.js +0 -50
- package/lib/src/ServicesContainer.d.ts +0 -14
- package/lib/src/ServicesContainer.js +0 -87
- package/lib/src/Utils/GenerationUtils.d.ts +0 -5
- package/lib/src/Utils/GenerationUtils.js +0 -36
- package/lib/src/Utils/InputValidation.d.ts +0 -12
- package/lib/src/Utils/InputValidation.js +0 -72
- package/lib/src/Utils/Sha1.d.ts +0 -6
- package/lib/src/Utils/Sha1.js +0 -225
- package/lib/src/Utils/StringUtils.d.ts +0 -6
- package/lib/src/Utils/StringUtils.js +0 -53
- package/lib/src/Utils/index.d.ts +0 -2
- package/lib/src/Utils/index.js +0 -14
- package/lib/src/index.d.ts +0 -11
- package/lib/src/index.js +0 -27
- package/lib/test/Data/TestCards.d.ts +0 -24
- package/lib/test/Data/TestCards.js +0 -232
- package/lib/test/Data/TestChecks.d.ts +0 -4
- package/lib/test/Data/TestChecks.js +0 -32
- package/lib/test/Data/index.d.ts +0 -2
- package/lib/test/Data/index.js +0 -14
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +0 -112
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +0 -483
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +0 -83
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +0 -1720
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +0 -83
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +0 -1757
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +0 -682
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +0 -2218
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +0 -707
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +0 -151
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +0 -171
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +0 -192
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +0 -377
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +0 -196
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +0 -47
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTests.js +0 -100
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTests.js +0 -352
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTests.js +0 -123
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTests.js +0 -146
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +0 -39
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +0 -371
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTests.js +0 -100
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTests.js +0 -535
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTests.js +0 -124
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.d.ts +0 -1
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTests.js +0 -144
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +0 -33
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +0 -268
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +0 -4
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +0 -30
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AuthTest.js +0 -4373
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/AvsTest.js +0 -758
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/CreditTest.js +0 -2399
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/HoldTest.js +0 -1656
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ManualTest.js +0 -5650
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/OtbTest.js +0 -1985
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/RebateTest.js +0 -2369
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ReleaseTest.js +0 -1703
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/SettleTest.js +0 -2053
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/ValidationTest.js +0 -2469
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VerifyEnrolledTest.js +0 -3116
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/Certification/VoidTest.js +0 -2031
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/CreditTest.js +0 -322
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/HppTest.js +0 -98
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.d.ts +0 -1
- package/lib/test/Integration/Gateways/RealexConnector/RecurringTest.js +0 -263
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CheckServiceTest.js +0 -98
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/CreditServiceTest.js +0 -313
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/DebitServiceTest.js +0 -154
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +0 -1
- package/lib/test/Integration/Services/EBTServiceTest.js +0 -135
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +0 -161
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +0 -1
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +0 -139
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +0 -202
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.d.ts +0 -1
- package/lib/test/Unit/Gateways/RealexConnector/CreditTest.js +0 -29
- package/logger.txt +0 -483
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationTarget = void 0;
|
|
4
|
-
var ValidationClause_1 = require("./ValidationClause");
|
|
5
|
-
var ValidationTarget = /** @class */ (function () {
|
|
6
|
-
function ValidationTarget(parent, enumName, type) {
|
|
7
|
-
this.parent = parent;
|
|
8
|
-
this.type = type;
|
|
9
|
-
this.enumName = enumName;
|
|
10
|
-
}
|
|
11
|
-
ValidationTarget.prototype.with = function (property, constraint) {
|
|
12
|
-
this.constraintProperty = property;
|
|
13
|
-
this.constraint = constraint;
|
|
14
|
-
return this;
|
|
15
|
-
};
|
|
16
|
-
ValidationTarget.prototype.check = function (targetProperty) {
|
|
17
|
-
this.property = targetProperty;
|
|
18
|
-
this.clause = new ValidationClause_1.ValidationClause(this.parent, this);
|
|
19
|
-
return this.clause;
|
|
20
|
-
};
|
|
21
|
-
ValidationTarget.prototype.when = function (targetProperty) {
|
|
22
|
-
this.property = targetProperty;
|
|
23
|
-
this.precondition = new ValidationClause_1.ValidationClause(this.parent, this, true);
|
|
24
|
-
return this.precondition;
|
|
25
|
-
};
|
|
26
|
-
return ValidationTarget;
|
|
27
|
-
}());
|
|
28
|
-
exports.ValidationTarget = ValidationTarget;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseBuilder } from "../../";
|
|
2
|
-
import { ValidationTarget } from "./ValidationTarget";
|
|
3
|
-
export interface IRuleSet {
|
|
4
|
-
[key: string]: ValidationTarget[][];
|
|
5
|
-
}
|
|
6
|
-
export declare class Validations {
|
|
7
|
-
rules: IRuleSet;
|
|
8
|
-
constructor();
|
|
9
|
-
of(enumProperty: string, type: number): ValidationTarget;
|
|
10
|
-
validate<T>(builder: BaseBuilder<T>): void;
|
|
11
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Validations = void 0;
|
|
4
|
-
var __1 = require("../../");
|
|
5
|
-
var ValidationTarget_1 = require("./ValidationTarget");
|
|
6
|
-
var Validations = /** @class */ (function () {
|
|
7
|
-
function Validations() {
|
|
8
|
-
this.rules = {};
|
|
9
|
-
}
|
|
10
|
-
Validations.prototype.of = function (enumProperty, type) {
|
|
11
|
-
if (!this.rules.hasOwnProperty(enumProperty)) {
|
|
12
|
-
this.rules[enumProperty] = [];
|
|
13
|
-
}
|
|
14
|
-
if (!this.rules[enumProperty].hasOwnProperty(type.toString())) {
|
|
15
|
-
this.rules[enumProperty][type] = [];
|
|
16
|
-
}
|
|
17
|
-
var target = new ValidationTarget_1.ValidationTarget(this, enumProperty, type);
|
|
18
|
-
this.rules[enumProperty][type].push(target);
|
|
19
|
-
return target;
|
|
20
|
-
};
|
|
21
|
-
Validations.prototype.validate = function (builder) {
|
|
22
|
-
var _this = this;
|
|
23
|
-
Object.keys(this.rules).forEach(function (enumName) {
|
|
24
|
-
_this.rules[enumName].forEach(function (rules, iKey) {
|
|
25
|
-
var value = builder[enumName];
|
|
26
|
-
if ((value === undefined || value === null) &&
|
|
27
|
-
builder instanceof __1.TransactionBuilder &&
|
|
28
|
-
builder.paymentMethod) {
|
|
29
|
-
value = builder.paymentMethod[enumName];
|
|
30
|
-
if (value === undefined || value === null) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if ((iKey & value) !== value) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
for (var _i = 0, rules_1 = rules; _i < rules_1.length; _i++) {
|
|
38
|
-
var validation = rules_1[_i];
|
|
39
|
-
if (!validation.clause) {
|
|
40
|
-
continue;
|
|
41
|
-
}
|
|
42
|
-
if (validation.constraint !== undefined &&
|
|
43
|
-
validation.constraint !== null &&
|
|
44
|
-
validation.constraint !== builder[validation.constraintProperty]) {
|
|
45
|
-
continue;
|
|
46
|
-
}
|
|
47
|
-
if (!validation.clause.callback(builder)) {
|
|
48
|
-
throw new __1.BuilderError(validation.clause.message);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
return Validations;
|
|
55
|
-
}());
|
|
56
|
-
exports.Validations = Validations;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Validations } from "./BaseBuilder/Validations";
|
|
2
|
-
export interface IDictionary<T> {
|
|
3
|
-
[key: string]: T;
|
|
4
|
-
}
|
|
5
|
-
export declare abstract class BaseBuilder<T> {
|
|
6
|
-
protected validations: Validations;
|
|
7
|
-
[key: string]: any;
|
|
8
|
-
constructor();
|
|
9
|
-
execute(): Promise<T | undefined>;
|
|
10
|
-
protected abstract setupValidations(): void;
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseBuilder = void 0;
|
|
4
|
-
var Validations_1 = require("./BaseBuilder/Validations");
|
|
5
|
-
var BaseBuilder = /** @class */ (function () {
|
|
6
|
-
function BaseBuilder() {
|
|
7
|
-
this.validations = new Validations_1.Validations();
|
|
8
|
-
this.setupValidations();
|
|
9
|
-
}
|
|
10
|
-
BaseBuilder.prototype.execute = function () {
|
|
11
|
-
this.validations.validate(this);
|
|
12
|
-
return Promise.resolve(undefined);
|
|
13
|
-
};
|
|
14
|
-
return BaseBuilder;
|
|
15
|
-
}());
|
|
16
|
-
exports.BaseBuilder = BaseBuilder;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { ReasonCode, TaxType, Transaction } from "../";
|
|
2
|
-
import { TransactionBuilder } from "./TransactionBuilder";
|
|
3
|
-
export declare class ManagementBuilder extends TransactionBuilder<Transaction> {
|
|
4
|
-
amount: string | number;
|
|
5
|
-
authAmount: string | number;
|
|
6
|
-
get authorizationCode(): string | undefined;
|
|
7
|
-
get clientTransactionId(): string | undefined;
|
|
8
|
-
currency: string;
|
|
9
|
-
description: string;
|
|
10
|
-
gratuity: string | number;
|
|
11
|
-
get orderId(): string | undefined;
|
|
12
|
-
poNumber: string;
|
|
13
|
-
reasonCode?: ReasonCode;
|
|
14
|
-
taxAmount: string | number;
|
|
15
|
-
taxType: TaxType;
|
|
16
|
-
get transactionId(): string | undefined;
|
|
17
|
-
constructor(type: number);
|
|
18
|
-
/**
|
|
19
|
-
* Executes the builder against the gateway.
|
|
20
|
-
*
|
|
21
|
-
* @returns Promise<Transaction>
|
|
22
|
-
*/
|
|
23
|
-
execute(): Promise<Transaction>;
|
|
24
|
-
protected setupValidations(): void;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the current transaction's amount.
|
|
27
|
-
*
|
|
28
|
-
* @param amount The amount
|
|
29
|
-
* @returns ManagementBuilder
|
|
30
|
-
*/
|
|
31
|
-
withAmount(amount?: string | number): this;
|
|
32
|
-
/**
|
|
33
|
-
* Sets the current transaction's authorized amount; where applicable.
|
|
34
|
-
*
|
|
35
|
-
* @param amount The authorized amount
|
|
36
|
-
* @returns ManagementBuilder
|
|
37
|
-
*/
|
|
38
|
-
withAuthAmount(amount?: string | number): this;
|
|
39
|
-
/**
|
|
40
|
-
* Sets the currency.
|
|
41
|
-
*
|
|
42
|
-
* The formatting for the supplied value will currently depend on
|
|
43
|
-
* the configured gateway's requirements.
|
|
44
|
-
*
|
|
45
|
-
* @param currency The currency
|
|
46
|
-
* @returns ManagementBuilder
|
|
47
|
-
*/
|
|
48
|
-
withCurrency(currency?: string): this;
|
|
49
|
-
/**
|
|
50
|
-
* Sets the transaction's description.
|
|
51
|
-
*
|
|
52
|
-
* This value is not guaranteed to be sent in the authorization
|
|
53
|
-
* or settlement process.
|
|
54
|
-
*
|
|
55
|
-
* @param description The description
|
|
56
|
-
* @returns ManagementBuilder
|
|
57
|
-
*/
|
|
58
|
-
withDescription(description?: string): this;
|
|
59
|
-
/**
|
|
60
|
-
* Sets the gratuity amount; where applicable.
|
|
61
|
-
*
|
|
62
|
-
* This value is information only and does not affect
|
|
63
|
-
* the authorization amount.
|
|
64
|
-
*
|
|
65
|
-
* @param gratuity The gratuity amount
|
|
66
|
-
* @returns ManagementBuilder
|
|
67
|
-
*/
|
|
68
|
-
withGratuity(gratuity?: string | number): this;
|
|
69
|
-
/**
|
|
70
|
-
* Sets the purchase order number; where applicable.
|
|
71
|
-
*
|
|
72
|
-
* @param poNumber The PO number
|
|
73
|
-
* @returns ManagementBuilder
|
|
74
|
-
*/
|
|
75
|
-
withPoNumber(poNumber?: string): this;
|
|
76
|
-
/**
|
|
77
|
-
* Sets the reason code for the transaction.
|
|
78
|
-
*
|
|
79
|
-
* @param reasonCode The reason code
|
|
80
|
-
* @returns ManagementBuilder
|
|
81
|
-
*/
|
|
82
|
-
withReasonCode(reasonCode?: ReasonCode): this;
|
|
83
|
-
/**
|
|
84
|
-
* Sets the tax amount.
|
|
85
|
-
*
|
|
86
|
-
* Useful for commercial purchase card requests.
|
|
87
|
-
*
|
|
88
|
-
* @see AuthorizationBuilder.WithCommercialRequest
|
|
89
|
-
* @param amount The tax amount
|
|
90
|
-
* @returns ManagementBuilder
|
|
91
|
-
*/
|
|
92
|
-
withTaxAmount(amount?: string | number): this;
|
|
93
|
-
/**
|
|
94
|
-
* Sets the tax type.
|
|
95
|
-
*
|
|
96
|
-
* Useful for commercial purchase card requests.
|
|
97
|
-
*
|
|
98
|
-
* @see AuthorizationBuilder.withCommercialRequest
|
|
99
|
-
* @param type The tax type
|
|
100
|
-
* @returns ManagementBuilder
|
|
101
|
-
*/
|
|
102
|
-
withTaxType(type?: TaxType): this;
|
|
103
|
-
}
|
|
@@ -1,227 +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.ManagementBuilder = void 0;
|
|
19
|
-
var __1 = require("../");
|
|
20
|
-
var TransactionBuilder_1 = require("./TransactionBuilder");
|
|
21
|
-
var ManagementBuilder = /** @class */ (function (_super) {
|
|
22
|
-
__extends(ManagementBuilder, _super);
|
|
23
|
-
function ManagementBuilder(type) {
|
|
24
|
-
return _super.call(this, type) || this;
|
|
25
|
-
}
|
|
26
|
-
Object.defineProperty(ManagementBuilder.prototype, "authorizationCode", {
|
|
27
|
-
get: function () {
|
|
28
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
29
|
-
return this.paymentMethod.authCode;
|
|
30
|
-
}
|
|
31
|
-
return undefined;
|
|
32
|
-
},
|
|
33
|
-
enumerable: false,
|
|
34
|
-
configurable: true
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(ManagementBuilder.prototype, "clientTransactionId", {
|
|
37
|
-
get: function () {
|
|
38
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
39
|
-
return this.paymentMethod.clientTransactionId;
|
|
40
|
-
}
|
|
41
|
-
return undefined;
|
|
42
|
-
},
|
|
43
|
-
enumerable: false,
|
|
44
|
-
configurable: true
|
|
45
|
-
});
|
|
46
|
-
Object.defineProperty(ManagementBuilder.prototype, "orderId", {
|
|
47
|
-
get: function () {
|
|
48
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
49
|
-
return this.paymentMethod.orderId;
|
|
50
|
-
}
|
|
51
|
-
return undefined;
|
|
52
|
-
},
|
|
53
|
-
enumerable: false,
|
|
54
|
-
configurable: true
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(ManagementBuilder.prototype, "transactionId", {
|
|
57
|
-
get: function () {
|
|
58
|
-
if (this.paymentMethod instanceof __1.TransactionReference) {
|
|
59
|
-
return this.paymentMethod.transactionId;
|
|
60
|
-
}
|
|
61
|
-
return undefined;
|
|
62
|
-
},
|
|
63
|
-
enumerable: false,
|
|
64
|
-
configurable: true
|
|
65
|
-
});
|
|
66
|
-
/**
|
|
67
|
-
* Executes the builder against the gateway.
|
|
68
|
-
*
|
|
69
|
-
* @returns Promise<Transaction>
|
|
70
|
-
*/
|
|
71
|
-
ManagementBuilder.prototype.execute = function () {
|
|
72
|
-
_super.prototype.execute.call(this);
|
|
73
|
-
return __1.ServicesContainer.instance()
|
|
74
|
-
.getClient()
|
|
75
|
-
.manageTransaction(this);
|
|
76
|
-
};
|
|
77
|
-
ManagementBuilder.prototype.setupValidations = function () {
|
|
78
|
-
this.validations
|
|
79
|
-
.of("transactionType",
|
|
80
|
-
/* tslint:disable:trailing-comma */
|
|
81
|
-
__1.TransactionType.Capture |
|
|
82
|
-
__1.TransactionType.Edit |
|
|
83
|
-
__1.TransactionType.Hold |
|
|
84
|
-
__1.TransactionType.Release)
|
|
85
|
-
.check("transactionId")
|
|
86
|
-
.isNotNull();
|
|
87
|
-
this.validations
|
|
88
|
-
.of("transactionType", __1.TransactionType.Edit)
|
|
89
|
-
.with("transactionModifier", __1.TransactionModifier.LevelII)
|
|
90
|
-
.check("taxType")
|
|
91
|
-
.isNotNull();
|
|
92
|
-
this.validations
|
|
93
|
-
.of("transactionType", __1.TransactionType.Refund)
|
|
94
|
-
.when("amount")
|
|
95
|
-
.isNotNull()
|
|
96
|
-
.check("currency")
|
|
97
|
-
.isNotNull();
|
|
98
|
-
};
|
|
99
|
-
/**
|
|
100
|
-
* Sets the current transaction's amount.
|
|
101
|
-
*
|
|
102
|
-
* @param amount The amount
|
|
103
|
-
* @returns ManagementBuilder
|
|
104
|
-
*/
|
|
105
|
-
ManagementBuilder.prototype.withAmount = function (amount) {
|
|
106
|
-
if (amount !== undefined) {
|
|
107
|
-
this.amount = amount;
|
|
108
|
-
}
|
|
109
|
-
return this;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Sets the current transaction's authorized amount; where applicable.
|
|
113
|
-
*
|
|
114
|
-
* @param amount The authorized amount
|
|
115
|
-
* @returns ManagementBuilder
|
|
116
|
-
*/
|
|
117
|
-
ManagementBuilder.prototype.withAuthAmount = function (amount) {
|
|
118
|
-
if (amount !== undefined) {
|
|
119
|
-
this.authAmount = amount;
|
|
120
|
-
}
|
|
121
|
-
return this;
|
|
122
|
-
};
|
|
123
|
-
/**
|
|
124
|
-
* Sets the currency.
|
|
125
|
-
*
|
|
126
|
-
* The formatting for the supplied value will currently depend on
|
|
127
|
-
* the configured gateway's requirements.
|
|
128
|
-
*
|
|
129
|
-
* @param currency The currency
|
|
130
|
-
* @returns ManagementBuilder
|
|
131
|
-
*/
|
|
132
|
-
ManagementBuilder.prototype.withCurrency = function (currency) {
|
|
133
|
-
if (currency !== undefined) {
|
|
134
|
-
this.currency = currency;
|
|
135
|
-
}
|
|
136
|
-
return this;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Sets the transaction's description.
|
|
140
|
-
*
|
|
141
|
-
* This value is not guaranteed to be sent in the authorization
|
|
142
|
-
* or settlement process.
|
|
143
|
-
*
|
|
144
|
-
* @param description The description
|
|
145
|
-
* @returns ManagementBuilder
|
|
146
|
-
*/
|
|
147
|
-
ManagementBuilder.prototype.withDescription = function (description) {
|
|
148
|
-
if (description !== undefined) {
|
|
149
|
-
this.description = description;
|
|
150
|
-
}
|
|
151
|
-
return this;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Sets the gratuity amount; where applicable.
|
|
155
|
-
*
|
|
156
|
-
* This value is information only and does not affect
|
|
157
|
-
* the authorization amount.
|
|
158
|
-
*
|
|
159
|
-
* @param gratuity The gratuity amount
|
|
160
|
-
* @returns ManagementBuilder
|
|
161
|
-
*/
|
|
162
|
-
ManagementBuilder.prototype.withGratuity = function (gratuity) {
|
|
163
|
-
if (gratuity !== undefined) {
|
|
164
|
-
this.gratuity = gratuity;
|
|
165
|
-
}
|
|
166
|
-
return this;
|
|
167
|
-
};
|
|
168
|
-
/**
|
|
169
|
-
* Sets the purchase order number; where applicable.
|
|
170
|
-
*
|
|
171
|
-
* @param poNumber The PO number
|
|
172
|
-
* @returns ManagementBuilder
|
|
173
|
-
*/
|
|
174
|
-
ManagementBuilder.prototype.withPoNumber = function (poNumber) {
|
|
175
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
176
|
-
if (poNumber !== undefined) {
|
|
177
|
-
this.poNumber = poNumber;
|
|
178
|
-
}
|
|
179
|
-
return this;
|
|
180
|
-
};
|
|
181
|
-
/**
|
|
182
|
-
* Sets the reason code for the transaction.
|
|
183
|
-
*
|
|
184
|
-
* @param reasonCode The reason code
|
|
185
|
-
* @returns ManagementBuilder
|
|
186
|
-
*/
|
|
187
|
-
ManagementBuilder.prototype.withReasonCode = function (reasonCode) {
|
|
188
|
-
if (reasonCode !== undefined) {
|
|
189
|
-
this.reasonCode = reasonCode;
|
|
190
|
-
}
|
|
191
|
-
return this;
|
|
192
|
-
};
|
|
193
|
-
/**
|
|
194
|
-
* Sets the tax amount.
|
|
195
|
-
*
|
|
196
|
-
* Useful for commercial purchase card requests.
|
|
197
|
-
*
|
|
198
|
-
* @see AuthorizationBuilder.WithCommercialRequest
|
|
199
|
-
* @param amount The tax amount
|
|
200
|
-
* @returns ManagementBuilder
|
|
201
|
-
*/
|
|
202
|
-
ManagementBuilder.prototype.withTaxAmount = function (amount) {
|
|
203
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
204
|
-
if (amount !== undefined) {
|
|
205
|
-
this.taxAmount = amount;
|
|
206
|
-
}
|
|
207
|
-
return this;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Sets the tax type.
|
|
211
|
-
*
|
|
212
|
-
* Useful for commercial purchase card requests.
|
|
213
|
-
*
|
|
214
|
-
* @see AuthorizationBuilder.withCommercialRequest
|
|
215
|
-
* @param type The tax type
|
|
216
|
-
* @returns ManagementBuilder
|
|
217
|
-
*/
|
|
218
|
-
ManagementBuilder.prototype.withTaxType = function (type) {
|
|
219
|
-
this.transactionModifier = __1.TransactionModifier.LevelII;
|
|
220
|
-
if (type !== undefined) {
|
|
221
|
-
this.taxType = type;
|
|
222
|
-
}
|
|
223
|
-
return this;
|
|
224
|
-
};
|
|
225
|
-
return ManagementBuilder;
|
|
226
|
-
}(TransactionBuilder_1.TransactionBuilder));
|
|
227
|
-
exports.ManagementBuilder = ManagementBuilder;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { BaseBuilder } from "./";
|
|
2
|
-
import { CreditCardData } from "../PaymentMethods";
|
|
3
|
-
import { DocumentUploadData } from "../Entities/DocumentUploadData";
|
|
4
|
-
import { AccountPermissions } from "../Entities/ProFac/AccountPermissions";
|
|
5
|
-
import { BankAccountData } from "../Entities/ProFac/BankAccountData";
|
|
6
|
-
import { BankAccountOwnershipData } from "../Entities/ProFac/BankAccountOwnershipData";
|
|
7
|
-
import { BeneficialOwnerData } from "../Entities/ProFac/BeneficialOwnerData";
|
|
8
|
-
import { BusinessData } from "../Entities/ProFac/BusinessData";
|
|
9
|
-
import { DeviceData } from "../Entities/ProFac/DeviceData";
|
|
10
|
-
import { FlashFundsPaymentCardData } from "../Entities/ProFac/FlashFundsPaymentCardData";
|
|
11
|
-
import { GrossBillingInformation } from "../Entities/ProFac/GrossBillingInformation";
|
|
12
|
-
import { RenewAccountData } from "../Entities/ProFac/RenewAccountData";
|
|
13
|
-
import { SignificantOwnerData } from "../Entities/ProFac/SignificantOwnerData";
|
|
14
|
-
import { ThreatRiskData } from "../Entities/ProFac/ThreatRiskData";
|
|
15
|
-
import { UserPersonalData } from "../Entities/ProFac/UserPersonalData";
|
|
16
|
-
import { SSORequestData } from "../Entities/SSORequestData";
|
|
17
|
-
import { Address, Transaction, TransactionModifier, TransactionType } from "../";
|
|
18
|
-
import { OrderDevice } from "../Entities/ProFac/OrderDevice";
|
|
19
|
-
export declare class PayFacBuilder extends BaseBuilder<Transaction> {
|
|
20
|
-
protected setupValidations(): void;
|
|
21
|
-
transactionType: TransactionType;
|
|
22
|
-
transactionModifier: TransactionModifier;
|
|
23
|
-
bankAccountData: BankAccountData;
|
|
24
|
-
beneficialOwnerData: BeneficialOwnerData;
|
|
25
|
-
deviceData: DeviceData;
|
|
26
|
-
timeZone: string;
|
|
27
|
-
businessData: BusinessData;
|
|
28
|
-
significantOwnerData: SignificantOwnerData;
|
|
29
|
-
threatRiskData: ThreatRiskData;
|
|
30
|
-
userPersonalData: UserPersonalData;
|
|
31
|
-
creditCardInformation: CreditCardData;
|
|
32
|
-
aCHInformation: BankAccountData;
|
|
33
|
-
mailingAddressInformation: Address;
|
|
34
|
-
secondaryBankInformation: BankAccountData;
|
|
35
|
-
grossBillingInformation: GrossBillingInformation;
|
|
36
|
-
negativeLimit: string;
|
|
37
|
-
renewalAccountData: RenewAccountData;
|
|
38
|
-
accountNumber: string;
|
|
39
|
-
password: string;
|
|
40
|
-
accountPermissions: AccountPermissions;
|
|
41
|
-
primaryBankAccountOwner: BankAccountOwnershipData;
|
|
42
|
-
secondaryBankAccountOwner: BankAccountOwnershipData;
|
|
43
|
-
documentUploadData: DocumentUploadData;
|
|
44
|
-
sSORequestData: SSORequestData;
|
|
45
|
-
amount: string;
|
|
46
|
-
receivingAccountNumber: string;
|
|
47
|
-
allowPending: boolean;
|
|
48
|
-
cCAmount: string;
|
|
49
|
-
requireCCRefund: boolean;
|
|
50
|
-
transNum: string;
|
|
51
|
-
externalID: string;
|
|
52
|
-
sourceEmail: string;
|
|
53
|
-
gatewayTransactionId: string;
|
|
54
|
-
cardBrandTransactionId: string;
|
|
55
|
-
globaltransId: string;
|
|
56
|
-
globalTransSource: string;
|
|
57
|
-
orderDevice: OrderDevice;
|
|
58
|
-
constructor(type: TransactionType, modifer?: TransactionModifier);
|
|
59
|
-
execute(): Promise<Transaction>;
|
|
60
|
-
withBankAccountData(bankAccountData: BankAccountData): this;
|
|
61
|
-
withBeneficialOwnerData(beneficialOwnerData: BeneficialOwnerData): this;
|
|
62
|
-
withDeviceData(deviceData: DeviceData): this;
|
|
63
|
-
withTimeZone(timezone: string): this;
|
|
64
|
-
withBusinessData(businessData: BusinessData): this;
|
|
65
|
-
withSignificantOwnerData(significantOwnerData: SignificantOwnerData): this;
|
|
66
|
-
withThreatRiskData(threatRiskData: ThreatRiskData): this;
|
|
67
|
-
withUserPersonalData(userPersonalData: UserPersonalData): this;
|
|
68
|
-
withCreditCardData(creditCardInformation: CreditCardData): this;
|
|
69
|
-
withACHData(achInformation: BankAccountData): this;
|
|
70
|
-
withMailingAddress(mailingAddressInformation: Address): this;
|
|
71
|
-
withSecondaryBankAccountData(secondaryBankInformation: BankAccountData): this;
|
|
72
|
-
withGrossBillingSettleData(grossBillingInformation: GrossBillingInformation): this;
|
|
73
|
-
withAccountNumber(accountNumber: string): this;
|
|
74
|
-
withPassword(password: string): this;
|
|
75
|
-
withAccountPermissions(accountPermissions: AccountPermissions): this;
|
|
76
|
-
withPrimaryBankAccountOwner(primaryBankAccountOwner: BankAccountOwnershipData): this;
|
|
77
|
-
withSecondaryBankAccountOwner(secondaryBankAccountOwner: BankAccountOwnershipData): this;
|
|
78
|
-
withDocumentUploadData(docUploadData: DocumentUploadData): this;
|
|
79
|
-
withSSORequestData(ssoRequestData: SSORequestData): this;
|
|
80
|
-
withNegativeLimit(negativeLimit: string): this;
|
|
81
|
-
withRenewalAccountData(renewalAccountData: RenewAccountData): this;
|
|
82
|
-
withAmount(amount: string): this;
|
|
83
|
-
withFlashFundsPaymentCardData(cardData: FlashFundsPaymentCardData): this;
|
|
84
|
-
withReceivingAccountNumber(receivingAccountNumber: string): this;
|
|
85
|
-
withAllowPending(allowPending: boolean): this;
|
|
86
|
-
withCCAmount(ccAmount: string): this;
|
|
87
|
-
withRequireCCRefund(requireCCRefund: boolean): this;
|
|
88
|
-
withTransNum(transNum: string): this;
|
|
89
|
-
withGatewayTransactionId(gatewayTransactionId: string): this;
|
|
90
|
-
withCardBrandTransactionId(cardBrandTransactionId: string): this;
|
|
91
|
-
withGlobaltransId(globaltransId: string): this;
|
|
92
|
-
withGlobalTransSource(globalTransSource: string): this;
|
|
93
|
-
withExternalID(externalId: string): this;
|
|
94
|
-
withSourceEmail(sourceEmail: string): this;
|
|
95
|
-
withOrderDevice(orderDevice: OrderDevice): this;
|
|
96
|
-
}
|