messente_api 2.4.1 → 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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +13 -13
  3. data/README.md +1 -1
  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/models/channel.rb +2 -2
  30. data/lib/messente_api/models/omnimessage_messages_inner.rb +8 -9
  31. data/lib/messente_api/models/{telegram.rb → rcs.rb} +97 -42
  32. data/lib/messente_api/models/rcs_card_content.rb +298 -0
  33. data/lib/messente_api/models/rcs_card_orientation.rb +40 -0
  34. data/lib/messente_api/models/rcs_card_width.rb +40 -0
  35. data/lib/messente_api/models/rcs_carousel_card.rb +291 -0
  36. data/lib/messente_api/models/rcs_content_info.rb +251 -0
  37. data/lib/messente_api/models/rcs_create_calendar_event_action.rb +312 -0
  38. data/lib/messente_api/models/rcs_dial_action.rb +223 -0
  39. data/lib/messente_api/models/rcs_image_alignment.rb +40 -0
  40. data/lib/messente_api/models/rcs_lat_lng.rb +240 -0
  41. data/lib/messente_api/models/rcs_media.rb +260 -0
  42. data/lib/messente_api/models/rcs_media_height.rb +41 -0
  43. data/lib/messente_api/models/rcs_open_url_action.rb +299 -0
  44. data/lib/messente_api/models/rcs_open_url_application.rb +40 -0
  45. data/lib/messente_api/models/rcs_rich_card.rb +224 -0
  46. data/lib/messente_api/models/rcs_standalone_card.rb +276 -0
  47. data/lib/messente_api/models/rcs_suggested_action.rb +350 -0
  48. data/lib/messente_api/models/rcs_suggested_reply.rb +278 -0
  49. data/lib/messente_api/models/rcs_suggestion.rb +224 -0
  50. data/lib/messente_api/models/rcs_view_location_action.rb +237 -0
  51. data/lib/messente_api/models/rcs_webview_view_mode.rb +41 -0
  52. data/lib/messente_api/models/statistics_report_settings.rb +1 -1
  53. data/lib/messente_api/version.rb +1 -1
  54. data/lib/messente_api.rb +21 -1
  55. metadata +44 -4
  56. data/docs/Telegram.md +0 -30
@@ -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
@@ -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.
@@ -11,5 +11,5 @@ Generator version: 7.11.0
11
11
  =end
12
12
 
13
13
  module MessenteApi
14
- VERSION = '2.4.1'
14
+ VERSION = '2.5.0'
15
15
  end
data/lib/messente_api.rb CHANGED
@@ -59,6 +59,27 @@ require 'messente_api/models/price'
59
59
  require 'messente_api/models/price_info'
60
60
  require 'messente_api/models/price_networks_inner'
61
61
  require 'messente_api/models/priority'
62
+ require 'messente_api/models/rcs'
63
+ require 'messente_api/models/rcs_card_content'
64
+ require 'messente_api/models/rcs_card_orientation'
65
+ require 'messente_api/models/rcs_card_width'
66
+ require 'messente_api/models/rcs_carousel_card'
67
+ require 'messente_api/models/rcs_content_info'
68
+ require 'messente_api/models/rcs_create_calendar_event_action'
69
+ require 'messente_api/models/rcs_dial_action'
70
+ require 'messente_api/models/rcs_image_alignment'
71
+ require 'messente_api/models/rcs_lat_lng'
72
+ require 'messente_api/models/rcs_media'
73
+ require 'messente_api/models/rcs_media_height'
74
+ require 'messente_api/models/rcs_open_url_action'
75
+ require 'messente_api/models/rcs_open_url_application'
76
+ require 'messente_api/models/rcs_rich_card'
77
+ require 'messente_api/models/rcs_standalone_card'
78
+ require 'messente_api/models/rcs_suggested_action'
79
+ require 'messente_api/models/rcs_suggested_reply'
80
+ require 'messente_api/models/rcs_suggestion'
81
+ require 'messente_api/models/rcs_view_location_action'
82
+ require 'messente_api/models/rcs_webview_view_mode'
62
83
  require 'messente_api/models/sms'
63
84
  require 'messente_api/models/statistics_report'
64
85
  require 'messente_api/models/statistics_report_settings'
@@ -66,7 +87,6 @@ require 'messente_api/models/statistics_report_success'
66
87
  require 'messente_api/models/status'
67
88
  require 'messente_api/models/sync_number_lookup_result'
68
89
  require 'messente_api/models/sync_number_lookup_success'
69
- require 'messente_api/models/telegram'
70
90
  require 'messente_api/models/text_store'
71
91
  require 'messente_api/models/viber'
72
92
  require 'messente_api/models/viber_video'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messente_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Messente
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-01 00:00:00.000000000 Z
11
+ date: 2026-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -118,6 +118,27 @@ files:
118
118
  - docs/PriceNetworksInner.md
119
119
  - docs/PricingApi.md
120
120
  - docs/Priority.md
121
+ - docs/Rcs.md
122
+ - docs/RcsCardContent.md
123
+ - docs/RcsCardOrientation.md
124
+ - docs/RcsCardWidth.md
125
+ - docs/RcsCarouselCard.md
126
+ - docs/RcsContentInfo.md
127
+ - docs/RcsCreateCalendarEventAction.md
128
+ - docs/RcsDialAction.md
129
+ - docs/RcsImageAlignment.md
130
+ - docs/RcsLatLng.md
131
+ - docs/RcsMedia.md
132
+ - docs/RcsMediaHeight.md
133
+ - docs/RcsOpenUrlAction.md
134
+ - docs/RcsOpenUrlApplication.md
135
+ - docs/RcsRichCard.md
136
+ - docs/RcsStandaloneCard.md
137
+ - docs/RcsSuggestedAction.md
138
+ - docs/RcsSuggestedReply.md
139
+ - docs/RcsSuggestion.md
140
+ - docs/RcsViewLocationAction.md
141
+ - docs/RcsWebviewViewMode.md
121
142
  - docs/SMS.md
122
143
  - docs/StatisticsApi.md
123
144
  - docs/StatisticsReport.md
@@ -126,7 +147,6 @@ files:
126
147
  - docs/Status.md
127
148
  - docs/SyncNumberLookupResult.md
128
149
  - docs/SyncNumberLookupSuccess.md
129
- - docs/Telegram.md
130
150
  - docs/TextStore.md
131
151
  - docs/Viber.md
132
152
  - docs/ViberVideo.md
@@ -221,6 +241,27 @@ files:
221
241
  - lib/messente_api/models/price_info.rb
222
242
  - lib/messente_api/models/price_networks_inner.rb
223
243
  - lib/messente_api/models/priority.rb
244
+ - lib/messente_api/models/rcs.rb
245
+ - lib/messente_api/models/rcs_card_content.rb
246
+ - lib/messente_api/models/rcs_card_orientation.rb
247
+ - lib/messente_api/models/rcs_card_width.rb
248
+ - lib/messente_api/models/rcs_carousel_card.rb
249
+ - lib/messente_api/models/rcs_content_info.rb
250
+ - lib/messente_api/models/rcs_create_calendar_event_action.rb
251
+ - lib/messente_api/models/rcs_dial_action.rb
252
+ - lib/messente_api/models/rcs_image_alignment.rb
253
+ - lib/messente_api/models/rcs_lat_lng.rb
254
+ - lib/messente_api/models/rcs_media.rb
255
+ - lib/messente_api/models/rcs_media_height.rb
256
+ - lib/messente_api/models/rcs_open_url_action.rb
257
+ - lib/messente_api/models/rcs_open_url_application.rb
258
+ - lib/messente_api/models/rcs_rich_card.rb
259
+ - lib/messente_api/models/rcs_standalone_card.rb
260
+ - lib/messente_api/models/rcs_suggested_action.rb
261
+ - lib/messente_api/models/rcs_suggested_reply.rb
262
+ - lib/messente_api/models/rcs_suggestion.rb
263
+ - lib/messente_api/models/rcs_view_location_action.rb
264
+ - lib/messente_api/models/rcs_webview_view_mode.rb
224
265
  - lib/messente_api/models/sms.rb
225
266
  - lib/messente_api/models/statistics_report.rb
226
267
  - lib/messente_api/models/statistics_report_settings.rb
@@ -228,7 +269,6 @@ files:
228
269
  - lib/messente_api/models/status.rb
229
270
  - lib/messente_api/models/sync_number_lookup_result.rb
230
271
  - lib/messente_api/models/sync_number_lookup_success.rb
231
- - lib/messente_api/models/telegram.rb
232
272
  - lib/messente_api/models/text_store.rb
233
273
  - lib/messente_api/models/viber.rb
234
274
  - lib/messente_api/models/viber_video.rb
data/docs/Telegram.md DELETED
@@ -1,30 +0,0 @@
1
- # MessenteApi::Telegram
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **sender** | **String** | Phone number or alphanumeric sender name | [optional] |
8
- | **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] |
9
- | **text** | **String** | Plaintext content for Telegram | [optional] |
10
- | **image_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;document_url\&quot; and \&quot;audio_url\&quot; | [optional] |
11
- | **document_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;audio_url\&quot; and \&quot;image_url\&quot; | [optional] |
12
- | **audio_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;document_url\&quot; and \&quot;image_url\&quot; | [optional] |
13
- | **channel** | **String** | The channel used to deliver the message | [optional][default to &#39;telegram&#39;] |
14
-
15
- ## Example
16
-
17
- ```ruby
18
- require 'messente_api'
19
-
20
- instance = MessenteApi::Telegram.new(
21
- sender: null,
22
- validity: 360,
23
- text: null,
24
- image_url: null,
25
- document_url: null,
26
- audio_url: null,
27
- channel: null
28
- )
29
- ```
30
-