All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Added payment means deletion feature ``.
- Added payment feature reason field inside
Transaction
.
- All Errors now conform to LocalizedError.
- WhitelabelPay init is now non throwable.
- TenantId is now only a 3 character string.
- Function getEnrolmentToken() is now synchronous. Async/await is not required anymore as the token is created locally.
- Function registerUserDevice() has been removed as its no longer needed.
- Function fetchNotifications() has been removed. Please use fetchTransactions instead.
- Introduced a new token Pushed var that can be observed for token changes, it will automatically reflect the transition between onboarding/inactive to active state.
- Added function fetchTransactions for fetching transactions.
- Updated internal endpoints (Fixes the hostname issue).
- Bug fixes and improvements for cache
- Update reset() method to be async
- Added public enum 'SDKState' representing the curent status of the SDK - 'active', 'inactive', 'onboarding'.
- Added 'sync' function to syncronise the SDK with the backend.
- Support for adding a second or multiple cards.
- 'fetchOnboardingToken' function made public.
- Comform to @Sendable protocol
- Fixed reset() func to generate a new subjectId directly.
- Removed .registryOnboardingResponseError error.
- More detailed description for some errors.
- Reimplemented new getToken and getPaymentMeans that skips the need of Network reachability.
- Added additional parameter to
getToken
andgetPaymentMeans
for more flexibility. - Removed static func for configuring
WhitelabelPay
instance. - Added public init.
- Update body for deactivatePaymentMeans.
- Improved get started article.
- Removed outdated comments.
- Updated tests.
- Updated README file to reflect documentation.
- Updated comments and fixed non working links from comments.
- Improved documentation.
- Fixed case where get token network request fails but the SDK has locally stored tokens.
- Removed availability annotation.
- Fixed error in
deactivatePaymentMeans()
when payment means was not deactivating. - Fixed typos and wording in comments.
- Removed singleton pattern.
- Improved error handling/reporting.
- Adapted the sample app to work with the removal of the singleton.
- Documentation update.
getToken()
is now private.createRequest()
is now private.- update errors and remove usage of
NSError
type. - token is removed automatically after being requested/retrieved from the SDK.
- remove unnecessary usage of
fatalError()
.
- Main class interface.
- Reachability Monitor.
- Added Documentation to gitHub Pages.
- Unit tests.
- Actors and async calls.
- Environment enum.
- Added SDK Configuration.
- Renamed main class from PaymenttoolsSDK to WhitelabelPay.
- Updated SDK Documentation.
- Failable init to throwing.
- Separate public from private methods.
- Cocoa pods
- Unused error types.
- Core Data.
- Nested do ... cath blocks.
- Completion handlers.
- Shared session from request.
- Cocoa pod spec file.
- Sync method.
- Sync fct. added optional callback.
- Sync fct. await pattern.
- Add error logs.
- New exceptions for persitent store initalization.
- Typealias naming PaymentMethod -> PaymentMeanId.
- Make constant use of PaymentMeanId in function params and CoreData.
- Refactored ObservableObjects.
- Each property is an object on its own, thus can push changes individually.
- Properties are public.
- Properties reset on reset.
- Rename syncronisation -> sync.
- Avoid throws on SDK initalization.
- CoreData entity property mandateId.
- Unused request wrappers.
- Delegate pattern (functions, delegate, properties).
- Removed fatalError on persitent store initalization.
- Inital Version.