From 65e82979a17b890124b2bbee19562c5f1d630c94 Mon Sep 17 00:00:00 2001 From: WorldlineConnect Date: Tue, 21 Jan 2025 13:49:13 +0100 Subject: [PATCH] Release 4.3.0. --- .../Worldline.Connect.Sdk.Examples.csproj | 4 +-- ...ldline.Connect.Sdk.IntegrationTests.csproj | 4 +-- .../Worldline.Connect.Sdk.StrongName.csproj | 4 +-- .../Worldline.Connect.Sdk.Tests.csproj | 4 +-- .../Communication/MetadataProvider.cs | 2 +- .../Domain/CardPaymentMethodSpecificInput.cs | 2 +- .../CashPaymentProduct1503SpecificInput.cs | 2 +- .../V1/Domain/CreateMandateWithReturnUrl.cs | 3 ++ .../V1/Domain/CybersourceDecisionManager.cs | 31 +++++++++++++++++++ .../V1/Domain/FraudResults.cs | 5 +++ .../V1/Domain/HostedCheckoutSpecificInput.cs | 2 +- .../HostedMandateManagementSpecificInput.cs | 2 +- .../V1/Domain/MicrosoftFraudResults.cs | 7 +++++ .../RedirectPaymentMethodSpecificInput.cs | 2 +- .../V1/Domain/RedirectionData.cs | 2 +- .../Worldline.Connect.Sdk.csproj | 4 +-- 16 files changed, 63 insertions(+), 17 deletions(-) create mode 100644 Worldline.Connect.Sdk/V1/Domain/CybersourceDecisionManager.cs diff --git a/Worldline.Connect.Sdk.Examples/Worldline.Connect.Sdk.Examples.csproj b/Worldline.Connect.Sdk.Examples/Worldline.Connect.Sdk.Examples.csproj index 8886c8a..f6f5501 100644 --- a/Worldline.Connect.Sdk.Examples/Worldline.Connect.Sdk.Examples.csproj +++ b/Worldline.Connect.Sdk.Examples/Worldline.Connect.Sdk.Examples.csproj @@ -3,8 +3,8 @@ net45;netstandard2.0;netstandard2.1 Worldline.Connect.Sdk - 4.2.0 - 4.2.0 + 4.3.0 + 4.3.0 false Worldline Global Collect Worldline Connect .NET SDK examples diff --git a/Worldline.Connect.Sdk.IntegrationTests/Worldline.Connect.Sdk.IntegrationTests.csproj b/Worldline.Connect.Sdk.IntegrationTests/Worldline.Connect.Sdk.IntegrationTests.csproj index 5cd0f57..7aeaf9f 100644 --- a/Worldline.Connect.Sdk.IntegrationTests/Worldline.Connect.Sdk.IntegrationTests.csproj +++ b/Worldline.Connect.Sdk.IntegrationTests/Worldline.Connect.Sdk.IntegrationTests.csproj @@ -3,8 +3,8 @@ net45;netcoreapp2.1;netcoreapp3.1 Worldline.Connect.Sdk - 4.2.0 - 4.2.0 + 4.3.0 + 4.3.0 false Worldline Global Collect Worldline Connect .NET SDK integration tests diff --git a/Worldline.Connect.Sdk.StrongName/Worldline.Connect.Sdk.StrongName.csproj b/Worldline.Connect.Sdk.StrongName/Worldline.Connect.Sdk.StrongName.csproj index 844a2cc..42a4052 100644 --- a/Worldline.Connect.Sdk.StrongName/Worldline.Connect.Sdk.StrongName.csproj +++ b/Worldline.Connect.Sdk.StrongName/Worldline.Connect.Sdk.StrongName.csproj @@ -3,8 +3,8 @@ net45;netstandard2.0;netstandard2.1 Worldline.Connect.Sdk - 4.2.0 - 4.2.0 + 4.3.0 + 4.3.0 true Worldline Global Collect Worldline Connect .NET SDK diff --git a/Worldline.Connect.Sdk.Tests/Worldline.Connect.Sdk.Tests.csproj b/Worldline.Connect.Sdk.Tests/Worldline.Connect.Sdk.Tests.csproj index d5b7bad..e687615 100644 --- a/Worldline.Connect.Sdk.Tests/Worldline.Connect.Sdk.Tests.csproj +++ b/Worldline.Connect.Sdk.Tests/Worldline.Connect.Sdk.Tests.csproj @@ -3,8 +3,8 @@ net45;netcoreapp2.1;netcoreapp3.1 Worldline.Connect.Sdk - 4.2.0 - 4.2.0 + 4.3.0 + 4.3.0 false Worldline Global Collect Worldline Connect .NET SDK unit tests diff --git a/Worldline.Connect.Sdk/Communication/MetadataProvider.cs b/Worldline.Connect.Sdk/Communication/MetadataProvider.cs index cad08ca..d4e867f 100644 --- a/Worldline.Connect.Sdk/Communication/MetadataProvider.cs +++ b/Worldline.Connect.Sdk/Communication/MetadataProvider.cs @@ -95,7 +95,7 @@ internal class ServerMetaInfo .Append(Environment.Version) .ToString(); - private const string SdkVersion = "4.2.0"; + private const string SdkVersion = "4.3.0"; private const string ServerMetaInfoHeader = "X-GCS-ServerMetaInfo"; diff --git a/Worldline.Connect.Sdk/V1/Domain/CardPaymentMethodSpecificInput.cs b/Worldline.Connect.Sdk/V1/Domain/CardPaymentMethodSpecificInput.cs index dcae649..2590f1a 100644 --- a/Worldline.Connect.Sdk/V1/Domain/CardPaymentMethodSpecificInput.cs +++ b/Worldline.Connect.Sdk/V1/Domain/CardPaymentMethodSpecificInput.cs @@ -45,7 +45,7 @@ public class CardPaymentMethodSpecificInput : AbstractCardPaymentMethodSpecificI /// /// The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. - ///
Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of /// protocol://. This protocol must be registered on the device first. ///
URLs without a protocol will be rejected. ///
diff --git a/Worldline.Connect.Sdk/V1/Domain/CashPaymentProduct1503SpecificInput.cs b/Worldline.Connect.Sdk/V1/Domain/CashPaymentProduct1503SpecificInput.cs index 0d4ee57..b656248 100644 --- a/Worldline.Connect.Sdk/V1/Domain/CashPaymentProduct1503SpecificInput.cs +++ b/Worldline.Connect.Sdk/V1/Domain/CashPaymentProduct1503SpecificInput.cs @@ -11,7 +11,7 @@ public class CashPaymentProduct1503SpecificInput { /// /// The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. - ///
Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of /// protocol://. This protocol must be registered on the device first. ///
URLs without a protocol will be rejected. ///
diff --git a/Worldline.Connect.Sdk/V1/Domain/CreateMandateWithReturnUrl.cs b/Worldline.Connect.Sdk/V1/Domain/CreateMandateWithReturnUrl.cs index b8c27e9..c29bb53 100644 --- a/Worldline.Connect.Sdk/V1/Domain/CreateMandateWithReturnUrl.cs +++ b/Worldline.Connect.Sdk/V1/Domain/CreateMandateWithReturnUrl.cs @@ -8,6 +8,9 @@ public class CreateMandateWithReturnUrl : CreateMandateBase { /// /// Return URL to use if the mandate signing requires redirection. + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of + /// protocol://. This protocol must be registered on the device first. + ///
URLs without a protocol will be rejected. ///
public string ReturnUrl { get; set; } } diff --git a/Worldline.Connect.Sdk/V1/Domain/CybersourceDecisionManager.cs b/Worldline.Connect.Sdk/V1/Domain/CybersourceDecisionManager.cs new file mode 100644 index 0000000..c861920 --- /dev/null +++ b/Worldline.Connect.Sdk/V1/Domain/CybersourceDecisionManager.cs @@ -0,0 +1,31 @@ +/* + * This class was auto-generated from the API references found at + * https://apireference.connect.worldline-solutions.com/ + */ +using System.Collections.Generic; + +namespace Worldline.Connect.Sdk.V1.Domain +{ + public class CybersourceDecisionManager + { + /// + /// Name of the clause within the applied policy that was triggered during the evaluation of this transaction. + /// + public string ClauseName { get; set; } + + /// + /// Result of the Cybersource Decision Manager check. This contains the normalized fraud score from a scale of 0 to 100. A higher score indicates an increased risk of fraud. + /// + public int? FraudScore { get; set; } + + /// + /// Name of the policy that was applied during the evaluation of this transaction. + /// + public string PolicyApplied { get; set; } + + /// + /// List of one or more reason codes. + /// + public IList ReasonCodes { get; set; } + } +} diff --git a/Worldline.Connect.Sdk/V1/Domain/FraudResults.cs b/Worldline.Connect.Sdk/V1/Domain/FraudResults.cs index cbcf64d..8801d99 100644 --- a/Worldline.Connect.Sdk/V1/Domain/FraudResults.cs +++ b/Worldline.Connect.Sdk/V1/Domain/FraudResults.cs @@ -6,6 +6,11 @@ namespace Worldline.Connect.Sdk.V1.Domain { public class FraudResults { + /// + /// This object contains the results of the Cybersource Decision Manager assessment. Cybersource is a fraud detection tool leveraging data networks, configurable rules, intelligence, and device fingerprinting to identify risky transactions. + /// + public CybersourceDecisionManager CybersourceDecisionManager { get; set; } + /// /// Results from the fraud prevention check. Possible values are: /// diff --git a/Worldline.Connect.Sdk/V1/Domain/HostedCheckoutSpecificInput.cs b/Worldline.Connect.Sdk/V1/Domain/HostedCheckoutSpecificInput.cs index ab4261d..3b3a1ee 100644 --- a/Worldline.Connect.Sdk/V1/Domain/HostedCheckoutSpecificInput.cs +++ b/Worldline.Connect.Sdk/V1/Domain/HostedCheckoutSpecificInput.cs @@ -43,7 +43,7 @@ public class HostedCheckoutSpecificInput /// /// The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. - ///
Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of /// protocol://. This protocol must be registered on the device first. ///
URLs without a protocol will be rejected. ///
diff --git a/Worldline.Connect.Sdk/V1/Domain/HostedMandateManagementSpecificInput.cs b/Worldline.Connect.Sdk/V1/Domain/HostedMandateManagementSpecificInput.cs index 418ed7e..57b640d 100644 --- a/Worldline.Connect.Sdk/V1/Domain/HostedMandateManagementSpecificInput.cs +++ b/Worldline.Connect.Sdk/V1/Domain/HostedMandateManagementSpecificInput.cs @@ -13,7 +13,7 @@ public class HostedMandateManagementSpecificInput /// /// The URL that the customer is redirect to after the mandate flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. - ///
Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of /// protocol://. This protocol must be registered on the device first. ///
URLs without a protocol will be rejected. ///
diff --git a/Worldline.Connect.Sdk/V1/Domain/MicrosoftFraudResults.cs b/Worldline.Connect.Sdk/V1/Domain/MicrosoftFraudResults.cs index 3277b4e..a0ff1db 100644 --- a/Worldline.Connect.Sdk/V1/Domain/MicrosoftFraudResults.cs +++ b/Worldline.Connect.Sdk/V1/Domain/MicrosoftFraudResults.cs @@ -2,6 +2,8 @@ * This class was auto-generated from the API references found at * https://apireference.connect.worldline-solutions.com/ */ +using System.Collections.Generic; + namespace Worldline.Connect.Sdk.V1.Domain { public class MicrosoftFraudResults @@ -31,6 +33,11 @@ public class MicrosoftFraudResults ///
public string PolicyApplied { get; set; } + /// + /// List of one or more reason codes. + /// + public IList ReasonCodes { get; set; } + /// /// The true IP address as determined by Microsoft Device Fingerprinting. /// diff --git a/Worldline.Connect.Sdk/V1/Domain/RedirectPaymentMethodSpecificInput.cs b/Worldline.Connect.Sdk/V1/Domain/RedirectPaymentMethodSpecificInput.cs index 7efbec6..f00c973 100644 --- a/Worldline.Connect.Sdk/V1/Domain/RedirectPaymentMethodSpecificInput.cs +++ b/Worldline.Connect.Sdk/V1/Domain/RedirectPaymentMethodSpecificInput.cs @@ -58,7 +58,7 @@ public class RedirectPaymentMethodSpecificInput : AbstractRedirectPaymentMethodS /// /// The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. - ///
Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of /// protocol://. This protocol must be registered on the device first. ///
URLs without a protocol will be rejected. ///
diff --git a/Worldline.Connect.Sdk/V1/Domain/RedirectionData.cs b/Worldline.Connect.Sdk/V1/Domain/RedirectionData.cs index a4cc047..5448dab 100644 --- a/Worldline.Connect.Sdk/V1/Domain/RedirectionData.cs +++ b/Worldline.Connect.Sdk/V1/Domain/RedirectionData.cs @@ -8,7 +8,7 @@ public class RedirectionData { /// /// The URL that the customer is redirect to after the payment flow has finished. You can add any number of key value pairs in the query string that, for instance help you to identify the customer when they return to your site. Please note that we will also append some additional key value pairs that will also help you with this identification process. - ///
Note: The provided URL should be absolute and contain the protocol to use, e.g. http:// or https://. For use on mobile devices a custom protocol can be used in the form of + ///
Note: The provided URL should be absolute and contain the https:// protocol. IP addresses are not supported, neither localhost. For use on mobile devices a custom protocol can be used in the form of /// protocol://. This protocol must be registered on the device first. ///
URLs without a protocol will be rejected. ///
diff --git a/Worldline.Connect.Sdk/Worldline.Connect.Sdk.csproj b/Worldline.Connect.Sdk/Worldline.Connect.Sdk.csproj index 86dc816..c82023e 100644 --- a/Worldline.Connect.Sdk/Worldline.Connect.Sdk.csproj +++ b/Worldline.Connect.Sdk/Worldline.Connect.Sdk.csproj @@ -3,8 +3,8 @@ net45;netstandard2.0;netstandard2.1 Worldline.Connect.Sdk - 4.2.0 - 4.2.0 + 4.3.0 + 4.3.0 true Worldline Global Collect Worldline Connect .NET SDK