docs/Viber.md in messente_api-1.4.0 vs docs/Viber.md in messente_api-2.1.0

- old
+ new

@@ -1,29 +1,32 @@ # MessenteApi::Viber ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sender** | **String** | Phone number or alphanumeric sender name | [optional] -**validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] -**text** | **String** | Plaintext content for Viber | [optional] -**image_url** | **String** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] -**button_url** | **String** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] -**button_text** | **String** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] -**channel** | **String** | The channel used to deliver the message | [optional] [default to 'viber'] +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **sender** | **String** | Phone number or alphanumeric sender name | [optional] | +| **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional] | +| **ttl** | **Integer** | After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \"ttl\" and \"validity\" can be used. | [optional] | +| **text** | **String** | Plaintext content for Viber | [optional] | +| **image_url** | **String** | URL for the embedded image Valid combinations: 1) image_url, 2) text, image_url, button_url, button_text | [optional] | +| **button_url** | **String** | URL of the button, must be specified along with ''text'', ''button_text'' and ''image_url'' (optional) | [optional] | +| **button_text** | **String** | Must be specified along with ''text'', ''button_url'', ''button_text'', ''image_url'' (optional) | [optional] | +| **channel** | **String** | The channel used to deliver the message | [optional][default to 'viber'] | -## Code Sample +## Example ```ruby -require 'MessenteApi' +require 'messente_api' -instance = MessenteApi::Viber.new(sender: null, - validity: 360, - text: null, - image_url: null, - button_url: null, - button_text: null, - channel: null) +instance = MessenteApi::Viber.new( + sender: null, + validity: 360, + ttl: 21600, + text: null, + image_url: null, + button_url: null, + button_text: null, + channel: null +) ``` -