File tree Expand file tree Collapse file tree
src/main/java/com/signnow
api/document/response/data/fieldinvite Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# signNow API Java SDK
2- ## v3.2.0
2+ ## v3.2.1
33
44[ ![ Java Version] ( https://img.shields.io/badge/codebase-java--11-yellowgreen )] ( https://www.java.com/ )
55
Original file line number Diff line number Diff line change 66
77 <groupId >com.signnow</groupId >
88 <artifactId >signnow-java-sdk</artifactId >
9- <version >3.1.0 </version >
9+ <version >3.2.1 </version >
1010 <packaging >jar</packaging >
1111 <name >signnow-java-sdk</name >
1212 <description >SignNow official Java SDK</description >
Original file line number Diff line number Diff line change 1010package com .signnow .api .document .response .data .fieldinvite ;
1111
1212import com .fasterxml .jackson .annotation .JsonCreator ;
13+ import com .fasterxml .jackson .annotation .JsonIgnoreProperties ;
1314import com .fasterxml .jackson .annotation .JsonProperty ;
1415import com .signnow .core .data .ApiData ;
1516import java .util .LinkedHashMap ;
2021/**
2122 * This class represents a FieldInvite which is a part of the signNow SDK API client.
2223 */
24+ @ JsonIgnoreProperties (ignoreUnknown = true )
2325public final class FieldInvite extends ApiData {
2426
2527 /**
Original file line number Diff line number Diff line change 1616public class ConfigRepository {
1717
1818 private static final int READ_TIMEOUT = 15 ;
19- private static final String CLIENT_NAME = "SignNowApiClient/v3.2.0 (Java)" ;
19+ private static final String CLIENT_NAME = "SignNowApiClient/v3.2.1 (Java)" ;
2020 private static final String DEFAULT_DOWNLOADS_DIR = "./src/main/resources/downloads" ;
2121
2222 private final Map <String , String > configMap ;
Original file line number Diff line number Diff line change @@ -36,6 +36,13 @@ public static File saveFile(ResponseData downloadData) throws IOException {
3636 ? downloadDirectory + fileName
3737 : downloadDirectory + "/" + fileName ;
3838
39+ File directory = new File (downloadDirectory );
40+ if (!directory .exists ()) {
41+ if (!directory .mkdirs ()) {
42+ throw new IOException ("Failed to create directory: " + downloadDirectory );
43+ }
44+ }
45+
3946 try (FileOutputStream fos = new FileOutputStream (filePath )) {
4047 byte [] fileContent = downloadData .getContent ();
4148 fos .write (fileContent );
You can’t perform that action at this time.
0 commit comments