docspring 4.6.0 → 4.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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +25 -1
  4. data/lib/docspring/api/client.rb +1934 -209
  5. data/lib/docspring/api_client.rb +1 -1
  6. data/lib/docspring/models/add_page_numbers_request.rb +279 -0
  7. data/lib/docspring/models/ask_support_help_request.rb +217 -0
  8. data/lib/docspring/models/base64_job_source.rb +222 -0
  9. data/lib/docspring/models/combined_pdf_job_source.rb +222 -0
  10. data/lib/docspring/models/compress_pdf_request.rb +207 -0
  11. data/lib/docspring/models/create_template_request.rb +22 -2
  12. data/lib/docspring/models/custom_file_job_source.rb +222 -0
  13. data/lib/docspring/models/decrypt_pdf_request.rb +217 -0
  14. data/lib/docspring/models/encrypt_pdf_request.rb +237 -0
  15. data/lib/docspring/models/error_code.rb +4 -1
  16. data/lib/docspring/models/error_info.rb +25 -5
  17. data/lib/docspring/models/extract_pages_request.rb +234 -0
  18. data/lib/docspring/models/field.rb +1 -1
  19. data/lib/docspring/models/field_input.rb +1 -1
  20. data/lib/docspring/models/flatten_pdf_request.rb +207 -0
  21. data/lib/docspring/models/html_engine_options.rb +1 -1
  22. data/lib/docspring/models/html_engine_options_input.rb +1 -1
  23. data/lib/docspring/models/htmlto_pdf_request.rb +322 -0
  24. data/lib/docspring/models/image_format.rb +41 -0
  25. data/lib/docspring/models/images_to_pdf_request.rb +241 -0
  26. data/lib/docspring/models/job.rb +508 -0
  27. data/lib/docspring/models/job_file.rb +308 -0
  28. data/lib/docspring/models/job_file_job_source.rb +232 -0
  29. data/lib/docspring/models/job_html_engine.rb +41 -0
  30. data/lib/docspring/models/job_list.rb +200 -0
  31. data/lib/docspring/models/job_operation.rb +53 -0
  32. data/lib/docspring/models/job_operation_filter.rb +53 -0
  33. data/lib/docspring/models/job_options.rb +392 -0
  34. data/lib/docspring/models/job_page_margin.rb +198 -0
  35. data/lib/docspring/models/job_page_size.rb +51 -0
  36. data/lib/docspring/models/job_source.rb +267 -0
  37. data/lib/docspring/models/job_source_input.rb +66 -0
  38. data/lib/docspring/models/job_source_type.rb +46 -0
  39. data/lib/docspring/models/job_state.rb +42 -0
  40. data/lib/docspring/models/markdown_to_pdf_request.rb +312 -0
  41. data/lib/docspring/models/open_support_ticket_request.rb +363 -0
  42. data/lib/docspring/models/page_image.rb +3 -3
  43. data/lib/docspring/models/page_number_position.rb +45 -0
  44. data/lib/docspring/models/page_size.rb +45 -0
  45. data/lib/docspring/models/pdf_permissions.rb +198 -0
  46. data/lib/docspring/models/pdf_permissions_input.rb +198 -0
  47. data/lib/docspring/models/pdfto_images_request.rb +269 -0
  48. data/lib/docspring/models/pdfto_text_request.rb +217 -0
  49. data/lib/docspring/models/reply_to_support_ticket_request.rb +217 -0
  50. data/lib/docspring/models/rotate_pages_request.rb +244 -0
  51. data/lib/docspring/models/send_support_feedback_request.rb +363 -0
  52. data/lib/docspring/models/split_pdf_request.rb +229 -0
  53. data/lib/docspring/models/submission_job_source.rb +222 -0
  54. data/lib/docspring/models/support_feedback.rb +239 -0
  55. data/lib/docspring/models/support_help.rb +316 -0
  56. data/lib/docspring/models/support_help_source.rb +212 -0
  57. data/lib/docspring/models/support_help_state.rb +42 -0
  58. data/lib/docspring/models/support_help_turn.rb +234 -0
  59. data/lib/docspring/models/support_help_turn_role.rb +41 -0
  60. data/lib/docspring/models/support_message.rb +301 -0
  61. data/lib/docspring/models/support_message_author.rb +42 -0
  62. data/lib/docspring/models/support_report_agent.rb +188 -0
  63. data/lib/docspring/models/support_report_category.rb +57 -0
  64. data/lib/docspring/models/support_report_impact.rb +42 -0
  65. data/lib/docspring/models/support_report_kind.rb +47 -0
  66. data/lib/docspring/models/support_report_source.rb +41 -0
  67. data/lib/docspring/models/support_ticket.rb +637 -0
  68. data/lib/docspring/models/support_ticket_list.rb +200 -0
  69. data/lib/docspring/models/support_ticket_list_status.rb +42 -0
  70. data/lib/docspring/models/support_ticket_notifications.rb +197 -0
  71. data/lib/docspring/models/support_ticket_reply.rb +210 -0
  72. data/lib/docspring/models/support_ticket_reply_outcome.rb +41 -0
  73. data/lib/docspring/models/support_ticket_resolution.rb +45 -0
  74. data/lib/docspring/models/support_ticket_status.rb +43 -0
  75. data/lib/docspring/models/support_ticket_watch.rb +239 -0
  76. data/lib/docspring/models/template.rb +41 -2
  77. data/lib/docspring/models/template_blank_page.rb +212 -0
  78. data/lib/docspring/models/template_blank_page_input.rb +212 -0
  79. data/lib/docspring/models/template_document.rb +1 -1
  80. data/lib/docspring/models/template_html_engine.rb +41 -0
  81. data/lib/docspring/models/template_page_images.rb +3 -3
  82. data/lib/docspring/models/template_page_list.rb +243 -0
  83. data/lib/docspring/models/template_page_list_input.rb +243 -0
  84. data/lib/docspring/models/template_page_processing_status.rb +28 -1
  85. data/lib/docspring/models/update_template_request.rb +33 -2
  86. data/lib/docspring/models/upload_job_source.rb +222 -0
  87. data/lib/docspring/models/url_job_source.rb +222 -0
  88. data/lib/docspring/models/watermark_layer.rb +41 -0
  89. data/lib/docspring/models/watermark_pdf_request.rb +316 -0
  90. data/lib/docspring/models/webhook_event_type.rb +4 -1
  91. data/lib/docspring/request_schemas.json +2424 -46
  92. data/lib/docspring/version.rb +1 -1
  93. data/lib/docspring.rb +71 -0
  94. metadata +72 -1
@@ -0,0 +1,308 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DocSpring
17
+ # A file a job made.
18
+ class JobFile < ApiModelBase
19
+ # A temporary link to download the file. Get the job again for a new one.
20
+ attr_accessor :download_url
21
+
22
+ # The file's name, such as `contract-1.pdf` or `contract-page-3.png`.
23
+ attr_accessor :filename
24
+
25
+ # The file's media type, such as `application/pdf` or `image/png`.
26
+ attr_accessor :content_type
27
+
28
+ # The file's size in bytes.
29
+ attr_accessor :size
30
+
31
+ # The SHA-256 hash of the file.
32
+ attr_accessor :sha256
33
+
34
+ # The input's pages in this file, such as `[3]` for page 3's image or `[1, 2, 3]` for the first part of a split. Null when the file isn't made from particular pages.
35
+ attr_accessor :pages
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'download_url' => :'download_url',
41
+ :'filename' => :'filename',
42
+ :'content_type' => :'content_type',
43
+ :'size' => :'size',
44
+ :'sha256' => :'sha256',
45
+ :'pages' => :'pages'
46
+ }
47
+ end
48
+
49
+ # Returns attribute mapping this model knows about
50
+ def self.acceptable_attribute_map
51
+ attribute_map
52
+ end
53
+
54
+ # Returns all the JSON keys this model knows about
55
+ def self.acceptable_attributes
56
+ acceptable_attribute_map.values
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.openapi_types
61
+ {
62
+ :'download_url' => :'String',
63
+ :'filename' => :'String',
64
+ :'content_type' => :'String',
65
+ :'size' => :'Integer',
66
+ :'sha256' => :'String',
67
+ :'pages' => :'Array<Integer>'
68
+ }
69
+ end
70
+
71
+ # List of attributes with nullable: true
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ :'pages'
75
+ ])
76
+ end
77
+
78
+ # Returns attribute type mapping
79
+ def self.acceptable_openapi_types
80
+ openapi_types
81
+ end
82
+
83
+ # Returns the nullable attributes
84
+ def self.acceptable_openapi_nullable
85
+ openapi_nullable
86
+ end
87
+
88
+ # Initializes the object
89
+ # @param [Hash] attributes Model attributes in the form of hash
90
+ def initialize(attributes = {})
91
+ if (!attributes.is_a?(Hash))
92
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::JobFile` initialize method"
93
+ end
94
+
95
+ # check to see if the attribute exists and convert string to symbol for hash key
96
+ acceptable_attribute_map = self.class.acceptable_attribute_map
97
+ attributes = attributes.each_with_object({}) { |(k, v), h|
98
+ if (!acceptable_attribute_map.key?(k.to_sym))
99
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::JobFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
100
+ end
101
+ h[k.to_sym] = v
102
+ }
103
+
104
+ if attributes.key?(:'download_url')
105
+ self.download_url = attributes[:'download_url']
106
+ else
107
+ self.download_url = nil
108
+ end
109
+
110
+ if attributes.key?(:'filename')
111
+ self.filename = attributes[:'filename']
112
+ else
113
+ self.filename = nil
114
+ end
115
+
116
+ if attributes.key?(:'content_type')
117
+ self.content_type = attributes[:'content_type']
118
+ else
119
+ self.content_type = nil
120
+ end
121
+
122
+ if attributes.key?(:'size')
123
+ self.size = attributes[:'size']
124
+ else
125
+ self.size = nil
126
+ end
127
+
128
+ if attributes.key?(:'sha256')
129
+ self.sha256 = attributes[:'sha256']
130
+ else
131
+ self.sha256 = nil
132
+ end
133
+
134
+ if attributes.key?(:'pages')
135
+ if (value = attributes[:'pages']).is_a?(Array) || value.nil?
136
+ self.pages = value
137
+ end
138
+ else
139
+ self.pages = nil
140
+ end
141
+ end
142
+
143
+ # Show invalid properties with the reasons. Usually used together with valid?
144
+ # @return Array for valid properties with the reasons
145
+ def list_invalid_properties
146
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
147
+ invalid_properties = Array.new
148
+ if @download_url.nil?
149
+ invalid_properties.push('invalid value for "download_url", download_url cannot be nil.')
150
+ end
151
+
152
+ if @filename.nil?
153
+ invalid_properties.push('invalid value for "filename", filename cannot be nil.')
154
+ end
155
+
156
+ if @content_type.nil?
157
+ invalid_properties.push('invalid value for "content_type", content_type cannot be nil.')
158
+ end
159
+
160
+ if @size.nil?
161
+ invalid_properties.push('invalid value for "size", size cannot be nil.')
162
+ end
163
+
164
+ if @sha256.nil?
165
+ invalid_properties.push('invalid value for "sha256", sha256 cannot be nil.')
166
+ end
167
+
168
+ invalid_properties
169
+ end
170
+
171
+ # Check to see if the all the properties in the model are valid
172
+ # @return true if the model is valid
173
+ def valid?
174
+ warn '[DEPRECATED] the `valid?` method is obsolete'
175
+ return false if @download_url.nil?
176
+ return false if @filename.nil?
177
+ return false if @content_type.nil?
178
+ return false if @size.nil?
179
+ return false if @sha256.nil?
180
+ true
181
+ end
182
+
183
+ # Custom attribute writer method with validation
184
+ # @param [Object] download_url Value to be assigned
185
+ def download_url=(download_url)
186
+ if download_url.nil?
187
+ fail ArgumentError, 'download_url cannot be nil'
188
+ end
189
+
190
+ @download_url = download_url
191
+ end
192
+
193
+ # Custom attribute writer method with validation
194
+ # @param [Object] filename Value to be assigned
195
+ def filename=(filename)
196
+ if filename.nil?
197
+ fail ArgumentError, 'filename cannot be nil'
198
+ end
199
+
200
+ @filename = filename
201
+ end
202
+
203
+ # Custom attribute writer method with validation
204
+ # @param [Object] content_type Value to be assigned
205
+ def content_type=(content_type)
206
+ if content_type.nil?
207
+ fail ArgumentError, 'content_type cannot be nil'
208
+ end
209
+
210
+ @content_type = content_type
211
+ end
212
+
213
+ # Custom attribute writer method with validation
214
+ # @param [Object] size Value to be assigned
215
+ def size=(size)
216
+ if size.nil?
217
+ fail ArgumentError, 'size cannot be nil'
218
+ end
219
+
220
+ @size = size
221
+ end
222
+
223
+ # Custom attribute writer method with validation
224
+ # @param [Object] sha256 Value to be assigned
225
+ def sha256=(sha256)
226
+ if sha256.nil?
227
+ fail ArgumentError, 'sha256 cannot be nil'
228
+ end
229
+
230
+ @sha256 = sha256
231
+ end
232
+
233
+ # Checks equality by comparing each attribute.
234
+ # @param [Object] Object to be compared
235
+ def ==(o)
236
+ return true if self.equal?(o)
237
+ self.class == o.class &&
238
+ download_url == o.download_url &&
239
+ filename == o.filename &&
240
+ content_type == o.content_type &&
241
+ size == o.size &&
242
+ sha256 == o.sha256 &&
243
+ pages == o.pages
244
+ end
245
+
246
+ # @see the `==` method
247
+ # @param [Object] Object to be compared
248
+ def eql?(o)
249
+ self == o
250
+ end
251
+
252
+ # Calculates hash code according to all attributes.
253
+ # @return [Integer] Hash code
254
+ def hash
255
+ [download_url, filename, content_type, size, sha256, pages].hash
256
+ end
257
+
258
+ # Builds the object from hash
259
+ # @param [Hash] attributes Model attributes in the form of hash
260
+ # @return [Object] Returns the model itself
261
+ def self.build_from_hash(attributes)
262
+ return nil unless attributes.is_a?(Hash)
263
+ attributes = attributes.transform_keys(&:to_sym)
264
+ # include attributes inherited from allOf parents (the nearest declaration wins)
265
+ map = acceptable_attribute_map
266
+ transformed_hash = {}
267
+ acceptable_openapi_types.each_pair do |key, type|
268
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
269
+ transformed_hash["#{key}"] = nil
270
+ elsif type =~ /\AArray<(.*)>/i
271
+ # check to ensure the input is an array given that the attribute
272
+ # is documented as an array but the input is not
273
+ if attributes[map[key]].is_a?(Array)
274
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
275
+ end
276
+ elsif !attributes[map[key]].nil?
277
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
278
+ end
279
+ end
280
+ # Responses can include enum values added after this client was released, so the enum setters
281
+ # accept any value while the model is built from a response
282
+ allocate.tap do |model|
283
+ model.instance_variable_set(:@_skip_enum_validation, true)
284
+ model.send(:initialize, transformed_hash)
285
+ model.remove_instance_variable(:@_skip_enum_validation)
286
+ end
287
+ end
288
+
289
+ # Returns the object in the form of hash
290
+ # @return [Hash] Returns the object in the form of hash
291
+ def to_hash
292
+ hash = {}
293
+ # include attributes inherited from allOf parents (the nearest declaration wins)
294
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
295
+ value = self.send(attr)
296
+ if value.nil?
297
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
298
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
299
+ end
300
+
301
+ hash[param] = _to_hash(value)
302
+ end
303
+ hash
304
+ end
305
+
306
+ end
307
+
308
+ end
@@ -0,0 +1,232 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DocSpring
17
+ # A file another job made, to run several tools one after another.
18
+ class JobFileJobSource < ApiModelBase
19
+ # Must be `job`.
20
+ attr_accessor :type
21
+
22
+ # The ID of the custom file, submission, combined PDF or job.
23
+ attr_accessor :id
24
+
25
+ # For a `job` input, which of its files to read (1 is the first). Default 1.
26
+ attr_accessor :file
27
+
28
+ # The file's name. The job names the files it makes after it (contract.pdf makes contract-1.pdf). Default the name of the custom file, job file or URL path.
29
+ attr_accessor :filename
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'type' => :'type',
35
+ :'id' => :'id',
36
+ :'file' => :'file',
37
+ :'filename' => :'filename'
38
+ }
39
+ end
40
+
41
+ # Returns attribute mapping this model knows about
42
+ def self.acceptable_attribute_map
43
+ attribute_map
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ acceptable_attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'type' => :'String',
55
+ :'id' => :'String',
56
+ :'file' => :'Integer',
57
+ :'filename' => :'String'
58
+ }
59
+ end
60
+
61
+ # List of attributes with nullable: true
62
+ def self.openapi_nullable
63
+ Set.new([
64
+ ])
65
+ end
66
+
67
+ # Returns attribute type mapping
68
+ def self.acceptable_openapi_types
69
+ openapi_types
70
+ end
71
+
72
+ # Returns the nullable attributes
73
+ def self.acceptable_openapi_nullable
74
+ openapi_nullable
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::JobFileJobSource` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ acceptable_attribute_map = self.class.acceptable_attribute_map
86
+ attributes = attributes.each_with_object({}) { |(k, v), h|
87
+ if (!acceptable_attribute_map.key?(k.to_sym))
88
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::JobFileJobSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
89
+ end
90
+ h[k.to_sym] = v
91
+ }
92
+
93
+ if attributes.key?(:'type')
94
+ self.type = attributes[:'type']
95
+ else
96
+ self.type = 'job'
97
+ end
98
+
99
+ if attributes.key?(:'id')
100
+ self.id = attributes[:'id']
101
+ else
102
+ self.id = nil
103
+ end
104
+
105
+ if attributes.key?(:'file')
106
+ self.file = attributes[:'file']
107
+ end
108
+
109
+ if attributes.key?(:'filename')
110
+ self.filename = attributes[:'filename']
111
+ end
112
+ end
113
+
114
+ # Show invalid properties with the reasons. Usually used together with valid?
115
+ # @return Array for valid properties with the reasons
116
+ def list_invalid_properties
117
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
+ invalid_properties = Array.new
119
+ if @type.nil?
120
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
121
+ end
122
+
123
+ if @id.nil?
124
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
134
+ return false if @type.nil?
135
+ return false if @id.nil?
136
+ true
137
+ end
138
+
139
+ # Custom attribute writer method with validation
140
+ # @param [Object] type Value to be assigned
141
+ def type=(type)
142
+ if type.nil?
143
+ fail ArgumentError, 'type cannot be nil'
144
+ end
145
+
146
+ @type = type
147
+ end
148
+
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] id Value to be assigned
151
+ def id=(id)
152
+ if id.nil?
153
+ fail ArgumentError, 'id cannot be nil'
154
+ end
155
+
156
+ @id = id
157
+ end
158
+
159
+ # Checks equality by comparing each attribute.
160
+ # @param [Object] Object to be compared
161
+ def ==(o)
162
+ return true if self.equal?(o)
163
+ self.class == o.class &&
164
+ type == o.type &&
165
+ id == o.id &&
166
+ file == o.file &&
167
+ filename == o.filename
168
+ end
169
+
170
+ # @see the `==` method
171
+ # @param [Object] Object to be compared
172
+ def eql?(o)
173
+ self == o
174
+ end
175
+
176
+ # Calculates hash code according to all attributes.
177
+ # @return [Integer] Hash code
178
+ def hash
179
+ [type, id, file, filename].hash
180
+ end
181
+
182
+ # Builds the object from hash
183
+ # @param [Hash] attributes Model attributes in the form of hash
184
+ # @return [Object] Returns the model itself
185
+ def self.build_from_hash(attributes)
186
+ return nil unless attributes.is_a?(Hash)
187
+ attributes = attributes.transform_keys(&:to_sym)
188
+ # include attributes inherited from allOf parents (the nearest declaration wins)
189
+ map = acceptable_attribute_map
190
+ transformed_hash = {}
191
+ acceptable_openapi_types.each_pair do |key, type|
192
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
193
+ transformed_hash["#{key}"] = nil
194
+ elsif type =~ /\AArray<(.*)>/i
195
+ # check to ensure the input is an array given that the attribute
196
+ # is documented as an array but the input is not
197
+ if attributes[map[key]].is_a?(Array)
198
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
199
+ end
200
+ elsif !attributes[map[key]].nil?
201
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
202
+ end
203
+ end
204
+ # Responses can include enum values added after this client was released, so the enum setters
205
+ # accept any value while the model is built from a response
206
+ allocate.tap do |model|
207
+ model.instance_variable_set(:@_skip_enum_validation, true)
208
+ model.send(:initialize, transformed_hash)
209
+ model.remove_instance_variable(:@_skip_enum_validation)
210
+ end
211
+ end
212
+
213
+ # Returns the object in the form of hash
214
+ # @return [Hash] Returns the object in the form of hash
215
+ def to_hash
216
+ hash = {}
217
+ # include attributes inherited from allOf parents (the nearest declaration wins)
218
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ if value.nil?
221
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
222
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
+ end
224
+
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ end
231
+
232
+ end
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #DocSpring API
3
+
4
+ #Use DocSpring's API to fill PDF forms, generate PDFs and Word documents from HTML or Word templates, merge PDFs, and request legally binding e-signatures.
5
+
6
+ The version of the OpenAPI document: v2
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.26.0-DOCSPRING
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DocSpring
17
+ class JobHtmlEngine
18
+ STANDARD = "standard".freeze
19
+ CHROMIUM = "chromium".freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [STANDARD, CHROMIUM].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ # Only responses are built from hashes, and a value added to the API after this client was released is kept as it
37
+ # is: the constants are the values this client knows
38
+ value
39
+ end
40
+ end
41
+ end