Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit 336297d

Browse files
author
Chris Paul
committed
Add pre-existing field parameter for template draft creation.
1 parent 9bf9dea commit 336297d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/main/java/com/hellosign/sdk/resource/TemplateDraft.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,10 @@ public Map<String, Serializable> getPostFields() throws HelloSignException {
274274
fields.put("merge_fields", mergeFieldArray.toString());
275275
}
276276

277+
if (hasUsePreexistingFields()) {
278+
fields.put(REQUEST_USE_PREEXISTING_FIELDS, true);
279+
}
280+
277281
if (isTestMode()) {
278282
fields.put(REQUEST_TEST_MODE, true);
279283
}

src/main/java/com/hellosign/sdk/resource/UnclaimedDraft.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public Map<String, Serializable> getPostFields() throws HelloSignException {
239239
map.put(REQUEST_HIDE_TEXT_TAGS, isHidingTextTags());
240240
}
241241
if (hasUsePreexistingFields()) {
242-
map.put(REQUEST_USE_PREDEFINED_FIELDS, isUsingPreexistingFields());
242+
map.put(REQUEST_USE_PREEXISTING_FIELDS, isUsingPreexistingFields());
243243
}
244244
return map;
245245
}

0 commit comments

Comments
 (0)