docspring 4.6.0 → 4.7.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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +8 -1
  4. data/lib/docspring/api/client.rb +494 -0
  5. data/lib/docspring/api_client.rb +1 -1
  6. data/lib/docspring/models/ask_support_help_request.rb +217 -0
  7. data/lib/docspring/models/error_code.rb +4 -1
  8. data/lib/docspring/models/error_info.rb +12 -2
  9. data/lib/docspring/models/open_support_ticket_request.rb +363 -0
  10. data/lib/docspring/models/reply_to_support_ticket_request.rb +217 -0
  11. data/lib/docspring/models/send_support_feedback_request.rb +363 -0
  12. data/lib/docspring/models/support_feedback.rb +239 -0
  13. data/lib/docspring/models/support_help.rb +316 -0
  14. data/lib/docspring/models/support_help_source.rb +212 -0
  15. data/lib/docspring/models/support_help_state.rb +42 -0
  16. data/lib/docspring/models/support_help_turn.rb +234 -0
  17. data/lib/docspring/models/support_help_turn_role.rb +41 -0
  18. data/lib/docspring/models/support_message.rb +301 -0
  19. data/lib/docspring/models/support_message_author.rb +42 -0
  20. data/lib/docspring/models/support_report_agent.rb +188 -0
  21. data/lib/docspring/models/support_report_category.rb +57 -0
  22. data/lib/docspring/models/support_report_impact.rb +42 -0
  23. data/lib/docspring/models/support_report_kind.rb +47 -0
  24. data/lib/docspring/models/support_report_source.rb +41 -0
  25. data/lib/docspring/models/support_ticket.rb +637 -0
  26. data/lib/docspring/models/support_ticket_list.rb +200 -0
  27. data/lib/docspring/models/support_ticket_list_status.rb +42 -0
  28. data/lib/docspring/models/support_ticket_notifications.rb +197 -0
  29. data/lib/docspring/models/support_ticket_reply.rb +210 -0
  30. data/lib/docspring/models/support_ticket_reply_outcome.rb +41 -0
  31. data/lib/docspring/models/support_ticket_resolution.rb +45 -0
  32. data/lib/docspring/models/support_ticket_status.rb +43 -0
  33. data/lib/docspring/models/support_ticket_watch.rb +239 -0
  34. data/lib/docspring/request_schemas.json +426 -0
  35. data/lib/docspring/version.rb +1 -1
  36. data/lib/docspring.rb +26 -0
  37. metadata +27 -1
@@ -0,0 +1,301 @@
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 message on a support ticket.
18
+ class SupportMessage < ApiModelBase
19
+ # The message's ID.
20
+ attr_accessor :id
21
+
22
+ # `reporter`: your side. `team`: a person at DocSpring. `system`: DocSpring itself.
23
+ attr_accessor :author
24
+
25
+ # The message, as plain text.
26
+ attr_accessor :body
27
+
28
+ # When the message was sent.
29
+ attr_accessor :created_at
30
+
31
+ # When one of the team's messages was first returned by the API. It shows that the message was fetched, not that a person read it. Null for your own messages.
32
+ attr_accessor :first_read_at
33
+
34
+ class EnumAttributeValidator
35
+ attr_reader :datatype
36
+ attr_reader :allowable_values
37
+
38
+ def initialize(datatype, allowable_values)
39
+ @allowable_values = allowable_values.map do |value|
40
+ case datatype.to_s
41
+ when /Integer/i
42
+ value.to_i
43
+ when /Float/i
44
+ value.to_f
45
+ else
46
+ value
47
+ end
48
+ end
49
+ end
50
+
51
+ def valid?(value)
52
+ !value || allowable_values.include?(value)
53
+ end
54
+ end
55
+
56
+ # Attribute mapping from ruby-style variable name to JSON key.
57
+ def self.attribute_map
58
+ {
59
+ :'id' => :'id',
60
+ :'author' => :'author',
61
+ :'body' => :'body',
62
+ :'created_at' => :'created_at',
63
+ :'first_read_at' => :'first_read_at'
64
+ }
65
+ end
66
+
67
+ # Returns attribute mapping this model knows about
68
+ def self.acceptable_attribute_map
69
+ attribute_map
70
+ end
71
+
72
+ # Returns all the JSON keys this model knows about
73
+ def self.acceptable_attributes
74
+ acceptable_attribute_map.values
75
+ end
76
+
77
+ # Attribute type mapping.
78
+ def self.openapi_types
79
+ {
80
+ :'id' => :'String',
81
+ :'author' => :'SupportMessageAuthor',
82
+ :'body' => :'String',
83
+ :'created_at' => :'Time',
84
+ :'first_read_at' => :'Time'
85
+ }
86
+ end
87
+
88
+ # List of attributes with nullable: true
89
+ def self.openapi_nullable
90
+ Set.new([
91
+ :'first_read_at'
92
+ ])
93
+ end
94
+
95
+ # Returns attribute type mapping
96
+ def self.acceptable_openapi_types
97
+ openapi_types
98
+ end
99
+
100
+ # Returns the nullable attributes
101
+ def self.acceptable_openapi_nullable
102
+ openapi_nullable
103
+ end
104
+
105
+ # Initializes the object
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ def initialize(attributes = {})
108
+ if (!attributes.is_a?(Hash))
109
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::SupportMessage` initialize method"
110
+ end
111
+
112
+ # check to see if the attribute exists and convert string to symbol for hash key
113
+ acceptable_attribute_map = self.class.acceptable_attribute_map
114
+ attributes = attributes.each_with_object({}) { |(k, v), h|
115
+ if (!acceptable_attribute_map.key?(k.to_sym))
116
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::SupportMessage`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
117
+ end
118
+ h[k.to_sym] = v
119
+ }
120
+
121
+ if attributes.key?(:'id')
122
+ self.id = attributes[:'id']
123
+ else
124
+ self.id = nil
125
+ end
126
+
127
+ if attributes.key?(:'author')
128
+ self.author = attributes[:'author']
129
+ else
130
+ self.author = nil
131
+ end
132
+
133
+ if attributes.key?(:'body')
134
+ self.body = attributes[:'body']
135
+ else
136
+ self.body = nil
137
+ end
138
+
139
+ if attributes.key?(:'created_at')
140
+ self.created_at = attributes[:'created_at']
141
+ else
142
+ self.created_at = nil
143
+ end
144
+
145
+ if attributes.key?(:'first_read_at')
146
+ self.first_read_at = attributes[:'first_read_at']
147
+ else
148
+ self.first_read_at = nil
149
+ end
150
+ end
151
+
152
+ # Show invalid properties with the reasons. Usually used together with valid?
153
+ # @return Array for valid properties with the reasons
154
+ def list_invalid_properties
155
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
156
+ invalid_properties = Array.new
157
+ if @id.nil?
158
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
159
+ end
160
+
161
+ if @author.nil?
162
+ invalid_properties.push('invalid value for "author", author cannot be nil.')
163
+ end
164
+
165
+ if @body.nil?
166
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
167
+ end
168
+
169
+ if @created_at.nil?
170
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
171
+ end
172
+
173
+ invalid_properties
174
+ end
175
+
176
+ # Check to see if the all the properties in the model are valid
177
+ # @return true if the model is valid
178
+ def valid?
179
+ warn '[DEPRECATED] the `valid?` method is obsolete'
180
+ return false if @id.nil?
181
+ return false if @author.nil?
182
+ return false if @body.nil?
183
+ return false if @created_at.nil?
184
+ true
185
+ end
186
+
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] id Value to be assigned
189
+ def id=(id)
190
+ if id.nil?
191
+ fail ArgumentError, 'id cannot be nil'
192
+ end
193
+
194
+ @id = id
195
+ end
196
+
197
+ # Custom attribute writer method with validation
198
+ # @param [Object] author Value to be assigned
199
+ def author=(author)
200
+ if author.nil?
201
+ fail ArgumentError, 'author cannot be nil'
202
+ end
203
+
204
+ @author = author
205
+ end
206
+
207
+ # Custom attribute writer method with validation
208
+ # @param [Object] body Value to be assigned
209
+ def body=(body)
210
+ if body.nil?
211
+ fail ArgumentError, 'body cannot be nil'
212
+ end
213
+
214
+ @body = body
215
+ end
216
+
217
+ # Custom attribute writer method with validation
218
+ # @param [Object] created_at Value to be assigned
219
+ def created_at=(created_at)
220
+ if created_at.nil?
221
+ fail ArgumentError, 'created_at cannot be nil'
222
+ end
223
+
224
+ @created_at = created_at
225
+ end
226
+
227
+ # Checks equality by comparing each attribute.
228
+ # @param [Object] Object to be compared
229
+ def ==(o)
230
+ return true if self.equal?(o)
231
+ self.class == o.class &&
232
+ id == o.id &&
233
+ author == o.author &&
234
+ body == o.body &&
235
+ created_at == o.created_at &&
236
+ first_read_at == o.first_read_at
237
+ end
238
+
239
+ # @see the `==` method
240
+ # @param [Object] Object to be compared
241
+ def eql?(o)
242
+ self == o
243
+ end
244
+
245
+ # Calculates hash code according to all attributes.
246
+ # @return [Integer] Hash code
247
+ def hash
248
+ [id, author, body, created_at, first_read_at].hash
249
+ end
250
+
251
+ # Builds the object from hash
252
+ # @param [Hash] attributes Model attributes in the form of hash
253
+ # @return [Object] Returns the model itself
254
+ def self.build_from_hash(attributes)
255
+ return nil unless attributes.is_a?(Hash)
256
+ attributes = attributes.transform_keys(&:to_sym)
257
+ # include attributes inherited from allOf parents (the nearest declaration wins)
258
+ map = acceptable_attribute_map
259
+ transformed_hash = {}
260
+ acceptable_openapi_types.each_pair do |key, type|
261
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
262
+ transformed_hash["#{key}"] = nil
263
+ elsif type =~ /\AArray<(.*)>/i
264
+ # check to ensure the input is an array given that the attribute
265
+ # is documented as an array but the input is not
266
+ if attributes[map[key]].is_a?(Array)
267
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
268
+ end
269
+ elsif !attributes[map[key]].nil?
270
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
271
+ end
272
+ end
273
+ # Responses can include enum values added after this client was released, so the enum setters
274
+ # accept any value while the model is built from a response
275
+ allocate.tap do |model|
276
+ model.instance_variable_set(:@_skip_enum_validation, true)
277
+ model.send(:initialize, transformed_hash)
278
+ model.remove_instance_variable(:@_skip_enum_validation)
279
+ end
280
+ end
281
+
282
+ # Returns the object in the form of hash
283
+ # @return [Hash] Returns the object in the form of hash
284
+ def to_hash
285
+ hash = {}
286
+ # include attributes inherited from allOf parents (the nearest declaration wins)
287
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
288
+ value = self.send(attr)
289
+ if value.nil?
290
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
291
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
292
+ end
293
+
294
+ hash[param] = _to_hash(value)
295
+ end
296
+ hash
297
+ end
298
+
299
+ end
300
+
301
+ end
@@ -0,0 +1,42 @@
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 SupportMessageAuthor
18
+ REPORTER = "reporter".freeze
19
+ TEAM = "team".freeze
20
+ SYSTEM = "system".freeze
21
+
22
+ def self.all_vars
23
+ @all_vars ||= [REPORTER, TEAM, SYSTEM].freeze
24
+ end
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def self.build_from_hash(value)
30
+ new.build_from_hash(value)
31
+ end
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def build_from_hash(value)
37
+ # Only responses are built from hashes, and a value added to the API after this client was released is kept as it
38
+ # is: the constants are the values this client knows
39
+ value
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,188 @@
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
+ # An AI agent, as it describes itself.
18
+ class SupportReportAgent < ApiModelBase
19
+ # The agent's name, such as `Claude Code`.
20
+ attr_accessor :name
21
+
22
+ # The agent's version.
23
+ attr_accessor :version
24
+
25
+ # The model the agent runs on.
26
+ attr_accessor :model
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'name' => :'name',
32
+ :'version' => :'version',
33
+ :'model' => :'model'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'name' => :'String',
51
+ :'version' => :'String',
52
+ :'model' => :'String'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Returns attribute type mapping
63
+ def self.acceptable_openapi_types
64
+ openapi_types
65
+ end
66
+
67
+ # Returns the nullable attributes
68
+ def self.acceptable_openapi_nullable
69
+ openapi_nullable
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DocSpring::SupportReportAgent` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!acceptable_attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DocSpring::SupportReportAgent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'name')
89
+ self.name = attributes[:'name']
90
+ end
91
+
92
+ if attributes.key?(:'version')
93
+ self.version = attributes[:'version']
94
+ end
95
+
96
+ if attributes.key?(:'model')
97
+ self.model = attributes[:'model']
98
+ end
99
+ end
100
+
101
+ # Show invalid properties with the reasons. Usually used together with valid?
102
+ # @return Array for valid properties with the reasons
103
+ def list_invalid_properties
104
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
105
+ invalid_properties = Array.new
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ warn '[DEPRECATED] the `valid?` method is obsolete'
113
+ true
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ name == o.name &&
122
+ version == o.version &&
123
+ model == o.model
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Integer] Hash code
134
+ def hash
135
+ [name, version, model].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def self.build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ attributes = attributes.transform_keys(&:to_sym)
144
+ # include attributes inherited from allOf parents (the nearest declaration wins)
145
+ map = acceptable_attribute_map
146
+ transformed_hash = {}
147
+ acceptable_openapi_types.each_pair do |key, type|
148
+ if attributes.key?(map[key]) && attributes[map[key]].nil?
149
+ transformed_hash["#{key}"] = nil
150
+ elsif type =~ /\AArray<(.*)>/i
151
+ # check to ensure the input is an array given that the attribute
152
+ # is documented as an array but the input is not
153
+ if attributes[map[key]].is_a?(Array)
154
+ transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
155
+ end
156
+ elsif !attributes[map[key]].nil?
157
+ transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
158
+ end
159
+ end
160
+ # Responses can include enum values added after this client was released, so the enum setters
161
+ # accept any value while the model is built from a response
162
+ allocate.tap do |model|
163
+ model.instance_variable_set(:@_skip_enum_validation, true)
164
+ model.send(:initialize, transformed_hash)
165
+ model.remove_instance_variable(:@_skip_enum_validation)
166
+ end
167
+ end
168
+
169
+ # Returns the object in the form of hash
170
+ # @return [Hash] Returns the object in the form of hash
171
+ def to_hash
172
+ hash = {}
173
+ # include attributes inherited from allOf parents (the nearest declaration wins)
174
+ self.class.acceptable_attribute_map.each_pair do |attr, param|
175
+ value = self.send(attr)
176
+ if value.nil?
177
+ is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
178
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
179
+ end
180
+
181
+ hash[param] = _to_hash(value)
182
+ end
183
+ hash
184
+ end
185
+
186
+ end
187
+
188
+ end
@@ -0,0 +1,57 @@
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 SupportReportCategory
18
+ PDF_TEMPLATES = "pdf_templates".freeze
19
+ HTML_TEMPLATES = "html_templates".freeze
20
+ WORD_TEMPLATES = "word_templates".freeze
21
+ PAGE_DESIGNER = "page_designer".freeze
22
+ TEMPLATE_EDITOR = "template_editor".freeze
23
+ SUBMISSIONS = "submissions".freeze
24
+ WEB_FORMS = "web_forms".freeze
25
+ SIGNATURE_REQUESTS = "signature_requests".freeze
26
+ API = "api".freeze
27
+ SDKS = "sdks".freeze
28
+ CLI = "cli".freeze
29
+ MCP = "mcp".freeze
30
+ INTEGRATIONS = "integrations".freeze
31
+ WEBHOOKS = "webhooks".freeze
32
+ BILLING = "billing".freeze
33
+ ACCOUNT = "account".freeze
34
+ DOCS = "docs".freeze
35
+ OTHER = "other".freeze
36
+
37
+ def self.all_vars
38
+ @all_vars ||= [PDF_TEMPLATES, HTML_TEMPLATES, WORD_TEMPLATES, PAGE_DESIGNER, TEMPLATE_EDITOR, SUBMISSIONS, WEB_FORMS, SIGNATURE_REQUESTS, API, SDKS, CLI, MCP, INTEGRATIONS, WEBHOOKS, BILLING, ACCOUNT, DOCS, OTHER].freeze
39
+ end
40
+
41
+ # Builds the enum from string
42
+ # @param [String] The enum value in the form of the string
43
+ # @return [String] The enum value
44
+ def self.build_from_hash(value)
45
+ new.build_from_hash(value)
46
+ end
47
+
48
+ # Builds the enum from string
49
+ # @param [String] The enum value in the form of the string
50
+ # @return [String] The enum value
51
+ def build_from_hash(value)
52
+ # Only responses are built from hashes, and a value added to the API after this client was released is kept as it
53
+ # is: the constants are the values this client knows
54
+ value
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,42 @@
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 SupportReportImpact
18
+ BLOCKED = "blocked".freeze
19
+ WORKED_AROUND = "worked_around".freeze
20
+ FRICTION = "friction".freeze
21
+
22
+ def self.all_vars
23
+ @all_vars ||= [BLOCKED, WORKED_AROUND, FRICTION].freeze
24
+ end
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def self.build_from_hash(value)
30
+ new.build_from_hash(value)
31
+ end
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def build_from_hash(value)
37
+ # Only responses are built from hashes, and a value added to the API after this client was released is kept as it
38
+ # is: the constants are the values this client knows
39
+ value
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,47 @@
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 SupportReportKind
18
+ BUG = "bug".freeze
19
+ CRASH = "crash".freeze
20
+ WRONG_RESULT = "wrong_result".freeze
21
+ CONFUSING = "confusing".freeze
22
+ MISSING_FEATURE = "missing_feature".freeze
23
+ DOCS = "docs".freeze
24
+ QUESTION = "question".freeze
25
+ OTHER = "other".freeze
26
+
27
+ def self.all_vars
28
+ @all_vars ||= [BUG, CRASH, WRONG_RESULT, CONFUSING, MISSING_FEATURE, DOCS, QUESTION, OTHER].freeze
29
+ end
30
+
31
+ # Builds the enum from string
32
+ # @param [String] The enum value in the form of the string
33
+ # @return [String] The enum value
34
+ def self.build_from_hash(value)
35
+ new.build_from_hash(value)
36
+ end
37
+
38
+ # Builds the enum from string
39
+ # @param [String] The enum value in the form of the string
40
+ # @return [String] The enum value
41
+ def build_from_hash(value)
42
+ # Only responses are built from hashes, and a value added to the API after this client was released is kept as it
43
+ # is: the constants are the values this client knows
44
+ value
45
+ end
46
+ end
47
+ end