messente_api 2.4.0 → 2.5.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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +74 -0
  3. data/README.md +2 -2
  4. data/docs/BulkMessagingApi.md +1 -1
  5. data/docs/OmnimessageApi.md +1 -1
  6. data/docs/OmnimessageMessagesInner.md +46 -45
  7. data/docs/Rcs.md +32 -0
  8. data/docs/RcsCardContent.md +24 -0
  9. data/docs/RcsCardOrientation.md +15 -0
  10. data/docs/RcsCardWidth.md +15 -0
  11. data/docs/RcsCarouselCard.md +20 -0
  12. data/docs/RcsContentInfo.md +22 -0
  13. data/docs/RcsCreateCalendarEventAction.md +24 -0
  14. data/docs/RcsDialAction.md +18 -0
  15. data/docs/RcsImageAlignment.md +15 -0
  16. data/docs/RcsLatLng.md +20 -0
  17. data/docs/RcsMedia.md +20 -0
  18. data/docs/RcsMediaHeight.md +15 -0
  19. data/docs/RcsOpenUrlAction.md +24 -0
  20. data/docs/RcsOpenUrlApplication.md +15 -0
  21. data/docs/RcsRichCard.md +20 -0
  22. data/docs/RcsStandaloneCard.md +22 -0
  23. data/docs/RcsSuggestedAction.md +32 -0
  24. data/docs/RcsSuggestedReply.md +20 -0
  25. data/docs/RcsSuggestion.md +20 -0
  26. data/docs/RcsViewLocationAction.md +22 -0
  27. data/docs/RcsWebviewViewMode.md +15 -0
  28. data/docs/StatisticsReportSettings.md +1 -1
  29. data/lib/messente_api/api/account_balance_api.rb +1 -1
  30. data/lib/messente_api/api/blacklist_api.rb +1 -1
  31. data/lib/messente_api/api/bulk_messaging_api.rb +1 -1
  32. data/lib/messente_api/api/contacts_api.rb +1 -1
  33. data/lib/messente_api/api/delivery_report_api.rb +1 -1
  34. data/lib/messente_api/api/groups_api.rb +1 -1
  35. data/lib/messente_api/api/number_lookup_api.rb +1 -1
  36. data/lib/messente_api/api/number_verification_api.rb +1 -1
  37. data/lib/messente_api/api/omnimessage_api.rb +1 -1
  38. data/lib/messente_api/api/pricing_api.rb +1 -1
  39. data/lib/messente_api/api/statistics_api.rb +1 -1
  40. data/lib/messente_api/api/whats_app_templates_api.rb +1 -1
  41. data/lib/messente_api/api_client.rb +1 -1
  42. data/lib/messente_api/api_error.rb +1 -1
  43. data/lib/messente_api/configuration.rb +1 -1
  44. data/lib/messente_api/models/bulk_omni_message_create_success_response.rb +1 -1
  45. data/lib/messente_api/models/bulk_omni_message_create_success_response_messages_inner.rb +1 -1
  46. data/lib/messente_api/models/bulk_omnimessage.rb +1 -1
  47. data/lib/messente_api/models/channel.rb +3 -3
  48. data/lib/messente_api/models/contact_envelope.rb +1 -1
  49. data/lib/messente_api/models/contact_fields.rb +1 -1
  50. data/lib/messente_api/models/contact_list_envelope.rb +1 -1
  51. data/lib/messente_api/models/contact_response_fields.rb +1 -1
  52. data/lib/messente_api/models/contact_update_fields.rb +1 -1
  53. data/lib/messente_api/models/delivery_report_response.rb +1 -1
  54. data/lib/messente_api/models/delivery_result.rb +1 -1
  55. data/lib/messente_api/models/error_code_omnichannel.rb +1 -1
  56. data/lib/messente_api/models/error_code_omnichannel_machine.rb +1 -1
  57. data/lib/messente_api/models/error_code_phonebook.rb +1 -1
  58. data/lib/messente_api/models/error_code_statistics.rb +1 -1
  59. data/lib/messente_api/models/error_item_number_lookup.rb +1 -1
  60. data/lib/messente_api/models/error_item_number_lookup_error.rb +1 -1
  61. data/lib/messente_api/models/error_item_omnichannel.rb +1 -1
  62. data/lib/messente_api/models/error_item_phonebook.rb +1 -1
  63. data/lib/messente_api/models/error_item_statistics.rb +1 -1
  64. data/lib/messente_api/models/error_number_lookup.rb +1 -1
  65. data/lib/messente_api/models/error_omnichannel.rb +1 -1
  66. data/lib/messente_api/models/error_phonebook.rb +1 -1
  67. data/lib/messente_api/models/error_statistics.rb +1 -1
  68. data/lib/messente_api/models/error_title_omnichannel.rb +1 -1
  69. data/lib/messente_api/models/error_title_phonebook.rb +1 -1
  70. data/lib/messente_api/models/fetch_blacklist_success.rb +1 -1
  71. data/lib/messente_api/models/group_envelope.rb +1 -1
  72. data/lib/messente_api/models/group_list_envelope.rb +1 -1
  73. data/lib/messente_api/models/group_name.rb +1 -1
  74. data/lib/messente_api/models/group_response_fields.rb +1 -1
  75. data/lib/messente_api/models/message_result.rb +1 -1
  76. data/lib/messente_api/models/mobile_network.rb +1 -1
  77. data/lib/messente_api/models/number_to_blacklist.rb +1 -1
  78. data/lib/messente_api/models/numbers_to_investigate.rb +1 -1
  79. data/lib/messente_api/models/omni_message_create_success_response.rb +1 -1
  80. data/lib/messente_api/models/omnimessage.rb +1 -1
  81. data/lib/messente_api/models/omnimessage_messages_inner.rb +9 -10
  82. data/lib/messente_api/models/price.rb +1 -1
  83. data/lib/messente_api/models/price_info.rb +1 -1
  84. data/lib/messente_api/models/price_networks_inner.rb +1 -1
  85. data/lib/messente_api/models/priority.rb +1 -1
  86. data/lib/messente_api/models/{telegram.rb → rcs.rb} +98 -43
  87. data/lib/messente_api/models/rcs_card_content.rb +298 -0
  88. data/lib/messente_api/models/rcs_card_orientation.rb +40 -0
  89. data/lib/messente_api/models/rcs_card_width.rb +40 -0
  90. data/lib/messente_api/models/rcs_carousel_card.rb +291 -0
  91. data/lib/messente_api/models/rcs_content_info.rb +251 -0
  92. data/lib/messente_api/models/rcs_create_calendar_event_action.rb +312 -0
  93. data/lib/messente_api/models/rcs_dial_action.rb +223 -0
  94. data/lib/messente_api/models/rcs_image_alignment.rb +40 -0
  95. data/lib/messente_api/models/rcs_lat_lng.rb +240 -0
  96. data/lib/messente_api/models/rcs_media.rb +260 -0
  97. data/lib/messente_api/models/rcs_media_height.rb +41 -0
  98. data/lib/messente_api/models/rcs_open_url_action.rb +299 -0
  99. data/lib/messente_api/models/rcs_open_url_application.rb +40 -0
  100. data/lib/messente_api/models/rcs_rich_card.rb +224 -0
  101. data/lib/messente_api/models/rcs_standalone_card.rb +276 -0
  102. data/lib/messente_api/models/rcs_suggested_action.rb +350 -0
  103. data/lib/messente_api/models/rcs_suggested_reply.rb +278 -0
  104. data/lib/messente_api/models/rcs_suggestion.rb +224 -0
  105. data/lib/messente_api/models/rcs_view_location_action.rb +237 -0
  106. data/lib/messente_api/models/rcs_webview_view_mode.rb +41 -0
  107. data/lib/messente_api/models/sms.rb +1 -1
  108. data/lib/messente_api/models/statistics_report.rb +1 -1
  109. data/lib/messente_api/models/statistics_report_settings.rb +2 -2
  110. data/lib/messente_api/models/statistics_report_success.rb +1 -1
  111. data/lib/messente_api/models/status.rb +1 -1
  112. data/lib/messente_api/models/sync_number_lookup_result.rb +1 -1
  113. data/lib/messente_api/models/sync_number_lookup_success.rb +1 -1
  114. data/lib/messente_api/models/text_store.rb +1 -1
  115. data/lib/messente_api/models/viber.rb +1 -1
  116. data/lib/messente_api/models/viber_video.rb +1 -1
  117. data/lib/messente_api/models/whats_app.rb +1 -1
  118. data/lib/messente_api/models/whats_app_audio.rb +1 -1
  119. data/lib/messente_api/models/whats_app_component.rb +1 -1
  120. data/lib/messente_api/models/whats_app_currency.rb +1 -1
  121. data/lib/messente_api/models/whats_app_datetime.rb +1 -1
  122. data/lib/messente_api/models/whats_app_document.rb +1 -1
  123. data/lib/messente_api/models/whats_app_image.rb +1 -1
  124. data/lib/messente_api/models/whats_app_language.rb +1 -1
  125. data/lib/messente_api/models/whats_app_media.rb +1 -1
  126. data/lib/messente_api/models/whats_app_parameter.rb +1 -1
  127. data/lib/messente_api/models/whats_app_sticker.rb +1 -1
  128. data/lib/messente_api/models/whats_app_template.rb +1 -1
  129. data/lib/messente_api/models/whats_app_text.rb +1 -1
  130. data/lib/messente_api/models/whats_app_video.rb +1 -1
  131. data/lib/messente_api/models/whatsapp_button_type.rb +1 -1
  132. data/lib/messente_api/models/whatsapp_component_type.rb +1 -1
  133. data/lib/messente_api/models/whatsapp_create_template_request.rb +1 -1
  134. data/lib/messente_api/models/whatsapp_create_template_response.rb +1 -1
  135. data/lib/messente_api/models/whatsapp_header_format.rb +1 -1
  136. data/lib/messente_api/models/whatsapp_list_templates_response.rb +1 -1
  137. data/lib/messente_api/models/whatsapp_otp_button_type.rb +1 -1
  138. data/lib/messente_api/models/whatsapp_pagination.rb +1 -1
  139. data/lib/messente_api/models/whatsapp_paging_cursors.rb +1 -1
  140. data/lib/messente_api/models/whatsapp_supported_app.rb +1 -1
  141. data/lib/messente_api/models/whatsapp_template_button.rb +1 -1
  142. data/lib/messente_api/models/whatsapp_template_category.rb +1 -1
  143. data/lib/messente_api/models/whatsapp_template_component.rb +1 -1
  144. data/lib/messente_api/models/whatsapp_template_example.rb +1 -1
  145. data/lib/messente_api/models/whatsapp_template_response.rb +1 -1
  146. data/lib/messente_api/models/whatsapp_template_status.rb +1 -1
  147. data/lib/messente_api/models/whatsapp_update_template_request.rb +1 -1
  148. data/lib/messente_api/version.rb +2 -2
  149. data/lib/messente_api.rb +22 -2
  150. data/messente_api.gemspec +2 -2
  151. data/spec/spec_helper.rb +1 -1
  152. metadata +51 -10
  153. data/docs/Telegram.md +0 -30
@@ -0,0 +1,224 @@
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 and WhatsApp 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: 2.0.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.11.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MessenteApi
17
+ # Exactly one of reply or action must be provided
18
+ class RcsSuggestion
19
+ attr_accessor :reply
20
+
21
+ attr_accessor :action
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'reply' => :'reply',
27
+ :'action' => :'action'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'reply' => :'RcsSuggestedReply',
40
+ :'action' => :'RcsSuggestedAction'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MessenteApi::RcsSuggestion` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MessenteApi::RcsSuggestion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'reply')
66
+ self.reply = attributes[:'reply']
67
+ end
68
+
69
+ if attributes.key?(:'action')
70
+ self.action = attributes[:'action']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ warn '[DEPRECATED] the `valid?` method is obsolete'
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ reply == o.reply &&
95
+ action == o.action
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [reply, action].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ attributes = attributes.transform_keys(&:to_sym)
116
+ transformed_hash = {}
117
+ openapi_types.each_pair do |key, type|
118
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
119
+ transformed_hash["#{key}"] = nil
120
+ elsif type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[attribute_map[key]].is_a?(Array)
124
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
125
+ end
126
+ elsif !attributes[attribute_map[key]].nil?
127
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
128
+ end
129
+ end
130
+ new(transformed_hash)
131
+ end
132
+
133
+ # Deserializes the data based on type
134
+ # @param string type Data type
135
+ # @param string value Value to be deserialized
136
+ # @return [Object] Deserialized data
137
+ def self._deserialize(type, value)
138
+ case type.to_sym
139
+ when :Time
140
+ Time.parse(value)
141
+ when :Date
142
+ Date.parse(value)
143
+ when :String
144
+ value.to_s
145
+ when :Integer
146
+ value.to_i
147
+ when :Float
148
+ value.to_f
149
+ when :Boolean
150
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
151
+ true
152
+ else
153
+ false
154
+ end
155
+ when :Object
156
+ # generic object (usually a Hash), return directly
157
+ value
158
+ when /\AArray<(?<inner_type>.+)>\z/
159
+ inner_type = Regexp.last_match[:inner_type]
160
+ value.map { |v| _deserialize(inner_type, v) }
161
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
162
+ k_type = Regexp.last_match[:k_type]
163
+ v_type = Regexp.last_match[:v_type]
164
+ {}.tap do |hash|
165
+ value.each do |k, v|
166
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
167
+ end
168
+ end
169
+ else # model
170
+ # models (e.g. Pet) or oneOf
171
+ klass = MessenteApi.const_get(type)
172
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
173
+ end
174
+ end
175
+
176
+ # Returns the string representation of the object
177
+ # @return [String] String presentation of the object
178
+ def to_s
179
+ to_hash.to_s
180
+ end
181
+
182
+ # to_body is an alias to to_hash (backward compatibility)
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_body
185
+ to_hash
186
+ end
187
+
188
+ # Returns the object in the form of hash
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_hash
191
+ hash = {}
192
+ self.class.attribute_map.each_pair do |attr, param|
193
+ value = self.send(attr)
194
+ if value.nil?
195
+ is_nullable = self.class.openapi_nullable.include?(attr)
196
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
197
+ end
198
+
199
+ hash[param] = _to_hash(value)
200
+ end
201
+ hash
202
+ end
203
+
204
+ # Outputs non-array value in the form of hash
205
+ # For object, use to_hash. Otherwise, just return the value
206
+ # @param [Object] value Any valid value
207
+ # @return [Hash] Returns the value in the form of hash
208
+ def _to_hash(value)
209
+ if value.is_a?(Array)
210
+ value.compact.map { |v| _to_hash(v) }
211
+ elsif value.is_a?(Hash)
212
+ {}.tap do |hash|
213
+ value.each { |k, v| hash[k] = _to_hash(v) }
214
+ end
215
+ elsif value.respond_to? :to_hash
216
+ value.to_hash
217
+ else
218
+ value
219
+ end
220
+ end
221
+
222
+ end
223
+
224
+ end
@@ -0,0 +1,237 @@
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 and WhatsApp 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: 2.0.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.11.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MessenteApi
17
+ # Action to view a location on a map.
18
+ class RcsViewLocationAction
19
+ attr_accessor :lat_long
20
+
21
+ # The label of the pin dropped at latLong.
22
+ attr_accessor :label
23
+
24
+ # (Optional, only supported on Android Messages clients) Instead of specifying a latLong (and optionally, a label), the agent can specify a query string. For default map apps that support search functionality (including Google Maps), tapping this suggested action results in a location search centered around the user's current location. For instance, setting the query string to \"Growing Tree Bank\" will show all Growing Tree Bank locations in the user's vicinity. Setting the query string to \"1600 Amphitheater Parkway, Mountain View, CA 94043\" will select that specific address, regardless of the user's location.
25
+ attr_accessor :query
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'lat_long' => :'lat_long',
31
+ :'label' => :'label',
32
+ :'query' => :'query'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'lat_long' => :'RcsLatLng',
45
+ :'label' => :'String',
46
+ :'query' => :'String'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ :'label',
54
+ :'query'
55
+ ])
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ if (!attributes.is_a?(Hash))
62
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MessenteApi::RcsViewLocationAction` initialize method"
63
+ end
64
+
65
+ # check to see if the attribute exists and convert string to symbol for hash key
66
+ attributes = attributes.each_with_object({}) { |(k, v), h|
67
+ if (!self.class.attribute_map.key?(k.to_sym))
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MessenteApi::RcsViewLocationAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ end
70
+ h[k.to_sym] = v
71
+ }
72
+
73
+ if attributes.key?(:'lat_long')
74
+ self.lat_long = attributes[:'lat_long']
75
+ end
76
+
77
+ if attributes.key?(:'label')
78
+ self.label = attributes[:'label']
79
+ end
80
+
81
+ if attributes.key?(:'query')
82
+ self.query = attributes[:'query']
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
90
+ invalid_properties = Array.new
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ warn '[DEPRECATED] the `valid?` method is obsolete'
98
+ true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(o)
104
+ return true if self.equal?(o)
105
+ self.class == o.class &&
106
+ lat_long == o.lat_long &&
107
+ label == o.label &&
108
+ query == o.query
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [lat_long, label, query].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ transformed_hash = {}
130
+ openapi_types.each_pair do |key, type|
131
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = nil
133
+ elsif type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[attribute_map[key]].is_a?(Array)
137
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
138
+ end
139
+ elsif !attributes[attribute_map[key]].nil?
140
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
141
+ end
142
+ end
143
+ new(transformed_hash)
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def self._deserialize(type, value)
151
+ case type.to_sym
152
+ when :Time
153
+ Time.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :Boolean
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ # models (e.g. Pet) or oneOf
184
+ klass = MessenteApi.const_get(type)
185
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
186
+ end
187
+ end
188
+
189
+ # Returns the string representation of the object
190
+ # @return [String] String presentation of the object
191
+ def to_s
192
+ to_hash.to_s
193
+ end
194
+
195
+ # to_body is an alias to to_hash (backward compatibility)
196
+ # @return [Hash] Returns the object in the form of hash
197
+ def to_body
198
+ to_hash
199
+ end
200
+
201
+ # Returns the object in the form of hash
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_hash
204
+ hash = {}
205
+ self.class.attribute_map.each_pair do |attr, param|
206
+ value = self.send(attr)
207
+ if value.nil?
208
+ is_nullable = self.class.openapi_nullable.include?(attr)
209
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
+ end
211
+
212
+ hash[param] = _to_hash(value)
213
+ end
214
+ hash
215
+ end
216
+
217
+ # Outputs non-array value in the form of hash
218
+ # For object, use to_hash. Otherwise, just return the value
219
+ # @param [Object] value Any valid value
220
+ # @return [Hash] Returns the value in the form of hash
221
+ def _to_hash(value)
222
+ if value.is_a?(Array)
223
+ value.compact.map { |v| _to_hash(v) }
224
+ elsif value.is_a?(Hash)
225
+ {}.tap do |hash|
226
+ value.each { |k, v| hash[k] = _to_hash(v) }
227
+ end
228
+ elsif value.respond_to? :to_hash
229
+ value.to_hash
230
+ else
231
+ value
232
+ end
233
+ end
234
+
235
+ end
236
+
237
+ end
@@ -0,0 +1,41 @@
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 and WhatsApp 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: 2.0.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.11.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MessenteApi
17
+ class RcsWebviewViewMode
18
+ FULL = "FULL".freeze
19
+ HALF = "HALF".freeze
20
+ TALL = "TALL".freeze
21
+
22
+ def self.all_vars
23
+ @all_vars ||= [FULL, HALF, TALL].freeze
24
+ end
25
+
26
+ # Builds the enum from string
27
+ # @param [String] The enum value in the form of the string
28
+ # @return [String] The enum value
29
+ def self.build_from_hash(value)
30
+ new.build_from_hash(value)
31
+ end
32
+
33
+ # Builds the enum from string
34
+ # @param [String] The enum value in the form of the string
35
+ # @return [String] The enum value
36
+ def build_from_hash(value)
37
+ return value if RcsWebviewViewMode.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #RcsWebviewViewMode"
39
+ end
40
+ end
41
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -22,7 +22,7 @@ module MessenteApi
22
22
  # End date for the report
23
23
  attr_accessor :end_date
24
24
 
25
- # Optional list of message types (sms, viber, whatsapp, hlr, telegram)
25
+ # Optional list of message types (sms, viber, whatsapp, rcs, hlr)
26
26
  attr_accessor :message_types
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #Messente API
3
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.
4
+ #[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber and WhatsApp 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
6
  The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com