Repository navigation
4.0.0
·
21 commits
to master
since this release
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 optional
MetadataProvider,Connection,AuthenticatorandMarshallerparameters to methodscreate_communicator_from_configuration,create_communicator_from_file,create_client_from_configurationandcreate_client_from_fileof classFactory. - Added an optional
marshallerparameter to methodcreate_helperof classV1WebhooksFactory(previously classWebhooks).
- Added optional
- Changed:
- 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
merchantfrom classClientto new classV1Client. Instances of this class are available through methodv1of classClient. - Moved method
create_helperfrom classWebhooksto new classV1WebhooksFactory. Instances of this class are available through methodv1of classWebhooks. - Replaced properties
api_key_idandsecret_api_keyof classCommunicatorConfigurationwith more generic propertiesauthorization_idandauthorization_secret. The existing properties and constructor parameter names remain as aliases though. - Replaced parameters
api_key_idandsecret_api_keyof methods of classFactorywith more generic parametersauthorization_idandauthorization_secret. - Renamed class
GlobalCollectExceptiontoPlatformException. - Renamed method
create_simple_authentication_signatureof classAuthenticatortoget_authorization. - Renamed class
DefaultAuthenticatortoV1HMACAuthenticator. - Renamed class
MetaDataProviderand itsmeta_data_headersproperty toMetadataProviderandmetadata_headersrespectively. - Renamed method
INSTANCEof classesDefaultMarshaller,SysOutCommunicatorLoggerandInMemorySecretKeyStoretoinstance. - Class
Connectionnow extends classObfuscationCapable. - Integrated class
Sessioninto classCommunicator. - Abstract classes and methods are now marked as such. It is an error to not implement abstract methods.
- Made methods
_get_header_date_stringand_update_contextof classCommunicatorstatic. - Made method
to_canonicalize_header_valueof classV1HMACAuthenticatorstatic. - Made method
empty_if_noneof classLogMessagestatic. - Changed the arguments of the
ApiResource,SecretKeyNotAvailableExceptionandSignatureValidationExceptionconstructors 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. - Classes that didn't before now also extend
object, turning them into new-style classes.
- 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
- Removed:
- Removed method
API_VERSIONof classClient. - Removed method
_create_exceptionof classApiResourcein favor of separatecreate_exceptionfunctions per API version. - Removed class
Session. - Removed methods
create_session_from_configuration,create_session_from_file,create_communicator_from_sessionandcreate_client_from_sessionof classFactory. - Removed parameter
authorization_typefrom theV1HMACAuthenticatorconstructor, as its value should always bev1HMAC. - Removed method
_validateof 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_signaturesof classWebhooksHelper. - Removed class
WebhooksHelperBuilderand methodWebhooks.create_helper_builder.
- Removed method