hellosign / hellosign-java-sdk

A Java SDK for the HelloSign API.
MIT License
13 stars 27 forks source link

Editor's value is not getting set. #104

Open VaibhaviJ opened 4 years ago

VaibhaviJ commented 4 years ago

Pl refer attached response: Use case : 1) Create Template through UI for Mergeable fields(Textbox and Checkbox and assign it to Sender.) 2) Make Signature Request With Template, provide editor's value for Checkbox and Textbox under custom field. 3) Check response. Response form Java SDK: 2020-03-02 11:40:30/PST INFO [main|SignatureRequestTest:582] - { "cc_email_addresses": [], "created_at": 1583178029, "custom_fields": [ { "api_id": "15e3cd53-f628-4512-a817-17d6447a49dc", "editor": null, "name": "Textbox1", "required": null, "type": "text", "value": "Text From Manager." }, { "api_id": "5f99f3ee-db12-4b17-841c-dee79ce2b443", "editor": null, "name": "Checkbox1", "required": null, "type": "checkbox", "value": true }, { "api_id": "296f6cbc-a823-423a-9bf3-b2c5e3198552", "editor": null, "name": "Checkbox2", "required": null, "type": "checkbox", "value": true }, { "api_id": "f8224dc7-c7e7-4773-a15b-46b0eb401139", "editor": null, "name": "Textbox2", "required": null, "type": "text", "value": "Text From Client." } ], "details_url": "https://app.staging-hellosign.com/home/manage?guid=7d04fb767a4f84e4b67968eb9374ee5bc57a0027", "files_url": "https://api.staging-hellosign.com/v3/signature_request/files/7d04fb767a4f84e4b67968eb9374ee5bc57a0027", "final_copy_uri": "/v3/signature_request/final_copy/7d04fb767a4f84e4b67968eb9374ee5bc57a0027", "has_error": false, "is_complete": false, "is_declined": false, "message": "Pls to be signing thx", "metadata": {}, "original_title": "EditableMergeFieldTemplateForAPI", "requester_email_address": "staging-auto-hs+api2k@hellodocument.com", "response_data": [], "signature_request_id": "7d04fb767a4f84e4b67968eb9374ee5bc57a0027", "signatures": [ { "error": null, "has_pin": false, "last_reminded_at": null, "last_viewed_at": null, "order": 0, "signature_id": "fb0088a41eaf03a7aa9d6c225489a642", "signed_at": null, "signer_email_address": "staging-auto-hs+cw34n@hellodocument.com", "signer_name": "Manager", "signer_role": "Manager", "status_code": "awaiting_signature" }, { "error": null, "has_pin": false, "last_reminded_at": null, "last_viewed_at": null, "order": 1, "signature_id": "615d905454066f984eb8508c6e112a44", "signed_at": null, "signer_email_address": "staging-auto-hs+ezulg@hellodocument.com", "signer_name": "Client", "signer_role": "Client", "status_code": "awaiting_signature" } ], "signing_redirect_url": null, "signing_url": "https://app.staging-hellosign.com/sign/7d04fb767a4f84e4b67968eb9374ee5bc57a0027", "subject": "EditableMergeFieldTemplateForAPI", "template_ids": ["0922ab15eb36006d341e2d34200bdebbef3a7eac"], "test_mode": false, "title": "Java SDK request" }

Response from Postman: { "signature_request": { "signature_request_id": "bdeaaf033b1efc74ac551bdcbe493968555bc58a", "test_mode": false, "title": "Test DEV for Multisigner", "original_title": "EditableMergeFieldTemplateForAPI", "subject": "EditableMergeFieldTemplateForAPI", "message": null, "metadata": {}, "created_at": 1583177519, "is_complete": false, "is_declined": false, "has_error": false, "custom_fields": [ { "name": "Textbox1", "type": "text", "required": true, "api_id": "15e3cd53-f628-4512-a817-17d6447a49dc", "editor": "Manager", "value": "Enter First name" }, { "name": "Checkbox1", "type": "checkbox", "required": true, "api_id": "5f99f3ee-db12-4b17-841c-dee79ce2b443", "editor": "Manager", "value": true }, { "name": "Checkbox2", "type": "checkbox", "required": null, "api_id": "296f6cbc-a823-423a-9bf3-b2c5e3198552", "editor": null, "value": true }, { "name": "Textbox2", "type": "text", "required": null, "api_id": "f8224dc7-c7e7-4773-a15b-46b0eb401139", "editor": null, "value": "Enter Last name" } ], "response_data": [], "signing_url": "https://app.staging-hellosign.com/sign/bdeaaf033b1efc74ac551bdcbe493968555bc58a", "signing_redirect_url": null, "final_copy_uri": "/v3/signature_request/final_copy/bdeaaf033b1efc74ac551bdcbe493968555bc58a", "files_url": "https://api.staging-hellosign.com/v3/signature_request/files/bdeaaf033b1efc74ac551bdcbe493968555bc58a", "details_url": "https://app.staging-hellosign.com/home/manage?guid=bdeaaf033b1efc74ac551bdcbe493968555bc58a", "requester_email_address": "staging-auto-hs+api2k@hellodocument.com", "signatures": [ { "signature_id": "3a267206f09d859fbc17ede44eac574b", "has_pin": false, "signer_email_address": "vaibhavij+qa1@hellosign.com", "signer_name": "vj", "signer_role": "Manager", "order": 0, "status_code": "awaiting_signature", "signed_at": null, "last_viewed_at": null, "last_reminded_at": null, "error": null }, { "signature_id": "616242d5badd41ffb4db05e60b30fa73", "has_pin": false, "signer_email_address": "vaibhavij+qa2@hellosign.com", "signer_name": "vj2", "signer_role": "Client", "order": 1, "status_code": "awaiting_signature", "signed_at": null, "last_viewed_at": null, "last_reminded_at": null, "error": null } ], "cc_email_addresses": [], "template_ids": [ "0922ab15eb36006d341e2d34200bdebbef3a7eac" ], "client_id": "60c1361e722d60efd7aea04a921d55eb" }, "warnings": [ { "warning_msg": "Editable custom_fields are only supported for single signer requests or the first signer of ordered signature requests. Value of the Checkbox2 custom field will be overlayed on the document and will not be editable by the signer.", "warning_name": "parameter_ignored" }, { "warning_msg": "Editable custom_fields are only supported for single signer requests or the first signer of ordered signature requests. Value of the Textbox2 custom field will be overlayed on the document and will not be editable by the signer.", "warning_name": "parameter_ignored" } ] }