form_api 1.0.0 → 1.1.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 -3
- data/README.md +11 -5
- data/docs/CreateSubmissionBatchResponse.md +1 -1
- data/docs/{CreateSubmissionResponse1.md → CreateSubmissionBatchSubmissionsResponse.md} +1 -1
- data/docs/CreateSubmissionBatchV1SubmissionsResponse.md +10 -0
- data/docs/CreateSubmissionDataRequestTokenResponse.md +10 -0
- data/docs/CreateSubmissionDataRequestTokenResponseToken.md +11 -0
- data/docs/CreateSubmissionResponse.md +1 -0
- data/docs/PDFApi.md +102 -2
- data/docs/SubmissionDataRequest.md +16 -0
- data/form_api.gemspec +2 -2
- data/lib/form_api.rb +5 -1
- data/lib/form_api/api/client.rb +3 -3
- data/lib/form_api/api/pdf_api.rb +105 -3
- data/lib/form_api/api_client.rb +19 -2
- data/lib/form_api/models/create_submission_batch_response.rb +1 -1
- data/lib/form_api/models/{create_submission_response1.rb → create_submission_batch_submissions_response.rb} +1 -1
- data/lib/form_api/models/create_submission_batch_v1_submissions_response.rb +237 -0
- data/lib/form_api/models/create_submission_data_request_token_response.rb +237 -0
- data/lib/form_api/models/create_submission_data_request_token_response_token.rb +210 -0
- data/lib/form_api/models/create_submission_response.rb +12 -1
- data/lib/form_api/models/submission.rb +2 -2
- data/lib/form_api/models/submission_data_request.rb +336 -0
- data/lib/form_api/version.rb +1 -1
- data/spec/api/{client_spec.rb → client_integration_spec.rb} +20 -0
- data/spec/api/{pdf_api_spec.rb → pdf_api_integration_spec.rb} +39 -0
- data/spec/api/pdf_api_spec_original.skipped.rb +207 -0
- data/spec/configuration_spec.rb +11 -0
- data/spec/models/{create_submission_response1_spec.rb → create_submission_batch_submissions_response_spec.rb} +6 -6
- data/spec/models/create_submission_batch_v1_submissions_response_spec.rb +57 -0
- data/spec/models/create_submission_data_request_token_response_spec.rb +57 -0
- data/spec/models/create_submission_data_request_token_response_token_spec.rb +59 -0
- data/spec/models/create_submission_response_spec.rb +6 -0
- data/spec/models/submission_data_request_spec.rb +93 -0
- data/spec/models/submission_spec.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +31 -13
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
#API V1
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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::CreateSubmissionDataRequestTokenResponseToken
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CreateSubmissionDataRequestTokenResponseToken' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = FormAPI::CreateSubmissionDataRequestTokenResponseToken.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CreateSubmissionDataRequestTokenResponseToken' do
|
31
|
+
it 'should create an instance of CreateSubmissionDataRequestTokenResponseToken' do
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::CreateSubmissionDataRequestTokenResponseToken)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "expires_at"' 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 "id"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "secret"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "data_request_url"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -44,6 +44,12 @@ describe 'CreateSubmissionResponse' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "data_requests"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "status"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
#API V1
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
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::SubmissionDataRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'SubmissionDataRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = FormAPI::SubmissionDataRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of SubmissionDataRequest' do
|
31
|
+
it 'should create an instance of SubmissionDataRequest' do
|
32
|
+
expect(@instance).to be_instance_of(FormAPI::SubmissionDataRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "id"' 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 "name"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "email"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "order"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "fields"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "metadata"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "state"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "complete"])
|
75
|
+
# validator.allowable_values.each do |value|
|
76
|
+
# expect { @instance.state = value }.not_to raise_error
|
77
|
+
# end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe 'test attribute "viewed_at"' 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 "completed_at"' 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
|
+
end
|
@@ -65,7 +65,7 @@ describe 'Submission' do
|
|
65
65
|
describe 'test attribute "state"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed"])
|
68
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_data_requests"])
|
69
69
|
# validator.allowable_values.each do |value|
|
70
70
|
# expect { @instance.state = value }.not_to raise_error
|
71
71
|
# end
|
data/spec/spec_helper.rb
CHANGED
@@ -13,6 +13,9 @@ OpenAPI Generator version: 3.3.0-SNAPSHOT
|
|
13
13
|
# load the gem
|
14
14
|
require 'form_api'
|
15
15
|
|
16
|
+
# For debugging
|
17
|
+
require 'pry-byebug'
|
18
|
+
|
16
19
|
# The following was generated by the `rspec --init` command. Conventionally, all
|
17
20
|
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
18
21
|
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Form Applications Inc.
|
7
|
+
- Form Applications, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -190,7 +190,7 @@ dependencies:
|
|
190
190
|
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: 0.2.12
|
193
|
-
description: Client library for the FormAPI PDF generation service
|
193
|
+
description: Client library for the FormAPI PDF generation and e-signature service
|
194
194
|
email:
|
195
195
|
- support@formapi.io
|
196
196
|
executables: []
|
@@ -212,16 +212,20 @@ files:
|
|
212
212
|
- docs/CombinedSubmissionData.md
|
213
213
|
- docs/CreateCombinedSubmissionResponse.md
|
214
214
|
- docs/CreateSubmissionBatchResponse.md
|
215
|
+
- docs/CreateSubmissionBatchSubmissionsResponse.md
|
216
|
+
- docs/CreateSubmissionBatchV1SubmissionsResponse.md
|
215
217
|
- docs/CreateSubmissionData.md
|
216
218
|
- docs/CreateSubmissionDataBatchRequest.md
|
219
|
+
- docs/CreateSubmissionDataRequestTokenResponse.md
|
220
|
+
- docs/CreateSubmissionDataRequestTokenResponseToken.md
|
217
221
|
- docs/CreateSubmissionResponse.md
|
218
|
-
- docs/CreateSubmissionResponse1.md
|
219
222
|
- docs/Error.md
|
220
223
|
- docs/InvalidRequest.md
|
221
224
|
- docs/PDFApi.md
|
222
225
|
- docs/Submission.md
|
223
226
|
- docs/SubmissionBatch.md
|
224
227
|
- docs/SubmissionBatchData.md
|
228
|
+
- docs/SubmissionDataRequest.md
|
225
229
|
- docs/Template.md
|
226
230
|
- form_api.gemspec
|
227
231
|
- git_push.sh
|
@@ -237,19 +241,24 @@ files:
|
|
237
241
|
- lib/form_api/models/combined_submission_data.rb
|
238
242
|
- lib/form_api/models/create_combined_submission_response.rb
|
239
243
|
- lib/form_api/models/create_submission_batch_response.rb
|
244
|
+
- lib/form_api/models/create_submission_batch_submissions_response.rb
|
245
|
+
- lib/form_api/models/create_submission_batch_v1_submissions_response.rb
|
240
246
|
- lib/form_api/models/create_submission_data.rb
|
241
247
|
- lib/form_api/models/create_submission_data_batch_request.rb
|
248
|
+
- lib/form_api/models/create_submission_data_request_token_response.rb
|
249
|
+
- lib/form_api/models/create_submission_data_request_token_response_token.rb
|
242
250
|
- lib/form_api/models/create_submission_response.rb
|
243
|
-
- lib/form_api/models/create_submission_response1.rb
|
244
251
|
- lib/form_api/models/error.rb
|
245
252
|
- lib/form_api/models/invalid_request.rb
|
246
253
|
- lib/form_api/models/submission.rb
|
247
254
|
- lib/form_api/models/submission_batch.rb
|
248
255
|
- lib/form_api/models/submission_batch_data.rb
|
256
|
+
- lib/form_api/models/submission_data_request.rb
|
249
257
|
- lib/form_api/models/template.rb
|
250
258
|
- lib/form_api/version.rb
|
251
|
-
- spec/api/
|
252
|
-
- spec/api/
|
259
|
+
- spec/api/client_integration_spec.rb
|
260
|
+
- spec/api/pdf_api_integration_spec.rb
|
261
|
+
- spec/api/pdf_api_spec_original.skipped.rb
|
253
262
|
- spec/api_client_spec.rb
|
254
263
|
- spec/configuration_spec.rb
|
255
264
|
- spec/models/authentication_error_spec.rb
|
@@ -258,14 +267,18 @@ files:
|
|
258
267
|
- spec/models/combined_submission_spec.rb
|
259
268
|
- spec/models/create_combined_submission_response_spec.rb
|
260
269
|
- spec/models/create_submission_batch_response_spec.rb
|
270
|
+
- spec/models/create_submission_batch_submissions_response_spec.rb
|
271
|
+
- spec/models/create_submission_batch_v1_submissions_response_spec.rb
|
261
272
|
- spec/models/create_submission_data_batch_request_spec.rb
|
273
|
+
- spec/models/create_submission_data_request_token_response_spec.rb
|
274
|
+
- spec/models/create_submission_data_request_token_response_token_spec.rb
|
262
275
|
- spec/models/create_submission_data_spec.rb
|
263
|
-
- spec/models/create_submission_response1_spec.rb
|
264
276
|
- spec/models/create_submission_response_spec.rb
|
265
277
|
- spec/models/error_spec.rb
|
266
278
|
- spec/models/invalid_request_spec.rb
|
267
279
|
- spec/models/submission_batch_data_spec.rb
|
268
280
|
- spec/models/submission_batch_spec.rb
|
281
|
+
- spec/models/submission_data_request_spec.rb
|
269
282
|
- spec/models/submission_spec.rb
|
270
283
|
- spec/models/template_spec.rb
|
271
284
|
- spec/spec_helper.rb
|
@@ -289,13 +302,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
289
302
|
version: '0'
|
290
303
|
requirements: []
|
291
304
|
rubyforge_project:
|
292
|
-
rubygems_version: 2.6.
|
305
|
+
rubygems_version: 2.6.14
|
293
306
|
signing_key:
|
294
307
|
specification_version: 4
|
295
308
|
summary: FormAPI API Client
|
296
309
|
test_files:
|
297
|
-
- spec/api/
|
298
|
-
- spec/api/
|
310
|
+
- spec/api/client_integration_spec.rb
|
311
|
+
- spec/api/pdf_api_integration_spec.rb
|
312
|
+
- spec/api/pdf_api_spec_original.skipped.rb
|
299
313
|
- spec/api_client_spec.rb
|
300
314
|
- spec/configuration_spec.rb
|
301
315
|
- spec/models/authentication_error_spec.rb
|
@@ -304,14 +318,18 @@ test_files:
|
|
304
318
|
- spec/models/combined_submission_spec.rb
|
305
319
|
- spec/models/create_combined_submission_response_spec.rb
|
306
320
|
- spec/models/create_submission_batch_response_spec.rb
|
321
|
+
- spec/models/create_submission_batch_submissions_response_spec.rb
|
322
|
+
- spec/models/create_submission_batch_v1_submissions_response_spec.rb
|
307
323
|
- spec/models/create_submission_data_batch_request_spec.rb
|
324
|
+
- spec/models/create_submission_data_request_token_response_spec.rb
|
325
|
+
- spec/models/create_submission_data_request_token_response_token_spec.rb
|
308
326
|
- spec/models/create_submission_data_spec.rb
|
309
|
-
- spec/models/create_submission_response1_spec.rb
|
310
327
|
- spec/models/create_submission_response_spec.rb
|
311
328
|
- spec/models/error_spec.rb
|
312
329
|
- spec/models/invalid_request_spec.rb
|
313
330
|
- spec/models/submission_batch_data_spec.rb
|
314
331
|
- spec/models/submission_batch_spec.rb
|
332
|
+
- spec/models/submission_data_request_spec.rb
|
315
333
|
- spec/models/submission_spec.rb
|
316
334
|
- spec/models/template_spec.rb
|
317
335
|
- spec/spec_helper.rb
|