From b2327e2aa9cb3e7b5415fe16f57c13608b3c1233 Mon Sep 17 00:00:00 2001 From: Marek Stransky Date: Thu, 1 Aug 2024 12:09:48 +0200 Subject: [PATCH] Update docs --- .../Operations/Model/UserOperation/WMTTemplates.swift | 4 ++-- docs/Using-Operations-Service.md | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/WultraMobileTokenSDK/Operations/Model/UserOperation/WMTTemplates.swift b/WultraMobileTokenSDK/Operations/Model/UserOperation/WMTTemplates.swift index 4c87661..ad1ee42 100644 --- a/WultraMobileTokenSDK/Operations/Model/UserOperation/WMTTemplates.swift +++ b/WultraMobileTokenSDK/Operations/Model/UserOperation/WMTTemplates.swift @@ -24,7 +24,7 @@ public class WMTTemplates: Codable { /// How the operation should look like in the list of operations public let list: ListTemplate? - /// How the operation detail should look like + /// How the operation detail should look like when viewed individually. public let detail: DetailTemplate? // MARK: - Internals @@ -149,7 +149,7 @@ public class WMTTemplates: Codable { /// Predefined style name that can be processed by the app to customize the overall look of the operation. public let style: String? - /// Indicates if the header should be created from form data (title, message, image) or customized for a specific operation + /// Indicates if the header should be created from form data (title, message) or customized for a specific operation public let showTitleAndMessage: Bool? /// Sections of the operation data. diff --git a/docs/Using-Operations-Service.md b/docs/Using-Operations-Service.md index 8a0d91b..c81e70e 100644 --- a/docs/Using-Operations-Service.md +++ b/docs/Using-Operations-Service.md @@ -771,7 +771,7 @@ public class WMTTemplates: Codable { /// The template how the operation should look like in the list of operations let list: ListTemplate? - /// The template for how the operation data should look like + /// How the operation detail should look like when viewed individually. let detail: DetailTemplate? } ``` @@ -794,7 +794,7 @@ public class ListTemplate: Codable { let message: AttributeName? /// Attribute which will be used for the image - let image: AttributeName? + let image: AttributeId? } public class DetailTemplate: Codable { @@ -802,8 +802,8 @@ public class DetailTemplate: Codable { /// Predefined style name that can be processed by the app to customize the overall look of the operation. let style: String? - /// Indicates if the header should be created from form data (title, message, image) or customized for a specific operation - let automaticHeaderSection: Bool? + /// Indicates if the header should be created from form data (title, message) or customized for a specific operation + let showTitleAndMessage: Bool? /// Sections of the operation data. let sections: [Section]? @@ -838,6 +838,9 @@ public class DetailTemplate: Codable { /// Define if the cell should be collapsable let collapsable: Collapsable? + /// If value should be centered + let centered: Bool? + public enum Collapsable: String, Codable { /// The cell should not be collapsable case no = "NO"