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

- old
+ new

@@ -1,29 +1,26 @@ # MessenteApi::WhatsApp ## 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** | [**WhatsAppText**](WhatsAppText.md) | | [optional] -**image** | [**WhatsAppImage**](WhatsAppImage.md) | | [optional] -**document** | [**WhatsAppDocument**](WhatsAppDocument.md) | | [optional] -**audio** | [**WhatsAppAudio**](WhatsAppAudio.md) | | [optional] -**channel** | **String** | The channel used to deliver the message | [optional] [default to 'whatsapp'] +| 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] | +| **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] | +| **template** | [**WhatsAppTemplate**](WhatsAppTemplate.md) | | [optional] | +| **channel** | **String** | The channel used to deliver the message | [optional][default to 'whatsapp'] | -## Code Sample +## Example ```ruby -require 'MessenteApi' +require 'messente_api' -instance = MessenteApi::WhatsApp.new(sender: null, - validity: 360, - text: null, - image: null, - document: null, - audio: null, - channel: null) +instance = MessenteApi::WhatsApp.new( + sender: null, + validity: 360, + ttl: 21600, + template: null, + channel: null +) ``` -