messente_api 1.2.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +2 -2
  4. data/docs/ContactEnvelope.md +1 -1
  5. data/docs/ContactListEnvelope.md +1 -1
  6. data/docs/ContactResponseFields.md +37 -0
  7. data/docs/Omnimessage.md +3 -1
  8. data/docs/OmnimessageApi.md +4 -3
  9. data/docs/Priority.md +16 -0
  10. data/docs/StatisticsReportSettings.md +1 -1
  11. data/docs/SyncNumberLookupResult.md +1 -1
  12. data/git_push.sh +10 -7
  13. data/lib/messente_api.rb +4 -2
  14. data/lib/messente_api/api/blacklist_api.rb +2 -2
  15. data/lib/messente_api/api/contacts_api.rb +2 -2
  16. data/lib/messente_api/api/delivery_report_api.rb +2 -2
  17. data/lib/messente_api/api/groups_api.rb +2 -2
  18. data/lib/messente_api/api/number_lookup_api.rb +2 -2
  19. data/lib/messente_api/api/omnimessage_api.rb +7 -7
  20. data/lib/messente_api/api/statistics_api.rb +2 -2
  21. data/lib/messente_api/api_client.rb +37 -35
  22. data/lib/messente_api/api_error.rb +2 -2
  23. data/lib/messente_api/configuration.rb +3 -3
  24. data/lib/messente_api/models/channel.rb +2 -2
  25. data/lib/messente_api/models/contact_envelope.rb +14 -4
  26. data/lib/messente_api/models/contact_fields.rb +23 -4
  27. data/lib/messente_api/models/contact_list_envelope.rb +14 -4
  28. data/lib/messente_api/models/contact_response_fields.rb +318 -0
  29. data/lib/messente_api/models/contact_update_fields.rb +22 -3
  30. data/lib/messente_api/models/delivery_report_response.rb +13 -3
  31. data/lib/messente_api/models/delivery_result.rb +13 -3
  32. data/lib/messente_api/models/error_code_omnichannel.rb +2 -2
  33. data/lib/messente_api/models/error_code_omnichannel_machine.rb +2 -2
  34. data/lib/messente_api/models/error_code_phonebook.rb +2 -2
  35. data/lib/messente_api/models/error_code_statistics.rb +2 -2
  36. data/lib/messente_api/models/error_item_number_lookup.rb +13 -3
  37. data/lib/messente_api/models/error_item_number_lookup_error.rb +13 -3
  38. data/lib/messente_api/models/error_item_omnichannel.rb +14 -8
  39. data/lib/messente_api/models/error_item_phonebook.rb +13 -3
  40. data/lib/messente_api/models/error_item_statistics.rb +13 -3
  41. data/lib/messente_api/models/error_number_lookup.rb +13 -3
  42. data/lib/messente_api/models/error_omnichannel.rb +13 -3
  43. data/lib/messente_api/models/error_phonebook.rb +13 -3
  44. data/lib/messente_api/models/error_statistics.rb +13 -3
  45. data/lib/messente_api/models/error_title_omnichannel.rb +2 -2
  46. data/lib/messente_api/models/error_title_phonebook.rb +2 -2
  47. data/lib/messente_api/models/fetch_blacklist_success.rb +13 -3
  48. data/lib/messente_api/models/group_envelope.rb +13 -3
  49. data/lib/messente_api/models/group_list_envelope.rb +13 -3
  50. data/lib/messente_api/models/group_name.rb +13 -3
  51. data/lib/messente_api/models/group_response_fields.rb +14 -3
  52. data/lib/messente_api/models/message_result.rb +13 -3
  53. data/lib/messente_api/models/mobile_network.rb +13 -3
  54. data/lib/messente_api/models/number_to_blacklist.rb +13 -3
  55. data/lib/messente_api/models/numbers_to_investigate.rb +13 -3
  56. data/lib/messente_api/models/omni_message_create_success_response.rb +13 -3
  57. data/lib/messente_api/models/omnimessage.rb +26 -7
  58. data/lib/messente_api/models/priority.rb +37 -0
  59. data/lib/messente_api/models/sms.rb +13 -3
  60. data/lib/messente_api/models/statistics_report.rb +13 -3
  61. data/lib/messente_api/models/statistics_report_settings.rb +14 -4
  62. data/lib/messente_api/models/statistics_report_success.rb +13 -3
  63. data/lib/messente_api/models/status.rb +2 -2
  64. data/lib/messente_api/models/sync_number_lookup_result.rb +20 -4
  65. data/lib/messente_api/models/sync_number_lookup_success.rb +13 -3
  66. data/lib/messente_api/models/telegram.rb +13 -3
  67. data/lib/messente_api/models/text_store.rb +2 -2
  68. data/lib/messente_api/models/viber.rb +13 -3
  69. data/lib/messente_api/models/whats_app.rb +13 -3
  70. data/lib/messente_api/models/whats_app_audio.rb +13 -3
  71. data/lib/messente_api/models/whats_app_document.rb +13 -3
  72. data/lib/messente_api/models/whats_app_image.rb +13 -3
  73. data/lib/messente_api/models/whats_app_text.rb +13 -3
  74. data/lib/messente_api/version.rb +3 -3
  75. data/messente_api.gemspec +2 -8
  76. data/spec/api_client_spec.rb +3 -3
  77. data/spec/configuration_spec.rb +2 -2
  78. data/spec/spec_helper.rb +2 -2
  79. metadata +15 -132
  80. data/Gemfile.lock +0 -79
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -29,6 +29,8 @@ module MessenteApi
29
29
  # Optional parameter for sending messages at some specific time in the future. Time must be specified in the ISO-8601 format. If no timezone is specified, then the timezone is assumed to be UTC Examples: * Time specified with timezone: 2018-06-22T09:05:07+00:00 Time specified in UTC: 2018-06-22T09:05:07Z * Time specified without timezone: 2018-06-22T09:05 (equivalent to 2018-06-22T09:05+00:00)
30
30
  attr_accessor :time_to_send
31
31
 
32
+ attr_accessor :priority
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -36,7 +38,8 @@ module MessenteApi
36
38
  :'messages' => :'messages',
37
39
  :'dlr_url' => :'dlr_url',
38
40
  :'text_store' => :'text_store',
39
- :'time_to_send' => :'time_to_send'
41
+ :'time_to_send' => :'time_to_send',
42
+ :'priority' => :'priority'
40
43
  }
41
44
  end
42
45
 
@@ -47,10 +50,17 @@ module MessenteApi
47
50
  :'messages' => :'Array<OneOfViberSMSWhatsAppTelegram>',
48
51
  :'dlr_url' => :'String',
49
52
  :'text_store' => :'TextStore',
50
- :'time_to_send' => :'DateTime'
53
+ :'time_to_send' => :'DateTime',
54
+ :'priority' => :'Priority'
51
55
  }
52
56
  end
53
57
 
58
+ # List of attributes with nullable: true
59
+ def self.openapi_nullable
60
+ Set.new([
61
+ ])
62
+ end
63
+
54
64
  # Initializes the object
55
65
  # @param [Hash] attributes Model attributes in the form of hash
56
66
  def initialize(attributes = {})
@@ -87,6 +97,10 @@ module MessenteApi
87
97
  if attributes.key?(:'time_to_send')
88
98
  self.time_to_send = attributes[:'time_to_send']
89
99
  end
100
+
101
+ if attributes.key?(:'priority')
102
+ self.priority = attributes[:'priority']
103
+ end
90
104
  end
91
105
 
92
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,7 +135,8 @@ module MessenteApi
121
135
  messages == o.messages &&
122
136
  dlr_url == o.dlr_url &&
123
137
  text_store == o.text_store &&
124
- time_to_send == o.time_to_send
138
+ time_to_send == o.time_to_send &&
139
+ priority == o.priority
125
140
  end
126
141
 
127
142
  # @see the `==` method
@@ -133,7 +148,7 @@ module MessenteApi
133
148
  # Calculates hash code according to all attributes.
134
149
  # @return [Integer] Hash code
135
150
  def hash
136
- [to, messages, dlr_url, text_store, time_to_send].hash
151
+ [to, messages, dlr_url, text_store, time_to_send, priority].hash
137
152
  end
138
153
 
139
154
  # Builds the object from hash
@@ -222,7 +237,11 @@ module MessenteApi
222
237
  hash = {}
223
238
  self.class.attribute_map.each_pair do |attr, param|
224
239
  value = self.send(attr)
225
- next if value.nil?
240
+ if value.nil?
241
+ is_nullable = self.class.openapi_nullable.include?(attr)
242
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
243
+ end
244
+
226
245
  hash[param] = _to_hash(value)
227
246
  end
228
247
  hash
@@ -0,0 +1,37 @@
1
+ =begin
2
+ #Messente API
3
+
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
+
6
+ The version of the OpenAPI document: 1.4.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module MessenteApi
16
+ class Priority
17
+ LOW = "low".freeze
18
+ REGULAR = "regular".freeze
19
+ HIGH = "high".freeze
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def self.build_from_hash(value)
25
+ new.build_from_hash(value)
26
+ end
27
+
28
+ # Builds the enum from string
29
+ # @param [String] The enum value in the form of the string
30
+ # @return [String] The enum value
31
+ def build_from_hash(value)
32
+ constantValues = Priority.constants.select { |c| Priority::const_get(c) == value }
33
+ raise "Invalid ENUM value #{value} for class #Priority" if constantValues.empty?
34
+ value
35
+ end
36
+ end
37
+ end
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -79,6 +79,12 @@ module MessenteApi
79
79
  }
80
80
  end
81
81
 
82
+ # List of attributes with nullable: true
83
+ def self.openapi_nullable
84
+ Set.new([
85
+ ])
86
+ end
87
+
82
88
  # Initializes the object
83
89
  # @param [Hash] attributes Model attributes in the form of hash
84
90
  def initialize(attributes = {})
@@ -274,7 +280,11 @@ module MessenteApi
274
280
  hash = {}
275
281
  self.class.attribute_map.each_pair do |attr, param|
276
282
  value = self.send(attr)
277
- next if value.nil?
283
+ if value.nil?
284
+ is_nullable = self.class.openapi_nullable.include?(attr)
285
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
286
+ end
287
+
278
288
  hash[param] = _to_hash(value)
279
289
  end
280
290
  hash
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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 = {})
@@ -206,7 +212,11 @@ module MessenteApi
206
212
  hash = {}
207
213
  self.class.attribute_map.each_pair do |attr, param|
208
214
  value = self.send(attr)
209
- next if value.nil?
215
+ if value.nil?
216
+ is_nullable = self.class.openapi_nullable.include?(attr)
217
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
218
+ end
219
+
210
220
  hash[param] = _to_hash(value)
211
221
  end
212
222
  hash
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -21,7 +21,7 @@ module MessenteApi
21
21
  # End date for the report
22
22
  attr_accessor :end_date
23
23
 
24
- # Optional list of message types (sms, viber, whatsapp, hlr)
24
+ # Optional list of message types (sms, viber, whatsapp, hlr, telegram)
25
25
  attr_accessor :message_types
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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 = {})
@@ -203,7 +209,11 @@ module MessenteApi
203
209
  hash = {}
204
210
  self.class.attribute_map.each_pair do |attr, param|
205
211
  value = self.send(attr)
206
- next if value.nil?
212
+ if value.nil?
213
+ is_nullable = self.class.openapi_nullable.include?(attr)
214
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
215
+ end
216
+
207
217
  hash[param] = _to_hash(value)
208
218
  end
209
219
  hash
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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 = {})
@@ -178,7 +184,11 @@ module MessenteApi
178
184
  hash = {}
179
185
  self.class.attribute_map.each_pair do |attr, param|
180
186
  value = self.send(attr)
181
- next if value.nil?
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
182
192
  hash[param] = _to_hash(value)
183
193
  end
184
194
  hash
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -86,10 +86,22 @@ module MessenteApi
86
86
  :'original_network' => :'MobileNetwork',
87
87
  :'ported_network' => :'MobileNetwork',
88
88
  :'status' => :'String',
89
- :'error' => :'Object'
89
+ :'error' => :'AnyType'
90
90
  }
91
91
  end
92
92
 
93
+ # List of attributes with nullable: true
94
+ def self.openapi_nullable
95
+ Set.new([
96
+ :'roaming',
97
+ :'ported',
98
+ :'roaming_network',
99
+ :'current_network',
100
+ :'original_network',
101
+ :'ported_network',
102
+ ])
103
+ end
104
+
93
105
  # Initializes the object
94
106
  # @param [Hash] attributes Model attributes in the form of hash
95
107
  def initialize(attributes = {})
@@ -286,7 +298,11 @@ module MessenteApi
286
298
  hash = {}
287
299
  self.class.attribute_map.each_pair do |attr, param|
288
300
  value = self.send(attr)
289
- next if value.nil?
301
+ if value.nil?
302
+ is_nullable = self.class.openapi_nullable.include?(attr)
303
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
304
+ end
305
+
290
306
  hash[param] = _to_hash(value)
291
307
  end
292
308
  hash
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -37,6 +37,12 @@ module MessenteApi
37
37
  }
38
38
  end
39
39
 
40
+ # List of attributes with nullable: true
41
+ def self.openapi_nullable
42
+ Set.new([
43
+ ])
44
+ end
45
+
40
46
  # Initializes the object
41
47
  # @param [Hash] attributes Model attributes in the form of hash
42
48
  def initialize(attributes = {})
@@ -193,7 +199,11 @@ module MessenteApi
193
199
  hash = {}
194
200
  self.class.attribute_map.each_pair do |attr, param|
195
201
  value = self.send(attr)
196
- next if value.nil?
202
+ if value.nil?
203
+ is_nullable = self.class.openapi_nullable.include?(attr)
204
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
205
+ end
206
+
197
207
  hash[param] = _to_hash(value)
198
208
  end
199
209
  hash
@@ -3,10 +3,10 @@
3
3
 
4
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.2.0
6
+ The version of the OpenAPI document: 1.4.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
 
@@ -84,6 +84,12 @@ module MessenteApi
84
84
  }
85
85
  end
86
86
 
87
+ # List of attributes with nullable: true
88
+ def self.openapi_nullable
89
+ Set.new([
90
+ ])
91
+ end
92
+
87
93
  # Initializes the object
88
94
  # @param [Hash] attributes Model attributes in the form of hash
89
95
  def initialize(attributes = {})
@@ -267,7 +273,11 @@ module MessenteApi
267
273
  hash = {}
268
274
  self.class.attribute_map.each_pair do |attr, param|
269
275
  value = self.send(attr)
270
- next if value.nil?
276
+ if value.nil?
277
+ is_nullable = self.class.openapi_nullable.include?(attr)
278
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
279
+ end
280
+
271
281
  hash[param] = _to_hash(value)
272
282
  end
273
283
  hash