form_api 1.7.0 → 1.8.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58a777d9e6dc2a11db9e8eb3c3525228743ff6ae1156f374abea9e5789965be2
4
- data.tar.gz: fe5a3dca2d77ee29bf169d11f05edda9261f54b4d8c1470ed2939fd57e57504b
3
+ metadata.gz: 100ae7c8cd16af17f0b778e6b9f017964835c7078bc3911530bcfcff829941ff
4
+ data.tar.gz: e60d636d61b9e1d1f024c21478988c50d3f4ad53009cdf198316d21a7ee7e88d
5
5
  SHA512:
6
- metadata.gz: 5128eb81f2242d91a8a73a01493cc0ba1d7617bc13f9f234babcce6567739716ddb6b2498ff25f5f5061092298df4d63be74f0402be69661be32f68625069406
7
- data.tar.gz: 6c59f305169dce401d6ae88199e1df3eda5e4bffdd3461ba212d4b68d264d4a6ae411e377ca954b93a262cd4a5ef974447a14936b918c47171aca821057c5c30
6
+ metadata.gz: c427c0561fcc168a83065911cf2a7cbbea873093da4af37f4d31782702ea2c67b0765570ac45f172731ed8734b192cedb9a49a2fd5648d4f8571be57a2b9f9a8
7
+ data.tar.gz: 4f60aab48651843ecfe2c4055075c874b32660349df4f5a9d00654832d30cd866c24d5068bd0ba209c946947ffd156be551fe5817945b50a18c67ad144097482
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 1.8.0 [April 11, 2019]
2
+ * Added support for editable PDFS (editable: true)
3
+
1
4
  ### 1.7.0 [December 23, 2018]
2
5
  * Added CustomFiles, and combinePdf call to support many different types of source PDFs. Renamed a few models
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- form_api (1.7.0)
4
+ form_api (1.8.0)
5
5
  ffi (~> 1.0, >= 1.9.24)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
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.7.0
10
+ - Package version: 1.8.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.7.0.gem
26
+ gem install ./form_api-1.8.0.gem
27
27
  ```
28
- (for development, run `gem install --dev ./form_api-1.7.0.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./form_api-1.8.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.7.0'
34
+ gem 'form_api', '~> 1.8.0'
35
35
 
36
36
  ### Install from Git
37
37
 
data/docs/PDFApi.md CHANGED
@@ -716,7 +716,7 @@ This endpoint does not need any parameter.
716
716
 
717
717
 
718
718
  # **get_submission**
719
- > Submission get_submission(submission_id)
719
+ > Submission get_submission(submission_id, opts)
720
720
 
721
721
  Check the status of a PDF
722
722
 
@@ -733,10 +733,13 @@ end
733
733
 
734
734
  api_instance = FormAPI::PDFApi.new
735
735
  submission_id = 'sub_000000000000000001' # String |
736
+ opts = {
737
+ include_data: false # BOOLEAN |
738
+ }
736
739
 
737
740
  begin
738
741
  #Check the status of a PDF
739
- result = api_instance.get_submission(submission_id)
742
+ result = api_instance.get_submission(submission_id, opts)
740
743
  p result
741
744
  rescue FormAPI::ApiError => e
742
745
  puts "Exception when calling PDFApi->get_submission: #{e}"
@@ -748,6 +751,7 @@ end
748
751
  Name | Type | Description | Notes
749
752
  ------------- | ------------- | ------------- | -------------
750
753
  **submission_id** | **String**| |
754
+ **include_data** | **BOOLEAN**| | [optional]
751
755
 
752
756
  ### Return type
753
757
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **slack_webhook_url** | **String** | | [optional]
12
12
  **blockchain_timestamp_verification** | **BOOLEAN** | | [optional]
13
13
  **public_web_form** | **BOOLEAN** | | [optional]
14
+ **editable_submissions** | **BOOLEAN** | | [optional]
14
15
  **expire_submissions** | **BOOLEAN** | | [optional]
15
16
  **name** | **String** | | [optional]
16
17
  **template_type** | **String** | | [optional]
data/docs/Submission.md CHANGED
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **String** | |
7
7
  **test** | **BOOLEAN** | |
8
+ **editable** | **BOOLEAN** | | [optional]
8
9
  **expired** | **BOOLEAN** | |
9
10
  **expires_at** | **String** | | [optional]
10
11
  **processed_at** | **String** | | [optional]
data/docs/Template.md CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **slack_webhook_url** | **String** | | [optional]
12
12
  **blockchain_timestamp_verification** | **BOOLEAN** | | [optional]
13
13
  **public_web_form** | **BOOLEAN** | | [optional]
14
+ **editable_submissions** | **BOOLEAN** | | [optional]
14
15
  **expire_submissions** | **BOOLEAN** | | [optional]
15
16
  **name** | **String** | | [optional]
16
17
  **template_type** | **String** | | [optional]
@@ -4,16 +4,17 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **expiration_interval** | **String** | | [optional]
7
- **public_web_form** | **BOOLEAN** | | [optional]
8
7
  **webhook_url** | **String** | | [optional]
9
- **expire_submissions** | **BOOLEAN** | | [optional]
10
8
  **expire_after** | **Float** | | [optional]
11
9
  **allow_additional_properties** | **BOOLEAN** | | [optional]
12
10
  **document** | [**Templatesv2TemplateDocument**](Templatesv2TemplateDocument.md) | | [optional]
13
- **name** | **String** | | [optional]
14
11
  **public_submissions** | **BOOLEAN** | | [optional]
15
12
  **slack_webhook_url** | **String** | | [optional]
16
- **redirect_url** | **String** | | [optional]
17
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
+ **redirect_url** | **String** | | [optional]
18
19
 
19
20
 
@@ -766,6 +766,7 @@ module FormAPI
766
766
  # Check the status of a PDF
767
767
  # @param submission_id
768
768
  # @param [Hash] opts the optional parameters
769
+ # @option opts [BOOLEAN] :include_data
769
770
  # @return [Submission]
770
771
  def get_submission(submission_id, opts = {})
771
772
  data, _status_code, _headers = get_submission_with_http_info(submission_id, opts)
@@ -775,6 +776,7 @@ module FormAPI
775
776
  # Check the status of a PDF
776
777
  # @param submission_id
777
778
  # @param [Hash] opts the optional parameters
779
+ # @option opts [BOOLEAN] :include_data
778
780
  # @return [Array<(Submission, Fixnum, Hash)>] Submission data, response status code and response headers
779
781
  def get_submission_with_http_info(submission_id, opts = {})
780
782
  if @api_client.config.debugging
@@ -789,6 +791,7 @@ module FormAPI
789
791
 
790
792
  # query parameters
791
793
  query_params = {}
794
+ query_params[:'include_data'] = opts[:'include_data'] if !opts[:'include_data'].nil?
792
795
 
793
796
  # header parameters
794
797
  header_params = {}
@@ -51,6 +51,10 @@ module FormAPI
51
51
  invalid_properties.push('invalid value for "cache_id", cache_id cannot be nil.')
52
52
  end
53
53
 
54
+ if @cache_id.to_s.length < 1
55
+ invalid_properties.push('invalid value for "cache_id", the character length must be great than or equal to 1.')
56
+ end
57
+
54
58
  invalid_properties
55
59
  end
56
60
 
@@ -58,9 +62,24 @@ module FormAPI
58
62
  # @return true if the model is valid
59
63
  def valid?
60
64
  return false if @cache_id.nil?
65
+ return false if @cache_id.to_s.length < 1
61
66
  true
62
67
  end
63
68
 
69
+ # Custom attribute writer method with validation
70
+ # @param [Object] cache_id Value to be assigned
71
+ def cache_id=(cache_id)
72
+ if cache_id.nil?
73
+ fail ArgumentError, 'cache_id cannot be nil'
74
+ end
75
+
76
+ if cache_id.to_s.length < 1
77
+ fail ArgumentError, 'invalid value for "cache_id", the character length must be great than or equal to 1.'
78
+ end
79
+
80
+ @cache_id = cache_id
81
+ end
82
+
64
83
  # Checks equality by comparing each attribute.
65
84
  # @param [Object] Object to be compared
66
85
  def ==(o)
@@ -30,6 +30,8 @@ module FormAPI
30
30
 
31
31
  attr_accessor :public_web_form
32
32
 
33
+ attr_accessor :editable_submissions
34
+
33
35
  attr_accessor :expire_submissions
34
36
 
35
37
  attr_accessor :name
@@ -73,6 +75,7 @@ module FormAPI
73
75
  :'slack_webhook_url' => :'slack_webhook_url',
74
76
  :'blockchain_timestamp_verification' => :'blockchain_timestamp_verification',
75
77
  :'public_web_form' => :'public_web_form',
78
+ :'editable_submissions' => :'editable_submissions',
76
79
  :'expire_submissions' => :'expire_submissions',
77
80
  :'name' => :'name',
78
81
  :'template_type' => :'template_type',
@@ -92,6 +95,7 @@ module FormAPI
92
95
  :'slack_webhook_url' => :'String',
93
96
  :'blockchain_timestamp_verification' => :'BOOLEAN',
94
97
  :'public_web_form' => :'BOOLEAN',
98
+ :'editable_submissions' => :'BOOLEAN',
95
99
  :'expire_submissions' => :'BOOLEAN',
96
100
  :'name' => :'String',
97
101
  :'template_type' => :'String',
@@ -140,6 +144,10 @@ module FormAPI
140
144
  self.public_web_form = attributes[:'public_web_form']
141
145
  end
142
146
 
147
+ if attributes.has_key?(:'editable_submissions')
148
+ self.editable_submissions = attributes[:'editable_submissions']
149
+ end
150
+
143
151
  if attributes.has_key?(:'expire_submissions')
144
152
  self.expire_submissions = attributes[:'expire_submissions']
145
153
  end
@@ -199,6 +207,7 @@ module FormAPI
199
207
  slack_webhook_url == o.slack_webhook_url &&
200
208
  blockchain_timestamp_verification == o.blockchain_timestamp_verification &&
201
209
  public_web_form == o.public_web_form &&
210
+ editable_submissions == o.editable_submissions &&
202
211
  expire_submissions == o.expire_submissions &&
203
212
  name == o.name &&
204
213
  template_type == o.template_type &&
@@ -215,7 +224,7 @@ module FormAPI
215
224
  # Calculates hash code according to all attributes.
216
225
  # @return [Fixnum] Hash code
217
226
  def hash
218
- [expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, blockchain_timestamp_verification, public_web_form, expire_submissions, name, template_type, id, redirect_url].hash
227
+ [expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, blockchain_timestamp_verification, public_web_form, editable_submissions, expire_submissions, name, template_type, id, redirect_url].hash
219
228
  end
220
229
 
221
230
  # Builds the object from hash
@@ -18,6 +18,8 @@ module FormAPI
18
18
 
19
19
  attr_accessor :test
20
20
 
21
+ attr_accessor :editable
22
+
21
23
  attr_accessor :expired
22
24
 
23
25
  attr_accessor :expires_at
@@ -63,6 +65,7 @@ module FormAPI
63
65
  {
64
66
  :'id' => :'id',
65
67
  :'test' => :'test',
68
+ :'editable' => :'editable',
66
69
  :'expired' => :'expired',
67
70
  :'expires_at' => :'expires_at',
68
71
  :'processed_at' => :'processed_at',
@@ -80,6 +83,7 @@ module FormAPI
80
83
  {
81
84
  :'id' => :'String',
82
85
  :'test' => :'BOOLEAN',
86
+ :'editable' => :'BOOLEAN',
83
87
  :'expired' => :'BOOLEAN',
84
88
  :'expires_at' => :'String',
85
89
  :'processed_at' => :'String',
@@ -108,6 +112,10 @@ module FormAPI
108
112
  self.test = attributes[:'test']
109
113
  end
110
114
 
115
+ if attributes.has_key?(:'editable')
116
+ self.editable = attributes[:'editable']
117
+ end
118
+
111
119
  if attributes.has_key?(:'expired')
112
120
  self.expired = attributes[:'expired']
113
121
  end
@@ -179,7 +187,7 @@ module FormAPI
179
187
  return false if @test.nil?
180
188
  return false if @expired.nil?
181
189
  return false if @state.nil?
182
- state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests'])
190
+ state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'liquid_syntax_error'])
183
191
  return false unless state_validator.valid?(@state)
184
192
  true
185
193
  end
@@ -187,7 +195,7 @@ module FormAPI
187
195
  # Custom attribute writer method checking allowed values (enum).
188
196
  # @param [Object] state Object to be assigned
189
197
  def state=(state)
190
- validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests'])
198
+ validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'invalid_data', 'error', 'image_download_failed', 'image_processing_failed', 'waiting_for_data_requests', 'liquid_syntax_error'])
191
199
  unless validator.valid?(state)
192
200
  fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
193
201
  end
@@ -201,6 +209,7 @@ module FormAPI
201
209
  self.class == o.class &&
202
210
  id == o.id &&
203
211
  test == o.test &&
212
+ editable == o.editable &&
204
213
  expired == o.expired &&
205
214
  expires_at == o.expires_at &&
206
215
  processed_at == o.processed_at &&
@@ -221,7 +230,7 @@ module FormAPI
221
230
  # Calculates hash code according to all attributes.
222
231
  # @return [Fixnum] Hash code
223
232
  def hash
224
- [id, test, expired, expires_at, processed_at, state, metadata, download_url, batch_id, data_requests, actions].hash
233
+ [id, test, editable, expired, expires_at, processed_at, state, metadata, download_url, batch_id, data_requests, actions].hash
225
234
  end
226
235
 
227
236
  # Builds the object from hash
@@ -30,6 +30,8 @@ module FormAPI
30
30
 
31
31
  attr_accessor :public_web_form
32
32
 
33
+ attr_accessor :editable_submissions
34
+
33
35
  attr_accessor :expire_submissions
34
36
 
35
37
  attr_accessor :name
@@ -75,6 +77,7 @@ module FormAPI
75
77
  :'slack_webhook_url' => :'slack_webhook_url',
76
78
  :'blockchain_timestamp_verification' => :'blockchain_timestamp_verification',
77
79
  :'public_web_form' => :'public_web_form',
80
+ :'editable_submissions' => :'editable_submissions',
78
81
  :'expire_submissions' => :'expire_submissions',
79
82
  :'name' => :'name',
80
83
  :'template_type' => :'template_type',
@@ -95,6 +98,7 @@ module FormAPI
95
98
  :'slack_webhook_url' => :'String',
96
99
  :'blockchain_timestamp_verification' => :'BOOLEAN',
97
100
  :'public_web_form' => :'BOOLEAN',
101
+ :'editable_submissions' => :'BOOLEAN',
98
102
  :'expire_submissions' => :'BOOLEAN',
99
103
  :'name' => :'String',
100
104
  :'template_type' => :'String',
@@ -144,6 +148,10 @@ module FormAPI
144
148
  self.public_web_form = attributes[:'public_web_form']
145
149
  end
146
150
 
151
+ if attributes.has_key?(:'editable_submissions')
152
+ self.editable_submissions = attributes[:'editable_submissions']
153
+ end
154
+
147
155
  if attributes.has_key?(:'expire_submissions')
148
156
  self.expire_submissions = attributes[:'expire_submissions']
149
157
  end
@@ -209,6 +217,7 @@ module FormAPI
209
217
  slack_webhook_url == o.slack_webhook_url &&
210
218
  blockchain_timestamp_verification == o.blockchain_timestamp_verification &&
211
219
  public_web_form == o.public_web_form &&
220
+ editable_submissions == o.editable_submissions &&
212
221
  expire_submissions == o.expire_submissions &&
213
222
  name == o.name &&
214
223
  template_type == o.template_type &&
@@ -226,7 +235,7 @@ module FormAPI
226
235
  # Calculates hash code according to all attributes.
227
236
  # @return [Fixnum] Hash code
228
237
  def hash
229
- [expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, blockchain_timestamp_verification, public_web_form, expire_submissions, name, template_type, id, page_dimensions, redirect_url].hash
238
+ [expiration_interval, webhook_url, expire_after, allow_additional_properties, public_submissions, slack_webhook_url, blockchain_timestamp_verification, public_web_form, editable_submissions, expire_submissions, name, template_type, id, page_dimensions, redirect_url].hash
230
239
  end
231
240
 
232
241
  # Builds the object from hash
@@ -16,28 +16,30 @@ module FormAPI
16
16
  class Templatesv2Template
17
17
  attr_accessor :expiration_interval
18
18
 
19
- attr_accessor :public_web_form
20
-
21
19
  attr_accessor :webhook_url
22
20
 
23
- attr_accessor :expire_submissions
24
-
25
21
  attr_accessor :expire_after
26
22
 
27
23
  attr_accessor :allow_additional_properties
28
24
 
29
25
  attr_accessor :document
30
26
 
31
- attr_accessor :name
32
-
33
27
  attr_accessor :public_submissions
34
28
 
35
29
  attr_accessor :slack_webhook_url
36
30
 
37
- attr_accessor :redirect_url
38
-
39
31
  attr_accessor :blockchain_timestamp_verification
40
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
+ attr_accessor :redirect_url
42
+
41
43
  class EnumAttributeValidator
42
44
  attr_reader :datatype
43
45
  attr_reader :allowable_values
@@ -64,17 +66,18 @@ module FormAPI
64
66
  def self.attribute_map
65
67
  {
66
68
  :'expiration_interval' => :'expiration_interval',
67
- :'public_web_form' => :'public_web_form',
68
69
  :'webhook_url' => :'webhook_url',
69
- :'expire_submissions' => :'expire_submissions',
70
70
  :'expire_after' => :'expire_after',
71
71
  :'allow_additional_properties' => :'allow_additional_properties',
72
72
  :'document' => :'document',
73
- :'name' => :'name',
74
73
  :'public_submissions' => :'public_submissions',
75
74
  :'slack_webhook_url' => :'slack_webhook_url',
76
- :'redirect_url' => :'redirect_url',
77
- :'blockchain_timestamp_verification' => :'blockchain_timestamp_verification'
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
+ :'redirect_url' => :'redirect_url'
78
81
  }
79
82
  end
80
83
 
@@ -82,17 +85,18 @@ module FormAPI
82
85
  def self.openapi_types
83
86
  {
84
87
  :'expiration_interval' => :'String',
85
- :'public_web_form' => :'BOOLEAN',
86
88
  :'webhook_url' => :'String',
87
- :'expire_submissions' => :'BOOLEAN',
88
89
  :'expire_after' => :'Float',
89
90
  :'allow_additional_properties' => :'BOOLEAN',
90
91
  :'document' => :'Templatesv2TemplateDocument',
91
- :'name' => :'String',
92
92
  :'public_submissions' => :'BOOLEAN',
93
93
  :'slack_webhook_url' => :'String',
94
- :'redirect_url' => :'String',
95
- :'blockchain_timestamp_verification' => :'BOOLEAN'
94
+ :'blockchain_timestamp_verification' => :'BOOLEAN',
95
+ :'public_web_form' => :'BOOLEAN',
96
+ :'editable_submissions' => :'BOOLEAN',
97
+ :'expire_submissions' => :'BOOLEAN',
98
+ :'name' => :'String',
99
+ :'redirect_url' => :'String'
96
100
  }
97
101
  end
98
102
 
@@ -108,18 +112,10 @@ module FormAPI
108
112
  self.expiration_interval = attributes[:'expiration_interval']
109
113
  end
110
114
 
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?(:'expire_submissions')
120
- self.expire_submissions = attributes[:'expire_submissions']
121
- end
122
-
123
119
  if attributes.has_key?(:'expire_after')
124
120
  self.expire_after = attributes[:'expire_after']
125
121
  end
@@ -132,10 +128,6 @@ module FormAPI
132
128
  self.document = attributes[:'document']
133
129
  end
134
130
 
135
- if attributes.has_key?(:'name')
136
- self.name = attributes[:'name']
137
- end
138
-
139
131
  if attributes.has_key?(:'public_submissions')
140
132
  self.public_submissions = attributes[:'public_submissions']
141
133
  end
@@ -144,13 +136,29 @@ module FormAPI
144
136
  self.slack_webhook_url = attributes[:'slack_webhook_url']
145
137
  end
146
138
 
147
- if attributes.has_key?(:'redirect_url')
148
- self.redirect_url = attributes[:'redirect_url']
149
- end
150
-
151
139
  if attributes.has_key?(:'blockchain_timestamp_verification')
152
140
  self.blockchain_timestamp_verification = attributes[:'blockchain_timestamp_verification']
153
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
+ if attributes.has_key?(:'redirect_url')
160
+ self.redirect_url = attributes[:'redirect_url']
161
+ end
154
162
  end
155
163
 
156
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -184,17 +192,18 @@ module FormAPI
184
192
  return true if self.equal?(o)
185
193
  self.class == o.class &&
186
194
  expiration_interval == o.expiration_interval &&
187
- public_web_form == o.public_web_form &&
188
195
  webhook_url == o.webhook_url &&
189
- expire_submissions == o.expire_submissions &&
190
196
  expire_after == o.expire_after &&
191
197
  allow_additional_properties == o.allow_additional_properties &&
192
198
  document == o.document &&
193
- name == o.name &&
194
199
  public_submissions == o.public_submissions &&
195
200
  slack_webhook_url == o.slack_webhook_url &&
196
- redirect_url == o.redirect_url &&
197
- blockchain_timestamp_verification == o.blockchain_timestamp_verification
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
+ redirect_url == o.redirect_url
198
207
  end
199
208
 
200
209
  # @see the `==` method
@@ -206,7 +215,7 @@ module FormAPI
206
215
  # Calculates hash code according to all attributes.
207
216
  # @return [Fixnum] Hash code
208
217
  def hash
209
- [expiration_interval, public_web_form, webhook_url, expire_submissions, expire_after, allow_additional_properties, document, name, public_submissions, slack_webhook_url, redirect_url, blockchain_timestamp_verification].hash
218
+ [expiration_interval, webhook_url, expire_after, allow_additional_properties, document, public_submissions, slack_webhook_url, blockchain_timestamp_verification, public_web_form, editable_submissions, expire_submissions, name, redirect_url].hash
210
219
  end
211
220
 
212
221
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 3.3.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FormAPI
14
- VERSION = '1.7.0'
14
+ VERSION = '1.8.0'
15
15
  end
@@ -214,11 +214,15 @@ describe 'PDFApi' do
214
214
  # Check the status of a PDF
215
215
  # @param submission_id
216
216
  # @param [Hash] opts the optional parameters
217
+ # @option opts [BOOLEAN] :include_data
217
218
  # @return [Submission]
218
219
  describe 'get_submission test' do
219
220
  it 'should work' do
220
221
  submission_id = 'sub_000000000000000001' # String |
221
- result = api_instance.get_submission(submission_id)
222
+ opts = {
223
+ include_data: false # BOOLEAN |
224
+ }
225
+ result = api_instance.get_submission(submission_id, opts)
222
226
  expect(result).to_not be_nil
223
227
  end
224
228
  end
@@ -84,6 +84,12 @@ describe 'PendingTemplate' do
84
84
  end
85
85
  end
86
86
 
87
+ describe 'test attribute "editable_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
+
87
93
  describe 'test attribute "expire_submissions"' do
88
94
  it 'should work' do
89
95
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -44,6 +44,12 @@ describe 'Submission' do
44
44
  end
45
45
  end
46
46
 
47
+ describe 'test attribute "editable"' 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 "expired"' do
48
54
  it 'should work' do
49
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -65,7 +71,7 @@ describe 'Submission' do
65
71
  describe 'test attribute "state"' do
66
72
  it 'should work' do
67
73
  # 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", "waiting_for_data_requests"])
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"])
69
75
  # validator.allowable_values.each do |value|
70
76
  # expect { @instance.state = value }.not_to raise_error
71
77
  # end
@@ -84,6 +84,12 @@ describe 'Template' do
84
84
  end
85
85
  end
86
86
 
87
+ describe 'test attribute "editable_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
+
87
93
  describe 'test attribute "expire_submissions"' do
88
94
  it 'should work' do
89
95
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -42,67 +42,73 @@ describe 'Templatesv2Template' do
42
42
  end
43
43
  end
44
44
 
45
- describe 'test attribute "public_web_form"' do
45
+ describe 'test attribute "webhook_url"' do
46
46
  it 'should work' do
47
47
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
48
  end
49
49
  end
50
50
 
51
- describe 'test attribute "webhook_url"' do
51
+ describe 'test attribute "expire_after"' do
52
52
  it 'should work' do
53
53
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
54
  end
55
55
  end
56
56
 
57
- describe 'test attribute "expire_submissions"' do
57
+ describe 'test attribute "allow_additional_properties"' do
58
58
  it 'should work' do
59
59
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
60
  end
61
61
  end
62
62
 
63
- describe 'test attribute "expire_after"' do
63
+ describe 'test attribute "document"' do
64
64
  it 'should work' do
65
65
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
66
  end
67
67
  end
68
68
 
69
- describe 'test attribute "allow_additional_properties"' do
69
+ describe 'test attribute "public_submissions"' do
70
70
  it 'should work' do
71
71
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
72
  end
73
73
  end
74
74
 
75
- describe 'test attribute "document"' do
75
+ describe 'test attribute "slack_webhook_url"' do
76
76
  it 'should work' do
77
77
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
78
  end
79
79
  end
80
80
 
81
- describe 'test attribute "name"' do
81
+ describe 'test attribute "blockchain_timestamp_verification"' do
82
82
  it 'should work' do
83
83
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
84
  end
85
85
  end
86
86
 
87
- describe 'test attribute "public_submissions"' do
87
+ describe 'test attribute "public_web_form"' do
88
88
  it 'should work' do
89
89
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
90
  end
91
91
  end
92
92
 
93
- describe 'test attribute "slack_webhook_url"' do
93
+ describe 'test attribute "editable_submissions"' do
94
94
  it 'should work' do
95
95
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
96
  end
97
97
  end
98
98
 
99
- describe 'test attribute "redirect_url"' do
99
+ describe 'test attribute "expire_submissions"' do
100
100
  it 'should work' do
101
101
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
102
  end
103
103
  end
104
104
 
105
- describe 'test attribute "blockchain_timestamp_verification"' do
105
+ describe 'test attribute "name"' 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 "redirect_url"' do
106
112
  it 'should work' do
107
113
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
114
  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.7.0
4
+ version: 1.8.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-22 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus