Releases: Worldline-Global-Collect/connect-sdk-python3
Releases · Worldline-Global-Collect/connect-sdk-python3
4.2.0
- Added:
- Added property
date_of_incorporation
to classCompanyInformation
. - Added property
payment_code
to classOrderTypeInformation
.
- Added property
- Removed:
- Removed property
payment_product816_specific_input
of classRedirectPaymentMethodSpecificInput
, as this property is no longer supported by the REST API.
- Removed property
4.1.0
- Added:
- Added property
network_token_used
to classCardPaymentMethodSpecificOutput
. - Added property
naics_commodity_code
to classOrderLineDetails
. - Added property
shipped_from_zip
to classShipping
.
- Added property
4.0.1
- Fixed:
- Only 409 responses with an error with code
1409
will now trigger anIdempotenceException
, instead of all 409 responses.
- Only 409 responses with an error with code
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 type hints to all methods and properties.
- Added optional
MetadataProvider
,Connection
,Authenticator
andMarshaller
parameters to methodscreate_communicator_from_configuration
,create_communicator_from_file
,create_client_from_configuration
andcreate_client_from_file
of classFactory
. - Added an optional
marshaller
parameter to methodcreate_helper
of classV1WebhooksFactory
(previously classWebhooks
).
- Changed:
- Changed the minimum Python version from Python 3.5 to Python 3.7.
- Renamed all packages, and moved classes between packages. Each API version now has its own package structure that contains all classes specific for that version, including classes like
APIError
, exceptions and webhooks classes. - Made the integrator required.
- Moved method
merchant
from classClient
to new classV1Client
. Instances of this class are available through methodv1
of classClient
. - Moved method
create_helper
from classWebhooks
to new classV1WebhooksFactory
. Instances of this class are available through methodv1
of classWebhooks
. - Replaced properties
api_key_id
andsecret_api_key
of classCommunicatorConfiguration
with more generic propertiesauthorization_id
andauthorization_secret
. The existing properties and constructor parameter names remain as aliases though. - Replaced parameters
api_key_id
andsecret_api_key
of methods of classFactory
with more generic parametersauthorization_id
andauthorization_secret
. - Renamed class
GlobalCollectException
toPlatformException
. - Renamed method
create_simple_authentication_signature
of classAuthenticator
toget_authorization
. - Renamed class
DefaultAuthenticator
toV1HMACAuthenticator
. - Renamed class
MetaDataProvider
and itsmeta_data_headers
property toMetadataProvider
andmetadata_headers
respectively. - Renamed method
INSTANCE
of classesDefaultMarshaller
,SysOutCommunicatorLogger
andInMemorySecretKeyStore
toinstance
. - Class
Connection
now extends classObfuscationCapable
. - Integrated class
Session
into classCommunicator
. - Abstract classes and methods are now marked as such. It is an error to not implement abstract methods.
- Made methods
_get_header_date_string
and_update_context
of classCommunicator
static. - Made method
to_canonicalize_header_value
of classV1HMACAuthenticator
static. - Made method
empty_if_none
of classLogMessage
static. - Changed the arguments of the
ApiResource
,SecretKeyNotAvailableException
andSignatureValidationException
constructors to named arguments, to make it clear what each argument means.ApiResource
's communicator/parent parameter, which was combined before, has also been split into separate parameters.
- Removed:
- Removed method
API_VERSION
of classClient
. - Removed method
_create_exception
of classApiResource
in favor of separatecreate_exception
functions per API version. - Removed class
Session
. - Removed methods
create_session_from_configuration
,create_session_from_file
,create_communicator_from_session
andcreate_client_from_session
of classFactory
. - Removed parameter
authorization_type
from theV1HMACAuthenticator
constructor, as its value should always bev1HMAC
. - Removed method
_validate
of classWebhooksHelper
. - Removed class
EndpointConfiguration
. Its properties have been merged into its only sub classCommunicatorConfiguration
. - Removed previously deprecated class
LoggingUtil
. - Removed previously deprecated method
are_equal_signatures
of classWebhooksHelper
. - Removed class
WebhooksHelperBuilder
and methodWebhooks.create_helper_builder
.
- Removed method