-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Status to UserOperation and removed HistoryEntry (#162)
* Fix #159: Add Status to UserOperation and remove HistoryEntry * Add change to changelog
- Loading branch information
1 parent
0d2f91c
commit 93129dc
Showing
13 changed files
with
94 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Migration from 1.11.x to 1.12.x | ||
|
||
This guide contains instructions for migration from Wultra Mobile Token SDK for Android version `1.11.x` to version `1.12.x`. | ||
|
||
## 1. Implement status in UserOperation | ||
|
||
### Added Functionality | ||
|
||
The following status property was added to the `WMTUserOperations`: | ||
|
||
```kotlin | ||
val status: UserOperationStatus | ||
|
||
/** Processing status of the operation */ | ||
enum class UserOperationStatus { | ||
/** Operation was approved */ | ||
APPROVED, | ||
/** Operation was rejected */ | ||
REJECTED, | ||
/** Operation is pending its resolution */ | ||
PENDING, | ||
/** Operation was canceled */ | ||
CANCELED, | ||
/** Operation expired */ | ||
EXPIRED, | ||
/** Operation failed */ | ||
FAILED | ||
} | ||
``` | ||
|
||
The `UserOperationStatus` within `UserOperation.status` now represents the status of an operation, making the `OperationHistoryEntryStatus` and `OperationHistoryEntry` redundant. As a result, `OperationHistoryEntry` has been removed. In all instances where `OperationHistoryEntry` was previously used, `UserOperation` is used instead. | ||
|
||
### Replaced at | ||
|
||
In the `getHistory` method of `IOperationsService`, `OperationHistoryEntry` has been replaced by `UserOperation` for retrieving user operation history. | ||
|
||
```kotlin | ||
/// Retrieves the history of operations | ||
/// - Parameters: | ||
/// - authentication: Authentication object for signing. | ||
/// - completion: Result completion. | ||
/// This completion is always called on the main thread. | ||
/// - Returns: Operation object for its state observation. | ||
fun getHistory(authentication: PowerAuthAuthentication, callback: (result: Result<List<UserOperation>>) -> Unit) | ||
``` | ||
|
||
## 2. Deprecated methods removal | ||
|
||
`IOperationsService` Methods which were deprecated in version 1.5.0 are no more available. For further assistance consult [Migration from 1.4.x to 1.5.x](Migration-1.5.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.