@@ -106,7 +106,7 @@ protected CompletableFuture<String> getBankStatementAsync(String documentId) {
106106 * Process a Bank Statement and extract all the fields from it. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement/
107107 *
108108 * @param filePath Path on disk to a file to submit for data extraction.
109- * @param parameters Additional request parameters.
109+ * @param parameters Additional request parameters.
110110 * @return the data extracted from the Bank Statement {@link String}
111111 */
112112 protected String processBankStatement (String filePath , JSONObject parameters ) {
@@ -126,6 +126,32 @@ protected CompletableFuture<String> processBankStatementAsync(String filePath, J
126126 return requestAsync (HttpMethod .POST , Endpoint .bankStatements .path , parameters );
127127 }
128128
129+ /**
130+ * Process a Bank Statement and extract all the fields from it. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement/
131+ *
132+ * @param fileName Name of the file to upload to the Veryfi API
133+ * @param fileData Base64 encoded file data
134+ * @param parameters Additional request parameters
135+ * @return the data extracted from the Bank Statement {@link String}
136+ */
137+ protected String processBankStatement (String fileName , String fileData , JSONObject parameters ) {
138+ parameters = addFileToParameters (fileName , fileData , parameters );
139+ return request (HttpMethod .POST , Endpoint .bankStatements .path , parameters );
140+ }
141+
142+ /**
143+ * Process a Bank Statement and extract all the fields from it. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement/
144+ *
145+ * @param fileName Name of the file to upload to the Veryfi API
146+ * @param fileData Base64 encoded file data
147+ * @param parameters Additional request parameters
148+ * @return the data extracted from the Bank Statement {@link CompletableFuture<String>}
149+ */
150+ protected CompletableFuture <String > processBankStatementAsync (String fileName , String fileData , JSONObject parameters ) {
151+ parameters = addFileToParameters (fileName , fileData , parameters );
152+ return requestAsync (HttpMethod .POST , Endpoint .bankStatements .path , parameters );
153+ }
154+
129155 /**
130156 * Process Bank Statement from url and extract all the fields from it. https://docs.veryfi.com/api/bank-statements/process-a-bank-statement/
131157 *
0 commit comments