docs/SMS.md in messente_api-1.4.0 vs docs/SMS.md in messente_api-2.1.0
- old
+ new
@@ -1,27 +1,30 @@
# MessenteApi::SMS
## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**text** | **String** | Text content of the SMS |
-**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]
-**autoconvert** | **String** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional]
-**udh** | **String** | hex-encoded string containing SMS UDH | [optional]
-**channel** | **String** | The channel used to deliver the message | [optional] [default to 'sms']
+| Name | Type | Description | Notes |
+| ---- | ---- | ----------- | ----- |
+| **text** | **String** | Text content of the SMS | |
+| **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] |
+| **autoconvert** | **String** | Defines how non-GSM characters will be treated: - \"on\" Use replacement settings from the account's [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \"full\" All non GSM 03.38 characters will be replaced with suitable alternatives - \"off\" Message content is not modified in any way | [optional] |
+| **udh** | **String** | hex-encoded string containing SMS UDH | [optional] |
+| **channel** | **String** | The channel used to deliver the message | [optional][default to 'sms'] |
-## Code Sample
+## Example
```ruby
-require 'MessenteApi'
+require 'messente_api'
-instance = MessenteApi::SMS.new(text: Hello world!,
- sender: null,
- validity: 360,
- autoconvert: null,
- udh: null,
- channel: null)
+instance = MessenteApi::SMS.new(
+ text: Hello world!,
+ sender: null,
+ validity: 360,
+ ttl: 21600,
+ autoconvert: null,
+ udh: null,
+ channel: null
+)
```
-