form_api 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +21 -10
- data/docs/{CreateSubmissionDataBatchV1.md → CombinePdfsData.md} +4 -4
- data/docs/CombinedSubmission.md +1 -0
- data/docs/CreateCustomFileData.md +8 -0
- data/docs/CreateCustomFileResponse.md +10 -0
- data/docs/CreateTemplateData.md +8 -0
- data/docs/CustomFile.md +9 -0
- data/docs/PDFApi.md +208 -12
- data/docs/SubmissionBatchData.md +1 -1
- data/docs/{CreateSubmissionData.md → SubmissionData.md} +1 -1
- data/docs/{CreateSubmissionDataBatchRequest.md → SubmissionDataBatchRequest.md} +5 -5
- data/docs/Templatesv2Template.md +19 -0
- data/docs/Templatesv2TemplateDocument.md +10 -0
- data/docs/Templatesv2TemplateDocumentMetadata.md +10 -0
- data/lib/form_api.rb +10 -3
- data/lib/form_api/api/client.rb +25 -9
- data/lib/form_api/api/pdf_api.rb +224 -20
- data/lib/form_api/models/{create_submission_data_batch_request.rb → combine_pdfs_data.rb} +31 -43
- data/lib/form_api/models/combined_submission.rb +12 -1
- data/lib/form_api/models/create_custom_file_data.rb +188 -0
- data/lib/form_api/models/create_custom_file_response.rb +237 -0
- data/lib/form_api/models/create_template_data.rb +188 -0
- data/lib/form_api/models/custom_file.rb +192 -0
- data/lib/form_api/models/submission_batch_data.rb +1 -1
- data/lib/form_api/models/{create_submission_data.rb → submission_data.rb} +1 -1
- data/lib/form_api/models/{create_submission_data_batch_v1.rb → submission_data_batch_request.rb} +32 -28
- data/lib/form_api/models/templatesv2_template.rb +316 -0
- data/lib/form_api/models/templatesv2_template_document.rb +235 -0
- data/lib/form_api/models/templatesv2_template_document_metadata.rb +235 -0
- data/lib/form_api/version.rb +1 -1
- data/spec/api/client_integration_spec.rb +41 -4
- data/spec/api/pdf_api_integration_spec.rb +7 -7
- data/spec/api/pdf_api_spec_original.skipped.rb +55 -9
- data/spec/models/{create_submission_data_batch_v1_spec.rb → combine_pdfs_data_spec.rb} +10 -10
- data/spec/models/combined_submission_spec.rb +6 -0
- data/spec/models/create_custom_file_data_spec.rb +41 -0
- data/spec/models/create_custom_file_response_spec.rb +57 -0
- data/spec/models/create_template_data_spec.rb +41 -0
- data/spec/models/custom_file_spec.rb +47 -0
- data/spec/models/{create_submission_data_batch_request_spec.rb → submission_data_batch_request_spec.rb} +12 -12
- data/spec/models/{create_submission_data_spec.rb → submission_data_spec.rb} +6 -6
- data/spec/models/templatesv2_template_document_metadata_spec.rb +57 -0
- data/spec/models/templatesv2_template_document_spec.rb +57 -0
- data/spec/models/templatesv2_template_spec.rb +111 -0
- data/spec/spec_helper.rb +3 -0
- metadata +42 -14
@@ -0,0 +1,111 @@
|
|
1
|
+
=begin
|
2
|
+
#API v1
|
3
|
+
|
4
|
+
#FormAPI 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-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for FormAPI::Templatesv2Template
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Templatesv2Template' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = FormAPI::Templatesv2Template.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Templatesv2Template' do
|
31
|
+
it 'should create an instance of Templatesv2Template' do
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::Templatesv2Template)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "expiration_interval"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["minutes", "hours", "days"])
|
39
|
+
# validator.allowable_values.each do |value|
|
40
|
+
# expect { @instance.expiration_interval = value }.not_to raise_error
|
41
|
+
# end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "public_web_form"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
describe 'test attribute "webhook_url"' 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 "expire_submissions"' 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 "allow_additional_properties"' 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 "document"' 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 "name"' 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 "public_submissions"' 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 "slack_webhook_url"' 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 "redirect_url"' 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 "blockchain_timestamp_verification"' 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
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -58,6 +58,9 @@ RSpec.configure do |config|
|
|
58
58
|
mocks.verify_partial_doubles = true
|
59
59
|
end
|
60
60
|
|
61
|
+
config.filter_run :focus
|
62
|
+
config.run_all_when_everything_filtered = true
|
63
|
+
|
61
64
|
# The settings below are suggested to provide a good initial experience
|
62
65
|
# with RSpec, but feel free to customize to your heart's content.
|
63
66
|
=begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: form_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Form Applications, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -234,19 +234,21 @@ files:
|
|
234
234
|
- Rakefile
|
235
235
|
- docs/AuthenticationError.md
|
236
236
|
- docs/AuthenticationSuccessResponse.md
|
237
|
+
- docs/CombinePdfsData.md
|
237
238
|
- docs/CombinedSubmission.md
|
238
239
|
- docs/CombinedSubmissionAction.md
|
239
240
|
- docs/CombinedSubmissionData.md
|
240
241
|
- docs/CreateCombinedSubmissionResponse.md
|
242
|
+
- docs/CreateCustomFileData.md
|
243
|
+
- docs/CreateCustomFileResponse.md
|
241
244
|
- docs/CreateSubmissionBatchResponse.md
|
242
245
|
- docs/CreateSubmissionBatchSubmissionsResponse.md
|
243
|
-
- docs/CreateSubmissionData.md
|
244
|
-
- docs/CreateSubmissionDataBatchRequest.md
|
245
|
-
- docs/CreateSubmissionDataBatchV1.md
|
246
246
|
- docs/CreateSubmissionDataRequestData.md
|
247
247
|
- docs/CreateSubmissionDataRequestTokenResponse.md
|
248
248
|
- docs/CreateSubmissionDataRequestTokenResponseToken.md
|
249
249
|
- docs/CreateSubmissionResponse.md
|
250
|
+
- docs/CreateTemplateData.md
|
251
|
+
- docs/CustomFile.md
|
250
252
|
- docs/Error.md
|
251
253
|
- docs/InvalidRequest.md
|
252
254
|
- docs/PDFApi.md
|
@@ -255,8 +257,13 @@ files:
|
|
255
257
|
- docs/SubmissionAction.md
|
256
258
|
- docs/SubmissionBatch.md
|
257
259
|
- docs/SubmissionBatchData.md
|
260
|
+
- docs/SubmissionData.md
|
261
|
+
- docs/SubmissionDataBatchRequest.md
|
258
262
|
- docs/SubmissionDataRequest.md
|
259
263
|
- docs/Template.md
|
264
|
+
- docs/Templatesv2Template.md
|
265
|
+
- docs/Templatesv2TemplateDocument.md
|
266
|
+
- docs/Templatesv2TemplateDocumentMetadata.md
|
260
267
|
- docs/UpdateDataRequestResponse.md
|
261
268
|
- docs/UpdateSubmissionDataRequestData.md
|
262
269
|
- form_api.gemspec
|
@@ -269,19 +276,21 @@ files:
|
|
269
276
|
- lib/form_api/configuration.rb
|
270
277
|
- lib/form_api/models/authentication_error.rb
|
271
278
|
- lib/form_api/models/authentication_success_response.rb
|
279
|
+
- lib/form_api/models/combine_pdfs_data.rb
|
272
280
|
- lib/form_api/models/combined_submission.rb
|
273
281
|
- lib/form_api/models/combined_submission_action.rb
|
274
282
|
- lib/form_api/models/combined_submission_data.rb
|
275
283
|
- lib/form_api/models/create_combined_submission_response.rb
|
284
|
+
- lib/form_api/models/create_custom_file_data.rb
|
285
|
+
- lib/form_api/models/create_custom_file_response.rb
|
276
286
|
- lib/form_api/models/create_submission_batch_response.rb
|
277
287
|
- lib/form_api/models/create_submission_batch_submissions_response.rb
|
278
|
-
- lib/form_api/models/create_submission_data.rb
|
279
|
-
- lib/form_api/models/create_submission_data_batch_request.rb
|
280
|
-
- lib/form_api/models/create_submission_data_batch_v1.rb
|
281
288
|
- lib/form_api/models/create_submission_data_request_data.rb
|
282
289
|
- lib/form_api/models/create_submission_data_request_token_response.rb
|
283
290
|
- lib/form_api/models/create_submission_data_request_token_response_token.rb
|
284
291
|
- lib/form_api/models/create_submission_response.rb
|
292
|
+
- lib/form_api/models/create_template_data.rb
|
293
|
+
- lib/form_api/models/custom_file.rb
|
285
294
|
- lib/form_api/models/error.rb
|
286
295
|
- lib/form_api/models/invalid_request.rb
|
287
296
|
- lib/form_api/models/pending_template.rb
|
@@ -289,8 +298,13 @@ files:
|
|
289
298
|
- lib/form_api/models/submission_action.rb
|
290
299
|
- lib/form_api/models/submission_batch.rb
|
291
300
|
- lib/form_api/models/submission_batch_data.rb
|
301
|
+
- lib/form_api/models/submission_data.rb
|
302
|
+
- lib/form_api/models/submission_data_batch_request.rb
|
292
303
|
- lib/form_api/models/submission_data_request.rb
|
293
304
|
- lib/form_api/models/template.rb
|
305
|
+
- lib/form_api/models/templatesv2_template.rb
|
306
|
+
- lib/form_api/models/templatesv2_template_document.rb
|
307
|
+
- lib/form_api/models/templatesv2_template_document_metadata.rb
|
294
308
|
- lib/form_api/models/update_data_request_response.rb
|
295
309
|
- lib/form_api/models/update_submission_data_request_data.rb
|
296
310
|
- lib/form_api/version.rb
|
@@ -301,28 +315,35 @@ files:
|
|
301
315
|
- spec/configuration_spec.rb
|
302
316
|
- spec/models/authentication_error_spec.rb
|
303
317
|
- spec/models/authentication_success_response_spec.rb
|
318
|
+
- spec/models/combine_pdfs_data_spec.rb
|
304
319
|
- spec/models/combined_submission_action_spec.rb
|
305
320
|
- spec/models/combined_submission_data_spec.rb
|
306
321
|
- spec/models/combined_submission_spec.rb
|
307
322
|
- spec/models/create_combined_submission_response_spec.rb
|
323
|
+
- spec/models/create_custom_file_data_spec.rb
|
324
|
+
- spec/models/create_custom_file_response_spec.rb
|
308
325
|
- spec/models/create_submission_batch_response_spec.rb
|
309
326
|
- spec/models/create_submission_batch_submissions_response_spec.rb
|
310
|
-
- spec/models/create_submission_data_batch_request_spec.rb
|
311
|
-
- spec/models/create_submission_data_batch_v1_spec.rb
|
312
327
|
- spec/models/create_submission_data_request_data_spec.rb
|
313
328
|
- spec/models/create_submission_data_request_token_response_spec.rb
|
314
329
|
- spec/models/create_submission_data_request_token_response_token_spec.rb
|
315
|
-
- spec/models/create_submission_data_spec.rb
|
316
330
|
- spec/models/create_submission_response_spec.rb
|
331
|
+
- spec/models/create_template_data_spec.rb
|
332
|
+
- spec/models/custom_file_spec.rb
|
317
333
|
- spec/models/error_spec.rb
|
318
334
|
- spec/models/invalid_request_spec.rb
|
319
335
|
- spec/models/pending_template_spec.rb
|
320
336
|
- spec/models/submission_action_spec.rb
|
321
337
|
- spec/models/submission_batch_data_spec.rb
|
322
338
|
- spec/models/submission_batch_spec.rb
|
339
|
+
- spec/models/submission_data_batch_request_spec.rb
|
323
340
|
- spec/models/submission_data_request_spec.rb
|
341
|
+
- spec/models/submission_data_spec.rb
|
324
342
|
- spec/models/submission_spec.rb
|
325
343
|
- spec/models/template_spec.rb
|
344
|
+
- spec/models/templatesv2_template_document_metadata_spec.rb
|
345
|
+
- spec/models/templatesv2_template_document_spec.rb
|
346
|
+
- spec/models/templatesv2_template_spec.rb
|
326
347
|
- spec/models/update_data_request_response_spec.rb
|
327
348
|
- spec/models/update_submission_data_request_data_spec.rb
|
328
349
|
- spec/spec_helper.rb
|
@@ -358,28 +379,35 @@ test_files:
|
|
358
379
|
- spec/configuration_spec.rb
|
359
380
|
- spec/models/authentication_error_spec.rb
|
360
381
|
- spec/models/authentication_success_response_spec.rb
|
382
|
+
- spec/models/combine_pdfs_data_spec.rb
|
361
383
|
- spec/models/combined_submission_action_spec.rb
|
362
384
|
- spec/models/combined_submission_data_spec.rb
|
363
385
|
- spec/models/combined_submission_spec.rb
|
364
386
|
- spec/models/create_combined_submission_response_spec.rb
|
387
|
+
- spec/models/create_custom_file_data_spec.rb
|
388
|
+
- spec/models/create_custom_file_response_spec.rb
|
365
389
|
- spec/models/create_submission_batch_response_spec.rb
|
366
390
|
- spec/models/create_submission_batch_submissions_response_spec.rb
|
367
|
-
- spec/models/create_submission_data_batch_request_spec.rb
|
368
|
-
- spec/models/create_submission_data_batch_v1_spec.rb
|
369
391
|
- spec/models/create_submission_data_request_data_spec.rb
|
370
392
|
- spec/models/create_submission_data_request_token_response_spec.rb
|
371
393
|
- spec/models/create_submission_data_request_token_response_token_spec.rb
|
372
|
-
- spec/models/create_submission_data_spec.rb
|
373
394
|
- spec/models/create_submission_response_spec.rb
|
395
|
+
- spec/models/create_template_data_spec.rb
|
396
|
+
- spec/models/custom_file_spec.rb
|
374
397
|
- spec/models/error_spec.rb
|
375
398
|
- spec/models/invalid_request_spec.rb
|
376
399
|
- spec/models/pending_template_spec.rb
|
377
400
|
- spec/models/submission_action_spec.rb
|
378
401
|
- spec/models/submission_batch_data_spec.rb
|
379
402
|
- spec/models/submission_batch_spec.rb
|
403
|
+
- spec/models/submission_data_batch_request_spec.rb
|
380
404
|
- spec/models/submission_data_request_spec.rb
|
405
|
+
- spec/models/submission_data_spec.rb
|
381
406
|
- spec/models/submission_spec.rb
|
382
407
|
- spec/models/template_spec.rb
|
408
|
+
- spec/models/templatesv2_template_document_metadata_spec.rb
|
409
|
+
- spec/models/templatesv2_template_document_spec.rb
|
410
|
+
- spec/models/templatesv2_template_spec.rb
|
383
411
|
- spec/models/update_data_request_response_spec.rb
|
384
412
|
- spec/models/update_submission_data_request_data_spec.rb
|
385
413
|
- spec/spec_helper.rb
|