docspring 1.3.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/Gemfile.lock +3 -8
  4. data/LICENSE +1 -1
  5. data/README.md +13 -5
  6. data/docs/CombinePdfsData.md +1 -0
  7. data/docs/CombinedSubmission.md +1 -0
  8. data/docs/CombinedSubmissionData.md +1 -0
  9. data/docs/CopyTemplateData.md +9 -0
  10. data/docs/ListSubmissionsResponse.md +10 -0
  11. data/docs/MoveTemplateData.md +1 -1
  12. data/docs/PDFApi.md +232 -4
  13. data/docs/SubmissionData.md +1 -0
  14. data/docs/SubmissionDataRequest.md +1 -0
  15. data/docs/Template1.md +46 -0
  16. data/docs/Template1Defaults.md +10 -0
  17. data/docspring.gemspec +1 -2
  18. data/lib/docspring/api/pdf_api.rb +244 -2
  19. data/lib/docspring/api_client.rb +1 -1
  20. data/lib/docspring/configuration.rb +1 -2
  21. data/lib/docspring/models/combine_pdfs_data.rb +10 -1
  22. data/lib/docspring/models/combined_submission.rb +10 -1
  23. data/lib/docspring/models/combined_submission_data.rb +10 -1
  24. data/lib/docspring/models/copy_template_data.rb +197 -0
  25. data/lib/docspring/models/list_submissions_response.rb +203 -0
  26. data/lib/docspring/models/move_template_data.rb +5 -0
  27. data/lib/docspring/models/submission_data.rb +10 -1
  28. data/lib/docspring/models/submission_data_request.rb +15 -1
  29. data/lib/docspring/models/template1.rb +565 -0
  30. data/lib/docspring/models/template1_defaults.rb +201 -0
  31. data/lib/docspring/version.rb +1 -1
  32. data/lib/docspring.rb +4 -0
  33. data/spec/api/client_integration_spec.rb +1 -1
  34. data/spec/api/pdf_api_spec_original.skipped.rb +78 -2
  35. data/spec/models/combine_pdfs_data_spec.rb +6 -0
  36. data/spec/models/combined_submission_data_spec.rb +6 -0
  37. data/spec/models/combined_submission_spec.rb +6 -0
  38. data/spec/models/copy_template_data_spec.rb +47 -0
  39. data/spec/models/list_submissions_response_spec.rb +53 -0
  40. data/spec/models/submission_data_request_spec.rb +6 -0
  41. data/spec/models/submission_data_spec.rb +6 -0
  42. data/spec/models/template1_defaults_spec.rb +53 -0
  43. data/spec/models/template1_spec.rb +273 -0
  44. metadata +23 -27
@@ -0,0 +1,273 @@
1
+ =begin
2
+ #API v1
3
+
4
+ #DocSpring is a service that helps you fill out and sign PDF templates.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 3.3.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for DocSpring::Template1
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'Template1' do
21
+ before do
22
+ # run before each test
23
+ @instance = DocSpring::Template1.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Template1' do
31
+ it 'should create an instance of Template1' do
32
+ expect(@instance).to be_instance_of(DocSpring::Template1)
33
+ end
34
+ end
35
+ describe 'test attribute "document_processed"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "expiration_interval"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["minutes", "hours", "days"])
45
+ # validator.allowable_values.each do |value|
46
+ # expect { @instance.expiration_interval = value }.not_to raise_error
47
+ # end
48
+ end
49
+ end
50
+
51
+ describe 'test attribute "scss"' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ describe 'test attribute "document_state"' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
63
+ describe 'test attribute "expire_after"' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
69
+ describe 'test attribute "description"' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
75
+ describe 'test attribute "slack_webhook_url"' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ describe 'test attribute "demo"' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ describe 'test attribute "path"' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ describe 'test attribute "header_html"' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
99
+ describe 'test attribute "public_web_form"' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ describe 'test attribute "field_order"' do
106
+ it 'should work' do
107
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ end
109
+ end
110
+
111
+ describe 'test attribute "permanent_document_url"' do
112
+ it 'should work' do
113
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
114
+ end
115
+ end
116
+
117
+ describe 'test attribute "html"' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
123
+ describe 'test attribute "template_type"' do
124
+ it 'should work' do
125
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
126
+ end
127
+ end
128
+
129
+ describe 'test attribute "id"' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
+ end
133
+ end
134
+
135
+ describe 'test attribute "page_dimensions"' do
136
+ it 'should work' do
137
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
138
+ end
139
+ end
140
+
141
+ describe 'test attribute "locked"' do
142
+ it 'should work' do
143
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
144
+ end
145
+ end
146
+
147
+ describe 'test attribute "page_count"' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
+ end
151
+ end
152
+
153
+ describe 'test attribute "encrypt_pdfs"' do
154
+ it 'should work' do
155
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
156
+ end
157
+ end
158
+
159
+ describe 'test attribute "webhook_url"' do
160
+ it 'should work' do
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+
165
+ describe 'test attribute "embed_domains"' do
166
+ it 'should work' do
167
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
168
+ end
169
+ end
170
+
171
+ describe 'test attribute "parent_folder_id"' do
172
+ it 'should work' do
173
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
174
+ end
175
+ end
176
+
177
+ describe 'test attribute "allow_additional_properties"' do
178
+ it 'should work' do
179
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
180
+ end
181
+ end
182
+
183
+ describe 'test attribute "encrypt_pdfs_password"' do
184
+ it 'should work' do
185
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
186
+ end
187
+ end
188
+
189
+ describe 'test attribute "public_submissions"' do
190
+ it 'should work' do
191
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
192
+ end
193
+ end
194
+
195
+ describe 'test attribute "shared_field_data"' do
196
+ it 'should work' do
197
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
198
+ end
199
+ end
200
+
201
+ describe 'test attribute "document_md5"' do
202
+ it 'should work' do
203
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
204
+ end
205
+ end
206
+
207
+ describe 'test attribute "first_template"' do
208
+ it 'should work' do
209
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
210
+ end
211
+ end
212
+
213
+ describe 'test attribute "defaults"' do
214
+ it 'should work' do
215
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
216
+ end
217
+ end
218
+
219
+ describe 'test attribute "editable_submissions"' do
220
+ it 'should work' do
221
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
222
+ end
223
+ end
224
+
225
+ describe 'test attribute "expire_submissions"' do
226
+ it 'should work' do
227
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
228
+ end
229
+ end
230
+
231
+ describe 'test attribute "name"' do
232
+ it 'should work' do
233
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
234
+ end
235
+ end
236
+
237
+ describe 'test attribute "footer_html"' do
238
+ it 'should work' do
239
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
240
+ end
241
+ end
242
+
243
+ describe 'test attribute "document_parse_error"' do
244
+ it 'should work' do
245
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
246
+ end
247
+ end
248
+
249
+ describe 'test attribute "fields"' do
250
+ it 'should work' do
251
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
252
+ end
253
+ end
254
+
255
+ describe 'test attribute "document_filename"' do
256
+ it 'should work' do
257
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
258
+ end
259
+ end
260
+
261
+ describe 'test attribute "redirect_url"' do
262
+ it 'should work' do
263
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
264
+ end
265
+ end
266
+
267
+ describe 'test attribute "document_url"' do
268
+ it 'should work' do
269
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
270
+ end
271
+ end
272
+
273
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docspring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
- - Form Applications, Inc.
8
- autorequire:
7
+ - DocSpring
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-26 00:00:00.000000000 Z
11
+ date: 2021-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -184,26 +184,6 @@ dependencies:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
186
  version: 0.2.16
187
- - !ruby/object:Gem::Dependency
188
- name: autotest-fsevent
189
- requirement: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - "~>"
192
- - !ruby/object:Gem::Version
193
- version: '0.2'
194
- - - ">="
195
- - !ruby/object:Gem::Version
196
- version: 0.2.15
197
- type: :development
198
- prerelease: false
199
- version_requirements: !ruby/object:Gem::Requirement
200
- requirements:
201
- - - "~>"
202
- - !ruby/object:Gem::Version
203
- version: '0.2'
204
- - - ">="
205
- - !ruby/object:Gem::Version
206
- version: 0.2.15
207
187
  description: Client library for the DocSpring PDF generation and e-signature service
208
188
  email:
209
189
  - support@docspring.com
@@ -230,6 +210,7 @@ files:
230
210
  - docs/CombinedSubmission.md
231
211
  - docs/CombinedSubmissionAction.md
232
212
  - docs/CombinedSubmissionData.md
213
+ - docs/CopyTemplateData.md
233
214
  - docs/CreateCombinedSubmissionResponse.md
234
215
  - docs/CreateCustomFileData.md
235
216
  - docs/CreateCustomFileResponse.md
@@ -248,6 +229,7 @@ files:
248
229
  - docs/FoldersFolder.md
249
230
  - docs/HtmlTemplateData.md
250
231
  - docs/InvalidRequest.md
232
+ - docs/ListSubmissionsResponse.md
251
233
  - docs/MoveFolderData.md
252
234
  - docs/MoveTemplateData.md
253
235
  - docs/PDFApi.md
@@ -261,6 +243,8 @@ files:
261
243
  - docs/SubmissionDataBatchRequest.md
262
244
  - docs/SubmissionDataRequest.md
263
245
  - docs/Template.md
246
+ - docs/Template1.md
247
+ - docs/Template1Defaults.md
264
248
  - docs/TemplateData.md
265
249
  - docs/TemplatestemplateIdaddFieldsFields.md
266
250
  - docs/UpdateDataRequestResponse.md
@@ -286,6 +270,7 @@ files:
286
270
  - lib/docspring/models/combined_submission.rb
287
271
  - lib/docspring/models/combined_submission_action.rb
288
272
  - lib/docspring/models/combined_submission_data.rb
273
+ - lib/docspring/models/copy_template_data.rb
289
274
  - lib/docspring/models/create_combined_submission_response.rb
290
275
  - lib/docspring/models/create_custom_file_data.rb
291
276
  - lib/docspring/models/create_custom_file_response.rb
@@ -304,6 +289,7 @@ files:
304
289
  - lib/docspring/models/folders_folder.rb
305
290
  - lib/docspring/models/html_template_data.rb
306
291
  - lib/docspring/models/invalid_request.rb
292
+ - lib/docspring/models/list_submissions_response.rb
307
293
  - lib/docspring/models/move_folder_data.rb
308
294
  - lib/docspring/models/move_template_data.rb
309
295
  - lib/docspring/models/pending_template.rb
@@ -316,6 +302,8 @@ files:
316
302
  - lib/docspring/models/submission_data_batch_request.rb
317
303
  - lib/docspring/models/submission_data_request.rb
318
304
  - lib/docspring/models/template.rb
305
+ - lib/docspring/models/template1.rb
306
+ - lib/docspring/models/template1_defaults.rb
319
307
  - lib/docspring/models/template_data.rb
320
308
  - lib/docspring/models/templatestemplate_idadd_fields_fields.rb
321
309
  - lib/docspring/models/update_data_request_response.rb
@@ -339,6 +327,7 @@ files:
339
327
  - spec/models/combined_submission_action_spec.rb
340
328
  - spec/models/combined_submission_data_spec.rb
341
329
  - spec/models/combined_submission_spec.rb
330
+ - spec/models/copy_template_data_spec.rb
342
331
  - spec/models/create_combined_submission_response_spec.rb
343
332
  - spec/models/create_custom_file_data_spec.rb
344
333
  - spec/models/create_custom_file_response_spec.rb
@@ -357,6 +346,7 @@ files:
357
346
  - spec/models/folders_folder_spec.rb
358
347
  - spec/models/html_template_data_spec.rb
359
348
  - spec/models/invalid_request_spec.rb
349
+ - spec/models/list_submissions_response_spec.rb
360
350
  - spec/models/move_folder_data_spec.rb
361
351
  - spec/models/move_template_data_spec.rb
362
352
  - spec/models/pending_template_spec.rb
@@ -368,6 +358,8 @@ files:
368
358
  - spec/models/submission_data_request_spec.rb
369
359
  - spec/models/submission_data_spec.rb
370
360
  - spec/models/submission_spec.rb
361
+ - spec/models/template1_defaults_spec.rb
362
+ - spec/models/template1_spec.rb
371
363
  - spec/models/template_data_spec.rb
372
364
  - spec/models/template_spec.rb
373
365
  - spec/models/templatestemplate_idadd_fields_fields_spec.rb
@@ -383,7 +375,7 @@ homepage: https://github.com/DocSpring/docspring-ruby
383
375
  licenses:
384
376
  - MIT
385
377
  metadata: {}
386
- post_install_message:
378
+ post_install_message:
387
379
  rdoc_options: []
388
380
  require_paths:
389
381
  - lib
@@ -398,8 +390,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
390
  - !ruby/object:Gem::Version
399
391
  version: '0'
400
392
  requirements: []
401
- rubygems_version: 3.1.2
402
- signing_key:
393
+ rubygems_version: 3.2.11
394
+ signing_key:
403
395
  specification_version: 4
404
396
  summary: DocSpring API Client
405
397
  test_files:
@@ -416,6 +408,7 @@ test_files:
416
408
  - spec/models/combined_submission_action_spec.rb
417
409
  - spec/models/combined_submission_data_spec.rb
418
410
  - spec/models/combined_submission_spec.rb
411
+ - spec/models/copy_template_data_spec.rb
419
412
  - spec/models/create_combined_submission_response_spec.rb
420
413
  - spec/models/create_custom_file_data_spec.rb
421
414
  - spec/models/create_custom_file_response_spec.rb
@@ -434,6 +427,7 @@ test_files:
434
427
  - spec/models/folders_folder_spec.rb
435
428
  - spec/models/html_template_data_spec.rb
436
429
  - spec/models/invalid_request_spec.rb
430
+ - spec/models/list_submissions_response_spec.rb
437
431
  - spec/models/move_folder_data_spec.rb
438
432
  - spec/models/move_template_data_spec.rb
439
433
  - spec/models/pending_template_spec.rb
@@ -445,6 +439,8 @@ test_files:
445
439
  - spec/models/submission_data_request_spec.rb
446
440
  - spec/models/submission_data_spec.rb
447
441
  - spec/models/submission_spec.rb
442
+ - spec/models/template1_defaults_spec.rb
443
+ - spec/models/template1_spec.rb
448
444
  - spec/models/template_data_spec.rb
449
445
  - spec/models/template_spec.rb
450
446
  - spec/models/templatestemplate_idadd_fields_fields_spec.rb