Skip to content

Add actionSettings to PreApprovalElementButton#224

Merged
Hopsaheysa merged 2 commits intodevelopfrom
issues/223-element-button-action-settings
Nov 4, 2025
Merged

Add actionSettings to PreApprovalElementButton#224
Hopsaheysa merged 2 commits intodevelopfrom
issues/223-element-button-action-settings

Conversation

@Hopsaheysa
Copy link
Member

@Hopsaheysa Hopsaheysa requested a review from Copilot November 3, 2025 15:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for an optional actionSettings property to the PreApprovalElementButton class in the pre-approval UI template, allowing buttons to specify additional behavior or secondary actions (e.g., "REJECT").

  • Added actionSettings field to PreApprovalElementButton model class
  • Updated type adapter to parse the new field from JSON
  • Added comprehensive test coverage for the new property

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
library/src/main/java/com/wultra/android/mtokensdk/api/operation/model/preapproval/PreApprovalElement.kt Added actionSettings property to PreApprovalElementButton class and updated KDoc
library/src/main/java/com/wultra/android/mtokensdk/api/operation/PreApprovalElementTypeAdapter.kt Updated type adapter to parse actionSettings from JSON and pass it to constructor
library/src/androidTest/java/OperationUIDataTests.kt Added test coverage for new actionSettings field including JSON fixture and assertions
docs/Using-Operations-Service.md Updated documentation to describe the new actionSettings property in pre-approval buttons
docs/Migration-2.4.md Updated example JSON to include actionSettings in button element

# Conflicts:
#	docs/Using-Operations-Service.md
@Hopsaheysa Hopsaheysa merged commit 4f92740 into develop Nov 4, 2025
4 checks passed
@Hopsaheysa Hopsaheysa deleted the issues/223-element-button-action-settings branch November 4, 2025 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants