docspring 3.4.0 → 3.5.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/.openapi-generator/FILES +3 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/docs/BatchGeneratePdfs201Response.md +3 -1
- data/docs/Client.md +6 -6
- data/docs/CombinePdfsData.md +1 -1
- data/docs/CreateCombinedSubmissionResponse.md +5 -1
- data/docs/CreateCustomFileResponse.md +2 -0
- data/docs/CreatePdfSubmissionData.md +1 -1
- data/docs/CreateSubmissionDataRequestEventResponse.md +2 -0
- data/docs/CreateSubmissionDataRequestResponse.md +2 -0
- data/docs/CreateSubmissionDataRequestTokenResponse.md +2 -0
- data/docs/CreateSubmissionResponse.md +5 -1
- data/docs/ForbiddenErrorResponse.md +22 -0
- data/docs/SubmissionBatchData.md +1 -1
- data/docspring.gemspec +1 -1
- data/lib/docspring/api/client.rb +13 -13
- data/lib/docspring/api_client.rb +2 -2
- data/lib/docspring/api_error.rb +1 -1
- data/lib/docspring/configuration.rb +1 -1
- data/lib/docspring/models/add_fields_data.rb +1 -1
- data/lib/docspring/models/batch_generate_pdfs201_response.rb +15 -5
- data/lib/docspring/models/combine_pdfs_data.rb +2 -2
- data/lib/docspring/models/combined_submission.rb +3 -3
- data/lib/docspring/models/combined_submission_action.rb +1 -1
- data/lib/docspring/models/copy_template_options.rb +1 -1
- data/lib/docspring/models/create_combined_submission_response.rb +24 -5
- data/lib/docspring/models/create_custom_file_data.rb +1 -1
- data/lib/docspring/models/create_custom_file_response.rb +11 -2
- data/lib/docspring/models/create_folder_data.rb +1 -1
- data/lib/docspring/models/create_html_template.rb +1 -1
- data/lib/docspring/models/create_pdf_submission_data.rb +2 -1
- data/lib/docspring/models/create_pdf_template.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_data.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_event_request.rb +1 -1
- data/lib/docspring/models/create_submission_data_request_event_response.rb +11 -2
- data/lib/docspring/models/create_submission_data_request_response.rb +11 -2
- data/lib/docspring/models/create_submission_data_request_token_response.rb +11 -2
- data/lib/docspring/models/create_submission_response.rb +24 -5
- data/lib/docspring/models/create_webhook_data.rb +1 -1
- data/lib/docspring/models/custom_file.rb +1 -1
- data/lib/docspring/models/error_or_multiple_errors_response.rb +1 -1
- data/lib/docspring/models/error_response.rb +1 -1
- data/lib/docspring/models/folder.rb +1 -1
- data/lib/docspring/models/forbidden_error_response.rb +323 -0
- data/lib/docspring/models/json_schema.rb +1 -1
- data/lib/docspring/models/list_submissions_response.rb +1 -1
- data/lib/docspring/models/move_folder_data.rb +1 -1
- data/lib/docspring/models/move_template_data.rb +1 -1
- data/lib/docspring/models/multiple_errors_response.rb +1 -1
- data/lib/docspring/models/publish_version_data.rb +1 -1
- data/lib/docspring/models/rename_folder_data.rb +1 -1
- data/lib/docspring/models/restore_version_data.rb +1 -1
- data/lib/docspring/models/submission.rb +3 -3
- data/lib/docspring/models/submission422_response.rb +1 -1
- data/lib/docspring/models/submission_action.rb +1 -1
- data/lib/docspring/models/submission_batch.rb +1 -1
- data/lib/docspring/models/submission_batch_data.rb +2 -1
- data/lib/docspring/models/submission_batch_with_submissions.rb +1 -1
- data/lib/docspring/models/submission_data_request.rb +1 -1
- data/lib/docspring/models/submission_data_request_event.rb +1 -1
- data/lib/docspring/models/submission_data_request_show.rb +1 -1
- data/lib/docspring/models/submission_data_request_token.rb +1 -1
- data/lib/docspring/models/submission_preview.rb +3 -3
- data/lib/docspring/models/success_error_response.rb +1 -1
- data/lib/docspring/models/success_multiple_errors_response.rb +1 -1
- data/lib/docspring/models/template.rb +1 -1
- data/lib/docspring/models/template_add_fields_response.rb +1 -1
- data/lib/docspring/models/template_delete_response.rb +1 -1
- data/lib/docspring/models/template_model_code_response.rb +1 -1
- data/lib/docspring/models/template_preview.rb +1 -1
- data/lib/docspring/models/template_publish_version_response.rb +1 -1
- data/lib/docspring/models/update_html_template.rb +1 -1
- data/lib/docspring/models/update_pdf_template.rb +1 -1
- data/lib/docspring/models/update_submission_data_request_data.rb +1 -1
- data/lib/docspring/models/update_webhook_data.rb +1 -1
- data/lib/docspring/models/upload_presign_response.rb +1 -1
- data/lib/docspring/models/webhook.rb +1 -1
- data/lib/docspring/version.rb +2 -2
- data/lib/docspring.rb +2 -1
- data/spec/api/client_spec.rb +7 -7
- data/spec/models/add_fields_data_spec.rb +1 -1
- data/spec/models/batch_generate_pdfs201_response_spec.rb +7 -1
- data/spec/models/combine_pdfs_data_spec.rb +1 -1
- data/spec/models/combined_submission_action_spec.rb +1 -1
- data/spec/models/combined_submission_spec.rb +2 -2
- data/spec/models/copy_template_options_spec.rb +1 -1
- data/spec/models/create_combined_submission_response_spec.rb +13 -1
- data/spec/models/create_custom_file_data_spec.rb +1 -1
- data/spec/models/create_custom_file_response_spec.rb +7 -1
- data/spec/models/create_folder_data_spec.rb +1 -1
- data/spec/models/create_html_template_spec.rb +1 -1
- data/spec/models/create_pdf_submission_data_spec.rb +1 -1
- data/spec/models/create_pdf_template_spec.rb +1 -1
- data/spec/models/create_submission_data_request_data_spec.rb +1 -1
- data/spec/models/create_submission_data_request_event_request_spec.rb +1 -1
- data/spec/models/create_submission_data_request_event_response_spec.rb +7 -1
- data/spec/models/create_submission_data_request_response_spec.rb +7 -1
- data/spec/models/create_submission_data_request_token_response_spec.rb +7 -1
- data/spec/models/create_submission_response_spec.rb +13 -1
- data/spec/models/create_webhook_data_spec.rb +1 -1
- data/spec/models/custom_file_spec.rb +1 -1
- data/spec/models/error_or_multiple_errors_response_spec.rb +1 -1
- data/spec/models/error_response_spec.rb +1 -1
- data/spec/models/folder_spec.rb +1 -1
- data/spec/models/forbidden_error_response_spec.rb +56 -0
- data/spec/models/json_schema_spec.rb +1 -1
- data/spec/models/list_submissions_response_spec.rb +1 -1
- data/spec/models/move_folder_data_spec.rb +1 -1
- data/spec/models/move_template_data_spec.rb +1 -1
- data/spec/models/multiple_errors_response_spec.rb +1 -1
- data/spec/models/publish_version_data_spec.rb +1 -1
- data/spec/models/rename_folder_data_spec.rb +1 -1
- data/spec/models/restore_version_data_spec.rb +1 -1
- data/spec/models/submission422_response_spec.rb +1 -1
- data/spec/models/submission_action_spec.rb +1 -1
- data/spec/models/submission_batch_data_spec.rb +1 -1
- data/spec/models/submission_batch_spec.rb +1 -1
- data/spec/models/submission_batch_with_submissions_spec.rb +1 -1
- data/spec/models/submission_data_request_event_spec.rb +1 -1
- data/spec/models/submission_data_request_show_spec.rb +1 -1
- data/spec/models/submission_data_request_spec.rb +1 -1
- data/spec/models/submission_data_request_token_spec.rb +1 -1
- data/spec/models/submission_preview_spec.rb +2 -2
- data/spec/models/submission_spec.rb +2 -2
- data/spec/models/success_error_response_spec.rb +1 -1
- data/spec/models/success_multiple_errors_response_spec.rb +1 -1
- data/spec/models/template_add_fields_response_spec.rb +1 -1
- data/spec/models/template_delete_response_spec.rb +1 -1
- data/spec/models/template_model_code_response_spec.rb +1 -1
- data/spec/models/template_preview_spec.rb +1 -1
- data/spec/models/template_publish_version_response_spec.rb +1 -1
- data/spec/models/template_spec.rb +1 -1
- data/spec/models/update_html_template_spec.rb +1 -1
- data/spec/models/update_pdf_template_spec.rb +1 -1
- data/spec/models/update_submission_data_request_data_spec.rb +1 -1
- data/spec/models/update_webhook_data_spec.rb +1 -1
- data/spec/models/upload_presign_response_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +5 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -19,8 +19,13 @@ module DocSpring
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :combined_submission
|
|
21
21
|
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
22
24
|
attr_accessor :errors
|
|
23
25
|
|
|
26
|
+
# `insufficient_credits` when the response is a 402.
|
|
27
|
+
attr_accessor :code
|
|
28
|
+
|
|
24
29
|
class EnumAttributeValidator
|
|
25
30
|
attr_reader :datatype
|
|
26
31
|
attr_reader :allowable_values
|
|
@@ -48,7 +53,9 @@ module DocSpring
|
|
|
48
53
|
{
|
|
49
54
|
:'status' => :'status',
|
|
50
55
|
:'combined_submission' => :'combined_submission',
|
|
51
|
-
:'
|
|
56
|
+
:'error' => :'error',
|
|
57
|
+
:'errors' => :'errors',
|
|
58
|
+
:'code' => :'code'
|
|
52
59
|
}
|
|
53
60
|
end
|
|
54
61
|
|
|
@@ -67,7 +74,9 @@ module DocSpring
|
|
|
67
74
|
{
|
|
68
75
|
:'status' => :'String',
|
|
69
76
|
:'combined_submission' => :'CombinedSubmission',
|
|
70
|
-
:'
|
|
77
|
+
:'error' => :'String',
|
|
78
|
+
:'errors' => :'Array<String>',
|
|
79
|
+
:'code' => :'String'
|
|
71
80
|
}
|
|
72
81
|
end
|
|
73
82
|
|
|
@@ -105,11 +114,19 @@ module DocSpring
|
|
|
105
114
|
self.combined_submission = nil
|
|
106
115
|
end
|
|
107
116
|
|
|
117
|
+
if attributes.key?(:'error')
|
|
118
|
+
self.error = attributes[:'error']
|
|
119
|
+
end
|
|
120
|
+
|
|
108
121
|
if attributes.key?(:'errors')
|
|
109
122
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
110
123
|
self.errors = value
|
|
111
124
|
end
|
|
112
125
|
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'code')
|
|
128
|
+
self.code = attributes[:'code']
|
|
129
|
+
end
|
|
113
130
|
end
|
|
114
131
|
|
|
115
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -167,7 +184,9 @@ module DocSpring
|
|
|
167
184
|
self.class == o.class &&
|
|
168
185
|
status == o.status &&
|
|
169
186
|
combined_submission == o.combined_submission &&
|
|
170
|
-
|
|
187
|
+
error == o.error &&
|
|
188
|
+
errors == o.errors &&
|
|
189
|
+
code == o.code
|
|
171
190
|
end
|
|
172
191
|
|
|
173
192
|
# @see the `==` method
|
|
@@ -179,7 +198,7 @@ module DocSpring
|
|
|
179
198
|
# Calculates hash code according to all attributes.
|
|
180
199
|
# @return [Integer] Hash code
|
|
181
200
|
def hash
|
|
182
|
-
[status, combined_submission, errors].hash
|
|
201
|
+
[status, combined_submission, error, errors, code].hash
|
|
183
202
|
end
|
|
184
203
|
|
|
185
204
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -19,6 +19,8 @@ module DocSpring
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :custom_file
|
|
21
21
|
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
22
24
|
attr_accessor :errors
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -48,6 +50,7 @@ module DocSpring
|
|
|
48
50
|
{
|
|
49
51
|
:'status' => :'status',
|
|
50
52
|
:'custom_file' => :'custom_file',
|
|
53
|
+
:'error' => :'error',
|
|
51
54
|
:'errors' => :'errors'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module DocSpring
|
|
|
67
70
|
{
|
|
68
71
|
:'status' => :'String',
|
|
69
72
|
:'custom_file' => :'CustomFile',
|
|
73
|
+
:'error' => :'String',
|
|
70
74
|
:'errors' => :'Array<String>'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -105,6 +109,10 @@ module DocSpring
|
|
|
105
109
|
self.custom_file = nil
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'error')
|
|
113
|
+
self.error = attributes[:'error']
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if attributes.key?(:'errors')
|
|
109
117
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
110
118
|
self.errors = value
|
|
@@ -167,6 +175,7 @@ module DocSpring
|
|
|
167
175
|
self.class == o.class &&
|
|
168
176
|
status == o.status &&
|
|
169
177
|
custom_file == o.custom_file &&
|
|
178
|
+
error == o.error &&
|
|
170
179
|
errors == o.errors
|
|
171
180
|
end
|
|
172
181
|
|
|
@@ -179,7 +188,7 @@ module DocSpring
|
|
|
179
188
|
# Calculates hash code according to all attributes.
|
|
180
189
|
# @return [Integer] Hash code
|
|
181
190
|
def hash
|
|
182
|
-
[status, custom_file, errors].hash
|
|
191
|
+
[status, custom_file, error, errors].hash
|
|
183
192
|
end
|
|
184
193
|
|
|
185
194
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -29,6 +29,7 @@ module DocSpring
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :password
|
|
31
31
|
|
|
32
|
+
# Generate a watermarked test PDF. Test PDFs are free; live PDFs (the default) use credits.
|
|
32
33
|
attr_accessor :test
|
|
33
34
|
|
|
34
35
|
attr_accessor :version
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -19,6 +19,8 @@ module DocSpring
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :event
|
|
21
21
|
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
22
24
|
attr_accessor :errors
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -48,6 +50,7 @@ module DocSpring
|
|
|
48
50
|
{
|
|
49
51
|
:'status' => :'status',
|
|
50
52
|
:'event' => :'event',
|
|
53
|
+
:'error' => :'error',
|
|
51
54
|
:'errors' => :'errors'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module DocSpring
|
|
|
67
70
|
{
|
|
68
71
|
:'status' => :'String',
|
|
69
72
|
:'event' => :'SubmissionDataRequestEvent',
|
|
73
|
+
:'error' => :'String',
|
|
70
74
|
:'errors' => :'Array<String>'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -105,6 +109,10 @@ module DocSpring
|
|
|
105
109
|
self.event = nil
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'error')
|
|
113
|
+
self.error = attributes[:'error']
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if attributes.key?(:'errors')
|
|
109
117
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
110
118
|
self.errors = value
|
|
@@ -167,6 +175,7 @@ module DocSpring
|
|
|
167
175
|
self.class == o.class &&
|
|
168
176
|
status == o.status &&
|
|
169
177
|
event == o.event &&
|
|
178
|
+
error == o.error &&
|
|
170
179
|
errors == o.errors
|
|
171
180
|
end
|
|
172
181
|
|
|
@@ -179,7 +188,7 @@ module DocSpring
|
|
|
179
188
|
# Calculates hash code according to all attributes.
|
|
180
189
|
# @return [Integer] Hash code
|
|
181
190
|
def hash
|
|
182
|
-
[status, event, errors].hash
|
|
191
|
+
[status, event, error, errors].hash
|
|
183
192
|
end
|
|
184
193
|
|
|
185
194
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -19,6 +19,8 @@ module DocSpring
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :data_request
|
|
21
21
|
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
22
24
|
attr_accessor :errors
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -48,6 +50,7 @@ module DocSpring
|
|
|
48
50
|
{
|
|
49
51
|
:'status' => :'status',
|
|
50
52
|
:'data_request' => :'data_request',
|
|
53
|
+
:'error' => :'error',
|
|
51
54
|
:'errors' => :'errors'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module DocSpring
|
|
|
67
70
|
{
|
|
68
71
|
:'status' => :'String',
|
|
69
72
|
:'data_request' => :'SubmissionDataRequestShow',
|
|
73
|
+
:'error' => :'String',
|
|
70
74
|
:'errors' => :'Array<String>'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -105,6 +109,10 @@ module DocSpring
|
|
|
105
109
|
self.data_request = nil
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'error')
|
|
113
|
+
self.error = attributes[:'error']
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if attributes.key?(:'errors')
|
|
109
117
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
110
118
|
self.errors = value
|
|
@@ -167,6 +175,7 @@ module DocSpring
|
|
|
167
175
|
self.class == o.class &&
|
|
168
176
|
status == o.status &&
|
|
169
177
|
data_request == o.data_request &&
|
|
178
|
+
error == o.error &&
|
|
170
179
|
errors == o.errors
|
|
171
180
|
end
|
|
172
181
|
|
|
@@ -179,7 +188,7 @@ module DocSpring
|
|
|
179
188
|
# Calculates hash code according to all attributes.
|
|
180
189
|
# @return [Integer] Hash code
|
|
181
190
|
def hash
|
|
182
|
-
[status, data_request, errors].hash
|
|
191
|
+
[status, data_request, error, errors].hash
|
|
183
192
|
end
|
|
184
193
|
|
|
185
194
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -19,6 +19,8 @@ module DocSpring
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :token
|
|
21
21
|
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
22
24
|
attr_accessor :errors
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -48,6 +50,7 @@ module DocSpring
|
|
|
48
50
|
{
|
|
49
51
|
:'status' => :'status',
|
|
50
52
|
:'token' => :'token',
|
|
53
|
+
:'error' => :'error',
|
|
51
54
|
:'errors' => :'errors'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module DocSpring
|
|
|
67
70
|
{
|
|
68
71
|
:'status' => :'String',
|
|
69
72
|
:'token' => :'SubmissionDataRequestToken',
|
|
73
|
+
:'error' => :'String',
|
|
70
74
|
:'errors' => :'Array<String>'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -105,6 +109,10 @@ module DocSpring
|
|
|
105
109
|
self.token = nil
|
|
106
110
|
end
|
|
107
111
|
|
|
112
|
+
if attributes.key?(:'error')
|
|
113
|
+
self.error = attributes[:'error']
|
|
114
|
+
end
|
|
115
|
+
|
|
108
116
|
if attributes.key?(:'errors')
|
|
109
117
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
110
118
|
self.errors = value
|
|
@@ -167,6 +175,7 @@ module DocSpring
|
|
|
167
175
|
self.class == o.class &&
|
|
168
176
|
status == o.status &&
|
|
169
177
|
token == o.token &&
|
|
178
|
+
error == o.error &&
|
|
170
179
|
errors == o.errors
|
|
171
180
|
end
|
|
172
181
|
|
|
@@ -179,7 +188,7 @@ module DocSpring
|
|
|
179
188
|
# Calculates hash code according to all attributes.
|
|
180
189
|
# @return [Integer] Hash code
|
|
181
190
|
def hash
|
|
182
|
-
[status, token, errors].hash
|
|
191
|
+
[status, token, error, errors].hash
|
|
183
192
|
end
|
|
184
193
|
|
|
185
194
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -19,8 +19,13 @@ module DocSpring
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :submission
|
|
21
21
|
|
|
22
|
+
attr_accessor :error
|
|
23
|
+
|
|
22
24
|
attr_accessor :errors
|
|
23
25
|
|
|
26
|
+
# `insufficient_credits` when the response is a 402.
|
|
27
|
+
attr_accessor :code
|
|
28
|
+
|
|
24
29
|
class EnumAttributeValidator
|
|
25
30
|
attr_reader :datatype
|
|
26
31
|
attr_reader :allowable_values
|
|
@@ -48,7 +53,9 @@ module DocSpring
|
|
|
48
53
|
{
|
|
49
54
|
:'status' => :'status',
|
|
50
55
|
:'submission' => :'submission',
|
|
51
|
-
:'
|
|
56
|
+
:'error' => :'error',
|
|
57
|
+
:'errors' => :'errors',
|
|
58
|
+
:'code' => :'code'
|
|
52
59
|
}
|
|
53
60
|
end
|
|
54
61
|
|
|
@@ -67,7 +74,9 @@ module DocSpring
|
|
|
67
74
|
{
|
|
68
75
|
:'status' => :'String',
|
|
69
76
|
:'submission' => :'SubmissionPreview',
|
|
70
|
-
:'
|
|
77
|
+
:'error' => :'String',
|
|
78
|
+
:'errors' => :'Array<String>',
|
|
79
|
+
:'code' => :'String'
|
|
71
80
|
}
|
|
72
81
|
end
|
|
73
82
|
|
|
@@ -105,11 +114,19 @@ module DocSpring
|
|
|
105
114
|
self.submission = nil
|
|
106
115
|
end
|
|
107
116
|
|
|
117
|
+
if attributes.key?(:'error')
|
|
118
|
+
self.error = attributes[:'error']
|
|
119
|
+
end
|
|
120
|
+
|
|
108
121
|
if attributes.key?(:'errors')
|
|
109
122
|
if (value = attributes[:'errors']).is_a?(Array)
|
|
110
123
|
self.errors = value
|
|
111
124
|
end
|
|
112
125
|
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'code')
|
|
128
|
+
self.code = attributes[:'code']
|
|
129
|
+
end
|
|
113
130
|
end
|
|
114
131
|
|
|
115
132
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -167,7 +184,9 @@ module DocSpring
|
|
|
167
184
|
self.class == o.class &&
|
|
168
185
|
status == o.status &&
|
|
169
186
|
submission == o.submission &&
|
|
170
|
-
|
|
187
|
+
error == o.error &&
|
|
188
|
+
errors == o.errors &&
|
|
189
|
+
code == o.code
|
|
171
190
|
end
|
|
172
191
|
|
|
173
192
|
# @see the `==` method
|
|
@@ -179,7 +198,7 @@ module DocSpring
|
|
|
179
198
|
# Calculates hash code according to all attributes.
|
|
180
199
|
# @return [Integer] Hash code
|
|
181
200
|
def hash
|
|
182
|
-
[status, submission, errors].hash
|
|
201
|
+
[status, submission, error, errors, code].hash
|
|
183
202
|
end
|
|
184
203
|
|
|
185
204
|
# Builds the object from hash
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#DocSpring API
|
|
3
3
|
|
|
4
|
-
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
4
|
+
#Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
5
5
|
|
|
6
6
|
The version of the OpenAPI document: v1
|
|
7
7
|
|