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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/docs/ContactEnvelope.md +1 -1
- data/docs/ContactListEnvelope.md +1 -1
- data/docs/ContactResponseFields.md +37 -0
- data/docs/Omnimessage.md +3 -1
- data/docs/OmnimessageApi.md +4 -3
- data/docs/Priority.md +16 -0
- data/docs/StatisticsReportSettings.md +1 -1
- data/docs/SyncNumberLookupResult.md +1 -1
- data/git_push.sh +10 -7
- data/lib/messente_api.rb +4 -2
- data/lib/messente_api/api/blacklist_api.rb +2 -2
- data/lib/messente_api/api/contacts_api.rb +2 -2
- data/lib/messente_api/api/delivery_report_api.rb +2 -2
- data/lib/messente_api/api/groups_api.rb +2 -2
- data/lib/messente_api/api/number_lookup_api.rb +2 -2
- data/lib/messente_api/api/omnimessage_api.rb +7 -7
- data/lib/messente_api/api/statistics_api.rb +2 -2
- data/lib/messente_api/api_client.rb +37 -35
- data/lib/messente_api/api_error.rb +2 -2
- data/lib/messente_api/configuration.rb +3 -3
- data/lib/messente_api/models/channel.rb +2 -2
- data/lib/messente_api/models/contact_envelope.rb +14 -4
- data/lib/messente_api/models/contact_fields.rb +23 -4
- data/lib/messente_api/models/contact_list_envelope.rb +14 -4
- data/lib/messente_api/models/contact_response_fields.rb +318 -0
- data/lib/messente_api/models/contact_update_fields.rb +22 -3
- data/lib/messente_api/models/delivery_report_response.rb +13 -3
- data/lib/messente_api/models/delivery_result.rb +13 -3
- data/lib/messente_api/models/error_code_omnichannel.rb +2 -2
- data/lib/messente_api/models/error_code_omnichannel_machine.rb +2 -2
- data/lib/messente_api/models/error_code_phonebook.rb +2 -2
- data/lib/messente_api/models/error_code_statistics.rb +2 -2
- data/lib/messente_api/models/error_item_number_lookup.rb +13 -3
- data/lib/messente_api/models/error_item_number_lookup_error.rb +13 -3
- data/lib/messente_api/models/error_item_omnichannel.rb +14 -8
- data/lib/messente_api/models/error_item_phonebook.rb +13 -3
- data/lib/messente_api/models/error_item_statistics.rb +13 -3
- data/lib/messente_api/models/error_number_lookup.rb +13 -3
- data/lib/messente_api/models/error_omnichannel.rb +13 -3
- data/lib/messente_api/models/error_phonebook.rb +13 -3
- data/lib/messente_api/models/error_statistics.rb +13 -3
- data/lib/messente_api/models/error_title_omnichannel.rb +2 -2
- data/lib/messente_api/models/error_title_phonebook.rb +2 -2
- data/lib/messente_api/models/fetch_blacklist_success.rb +13 -3
- data/lib/messente_api/models/group_envelope.rb +13 -3
- data/lib/messente_api/models/group_list_envelope.rb +13 -3
- data/lib/messente_api/models/group_name.rb +13 -3
- data/lib/messente_api/models/group_response_fields.rb +14 -3
- data/lib/messente_api/models/message_result.rb +13 -3
- data/lib/messente_api/models/mobile_network.rb +13 -3
- data/lib/messente_api/models/number_to_blacklist.rb +13 -3
- data/lib/messente_api/models/numbers_to_investigate.rb +13 -3
- data/lib/messente_api/models/omni_message_create_success_response.rb +13 -3
- data/lib/messente_api/models/omnimessage.rb +26 -7
- data/lib/messente_api/models/priority.rb +37 -0
- data/lib/messente_api/models/sms.rb +13 -3
- data/lib/messente_api/models/statistics_report.rb +13 -3
- data/lib/messente_api/models/statistics_report_settings.rb +14 -4
- data/lib/messente_api/models/statistics_report_success.rb +13 -3
- data/lib/messente_api/models/status.rb +2 -2
- data/lib/messente_api/models/sync_number_lookup_result.rb +20 -4
- data/lib/messente_api/models/sync_number_lookup_success.rb +13 -3
- data/lib/messente_api/models/telegram.rb +13 -3
- data/lib/messente_api/models/text_store.rb +2 -2
- data/lib/messente_api/models/viber.rb +13 -3
- data/lib/messente_api/models/whats_app.rb +13 -3
- data/lib/messente_api/models/whats_app_audio.rb +13 -3
- data/lib/messente_api/models/whats_app_document.rb +13 -3
- data/lib/messente_api/models/whats_app_image.rb +13 -3
- data/lib/messente_api/models/whats_app_text.rb +13 -3
- data/lib/messente_api/version.rb +3 -3
- data/messente_api.gemspec +2 -8
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +15 -132
- 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.
|
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.
|
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
|
-
|
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
|
@@ -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.
|
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.
|
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
|
-
|
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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -54,6 +54,12 @@ module MessenteApi
|
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
57
|
+
# List of attributes with nullable: true
|
58
|
+
def self.openapi_nullable
|
59
|
+
Set.new([
|
60
|
+
])
|
61
|
+
end
|
62
|
+
|
57
63
|
# Initializes the object
|
58
64
|
# @param [Hash] attributes Model attributes in the form of hash
|
59
65
|
def initialize(attributes = {})
|
@@ -218,7 +224,11 @@ module MessenteApi
|
|
218
224
|
hash = {}
|
219
225
|
self.class.attribute_map.each_pair do |attr, param|
|
220
226
|
value = self.send(attr)
|
221
|
-
|
227
|
+
if value.nil?
|
228
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
229
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
230
|
+
end
|
231
|
+
|
222
232
|
hash[param] = _to_hash(value)
|
223
233
|
end
|
224
234
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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 = {})
|
@@ -175,7 +181,11 @@ module MessenteApi
|
|
175
181
|
hash = {}
|
176
182
|
self.class.attribute_map.each_pair do |attr, param|
|
177
183
|
value = self.send(attr)
|
178
|
-
|
184
|
+
if value.nil?
|
185
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
186
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
187
|
+
end
|
188
|
+
|
179
189
|
hash[param] = _to_hash(value)
|
180
190
|
end
|
181
191
|
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.
|
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.
|
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 = {})
|
@@ -219,7 +225,11 @@ module MessenteApi
|
|
219
225
|
hash = {}
|
220
226
|
self.class.attribute_map.each_pair do |attr, param|
|
221
227
|
value = self.send(attr)
|
222
|
-
|
228
|
+
if value.nil?
|
229
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
230
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
231
|
+
end
|
232
|
+
|
223
233
|
hash[param] = _to_hash(value)
|
224
234
|
end
|
225
235
|
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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -45,6 +45,13 @@ module MessenteApi
|
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
48
|
+
# List of attributes with nullable: true
|
49
|
+
def self.openapi_nullable
|
50
|
+
Set.new([
|
51
|
+
:'source'
|
52
|
+
])
|
53
|
+
end
|
54
|
+
|
48
55
|
# Initializes the object
|
49
56
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
57
|
def initialize(attributes = {})
|
@@ -93,10 +100,6 @@ module MessenteApi
|
|
93
100
|
invalid_properties.push('invalid value for "code", code cannot be nil.')
|
94
101
|
end
|
95
102
|
|
96
|
-
if @source.nil?
|
97
|
-
invalid_properties.push('invalid value for "source", source cannot be nil.')
|
98
|
-
end
|
99
|
-
|
100
103
|
invalid_properties
|
101
104
|
end
|
102
105
|
|
@@ -106,7 +109,6 @@ module MessenteApi
|
|
106
109
|
return false if @title.nil?
|
107
110
|
return false if @detail.nil?
|
108
111
|
return false if @code.nil?
|
109
|
-
return false if @source.nil?
|
110
112
|
true
|
111
113
|
end
|
112
114
|
|
@@ -219,7 +221,11 @@ module MessenteApi
|
|
219
221
|
hash = {}
|
220
222
|
self.class.attribute_map.each_pair do |attr, param|
|
221
223
|
value = self.send(attr)
|
222
|
-
|
224
|
+
if value.nil?
|
225
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
226
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
227
|
+
end
|
228
|
+
|
223
229
|
hash[param] = _to_hash(value)
|
224
230
|
end
|
225
231
|
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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,6 +40,12 @@ module MessenteApi
|
|
40
40
|
}
|
41
41
|
end
|
42
42
|
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
43
49
|
# Initializes the object
|
44
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
45
51
|
def initialize(attributes = {})
|
@@ -204,7 +210,11 @@ module MessenteApi
|
|
204
210
|
hash = {}
|
205
211
|
self.class.attribute_map.each_pair do |attr, param|
|
206
212
|
value = self.send(attr)
|
207
|
-
|
213
|
+
if value.nil?
|
214
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
215
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
216
|
+
end
|
217
|
+
|
208
218
|
hash[param] = _to_hash(value)
|
209
219
|
end
|
210
220
|
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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -41,6 +41,12 @@ module MessenteApi
|
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
|
+
# List of attributes with nullable: true
|
45
|
+
def self.openapi_nullable
|
46
|
+
Set.new([
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
44
50
|
# Initializes the object
|
45
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
52
|
def initialize(attributes = {})
|
@@ -205,7 +211,11 @@ module MessenteApi
|
|
205
211
|
hash = {}
|
206
212
|
self.class.attribute_map.each_pair do |attr, param|
|
207
213
|
value = self.send(attr)
|
208
|
-
|
214
|
+
if value.nil?
|
215
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
216
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
217
|
+
end
|
218
|
+
|
209
219
|
hash[param] = _to_hash(value)
|
210
220
|
end
|
211
221
|
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.
|
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.
|
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
|
-
|
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.
|
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.
|
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
|
-
|
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
|