docspring 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/PDFApi.md +1 -1
- data/docs/Submission.md +3 -0
- data/lib/docspring/models/submission.rb +31 -4
- data/lib/docspring/version.rb +1 -1
- data/spec/api/pdf_api_spec_original.skipped.rb +1 -1
- data/spec/models/submission_spec.rb +18 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6de423319fc95835c0471efa668606d4a7d7a5ab2ff52f40de11a6c29342de78
|
4
|
+
data.tar.gz: 88e3deac1c2085f826db9daa3da3c27e758ed01068be84f36c738e6583480779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d38a1f55599698faf91041f1f68e192385e20206516d4704d86e1e80911c313187d024f78f50df92fbb90d823c7f5346ba0cc62df925aef254fe373c2155bd
|
7
|
+
data.tar.gz: 6a09bc008f3216c5ecbecd206c05201546e95ad548be2a3db3b85e90bab0be73cba820527c8f08cfdca52fcb21a063ae6cfa9d14f3e2f5e3c5bd10c2ab259518
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
### 1.2.1 [September 24, 2020]
|
2
|
+
|
3
|
+
- Fixed the "include_data=true" option for the "Get Submission" API endpoint. Added the "data" property to the Submission model so that this is parsed and returned correctly when requested
|
4
|
+
|
1
5
|
### 1.2.0 [September 21, 2020]
|
2
6
|
|
3
7
|
- Renamed some internal models for template creation API endpoints. (CreateTemplateData / CreateTemplateData1 renamed to CreateHtmlTemplateData and CreateTemplateFromUploadData)
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ DocSpring 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.2.
|
10
|
+
- Package version: 1.2.1
|
11
11
|
- Build package: com.docspring.codegen.DocSpringRubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build docspring.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./docspring-1.2.
|
26
|
+
gem install ./docspring-1.2.1.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./docspring-1.2.
|
28
|
+
(for development, run `gem install --dev ./docspring-1.2.1.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 'docspring', '~> 1.2.
|
34
|
+
gem 'docspring', '~> 1.2.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
data/docs/PDFApi.md
CHANGED
data/docs/Submission.md
CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**expires_at** | **String** | | [optional]
|
12
12
|
**processed_at** | **String** | | [optional]
|
13
13
|
**state** | **String** | |
|
14
|
+
**data** | **Object** | | [optional]
|
14
15
|
**metadata** | **Object** | | [optional]
|
15
16
|
**truncated_text** | **Object** | | [optional]
|
16
17
|
**pdf_hash** | **String** | | [optional]
|
@@ -19,5 +20,7 @@ Name | Type | Description | Notes
|
|
19
20
|
**batch_id** | **String** | | [optional]
|
20
21
|
**data_requests** | [**Array<SubmissionDataRequest>**](SubmissionDataRequest.md) | | [optional]
|
21
22
|
**actions** | [**Array<SubmissionAction>**](SubmissionAction.md) | | [optional]
|
23
|
+
**source** | **String** | | [optional]
|
24
|
+
**referrer** | **String** | | [optional]
|
22
25
|
|
23
26
|
|
@@ -30,6 +30,8 @@ module DocSpring
|
|
30
30
|
|
31
31
|
attr_accessor :state
|
32
32
|
|
33
|
+
attr_accessor :data
|
34
|
+
|
33
35
|
attr_accessor :metadata
|
34
36
|
|
35
37
|
attr_accessor :truncated_text
|
@@ -46,6 +48,10 @@ module DocSpring
|
|
46
48
|
|
47
49
|
attr_accessor :actions
|
48
50
|
|
51
|
+
attr_accessor :source
|
52
|
+
|
53
|
+
attr_accessor :referrer
|
54
|
+
|
49
55
|
class EnumAttributeValidator
|
50
56
|
attr_reader :datatype
|
51
57
|
attr_reader :allowable_values
|
@@ -79,6 +85,7 @@ module DocSpring
|
|
79
85
|
:'expires_at' => :'expires_at',
|
80
86
|
:'processed_at' => :'processed_at',
|
81
87
|
:'state' => :'state',
|
88
|
+
:'data' => :'data',
|
82
89
|
:'metadata' => :'metadata',
|
83
90
|
:'truncated_text' => :'truncated_text',
|
84
91
|
:'pdf_hash' => :'pdf_hash',
|
@@ -86,7 +93,9 @@ module DocSpring
|
|
86
93
|
:'permanent_download_url' => :'permanent_download_url',
|
87
94
|
:'batch_id' => :'batch_id',
|
88
95
|
:'data_requests' => :'data_requests',
|
89
|
-
:'actions' => :'actions'
|
96
|
+
:'actions' => :'actions',
|
97
|
+
:'source' => :'source',
|
98
|
+
:'referrer' => :'referrer'
|
90
99
|
}
|
91
100
|
end
|
92
101
|
|
@@ -101,6 +110,7 @@ module DocSpring
|
|
101
110
|
:'expires_at' => :'String',
|
102
111
|
:'processed_at' => :'String',
|
103
112
|
:'state' => :'String',
|
113
|
+
:'data' => :'Object',
|
104
114
|
:'metadata' => :'Object',
|
105
115
|
:'truncated_text' => :'Object',
|
106
116
|
:'pdf_hash' => :'String',
|
@@ -108,7 +118,9 @@ module DocSpring
|
|
108
118
|
:'permanent_download_url' => :'String',
|
109
119
|
:'batch_id' => :'String',
|
110
120
|
:'data_requests' => :'Array<SubmissionDataRequest>',
|
111
|
-
:'actions' => :'Array<SubmissionAction>'
|
121
|
+
:'actions' => :'Array<SubmissionAction>',
|
122
|
+
:'source' => :'String',
|
123
|
+
:'referrer' => :'String'
|
112
124
|
}
|
113
125
|
end
|
114
126
|
|
@@ -152,6 +164,10 @@ module DocSpring
|
|
152
164
|
self.state = attributes[:'state']
|
153
165
|
end
|
154
166
|
|
167
|
+
if attributes.has_key?(:'data')
|
168
|
+
self.data = attributes[:'data']
|
169
|
+
end
|
170
|
+
|
155
171
|
if attributes.has_key?(:'metadata')
|
156
172
|
self.metadata = attributes[:'metadata']
|
157
173
|
end
|
@@ -187,6 +203,14 @@ module DocSpring
|
|
187
203
|
self.actions = value
|
188
204
|
end
|
189
205
|
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'source')
|
208
|
+
self.source = attributes[:'source']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'referrer')
|
212
|
+
self.referrer = attributes[:'referrer']
|
213
|
+
end
|
190
214
|
end
|
191
215
|
|
192
216
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -247,6 +271,7 @@ module DocSpring
|
|
247
271
|
expires_at == o.expires_at &&
|
248
272
|
processed_at == o.processed_at &&
|
249
273
|
state == o.state &&
|
274
|
+
data == o.data &&
|
250
275
|
metadata == o.metadata &&
|
251
276
|
truncated_text == o.truncated_text &&
|
252
277
|
pdf_hash == o.pdf_hash &&
|
@@ -254,7 +279,9 @@ module DocSpring
|
|
254
279
|
permanent_download_url == o.permanent_download_url &&
|
255
280
|
batch_id == o.batch_id &&
|
256
281
|
data_requests == o.data_requests &&
|
257
|
-
actions == o.actions
|
282
|
+
actions == o.actions &&
|
283
|
+
source == o.source &&
|
284
|
+
referrer == o.referrer
|
258
285
|
end
|
259
286
|
|
260
287
|
# @see the `==` method
|
@@ -266,7 +293,7 @@ module DocSpring
|
|
266
293
|
# Calculates hash code according to all attributes.
|
267
294
|
# @return [Fixnum] Hash code
|
268
295
|
def hash
|
269
|
-
[id, template_id, test, editable, expired, expires_at, processed_at, state, metadata, truncated_text, pdf_hash, download_url, permanent_download_url, batch_id, data_requests, actions].hash
|
296
|
+
[id, template_id, test, editable, expired, expires_at, processed_at, state, data, metadata, truncated_text, pdf_hash, download_url, permanent_download_url, batch_id, data_requests, actions, source, referrer].hash
|
270
297
|
end
|
271
298
|
|
272
299
|
# Builds the object from hash
|
data/lib/docspring/version.rb
CHANGED
@@ -274,7 +274,7 @@ describe 'PDFApi' do
|
|
274
274
|
it 'should work' do
|
275
275
|
submission_id = 'sub_000000000000000001' # String |
|
276
276
|
opts = {
|
277
|
-
include_data:
|
277
|
+
include_data: true # BOOLEAN |
|
278
278
|
}
|
279
279
|
result = api_instance.get_submission(submission_id, opts)
|
280
280
|
expect(result).to_not be_nil
|
@@ -84,6 +84,12 @@ describe 'Submission' do
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
+
describe 'test attribute "data"' 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 "metadata"' do
|
88
94
|
it 'should work' do
|
89
95
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -132,4 +138,16 @@ describe 'Submission' do
|
|
132
138
|
end
|
133
139
|
end
|
134
140
|
|
141
|
+
describe 'test attribute "source"' do
|
142
|
+
it 'should work' do
|
143
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
describe 'test attribute "referrer"' do
|
148
|
+
it 'should work' do
|
149
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
135
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docspring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
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: 2020-09-
|
11
|
+
date: 2020-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|