messente_api 1.4.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +33 -30
  3. data/docs/BlacklistApi.md +105 -37
  4. data/docs/BulkMessagingApi.md +76 -0
  5. data/docs/BulkOmniMessageCreateSuccessResponse.md +18 -0
  6. data/docs/BulkOmniMessageCreateSuccessResponseMessagesInner.md +49 -0
  7. data/docs/BulkOmnimessage.md +18 -0
  8. data/docs/Channel.md +4 -5
  9. data/docs/ContactEnvelope.md +8 -7
  10. data/docs/ContactFields.md +26 -25
  11. data/docs/ContactListEnvelope.md +8 -7
  12. data/docs/ContactResponseFields.md +28 -27
  13. data/docs/ContactUpdateFields.md +24 -23
  14. data/docs/ContactsApi.md +221 -86
  15. data/docs/DeliveryReportApi.md +29 -13
  16. data/docs/DeliveryReportResponse.md +12 -11
  17. data/docs/DeliveryResult.md +22 -17
  18. data/docs/ErrorCodeOmnichannel.md +4 -5
  19. data/docs/ErrorCodeOmnichannelMachine.md +4 -5
  20. data/docs/ErrorCodePhonebook.md +4 -5
  21. data/docs/ErrorCodeStatistics.md +4 -5
  22. data/docs/ErrorItemNumberLookup.md +8 -7
  23. data/docs/ErrorItemNumberLookupError.md +10 -9
  24. data/docs/ErrorItemOmnichannel.md +14 -13
  25. data/docs/ErrorItemPhonebook.md +12 -11
  26. data/docs/ErrorItemStatistics.md +12 -11
  27. data/docs/ErrorNumberLookup.md +8 -7
  28. data/docs/ErrorOmnichannel.md +8 -7
  29. data/docs/ErrorPhonebook.md +8 -7
  30. data/docs/ErrorStatistics.md +8 -7
  31. data/docs/ErrorTitleOmnichannel.md +4 -5
  32. data/docs/ErrorTitlePhonebook.md +4 -5
  33. data/docs/FetchBlacklistSuccess.md +8 -7
  34. data/docs/GroupEnvelope.md +8 -7
  35. data/docs/GroupListEnvelope.md +8 -7
  36. data/docs/GroupName.md +8 -7
  37. data/docs/GroupResponseFields.md +14 -13
  38. data/docs/GroupsApi.md +136 -51
  39. data/docs/MessageResult.md +12 -11
  40. data/docs/MobileNetwork.md +16 -15
  41. data/docs/NumberLookupApi.md +30 -14
  42. data/docs/NumberToBlacklist.md +8 -7
  43. data/docs/NumbersToInvestigate.md +8 -7
  44. data/docs/OmniMessageCreateSuccessResponse.md +12 -11
  45. data/docs/Omnimessage.md +18 -17
  46. data/docs/OmnimessageApi.md +56 -23
  47. data/docs/OmnimessageMessagesInner.md +53 -0
  48. data/docs/PriceInfo.md +22 -0
  49. data/docs/Priority.md +4 -5
  50. data/docs/SMS.md +20 -17
  51. data/docs/StatisticsApi.md +30 -14
  52. data/docs/StatisticsReport.md +12 -11
  53. data/docs/StatisticsReportSettings.md +12 -11
  54. data/docs/StatisticsReportSuccess.md +8 -7
  55. data/docs/Status.md +4 -5
  56. data/docs/SyncNumberLookupResult.md +24 -23
  57. data/docs/SyncNumberLookupSuccess.md +10 -9
  58. data/docs/Telegram.md +20 -19
  59. data/docs/TextStore.md +4 -5
  60. data/docs/Viber.md +22 -19
  61. data/docs/WhatsApp.md +16 -19
  62. data/docs/WhatsAppComponent.md +24 -0
  63. data/docs/WhatsAppCurrency.md +22 -0
  64. data/docs/WhatsAppDatetime.md +18 -0
  65. data/docs/WhatsAppLanguage.md +20 -0
  66. data/docs/WhatsAppMedia.md +24 -0
  67. data/docs/WhatsAppParameter.md +30 -0
  68. data/docs/WhatsAppTemplate.md +22 -0
  69. data/git_push.sh +3 -4
  70. data/lib/messente_api/api/blacklist_api.rb +22 -15
  71. data/lib/messente_api/api/bulk_messaging_api.rb +88 -0
  72. data/lib/messente_api/api/contacts_api.rb +42 -28
  73. data/lib/messente_api/api/delivery_report_api.rb +6 -5
  74. data/lib/messente_api/api/groups_api.rb +30 -19
  75. data/lib/messente_api/api/number_lookup_api.rb +10 -6
  76. data/lib/messente_api/api/omnimessage_api.rb +14 -9
  77. data/lib/messente_api/api/statistics_api.rb +10 -6
  78. data/lib/messente_api/api_client.rb +72 -66
  79. data/lib/messente_api/api_error.rb +3 -2
  80. data/lib/messente_api/configuration.rb +64 -14
  81. data/lib/messente_api/models/{whats_app_audio.rb → bulk_omni_message_create_success_response.rb} +50 -38
  82. data/lib/messente_api/models/bulk_omni_message_create_success_response_messages_inner.rb +105 -0
  83. data/lib/messente_api/models/{whats_app_text.rb → bulk_omnimessage.rb} +49 -49
  84. data/lib/messente_api/models/channel.rb +9 -5
  85. data/lib/messente_api/models/contact_envelope.rb +31 -23
  86. data/lib/messente_api/models/contact_fields.rb +33 -23
  87. data/lib/messente_api/models/contact_list_envelope.rb +41 -23
  88. data/lib/messente_api/models/contact_response_fields.rb +31 -23
  89. data/lib/messente_api/models/contact_update_fields.rb +31 -23
  90. data/lib/messente_api/models/delivery_report_response.rb +37 -23
  91. data/lib/messente_api/models/delivery_result.rb +77 -27
  92. data/lib/messente_api/models/error_code_omnichannel.rb +9 -5
  93. data/lib/messente_api/models/error_code_omnichannel_machine.rb +9 -5
  94. data/lib/messente_api/models/error_code_phonebook.rb +9 -5
  95. data/lib/messente_api/models/error_code_statistics.rb +9 -5
  96. data/lib/messente_api/models/error_item_number_lookup.rb +33 -23
  97. data/lib/messente_api/models/error_item_number_lookup_error.rb +35 -23
  98. data/lib/messente_api/models/error_item_omnichannel.rb +61 -23
  99. data/lib/messente_api/models/error_item_phonebook.rb +59 -23
  100. data/lib/messente_api/models/error_item_statistics.rb +59 -23
  101. data/lib/messente_api/models/error_number_lookup.rb +33 -23
  102. data/lib/messente_api/models/error_omnichannel.rb +33 -23
  103. data/lib/messente_api/models/error_phonebook.rb +33 -23
  104. data/lib/messente_api/models/error_statistics.rb +33 -23
  105. data/lib/messente_api/models/error_title_omnichannel.rb +9 -5
  106. data/lib/messente_api/models/error_title_phonebook.rb +9 -5
  107. data/lib/messente_api/models/fetch_blacklist_success.rb +41 -23
  108. data/lib/messente_api/models/group_envelope.rb +31 -23
  109. data/lib/messente_api/models/group_list_envelope.rb +41 -23
  110. data/lib/messente_api/models/group_name.rb +33 -23
  111. data/lib/messente_api/models/group_response_fields.rb +37 -23
  112. data/lib/messente_api/models/message_result.rb +59 -23
  113. data/lib/messente_api/models/mobile_network.rb +31 -23
  114. data/lib/messente_api/models/number_to_blacklist.rb +33 -23
  115. data/lib/messente_api/models/numbers_to_investigate.rb +62 -24
  116. data/lib/messente_api/models/omni_message_create_success_response.rb +37 -23
  117. data/lib/messente_api/models/omnimessage.rb +59 -25
  118. data/lib/messente_api/models/omnimessage_messages_inner.rb +107 -0
  119. data/lib/messente_api/models/price_info.rb +257 -0
  120. data/lib/messente_api/models/priority.rb +9 -5
  121. data/lib/messente_api/models/sms.rb +45 -25
  122. data/lib/messente_api/models/statistics_report.rb +37 -23
  123. data/lib/messente_api/models/statistics_report_settings.rb +35 -23
  124. data/lib/messente_api/models/statistics_report_success.rb +33 -23
  125. data/lib/messente_api/models/status.rb +9 -5
  126. data/lib/messente_api/models/sync_number_lookup_result.rb +35 -24
  127. data/lib/messente_api/models/sync_number_lookup_success.rb +35 -23
  128. data/lib/messente_api/models/telegram.rb +31 -23
  129. data/lib/messente_api/models/text_store.rb +9 -5
  130. data/lib/messente_api/models/viber.rb +43 -25
  131. data/lib/messente_api/models/whats_app.rb +45 -54
  132. data/lib/messente_api/models/whats_app_component.rb +255 -0
  133. data/lib/messente_api/models/whats_app_currency.rb +257 -0
  134. data/lib/messente_api/models/{whats_app_document.rb → whats_app_datetime.rb} +48 -48
  135. data/lib/messente_api/models/{whats_app_image.rb → whats_app_language.rb} +55 -45
  136. data/lib/messente_api/models/whats_app_media.rb +246 -0
  137. data/lib/messente_api/models/whats_app_parameter.rb +278 -0
  138. data/lib/messente_api/models/whats_app_template.rb +251 -0
  139. data/lib/messente_api/version.rb +3 -3
  140. data/lib/messente_api.rb +15 -6
  141. data/messente_api.gemspec +5 -5
  142. data/spec/spec_helper.rb +2 -2
  143. metadata +33 -39
  144. data/docs/WhatsAppAudio.md +0 -17
  145. data/docs/WhatsAppDocument.md +0 -19
  146. data/docs/WhatsAppImage.md +0 -19
  147. data/docs/WhatsAppText.md +0 -19
  148. data/spec/api_client_spec.rb +0 -226
  149. data/spec/configuration_spec.rb +0 -42
@@ -0,0 +1,251 @@
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: 2.0.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.6.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MessenteApi
17
+ # Whatsapp Cloud API template
18
+ class WhatsAppTemplate
19
+ # Name of the template
20
+ attr_accessor :name
21
+
22
+ attr_accessor :language
23
+
24
+ # List of template components
25
+ attr_accessor :components
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'name' => :'name',
31
+ :'language' => :'language',
32
+ :'components' => :'components'
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
+ :'name' => :'String',
45
+ :'language' => :'WhatsAppLanguage',
46
+ :'components' => :'Array<WhatsAppComponent>'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MessenteApi::WhatsAppTemplate` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MessenteApi::WhatsAppTemplate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'name')
72
+ self.name = attributes[:'name']
73
+ else
74
+ self.name = nil
75
+ end
76
+
77
+ if attributes.key?(:'language')
78
+ self.language = attributes[:'language']
79
+ else
80
+ self.language = nil
81
+ end
82
+
83
+ if attributes.key?(:'components')
84
+ if (value = attributes[:'components']).is_a?(Array)
85
+ self.components = value
86
+ end
87
+ end
88
+ end
89
+
90
+ # Show invalid properties with the reasons. Usually used together with valid?
91
+ # @return Array for valid properties with the reasons
92
+ def list_invalid_properties
93
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
94
+ invalid_properties = Array.new
95
+ if @name.nil?
96
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
97
+ end
98
+
99
+ if @language.nil?
100
+ invalid_properties.push('invalid value for "language", language cannot be nil.')
101
+ end
102
+
103
+ invalid_properties
104
+ end
105
+
106
+ # Check to see if the all the properties in the model are valid
107
+ # @return true if the model is valid
108
+ def valid?
109
+ warn '[DEPRECATED] the `valid?` method is obsolete'
110
+ return false if @name.nil?
111
+ return false if @language.nil?
112
+ true
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ name == o.name &&
121
+ language == o.language &&
122
+ components == o.components
123
+ end
124
+
125
+ # @see the `==` method
126
+ # @param [Object] Object to be compared
127
+ def eql?(o)
128
+ self == o
129
+ end
130
+
131
+ # Calculates hash code according to all attributes.
132
+ # @return [Integer] Hash code
133
+ def hash
134
+ [name, language, components].hash
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def self.build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ attributes = attributes.transform_keys(&:to_sym)
143
+ transformed_hash = {}
144
+ openapi_types.each_pair do |key, type|
145
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
146
+ transformed_hash["#{key}"] = nil
147
+ elsif type =~ /\AArray<(.*)>/i
148
+ # check to ensure the input is an array given that the attribute
149
+ # is documented as an array but the input is not
150
+ if attributes[attribute_map[key]].is_a?(Array)
151
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
152
+ end
153
+ elsif !attributes[attribute_map[key]].nil?
154
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
155
+ end
156
+ end
157
+ new(transformed_hash)
158
+ end
159
+
160
+ # Deserializes the data based on type
161
+ # @param string type Data type
162
+ # @param string value Value to be deserialized
163
+ # @return [Object] Deserialized data
164
+ def self._deserialize(type, value)
165
+ case type.to_sym
166
+ when :Time
167
+ Time.parse(value)
168
+ when :Date
169
+ Date.parse(value)
170
+ when :String
171
+ value.to_s
172
+ when :Integer
173
+ value.to_i
174
+ when :Float
175
+ value.to_f
176
+ when :Boolean
177
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
+ true
179
+ else
180
+ false
181
+ end
182
+ when :Object
183
+ # generic object (usually a Hash), return directly
184
+ value
185
+ when /\AArray<(?<inner_type>.+)>\z/
186
+ inner_type = Regexp.last_match[:inner_type]
187
+ value.map { |v| _deserialize(inner_type, v) }
188
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
+ k_type = Regexp.last_match[:k_type]
190
+ v_type = Regexp.last_match[:v_type]
191
+ {}.tap do |hash|
192
+ value.each do |k, v|
193
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
+ end
195
+ end
196
+ else # model
197
+ # models (e.g. Pet) or oneOf
198
+ klass = MessenteApi.const_get(type)
199
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
200
+ end
201
+ end
202
+
203
+ # Returns the string representation of the object
204
+ # @return [String] String presentation of the object
205
+ def to_s
206
+ to_hash.to_s
207
+ end
208
+
209
+ # to_body is an alias to to_hash (backward compatibility)
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_body
212
+ to_hash
213
+ end
214
+
215
+ # Returns the object in the form of hash
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_hash
218
+ hash = {}
219
+ self.class.attribute_map.each_pair do |attr, param|
220
+ value = self.send(attr)
221
+ if value.nil?
222
+ is_nullable = self.class.openapi_nullable.include?(attr)
223
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
224
+ end
225
+
226
+ hash[param] = _to_hash(value)
227
+ end
228
+ hash
229
+ end
230
+
231
+ # Outputs non-array value in the form of hash
232
+ # For object, use to_hash. Otherwise, just return the value
233
+ # @param [Object] value Any valid value
234
+ # @return [Hash] Returns the value in the form of hash
235
+ def _to_hash(value)
236
+ if value.is_a?(Array)
237
+ value.compact.map { |v| _to_hash(v) }
238
+ elsif value.is_a?(Hash)
239
+ {}.tap do |hash|
240
+ value.each { |k, v| hash[k] = _to_hash(v) }
241
+ end
242
+ elsif value.respond_to? :to_hash
243
+ value.to_hash
244
+ else
245
+ value
246
+ end
247
+ end
248
+
249
+ end
250
+
251
+ end
@@ -3,13 +3,13 @@
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.4.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
13
13
  module MessenteApi
14
- VERSION = '1.4.0'
14
+ VERSION = '2.1.0'
15
15
  end
data/lib/messente_api.rb CHANGED
@@ -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.4.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
@@ -17,6 +17,9 @@ require 'messente_api/version'
17
17
  require 'messente_api/configuration'
18
18
 
19
19
  # Models
20
+ require 'messente_api/models/bulk_omni_message_create_success_response'
21
+ require 'messente_api/models/bulk_omni_message_create_success_response_messages_inner'
22
+ require 'messente_api/models/bulk_omnimessage'
20
23
  require 'messente_api/models/channel'
21
24
  require 'messente_api/models/contact_envelope'
22
25
  require 'messente_api/models/contact_fields'
@@ -51,6 +54,8 @@ require 'messente_api/models/number_to_blacklist'
51
54
  require 'messente_api/models/numbers_to_investigate'
52
55
  require 'messente_api/models/omni_message_create_success_response'
53
56
  require 'messente_api/models/omnimessage'
57
+ require 'messente_api/models/omnimessage_messages_inner'
58
+ require 'messente_api/models/price_info'
54
59
  require 'messente_api/models/priority'
55
60
  require 'messente_api/models/sms'
56
61
  require 'messente_api/models/statistics_report'
@@ -63,13 +68,17 @@ require 'messente_api/models/telegram'
63
68
  require 'messente_api/models/text_store'
64
69
  require 'messente_api/models/viber'
65
70
  require 'messente_api/models/whats_app'
66
- require 'messente_api/models/whats_app_audio'
67
- require 'messente_api/models/whats_app_document'
68
- require 'messente_api/models/whats_app_image'
69
- require 'messente_api/models/whats_app_text'
71
+ require 'messente_api/models/whats_app_component'
72
+ require 'messente_api/models/whats_app_currency'
73
+ require 'messente_api/models/whats_app_datetime'
74
+ require 'messente_api/models/whats_app_language'
75
+ require 'messente_api/models/whats_app_media'
76
+ require 'messente_api/models/whats_app_parameter'
77
+ require 'messente_api/models/whats_app_template'
70
78
 
71
79
  # APIs
72
80
  require 'messente_api/api/blacklist_api'
81
+ require 'messente_api/api/bulk_messaging_api'
73
82
  require 'messente_api/api/contacts_api'
74
83
  require 'messente_api/api/delivery_report_api'
75
84
  require 'messente_api/api/groups_api'
data/messente_api.gemspec CHANGED
@@ -5,10 +5,10 @@
5
5
 
6
6
  #[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.
7
7
 
8
- The version of the OpenAPI document: 1.4.0
8
+ The version of the OpenAPI document: 2.0.0
9
9
  Contact: messente@messente.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.3.1
11
+ Generator version: 7.6.0
12
12
 
13
13
  =end
14
14
 
@@ -24,11 +24,11 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://github.com/messente/messente-api-ruby"
25
25
  s.summary = "Ruby library for Messente API"
26
26
  s.description = "[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."
27
- s.license = 'Apache-2.0'
28
- s.required_ruby_version = ">= 1.9"
27
+ s.license = "Apache-2.0"
28
+ s.required_ruby_version = ">= 2.7"
29
+ s.metadata = {}
29
30
 
30
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
34
 
data/spec/spec_helper.rb CHANGED
@@ -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.4.0
6
+ The version of the OpenAPI document: 2.0.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ Generator version: 7.6.0
10
10
 
11
11
  =end
12
12
 
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: 1.4.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Messente
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-12 00:00:00.000000000 Z
11
+ date: 2024-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -30,26 +30,6 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.1
33
- - !ruby/object:Gem::Dependency
34
- name: json
35
- requirement: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: '2.1'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 2.1.0
43
- type: :runtime
44
- prerelease: false
45
- version_requirements: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '2.1'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 2.1.0
53
33
  - !ruby/object:Gem::Dependency
54
34
  name: rspec
55
35
  requirement: !ruby/object:Gem::Requirement
@@ -86,6 +66,10 @@ files:
86
66
  - README.md
87
67
  - Rakefile
88
68
  - docs/BlacklistApi.md
69
+ - docs/BulkMessagingApi.md
70
+ - docs/BulkOmniMessageCreateSuccessResponse.md
71
+ - docs/BulkOmniMessageCreateSuccessResponseMessagesInner.md
72
+ - docs/BulkOmnimessage.md
89
73
  - docs/Channel.md
90
74
  - docs/ContactEnvelope.md
91
75
  - docs/ContactFields.md
@@ -125,6 +109,8 @@ files:
125
109
  - docs/OmniMessageCreateSuccessResponse.md
126
110
  - docs/Omnimessage.md
127
111
  - docs/OmnimessageApi.md
112
+ - docs/OmnimessageMessagesInner.md
113
+ - docs/PriceInfo.md
128
114
  - docs/Priority.md
129
115
  - docs/SMS.md
130
116
  - docs/StatisticsApi.md
@@ -138,13 +124,17 @@ files:
138
124
  - docs/TextStore.md
139
125
  - docs/Viber.md
140
126
  - docs/WhatsApp.md
141
- - docs/WhatsAppAudio.md
142
- - docs/WhatsAppDocument.md
143
- - docs/WhatsAppImage.md
144
- - docs/WhatsAppText.md
127
+ - docs/WhatsAppComponent.md
128
+ - docs/WhatsAppCurrency.md
129
+ - docs/WhatsAppDatetime.md
130
+ - docs/WhatsAppLanguage.md
131
+ - docs/WhatsAppMedia.md
132
+ - docs/WhatsAppParameter.md
133
+ - docs/WhatsAppTemplate.md
145
134
  - git_push.sh
146
135
  - lib/messente_api.rb
147
136
  - lib/messente_api/api/blacklist_api.rb
137
+ - lib/messente_api/api/bulk_messaging_api.rb
148
138
  - lib/messente_api/api/contacts_api.rb
149
139
  - lib/messente_api/api/delivery_report_api.rb
150
140
  - lib/messente_api/api/groups_api.rb
@@ -154,6 +144,9 @@ files:
154
144
  - lib/messente_api/api_client.rb
155
145
  - lib/messente_api/api_error.rb
156
146
  - lib/messente_api/configuration.rb
147
+ - lib/messente_api/models/bulk_omni_message_create_success_response.rb
148
+ - lib/messente_api/models/bulk_omni_message_create_success_response_messages_inner.rb
149
+ - lib/messente_api/models/bulk_omnimessage.rb
157
150
  - lib/messente_api/models/channel.rb
158
151
  - lib/messente_api/models/contact_envelope.rb
159
152
  - lib/messente_api/models/contact_fields.rb
@@ -188,6 +181,8 @@ files:
188
181
  - lib/messente_api/models/numbers_to_investigate.rb
189
182
  - lib/messente_api/models/omni_message_create_success_response.rb
190
183
  - lib/messente_api/models/omnimessage.rb
184
+ - lib/messente_api/models/omnimessage_messages_inner.rb
185
+ - lib/messente_api/models/price_info.rb
191
186
  - lib/messente_api/models/priority.rb
192
187
  - lib/messente_api/models/sms.rb
193
188
  - lib/messente_api/models/statistics_report.rb
@@ -200,20 +195,21 @@ files:
200
195
  - lib/messente_api/models/text_store.rb
201
196
  - lib/messente_api/models/viber.rb
202
197
  - lib/messente_api/models/whats_app.rb
203
- - lib/messente_api/models/whats_app_audio.rb
204
- - lib/messente_api/models/whats_app_document.rb
205
- - lib/messente_api/models/whats_app_image.rb
206
- - lib/messente_api/models/whats_app_text.rb
198
+ - lib/messente_api/models/whats_app_component.rb
199
+ - lib/messente_api/models/whats_app_currency.rb
200
+ - lib/messente_api/models/whats_app_datetime.rb
201
+ - lib/messente_api/models/whats_app_language.rb
202
+ - lib/messente_api/models/whats_app_media.rb
203
+ - lib/messente_api/models/whats_app_parameter.rb
204
+ - lib/messente_api/models/whats_app_template.rb
207
205
  - lib/messente_api/version.rb
208
206
  - messente_api.gemspec
209
- - spec/api_client_spec.rb
210
- - spec/configuration_spec.rb
211
207
  - spec/spec_helper.rb
212
208
  homepage: https://github.com/messente/messente-api-ruby
213
209
  licenses:
214
210
  - Apache-2.0
215
211
  metadata: {}
216
- post_install_message:
212
+ post_install_message:
217
213
  rdoc_options: []
218
214
  require_paths:
219
215
  - lib
@@ -221,18 +217,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
221
217
  requirements:
222
218
  - - ">="
223
219
  - !ruby/object:Gem::Version
224
- version: '1.9'
220
+ version: '2.7'
225
221
  required_rubygems_version: !ruby/object:Gem::Requirement
226
222
  requirements:
227
223
  - - ">="
228
224
  - !ruby/object:Gem::Version
229
225
  version: '0'
230
226
  requirements: []
231
- rubygems_version: 3.1.2
232
- signing_key:
227
+ rubygems_version: 3.3.25
228
+ signing_key:
233
229
  specification_version: 4
234
230
  summary: Ruby library for Messente API
235
231
  test_files:
236
- - spec/api_client_spec.rb
237
- - spec/configuration_spec.rb
238
232
  - spec/spec_helper.rb
@@ -1,17 +0,0 @@
1
- # MessenteApi::WhatsAppAudio
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **content** | **String** | Base64-encoded audio |
8
-
9
- ## Code Sample
10
-
11
- ```ruby
12
- require 'MessenteApi'
13
-
14
- instance = MessenteApi::WhatsAppAudio.new(content: null)
15
- ```
16
-
17
-
@@ -1,19 +0,0 @@
1
- # MessenteApi::WhatsAppDocument
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **caption** | **String** | Description for the document | [optional]
8
- **content** | **String** | Base64-encoded image |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'MessenteApi'
14
-
15
- instance = MessenteApi::WhatsAppDocument.new(caption: null,
16
- content: null)
17
- ```
18
-
19
-
@@ -1,19 +0,0 @@
1
- # MessenteApi::WhatsAppImage
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **caption** | **String** | Description for the image | [optional]
8
- **content** | **String** | Base64-encoded image |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'MessenteApi'
14
-
15
- instance = MessenteApi::WhatsAppImage.new(caption: null,
16
- content: null)
17
- ```
18
-
19
-
data/docs/WhatsAppText.md DELETED
@@ -1,19 +0,0 @@
1
- # MessenteApi::WhatsAppText
2
-
3
- ## Properties
4
-
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **preview_url** | **Boolean** | Whether to display link preview if the message contains a hyperlink | [optional] [default to true]
8
- **body** | **String** | Plaintext content for WhatsApp, can contain URLs, emojis and formatting |
9
-
10
- ## Code Sample
11
-
12
- ```ruby
13
- require 'MessenteApi'
14
-
15
- instance = MessenteApi::WhatsAppText.new(preview_url: null,
16
- body: null)
17
- ```
18
-
19
-