messente_api 1.0.3 → 1.3.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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +11 -3
  4. data/docs/ContactFields.md +3 -1
  5. data/docs/ContactsApi.md +2 -2
  6. data/docs/ErrorCodeStatistics.md +16 -0
  7. data/docs/ErrorItemNumberLookup.md +17 -0
  8. data/docs/ErrorItemNumberLookupError.md +19 -0
  9. data/docs/ErrorItemStatistics.md +21 -0
  10. data/docs/ErrorNumberLookup.md +17 -0
  11. data/docs/ErrorStatistics.md +17 -0
  12. data/docs/MobileNetwork.md +25 -0
  13. data/docs/NumberLookupApi.md +60 -0
  14. data/docs/NumbersToInvestigate.md +17 -0
  15. data/docs/Omnimessage.md +1 -1
  16. data/docs/OmnimessageApi.md +4 -3
  17. data/docs/StatisticsApi.md +60 -0
  18. data/docs/StatisticsReport.md +21 -0
  19. data/docs/StatisticsReportSettings.md +21 -0
  20. data/docs/StatisticsReportSuccess.md +17 -0
  21. data/docs/SyncNumberLookupResult.md +33 -0
  22. data/docs/SyncNumberLookupSuccess.md +19 -0
  23. data/docs/Telegram.md +29 -0
  24. data/git_push.sh +10 -7
  25. data/lib/messente_api.rb +19 -3
  26. data/lib/messente_api/api/blacklist_api.rb +3 -3
  27. data/lib/messente_api/api/contacts_api.rb +3 -3
  28. data/lib/messente_api/api/delivery_report_api.rb +3 -3
  29. data/lib/messente_api/api/groups_api.rb +3 -3
  30. data/lib/messente_api/api/number_lookup_api.rb +84 -0
  31. data/lib/messente_api/api/omnimessage_api.rb +8 -8
  32. data/lib/messente_api/api/statistics_api.rb +84 -0
  33. data/lib/messente_api/api_client.rb +38 -36
  34. data/lib/messente_api/api_error.rb +3 -3
  35. data/lib/messente_api/configuration.rb +4 -4
  36. data/lib/messente_api/models/channel.rb +4 -3
  37. data/lib/messente_api/models/contact_envelope.rb +14 -4
  38. data/lib/messente_api/models/contact_fields.rb +38 -8
  39. data/lib/messente_api/models/contact_list_envelope.rb +14 -4
  40. data/lib/messente_api/models/contact_update_fields.rb +23 -4
  41. data/lib/messente_api/models/delivery_report_response.rb +14 -4
  42. data/lib/messente_api/models/delivery_result.rb +14 -4
  43. data/lib/messente_api/models/error_code_omnichannel.rb +3 -3
  44. data/lib/messente_api/models/error_code_omnichannel_machine.rb +3 -3
  45. data/lib/messente_api/models/error_code_phonebook.rb +3 -3
  46. data/lib/messente_api/models/error_code_statistics.rb +38 -0
  47. data/lib/messente_api/models/error_item_number_lookup.rb +212 -0
  48. data/lib/messente_api/models/error_item_number_lookup_error.rb +256 -0
  49. data/lib/messente_api/models/error_item_omnichannel.rb +15 -9
  50. data/lib/messente_api/models/error_item_phonebook.rb +14 -4
  51. data/lib/messente_api/models/error_item_statistics.rb +242 -0
  52. data/lib/messente_api/models/error_number_lookup.rb +215 -0
  53. data/lib/messente_api/models/error_omnichannel.rb +14 -4
  54. data/lib/messente_api/models/error_phonebook.rb +14 -4
  55. data/lib/messente_api/models/error_statistics.rb +215 -0
  56. data/lib/messente_api/models/error_title_omnichannel.rb +3 -3
  57. data/lib/messente_api/models/error_title_phonebook.rb +3 -3
  58. data/lib/messente_api/models/fetch_blacklist_success.rb +14 -4
  59. data/lib/messente_api/models/group_envelope.rb +14 -4
  60. data/lib/messente_api/models/group_list_envelope.rb +14 -4
  61. data/lib/messente_api/models/group_name.rb +14 -4
  62. data/lib/messente_api/models/group_response_fields.rb +15 -4
  63. data/lib/messente_api/models/message_result.rb +14 -4
  64. data/lib/messente_api/models/mobile_network.rb +248 -0
  65. data/lib/messente_api/models/number_to_blacklist.rb +14 -4
  66. data/lib/messente_api/models/numbers_to_investigate.rb +215 -0
  67. data/lib/messente_api/models/omni_message_create_success_response.rb +14 -4
  68. data/lib/messente_api/models/omnimessage.rb +15 -5
  69. data/lib/messente_api/models/sms.rb +14 -4
  70. data/lib/messente_api/models/statistics_report.rb +243 -0
  71. data/lib/messente_api/models/statistics_report_settings.rb +240 -0
  72. data/lib/messente_api/models/statistics_report_success.rb +215 -0
  73. data/lib/messente_api/models/status.rb +3 -3
  74. data/lib/messente_api/models/sync_number_lookup_result.rb +329 -0
  75. data/lib/messente_api/models/sync_number_lookup_success.rb +230 -0
  76. data/lib/messente_api/models/telegram.rb +304 -0
  77. data/lib/messente_api/models/text_store.rb +3 -3
  78. data/lib/messente_api/models/viber.rb +14 -4
  79. data/lib/messente_api/models/whats_app.rb +14 -4
  80. data/lib/messente_api/models/whats_app_audio.rb +14 -4
  81. data/lib/messente_api/models/whats_app_document.rb +14 -4
  82. data/lib/messente_api/models/whats_app_image.rb +14 -4
  83. data/lib/messente_api/models/whats_app_text.rb +14 -4
  84. data/lib/messente_api/version.rb +4 -4
  85. data/messente_api.gemspec +4 -10
  86. data/spec/api_client_spec.rb +4 -4
  87. data/spec/configuration_spec.rb +3 -3
  88. data/spec/spec_helper.rb +3 -3
  89. metadata +48 -136
  90. data/Gemfile.lock +0 -79
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -127,6 +127,34 @@ module MessenteApi
127
127
  request
128
128
  end
129
129
 
130
+ # Builds the HTTP request body
131
+ #
132
+ # @param [Hash] header_params Header parameters
133
+ # @param [Hash] form_params Query parameters
134
+ # @param [Object] body HTTP body (JSON/XML)
135
+ # @return [String] HTTP body data in the form of string
136
+ def build_request_body(header_params, form_params, body)
137
+ # http form
138
+ if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
139
+ header_params['Content-Type'] == 'multipart/form-data'
140
+ data = {}
141
+ form_params.each do |key, value|
142
+ case value
143
+ when ::File, ::Array, nil
144
+ # let typhoeus handle File, Array and nil parameters
145
+ data[key] = value
146
+ else
147
+ data[key] = value.to_s
148
+ end
149
+ end
150
+ elsif body
151
+ data = body.is_a?(String) ? body : body.to_json
152
+ else
153
+ data = nil
154
+ end
155
+ data
156
+ end
157
+
130
158
  # Check if the given MIME is a JSON MIME.
131
159
  # JSON MIME examples:
132
160
  # application/json
@@ -241,11 +269,13 @@ module MessenteApi
241
269
  tempfile.write(chunk)
242
270
  end
243
271
  request.on_complete do |response|
244
- tempfile.close if tempfile
245
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
246
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
247
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
248
- "explicitly with `tempfile.delete`"
272
+ if tempfile
273
+ tempfile.close
274
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
275
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
276
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
277
+ "explicitly with `tempfile.delete`"
278
+ end
249
279
  end
250
280
  end
251
281
 
@@ -264,34 +294,6 @@ module MessenteApi
264
294
  @config.base_url + path
265
295
  end
266
296
 
267
- # Builds the HTTP request body
268
- #
269
- # @param [Hash] header_params Header parameters
270
- # @param [Hash] form_params Query parameters
271
- # @param [Object] body HTTP body (JSON/XML)
272
- # @return [String] HTTP body data in the form of string
273
- def build_request_body(header_params, form_params, body)
274
- # http form
275
- if header_params['Content-Type'] == 'application/x-www-form-urlencoded' ||
276
- header_params['Content-Type'] == 'multipart/form-data'
277
- data = {}
278
- form_params.each do |key, value|
279
- case value
280
- when ::File, ::Array, nil
281
- # let typhoeus handle File, Array and nil parameters
282
- data[key] = value
283
- else
284
- data[key] = value.to_s
285
- end
286
- end
287
- elsif body
288
- data = body.is_a?(String) ? body : body.to_json
289
- else
290
- data = nil
291
- end
292
- data
293
- end
294
-
295
297
  # Update hearder and query params based on authentication settings.
296
298
  #
297
299
  # @param [Hash] header_params Header parameters
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -208,7 +208,7 @@ module MessenteApi
208
208
  [
209
209
  {
210
210
  url: "https://api.messente.com/v1",
211
- description: "No descriptoin provided",
211
+ description: "No description provided",
212
212
  }
213
213
  ]
214
214
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,6 +17,7 @@ module MessenteApi
17
17
  SMS = "sms".freeze
18
18
  VIBER = "viber".freeze
19
19
  WHATSAPP = "whatsapp".freeze
20
+ TELEGRAM = "telegram".freeze
20
21
 
21
22
  # Builds the enum from string
22
23
  # @param [String] The enum value in the form of the string
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -31,6 +31,12 @@ module MessenteApi
31
31
  }
32
32
  end
33
33
 
34
+ # List of attributes with nullable: true
35
+ def self.openapi_nullable
36
+ Set.new([
37
+ ])
38
+ end
39
+
34
40
  # Initializes the object
35
41
  # @param [Hash] attributes Model attributes in the form of hash
36
42
  def initialize(attributes = {})
@@ -170,7 +176,11 @@ module MessenteApi
170
176
  hash = {}
171
177
  self.class.attribute_map.each_pair do |attr, param|
172
178
  value = self.send(attr)
173
- next if value.nil?
179
+ if value.nil?
180
+ is_nullable = self.class.openapi_nullable.include?(attr)
181
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
182
+ end
183
+
174
184
  hash[param] = _to_hash(value)
175
185
  end
176
186
  hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -45,6 +45,9 @@ module MessenteApi
45
45
  # The fourth custom field
46
46
  attr_accessor :custom4
47
47
 
48
+ # The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days
49
+ attr_accessor :scheduled_deletion_date
50
+
48
51
  # Attribute mapping from ruby-style variable name to JSON key.
49
52
  def self.attribute_map
50
53
  {
@@ -57,7 +60,8 @@ module MessenteApi
57
60
  :'custom' => :'custom',
58
61
  :'custom2' => :'custom2',
59
62
  :'custom3' => :'custom3',
60
- :'custom4' => :'custom4'
63
+ :'custom4' => :'custom4',
64
+ :'scheduled_deletion_date' => :'scheduledDeletionDate'
61
65
  }
62
66
  end
63
67
 
@@ -73,10 +77,27 @@ module MessenteApi
73
77
  :'custom' => :'String',
74
78
  :'custom2' => :'String',
75
79
  :'custom3' => :'String',
76
- :'custom4' => :'String'
80
+ :'custom4' => :'String',
81
+ :'scheduled_deletion_date' => :'Date'
77
82
  }
78
83
  end
79
84
 
85
+ # List of attributes with nullable: true
86
+ def self.openapi_nullable
87
+ Set.new([
88
+ :'email',
89
+ :'first_name',
90
+ :'last_name',
91
+ :'company',
92
+ :'title',
93
+ :'custom',
94
+ :'custom2',
95
+ :'custom3',
96
+ :'custom4',
97
+ :'scheduled_deletion_date'
98
+ ])
99
+ end
100
+
80
101
  # Initializes the object
81
102
  # @param [Hash] attributes Model attributes in the form of hash
82
103
  def initialize(attributes = {})
@@ -131,6 +152,10 @@ module MessenteApi
131
152
  if attributes.key?(:'custom4')
132
153
  self.custom4 = attributes[:'custom4']
133
154
  end
155
+
156
+ if attributes.key?(:'scheduled_deletion_date')
157
+ self.scheduled_deletion_date = attributes[:'scheduled_deletion_date']
158
+ end
134
159
  end
135
160
 
136
161
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,7 +190,8 @@ module MessenteApi
165
190
  custom == o.custom &&
166
191
  custom2 == o.custom2 &&
167
192
  custom3 == o.custom3 &&
168
- custom4 == o.custom4
193
+ custom4 == o.custom4 &&
194
+ scheduled_deletion_date == o.scheduled_deletion_date
169
195
  end
170
196
 
171
197
  # @see the `==` method
@@ -177,7 +203,7 @@ module MessenteApi
177
203
  # Calculates hash code according to all attributes.
178
204
  # @return [Integer] Hash code
179
205
  def hash
180
- [phone_number, email, first_name, last_name, company, title, custom, custom2, custom3, custom4].hash
206
+ [phone_number, email, first_name, last_name, company, title, custom, custom2, custom3, custom4, scheduled_deletion_date].hash
181
207
  end
182
208
 
183
209
  # Builds the object from hash
@@ -266,7 +292,11 @@ module MessenteApi
266
292
  hash = {}
267
293
  self.class.attribute_map.each_pair do |attr, param|
268
294
  value = self.send(attr)
269
- next if value.nil?
295
+ if value.nil?
296
+ is_nullable = self.class.openapi_nullable.include?(attr)
297
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
298
+ end
299
+
270
300
  hash[param] = _to_hash(value)
271
301
  end
272
302
  hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -32,6 +32,12 @@ module MessenteApi
32
32
  }
33
33
  end
34
34
 
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
35
41
  # Initializes the object
36
42
  # @param [Hash] attributes Model attributes in the form of hash
37
43
  def initialize(attributes = {})
@@ -173,7 +179,11 @@ module MessenteApi
173
179
  hash = {}
174
180
  self.class.attribute_map.each_pair do |attr, param|
175
181
  value = self.send(attr)
176
- next if value.nil?
182
+ if value.nil?
183
+ is_nullable = self.class.openapi_nullable.include?(attr)
184
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
185
+ end
186
+
177
187
  hash[param] = _to_hash(value)
178
188
  end
179
189
  hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -72,6 +72,21 @@ module MessenteApi
72
72
  }
73
73
  end
74
74
 
75
+ # List of attributes with nullable: true
76
+ def self.openapi_nullable
77
+ Set.new([
78
+ :'email',
79
+ :'first_name',
80
+ :'last_name',
81
+ :'company',
82
+ :'title',
83
+ :'custom',
84
+ :'custom2',
85
+ :'custom3',
86
+ :'custom4'
87
+ ])
88
+ end
89
+
75
90
  # Initializes the object
76
91
  # @param [Hash] attributes Model attributes in the form of hash
77
92
  def initialize(attributes = {})
@@ -251,7 +266,11 @@ module MessenteApi
251
266
  hash = {}
252
267
  self.class.attribute_map.each_pair do |attr, param|
253
268
  value = self.send(attr)
254
- next if value.nil?
269
+ if value.nil?
270
+ is_nullable = self.class.openapi_nullable.include?(attr)
271
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
272
+ end
273
+
255
274
  hash[param] = _to_hash(value)
256
275
  end
257
276
  hash
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber and WhatsApp messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
5
5
 
6
- The version of the OpenAPI document: 1.0.2
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -42,6 +42,12 @@ module MessenteApi
42
42
  }
43
43
  end
44
44
 
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
45
51
  # Initializes the object
46
52
  # @param [Hash] attributes Model attributes in the form of hash
47
53
  def initialize(attributes = {})
@@ -208,7 +214,11 @@ module MessenteApi
208
214
  hash = {}
209
215
  self.class.attribute_map.each_pair do |attr, param|
210
216
  value = self.send(attr)
211
- next if value.nil?
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
212
222
  hash[param] = _to_hash(value)
213
223
  end
214
224
  hash