dropbox-sign 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -2
- data/README.md +9 -4
- data/VERSION +1 -1
- data/docs/OAuthApi.md +0 -16
- data/docs/SignatureRequestApi.md +1 -1
- data/docs/SignatureRequestCreateEmbeddedRequest.md +1 -1
- data/docs/SignatureRequestSendRequest.md +2 -1
- data/docs/SignatureRequestSendWithTemplateRequest.md +1 -0
- data/docs/SignatureRequestUpdateRequest.md +1 -1
- data/docs/SubFormFieldsPerDocumentBase.md +2 -2
- data/docs/SubFormFieldsPerDocumentDateSigned.md +2 -0
- data/docs/SubFormFieldsPerDocumentDropdown.md +2 -0
- data/docs/SubFormFieldsPerDocumentFontEnum.md +9 -0
- data/docs/SubFormFieldsPerDocumentHyperlink.md +2 -0
- data/docs/SubFormFieldsPerDocumentText.md +3 -0
- data/docs/SubFormFieldsPerDocumentTextMerge.md +2 -0
- data/docs/SubWhiteLabelingOptions.md +1 -1
- data/docs/TemplateApi.md +102 -0
- data/docs/TemplateCreateEmbeddedDraftRequest.md +1 -1
- data/docs/TemplateCreateRequest.md +27 -0
- data/docs/TemplateCreateResponse.md +11 -0
- data/docs/TemplateCreateResponseTemplate.md +10 -0
- data/docs/UnclaimedDraftCreateEmbeddedRequest.md +1 -1
- data/docs/UnclaimedDraftCreateRequest.md +1 -1
- data/examples/OauthTokenGenerate.rb +0 -8
- data/examples/OauthTokenRefresh.rb +0 -8
- data/examples/TemplateCreate.rb +49 -0
- data/lib/dropbox-sign/api/signature_request_api.rb +2 -2
- data/lib/dropbox-sign/api/template_api.rb +109 -0
- data/lib/dropbox-sign/configuration.rb +1 -1
- data/lib/dropbox-sign/models/signature_request_create_embedded_request.rb +1 -1
- data/lib/dropbox-sign/models/signature_request_send_request.rb +15 -2
- data/lib/dropbox-sign/models/signature_request_send_with_template_request.rb +14 -1
- data/lib/dropbox-sign/models/signature_request_update_request.rb +1 -1
- data/lib/dropbox-sign/models/sub_form_fields_per_document_base.rb +2 -2
- data/lib/dropbox-sign/models/sub_form_fields_per_document_date_signed.rb +60 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_dropdown.rb +60 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_font_enum.rb +54 -0
- data/lib/dropbox-sign/models/sub_form_fields_per_document_hyperlink.rb +60 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text.rb +49 -4
- data/lib/dropbox-sign/models/sub_form_fields_per_document_text_merge.rb +60 -4
- data/lib/dropbox-sign/models/sub_white_labeling_options.rb +1 -1
- data/lib/dropbox-sign/models/template_create_embedded_draft_request.rb +1 -1
- data/lib/dropbox-sign/models/template_create_request.rb +509 -0
- data/lib/dropbox-sign/models/template_create_response.rb +263 -0
- data/lib/dropbox-sign/models/template_create_response_template.rb +252 -0
- data/lib/dropbox-sign/models/unclaimed_draft_create_embedded_request.rb +1 -1
- data/lib/dropbox-sign/models/unclaimed_draft_create_request.rb +1 -1
- data/lib/dropbox-sign/version.rb +1 -1
- data/lib/dropbox-sign.rb +4 -0
- data/openapi-config.yaml +1 -1
- data/openapi-sdk.yaml +1673 -1261
- data/spec/configuration_spec.rb +5 -7
- data/templates/configuration.mustache +1 -1
- data/templates/configuration_spec.mustache +5 -7
- data/test_fixtures/SignatureRequestCreateEmbeddedRequest.json +6 -2
- data/test_fixtures/SignatureRequestSendRequest.json +8 -2
- data/test_fixtures/SignatureRequestSendWithTemplateRequest.json +1 -0
- data/test_fixtures/TemplateCreateEmbeddedDraftRequest.json +3 -1
- data/test_fixtures/TemplateCreateRequest.json +120 -0
- data/test_fixtures/TemplateCreateResponse.json +7 -0
- data/test_fixtures/UnclaimedDraftCreateEmbeddedRequest.json +3 -1
- data/test_fixtures/UnclaimedDraftCreateRequest.json +3 -1
- metadata +23 -12
data/spec/configuration_spec.rb
CHANGED
@@ -17,18 +17,16 @@ describe Dropbox::Sign::Configuration do
|
|
17
17
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
# c.base_path = uri.path
|
25
|
-
# end
|
20
|
+
Dropbox::Sign.configure do |c|
|
21
|
+
c.host = "api.hellosign.com"
|
22
|
+
c.base_path = "/v3"
|
23
|
+
end
|
26
24
|
end
|
27
25
|
|
28
26
|
describe '#base_url' do
|
29
27
|
it 'should have the default value' do
|
30
28
|
# uncomment below to test default value of the base path
|
31
|
-
|
29
|
+
expect(config.base_url).to eq("https://api.hellosign.com/v3")
|
32
30
|
end
|
33
31
|
|
34
32
|
it 'should remove trailing slashes' do
|
@@ -229,7 +229,7 @@ module {{moduleName}}
|
|
229
229
|
[
|
230
230
|
{{#servers}}
|
231
231
|
{
|
232
|
-
url: "#{scheme}://#{host
|
232
|
+
url: "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, ''),
|
233
233
|
description: "{{{description}}}{{^description}}No description provided{{/description}}",
|
234
234
|
{{#variables}}
|
235
235
|
{{#-first}}
|
@@ -9,18 +9,16 @@ describe {{moduleName}}::Configuration do
|
|
9
9
|
|
10
10
|
before(:each) do
|
11
11
|
# uncomment below to setup host and base_path
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
# c.base_path = uri.path
|
17
|
-
# end
|
12
|
+
{{moduleName}}.configure do |c|
|
13
|
+
c.host = "{{host}}"
|
14
|
+
c.base_path = "{{contextPath}}"
|
15
|
+
end
|
18
16
|
end
|
19
17
|
|
20
18
|
describe '#base_url' do
|
21
19
|
it 'should have the default value' do
|
22
20
|
# uncomment below to test default value of the base path
|
23
|
-
|
21
|
+
expect(config.base_url).to eq("{{{basePath}}}")
|
24
22
|
end
|
25
23
|
|
26
24
|
it 'should remove trailing slashes' do
|
@@ -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,
|
@@ -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
|
+
}
|
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.
|
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-
|
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/account_api_spec.rb
|
630
|
-
- spec/api/unclaimed_draft_api_spec.rb
|
631
640
|
- spec/api/signature_request_api_spec.rb
|
632
|
-
- spec/api/
|
633
|
-
- spec/api/report_api_spec.rb
|
634
|
-
- spec/api/bulk_send_job_api_spec.rb
|
641
|
+
- spec/api/team_api_spec.rb
|
635
642
|
- spec/api/oauth_api_spec.rb
|
636
|
-
- spec/api/
|
643
|
+
- spec/api/report_api_spec.rb
|
637
644
|
- spec/api/embedded_api_spec.rb
|
638
|
-
- spec/api/
|
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
|