dropbox-sign 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +23 -16
  4. data/VERSION +1 -1
  5. data/docs/AccountApi.md +33 -38
  6. data/docs/ApiAppApi.md +64 -64
  7. data/docs/BulkSendJobApi.md +21 -21
  8. data/docs/BulkSendJobGetResponseSignatureRequests.md +1 -1
  9. data/docs/EmbeddedApi.md +22 -22
  10. data/docs/FaxApi.md +57 -55
  11. data/docs/FaxLineAddUserRequest.md +1 -1
  12. data/docs/FaxLineApi.md +74 -63
  13. data/docs/FaxLineCreateRequest.md +4 -4
  14. data/docs/FaxLineDeleteRequest.md +1 -1
  15. data/docs/FaxLineRemoveUserRequest.md +3 -3
  16. data/docs/FaxResponse.md +4 -3
  17. data/docs/FaxResponseTransmission.md +0 -1
  18. data/docs/FaxSendRequest.md +5 -5
  19. data/docs/OAuthApi.md +27 -15
  20. data/docs/ReportApi.md +14 -13
  21. data/docs/SignatureRequestApi.md +822 -311
  22. data/docs/SignatureRequestEditEmbeddedRequest.md +33 -0
  23. data/docs/SignatureRequestEditEmbeddedWithTemplateRequest.md +24 -0
  24. data/docs/SignatureRequestEditRequest.md +34 -0
  25. data/docs/SignatureRequestEditWithTemplateRequest.md +25 -0
  26. data/docs/SignatureRequestResponse.md +1 -1
  27. data/docs/SignatureRequestResponseDataValueInitials.md +1 -0
  28. data/docs/SignatureRequestResponseDataValueSignature.md +1 -0
  29. data/docs/TeamApi.md +84 -95
  30. data/docs/TemplateApi.md +210 -166
  31. data/docs/TemplateResponse.md +1 -1
  32. data/docs/UnclaimedDraftApi.md +77 -91
  33. data/dropbox-sign.gemspec +1 -1
  34. data/examples/AccountCreateExample.rb +20 -0
  35. data/examples/AccountCreateOauthExample.rb +22 -0
  36. data/examples/AccountGetExample.rb +15 -0
  37. data/examples/AccountUpdateExample.rb +21 -0
  38. data/examples/AccountVerifyExample.rb +20 -0
  39. data/examples/ApiAppCreateExample.rb +37 -0
  40. data/examples/ApiAppDeleteExample.rb +15 -0
  41. data/examples/ApiAppGetExample.rb +17 -0
  42. data/examples/ApiAppListExample.rb +20 -0
  43. data/examples/ApiAppUpdateExample.rb +39 -0
  44. data/examples/BulkSendJobGetExample.rb +21 -0
  45. data/examples/BulkSendJobListExample.rb +20 -0
  46. data/examples/EmbeddedEditUrlExample.rb +27 -0
  47. data/examples/EmbeddedSignUrlExample.rb +17 -0
  48. data/examples/FaxDeleteExample.rb +14 -0
  49. data/examples/FaxFilesExample.rb +16 -0
  50. data/examples/FaxGetExample.rb +16 -0
  51. data/examples/FaxLineAddUserExample.rb +20 -0
  52. data/examples/FaxLineAreaCodeGetExample.rb +16 -0
  53. data/examples/FaxLineCreateExample.rb +20 -0
  54. data/examples/FaxLineDeleteExample.rb +17 -0
  55. data/examples/FaxLineGetExample.rb +16 -0
  56. data/examples/FaxLineListExample.rb +21 -0
  57. data/examples/FaxLineRemoveUserExample.rb +20 -0
  58. data/examples/FaxListExample.rb +19 -0
  59. data/examples/FaxSendExample.rb +28 -0
  60. data/examples/OauthTokenGenerateExample.rb +22 -0
  61. data/examples/OauthTokenRefreshExample.rb +19 -0
  62. data/examples/ReportCreateExample.rb +24 -0
  63. data/examples/SignatureRequestBulkCreateEmbeddedWithTemplateExample.rb +84 -0
  64. data/examples/SignatureRequestBulkSendWithTemplateExample.rb +84 -0
  65. data/examples/SignatureRequestCancelExample.rb +15 -0
  66. data/examples/SignatureRequestCreateEmbeddedExample.rb +55 -0
  67. data/examples/SignatureRequestCreateEmbeddedGroupedSignersExample.rb +81 -0
  68. data/examples/SignatureRequestCreateEmbeddedWithTemplateExample.rb +44 -0
  69. data/examples/SignatureRequestEditEmbeddedExample.rb +56 -0
  70. data/examples/SignatureRequestEditEmbeddedGroupedSignersExample.rb +82 -0
  71. data/examples/SignatureRequestEditEmbeddedWithTemplateExample.rb +45 -0
  72. data/examples/SignatureRequestEditExample.rb +66 -0
  73. data/examples/SignatureRequestEditGroupedSignersExample.rb +92 -0
  74. data/examples/SignatureRequestEditWithTemplateExample.rb +64 -0
  75. data/examples/SignatureRequestFilesAsDataUriExample.rb +17 -0
  76. data/examples/SignatureRequestFilesAsFileUrlExample.rb +20 -0
  77. data/examples/SignatureRequestFilesExample.rb +20 -0
  78. data/examples/SignatureRequestGetExample.rb +17 -0
  79. data/examples/SignatureRequestListExample.rb +22 -0
  80. data/examples/SignatureRequestReleaseHoldExample.rb +17 -0
  81. data/examples/SignatureRequestRemindExample.rb +21 -0
  82. data/examples/SignatureRequestRemoveExample.rb +14 -0
  83. data/examples/SignatureRequestSendExample.rb +65 -0
  84. data/examples/SignatureRequestSendGroupedSignersExample.rb +91 -0
  85. data/examples/SignatureRequestSendWithTemplateExample.rb +63 -0
  86. data/examples/SignatureRequestUpdateExample.rb +22 -0
  87. data/examples/TeamAddMemberAccountIdExample.rb +23 -0
  88. data/examples/TeamAddMemberExample.rb +23 -0
  89. data/examples/TeamCreateExample.rb +20 -0
  90. data/examples/TeamDeleteExample.rb +13 -0
  91. data/examples/TeamGetExample.rb +15 -0
  92. data/examples/TeamInfoExample.rb +19 -0
  93. data/examples/TeamInvitesExample.rb +15 -0
  94. data/examples/TeamMembersExample.rb +21 -0
  95. data/examples/TeamRemoveMemberAccountIdExample.rb +20 -0
  96. data/examples/TeamRemoveMemberExample.rb +21 -0
  97. data/examples/TeamSubTeamsExample.rb +21 -0
  98. data/examples/TeamUpdateExample.rb +20 -0
  99. data/examples/TemplateAddUserExample.rb +21 -0
  100. data/examples/TemplateCreateEmbeddedDraftExample.rb +62 -0
  101. data/examples/TemplateCreateEmbeddedDraftFormFieldGroupsExample.rb +108 -0
  102. data/examples/TemplateCreateEmbeddedDraftFormFieldRulesExample.rb +124 -0
  103. data/examples/TemplateCreateEmbeddedDraftFormFieldsPerDocumentExample.rb +96 -0
  104. data/examples/TemplateCreateExample.rb +96 -0
  105. data/examples/TemplateCreateFormFieldGroupsExample.rb +108 -0
  106. data/examples/TemplateCreateFormFieldRulesExample.rb +124 -0
  107. data/examples/TemplateCreateFormFieldsPerDocumentExample.rb +96 -0
  108. data/examples/TemplateDeleteExample.rb +15 -0
  109. data/examples/TemplateFilesAsDataUriExample.rb +17 -0
  110. data/examples/TemplateFilesAsFileUrlExample.rb +20 -0
  111. data/examples/TemplateFilesExample.rb +17 -0
  112. data/examples/TemplateGetExample.rb +17 -0
  113. data/examples/TemplateListExample.rb +22 -0
  114. data/examples/TemplateRemoveUserExample.rb +21 -0
  115. data/examples/TemplateUpdateFilesExample.rb +23 -0
  116. data/examples/UnclaimedDraftCreateEmbeddedExample.rb +25 -0
  117. data/examples/UnclaimedDraftCreateEmbeddedFormFieldGroupsExample.rb +71 -0
  118. data/examples/UnclaimedDraftCreateEmbeddedFormFieldRulesExample.rb +87 -0
  119. data/examples/UnclaimedDraftCreateEmbeddedFormFieldsPerDocumentExample.rb +59 -0
  120. data/examples/UnclaimedDraftCreateEmbeddedWithTemplateExample.rb +44 -0
  121. data/examples/UnclaimedDraftCreateExample.rb +34 -0
  122. data/examples/UnclaimedDraftCreateFormFieldGroupsExample.rb +70 -0
  123. data/examples/UnclaimedDraftCreateFormFieldRulesExample.rb +86 -0
  124. data/examples/UnclaimedDraftCreateFormFieldsPerDocumentExample.rb +58 -0
  125. data/examples/UnclaimedDraftEditAndResendExample.rb +22 -0
  126. data/lib/dropbox-sign/api/account_api.rb +1 -1
  127. data/lib/dropbox-sign/api/api_app_api.rb +1 -1
  128. data/lib/dropbox-sign/api/bulk_send_job_api.rb +1 -1
  129. data/lib/dropbox-sign/api/embedded_api.rb +1 -1
  130. data/lib/dropbox-sign/api/fax_api.rb +17 -17
  131. data/lib/dropbox-sign/api/fax_line_api.rb +23 -23
  132. data/lib/dropbox-sign/api/o_auth_api.rb +1 -1
  133. data/lib/dropbox-sign/api/report_api.rb +1 -1
  134. data/lib/dropbox-sign/api/signature_request_api.rb +461 -1
  135. data/lib/dropbox-sign/api/team_api.rb +1 -1
  136. data/lib/dropbox-sign/api/template_api.rb +1 -1
  137. data/lib/dropbox-sign/api/unclaimed_draft_api.rb +1 -1
  138. data/lib/dropbox-sign/api_client.rb +8 -9
  139. data/lib/dropbox-sign/api_error.rb +1 -1
  140. data/lib/dropbox-sign/configuration.rb +1 -1
  141. data/lib/dropbox-sign/event_callback_helper.rb +1 -1
  142. data/lib/dropbox-sign/models/account_create_request.rb +19 -3
  143. data/lib/dropbox-sign/models/account_create_response.rb +19 -3
  144. data/lib/dropbox-sign/models/account_get_response.rb +19 -3
  145. data/lib/dropbox-sign/models/account_response.rb +9 -3
  146. data/lib/dropbox-sign/models/account_response_quotas.rb +9 -3
  147. data/lib/dropbox-sign/models/account_response_usage.rb +9 -3
  148. data/lib/dropbox-sign/models/account_update_request.rb +9 -3
  149. data/lib/dropbox-sign/models/account_verify_request.rb +19 -3
  150. data/lib/dropbox-sign/models/account_verify_response.rb +9 -3
  151. data/lib/dropbox-sign/models/account_verify_response_account.rb +9 -3
  152. data/lib/dropbox-sign/models/api_app_create_request.rb +19 -3
  153. data/lib/dropbox-sign/models/api_app_get_response.rb +19 -3
  154. data/lib/dropbox-sign/models/api_app_list_response.rb +29 -3
  155. data/lib/dropbox-sign/models/api_app_response.rb +9 -3
  156. data/lib/dropbox-sign/models/api_app_response_o_auth.rb +9 -3
  157. data/lib/dropbox-sign/models/api_app_response_options.rb +9 -3
  158. data/lib/dropbox-sign/models/api_app_response_owner_account.rb +9 -3
  159. data/lib/dropbox-sign/models/api_app_response_white_labeling_options.rb +9 -3
  160. data/lib/dropbox-sign/models/api_app_update_request.rb +9 -3
  161. data/lib/dropbox-sign/models/bulk_send_job_get_response.rb +39 -3
  162. data/lib/dropbox-sign/models/bulk_send_job_get_response_signature_requests.rb +19 -10
  163. data/lib/dropbox-sign/models/bulk_send_job_list_response.rb +29 -3
  164. data/lib/dropbox-sign/models/bulk_send_job_response.rb +9 -3
  165. data/lib/dropbox-sign/models/bulk_send_job_send_response.rb +19 -3
  166. data/lib/dropbox-sign/models/embedded_edit_url_request.rb +9 -3
  167. data/lib/dropbox-sign/models/embedded_edit_url_response.rb +19 -3
  168. data/lib/dropbox-sign/models/embedded_edit_url_response_embedded.rb +9 -3
  169. data/lib/dropbox-sign/models/embedded_sign_url_response.rb +19 -3
  170. data/lib/dropbox-sign/models/embedded_sign_url_response_embedded.rb +9 -3
  171. data/lib/dropbox-sign/models/error_response.rb +19 -3
  172. data/lib/dropbox-sign/models/error_response_error.rb +29 -3
  173. data/lib/dropbox-sign/models/event_callback_request.rb +19 -3
  174. data/lib/dropbox-sign/models/event_callback_request_event.rb +29 -3
  175. data/lib/dropbox-sign/models/event_callback_request_event_metadata.rb +9 -3
  176. data/lib/dropbox-sign/models/fax_get_response.rb +19 -3
  177. data/lib/dropbox-sign/models/fax_line_add_user_request.rb +20 -4
  178. data/lib/dropbox-sign/models/fax_line_area_code_get_country_enum.rb +1 -1
  179. data/lib/dropbox-sign/models/fax_line_area_code_get_province_enum.rb +1 -1
  180. data/lib/dropbox-sign/models/fax_line_area_code_get_response.rb +19 -3
  181. data/lib/dropbox-sign/models/fax_line_area_code_get_state_enum.rb +1 -1
  182. data/lib/dropbox-sign/models/fax_line_create_request.rb +23 -7
  183. data/lib/dropbox-sign/models/fax_line_delete_request.rb +20 -4
  184. data/lib/dropbox-sign/models/fax_line_list_response.rb +29 -3
  185. data/lib/dropbox-sign/models/fax_line_remove_user_request.rb +22 -6
  186. data/lib/dropbox-sign/models/fax_line_response.rb +19 -3
  187. data/lib/dropbox-sign/models/fax_line_response_fax_line.rb +9 -3
  188. data/lib/dropbox-sign/models/fax_list_response.rb +29 -3
  189. data/lib/dropbox-sign/models/fax_response.rb +139 -49
  190. data/lib/dropbox-sign/models/fax_response_transmission.rb +20 -20
  191. data/lib/dropbox-sign/models/fax_send_request.rb +24 -8
  192. data/lib/dropbox-sign/models/file_response.rb +29 -3
  193. data/lib/dropbox-sign/models/file_response_data_uri.rb +19 -3
  194. data/lib/dropbox-sign/models/list_info_response.rb +9 -3
  195. data/lib/dropbox-sign/models/o_auth_token_generate_request.rb +59 -3
  196. data/lib/dropbox-sign/models/o_auth_token_refresh_request.rb +29 -3
  197. data/lib/dropbox-sign/models/o_auth_token_response.rb +9 -3
  198. data/lib/dropbox-sign/models/report_create_request.rb +29 -3
  199. data/lib/dropbox-sign/models/report_create_response.rb +19 -3
  200. data/lib/dropbox-sign/models/report_response.rb +9 -3
  201. data/lib/dropbox-sign/models/signature_request_bulk_create_embedded_with_template_request.rb +29 -3
  202. data/lib/dropbox-sign/models/signature_request_bulk_send_with_template_request.rb +19 -3
  203. data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +19 -3
  204. data/lib/dropbox-sign/models/signature_request_create_embedded_with_template_request.rb +39 -3
  205. data/lib/dropbox-sign/models/signature_request_edit_embedded_request.rb +604 -0
  206. data/lib/dropbox-sign/models/signature_request_edit_embedded_with_template_request.rb +521 -0
  207. data/lib/dropbox-sign/models/signature_request_edit_request.rb +600 -0
  208. data/lib/dropbox-sign/models/signature_request_edit_with_template_request.rb +518 -0
  209. data/lib/dropbox-sign/models/signature_request_get_response.rb +19 -3
  210. data/lib/dropbox-sign/models/signature_request_list_response.rb +29 -3
  211. data/lib/dropbox-sign/models/signature_request_remind_request.rb +19 -3
  212. data/lib/dropbox-sign/models/signature_request_response.rb +19 -10
  213. data/lib/dropbox-sign/models/signature_request_response_attachment.rb +49 -3
  214. data/lib/dropbox-sign/models/signature_request_response_custom_field_base.rb +31 -4
  215. data/lib/dropbox-sign/models/signature_request_response_custom_field_checkbox.rb +19 -3
  216. data/lib/dropbox-sign/models/signature_request_response_custom_field_text.rb +19 -3
  217. data/lib/dropbox-sign/models/signature_request_response_custom_field_type_enum.rb +1 -1
  218. data/lib/dropbox-sign/models/signature_request_response_data_base.rb +9 -3
  219. data/lib/dropbox-sign/models/signature_request_response_data_type_enum.rb +1 -1
  220. data/lib/dropbox-sign/models/signature_request_response_data_value_checkbox.rb +9 -3
  221. data/lib/dropbox-sign/models/signature_request_response_data_value_checkbox_merge.rb +9 -3
  222. data/lib/dropbox-sign/models/signature_request_response_data_value_date_signed.rb +9 -3
  223. data/lib/dropbox-sign/models/signature_request_response_data_value_dropdown.rb +9 -3
  224. data/lib/dropbox-sign/models/signature_request_response_data_value_initials.rb +25 -7
  225. data/lib/dropbox-sign/models/signature_request_response_data_value_radio.rb +9 -3
  226. data/lib/dropbox-sign/models/signature_request_response_data_value_signature.rb +25 -7
  227. data/lib/dropbox-sign/models/signature_request_response_data_value_text.rb +9 -3
  228. data/lib/dropbox-sign/models/signature_request_response_data_value_text_merge.rb +9 -3
  229. data/lib/dropbox-sign/models/signature_request_response_signatures.rb +9 -3
  230. data/lib/dropbox-sign/models/signature_request_send_request.rb +9 -3
  231. data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +29 -3
  232. data/lib/dropbox-sign/models/signature_request_update_request.rb +19 -3
  233. data/lib/dropbox-sign/models/sub_attachment.rb +29 -3
  234. data/lib/dropbox-sign/models/sub_bulk_signer_list.rb +9 -3
  235. data/lib/dropbox-sign/models/sub_bulk_signer_list_custom_field.rb +29 -3
  236. data/lib/dropbox-sign/models/sub_cc.rb +29 -3
  237. data/lib/dropbox-sign/models/sub_custom_field.rb +19 -3
  238. data/lib/dropbox-sign/models/sub_editor_options.rb +9 -3
  239. data/lib/dropbox-sign/models/sub_field_options.rb +9 -3
  240. data/lib/dropbox-sign/models/sub_form_field_group.rb +39 -3
  241. data/lib/dropbox-sign/models/sub_form_field_rule.rb +29 -3
  242. data/lib/dropbox-sign/models/sub_form_field_rule_action.rb +19 -3
  243. data/lib/dropbox-sign/models/sub_form_field_rule_trigger.rb +19 -3
  244. data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +99 -3
  245. data/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox.rb +29 -3
  246. data/lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb +19 -3
  247. data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +19 -3
  248. data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +19 -3
  249. data/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb +1 -1
  250. data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +39 -3
  251. data/lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb +19 -3
  252. data/lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb +39 -3
  253. data/lib/dropbox-sign/models/sub_form_fields_per_document_signature.rb +19 -3
  254. data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +19 -3
  255. data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +19 -3
  256. data/lib/dropbox-sign/models/sub_form_fields_per_document_type_enum.rb +1 -1
  257. data/lib/dropbox-sign/models/sub_merge_field.rb +19 -3
  258. data/lib/dropbox-sign/models/sub_o_auth.rb +9 -3
  259. data/lib/dropbox-sign/models/sub_options.rb +9 -3
  260. data/lib/dropbox-sign/models/sub_signature_request_grouped_signers.rb +29 -3
  261. data/lib/dropbox-sign/models/sub_signature_request_signer.rb +29 -3
  262. data/lib/dropbox-sign/models/sub_signature_request_template_signer.rb +39 -3
  263. data/lib/dropbox-sign/models/sub_signing_options.rb +9 -3
  264. data/lib/dropbox-sign/models/sub_team_response.rb +9 -3
  265. data/lib/dropbox-sign/models/sub_template_role.rb +9 -3
  266. data/lib/dropbox-sign/models/sub_unclaimed_draft_signer.rb +29 -3
  267. data/lib/dropbox-sign/models/sub_unclaimed_draft_template_signer.rb +39 -3
  268. data/lib/dropbox-sign/models/sub_white_labeling_options.rb +9 -3
  269. data/lib/dropbox-sign/models/team_add_member_request.rb +9 -3
  270. data/lib/dropbox-sign/models/team_create_request.rb +9 -3
  271. data/lib/dropbox-sign/models/team_get_info_response.rb +19 -3
  272. data/lib/dropbox-sign/models/team_get_response.rb +19 -3
  273. data/lib/dropbox-sign/models/team_info_response.rb +9 -3
  274. data/lib/dropbox-sign/models/team_invite_response.rb +9 -3
  275. data/lib/dropbox-sign/models/team_invites_response.rb +19 -3
  276. data/lib/dropbox-sign/models/team_member_response.rb +9 -3
  277. data/lib/dropbox-sign/models/team_members_response.rb +29 -3
  278. data/lib/dropbox-sign/models/team_parent_response.rb +9 -3
  279. data/lib/dropbox-sign/models/team_remove_member_request.rb +9 -3
  280. data/lib/dropbox-sign/models/team_response.rb +9 -3
  281. data/lib/dropbox-sign/models/team_sub_teams_response.rb +29 -3
  282. data/lib/dropbox-sign/models/team_update_request.rb +9 -3
  283. data/lib/dropbox-sign/models/template_add_user_request.rb +9 -3
  284. data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +19 -3
  285. data/lib/dropbox-sign/models/template_create_embedded_draft_response.rb +19 -3
  286. data/lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb +9 -3
  287. data/lib/dropbox-sign/models/template_create_request.rb +29 -3
  288. data/lib/dropbox-sign/models/template_create_response.rb +19 -3
  289. data/lib/dropbox-sign/models/template_create_response_template.rb +9 -3
  290. data/lib/dropbox-sign/models/template_edit_response.rb +19 -3
  291. data/lib/dropbox-sign/models/template_get_response.rb +19 -3
  292. data/lib/dropbox-sign/models/template_list_response.rb +29 -3
  293. data/lib/dropbox-sign/models/template_remove_user_request.rb +9 -3
  294. data/lib/dropbox-sign/models/template_response.rb +14 -6
  295. data/lib/dropbox-sign/models/template_response_account.rb +9 -3
  296. data/lib/dropbox-sign/models/template_response_account_quota.rb +9 -3
  297. data/lib/dropbox-sign/models/template_response_cc_role.rb +9 -3
  298. data/lib/dropbox-sign/models/template_response_document.rb +9 -3
  299. data/lib/dropbox-sign/models/template_response_document_custom_field_base.rb +19 -3
  300. data/lib/dropbox-sign/models/template_response_document_custom_field_checkbox.rb +19 -3
  301. data/lib/dropbox-sign/models/template_response_document_custom_field_text.rb +19 -3
  302. data/lib/dropbox-sign/models/template_response_document_field_group.rb +9 -3
  303. data/lib/dropbox-sign/models/template_response_document_field_group_rule.rb +9 -3
  304. data/lib/dropbox-sign/models/template_response_document_form_field_base.rb +19 -3
  305. data/lib/dropbox-sign/models/template_response_document_form_field_checkbox.rb +19 -3
  306. data/lib/dropbox-sign/models/template_response_document_form_field_date_signed.rb +19 -3
  307. data/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +19 -3
  308. data/lib/dropbox-sign/models/template_response_document_form_field_hyperlink.rb +19 -3
  309. data/lib/dropbox-sign/models/template_response_document_form_field_initials.rb +19 -3
  310. data/lib/dropbox-sign/models/template_response_document_form_field_radio.rb +29 -3
  311. data/lib/dropbox-sign/models/template_response_document_form_field_signature.rb +19 -3
  312. data/lib/dropbox-sign/models/template_response_document_form_field_text.rb +19 -3
  313. data/lib/dropbox-sign/models/template_response_document_static_field_base.rb +19 -3
  314. data/lib/dropbox-sign/models/template_response_document_static_field_checkbox.rb +19 -3
  315. data/lib/dropbox-sign/models/template_response_document_static_field_date_signed.rb +19 -3
  316. data/lib/dropbox-sign/models/template_response_document_static_field_dropdown.rb +19 -3
  317. data/lib/dropbox-sign/models/template_response_document_static_field_hyperlink.rb +19 -3
  318. data/lib/dropbox-sign/models/template_response_document_static_field_initials.rb +19 -3
  319. data/lib/dropbox-sign/models/template_response_document_static_field_radio.rb +19 -3
  320. data/lib/dropbox-sign/models/template_response_document_static_field_signature.rb +19 -3
  321. data/lib/dropbox-sign/models/template_response_document_static_field_text.rb +19 -3
  322. data/lib/dropbox-sign/models/template_response_field_avg_text_length.rb +9 -3
  323. data/lib/dropbox-sign/models/template_response_signer_role.rb +9 -3
  324. data/lib/dropbox-sign/models/template_update_files_request.rb +9 -3
  325. data/lib/dropbox-sign/models/template_update_files_response.rb +19 -3
  326. data/lib/dropbox-sign/models/template_update_files_response_template.rb +9 -3
  327. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +29 -3
  328. data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_with_template_request.rb +39 -3
  329. data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +9 -3
  330. data/lib/dropbox-sign/models/unclaimed_draft_create_response.rb +19 -3
  331. data/lib/dropbox-sign/models/unclaimed_draft_edit_and_resend_request.rb +19 -3
  332. data/lib/dropbox-sign/models/unclaimed_draft_response.rb +9 -3
  333. data/lib/dropbox-sign/models/warning_response.rb +29 -3
  334. data/lib/dropbox-sign/version.rb +2 -2
  335. data/lib/dropbox-sign.rb +5 -1
  336. data/openapi-config.yaml +4 -1
  337. data/openapi-sdk.yaml +3359 -2713
  338. data/run-build +1 -1
  339. data/spec/spec_helper.rb +1 -1
  340. data/templates/README.mustache +2 -2
  341. data/templates/api_client_typhoeus_partial.mustache +7 -8
  342. data/templates/api_doc.mustache +2 -2
  343. data/templates/configuration.mustache +1 -1
  344. data/templates/partial_model_generic.mustache +28 -6
  345. data/test_fixtures/BulkSendJobGetResponse.json +9 -0
  346. data/test_fixtures/FaxGetResponse.json +9 -1
  347. data/test_fixtures/FaxListResponse.json +9 -1
  348. data/test_fixtures/SignatureRequestBulkCreateEmbeddedWithTemplateRequest.json +7 -1
  349. data/test_fixtures/SignatureRequestBulkSendWithTemplateRequest.json +7 -1
  350. data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +7 -1
  351. data/test_fixtures/SignatureRequestCreateEmbeddedWithTemplateRequest.json +7 -1
  352. data/test_fixtures/SignatureRequestGetResponse.json +11 -1
  353. data/test_fixtures/SignatureRequestListResponse.json +9 -1
  354. data/test_fixtures/SignatureRequestSendRequest.json +5 -1
  355. data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +7 -1
  356. data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +5 -0
  357. data/test_fixtures/TemplateCreateRequest.json +5 -0
  358. data/test_fixtures/TemplateGetResponse.json +9 -1
  359. data/test_fixtures/TemplateListResponse.json +9 -1
  360. data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +5 -0
  361. data/test_fixtures/UnclaimedDraftCreateEmbeddedWithTemplateRequest.json +5 -0
  362. data/test_fixtures/UnclaimedDraftCreateRequest.json +5 -0
  363. metadata +109 -82
  364. data/examples/AccountCreate.rb +0 -21
  365. data/examples/AccountGet.rb +0 -18
  366. data/examples/AccountUpdate.rb +0 -21
  367. data/examples/AccountVerify.rb +0 -21
  368. data/examples/ApiAppCreate.rb +0 -35
  369. data/examples/ApiAppDelete.rb +0 -20
  370. data/examples/ApiAppGet.rb +0 -20
  371. data/examples/ApiAppList.rb +0 -21
  372. data/examples/ApiAppUpdate.rb +0 -32
  373. data/examples/BulkSendJobGet.rb +0 -20
  374. data/examples/BulkSendJobList.rb +0 -21
  375. data/examples/EmbeddedEditUrl.rb +0 -24
  376. data/examples/EmbeddedSignUrl.rb +0 -20
  377. data/examples/FaxDelete.rb +0 -14
  378. data/examples/FaxFiles.rb +0 -17
  379. data/examples/FaxGet.rb +0 -17
  380. data/examples/FaxLineAddUser.rb +0 -19
  381. data/examples/FaxLineAreaCodeGet.rb +0 -15
  382. data/examples/FaxLineCreate.rb +0 -19
  383. data/examples/FaxLineDelete.rb +0 -17
  384. data/examples/FaxLineGet.rb +0 -15
  385. data/examples/FaxLineList.rb +0 -15
  386. data/examples/FaxLineRemoveUser.rb +0 -19
  387. data/examples/FaxList.rb +0 -18
  388. data/examples/FaxSend.rb +0 -25
  389. data/examples/OauthTokenGenerate.rb +0 -16
  390. data/examples/OauthTokenRefresh.rb +0 -13
  391. data/examples/ReportCreate.rb +0 -23
  392. data/examples/SignatureRequestBulkCreateEmbeddedWithTemplate.rb +0 -59
  393. data/examples/SignatureRequestBulkSendWithTemplate.rb +0 -58
  394. data/examples/SignatureRequestCancel.rb +0 -20
  395. data/examples/SignatureRequestCreateEmbedded.rb +0 -46
  396. data/examples/SignatureRequestCreateEmbeddedWithTemplate.rb +0 -39
  397. data/examples/SignatureRequestEdit.rb +0 -58
  398. data/examples/SignatureRequestEditEmbedded.rb +0 -48
  399. data/examples/SignatureRequestEditEmbeddedWithTemplate.rb +0 -41
  400. data/examples/SignatureRequestEditWithTemplate.rb +0 -52
  401. data/examples/SignatureRequestFiles.rb +0 -20
  402. data/examples/SignatureRequestFilesAsDataUri.rb +0 -20
  403. data/examples/SignatureRequestFilesAsFileUrl.rb +0 -20
  404. data/examples/SignatureRequestGet.rb +0 -20
  405. data/examples/SignatureRequestList.rb +0 -21
  406. data/examples/SignatureRequestReleaseHold.rb +0 -20
  407. data/examples/SignatureRequestRemind.rb +0 -23
  408. data/examples/SignatureRequestRemove.rb +0 -20
  409. data/examples/SignatureRequestSend.rb +0 -56
  410. data/examples/SignatureRequestSendWithTemplate.rb +0 -50
  411. data/examples/SignatureRequestUpdate.rb +0 -24
  412. data/examples/TeamAddMember.rb +0 -21
  413. data/examples/TeamCreate.rb +0 -21
  414. data/examples/TeamDelete.rb +0 -18
  415. data/examples/TeamGet.rb +0 -18
  416. data/examples/TeamInfo.rb +0 -18
  417. data/examples/TeamInvites.rb +0 -20
  418. data/examples/TeamMembers.rb +0 -20
  419. data/examples/TeamRemoveMember.rb +0 -22
  420. data/examples/TeamSubTeams.rb +0 -20
  421. data/examples/TeamUpdate.rb +0 -21
  422. data/examples/TemplateAddUser.rb +0 -23
  423. data/examples/TemplateCreate.rb +0 -49
  424. data/examples/TemplateCreateEmbeddedDraft.rb +0 -49
  425. data/examples/TemplateDelete.rb +0 -20
  426. data/examples/TemplateFiles.rb +0 -20
  427. data/examples/TemplateFilesAsDataUri.rb +0 -20
  428. data/examples/TemplateFilesAsFileUrl.rb +0 -20
  429. data/examples/TemplateGet.rb +0 -20
  430. data/examples/TemplateList.rb +0 -20
  431. data/examples/TemplateRemoveUser.rb +0 -23
  432. data/examples/TemplateUpdateFiles.rb +0 -23
  433. data/examples/UnclaimedDraftCreate.rb +0 -56
  434. data/examples/UnclaimedDraftCreateEmbedded.rb +0 -24
  435. data/examples/UnclaimedDraftCreateEmbeddedWithTemplate.rb +0 -35
  436. data/examples/UnclaimedDraftEditAndResend.rb +0 -24
  437. /data/examples/{EventCallback.rb → EventCallbackExample.rb} +0 -0
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- signature_request_id = "fa5c8a0b0f492d768749333ad6fcc214c111e967"
14
-
15
- begin
16
- result = signature_request_api.signature_request_get(signature_request_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,21 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- account_id = null
14
- page = 1
15
-
16
- begin
17
- result = signature_request_api.signature_request_list({ account_id: account_id, page: page })
18
- p result
19
- rescue Dropbox::Sign::ApiError => e
20
- puts "Exception when calling Dropbox Sign API: #{e}"
21
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
14
-
15
- begin
16
- result = signature_request_api.signature_request_release_hold(signature_request_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,23 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- data = Dropbox::Sign::SignatureRequestRemindRequest.new
14
- data.email_address = "john@example.com"
15
-
16
- signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
17
-
18
- begin
19
- result = signature_request_api.signature_request_remind(signature_request_id, data)
20
- p result
21
- rescue Dropbox::Sign::ApiError => e
22
- puts "Exception when calling Dropbox Sign API: #{e}"
23
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
14
-
15
- begin
16
- result = signature_request_api.signature_request_remove(signature_request_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,56 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- signer_1 = Dropbox::Sign::SubSignatureRequestSigner.new
14
- signer_1.email_address = "jack@example.com"
15
- signer_1.name = "Jack"
16
- signer_1.order = 0
17
-
18
- signer_2 = Dropbox::Sign::SubSignatureRequestSigner.new
19
- signer_2.email_address = "jill@example.com"
20
- signer_2.name = "Jill"
21
- signer_2.order = 1
22
-
23
- signing_options = Dropbox::Sign::SubSigningOptions.new
24
- signing_options.draw = true
25
- signing_options.type = true
26
- signing_options.upload = true
27
- signing_options.phone = true
28
- signing_options.default_type = "draw"
29
-
30
- field_options = Dropbox::Sign::SubFieldOptions.new
31
- field_options.date_format = "DD - MM - YYYY"
32
-
33
- data = Dropbox::Sign::SignatureRequestSendRequest.new
34
- data.title = "NDA with Acme Co."
35
- data.subject = "The NDA we talked about"
36
- data.message = "Please sign this NDA and then we can discuss more. Let me know if you have any questions."
37
- data.signers = [signer_1, signer_2]
38
- data.cc_email_addresses = [
39
- "lawyer1@dropboxsign.com",
40
- "lawyer2@dropboxsign.com",
41
- ]
42
- data.files = [File.new("example_signature_request.pdf", "r")]
43
- data.metadata = {
44
- custom_id: 1234,
45
- custom_text: "NDA #9",
46
- }
47
- data.signing_options = signing_options
48
- data.field_options = field_options
49
- data.test_mode = true
50
-
51
- begin
52
- result = signature_request_api.signature_request_send(data)
53
- p result
54
- rescue Dropbox::Sign::ApiError => e
55
- puts "Exception when calling Dropbox Sign API: #{e}"
56
- end
@@ -1,50 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- signer_1 = Dropbox::Sign::SubSignatureRequestTemplateSigner.new
14
- signer_1.role = "Client"
15
- signer_1.email_address = "george@example.com"
16
- signer_1.name = "George"
17
-
18
- cc_1 = Dropbox::Sign::SubCC.new
19
- cc_1.role = "Accounting"
20
- cc_1.email_address = "accounting@example.com"
21
-
22
- custom_field_1 = Dropbox::Sign::SubCustomField.new
23
- custom_field_1.name = "Cost"
24
- custom_field_1.value = "$20,000"
25
- custom_field_1.editor = "Client"
26
- custom_field_1.required = true
27
-
28
- signing_options = Dropbox::Sign::SubSigningOptions.new
29
- signing_options.draw = true
30
- signing_options.type = true
31
- signing_options.upload = true
32
- signing_options.phone = false
33
- signing_options.default_type = "draw"
34
-
35
- data = Dropbox::Sign::SignatureRequestSendWithTemplateRequest.new
36
- data.template_ids = ["c26b8a16784a872da37ea946b9ddec7c1e11dff6"]
37
- data.subject = "Purchase Order"
38
- data.message = "Glad we could come to an agreement."
39
- data.signers = [signer_1]
40
- data.ccs = [cc_1]
41
- data.custom_fields = [custom_field_1]
42
- data.signing_options = signing_options
43
- data.test_mode = true
44
-
45
- begin
46
- result = signature_request_api.signature_request_send_with_template(data)
47
- p result
48
- rescue Dropbox::Sign::ApiError => e
49
- puts "Exception when calling Dropbox Sign API: #{e}"
50
- end
@@ -1,24 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- signature_request_api = Dropbox::Sign::SignatureRequestApi.new
12
-
13
- data = Dropbox::Sign::SignatureRequestUpdateRequest.new
14
- data.email_address = "john@example.com"
15
- data.signature_id = "78caf2a1d01cd39cea2bc1cbb340dac3"
16
-
17
- signature_request_id = "2f9781e1a8e2045224d808c153c2e1d3df6f8f2f"
18
-
19
- begin
20
- result = signature_request_api.signature_request_update(signature_request_id, data)
21
- p result
22
- rescue Dropbox::Sign::ApiError => e
23
- puts "Exception when calling Dropbox Sign API: #{e}"
24
- end
@@ -1,21 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- data = Dropbox::Sign::TeamAddMemberRequest.new
14
- data.email_address = "george@example.com"
15
-
16
- begin
17
- result = team_api.team_add_member(data)
18
- p result
19
- rescue Dropbox::Sign::ApiError => e
20
- puts "Exception when calling Dropbox Sign API: #{e}"
21
- end
@@ -1,21 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- data = Dropbox::Sign::TeamCreateRequest.new
14
- data.name = "New Team Name"
15
-
16
- begin
17
- result = team_api.team_create(data)
18
- p result
19
- rescue Dropbox::Sign::ApiError => e
20
- puts "Exception when calling Dropbox Sign API: #{e}"
21
- end
@@ -1,18 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- begin
14
- result = team_api.team_delete
15
- p result
16
- rescue Dropbox::Sign::ApiError => e
17
- puts "Exception when calling Dropbox Sign API: #{e}"
18
- end
data/examples/TeamGet.rb DELETED
@@ -1,18 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- begin
14
- result = team_api.team_get
15
- p result
16
- rescue Dropbox::Sign::ApiError => e
17
- puts "Exception when calling Dropbox Sign API: #{e}"
18
- end
data/examples/TeamInfo.rb DELETED
@@ -1,18 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- begin
14
- result = team_api.team_info
15
- p result
16
- rescue Dropbox::Sign::ApiError => e
17
- puts "Exception when calling Dropbox Sign API: #{e}"
18
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- email_address = "user@dropboxsign.com"
14
-
15
- begin
16
- result = team_api.team_invites({ email_address: email_address })
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- team_id = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
14
-
15
- begin
16
- result = team_api.team_members(team_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,22 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- data = Dropbox::Sign::TeamRemoveMemberRequest.new
14
- data.email_address = "teammate@dropboxsign.com"
15
- data.new_owner_email_address = "new_teammate@dropboxsign.com"
16
-
17
- begin
18
- result = team_api.team_remove_member(data)
19
- p result
20
- rescue Dropbox::Sign::ApiError => e
21
- puts "Exception when calling Dropbox Sign API: #{e}"
22
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- team_id = "4fea99bfcf2b26bfccf6cea3e127fb8bb74d8d9c"
14
-
15
- begin
16
- result = team_api.team_sub_teams(team_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,21 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- team_api = Dropbox::Sign::TeamApi.new
12
-
13
- data = Dropbox::Sign::TeamUpdateRequest.new
14
- data.name = "New Team Name"
15
-
16
- begin
17
- result = team_api.team_update(data)
18
- p result
19
- rescue Dropbox::Sign::ApiError => e
20
- puts "Exception when calling Dropbox Sign API: #{e}"
21
- end
@@ -1,23 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- data = Dropbox::Sign::TemplateAddUserRequest.new
14
- data.email_address = "george@dropboxsign.com"
15
-
16
- template_id = "f57db65d3f933b5316d398057a36176831451a35"
17
-
18
- begin
19
- result = template_api.template_add_user(template_id, data)
20
- p result
21
- rescue Dropbox::Sign::ApiError => e
22
- puts "Exception when calling Dropbox Sign API: #{e}"
23
- end
@@ -1,49 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- role_1 = Dropbox::Sign::SubTemplateRole.new
14
- role_1.name = "Client"
15
- role_1.order = 0
16
-
17
- role_2 = Dropbox::Sign::SubTemplateRole.new
18
- role_2.name = "Witness"
19
- role_2.order = 1
20
-
21
- merge_field_1 = Dropbox::Sign::SubMergeField.new
22
- merge_field_1.name = "Full Name"
23
- merge_field_1.type = "text"
24
-
25
- merge_field_2 = Dropbox::Sign::SubMergeField.new
26
- merge_field_2.name = "Is Registered?"
27
- merge_field_2.type = "checkbox"
28
-
29
- field_options = Dropbox::Sign::SubFieldOptions.new
30
- field_options.date_format = "DD - MM - YYYY"
31
-
32
- data = Dropbox::Sign::TemplateCreateRequest.new
33
- data.client_id = "37dee8d8440c66d54cfa05d92c160882"
34
- data.files = [File.new("example_signature_request.pdf", "r")]
35
- data.title = "Test Template"
36
- data.subject = "Please sign this document"
37
- data.message = "For your approval"
38
- data.signer_roles = [role_1, role_2]
39
- data.cc_roles = ["Manager"]
40
- data.merge_fields = [merge_field_1, merge_field_2]
41
- data.field_options = field_options
42
- data.test_mode = true
43
-
44
- begin
45
- result = template_api.template_create(data)
46
- p result
47
- rescue Dropbox::Sign::ApiError => e
48
- puts "Exception when calling Dropbox Sign API: #{e}"
49
- end
@@ -1,49 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- role_1 = Dropbox::Sign::SubTemplateRole.new
14
- role_1.name = "Client"
15
- role_1.order = 0
16
-
17
- role_2 = Dropbox::Sign::SubTemplateRole.new
18
- role_2.name = "Witness"
19
- role_2.order = 1
20
-
21
- merge_field_1 = Dropbox::Sign::SubMergeField.new
22
- merge_field_1.name = "Full Name"
23
- merge_field_1.type = "text"
24
-
25
- merge_field_2 = Dropbox::Sign::SubMergeField.new
26
- merge_field_2.name = "Is Registered?"
27
- merge_field_2.type = "checkbox"
28
-
29
- field_options = Dropbox::Sign::SubFieldOptions.new
30
- field_options.date_format = "DD - MM - YYYY"
31
-
32
- data = Dropbox::Sign::TemplateCreateEmbeddedDraftRequest.new
33
- data.client_id = "37dee8d8440c66d54cfa05d92c160882"
34
- data.files = [File.new("example_signature_request.pdf", "r")]
35
- data.title = "Test Template"
36
- data.subject = "Please sign this document"
37
- data.message = "For your approval"
38
- data.signer_roles = [role_1, role_2]
39
- data.cc_roles = ["Manager"]
40
- data.merge_fields = [merge_field_1, merge_field_2]
41
- data.field_options = field_options
42
- data.test_mode = true
43
-
44
- begin
45
- result = template_api.template_create_embedded_draft(data)
46
- p result
47
- rescue Dropbox::Sign::ApiError => e
48
- puts "Exception when calling Dropbox Sign API: #{e}"
49
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- template_id = "5de8179668f2033afac48da1868d0093bf133266"
14
-
15
- begin
16
- result = template_api.template_delete(template_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- template_id = "5de8179668f2033afac48da1868d0093bf133266"
14
-
15
- begin
16
- file_bin = template_api.template_files(template_id)
17
- FileUtils.cp(file_bin.path, "path/to/file.pdf")
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- template_id = "5de8179668f2033afac48da1868d0093bf133266"
14
-
15
- begin
16
- result = template_api.template_files_as_data_uri(template_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end
@@ -1,20 +0,0 @@
1
- require "dropbox-sign"
2
-
3
- Dropbox::Sign.configure do |config|
4
- # Configure HTTP basic authorization: api_key
5
- config.username = "YOUR_API_KEY"
6
-
7
- # or, configure Bearer (JWT) authorization: oauth2
8
- # config.access_token = "YOUR_ACCESS_TOKEN"
9
- end
10
-
11
- template_api = Dropbox::Sign::TemplateApi.new
12
-
13
- template_id = "5de8179668f2033afac48da1868d0093bf133266"
14
-
15
- begin
16
- result = template_api.template_files_as_file_url(template_id)
17
- p result
18
- rescue Dropbox::Sign::ApiError => e
19
- puts "Exception when calling Dropbox Sign API: #{e}"
20
- end