falaai-api 1.21.54 → 2.21.273
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/README.md +13 -7
- data/docs/AnalysisApi.md +4 -0
- data/docs/DiagnosticParticipant.md +1 -1
- data/docs/DiagnosticUsage.md +1 -1
- data/docs/Participant.md +1 -1
- data/docs/ParticipantDiagnostic.md +7 -3
- data/docs/ResponseExtractConversationsV1WhatsappExtractconversationsPost.md +42 -0
- data/docs/RiskAuditAppliedActionV2.md +0 -4
- data/docs/RiskAuditAuditDecisionsV2.md +1 -3
- data/docs/RiskAuditConversationScoresV2.md +0 -2
- data/docs/RiskAuditDetectionItemV2.md +5 -75
- data/docs/RiskAuditSummaryV2.md +0 -4
- data/docs/RiskAuditUsageV2.md +1 -1
- data/docs/RiskAuditVerdictV2.md +1 -7
- data/docs/SpeechApi.md +2 -0
- data/docs/TranscriptionUsage.md +1 -1
- data/docs/UsageByKeyItem.md +1 -1
- data/docs/UsageLogItem.md +1 -1
- data/docs/WebhooksApi.md +1 -1
- data/docs/WhatsappApi.md +16 -10
- data/docs/WhatsappConversation.md +1 -1
- data/docs/WhatsappMeta.md +3 -1
- data/docs/WhatsappPreviewItem.md +32 -0
- data/docs/WhatsappPreviewItemBreakdown.md +26 -0
- data/docs/WhatsappPreviewItemCredits.md +20 -0
- data/docs/WhatsappPreviewItemMedia.md +30 -0
- data/docs/WhatsappPreviewParams.md +32 -0
- data/docs/WhatsappPreviewResponse.md +32 -0
- data/docs/WhatsappPreviewWindow.md +22 -0
- data/docs/WhatsappUsage.md +11 -5
- data/docs/index.html +37 -9
- data/lib/falaai-api/api/analysis_api.rb +5 -1
- data/lib/falaai-api/api/email_alerts_api.rb +1 -1
- data/lib/falaai-api/api/health_api.rb +1 -1
- data/lib/falaai-api/api/speech_api.rb +3 -1
- data/lib/falaai-api/api/usage_api.rb +1 -1
- data/lib/falaai-api/api/version_api.rb +1 -1
- data/lib/falaai-api/api/webhooks_api.rb +3 -3
- data/lib/falaai-api/api/whatsapp_api.rb +21 -21
- data/lib/falaai-api/api_client.rb +1 -1
- data/lib/falaai-api/api_error.rb +1 -1
- data/lib/falaai-api/api_model_base.rb +1 -1
- data/lib/falaai-api/configuration.rb +1 -1
- data/lib/falaai-api/models/audio_event.rb +1 -1
- data/lib/falaai-api/models/audio_input_meta.rb +1 -1
- data/lib/falaai-api/models/create_email_alert_request.rb +1 -1
- data/lib/falaai-api/models/create_webhook_request.rb +1 -1
- data/lib/falaai-api/models/diagnostic_analysis_map.rb +1 -1
- data/lib/falaai-api/models/diagnostic_audio_event.rb +1 -1
- data/lib/falaai-api/models/diagnostic_categorical_analysis.rb +1 -1
- data/lib/falaai-api/models/diagnostic_participant.rb +4 -4
- data/lib/falaai-api/models/diagnostic_request.rb +3 -3
- data/lib/falaai-api/models/diagnostic_response.rb +1 -1
- data/lib/falaai-api/models/diagnostic_text_analysis.rb +1 -1
- data/lib/falaai-api/models/diagnostic_usage.rb +3 -3
- data/lib/falaai-api/models/email_alert_item.rb +1 -1
- data/lib/falaai-api/models/email_alert_list_response.rb +1 -1
- data/lib/falaai-api/models/email_alert_message_response.rb +1 -1
- data/lib/falaai-api/models/email_event.rb +1 -1
- data/lib/falaai-api/models/health_response.rb +1 -1
- data/lib/falaai-api/models/http_validation_error.rb +1 -1
- data/lib/falaai-api/models/location_inner.rb +1 -1
- data/lib/falaai-api/models/message_response.rb +1 -1
- data/lib/falaai-api/models/participant.rb +4 -4
- data/lib/falaai-api/models/participant_diagnostic.rb +63 -7
- data/lib/falaai-api/models/response_extract_conversations_v1_whatsapp_extractconversations_post.rb +103 -0
- data/lib/falaai-api/models/risk_audit_analysis_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_applied_action_v2.rb +2 -26
- data/lib/falaai-api/models/risk_audit_audio_event_model_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_audit_decisions_v2.rb +5 -17
- data/lib/falaai-api/models/risk_audit_conversation_scores_v2.rb +2 -12
- data/lib/falaai-api/models/risk_audit_detection_item_v2.rb +19 -393
- data/lib/falaai-api/models/risk_audit_detections_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_indexer_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_meta_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_participant_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_participants_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_request.rb +3 -3
- data/lib/falaai-api/models/risk_audit_scores_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_scoring_explanation_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_summary_v2.rb +2 -24
- data/lib/falaai-api/models/risk_audit_timeline_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_usage_v2.rb +2 -2
- data/lib/falaai-api/models/risk_audit_v2.rb +1 -1
- data/lib/falaai-api/models/risk_audit_v2_response.rb +1 -1
- data/lib/falaai-api/models/risk_audit_verdict_v2.rb +5 -36
- data/lib/falaai-api/models/transcription_response.rb +1 -1
- data/lib/falaai-api/models/transcription_usage.rb +2 -2
- data/lib/falaai-api/models/update_email_alert_request.rb +1 -1
- data/lib/falaai-api/models/update_webhook_request.rb +1 -1
- data/lib/falaai-api/models/usage_by_key_item.rb +2 -2
- data/lib/falaai-api/models/usage_log_item.rb +2 -2
- data/lib/falaai-api/models/usage_log_response.rb +1 -1
- data/lib/falaai-api/models/validation_error.rb +1 -1
- data/lib/falaai-api/models/version_response.rb +1 -1
- data/lib/falaai-api/models/webhook_event.rb +1 -1
- data/lib/falaai-api/models/webhook_item.rb +1 -1
- data/lib/falaai-api/models/webhook_list_response.rb +1 -1
- data/lib/falaai-api/models/whatsapp_conversation.rb +2 -2
- data/lib/falaai-api/models/whatsapp_conversations_response.rb +30 -6
- data/lib/falaai-api/models/whatsapp_meta.rb +32 -5
- data/lib/falaai-api/models/whatsapp_preview_item.rb +354 -0
- data/lib/falaai-api/models/whatsapp_preview_item_breakdown.rb +273 -0
- data/lib/falaai-api/models/whatsapp_preview_item_credits.rb +192 -0
- data/lib/falaai-api/models/whatsapp_preview_item_media.rb +329 -0
- data/lib/falaai-api/models/whatsapp_preview_params.rb +354 -0
- data/lib/falaai-api/models/whatsapp_preview_response.rb +384 -0
- data/lib/falaai-api/models/whatsapp_preview_window.rb +219 -0
- data/lib/falaai-api/models/whatsapp_speaker.rb +1 -1
- data/lib/falaai-api/models/whatsapp_usage.rb +90 -9
- data/lib/falaai-api/version.rb +2 -2
- data/lib/falaai-api.rb +9 -1
- metadata +18 -2
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#FalaAI API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2.21.273
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module FalaAI
|
|
17
|
+
class WhatsappPreviewParams < ApiModelBase
|
|
18
|
+
# Window start actually used (file period when start/end are omitted in dry_run)
|
|
19
|
+
attr_accessor :start
|
|
20
|
+
|
|
21
|
+
# Window end actually used (file period when start/end are omitted in dry_run)
|
|
22
|
+
attr_accessor :_end
|
|
23
|
+
|
|
24
|
+
# Timezone informed
|
|
25
|
+
attr_accessor :timezone
|
|
26
|
+
|
|
27
|
+
# Date order used
|
|
28
|
+
attr_accessor :date_format
|
|
29
|
+
|
|
30
|
+
# Gap used to split conversations
|
|
31
|
+
attr_accessor :gap_minutes
|
|
32
|
+
|
|
33
|
+
# Minimum messages per conversation
|
|
34
|
+
attr_accessor :min_messages
|
|
35
|
+
|
|
36
|
+
# Voice/video medias would be transcribed (charge flag)
|
|
37
|
+
attr_accessor :voice_note
|
|
38
|
+
|
|
39
|
+
# Visual expressions would be described (charge flag)
|
|
40
|
+
attr_accessor :expression
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'start' => :'start',
|
|
46
|
+
:'_end' => :'end',
|
|
47
|
+
:'timezone' => :'timezone',
|
|
48
|
+
:'date_format' => :'date_format',
|
|
49
|
+
:'gap_minutes' => :'gap_minutes',
|
|
50
|
+
:'min_messages' => :'min_messages',
|
|
51
|
+
:'voice_note' => :'voice_note',
|
|
52
|
+
:'expression' => :'expression'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns attribute mapping this model knows about
|
|
57
|
+
def self.acceptable_attribute_map
|
|
58
|
+
attribute_map
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns all the JSON keys this model knows about
|
|
62
|
+
def self.acceptable_attributes
|
|
63
|
+
acceptable_attribute_map.values
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'start' => :'String',
|
|
70
|
+
:'_end' => :'String',
|
|
71
|
+
:'timezone' => :'String',
|
|
72
|
+
:'date_format' => :'String',
|
|
73
|
+
:'gap_minutes' => :'Float',
|
|
74
|
+
:'min_messages' => :'Integer',
|
|
75
|
+
:'voice_note' => :'Boolean',
|
|
76
|
+
:'expression' => :'Boolean'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# List of attributes with nullable: true
|
|
81
|
+
def self.openapi_nullable
|
|
82
|
+
Set.new([
|
|
83
|
+
])
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Initializes the object
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
def initialize(attributes = {})
|
|
89
|
+
if (!attributes.is_a?(Hash))
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `FalaAI::WhatsappPreviewParams` initialize method"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `FalaAI::WhatsappPreviewParams`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
98
|
+
end
|
|
99
|
+
h[k.to_sym] = v
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'start')
|
|
103
|
+
self.start = attributes[:'start']
|
|
104
|
+
else
|
|
105
|
+
self.start = nil
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
if attributes.key?(:'_end')
|
|
109
|
+
self._end = attributes[:'_end']
|
|
110
|
+
else
|
|
111
|
+
self._end = nil
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'timezone')
|
|
115
|
+
self.timezone = attributes[:'timezone']
|
|
116
|
+
else
|
|
117
|
+
self.timezone = nil
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'date_format')
|
|
121
|
+
self.date_format = attributes[:'date_format']
|
|
122
|
+
else
|
|
123
|
+
self.date_format = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'gap_minutes')
|
|
127
|
+
self.gap_minutes = attributes[:'gap_minutes']
|
|
128
|
+
else
|
|
129
|
+
self.gap_minutes = nil
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
if attributes.key?(:'min_messages')
|
|
133
|
+
self.min_messages = attributes[:'min_messages']
|
|
134
|
+
else
|
|
135
|
+
self.min_messages = nil
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'voice_note')
|
|
139
|
+
self.voice_note = attributes[:'voice_note']
|
|
140
|
+
else
|
|
141
|
+
self.voice_note = nil
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if attributes.key?(:'expression')
|
|
145
|
+
self.expression = attributes[:'expression']
|
|
146
|
+
else
|
|
147
|
+
self.expression = nil
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
152
|
+
# @return Array for valid properties with the reasons
|
|
153
|
+
def list_invalid_properties
|
|
154
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
155
|
+
invalid_properties = Array.new
|
|
156
|
+
if @start.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "start", start cannot be nil.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @_end.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "_end", _end cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @timezone.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "timezone", timezone cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @date_format.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "date_format", date_format cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if @gap_minutes.nil?
|
|
173
|
+
invalid_properties.push('invalid value for "gap_minutes", gap_minutes cannot be nil.')
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if @min_messages.nil?
|
|
177
|
+
invalid_properties.push('invalid value for "min_messages", min_messages cannot be nil.')
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
if @voice_note.nil?
|
|
181
|
+
invalid_properties.push('invalid value for "voice_note", voice_note cannot be nil.')
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
if @expression.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "expression", expression cannot be nil.')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
invalid_properties
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Check to see if the all the properties in the model are valid
|
|
192
|
+
# @return true if the model is valid
|
|
193
|
+
def valid?
|
|
194
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
195
|
+
return false if @start.nil?
|
|
196
|
+
return false if @_end.nil?
|
|
197
|
+
return false if @timezone.nil?
|
|
198
|
+
return false if @date_format.nil?
|
|
199
|
+
return false if @gap_minutes.nil?
|
|
200
|
+
return false if @min_messages.nil?
|
|
201
|
+
return false if @voice_note.nil?
|
|
202
|
+
return false if @expression.nil?
|
|
203
|
+
true
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Custom attribute writer method with validation
|
|
207
|
+
# @param [Object] start Value to be assigned
|
|
208
|
+
def start=(start)
|
|
209
|
+
if start.nil?
|
|
210
|
+
fail ArgumentError, 'start cannot be nil'
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
@start = start
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Custom attribute writer method with validation
|
|
217
|
+
# @param [Object] _end Value to be assigned
|
|
218
|
+
def _end=(_end)
|
|
219
|
+
if _end.nil?
|
|
220
|
+
fail ArgumentError, '_end cannot be nil'
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
@_end = _end
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Custom attribute writer method with validation
|
|
227
|
+
# @param [Object] timezone Value to be assigned
|
|
228
|
+
def timezone=(timezone)
|
|
229
|
+
if timezone.nil?
|
|
230
|
+
fail ArgumentError, 'timezone cannot be nil'
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
@timezone = timezone
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
# Custom attribute writer method with validation
|
|
237
|
+
# @param [Object] date_format Value to be assigned
|
|
238
|
+
def date_format=(date_format)
|
|
239
|
+
if date_format.nil?
|
|
240
|
+
fail ArgumentError, 'date_format cannot be nil'
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
@date_format = date_format
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Custom attribute writer method with validation
|
|
247
|
+
# @param [Object] gap_minutes Value to be assigned
|
|
248
|
+
def gap_minutes=(gap_minutes)
|
|
249
|
+
if gap_minutes.nil?
|
|
250
|
+
fail ArgumentError, 'gap_minutes cannot be nil'
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
@gap_minutes = gap_minutes
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Custom attribute writer method with validation
|
|
257
|
+
# @param [Object] min_messages Value to be assigned
|
|
258
|
+
def min_messages=(min_messages)
|
|
259
|
+
if min_messages.nil?
|
|
260
|
+
fail ArgumentError, 'min_messages cannot be nil'
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
@min_messages = min_messages
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Custom attribute writer method with validation
|
|
267
|
+
# @param [Object] voice_note Value to be assigned
|
|
268
|
+
def voice_note=(voice_note)
|
|
269
|
+
if voice_note.nil?
|
|
270
|
+
fail ArgumentError, 'voice_note cannot be nil'
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
@voice_note = voice_note
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Custom attribute writer method with validation
|
|
277
|
+
# @param [Object] expression Value to be assigned
|
|
278
|
+
def expression=(expression)
|
|
279
|
+
if expression.nil?
|
|
280
|
+
fail ArgumentError, 'expression cannot be nil'
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
@expression = expression
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Checks equality by comparing each attribute.
|
|
287
|
+
# @param [Object] Object to be compared
|
|
288
|
+
def ==(o)
|
|
289
|
+
return true if self.equal?(o)
|
|
290
|
+
self.class == o.class &&
|
|
291
|
+
start == o.start &&
|
|
292
|
+
_end == o._end &&
|
|
293
|
+
timezone == o.timezone &&
|
|
294
|
+
date_format == o.date_format &&
|
|
295
|
+
gap_minutes == o.gap_minutes &&
|
|
296
|
+
min_messages == o.min_messages &&
|
|
297
|
+
voice_note == o.voice_note &&
|
|
298
|
+
expression == o.expression
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# @see the `==` method
|
|
302
|
+
# @param [Object] Object to be compared
|
|
303
|
+
def eql?(o)
|
|
304
|
+
self == o
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# Calculates hash code according to all attributes.
|
|
308
|
+
# @return [Integer] Hash code
|
|
309
|
+
def hash
|
|
310
|
+
[start, _end, timezone, date_format, gap_minutes, min_messages, voice_note, expression].hash
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# Builds the object from hash
|
|
314
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
315
|
+
# @return [Object] Returns the model itself
|
|
316
|
+
def self.build_from_hash(attributes)
|
|
317
|
+
return nil unless attributes.is_a?(Hash)
|
|
318
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
319
|
+
transformed_hash = {}
|
|
320
|
+
openapi_types.each_pair do |key, type|
|
|
321
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
322
|
+
transformed_hash["#{key}"] = nil
|
|
323
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
324
|
+
# check to ensure the input is an array given that the attribute
|
|
325
|
+
# is documented as an array but the input is not
|
|
326
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
327
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
328
|
+
end
|
|
329
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
330
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
331
|
+
end
|
|
332
|
+
end
|
|
333
|
+
new(transformed_hash)
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Returns the object in the form of hash
|
|
337
|
+
# @return [Hash] Returns the object in the form of hash
|
|
338
|
+
def to_hash
|
|
339
|
+
hash = {}
|
|
340
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
341
|
+
value = self.send(attr)
|
|
342
|
+
if value.nil?
|
|
343
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
344
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
hash[param] = _to_hash(value)
|
|
348
|
+
end
|
|
349
|
+
hash
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
end
|