globalpayments-api 3.5.3 → 3.6.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 +113 -107
- package/lib/src/Builders/BaseBuilder/ValidationClause.d.ts +1 -0
- package/lib/src/Builders/BaseBuilder/ValidationClause.js +25 -1
- package/lib/src/Builders/BaseBuilder/ValidationClause.js.map +1 -1
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.d.ts +20 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js +413 -0
- package/lib/src/Builders/RequestBuilder/GpApi/GpApiSecureRequestBuilder.js.map +1 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.d.ts +2 -2
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js +2 -0
- package/lib/src/Builders/RequestBuilder/RequestBuilderFactory.js.map +1 -1
- package/lib/src/Builders/Secure3dBuilder.d.ts +90 -0
- package/lib/src/Builders/Secure3dBuilder.js +423 -0
- package/lib/src/Builders/Secure3dBuilder.js.map +1 -0
- package/lib/src/Builders/SecureBuilder.d.ts +446 -0
- package/lib/src/Builders/SecureBuilder.js +729 -0
- package/lib/src/Builders/SecureBuilder.js.map +1 -0
- package/lib/src/Builders/index.d.ts +2 -0
- package/lib/src/Builders/index.js +2 -0
- package/lib/src/Builders/index.js.map +1 -1
- package/lib/src/ConfiguredServices.d.ts +5 -1
- package/lib/src/ConfiguredServices.js +20 -0
- package/lib/src/ConfiguredServices.js.map +1 -1
- package/lib/src/Entities/BrowserData.d.ts +13 -0
- package/lib/src/Entities/BrowserData.js +18 -0
- package/lib/src/Entities/BrowserData.js.map +1 -0
- package/lib/src/Entities/Enums/IsoCountries.d.ts +9 -0
- package/lib/src/Entities/Enums/IsoCountries.js +1941 -0
- package/lib/src/Entities/Enums/IsoCountries.js.map +1 -0
- package/lib/src/Entities/Enums.d.ts +149 -0
- package/lib/src/Entities/Enums.js +173 -2
- package/lib/src/Entities/Enums.js.map +1 -1
- package/lib/src/Entities/IRequestBuilder.d.ts +3 -3
- package/lib/src/Entities/MerchantDataCollection.d.ts +16 -0
- package/lib/src/Entities/MerchantDataCollection.js +102 -0
- package/lib/src/Entities/MerchantDataCollection.js.map +1 -0
- package/lib/src/Entities/MerchantKVP.d.ts +11 -0
- package/lib/src/Entities/MerchantKVP.js +28 -0
- package/lib/src/Entities/MerchantKVP.js.map +1 -0
- package/lib/src/Entities/MessageExtension.d.ts +6 -0
- package/lib/src/Entities/MessageExtension.js +11 -0
- package/lib/src/Entities/MessageExtension.js.map +1 -0
- package/lib/src/Entities/MobileData.d.ts +11 -0
- package/lib/src/Entities/MobileData.js +15 -0
- package/lib/src/Entities/MobileData.js.map +1 -0
- package/lib/src/Entities/ThreeDSecure.d.ts +66 -0
- package/lib/src/Entities/ThreeDSecure.js +162 -0
- package/lib/src/Entities/ThreeDSecure.js.map +1 -0
- package/lib/src/Entities/Transaction.d.ts +2 -1
- package/lib/src/Entities/Transaction.js +1 -0
- package/lib/src/Entities/Transaction.js.map +1 -1
- package/lib/src/Entities/index.d.ts +7 -0
- package/lib/src/Entities/index.js +7 -0
- package/lib/src/Entities/index.js.map +1 -1
- package/lib/src/Gateways/GpApiConnector.d.ts +2 -1
- package/lib/src/Gateways/GpApiConnector.js +7 -0
- package/lib/src/Gateways/GpApiConnector.js.map +1 -1
- package/lib/src/Gateways/PayPlanConnector.d.ts +1 -1
- package/lib/src/Gateways/PorticoConnector.d.ts +5 -5
- package/lib/src/Mapping/EnumMapping.d.ts +3 -1
- package/lib/src/Mapping/EnumMapping.js +26 -0
- package/lib/src/Mapping/EnumMapping.js.map +1 -1
- package/lib/src/Mapping/GpApiMapping.d.ts +1 -0
- package/lib/src/Mapping/GpApiMapping.js +96 -0
- package/lib/src/Mapping/GpApiMapping.js.map +1 -1
- package/lib/src/Mapping/GpEcomMapping.d.ts +1 -1
- package/lib/src/PaymentMethods/Credit.d.ts +2 -2
- package/lib/src/PaymentMethods/Credit.js.map +1 -1
- package/lib/src/PaymentMethods/Interfaces.d.ts +4 -0
- package/lib/src/PaymentMethods/PaymentMethod.d.ts +2 -0
- package/lib/src/PaymentMethods/PaymentMethod.js +6 -0
- package/lib/src/PaymentMethods/PaymentMethod.js.map +1 -1
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js +2 -0
- package/lib/src/ServiceConfigs/Gateways/GpApiConfig.js.map +1 -1
- package/lib/src/Services/Secure3dService.d.ts +8 -0
- package/lib/src/Services/Secure3dService.js +21 -0
- package/lib/src/Services/Secure3dService.js.map +1 -0
- package/lib/src/Services/index.d.ts +1 -0
- package/lib/src/Services/index.js +1 -0
- package/lib/src/Services/index.js.map +1 -1
- package/lib/src/ServicesContainer.d.ts +2 -1
- package/lib/src/ServicesContainer.js +15 -0
- package/lib/src/ServicesContainer.js.map +1 -1
- package/lib/src/Utils/CountryUtils.d.ts +9 -0
- package/lib/src/Utils/CountryUtils.js +131 -0
- package/lib/src/Utils/CountryUtils.js.map +1 -0
- package/lib/src/Utils/StringUtils.d.ts +2 -0
- package/lib/src/Utils/StringUtils.js +15 -0
- package/lib/src/Utils/StringUtils.js.map +1 -1
- package/lib/src/Utils/index.d.ts +1 -0
- package/lib/src/Utils/index.js +1 -0
- package/lib/src/Utils/index.js.map +1 -1
- package/lib/test/Data/BaseGpApiTestConfig.d.ts +14 -0
- package/lib/test/Data/BaseGpApiTestConfig.js +50 -0
- package/lib/test/Data/BaseGpApiTestConfig.js.map +1 -0
- package/lib/test/Data/GpApi3DSTestCards.d.ts +17 -0
- package/lib/test/Data/GpApi3DSTestCards.js +22 -0
- package/lib/test/Data/GpApi3DSTestCards.js.map +1 -0
- package/lib/test/Data/TestCards.d.ts +24 -0
- package/lib/test/Data/TestCards.js +220 -0
- package/lib/test/Data/TestCards.js.map +1 -0
- package/lib/test/Data/TestChecks.d.ts +4 -0
- package/lib/test/Data/TestChecks.js +27 -0
- package/lib/test/Data/TestChecks.js.map +1 -0
- package/lib/test/Data/index.d.ts +4 -0
- package/lib/test/Data/index.js +21 -0
- package/lib/test/Data/index.js.map +1 -0
- package/lib/test/Integration/Gateways/AcsResponse.d.ts +12 -0
- package/lib/test/Integration/Gateways/AcsResponse.js +33 -0
- package/lib/test/Integration/Gateways/AcsResponse.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js +1029 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DS2Test.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js +649 -0
- package/lib/test/Integration/Gateways/GpApiConnector/3DSecureTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js +109 -0
- package/lib/test/Integration/Gateways/GpApiConnector/AccessTokenTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js +1023 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardNotPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js +439 -0
- package/lib/test/Integration/Gateways/GpApiConnector/CreditCardPresentTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js +143 -0
- package/lib/test/Integration/Gateways/GpApiConnector/DebitCardTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js +434 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingSettlementTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js +217 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingStoredPaymentMethodsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js +337 -0
- package/lib/test/Integration/Gateways/GpApiConnector/ReportingTransactionsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js +2446 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AuthTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js +506 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/AvsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js +1296 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js +847 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/Certification/HoldTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js +215 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js +99 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/HppTest.js.map +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js +133 -0
- package/lib/test/Integration/Gateways/GpEcomConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js +59 -0
- package/lib/test/Integration/Gateways/PorticoConnector/AchTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js +378 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/CheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js +1723 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js +86 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoCheckTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js +1760 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/MotoTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js +420 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js +2221 -0
- package/lib/test/Integration/Gateways/PorticoConnector/Certifications/RetailTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js +392 -0
- package/lib/test/Integration/Gateways/PorticoConnector/CreditTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js +88 -0
- package/lib/test/Integration/Gateways/PorticoConnector/DebitTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js +72 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EbtTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js +111 -0
- package/lib/test/Integration/Gateways/PorticoConnector/EcommerceTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js +147 -0
- package/lib/test/Integration/Gateways/PorticoConnector/GiftTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js +101 -0
- package/lib/test/Integration/Gateways/PorticoConnector/RecurringTest.js.map +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js +50 -0
- package/lib/test/Integration/Gateways/PorticoConnector/ReportingTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/GetInformationCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js +221 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayAccountCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayFundCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/ProPayInNetworkTransactionCertificationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.d.ts +39 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js +393 -0
- package/lib/test/Integration/Gateways/ProPayConnector/Certifications/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js +44 -0
- package/lib/test/Integration/Gateways/ProPayConnector/GetInformationTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js +330 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayAccountTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js +60 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayFundsTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js +80 -0
- package/lib/test/Integration/Gateways/ProPayConnector/ProPayInNetworkTransactionTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.d.ts +34 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js +322 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestAccountData.js.map +1 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.d.ts +4 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js +28 -0
- package/lib/test/Integration/Gateways/ProPayConnector/TestData/TestFundsData.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.d.ts +4 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js +10 -0
- package/lib/test/Integration/Gateways/Terminals/RequestIdProvider.js.map +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.d.ts +1 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js +149 -0
- package/lib/test/Integration/Gateways/Terminals/UPA/UpaMicTest.js.map +1 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.d.ts +16 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js +212 -0
- package/lib/test/Integration/Gateways/ThreeDSecureAsClient.js.map +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CheckServiceTest.js +45 -0
- package/lib/test/Integration/Services/CheckServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/CreditServiceTest.js +174 -0
- package/lib/test/Integration/Services/CreditServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/DebitServiceTest.js +81 -0
- package/lib/test/Integration/Services/DebitServiceTest.js.map +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.d.ts +1 -0
- package/lib/test/Integration/Services/EBTServiceTest.js +64 -0
- package/lib/test/Integration/Services/EBTServiceTest.js.map +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js +111 -0
- package/lib/test/Unit/Builders/AuthorizationBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.d.ts +1 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js +62 -0
- package/lib/test/Unit/Builders/ReportBuilder/ValidationTest.js.map +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js +34 -0
- package/lib/test/Unit/Gateways/GpEcomConnector/CreditTest.js.map +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.d.ts +1 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js +125 -0
- package/lib/test/Unit/Gateways/PorticoConnector/InputValidationTest.js.map +1 -0
- package/package.json +72 -71
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
import { PaymentMethod } from "src/PaymentMethods";
|
|
2
|
+
import { Address, AddressType, AgeIndicator, AuthenticationSource, CustomerAuthenticationMethod, DeliveryTimeFrame, OrderTransactionType, PhoneNumberType, PreOrderIndicator, PriorAuthenticationMethod, ReorderIndicator, ShippingMethod, TransactionType } from "../../src/Entities";
|
|
3
|
+
import { BaseBuilder } from "./BaseBuilder";
|
|
4
|
+
import { BrowserData } from "src/Entities/BrowserData";
|
|
5
|
+
export declare abstract class SecureBuilder<T> extends BaseBuilder<T> {
|
|
6
|
+
private amount;
|
|
7
|
+
private currency;
|
|
8
|
+
private orderCreateDate;
|
|
9
|
+
private orderTransactionType;
|
|
10
|
+
private orderId;
|
|
11
|
+
private referenceNumber;
|
|
12
|
+
private addressMatchIndicator;
|
|
13
|
+
private shippingAddress;
|
|
14
|
+
private shippingMethod;
|
|
15
|
+
private shippingNameMatchesCardHolderName;
|
|
16
|
+
private shippingAddressCreateDate;
|
|
17
|
+
shippingAddressUsageIndicator: AgeIndicator;
|
|
18
|
+
private giftCardAmount;
|
|
19
|
+
private giftCardCount;
|
|
20
|
+
private giftCardCurrency;
|
|
21
|
+
private deliveryEmail;
|
|
22
|
+
private deliveryTimeframe;
|
|
23
|
+
private preOrderAvailabilityDate;
|
|
24
|
+
private preOrderIndicator;
|
|
25
|
+
private reorderIndicator;
|
|
26
|
+
private customerAccountId;
|
|
27
|
+
private accountAgeIndicator;
|
|
28
|
+
private accountChangeDate;
|
|
29
|
+
private accountCreateDate;
|
|
30
|
+
private accountChangeIndicator;
|
|
31
|
+
private passwordChangeDate;
|
|
32
|
+
private passwordChangeIndicator;
|
|
33
|
+
private phoneList;
|
|
34
|
+
private homeCountryCode;
|
|
35
|
+
private homeNumber;
|
|
36
|
+
private workCountryCode;
|
|
37
|
+
private workNumber;
|
|
38
|
+
private mobileCountryCode;
|
|
39
|
+
private mobileNumber;
|
|
40
|
+
private paymentAccountCreateDate;
|
|
41
|
+
private paymentAgeIndicator;
|
|
42
|
+
private previousSuspiciousActivity;
|
|
43
|
+
private numberOfPurchasesInLastSixMonths;
|
|
44
|
+
private numberOfTransactionsInLast24Hours;
|
|
45
|
+
private numberOfAddCardAttemptsInLast24Hours;
|
|
46
|
+
private numberOfTransactionsInLastYear;
|
|
47
|
+
private browserData;
|
|
48
|
+
private priorAuthenticationData;
|
|
49
|
+
private priorAuthenticationMethod;
|
|
50
|
+
private priorAuthenticationTransactionId;
|
|
51
|
+
private priorAuthenticationTimestamp;
|
|
52
|
+
private maxNumberOfInstallments;
|
|
53
|
+
private recurringAuthorizationExpiryDate;
|
|
54
|
+
private recurringAuthorizationFrequency;
|
|
55
|
+
private customerAuthenticationData;
|
|
56
|
+
private customerAuthenticationMethod;
|
|
57
|
+
private customerAuthenticationTimestamp;
|
|
58
|
+
idempotencyKey: string;
|
|
59
|
+
protected authenticationSource: AuthenticationSource;
|
|
60
|
+
paymentMethod: PaymentMethod | null;
|
|
61
|
+
billingAddress: Address;
|
|
62
|
+
/**************************************GETTERS**************************************/
|
|
63
|
+
/** @returns string|number */
|
|
64
|
+
getAmount(): string | number;
|
|
65
|
+
/** @returns string */
|
|
66
|
+
getCurrency(): string;
|
|
67
|
+
/** @returns AuthenticationSource */
|
|
68
|
+
getAuthenticationSource(): AuthenticationSource;
|
|
69
|
+
/** @returns Date */
|
|
70
|
+
getOrderCreateDate(): string;
|
|
71
|
+
/** @returns string */
|
|
72
|
+
getOrderId(): string;
|
|
73
|
+
/** @returns OrderTransactionType */
|
|
74
|
+
getOrderTransactionType(): OrderTransactionType;
|
|
75
|
+
/** @returns string */
|
|
76
|
+
getReferenceNumber(): string;
|
|
77
|
+
/** @returns boolean */
|
|
78
|
+
isAddressMatchIndicator(): boolean;
|
|
79
|
+
/** @returns Address */
|
|
80
|
+
getShippingAddress(): Address;
|
|
81
|
+
/** @returns ShippingMethod */
|
|
82
|
+
getShippingMethod(): ShippingMethod;
|
|
83
|
+
/** @returns boolean */
|
|
84
|
+
getShippingNameMatchesCardHolderName(): boolean;
|
|
85
|
+
/** @returns Date */
|
|
86
|
+
getShippingAddressCreateDate(): Date;
|
|
87
|
+
/** @returns AgeIndicator */
|
|
88
|
+
getShippingAddressUsageIndicator(): AgeIndicator;
|
|
89
|
+
/** @returns number */
|
|
90
|
+
getGiftCardCount(): number;
|
|
91
|
+
/** @returns string */
|
|
92
|
+
getGiftCardCurrency(): string;
|
|
93
|
+
/** @returns number */
|
|
94
|
+
getGiftCardAmount(): number;
|
|
95
|
+
/** @returns string */
|
|
96
|
+
getDeliveryEmail(): string;
|
|
97
|
+
/** @returns DeliveryTimeFrame */
|
|
98
|
+
getDeliveryTimeframe(): DeliveryTimeFrame;
|
|
99
|
+
/** @returns Date */
|
|
100
|
+
getPreOrderAvailabilityDate(): Date;
|
|
101
|
+
/** @returns PreOrderIndicator */
|
|
102
|
+
getPreOrderIndicator(): PreOrderIndicator;
|
|
103
|
+
/** @returns ReorderIndicator */
|
|
104
|
+
getReorderIndicator(): ReorderIndicator;
|
|
105
|
+
/** @returns string */
|
|
106
|
+
getCustomerAccountId(): string;
|
|
107
|
+
/** @returns AgeIndicator */
|
|
108
|
+
getAccountAgeIndicator(): AgeIndicator;
|
|
109
|
+
/** @returns Date */
|
|
110
|
+
getAccountChangeDate(): Date;
|
|
111
|
+
/** @returns Date */
|
|
112
|
+
getAccountCreateDate(): Date;
|
|
113
|
+
/** @returns AgeIndicator */
|
|
114
|
+
getAccountChangeIndicator(): AgeIndicator;
|
|
115
|
+
/** @returns Date */
|
|
116
|
+
getPasswordChangeDate(): Date;
|
|
117
|
+
/** @returns AgeIndicator */
|
|
118
|
+
getPasswordChangeIndicator(): AgeIndicator;
|
|
119
|
+
/** @returns string */
|
|
120
|
+
getHomeCountryCode(): string;
|
|
121
|
+
/** @returns string */
|
|
122
|
+
getHomeNumber(): string;
|
|
123
|
+
/** @returns string */
|
|
124
|
+
getWorkCountryCode(): string;
|
|
125
|
+
/** @returns string */
|
|
126
|
+
getWorkNumber(): string;
|
|
127
|
+
/** @returns string */
|
|
128
|
+
getMobileCountryCode(): string;
|
|
129
|
+
/** @returns string */
|
|
130
|
+
getMobileNumber(): string;
|
|
131
|
+
/** @returns Date */
|
|
132
|
+
getPaymentAccountCreateDate(): Date;
|
|
133
|
+
/** @returns AgeIndicator */
|
|
134
|
+
getPaymentAgeIndicator(): AgeIndicator;
|
|
135
|
+
/** @returns boolean */
|
|
136
|
+
getPreviousSuspiciousActivity(): boolean;
|
|
137
|
+
/** @returns number */
|
|
138
|
+
getNumberOfPurchasesInLastSixMonths(): number;
|
|
139
|
+
/** @returns number */
|
|
140
|
+
getNumberOfTransactionsInLast24Hours(): number;
|
|
141
|
+
/** @returns number */
|
|
142
|
+
getNumberOfAddCardAttemptsInLast24Hours(): number;
|
|
143
|
+
/** @returns number */
|
|
144
|
+
getNumberOfTransactionsInLastYear(): number;
|
|
145
|
+
/** @returns BrowserData */
|
|
146
|
+
getBrowserData(): BrowserData;
|
|
147
|
+
/** @returns string */
|
|
148
|
+
getPriorAuthenticationData(): string;
|
|
149
|
+
/** @returns PriorAuthenticationMethod */
|
|
150
|
+
getPriorAuthenticationMethod(): PriorAuthenticationMethod;
|
|
151
|
+
/** @returns string */
|
|
152
|
+
getPriorAuthenticationTransactionId(): string;
|
|
153
|
+
/** @returns Date */
|
|
154
|
+
getPriorAuthenticationTimestamp(): Date;
|
|
155
|
+
/** @returns number */
|
|
156
|
+
getMaxNumberOfInstallments(): number;
|
|
157
|
+
/** @returns Date */
|
|
158
|
+
getRecurringAuthorizationExpiryDate(): Date;
|
|
159
|
+
/** @returns number */
|
|
160
|
+
getRecurringAuthorizationFrequency(): number;
|
|
161
|
+
/** @returns string */
|
|
162
|
+
getCustomerAuthenticationData(): string;
|
|
163
|
+
/** @returns CustomerAuthenticationMethod */
|
|
164
|
+
getCustomerAuthenticationMethod(): CustomerAuthenticationMethod;
|
|
165
|
+
/** @returns Date */
|
|
166
|
+
getCustomerAuthenticationTimestamp(): Date;
|
|
167
|
+
/************************************************SETTERS****************************/
|
|
168
|
+
/**
|
|
169
|
+
* @param {IPaymentMethod} value
|
|
170
|
+
* @returns {this}
|
|
171
|
+
*/
|
|
172
|
+
abstract withPaymentMethod(value: PaymentMethod): this;
|
|
173
|
+
/**
|
|
174
|
+
* @param {TransactionType} transactionType
|
|
175
|
+
* @returns {this}
|
|
176
|
+
*/
|
|
177
|
+
withTransactionType(transactionType: TransactionType): this;
|
|
178
|
+
/**
|
|
179
|
+
* @param {string | number} value
|
|
180
|
+
* @returns {this}
|
|
181
|
+
*/
|
|
182
|
+
withAmount(value: string | number): this;
|
|
183
|
+
/**
|
|
184
|
+
* @param {string} value
|
|
185
|
+
* @returns {this}
|
|
186
|
+
*/
|
|
187
|
+
withCurrency(value: string): this;
|
|
188
|
+
/**
|
|
189
|
+
* @param {AuthenticationSource} value
|
|
190
|
+
* @returns {this}
|
|
191
|
+
*/
|
|
192
|
+
withAuthenticationSource(value: AuthenticationSource): this;
|
|
193
|
+
/**
|
|
194
|
+
* @param {string} value
|
|
195
|
+
* @returns {this}
|
|
196
|
+
*/
|
|
197
|
+
withOrderCreateDate(value: string): this;
|
|
198
|
+
/**
|
|
199
|
+
* @param {string} referenceNumber
|
|
200
|
+
* @returns {this}
|
|
201
|
+
*/
|
|
202
|
+
withReferenceNumber(referenceNumber: string): this;
|
|
203
|
+
/**
|
|
204
|
+
* @param {boolean} value
|
|
205
|
+
* @returns {this}
|
|
206
|
+
*/
|
|
207
|
+
withAddressMatchIndicator(value: boolean): this;
|
|
208
|
+
/**
|
|
209
|
+
* @param {Address} address
|
|
210
|
+
* @param {string} type
|
|
211
|
+
* @returns {this}
|
|
212
|
+
*/
|
|
213
|
+
withAddress(address: Address, type?: AddressType): this;
|
|
214
|
+
/**
|
|
215
|
+
* @param {number} giftCardAmount
|
|
216
|
+
* @returns {this}
|
|
217
|
+
*/
|
|
218
|
+
withGiftCardAmount(giftCardAmount: number): this;
|
|
219
|
+
/**
|
|
220
|
+
* @param {number} giftCardCount
|
|
221
|
+
* @returns {this}
|
|
222
|
+
*/
|
|
223
|
+
withGiftCardCount(giftCardCount: number): this;
|
|
224
|
+
/**
|
|
225
|
+
* @param {string} giftCardCurrency
|
|
226
|
+
* @returns {this}
|
|
227
|
+
*/
|
|
228
|
+
withGiftCardCurrency(giftCardCurrency: string): this;
|
|
229
|
+
/**
|
|
230
|
+
* @param {string} deliveryEmail
|
|
231
|
+
* @returns {this}
|
|
232
|
+
*/
|
|
233
|
+
withDeliveryEmail(deliveryEmail: string): this;
|
|
234
|
+
/**
|
|
235
|
+
* @param {DeliveryTimeFrame} deliveryTimeframe
|
|
236
|
+
* @returns {this}
|
|
237
|
+
*/
|
|
238
|
+
withDeliveryTimeFrame(deliveryTimeframe: DeliveryTimeFrame): this;
|
|
239
|
+
/**
|
|
240
|
+
* @param {ShippingMethod} shippingMethod
|
|
241
|
+
* @returns {this}
|
|
242
|
+
*/
|
|
243
|
+
withShippingMethod(shippingMethod: ShippingMethod): this;
|
|
244
|
+
/**
|
|
245
|
+
* @param {boolean} shippingNameMatchesCardHolderName
|
|
246
|
+
* @returns {this}
|
|
247
|
+
*/
|
|
248
|
+
withShippingNameMatchesCardHolderName(shippingNameMatchesCardHolderName: boolean): this;
|
|
249
|
+
/**
|
|
250
|
+
* @param {Date} shippingAddressCreateDate
|
|
251
|
+
* @returns {this}
|
|
252
|
+
*/
|
|
253
|
+
withShippingAddressCreateDate(shippingAddressCreateDate: Date): this;
|
|
254
|
+
/**
|
|
255
|
+
* @param {any} shippingAddressUsageIndicator
|
|
256
|
+
* @returns {this}
|
|
257
|
+
*/
|
|
258
|
+
withShippingAddressUsageIndicator(shippingAddressUsageIndicator: any): this;
|
|
259
|
+
/**
|
|
260
|
+
* @param {any} preOrderAvailabilityDate
|
|
261
|
+
* @returns {this}
|
|
262
|
+
*/
|
|
263
|
+
withPreOrderAvailabilityDate(preOrderAvailabilityDate: any): this;
|
|
264
|
+
/**
|
|
265
|
+
* @param {any} preOrderIndicator
|
|
266
|
+
* @returns {this}
|
|
267
|
+
*/
|
|
268
|
+
withPreOrderIndicator(preOrderIndicator: any): this;
|
|
269
|
+
/**
|
|
270
|
+
* @param {ReorderIndicator} reorderIndicator
|
|
271
|
+
* @returns {this}
|
|
272
|
+
*/
|
|
273
|
+
withReorderIndicator(reorderIndicator: ReorderIndicator): this;
|
|
274
|
+
/**
|
|
275
|
+
* @param {OrderTransactionType} orderTransactionType
|
|
276
|
+
* @returns {this}
|
|
277
|
+
*/
|
|
278
|
+
withOrderTransactionType(orderTransactionType: OrderTransactionType): this;
|
|
279
|
+
/**
|
|
280
|
+
* @param {string} value
|
|
281
|
+
* @returns {this}
|
|
282
|
+
*/
|
|
283
|
+
withOrderId(value: string): this;
|
|
284
|
+
/**
|
|
285
|
+
* @param {string} customerAccountId
|
|
286
|
+
* @returns {this}
|
|
287
|
+
*/
|
|
288
|
+
withCustomerAccountId(customerAccountId: string): this;
|
|
289
|
+
/**
|
|
290
|
+
* @param {AgeIndicator} ageIndicator
|
|
291
|
+
* @returns {this}
|
|
292
|
+
*/
|
|
293
|
+
withAccountAgeIndicator(ageIndicator: AgeIndicator): this;
|
|
294
|
+
/**
|
|
295
|
+
* @param {Date} accountChangeDate
|
|
296
|
+
* @returns {this}
|
|
297
|
+
*/
|
|
298
|
+
withAccountChangeDate(accountChangeDate: Date): this;
|
|
299
|
+
/**
|
|
300
|
+
* @param {Date} accountCreateDate
|
|
301
|
+
* @returns {this}
|
|
302
|
+
*/
|
|
303
|
+
withAccountCreateDate(accountCreateDate: Date): this;
|
|
304
|
+
/**
|
|
305
|
+
* @param {AgeIndicator} accountChangeIndicator
|
|
306
|
+
* @returns {this}
|
|
307
|
+
*/
|
|
308
|
+
withAccountChangeIndicator(accountChangeIndicator: AgeIndicator): this;
|
|
309
|
+
/**
|
|
310
|
+
* @param {Date} passwordChangeDate
|
|
311
|
+
* @returns {this}
|
|
312
|
+
*/
|
|
313
|
+
withPasswordChangeDate(passwordChangeDate: Date): this;
|
|
314
|
+
/**
|
|
315
|
+
* @param {AgeIndicator} passwordChangeIndicator
|
|
316
|
+
* @returns {this}
|
|
317
|
+
*/
|
|
318
|
+
withPasswordChangeIndicator(passwordChangeIndicator: AgeIndicator): this;
|
|
319
|
+
/**
|
|
320
|
+
* @param {string} phoneCountryCode
|
|
321
|
+
* @param {string} number
|
|
322
|
+
* @param {PhoneNumberType} type
|
|
323
|
+
*
|
|
324
|
+
* @returns {this}
|
|
325
|
+
*/
|
|
326
|
+
withPhoneNumber(phoneCountryCode: string, number: string, type: PhoneNumberType): this;
|
|
327
|
+
/**
|
|
328
|
+
* @deprecated Will be replaced with method withPhoneNumber($phoneCountryCode, $number, $type)
|
|
329
|
+
* @param {string} countryCode
|
|
330
|
+
* @param {string} number
|
|
331
|
+
*
|
|
332
|
+
* @returns {this}
|
|
333
|
+
*/
|
|
334
|
+
withHomeNumber(countryCode: string, number: string): this;
|
|
335
|
+
/**
|
|
336
|
+
* @deprecated Will be replaced with method withPhoneNumber($phoneCountryCode, $number, $type)
|
|
337
|
+
*
|
|
338
|
+
* @param {string} countryCode
|
|
339
|
+
* @param {string} number
|
|
340
|
+
* @returns {this}
|
|
341
|
+
*/
|
|
342
|
+
withWorkNumber(countryCode: string, number: string): this;
|
|
343
|
+
/**
|
|
344
|
+
* @deprecated Will be replaced with method withPhoneNumber($phoneCountryCode, $number, $type)
|
|
345
|
+
*
|
|
346
|
+
* @param {string} countryCode
|
|
347
|
+
* @param {string} number
|
|
348
|
+
* @returns {this}
|
|
349
|
+
*/
|
|
350
|
+
withMobileNumber(countryCode: string, number: string): this;
|
|
351
|
+
/**
|
|
352
|
+
* @param {Date} paymentAccountCreateDate
|
|
353
|
+
* @returns {this}
|
|
354
|
+
*/
|
|
355
|
+
withPaymentAccountCreateDate(paymentAccountCreateDate: Date): this;
|
|
356
|
+
/**
|
|
357
|
+
* @param {AgeIndicator} paymentAgeIndicator
|
|
358
|
+
* @returns {this}
|
|
359
|
+
*/
|
|
360
|
+
withPaymentAccountAgeIndicator(paymentAgeIndicator: AgeIndicator): this;
|
|
361
|
+
/**
|
|
362
|
+
* @param {any} previousSuspiciousActivity
|
|
363
|
+
* @returns {this}
|
|
364
|
+
*/
|
|
365
|
+
withPreviousSuspiciousActivity(previousSuspiciousActivity: any): this;
|
|
366
|
+
/**
|
|
367
|
+
* @param {string} numberOfPurchasesInLastSixMonths
|
|
368
|
+
* @returns {this}
|
|
369
|
+
*/
|
|
370
|
+
withNumberOfPurchasesInLastSixMonths(numberOfPurchasesInLastSixMonths: number): this;
|
|
371
|
+
/**
|
|
372
|
+
* @param {number} numberOfTransactionsInLast24Hours
|
|
373
|
+
* @returns {this}
|
|
374
|
+
*/
|
|
375
|
+
withNumberOfTransactionsInLast24Hours(numberOfTransactionsInLast24Hours: number): this;
|
|
376
|
+
/**
|
|
377
|
+
* @param {number} numberOfAddCardAttemptsInLast24Hours
|
|
378
|
+
* @returns {this}
|
|
379
|
+
*/
|
|
380
|
+
withNumberOfAddCardAttemptsInLast24Hours(numberOfAddCardAttemptsInLast24Hours: number): this;
|
|
381
|
+
/**
|
|
382
|
+
* @param {number} numberOfTransactionsInLastYear
|
|
383
|
+
* @returns {this}
|
|
384
|
+
*/
|
|
385
|
+
withNumberOfTransactionsInLastYear(numberOfTransactionsInLastYear: number): this;
|
|
386
|
+
/**
|
|
387
|
+
* @param {BrowserData} value
|
|
388
|
+
* @returns {this}
|
|
389
|
+
*/
|
|
390
|
+
withBrowserData(value: BrowserData): this;
|
|
391
|
+
/**
|
|
392
|
+
* @param {string} priorAuthenticationData
|
|
393
|
+
* @returns {this}
|
|
394
|
+
*/
|
|
395
|
+
withPriorAuthenticationData(priorAuthenticationData: string): this;
|
|
396
|
+
/**
|
|
397
|
+
* @param {PriorAuthenticationMethod} priorAuthenticationMethod
|
|
398
|
+
* @returns {this}
|
|
399
|
+
*/
|
|
400
|
+
withPriorAuthenticationMethod(priorAuthenticationMethod: PriorAuthenticationMethod): this;
|
|
401
|
+
/**
|
|
402
|
+
* @param {string} priorAuthenticationTransactionId
|
|
403
|
+
* @returns {this}
|
|
404
|
+
*/
|
|
405
|
+
withPriorAuthenticationTransactionId(priorAuthenticationTransactionId: string): this;
|
|
406
|
+
/**
|
|
407
|
+
* @param {Date} priorAuthenticationTimestamp
|
|
408
|
+
* @returns {this}
|
|
409
|
+
*/
|
|
410
|
+
withPriorAuthenticationTimestamp(priorAuthenticationTimestamp: Date): this;
|
|
411
|
+
/**
|
|
412
|
+
* @param {number} maxNumberOfInstallments
|
|
413
|
+
* @returns {this}
|
|
414
|
+
*/
|
|
415
|
+
withMaxNumberOfInstallments(maxNumberOfInstallments: number): this;
|
|
416
|
+
/**
|
|
417
|
+
* @param {Date} recurringAuthorizationExpiryDate
|
|
418
|
+
* @returns {this}
|
|
419
|
+
*/
|
|
420
|
+
withRecurringAuthorizationExpiryDate(recurringAuthorizationExpiryDate: Date): this;
|
|
421
|
+
/**
|
|
422
|
+
* @param {number} recurringAuthorizationFrequency
|
|
423
|
+
* @returns {this}
|
|
424
|
+
*/
|
|
425
|
+
withRecurringAuthorizationFrequency(recurringAuthorizationFrequency: number): this;
|
|
426
|
+
/**
|
|
427
|
+
* @param {string} customerAuthenticationData
|
|
428
|
+
* @returns {this}
|
|
429
|
+
*/
|
|
430
|
+
withCustomerAuthenticationData(customerAuthenticationData: string): this;
|
|
431
|
+
/**
|
|
432
|
+
* @param {CustomerAuthenticationMethod} customerAuthenticationMethod
|
|
433
|
+
* @returns {this}
|
|
434
|
+
*/
|
|
435
|
+
withCustomerAuthenticationMethod(customerAuthenticationMethod: CustomerAuthenticationMethod): this;
|
|
436
|
+
/**
|
|
437
|
+
* @param {Date} customerAuthenticationTimestamp
|
|
438
|
+
* @returns {this}
|
|
439
|
+
*/
|
|
440
|
+
withCustomerAuthenticationTimestamp(customerAuthenticationTimestamp: Date): this;
|
|
441
|
+
/**
|
|
442
|
+
* @param {string} value
|
|
443
|
+
* @returns {SecureBuilder}
|
|
444
|
+
*/
|
|
445
|
+
withIdempotencyKey(value: string): this;
|
|
446
|
+
}
|