form_api 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/README.md +5 -5
- data/docs/PDFApi.md +7 -5
- data/docs/PendingTemplate.md +0 -1
- data/docs/Submission.md +1 -0
- data/docs/Template.md +0 -1
- data/docs/Templatesv2Template.md +4 -5
- data/lib/form_api/api/pdf_api.rb +11 -8
- data/lib/form_api/models/pending_template.rb +1 -10
- data/lib/form_api/models/submission.rb +12 -3
- data/lib/form_api/models/template.rb +1 -10
- data/lib/form_api/models/templatesv2_template.rb +37 -46
- data/lib/form_api/version.rb +1 -1
- data/spec/api/pdf_api_integration_spec.rb +25 -5
- data/spec/api/pdf_api_spec_original.skipped.rb +5 -3
- data/spec/models/pending_template_spec.rb +0 -6
- data/spec/models/submission_spec.rb +7 -1
- data/spec/models/template_spec.rb +0 -6
- data/spec/models/templatesv2_template_spec.rb +10 -16
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa89e1deaa23129b396a88dcfe9a8c923496ab4feb65ba5f5b707210aa70b3e0
|
4
|
+
data.tar.gz: 643aada9488f1af5610e03826c116157faea7053d0dfad98ca902f2b2aea48a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b16159696c2bdf6c1bfc7f8dfa57e102f211896d6b219540cebe043e6aa7328b5065bceb46f02bac6125431bdad942a4c4e410ef4868ad5a906cb565aa61f9d8
|
7
|
+
data.tar.gz: 4018d3a2d49641c96ad3a91721b50edb0faed99b28c5e8114a53cbb9f2e98a378daa9235d1eba665ec109f49819c83f9c6e1189c62d738f62ddbd3d87b9214af
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ FormAPI is a service that helps you fill out and sign PDF templates.
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.9.0
|
11
11
|
- Build package: io.formapi.codegen.FormApiRubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build form_api.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./form_api-1.
|
26
|
+
gem install ./form_api-1.9.0.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./form_api-1.
|
28
|
+
(for development, run `gem install --dev ./form_api-1.9.0.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'form_api', '~> 1.
|
34
|
+
gem 'form_api', '~> 1.9.0'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -99,7 +99,7 @@ Class | Method | HTTP request | Description
|
|
99
99
|
*FormAPI::PDFApi* | [**get_submission_batch**](docs/PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
|
100
100
|
*FormAPI::PDFApi* | [**get_template**](docs/PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
|
101
101
|
*FormAPI::PDFApi* | [**get_template_schema**](docs/PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
|
102
|
-
*FormAPI::PDFApi* | [**
|
102
|
+
*FormAPI::PDFApi* | [**list_templates**](docs/PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
|
103
103
|
*FormAPI::PDFApi* | [**test_authentication**](docs/PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
|
104
104
|
*FormAPI::PDFApi* | [**update_data_request**](docs/PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
|
105
105
|
|
data/docs/PDFApi.md
CHANGED
@@ -22,7 +22,7 @@ Method | HTTP request | Description
|
|
22
22
|
[**get_submission_batch**](PDFApi.md#get_submission_batch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
|
23
23
|
[**get_template**](PDFApi.md#get_template) | **GET** /templates/{template_id} | Check the status of an uploaded template
|
24
24
|
[**get_template_schema**](PDFApi.md#get_template_schema) | **GET** /templates/{template_id}/schema | Fetch the JSON schema for a template
|
25
|
-
[**
|
25
|
+
[**list_templates**](PDFApi.md#list_templates) | **GET** /templates | Get a list of all templates
|
26
26
|
[**test_authentication**](PDFApi.md#test_authentication) | **GET** /authentication | Test Authentication
|
27
27
|
[**update_data_request**](PDFApi.md#update_data_request) | **PUT** /data_requests/{data_request_id} | Update a submission data request
|
28
28
|
|
@@ -919,8 +919,8 @@ Name | Type | Description | Notes
|
|
919
919
|
|
920
920
|
|
921
921
|
|
922
|
-
# **
|
923
|
-
> Array<Template>
|
922
|
+
# **list_templates**
|
923
|
+
> Array<Template> list_templates(opts)
|
924
924
|
|
925
925
|
Get a list of all templates
|
926
926
|
|
@@ -937,16 +937,17 @@ end
|
|
937
937
|
|
938
938
|
api_instance = FormAPI::PDFApi.new
|
939
939
|
opts = {
|
940
|
+
query: '2', # String | Search By Name
|
940
941
|
page: 2, # Integer | Default: 1
|
941
942
|
per_page: 1 # Integer | Default: 50
|
942
943
|
}
|
943
944
|
|
944
945
|
begin
|
945
946
|
#Get a list of all templates
|
946
|
-
result = api_instance.
|
947
|
+
result = api_instance.list_templates(opts)
|
947
948
|
p result
|
948
949
|
rescue FormAPI::ApiError => e
|
949
|
-
puts "Exception when calling PDFApi->
|
950
|
+
puts "Exception when calling PDFApi->list_templates: #{e}"
|
950
951
|
end
|
951
952
|
```
|
952
953
|
|
@@ -954,6 +955,7 @@ end
|
|
954
955
|
|
955
956
|
Name | Type | Description | Notes
|
956
957
|
------------- | ------------- | ------------- | -------------
|
958
|
+
**query** | **String**| Search By Name | [optional]
|
957
959
|
**page** | **Integer**| Default: 1 | [optional]
|
958
960
|
**per_page** | **Integer**| Default: 50 | [optional]
|
959
961
|
|
data/docs/PendingTemplate.md
CHANGED
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
9
9
|
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
10
10
|
**public_submissions** | **BOOLEAN** | | [optional]
|
11
11
|
**slack_webhook_url** | **String** | | [optional]
|
12
|
-
**blockchain_timestamp_verification** | **BOOLEAN** | | [optional]
|
13
12
|
**public_web_form** | **BOOLEAN** | | [optional]
|
14
13
|
**editable_submissions** | **BOOLEAN** | | [optional]
|
15
14
|
**expire_submissions** | **BOOLEAN** | | [optional]
|
data/docs/Submission.md
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**id** | **String** | |
|
7
|
+
**template_id** | **String** | | [optional]
|
7
8
|
**test** | **BOOLEAN** | |
|
8
9
|
**editable** | **BOOLEAN** | | [optional]
|
9
10
|
**expired** | **BOOLEAN** | |
|
data/docs/Template.md
CHANGED
@@ -9,7 +9,6 @@ Name | Type | Description | Notes
|
|
9
9
|
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
10
10
|
**public_submissions** | **BOOLEAN** | | [optional]
|
11
11
|
**slack_webhook_url** | **String** | | [optional]
|
12
|
-
**blockchain_timestamp_verification** | **BOOLEAN** | | [optional]
|
13
12
|
**public_web_form** | **BOOLEAN** | | [optional]
|
14
13
|
**editable_submissions** | **BOOLEAN** | | [optional]
|
15
14
|
**expire_submissions** | **BOOLEAN** | | [optional]
|
data/docs/Templatesv2Template.md
CHANGED
@@ -4,17 +4,16 @@
|
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
6
|
**expiration_interval** | **String** | | [optional]
|
7
|
+
**public_web_form** | **BOOLEAN** | | [optional]
|
7
8
|
**webhook_url** | **String** | | [optional]
|
9
|
+
**editable_submissions** | **BOOLEAN** | | [optional]
|
10
|
+
**expire_submissions** | **BOOLEAN** | | [optional]
|
8
11
|
**expire_after** | **Float** | | [optional]
|
9
12
|
**allow_additional_properties** | **BOOLEAN** | | [optional]
|
10
13
|
**document** | [**Templatesv2TemplateDocument**](Templatesv2TemplateDocument.md) | | [optional]
|
14
|
+
**name** | **String** | | [optional]
|
11
15
|
**public_submissions** | **BOOLEAN** | | [optional]
|
12
16
|
**slack_webhook_url** | **String** | | [optional]
|
13
|
-
**blockchain_timestamp_verification** | **BOOLEAN** | | [optional]
|
14
|
-
**public_web_form** | **BOOLEAN** | | [optional]
|
15
|
-
**editable_submissions** | **BOOLEAN** | | [optional]
|
16
|
-
**expire_submissions** | **BOOLEAN** | | [optional]
|
17
|
-
**name** | **String** | | [optional]
|
18
17
|
**redirect_url** | **String** | | [optional]
|
19
18
|
|
20
19
|
|
data/lib/form_api/api/pdf_api.rb
CHANGED
@@ -975,33 +975,35 @@ module FormAPI
|
|
975
975
|
|
976
976
|
# Get a list of all templates
|
977
977
|
# @param [Hash] opts the optional parameters
|
978
|
+
# @option opts [String] :query Search By Name
|
978
979
|
# @option opts [Integer] :page Default: 1
|
979
980
|
# @option opts [Integer] :per_page Default: 50
|
980
981
|
# @return [Array<Template>]
|
981
|
-
def
|
982
|
-
data, _status_code, _headers =
|
982
|
+
def list_templates(opts = {})
|
983
|
+
data, _status_code, _headers = list_templates_with_http_info(opts)
|
983
984
|
data
|
984
985
|
end
|
985
986
|
|
986
987
|
# Get a list of all templates
|
987
988
|
# @param [Hash] opts the optional parameters
|
989
|
+
# @option opts [String] :query Search By Name
|
988
990
|
# @option opts [Integer] :page Default: 1
|
989
991
|
# @option opts [Integer] :per_page Default: 50
|
990
992
|
# @return [Array<(Array<Template>, Fixnum, Hash)>] Array<Template> data, response status code and response headers
|
991
|
-
def
|
993
|
+
def list_templates_with_http_info(opts = {})
|
992
994
|
if @api_client.config.debugging
|
993
|
-
@api_client.config.logger.debug 'Calling API: PDFApi.
|
995
|
+
@api_client.config.logger.debug 'Calling API: PDFApi.list_templates ...'
|
994
996
|
end
|
995
997
|
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
996
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling PDFApi.
|
998
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling PDFApi.list_templates, must be greater than or equal to 1.'
|
997
999
|
end
|
998
1000
|
|
999
1001
|
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 50
|
1000
|
-
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling PDFApi.
|
1002
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling PDFApi.list_templates, must be smaller than or equal to 50.'
|
1001
1003
|
end
|
1002
1004
|
|
1003
1005
|
if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
|
1004
|
-
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling PDFApi.
|
1006
|
+
fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling PDFApi.list_templates, must be greater than or equal to 1.'
|
1005
1007
|
end
|
1006
1008
|
|
1007
1009
|
# resource path
|
@@ -1009,6 +1011,7 @@ module FormAPI
|
|
1009
1011
|
|
1010
1012
|
# query parameters
|
1011
1013
|
query_params = {}
|
1014
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
1012
1015
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
1013
1016
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
1014
1017
|
|
@@ -1031,7 +1034,7 @@ module FormAPI
|
|
1031
1034
|
:auth_names => auth_names,
|
1032
1035
|
:return_type => 'Array<Template>')
|
1033
1036
|
if @api_client.config.debugging
|
1034
|
-
@api_client.config.logger.debug "API called: PDFApi#
|
1037
|
+
@api_client.config.logger.debug "API called: PDFApi#list_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1035
1038
|
end
|
1036
1039
|
return data, status_code, headers
|
1037
1040
|
end
|
@@ -26,8 +26,6 @@ module FormAPI
|
|
26
26
|
|
27
27
|
attr_accessor :slack_webhook_url
|
28
28
|
|
29
|
-
attr_accessor :blockchain_timestamp_verification
|
30
|
-
|
31
29
|
attr_accessor :public_web_form
|
32
30
|
|
33
31
|
attr_accessor :editable_submissions
|
@@ -73,7 +71,6 @@ module FormAPI
|
|
73
71
|
:'allow_additional_properties' => :'allow_additional_properties',
|
74
72
|
:'public_submissions' => :'public_submissions',
|
75
73
|
:'slack_webhook_url' => :'slack_webhook_url',
|
76
|
-
:'blockchain_timestamp_verification' => :'blockchain_timestamp_verification',
|
77
74
|
:'public_web_form' => :'public_web_form',
|
78
75
|
:'editable_submissions' => :'editable_submissions',
|
79
76
|
:'expire_submissions' => :'expire_submissions',
|
@@ -93,7 +90,6 @@ module FormAPI
|
|
93
90
|
:'allow_additional_properties' => :'BOOLEAN',
|
94
91
|
:'public_submissions' => :'BOOLEAN',
|
95
92
|
:'slack_webhook_url' => :'String',
|
96
|
-
:'blockchain_timestamp_verification' => :'BOOLEAN',
|
97
93
|
:'public_web_form' => :'BOOLEAN',
|
98
94
|
:'editable_submissions' => :'BOOLEAN',
|
99
95
|
:'expire_submissions' => :'BOOLEAN',
|
@@ -136,10 +132,6 @@ module FormAPI
|
|
136
132
|
self.slack_webhook_url = attributes[:'slack_webhook_url']
|
137
133
|
end
|
138
134
|
|
139
|
-
if attributes.has_key?(:'blockchain_timestamp_verification')
|
140
|
-
self.blockchain_timestamp_verification = attributes[:'blockchain_timestamp_verification']
|
141
|
-
end
|
142
|
-
|
143
135
|
if attributes.has_key?(:'public_web_form')
|
144
136
|
self.public_web_form = attributes[:'public_web_form']
|
145
137
|
end
|
@@ -205,7 +197,6 @@ module FormAPI
|
|
205
197
|
allow_additional_properties == o.allow_additional_properties &&
|
206
198
|
public_submissions == o.public_submissions &&
|
207
199
|
slack_webhook_url == o.slack_webhook_url &&
|
208
|
-
blockchain_timestamp_verification == o.blockchain_timestamp_verification &&
|
209
200
|
public_web_form == o.public_web_form &&
|
210
201
|
editable_submissions == o.editable_submissions &&
|
211
202
|
expire_submissions == o.expire_submissions &&
|
@@ -224,7 +215,7 @@ module FormAPI
|
|
224
215
|
# Calculates hash code according to all attributes.
|
225
216
|
# @return [Fixnum] Hash code
|
226
217
|
def hash
|
227
|
-
[expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url,
|
218
|
+
[expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, public_web_form, editable_submissions, expire_submissions, name, template_type, id, redirect_url].hash
|
228
219
|
end
|
229
220
|
|
230
221
|
# Builds the object from hash
|
@@ -16,6 +16,8 @@ module FormAPI
|
|
16
16
|
class Submission
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
|
+
attr_accessor :template_id
|
20
|
+
|
19
21
|
attr_accessor :test
|
20
22
|
|
21
23
|
attr_accessor :editable
|
@@ -64,6 +66,7 @@ module FormAPI
|
|
64
66
|
def self.attribute_map
|
65
67
|
{
|
66
68
|
:'id' => :'id',
|
69
|
+
:'template_id' => :'template_id',
|
67
70
|
:'test' => :'test',
|
68
71
|
:'editable' => :'editable',
|
69
72
|
:'expired' => :'expired',
|
@@ -82,6 +85,7 @@ module FormAPI
|
|
82
85
|
def self.openapi_types
|
83
86
|
{
|
84
87
|
:'id' => :'String',
|
88
|
+
:'template_id' => :'String',
|
85
89
|
:'test' => :'BOOLEAN',
|
86
90
|
:'editable' => :'BOOLEAN',
|
87
91
|
:'expired' => :'BOOLEAN',
|
@@ -108,6 +112,10 @@ module FormAPI
|
|
108
112
|
self.id = attributes[:'id']
|
109
113
|
end
|
110
114
|
|
115
|
+
if attributes.has_key?(:'template_id')
|
116
|
+
self.template_id = attributes[:'template_id']
|
117
|
+
end
|
118
|
+
|
111
119
|
if attributes.has_key?(:'test')
|
112
120
|
self.test = attributes[:'test']
|
113
121
|
end
|
@@ -187,7 +195,7 @@ module FormAPI
|
|
187
195
|
return false if @test.nil?
|
188
196
|
return false if @expired.nil?
|
189
197
|
return false if @state.nil?
|
190
|
-
state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'liquid_syntax_error'])
|
198
|
+
state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'liquid_syntax_error', 'account_suspended', 'license_revoked'])
|
191
199
|
return false unless state_validator.valid?(@state)
|
192
200
|
true
|
193
201
|
end
|
@@ -195,7 +203,7 @@ module FormAPI
|
|
195
203
|
# Custom attribute writer method checking allowed values (enum).
|
196
204
|
# @param [Object] state Object to be assigned
|
197
205
|
def state=(state)
|
198
|
-
validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'liquid_syntax_error'])
|
206
|
+
validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'liquid_syntax_error', 'account_suspended', 'license_revoked'])
|
199
207
|
unless validator.valid?(state)
|
200
208
|
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
201
209
|
end
|
@@ -208,6 +216,7 @@ module FormAPI
|
|
208
216
|
return true if self.equal?(o)
|
209
217
|
self.class == o.class &&
|
210
218
|
id == o.id &&
|
219
|
+
template_id == o.template_id &&
|
211
220
|
test == o.test &&
|
212
221
|
editable == o.editable &&
|
213
222
|
expired == o.expired &&
|
@@ -230,7 +239,7 @@ module FormAPI
|
|
230
239
|
# Calculates hash code according to all attributes.
|
231
240
|
# @return [Fixnum] Hash code
|
232
241
|
def hash
|
233
|
-
[id, test, editable, expired, expires_at, processed_at, state, metadata, download_url, batch_id, data_requests, actions].hash
|
242
|
+
[id, template_id, test, editable, expired, expires_at, processed_at, state, metadata, download_url, batch_id, data_requests, actions].hash
|
234
243
|
end
|
235
244
|
|
236
245
|
# Builds the object from hash
|
@@ -26,8 +26,6 @@ module FormAPI
|
|
26
26
|
|
27
27
|
attr_accessor :slack_webhook_url
|
28
28
|
|
29
|
-
attr_accessor :blockchain_timestamp_verification
|
30
|
-
|
31
29
|
attr_accessor :public_web_form
|
32
30
|
|
33
31
|
attr_accessor :editable_submissions
|
@@ -75,7 +73,6 @@ module FormAPI
|
|
75
73
|
:'allow_additional_properties' => :'allow_additional_properties',
|
76
74
|
:'public_submissions' => :'public_submissions',
|
77
75
|
:'slack_webhook_url' => :'slack_webhook_url',
|
78
|
-
:'blockchain_timestamp_verification' => :'blockchain_timestamp_verification',
|
79
76
|
:'public_web_form' => :'public_web_form',
|
80
77
|
:'editable_submissions' => :'editable_submissions',
|
81
78
|
:'expire_submissions' => :'expire_submissions',
|
@@ -96,7 +93,6 @@ module FormAPI
|
|
96
93
|
:'allow_additional_properties' => :'BOOLEAN',
|
97
94
|
:'public_submissions' => :'BOOLEAN',
|
98
95
|
:'slack_webhook_url' => :'String',
|
99
|
-
:'blockchain_timestamp_verification' => :'BOOLEAN',
|
100
96
|
:'public_web_form' => :'BOOLEAN',
|
101
97
|
:'editable_submissions' => :'BOOLEAN',
|
102
98
|
:'expire_submissions' => :'BOOLEAN',
|
@@ -140,10 +136,6 @@ module FormAPI
|
|
140
136
|
self.slack_webhook_url = attributes[:'slack_webhook_url']
|
141
137
|
end
|
142
138
|
|
143
|
-
if attributes.has_key?(:'blockchain_timestamp_verification')
|
144
|
-
self.blockchain_timestamp_verification = attributes[:'blockchain_timestamp_verification']
|
145
|
-
end
|
146
|
-
|
147
139
|
if attributes.has_key?(:'public_web_form')
|
148
140
|
self.public_web_form = attributes[:'public_web_form']
|
149
141
|
end
|
@@ -215,7 +207,6 @@ module FormAPI
|
|
215
207
|
allow_additional_properties == o.allow_additional_properties &&
|
216
208
|
public_submissions == o.public_submissions &&
|
217
209
|
slack_webhook_url == o.slack_webhook_url &&
|
218
|
-
blockchain_timestamp_verification == o.blockchain_timestamp_verification &&
|
219
210
|
public_web_form == o.public_web_form &&
|
220
211
|
editable_submissions == o.editable_submissions &&
|
221
212
|
expire_submissions == o.expire_submissions &&
|
@@ -235,7 +226,7 @@ module FormAPI
|
|
235
226
|
# Calculates hash code according to all attributes.
|
236
227
|
# @return [Fixnum] Hash code
|
237
228
|
def hash
|
238
|
-
[expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url,
|
229
|
+
[expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, public_web_form, editable_submissions, expire_submissions, name, template_type, id, page_dimensions, redirect_url].hash
|
239
230
|
end
|
240
231
|
|
241
232
|
# Builds the object from hash
|
@@ -16,28 +16,26 @@ module FormAPI
|
|
16
16
|
class Templatesv2Template
|
17
17
|
attr_accessor :expiration_interval
|
18
18
|
|
19
|
+
attr_accessor :public_web_form
|
20
|
+
|
19
21
|
attr_accessor :webhook_url
|
20
22
|
|
23
|
+
attr_accessor :editable_submissions
|
24
|
+
|
25
|
+
attr_accessor :expire_submissions
|
26
|
+
|
21
27
|
attr_accessor :expire_after
|
22
28
|
|
23
29
|
attr_accessor :allow_additional_properties
|
24
30
|
|
25
31
|
attr_accessor :document
|
26
32
|
|
33
|
+
attr_accessor :name
|
34
|
+
|
27
35
|
attr_accessor :public_submissions
|
28
36
|
|
29
37
|
attr_accessor :slack_webhook_url
|
30
38
|
|
31
|
-
attr_accessor :blockchain_timestamp_verification
|
32
|
-
|
33
|
-
attr_accessor :public_web_form
|
34
|
-
|
35
|
-
attr_accessor :editable_submissions
|
36
|
-
|
37
|
-
attr_accessor :expire_submissions
|
38
|
-
|
39
|
-
attr_accessor :name
|
40
|
-
|
41
39
|
attr_accessor :redirect_url
|
42
40
|
|
43
41
|
class EnumAttributeValidator
|
@@ -66,17 +64,16 @@ module FormAPI
|
|
66
64
|
def self.attribute_map
|
67
65
|
{
|
68
66
|
:'expiration_interval' => :'expiration_interval',
|
67
|
+
:'public_web_form' => :'public_web_form',
|
69
68
|
:'webhook_url' => :'webhook_url',
|
69
|
+
:'editable_submissions' => :'editable_submissions',
|
70
|
+
:'expire_submissions' => :'expire_submissions',
|
70
71
|
:'expire_after' => :'expire_after',
|
71
72
|
:'allow_additional_properties' => :'allow_additional_properties',
|
72
73
|
:'document' => :'document',
|
74
|
+
:'name' => :'name',
|
73
75
|
:'public_submissions' => :'public_submissions',
|
74
76
|
:'slack_webhook_url' => :'slack_webhook_url',
|
75
|
-
:'blockchain_timestamp_verification' => :'blockchain_timestamp_verification',
|
76
|
-
:'public_web_form' => :'public_web_form',
|
77
|
-
:'editable_submissions' => :'editable_submissions',
|
78
|
-
:'expire_submissions' => :'expire_submissions',
|
79
|
-
:'name' => :'name',
|
80
77
|
:'redirect_url' => :'redirect_url'
|
81
78
|
}
|
82
79
|
end
|
@@ -85,17 +82,16 @@ module FormAPI
|
|
85
82
|
def self.openapi_types
|
86
83
|
{
|
87
84
|
:'expiration_interval' => :'String',
|
85
|
+
:'public_web_form' => :'BOOLEAN',
|
88
86
|
:'webhook_url' => :'String',
|
87
|
+
:'editable_submissions' => :'BOOLEAN',
|
88
|
+
:'expire_submissions' => :'BOOLEAN',
|
89
89
|
:'expire_after' => :'Float',
|
90
90
|
:'allow_additional_properties' => :'BOOLEAN',
|
91
91
|
:'document' => :'Templatesv2TemplateDocument',
|
92
|
+
:'name' => :'String',
|
92
93
|
:'public_submissions' => :'BOOLEAN',
|
93
94
|
:'slack_webhook_url' => :'String',
|
94
|
-
:'blockchain_timestamp_verification' => :'BOOLEAN',
|
95
|
-
:'public_web_form' => :'BOOLEAN',
|
96
|
-
:'editable_submissions' => :'BOOLEAN',
|
97
|
-
:'expire_submissions' => :'BOOLEAN',
|
98
|
-
:'name' => :'String',
|
99
95
|
:'redirect_url' => :'String'
|
100
96
|
}
|
101
97
|
end
|
@@ -112,10 +108,22 @@ module FormAPI
|
|
112
108
|
self.expiration_interval = attributes[:'expiration_interval']
|
113
109
|
end
|
114
110
|
|
111
|
+
if attributes.has_key?(:'public_web_form')
|
112
|
+
self.public_web_form = attributes[:'public_web_form']
|
113
|
+
end
|
114
|
+
|
115
115
|
if attributes.has_key?(:'webhook_url')
|
116
116
|
self.webhook_url = attributes[:'webhook_url']
|
117
117
|
end
|
118
118
|
|
119
|
+
if attributes.has_key?(:'editable_submissions')
|
120
|
+
self.editable_submissions = attributes[:'editable_submissions']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.has_key?(:'expire_submissions')
|
124
|
+
self.expire_submissions = attributes[:'expire_submissions']
|
125
|
+
end
|
126
|
+
|
119
127
|
if attributes.has_key?(:'expire_after')
|
120
128
|
self.expire_after = attributes[:'expire_after']
|
121
129
|
end
|
@@ -128,6 +136,10 @@ module FormAPI
|
|
128
136
|
self.document = attributes[:'document']
|
129
137
|
end
|
130
138
|
|
139
|
+
if attributes.has_key?(:'name')
|
140
|
+
self.name = attributes[:'name']
|
141
|
+
end
|
142
|
+
|
131
143
|
if attributes.has_key?(:'public_submissions')
|
132
144
|
self.public_submissions = attributes[:'public_submissions']
|
133
145
|
end
|
@@ -136,26 +148,6 @@ module FormAPI
|
|
136
148
|
self.slack_webhook_url = attributes[:'slack_webhook_url']
|
137
149
|
end
|
138
150
|
|
139
|
-
if attributes.has_key?(:'blockchain_timestamp_verification')
|
140
|
-
self.blockchain_timestamp_verification = attributes[:'blockchain_timestamp_verification']
|
141
|
-
end
|
142
|
-
|
143
|
-
if attributes.has_key?(:'public_web_form')
|
144
|
-
self.public_web_form = attributes[:'public_web_form']
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.has_key?(:'editable_submissions')
|
148
|
-
self.editable_submissions = attributes[:'editable_submissions']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.has_key?(:'expire_submissions')
|
152
|
-
self.expire_submissions = attributes[:'expire_submissions']
|
153
|
-
end
|
154
|
-
|
155
|
-
if attributes.has_key?(:'name')
|
156
|
-
self.name = attributes[:'name']
|
157
|
-
end
|
158
|
-
|
159
151
|
if attributes.has_key?(:'redirect_url')
|
160
152
|
self.redirect_url = attributes[:'redirect_url']
|
161
153
|
end
|
@@ -192,17 +184,16 @@ module FormAPI
|
|
192
184
|
return true if self.equal?(o)
|
193
185
|
self.class == o.class &&
|
194
186
|
expiration_interval == o.expiration_interval &&
|
187
|
+
public_web_form == o.public_web_form &&
|
195
188
|
webhook_url == o.webhook_url &&
|
189
|
+
editable_submissions == o.editable_submissions &&
|
190
|
+
expire_submissions == o.expire_submissions &&
|
196
191
|
expire_after == o.expire_after &&
|
197
192
|
allow_additional_properties == o.allow_additional_properties &&
|
198
193
|
document == o.document &&
|
194
|
+
name == o.name &&
|
199
195
|
public_submissions == o.public_submissions &&
|
200
196
|
slack_webhook_url == o.slack_webhook_url &&
|
201
|
-
blockchain_timestamp_verification == o.blockchain_timestamp_verification &&
|
202
|
-
public_web_form == o.public_web_form &&
|
203
|
-
editable_submissions == o.editable_submissions &&
|
204
|
-
expire_submissions == o.expire_submissions &&
|
205
|
-
name == o.name &&
|
206
197
|
redirect_url == o.redirect_url
|
207
198
|
end
|
208
199
|
|
@@ -215,7 +206,7 @@ module FormAPI
|
|
215
206
|
# Calculates hash code according to all attributes.
|
216
207
|
# @return [Fixnum] Hash code
|
217
208
|
def hash
|
218
|
-
[expiration_interval,
|
209
|
+
[expiration_interval, public_web_form, webhook_url, editable_submissions, expire_submissions, expire_after, allow_additional_properties, document, name, public_submissions, slack_webhook_url, redirect_url].hash
|
219
210
|
end
|
220
211
|
|
221
212
|
# Builds the object from hash
|
data/lib/form_api/version.rb
CHANGED
@@ -327,23 +327,43 @@ describe 'PDFApi' do
|
|
327
327
|
expect(submission.id).to start_with 'sub_'
|
328
328
|
end
|
329
329
|
end
|
330
|
-
# integration tests for
|
330
|
+
# integration tests for list_templates
|
331
331
|
# Get a list of all templates
|
332
332
|
# @param [Hash] opts the optional parameters
|
333
333
|
# @option opts [Integer] :page Default: 1
|
334
334
|
# @option opts [Integer] :per_page Default: 50
|
335
335
|
# @return [Array<Template>]
|
336
|
-
describe '
|
336
|
+
describe 'list_templates test' do
|
337
337
|
it 'should work' do
|
338
338
|
opts = {
|
339
|
+
query: 'API Client Test Template 2', # String | Search By Name
|
339
340
|
page: 1, # Integer | Default: 1
|
340
341
|
per_page: 10 # Integer | Default: 50
|
341
342
|
}
|
342
|
-
templates = api_instance.
|
343
|
-
expect(templates.size).to eq
|
344
|
-
expect(templates.first.id).to
|
343
|
+
templates = api_instance.list_templates(opts)
|
344
|
+
expect(templates.size).to eq 1
|
345
|
+
expect(templates.first.id).to eq 'tpl_000000000000000002'
|
345
346
|
end
|
346
347
|
end
|
348
|
+
# integration tests for list_templates
|
349
|
+
# Get a list of all templates
|
350
|
+
# @param [Hash] opts the optional parameters
|
351
|
+
# @option opts [String] :query Search By Name
|
352
|
+
# @option opts [Integer] :page Default: 1
|
353
|
+
# @option opts [Integer] :per_page Default: 50
|
354
|
+
# @return [Array<Template>]
|
355
|
+
describe 'list_templates test' do
|
356
|
+
it 'should work' do
|
357
|
+
opts = {
|
358
|
+
query: '2', # String | Search By Name
|
359
|
+
page: 2, # Integer | Default: 1
|
360
|
+
per_page: 1 # Integer | Default: 50
|
361
|
+
}
|
362
|
+
result = api_instance.list_templates(opts)
|
363
|
+
expect(result).to_not be_nil
|
364
|
+
end
|
365
|
+
end
|
366
|
+
|
347
367
|
# integration tests for test_authentication
|
348
368
|
# Test Authentication
|
349
369
|
# @param [Hash] opts the optional parameters
|
@@ -266,19 +266,21 @@ describe 'PDFApi' do
|
|
266
266
|
expect(result).to_not be_nil
|
267
267
|
end
|
268
268
|
end
|
269
|
-
# integration tests for
|
269
|
+
# integration tests for list_templates
|
270
270
|
# Get a list of all templates
|
271
271
|
# @param [Hash] opts the optional parameters
|
272
|
+
# @option opts [String] :query Search By Name
|
272
273
|
# @option opts [Integer] :page Default: 1
|
273
274
|
# @option opts [Integer] :per_page Default: 50
|
274
275
|
# @return [Array<Template>]
|
275
|
-
describe '
|
276
|
+
describe 'list_templates test' do
|
276
277
|
it 'should work' do
|
277
278
|
opts = {
|
279
|
+
query: '2', # String | Search By Name
|
278
280
|
page: 2, # Integer | Default: 1
|
279
281
|
per_page: 1 # Integer | Default: 50
|
280
282
|
}
|
281
|
-
result = api_instance.
|
283
|
+
result = api_instance.list_templates(opts)
|
282
284
|
expect(result).to_not be_nil
|
283
285
|
end
|
284
286
|
end
|
@@ -72,12 +72,6 @@ describe 'PendingTemplate' do
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
describe 'test attribute "blockchain_timestamp_verification"' 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
75
|
describe 'test attribute "public_web_form"' do
|
82
76
|
it 'should work' do
|
83
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -38,6 +38,12 @@ describe 'Submission' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
describe 'test attribute "template_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
|
+
|
41
47
|
describe 'test attribute "test"' do
|
42
48
|
it 'should work' do
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -71,7 +77,7 @@ describe 'Submission' do
|
|
71
77
|
describe 'test attribute "state"' do
|
72
78
|
it 'should work' do
|
73
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_data_requests", "liquid_syntax_error"])
|
80
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "processed", "invalid_data", "error", "image_download_failed", "image_processing_failed", "waiting_for_data_requests", "liquid_syntax_error", "account_suspended", "license_revoked"])
|
75
81
|
# validator.allowable_values.each do |value|
|
76
82
|
# expect { @instance.state = value }.not_to raise_error
|
77
83
|
# end
|
@@ -72,12 +72,6 @@ describe 'Template' do
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
describe 'test attribute "blockchain_timestamp_verification"' 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
75
|
describe 'test attribute "public_web_form"' do
|
82
76
|
it 'should work' do
|
83
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -42,67 +42,61 @@ describe 'Templatesv2Template' do
|
|
42
42
|
end
|
43
43
|
end
|
44
44
|
|
45
|
-
describe 'test attribute "
|
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 "expire_after"' do
|
45
|
+
describe 'test attribute "public_web_form"' do
|
52
46
|
it 'should work' do
|
53
47
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
48
|
end
|
55
49
|
end
|
56
50
|
|
57
|
-
describe 'test attribute "
|
51
|
+
describe 'test attribute "webhook_url"' do
|
58
52
|
it 'should work' do
|
59
53
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
54
|
end
|
61
55
|
end
|
62
56
|
|
63
|
-
describe 'test attribute "
|
57
|
+
describe 'test attribute "editable_submissions"' do
|
64
58
|
it 'should work' do
|
65
59
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
60
|
end
|
67
61
|
end
|
68
62
|
|
69
|
-
describe 'test attribute "
|
63
|
+
describe 'test attribute "expire_submissions"' do
|
70
64
|
it 'should work' do
|
71
65
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
66
|
end
|
73
67
|
end
|
74
68
|
|
75
|
-
describe 'test attribute "
|
69
|
+
describe 'test attribute "expire_after"' do
|
76
70
|
it 'should work' do
|
77
71
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
72
|
end
|
79
73
|
end
|
80
74
|
|
81
|
-
describe 'test attribute "
|
75
|
+
describe 'test attribute "allow_additional_properties"' do
|
82
76
|
it 'should work' do
|
83
77
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
78
|
end
|
85
79
|
end
|
86
80
|
|
87
|
-
describe 'test attribute "
|
81
|
+
describe 'test attribute "document"' do
|
88
82
|
it 'should work' do
|
89
83
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
84
|
end
|
91
85
|
end
|
92
86
|
|
93
|
-
describe 'test attribute "
|
87
|
+
describe 'test attribute "name"' do
|
94
88
|
it 'should work' do
|
95
89
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
96
90
|
end
|
97
91
|
end
|
98
92
|
|
99
|
-
describe 'test attribute "
|
93
|
+
describe 'test attribute "public_submissions"' do
|
100
94
|
it 'should work' do
|
101
95
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
96
|
end
|
103
97
|
end
|
104
98
|
|
105
|
-
describe 'test attribute "
|
99
|
+
describe 'test attribute "slack_webhook_url"' do
|
106
100
|
it 'should work' do
|
107
101
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
108
102
|
end
|
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.9.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: 2019-
|
11
|
+
date: 2019-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -54,42 +54,42 @@ dependencies:
|
|
54
54
|
name: json
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - ">="
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version: 2.1.0
|
60
57
|
- - "~>"
|
61
58
|
- !ruby/object:Gem::Version
|
62
59
|
version: '2.1'
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.1.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 2.1.0
|
70
67
|
- - "~>"
|
71
68
|
- !ruby/object:Gem::Version
|
72
69
|
version: '2.1'
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: 2.1.0
|
73
73
|
- !ruby/object:Gem::Dependency
|
74
74
|
name: rspec
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
76
76
|
requirements:
|
77
|
-
- - ">="
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 3.6.0
|
80
77
|
- - "~>"
|
81
78
|
- !ruby/object:Gem::Version
|
82
79
|
version: '3.6'
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.6.0
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 3.6.0
|
90
87
|
- - "~>"
|
91
88
|
- !ruby/object:Gem::Version
|
92
89
|
version: '3.6'
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: 3.6.0
|
93
93
|
- !ruby/object:Gem::Dependency
|
94
94
|
name: vcr
|
95
95
|
requirement: !ruby/object:Gem::Requirement
|
@@ -367,7 +367,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
367
367
|
version: '0'
|
368
368
|
requirements: []
|
369
369
|
rubyforge_project:
|
370
|
-
rubygems_version: 2.7.
|
370
|
+
rubygems_version: 2.7.6.2
|
371
371
|
signing_key:
|
372
372
|
specification_version: 4
|
373
373
|
summary: FormAPI API Client
|