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.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +3 -0
  3. data/.travis.yml +1 -1
  4. data/CHANGELOG.md +11 -0
  5. data/Gemfile.lock +2 -2
  6. data/README.md +1 -1
  7. data/docs/BatchGeneratePdfs201Response.md +3 -1
  8. data/docs/Client.md +6 -6
  9. data/docs/CombinePdfsData.md +1 -1
  10. data/docs/CreateCombinedSubmissionResponse.md +5 -1
  11. data/docs/CreateCustomFileResponse.md +2 -0
  12. data/docs/CreatePdfSubmissionData.md +1 -1
  13. data/docs/CreateSubmissionDataRequestEventResponse.md +2 -0
  14. data/docs/CreateSubmissionDataRequestResponse.md +2 -0
  15. data/docs/CreateSubmissionDataRequestTokenResponse.md +2 -0
  16. data/docs/CreateSubmissionResponse.md +5 -1
  17. data/docs/ForbiddenErrorResponse.md +22 -0
  18. data/docs/SubmissionBatchData.md +1 -1
  19. data/docspring.gemspec +1 -1
  20. data/lib/docspring/api/client.rb +13 -13
  21. data/lib/docspring/api_client.rb +2 -2
  22. data/lib/docspring/api_error.rb +1 -1
  23. data/lib/docspring/configuration.rb +1 -1
  24. data/lib/docspring/models/add_fields_data.rb +1 -1
  25. data/lib/docspring/models/batch_generate_pdfs201_response.rb +15 -5
  26. data/lib/docspring/models/combine_pdfs_data.rb +2 -2
  27. data/lib/docspring/models/combined_submission.rb +3 -3
  28. data/lib/docspring/models/combined_submission_action.rb +1 -1
  29. data/lib/docspring/models/copy_template_options.rb +1 -1
  30. data/lib/docspring/models/create_combined_submission_response.rb +24 -5
  31. data/lib/docspring/models/create_custom_file_data.rb +1 -1
  32. data/lib/docspring/models/create_custom_file_response.rb +11 -2
  33. data/lib/docspring/models/create_folder_data.rb +1 -1
  34. data/lib/docspring/models/create_html_template.rb +1 -1
  35. data/lib/docspring/models/create_pdf_submission_data.rb +2 -1
  36. data/lib/docspring/models/create_pdf_template.rb +1 -1
  37. data/lib/docspring/models/create_submission_data_request_data.rb +1 -1
  38. data/lib/docspring/models/create_submission_data_request_event_request.rb +1 -1
  39. data/lib/docspring/models/create_submission_data_request_event_response.rb +11 -2
  40. data/lib/docspring/models/create_submission_data_request_response.rb +11 -2
  41. data/lib/docspring/models/create_submission_data_request_token_response.rb +11 -2
  42. data/lib/docspring/models/create_submission_response.rb +24 -5
  43. data/lib/docspring/models/create_webhook_data.rb +1 -1
  44. data/lib/docspring/models/custom_file.rb +1 -1
  45. data/lib/docspring/models/error_or_multiple_errors_response.rb +1 -1
  46. data/lib/docspring/models/error_response.rb +1 -1
  47. data/lib/docspring/models/folder.rb +1 -1
  48. data/lib/docspring/models/forbidden_error_response.rb +323 -0
  49. data/lib/docspring/models/json_schema.rb +1 -1
  50. data/lib/docspring/models/list_submissions_response.rb +1 -1
  51. data/lib/docspring/models/move_folder_data.rb +1 -1
  52. data/lib/docspring/models/move_template_data.rb +1 -1
  53. data/lib/docspring/models/multiple_errors_response.rb +1 -1
  54. data/lib/docspring/models/publish_version_data.rb +1 -1
  55. data/lib/docspring/models/rename_folder_data.rb +1 -1
  56. data/lib/docspring/models/restore_version_data.rb +1 -1
  57. data/lib/docspring/models/submission.rb +3 -3
  58. data/lib/docspring/models/submission422_response.rb +1 -1
  59. data/lib/docspring/models/submission_action.rb +1 -1
  60. data/lib/docspring/models/submission_batch.rb +1 -1
  61. data/lib/docspring/models/submission_batch_data.rb +2 -1
  62. data/lib/docspring/models/submission_batch_with_submissions.rb +1 -1
  63. data/lib/docspring/models/submission_data_request.rb +1 -1
  64. data/lib/docspring/models/submission_data_request_event.rb +1 -1
  65. data/lib/docspring/models/submission_data_request_show.rb +1 -1
  66. data/lib/docspring/models/submission_data_request_token.rb +1 -1
  67. data/lib/docspring/models/submission_preview.rb +3 -3
  68. data/lib/docspring/models/success_error_response.rb +1 -1
  69. data/lib/docspring/models/success_multiple_errors_response.rb +1 -1
  70. data/lib/docspring/models/template.rb +1 -1
  71. data/lib/docspring/models/template_add_fields_response.rb +1 -1
  72. data/lib/docspring/models/template_delete_response.rb +1 -1
  73. data/lib/docspring/models/template_model_code_response.rb +1 -1
  74. data/lib/docspring/models/template_preview.rb +1 -1
  75. data/lib/docspring/models/template_publish_version_response.rb +1 -1
  76. data/lib/docspring/models/update_html_template.rb +1 -1
  77. data/lib/docspring/models/update_pdf_template.rb +1 -1
  78. data/lib/docspring/models/update_submission_data_request_data.rb +1 -1
  79. data/lib/docspring/models/update_webhook_data.rb +1 -1
  80. data/lib/docspring/models/upload_presign_response.rb +1 -1
  81. data/lib/docspring/models/webhook.rb +1 -1
  82. data/lib/docspring/version.rb +2 -2
  83. data/lib/docspring.rb +2 -1
  84. data/spec/api/client_spec.rb +7 -7
  85. data/spec/models/add_fields_data_spec.rb +1 -1
  86. data/spec/models/batch_generate_pdfs201_response_spec.rb +7 -1
  87. data/spec/models/combine_pdfs_data_spec.rb +1 -1
  88. data/spec/models/combined_submission_action_spec.rb +1 -1
  89. data/spec/models/combined_submission_spec.rb +2 -2
  90. data/spec/models/copy_template_options_spec.rb +1 -1
  91. data/spec/models/create_combined_submission_response_spec.rb +13 -1
  92. data/spec/models/create_custom_file_data_spec.rb +1 -1
  93. data/spec/models/create_custom_file_response_spec.rb +7 -1
  94. data/spec/models/create_folder_data_spec.rb +1 -1
  95. data/spec/models/create_html_template_spec.rb +1 -1
  96. data/spec/models/create_pdf_submission_data_spec.rb +1 -1
  97. data/spec/models/create_pdf_template_spec.rb +1 -1
  98. data/spec/models/create_submission_data_request_data_spec.rb +1 -1
  99. data/spec/models/create_submission_data_request_event_request_spec.rb +1 -1
  100. data/spec/models/create_submission_data_request_event_response_spec.rb +7 -1
  101. data/spec/models/create_submission_data_request_response_spec.rb +7 -1
  102. data/spec/models/create_submission_data_request_token_response_spec.rb +7 -1
  103. data/spec/models/create_submission_response_spec.rb +13 -1
  104. data/spec/models/create_webhook_data_spec.rb +1 -1
  105. data/spec/models/custom_file_spec.rb +1 -1
  106. data/spec/models/error_or_multiple_errors_response_spec.rb +1 -1
  107. data/spec/models/error_response_spec.rb +1 -1
  108. data/spec/models/folder_spec.rb +1 -1
  109. data/spec/models/forbidden_error_response_spec.rb +56 -0
  110. data/spec/models/json_schema_spec.rb +1 -1
  111. data/spec/models/list_submissions_response_spec.rb +1 -1
  112. data/spec/models/move_folder_data_spec.rb +1 -1
  113. data/spec/models/move_template_data_spec.rb +1 -1
  114. data/spec/models/multiple_errors_response_spec.rb +1 -1
  115. data/spec/models/publish_version_data_spec.rb +1 -1
  116. data/spec/models/rename_folder_data_spec.rb +1 -1
  117. data/spec/models/restore_version_data_spec.rb +1 -1
  118. data/spec/models/submission422_response_spec.rb +1 -1
  119. data/spec/models/submission_action_spec.rb +1 -1
  120. data/spec/models/submission_batch_data_spec.rb +1 -1
  121. data/spec/models/submission_batch_spec.rb +1 -1
  122. data/spec/models/submission_batch_with_submissions_spec.rb +1 -1
  123. data/spec/models/submission_data_request_event_spec.rb +1 -1
  124. data/spec/models/submission_data_request_show_spec.rb +1 -1
  125. data/spec/models/submission_data_request_spec.rb +1 -1
  126. data/spec/models/submission_data_request_token_spec.rb +1 -1
  127. data/spec/models/submission_preview_spec.rb +2 -2
  128. data/spec/models/submission_spec.rb +2 -2
  129. data/spec/models/success_error_response_spec.rb +1 -1
  130. data/spec/models/success_multiple_errors_response_spec.rb +1 -1
  131. data/spec/models/template_add_fields_response_spec.rb +1 -1
  132. data/spec/models/template_delete_response_spec.rb +1 -1
  133. data/spec/models/template_model_code_response_spec.rb +1 -1
  134. data/spec/models/template_preview_spec.rb +1 -1
  135. data/spec/models/template_publish_version_response_spec.rb +1 -1
  136. data/spec/models/template_spec.rb +1 -1
  137. data/spec/models/update_html_template_spec.rb +1 -1
  138. data/spec/models/update_pdf_template_spec.rb +1 -1
  139. data/spec/models/update_submission_data_request_data_spec.rb +1 -1
  140. data/spec/models/update_webhook_data_spec.rb +1 -1
  141. data/spec/models/upload_presign_response_spec.rb +1 -1
  142. data/spec/models/webhook_spec.rb +1 -1
  143. data/spec/spec_helper.rb +1 -1
  144. 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
- :'errors' => :'errors'
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
- :'errors' => :'Array<String>'
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
- errors == o.errors
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
- :'errors' => :'errors'
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
- :'errors' => :'Array<String>'
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
- errors == o.errors
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