diff --git a/BankAPILibrary/GiniBankAPILibrary/Sources/GiniBankAPILibrary/Documents/DefaultDocumentService.swift b/BankAPILibrary/GiniBankAPILibrary/Sources/GiniBankAPILibrary/Documents/DefaultDocumentService.swift index 95878e1cf..0840a1f44 100644 --- a/BankAPILibrary/GiniBankAPILibrary/Sources/GiniBankAPILibrary/Documents/DefaultDocumentService.swift +++ b/BankAPILibrary/GiniBankAPILibrary/Sources/GiniBankAPILibrary/Documents/DefaultDocumentService.swift @@ -237,7 +237,10 @@ public final class DefaultDocumentService: DefaultDocumentServiceProtocol { public func submitFeedback(for document: Document, with extractions: [Extraction], completion: @escaping CompletionResult) { - submitFeedback(resourceHandler: sessionManager.data, for: document.id, with: extractions, completion: completion) + submitFeedback(resourceHandler: sessionManager.data, + for: document.id, + with: extractions, + completion: completion) } /** @@ -252,26 +255,33 @@ public final class DefaultDocumentService: DefaultDocumentServiceProtocol { with extractions: [Extraction], and compoundExtractions: [String: [[Extraction]]], completion: @escaping CompletionResult) { - submitFeedback(resourceHandler: sessionManager.data, for: document.id, with: extractions, and: compoundExtractions, completion: completion) + submitFeedback(resourceHandler: sessionManager.data, + for: document.id, + with: extractions, + and: compoundExtractions, + completion: completion) } /** - * Submits the analysis feedback for a given document. + * Submits the analysis feedback for a given document id. * - * - Parameter documentId: The documentId for which feedback should be sent + * - Parameter documentId: The ID of the document for which feedback should be sent. * - Parameter extractions: The document's updated extractions * - Parameter completion: A completion callback */ public func submitFeedback(for documentId: String, with extractions: [Extraction], completion: @escaping CompletionResult) { - submitFeedback(resourceHandler: sessionManager.data, for: documentId, with: extractions, completion: completion) + submitFeedback(resourceHandler: sessionManager.data, + for: documentId, + with: extractions, + completion: completion) } /** * Submits the analysis feedback with compound extractions (e.g., "line items") for a given document. * - * - Parameter documentId: The documentId for which feedback should be sent + * - Parameter documentId: The ID of the document for which feedback should be sent. * - Parameter extractions: The document's updated extractions * - Parameter compoundExtractions: The document's updated compound extractions * - Parameter completion: A completion callback @@ -280,7 +290,11 @@ public final class DefaultDocumentService: DefaultDocumentServiceProtocol { with extractions: [Extraction], and compoundExtractions: [String: [[Extraction]]], completion: @escaping CompletionResult) { - submitFeedback(resourceHandler: sessionManager.data, for: documentId, with: extractions, and: compoundExtractions, completion: completion) + submitFeedback(resourceHandler: sessionManager.data, + for: documentId, + with: extractions, + and: compoundExtractions, + completion: completion) } /**