Releases: Worldline-Global-Collect/connect-sdk-dotnet
Releases · Worldline-Global-Collect/connect-sdk-dotnet
4.2.0
- Added:
- Added property
DateOfIncorporation
to classCompanyInformation
. - Added property
PaymentCode
to classOrderTypeInformation
.
- Added property
- Removed:
- Removed property
PaymentProduct816SpecificInput
of classRedirectPaymentMethodSpecificInput
, as this property is no longer supported by the REST API.
- Removed property
4.1.0
- Added:
- Added property
NetworkTokenUsed
to classCardPaymentMethodSpecificOutput
. - Added property
NaicsCommodityCode
to classOrderLineDetails
. - Added property
ShippedFromZip
to classShipping
.
- Added property
4.0.2
- Fixed:
- When a
DefaultConnection
was created with a customHttpClient
provider function, the providedHttpClient
instances were not disposed automatically. Now each providedHttpClient
instance will be disposed at the end of each request.
An extra constructor was added that also takes a mandatoryAction<HttpClient>
that is called at the end of each request. This can be used to take control over the automatic disposal of providedHttpClient
instances. For instance, it can be disabled completely by providing anAction<HttpClient>
that does nothing.
- When a
4.0.1
- Fixed:
- Changed the default message for classes
AuthorizationException
andReferenceException
, as the previous ones were the same as for classValidationException
.
- Changed the default message for classes
4.0.0
This SDK is a rebranded and updated version of the SDK that was previously published under the Ingenico name. Next to renaming to Worldline, the SDK has been restructured to better support future improvements like multiple API versions and different authentication mechanisms. You can use the migration guide to upgrade from the previous version. Previous versions and release notes of this SDK can be found here.
The following is an overview of changes:
- Added:
- Added
CreateCommunicator
andCreateClient
methods to classFactory
that take all arguments required to create aCommunicator
except for theIMarshaller
. - Added a constructor to class
DefaultConnection
that takes aFunc<HttpClient>
and an optionalAction
. TheFunc<HttpClient>
allows you to provide your ownHttpClient
instances, e.g. using an IHttpClientFactory. TheAction
will be called when theDefaultConnection
instance is disposed.
- Added
- Changed:
- Changed the project names
Worldline.Connect.Sdk
andWorldline.Connect.Sdk.StrongName
. - Renamed all namespaces, and moved classes and interfaces between namespaces. Each API version now has its own namespace structure that contains all classes specific for that version, including classes like
APIError
, exceptions and webhooks classes. - Made the integrator required.
- Replaced method
Merchant
of classClient
with methodWithNewMerchant
of new classV1Client
. Instances of this class are available through read-only propertyV1
of classClient
. - Replaced methods of class
MerchantClient
with read-only properties. - Moved methods
CreateHelper
andCreateHelperBuilder
from classWebhooks
to new classV1WebhooksFactory
. Instances of this class are available through read-only propertyV1
of classWebhooks
. - Replaced properties
ApiKeyId
andSecretApiKey
of classCommunicatorConfiguration
with more generic propertiesAuthorizationId
andAuthorizationSecret
. The existing properties remain as aliases though. - Renamed class
GlobalCollectException
toPlatformException
. - Renamed method
CreateSimpleAuthenticationSignature
of interfaceIAuthenticator
toGetAuthorization
. Changed its return type fromstring
toTask<string>
to support asynchronous authentication. - Renamed class
DefaultAuthenticator
toV1HMACAuthenticator
. - Renamed class
MetaDataProvider
, itsServerMetaDataHeaders
property and classMetaDataProviderBuilder
toMetadataProvider
,ServerMetadataHeaders
andMetadataProviderBuilder
respectively. - Decoupled class
CommunicatorConfiguration
from configuration sectionCommunicatorConfigurationSection
. This allows multipleCommunicatorConfiguration
instances to be created with different values. Creating instances based onCommunicatorConfigurationSection
throughFactory.CreateConfiguration
is still possible. - Interface
IConnection
now extends interfaceIObfuscationCapable
. - Integrated class
Session
into classCommunicator
. - Replaced class
SessionBuilder
with classCommunicatorBuilder
, and theCreateSessionBuilder
methods of classFactory
withCreateCommunicatorBuilder
methods. - Made methods
GetHeaderDateString
,ThrowExceptionIfNecessary
andGetIdempotenceTimestamp
of classCommunicator
static. - Property
ClientHeaders
of classApiResource
now returns an empty list if no client meta info is configured.
- Changed the project names
- Removed:
- Removed constant
ApiVersion
of classClient
. - Removed method
createException
of classApiResource
in favor of separateExceptionFactory
classes per API version. - Removed class
Session
. - Removed
CreateCommunicator
andCreateClient
methods of classFactory
that had a parameter of typeSession
. - Removed property
SignatureString
of classAuthorizationType
in favor of an override ofToString
. - Removed parameter
authorizationType
from theV1HMACAuthenticator
constructor, as its value should always beV1HMAC
. - Removed the protected
Validate
methods of classWebhooksHelper
. - Removed previously deprecated class
LoggingUtil
. - Removed previously deprecated constructors of classes
LogMessageBuilder
,RequestLogMessageBuilder
andResponseLogMessageBuilder
.
- Removed constant