Skip to content

Commit 75a804b

Browse files
committed
Travis update: Sep 2024 (Build 801)
[skip ci]
1 parent 945cb3b commit 75a804b

9 files changed

Lines changed: 320 additions & 8 deletions

File tree

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ docs/SyncNumberLookupSuccess.md
6565
docs/Telegram.md
6666
docs/TextStore.md
6767
docs/Viber.md
68+
docs/ViberVideo.md
6869
docs/WhatsApp.md
6970
docs/WhatsAppComponent.md
7071
docs/WhatsAppCurrency.md
@@ -136,6 +137,7 @@ lib/messente_api/models/sync_number_lookup_success.rb
136137
lib/messente_api/models/telegram.rb
137138
lib/messente_api/models/text_store.rb
138139
lib/messente_api/models/viber.rb
140+
lib/messente_api/models/viber_video.rb
139141
lib/messente_api/models/whats_app.rb
140142
lib/messente_api/models/whats_app_component.rb
141143
lib/messente_api/models/whats_app_currency.rb

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
88
- bundle install --path vendor/bundle
99
- bundle exec rspec
1010
- gem build messente_api.gemspec
11-
- gem install ./messente_api-2.1.0.gem
11+
- gem install ./messente_api-2.2.0.gem

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 2.0.0
4-
- Ruby gem version: 2.1.0
4+
- Ruby gem version: 2.2.0
55

66
[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.
77

docs/Viber.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
| **button_url** | **String** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] |
1313
| **button_text** | **String** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] |
1414
| **channel** | **String** | The channel used to deliver the message | [optional][default to 'viber'] |
15+
| **video** | [**ViberVideo**](ViberVideo.md) | | [optional] |
1516

1617
## Example
1718

@@ -26,7 +27,8 @@ instance = MessenteApi::Viber.new(
2627
image_url: null,
2728
button_url: null,
2829
button_text: null,
29-
channel: null
30+
channel: null,
31+
video: null
3032
)
3133
```
3234

docs/ViberVideo.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# MessenteApi::ViberVideo
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **url** | **String** | URL pointing to the video resource. | |
8+
| **thumbnail** | **String** | URL pointing to the video thumbnail resource. | |
9+
| **file_size** | **Integer** | Size of the video file in bytes. Cannot be larger than 200MB. | |
10+
| **duration** | **Integer** | Duration of the video in seconds. Cannot be longer than 600 seconds. | |
11+
12+
## Example
13+
14+
```ruby
15+
require 'messente_api'
16+
17+
instance = MessenteApi::ViberVideo.new(
18+
url: null,
19+
thumbnail: null,
20+
file_size: null,
21+
duration: null
22+
)
23+
```
24+

lib/messente_api.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
require 'messente_api/models/telegram'
6868
require 'messente_api/models/text_store'
6969
require 'messente_api/models/viber'
70+
require 'messente_api/models/viber_video'
7071
require 'messente_api/models/whats_app'
7172
require 'messente_api/models/whats_app_component'
7273
require 'messente_api/models/whats_app_currency'

lib/messente_api/models/viber.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ class Viber
4040
# The channel used to deliver the message
4141
attr_accessor :channel
4242

43+
attr_accessor :video
44+
4345
class EnumAttributeValidator
4446
attr_reader :datatype
4547
attr_reader :allowable_values
@@ -72,7 +74,8 @@ def self.attribute_map
7274
:'image_url' => :'image_url',
7375
:'button_url' => :'button_url',
7476
:'button_text' => :'button_text',
75-
:'channel' => :'channel'
77+
:'channel' => :'channel',
78+
:'video' => :'video'
7679
}
7780
end
7881

@@ -91,7 +94,8 @@ def self.openapi_types
9194
:'image_url' => :'String',
9295
:'button_url' => :'String',
9396
:'button_text' => :'String',
94-
:'channel' => :'String'
97+
:'channel' => :'String',
98+
:'video' => :'ViberVideo'
9599
}
96100
end
97101

@@ -149,6 +153,10 @@ def initialize(attributes = {})
149153
else
150154
self.channel = 'viber'
151155
end
156+
157+
if attributes.key?(:'video')
158+
self.video = attributes[:'video']
159+
end
152160
end
153161

154162
# Show invalid properties with the reasons. Usually used together with valid?
@@ -190,7 +198,8 @@ def ==(o)
190198
image_url == o.image_url &&
191199
button_url == o.button_url &&
192200
button_text == o.button_text &&
193-
channel == o.channel
201+
channel == o.channel &&
202+
video == o.video
194203
end
195204

196205
# @see the `==` method
@@ -202,7 +211,7 @@ def eql?(o)
202211
# Calculates hash code according to all attributes.
203212
# @return [Integer] Hash code
204213
def hash
205-
[sender, validity, ttl, text, image_url, button_url, button_text, channel].hash
214+
[sender, validity, ttl, text, image_url, button_url, button_text, channel, video].hash
206215
end
207216

208217
# Builds the object from hash

0 commit comments

Comments
 (0)