dropbox-sign 1.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +9 -4
  4. data/VERSION +1 -1
  5. data/docs/OAuthApi.md +0 -16
  6. data/docs/SignatureRequestApi.md +1 -1
  7. data/docs/SignatureRequestSendRequest.md +1 -0
  8. data/docs/SignatureRequestSendWithTemplateRequest.md +1 -0
  9. data/docs/SignatureRequestUpdateRequest.md +1 -1
  10. data/docs/SubFormFieldsPerDocumentBase.md +1 -1
  11. data/docs/SubFormFieldsPerDocumentDateSigned.md +2 -0
  12. data/docs/SubFormFieldsPerDocumentDropdown.md +2 -0
  13. data/docs/SubFormFieldsPerDocumentFontEnum.md +9 -0
  14. data/docs/SubFormFieldsPerDocumentHyperlink.md +2 -0
  15. data/docs/SubFormFieldsPerDocumentText.md +3 -0
  16. data/docs/SubFormFieldsPerDocumentTextMerge.md +2 -0
  17. data/docs/SubWhiteLabelingOptions.md +1 -1
  18. data/docs/TemplateApi.md +102 -0
  19. data/docs/TemplateCreateRequest.md +27 -0
  20. data/docs/TemplateCreateResponse.md +11 -0
  21. data/docs/TemplateCreateResponseTemplate.md +10 -0
  22. data/examples/OauthTokenGenerate.rb +0 -8
  23. data/examples/OauthTokenRefresh.rb +0 -8
  24. data/examples/TemplateCreate.rb +49 -0
  25. data/lib/dropbox-sign/api/signature_request_api.rb +2 -2
  26. data/lib/dropbox-sign/api/template_api.rb +109 -0
  27. data/lib/dropbox-sign/models/signature_request_send_request.rb +14 -1
  28. data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +14 -1
  29. data/lib/dropbox-sign/models/signature_request_update_request.rb +1 -1
  30. data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +1 -1
  31. data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +60 -4
  32. data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +60 -4
  33. data/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb +54 -0
  34. data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +60 -4
  35. data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +49 -4
  36. data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +60 -4
  37. data/lib/dropbox-sign/models/sub_white_labeling_options.rb +1 -1
  38. data/lib/dropbox-sign/models/template_create_request.rb +509 -0
  39. data/lib/dropbox-sign/models/template_create_response.rb +263 -0
  40. data/lib/dropbox-sign/models/template_create_response_template.rb +252 -0
  41. data/lib/dropbox-sign/version.rb +1 -1
  42. data/lib/dropbox-sign.rb +4 -0
  43. data/openapi-config.yaml +1 -1
  44. data/openapi-sdk.yaml +701 -241
  45. data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +6 -2
  46. data/test_fixtures/SignatureRequestSendRequest.json +8 -2
  47. data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +1 -0
  48. data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +3 -1
  49. data/test_fixtures/TemplateCreateRequest.json +120 -0
  50. data/test_fixtures/TemplateCreateResponse.json +7 -0
  51. data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +3 -1
  52. data/test_fixtures/UnclaimedDraftCreateRequest.json +3 -1
  53. metadata +21 -10
@@ -69,7 +69,9 @@
69
69
  "required": true,
70
70
  "signer": "0",
71
71
  "page": 1,
72
- "validation_type": "numbers_only"
72
+ "validation_type": "numbers_only",
73
+ "font_family": "roboto",
74
+ "font_size": 11
73
75
  },
74
76
  {
75
77
  "document_index": 0,
@@ -185,7 +187,9 @@
185
187
  "required": true,
186
188
  "signer": "0",
187
189
  "page": 1,
188
- "validation_type": "numbers_only"
190
+ "validation_type": "numbers_only",
191
+ "font_family": "roboto",
192
+ "font_size": 11
189
193
  },
190
194
  {
191
195
  "document_index": 0,
@@ -107,7 +107,9 @@
107
107
  "height": 30,
108
108
  "required": true,
109
109
  "signer": "1",
110
- "page": 1
110
+ "page": 1,
111
+ "font_family": "roboto",
112
+ "font_size": 11
111
113
  },
112
114
  {
113
115
  "document_index": 0,
@@ -184,6 +186,7 @@
184
186
  ],
185
187
  "hide_text_tags": true,
186
188
  "is_qualified_signature": false,
189
+ "is_eid": false,
187
190
  "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
188
191
  "metadata": {
189
192
  "custom_id": 1234,
@@ -334,7 +337,9 @@
334
337
  "height": 30,
335
338
  "required": true,
336
339
  "signer": "1",
337
- "page": 1
340
+ "page": 1,
341
+ "font_family": "roboto",
342
+ "font_size": 11
338
343
  },
339
344
  {
340
345
  "document_index": 0,
@@ -411,6 +416,7 @@
411
416
  ],
412
417
  "hide_text_tags": true,
413
418
  "is_qualified_signature": false,
419
+ "is_eid": false,
414
420
  "message": "Please sign this NDA and then we can discuss more. Let me know if you\nhave any questions.",
415
421
  "metadata": {
416
422
  "custom_id": 1234,
@@ -17,6 +17,7 @@
17
17
  }
18
18
  ],
19
19
  "is_qualified_signature": false,
20
+ "is_eid": false,
20
21
  "message": "Glad we could come to an agreement.",
21
22
  "metadata": {
22
23
  "field1": "value1"
@@ -66,7 +66,9 @@
66
66
  "required": true,
67
67
  "signer": "0",
68
68
  "page": 1,
69
- "validation_type": "numbers_only"
69
+ "validation_type": "numbers_only",
70
+ "font_family": "roboto",
71
+ "font_size": 11
70
72
  },
71
73
  {
72
74
  "document_index": 0,
@@ -0,0 +1,120 @@
1
+ {
2
+ "default": {
3
+ "allow_ccs": true,
4
+ "allow_reassign": true,
5
+ "attachments": [
6
+ {
7
+ "name": "Attachment1",
8
+ "signer_index": 1,
9
+ "instructions": "Upload your Driver's License",
10
+ "required": true
11
+ }
12
+ ],
13
+ "cc_roles": [
14
+ "Manager"
15
+ ],
16
+ "client_id": "37dee8d8440c66d54cfa05d92c160882",
17
+ "editor_options": {
18
+ "allow_edit_signers": true,
19
+ "allow_edit_documents": false
20
+ },
21
+ "field_options": {
22
+ "date_format": "DD - MM - YYYY"
23
+ },
24
+ "file_urls": [
25
+ "https://app.hellosign.com/docs/example_signature_request.pdf"
26
+ ],
27
+ "force_signer_roles": false,
28
+ "force_subject_message": false,
29
+ "form_field_groups": [
30
+ {
31
+ "group_id": "RadioGroup1",
32
+ "group_label": "Radio Group 1",
33
+ "requirement": "require_0-1"
34
+ }
35
+ ],
36
+ "form_field_rules": [
37
+ {
38
+ "id": "rule_1",
39
+ "trigger_operator": "AND",
40
+ "triggers": [
41
+ {
42
+ "id": "uniqueIdHere_1",
43
+ "operator": "is",
44
+ "value": "foo"
45
+ }
46
+ ],
47
+ "actions": [
48
+ {
49
+ "field_id": "uniqueIdHere_2",
50
+ "hidden": true,
51
+ "type": "change-field-visibility"
52
+ }
53
+ ]
54
+ }
55
+ ],
56
+ "form_fields_per_document": [
57
+ {
58
+ "document_index": 0,
59
+ "api_id": "uniqueIdHere_1",
60
+ "name": "",
61
+ "type": "text",
62
+ "x": 112,
63
+ "y": 328,
64
+ "width": 100,
65
+ "height": 16,
66
+ "required": true,
67
+ "signer": "0",
68
+ "page": 1,
69
+ "validation_type": "numbers_only",
70
+ "font_family": "roboto",
71
+ "font_size": 11
72
+ },
73
+ {
74
+ "document_index": 0,
75
+ "api_id": "uniqueIdHere_2",
76
+ "name": "",
77
+ "type": "signature",
78
+ "x": 530,
79
+ "y": 415,
80
+ "width": 120,
81
+ "height": 30,
82
+ "required": true,
83
+ "signer": "0",
84
+ "page": 1
85
+ }
86
+ ],
87
+ "merge_fields": [
88
+ {
89
+ "name": "Full Name",
90
+ "type": "text"
91
+ },
92
+ {
93
+ "name": "Is Registered?",
94
+ "type": "checkbox"
95
+ }
96
+ ],
97
+ "message": "For your approval",
98
+ "metadata": {
99
+ "custom_id": 1234,
100
+ "custom_text": "NDA #9"
101
+ },
102
+ "show_preview": true,
103
+ "show_progress_stepper": true,
104
+ "signer_roles": [
105
+ {
106
+ "name": "Client",
107
+ "order": 0
108
+ },
109
+ {
110
+ "name": "Witness",
111
+ "order": 1
112
+ }
113
+ ],
114
+ "skip_me_now": true,
115
+ "subject": "Please sign this document",
116
+ "test_mode": true,
117
+ "title": "Test Template",
118
+ "use_preexisting_fields": true
119
+ }
120
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "default": {
3
+ "template": {
4
+ "template_id": "21f920ec2b7f4b6bb64d3ed79f26303843046536"
5
+ }
6
+ }
7
+ }
@@ -76,7 +76,9 @@
76
76
  "required": true,
77
77
  "signer": "0",
78
78
  "page": 1,
79
- "validation_type": "numbers_only"
79
+ "validation_type": "numbers_only",
80
+ "font_family": "roboto",
81
+ "font_size": 11
80
82
  },
81
83
  {
82
84
  "document_index": 0,
@@ -67,7 +67,9 @@
67
67
  "required": true,
68
68
  "signer": "0",
69
69
  "page": 1,
70
- "validation_type": "numbers_only"
70
+ "validation_type": "numbers_only",
71
+ "font_family": "roboto",
72
+ "font_size": 11
71
73
  },
72
74
  {
73
75
  "document_index": 0,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropbox-sign
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dropbox
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2023-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -165,6 +165,7 @@ files:
165
165
  - docs/SubFormFieldsPerDocumentCheckboxMerge.md
166
166
  - docs/SubFormFieldsPerDocumentDateSigned.md
167
167
  - docs/SubFormFieldsPerDocumentDropdown.md
168
+ - docs/SubFormFieldsPerDocumentFontEnum.md
168
169
  - docs/SubFormFieldsPerDocumentHyperlink.md
169
170
  - docs/SubFormFieldsPerDocumentInitials.md
170
171
  - docs/SubFormFieldsPerDocumentRadio.md
@@ -204,6 +205,9 @@ files:
204
205
  - docs/TemplateCreateEmbeddedDraftRequest.md
205
206
  - docs/TemplateCreateEmbeddedDraftResponse.md
206
207
  - docs/TemplateCreateEmbeddedDraftResponseTemplate.md
208
+ - docs/TemplateCreateRequest.md
209
+ - docs/TemplateCreateResponse.md
210
+ - docs/TemplateCreateResponseTemplate.md
207
211
  - docs/TemplateEditResponse.md
208
212
  - docs/TemplateGetResponse.md
209
213
  - docs/TemplateListResponse.md
@@ -294,6 +298,7 @@ files:
294
298
  - examples/TeamSubTeams.rb
295
299
  - examples/TeamUpdate.rb
296
300
  - examples/TemplateAddUser.rb
301
+ - examples/TemplateCreate.rb
297
302
  - examples/TemplateCreateEmbeddedDraft.rb
298
303
  - examples/TemplateDelete.rb
299
304
  - examples/TemplateFiles.rb
@@ -408,6 +413,7 @@ files:
408
413
  - lib/dropbox-sign/models/sub_form_fields_per_document_checkbox_merge.rb
409
414
  - lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb
410
415
  - lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb
416
+ - lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb
411
417
  - lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb
412
418
  - lib/dropbox-sign/models/sub_form_fields_per_document_initials.rb
413
419
  - lib/dropbox-sign/models/sub_form_fields_per_document_radio.rb
@@ -445,6 +451,9 @@ files:
445
451
  - lib/dropbox-sign/models/template_create_embedded_draft_request.rb
446
452
  - lib/dropbox-sign/models/template_create_embedded_draft_response.rb
447
453
  - lib/dropbox-sign/models/template_create_embedded_draft_response_template.rb
454
+ - lib/dropbox-sign/models/template_create_request.rb
455
+ - lib/dropbox-sign/models/template_create_response.rb
456
+ - lib/dropbox-sign/models/template_create_response_template.rb
448
457
  - lib/dropbox-sign/models/template_edit_response.rb
449
458
  - lib/dropbox-sign/models/template_get_response.rb
450
459
  - lib/dropbox-sign/models/template_list_response.rb
@@ -589,6 +598,8 @@ files:
589
598
  - test_fixtures/TemplateAddUserRequest.json
590
599
  - test_fixtures/TemplateCreateEmbeddedDraftRequest.json
591
600
  - test_fixtures/TemplateCreateEmbeddedDraftResponse.json
601
+ - test_fixtures/TemplateCreateRequest.json
602
+ - test_fixtures/TemplateCreateResponse.json
592
603
  - test_fixtures/TemplateGetResponse.json
593
604
  - test_fixtures/TemplateListResponse.json
594
605
  - test_fixtures/TemplateRemoveUserRequest.json
@@ -606,7 +617,7 @@ homepage: https://hellosign.com
606
617
  licenses:
607
618
  - MIT
608
619
  metadata: {}
609
- post_install_message:
620
+ post_install_message:
610
621
  rdoc_options: []
611
622
  require_paths:
612
623
  - lib
@@ -622,20 +633,20 @@ required_rubygems_version: !ruby/object:Gem::Requirement
622
633
  version: '0'
623
634
  requirements: []
624
635
  rubygems_version: 3.3.26
625
- signing_key:
636
+ signing_key:
626
637
  specification_version: 4
627
638
  summary: Dropbox Sign API Ruby Gem
628
639
  test_files:
629
- - spec/api/unclaimed_draft_api_spec.rb
630
- - spec/api/bulk_send_job_api_spec.rb
631
640
  - spec/api/signature_request_api_spec.rb
632
- - spec/api/template_api_spec.rb
633
641
  - spec/api/team_api_spec.rb
634
- - spec/api/embedded_api_spec.rb
635
642
  - spec/api/oauth_api_spec.rb
636
- - spec/api/account_api_spec.rb
637
643
  - spec/api/report_api_spec.rb
644
+ - spec/api/embedded_api_spec.rb
638
645
  - spec/api/api_app_api_spec.rb
646
+ - spec/api/account_api_spec.rb
647
+ - spec/api/template_api_spec.rb
648
+ - spec/api/unclaimed_draft_api_spec.rb
649
+ - spec/api/bulk_send_job_api_spec.rb
639
650
  - spec/api_client_spec.rb
640
651
  - spec/configuration_spec.rb
641
652
  - spec/event_callback_helper_spec.rb