messente_api 1.3.1 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) 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 -15
  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 +15 -0
  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 +71 -28
  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 +41 -0
  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 +16 -6
  141. data/messente_api.gemspec +5 -5
  142. data/spec/spec_helper.rb +2 -2
  143. metadata +35 -40
  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/messente_api-1.3.0.gem +0 -0
  149. data/spec/api_client_spec.rb +0 -226
  150. data/spec/configuration_spec.rb +0 -42
@@ -2,11 +2,10 @@
2
2
 
3
3
  All URIs are relative to *https://api.messente.com/v1*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage
8
- [**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage
9
-
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**cancel_scheduled_message**](OmnimessageApi.md#cancel_scheduled_message) | **DELETE** /omnimessage/{omnimessageId} | Cancels a scheduled Omnimessage |
8
+ | [**send_omnimessage**](OmnimessageApi.md#send_omnimessage) | **POST** /omnimessage | Sends an Omnimessage |
10
9
 
11
10
 
12
11
  ## cancel_scheduled_message
@@ -15,10 +14,10 @@ Method | HTTP request | Description
15
14
 
16
15
  Cancels a scheduled Omnimessage
17
16
 
18
- ### Example
17
+ ### Examples
19
18
 
20
19
  ```ruby
21
- # load the gem
20
+ require 'time'
22
21
  require 'messente_api'
23
22
  # setup authorization
24
23
  MessenteApi.configure do |config|
@@ -31,20 +30,37 @@ api_instance = MessenteApi::OmnimessageApi.new
31
30
  omnimessage_id = 'omnimessage_id_example' # String | UUID of the scheduled omnimessage to be cancelled
32
31
 
33
32
  begin
34
- #Cancels a scheduled Omnimessage
33
+ # Cancels a scheduled Omnimessage
35
34
  result = api_instance.cancel_scheduled_message(omnimessage_id)
36
35
  p result
37
36
  rescue MessenteApi::ApiError => e
38
- puts "Exception when calling OmnimessageApi->cancel_scheduled_message: #{e}"
37
+ puts "Error when calling OmnimessageApi->cancel_scheduled_message: #{e}"
39
38
  end
40
39
  ```
41
40
 
42
- ### Parameters
41
+ #### Using the cancel_scheduled_message_with_http_info variant
42
+
43
+ This returns an Array which contains the response data, status code and headers.
43
44
 
45
+ > <Array(Object, Integer, Hash)> cancel_scheduled_message_with_http_info(omnimessage_id)
46
+
47
+ ```ruby
48
+ begin
49
+ # Cancels a scheduled Omnimessage
50
+ data, status_code, headers = api_instance.cancel_scheduled_message_with_http_info(omnimessage_id)
51
+ p status_code # => 2xx
52
+ p headers # => { ... }
53
+ p data # => Object
54
+ rescue MessenteApi::ApiError => e
55
+ puts "Error when calling OmnimessageApi->cancel_scheduled_message_with_http_info: #{e}"
56
+ end
57
+ ```
58
+
59
+ ### Parameters
44
60
 
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **omnimessage_id** | **String**| UUID of the scheduled omnimessage to be cancelled |
61
+ | Name | Type | Description | Notes |
62
+ | ---- | ---- | ----------- | ----- |
63
+ | **omnimessage_id** | **String** | UUID of the scheduled omnimessage to be cancelled | |
48
64
 
49
65
  ### Return type
50
66
 
@@ -62,14 +78,14 @@ Name | Type | Description | Notes
62
78
 
63
79
  ## send_omnimessage
64
80
 
65
- > OmniMessageCreateSuccessResponse send_omnimessage(omnimessage)
81
+ > <OmniMessageCreateSuccessResponse> send_omnimessage(omnimessage)
66
82
 
67
83
  Sends an Omnimessage
68
84
 
69
- ### Example
85
+ ### Examples
70
86
 
71
87
  ```ruby
72
- # load the gem
88
+ require 'time'
73
89
  require 'messente_api'
74
90
  # setup authorization
75
91
  MessenteApi.configure do |config|
@@ -79,23 +95,40 @@ MessenteApi.configure do |config|
79
95
  end
80
96
 
81
97
  api_instance = MessenteApi::OmnimessageApi.new
82
- omnimessage = MessenteApi::Omnimessage.new # Omnimessage | Omnimessage to be sent
98
+ omnimessage = MessenteApi::Omnimessage.new({to: 'to_example', messages: [MessenteApi::SMS.new({text: 'Hello world!'})]}) # Omnimessage | Omnimessage to be sent
83
99
 
84
100
  begin
85
- #Sends an Omnimessage
101
+ # Sends an Omnimessage
86
102
  result = api_instance.send_omnimessage(omnimessage)
87
103
  p result
88
104
  rescue MessenteApi::ApiError => e
89
- puts "Exception when calling OmnimessageApi->send_omnimessage: #{e}"
105
+ puts "Error when calling OmnimessageApi->send_omnimessage: #{e}"
90
106
  end
91
107
  ```
92
108
 
93
- ### Parameters
109
+ #### Using the send_omnimessage_with_http_info variant
110
+
111
+ This returns an Array which contains the response data, status code and headers.
112
+
113
+ > <Array(<OmniMessageCreateSuccessResponse>, Integer, Hash)> send_omnimessage_with_http_info(omnimessage)
114
+
115
+ ```ruby
116
+ begin
117
+ # Sends an Omnimessage
118
+ data, status_code, headers = api_instance.send_omnimessage_with_http_info(omnimessage)
119
+ p status_code # => 2xx
120
+ p headers # => { ... }
121
+ p data # => <OmniMessageCreateSuccessResponse>
122
+ rescue MessenteApi::ApiError => e
123
+ puts "Error when calling OmnimessageApi->send_omnimessage_with_http_info: #{e}"
124
+ end
125
+ ```
94
126
 
127
+ ### Parameters
95
128
 
96
- Name | Type | Description | Notes
97
- ------------- | ------------- | ------------- | -------------
98
- **omnimessage** | [**Omnimessage**](Omnimessage.md)| Omnimessage to be sent |
129
+ | Name | Type | Description | Notes |
130
+ | ---- | ---- | ----------- | ----- |
131
+ | **omnimessage** | [**Omnimessage**](Omnimessage.md) | Omnimessage to be sent | |
99
132
 
100
133
  ### Return type
101
134
 
@@ -0,0 +1,53 @@
1
+ # MessenteApi::OmnimessageMessagesInner
2
+
3
+ ## Class instance methods
4
+
5
+ ### `openapi_one_of`
6
+
7
+ Returns the list of classes defined in oneOf.
8
+
9
+ #### Example
10
+
11
+ ```ruby
12
+ require 'messente_api'
13
+
14
+ MessenteApi::OmnimessageMessagesInner.openapi_one_of
15
+ # =>
16
+ # [
17
+ # :'SMS',
18
+ # :'Telegram',
19
+ # :'Viber',
20
+ # :'WhatsApp'
21
+ # ]
22
+ ```
23
+
24
+ ### build
25
+
26
+ Find the appropriate object from the `openapi_one_of` list and casts the data into it.
27
+
28
+ #### Example
29
+
30
+ ```ruby
31
+ require 'messente_api'
32
+
33
+ MessenteApi::OmnimessageMessagesInner.build(data)
34
+ # => #<SMS:0x00007fdd4aab02a0>
35
+
36
+ MessenteApi::OmnimessageMessagesInner.build(data_that_doesnt_match)
37
+ # => nil
38
+ ```
39
+
40
+ #### Parameters
41
+
42
+ | Name | Type | Description |
43
+ | ---- | ---- | ----------- |
44
+ | **data** | **Mixed** | data to be matched against the list of oneOf items |
45
+
46
+ #### Return type
47
+
48
+ - `SMS`
49
+ - `Telegram`
50
+ - `Viber`
51
+ - `WhatsApp`
52
+ - `nil` (if no type matches)
53
+
data/docs/PriceInfo.md ADDED
@@ -0,0 +1,22 @@
1
+ # MessenteApi::PriceInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **part_price** | **String** | price per message part - relevant mostly for SMS | |
8
+ | **parts_count** | **Integer** | the number of parts the message consists of | |
9
+ | **total_price** | **String** | total price for the message | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'messente_api'
15
+
16
+ instance = MessenteApi::PriceInfo.new(
17
+ part_price: null,
18
+ parts_count: null,
19
+ total_price: null
20
+ )
21
+ ```
22
+
data/docs/Priority.md ADDED
@@ -0,0 +1,15 @@
1
+ # MessenteApi::Priority
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'messente_api'
12
+
13
+ instance = MessenteApi::Priority.new()
14
+ ```
15
+
data/docs/SMS.md CHANGED
@@ -2,26 +2,29 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **text** | **String** | Text content of the SMS |
8
- **sender** | **String** | Phone number or alphanumeric sender name | [optional]
9
- **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
10
- **autoconvert** | **String** | Defines how non-GSM characters will be treated: - \&quot;on\&quot; Use replacement settings from the account&#39;s [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \&quot;full\&quot; All non GSM 03.38 characters will be replaced with suitable alternatives - \&quot;off\&quot; Message content is not modified in any way | [optional]
11
- **udh** | **String** | hex-encoded string containing SMS UDH | [optional]
12
- **channel** | **String** | The channel used to deliver the message | [optional] [default to &#39;sms&#39;]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **text** | **String** | Text content of the SMS | |
8
+ | **sender** | **String** | Phone number or alphanumeric sender name | [optional] |
9
+ | **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted. Only one of \&quot;ttl\&quot; and \&quot;validity\&quot; can be used. | [optional] |
10
+ | **ttl** | **Integer** | After how many seconds this channel is considered as failed and the next channel is attempted. Only one of \&quot;ttl\&quot; and \&quot;validity\&quot; can be used. | [optional] |
11
+ | **autoconvert** | **String** | Defines how non-GSM characters will be treated: - \&quot;on\&quot; Use replacement settings from the account&#39;s [API Auto Replace settings page](https://dashboard.messente.com/api-settings/auto-replace) (default) - \&quot;full\&quot; All non GSM 03.38 characters will be replaced with suitable alternatives - \&quot;off\&quot; Message content is not modified in any way | [optional] |
12
+ | **udh** | **String** | hex-encoded string containing SMS UDH | [optional] |
13
+ | **channel** | **String** | The channel used to deliver the message | [optional][default to &#39;sms&#39;] |
13
14
 
14
- ## Code Sample
15
+ ## Example
15
16
 
16
17
  ```ruby
17
- require 'MessenteApi'
18
+ require 'messente_api'
18
19
 
19
- instance = MessenteApi::SMS.new(text: Hello world!,
20
- sender: null,
21
- validity: 360,
22
- autoconvert: null,
23
- udh: null,
24
- channel: null)
20
+ instance = MessenteApi::SMS.new(
21
+ text: Hello world!,
22
+ sender: null,
23
+ validity: 360,
24
+ ttl: 21600,
25
+ autoconvert: null,
26
+ udh: null,
27
+ channel: null
28
+ )
25
29
  ```
26
30
 
27
-
@@ -2,22 +2,21 @@
2
2
 
3
3
  All URIs are relative to *https://api.messente.com/v1*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create_statistics_report**](StatisticsApi.md#create_statistics_report) | **POST** /statistics/reports | Requests statistics reports for each country
8
-
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_statistics_report**](StatisticsApi.md#create_statistics_report) | **POST** /statistics/reports | Requests statistics reports for each country |
9
8
 
10
9
 
11
10
  ## create_statistics_report
12
11
 
13
- > StatisticsReportSuccess create_statistics_report(statistics_report_settings)
12
+ > <StatisticsReportSuccess> create_statistics_report(statistics_report_settings)
14
13
 
15
14
  Requests statistics reports for each country
16
15
 
17
- ### Example
16
+ ### Examples
18
17
 
19
18
  ```ruby
20
- # load the gem
19
+ require 'time'
21
20
  require 'messente_api'
22
21
  # setup authorization
23
22
  MessenteApi.configure do |config|
@@ -27,23 +26,40 @@ MessenteApi.configure do |config|
27
26
  end
28
27
 
29
28
  api_instance = MessenteApi::StatisticsApi.new
30
- statistics_report_settings = {"start_date":"2017-01-01","end_date":"2019-06-20","message_types":["sms"]} # StatisticsReportSettings | Settings for statistics report
29
+ statistics_report_settings = MessenteApi::StatisticsReportSettings.new({start_date: Date.today, end_date: Date.today}) # StatisticsReportSettings | Settings for statistics report
31
30
 
32
31
  begin
33
- #Requests statistics reports for each country
32
+ # Requests statistics reports for each country
34
33
  result = api_instance.create_statistics_report(statistics_report_settings)
35
34
  p result
36
35
  rescue MessenteApi::ApiError => e
37
- puts "Exception when calling StatisticsApi->create_statistics_report: #{e}"
36
+ puts "Error when calling StatisticsApi->create_statistics_report: #{e}"
38
37
  end
39
38
  ```
40
39
 
41
- ### Parameters
40
+ #### Using the create_statistics_report_with_http_info variant
41
+
42
+ This returns an Array which contains the response data, status code and headers.
42
43
 
44
+ > <Array(<StatisticsReportSuccess>, Integer, Hash)> create_statistics_report_with_http_info(statistics_report_settings)
45
+
46
+ ```ruby
47
+ begin
48
+ # Requests statistics reports for each country
49
+ data, status_code, headers = api_instance.create_statistics_report_with_http_info(statistics_report_settings)
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => <StatisticsReportSuccess>
53
+ rescue MessenteApi::ApiError => e
54
+ puts "Error when calling StatisticsApi->create_statistics_report_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
43
59
 
44
- Name | Type | Description | Notes
45
- ------------- | ------------- | ------------- | -------------
46
- **statistics_report_settings** | [**StatisticsReportSettings**](StatisticsReportSettings.md)| Settings for statistics report |
60
+ | Name | Type | Description | Notes |
61
+ | ---- | ---- | ----------- | ----- |
62
+ | **statistics_report_settings** | [**StatisticsReportSettings**](StatisticsReportSettings.md) | Settings for statistics report | |
47
63
 
48
64
  ### Return type
49
65
 
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **total_messages** | **Integer** | Sum of all messages |
8
- **total_price** | **String** | Price for all messages |
9
- **country** | **String** | Target country of all messages |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **total_messages** | **Integer** | Sum of all messages | |
8
+ | **total_price** | **String** | Price for all messages | |
9
+ | **country** | **String** | Target country of all messages | |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'MessenteApi'
14
+ require 'messente_api'
15
15
 
16
- instance = MessenteApi::StatisticsReport.new(total_messages: null,
17
- total_price: null,
18
- country: null)
16
+ instance = MessenteApi::StatisticsReport.new(
17
+ total_messages: null,
18
+ total_price: null,
19
+ country: null
20
+ )
19
21
  ```
20
22
 
21
-
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **start_date** | **Date** | Start date for the report |
8
- **end_date** | **Date** | End date for the report |
9
- **message_types** | **Array&lt;String&gt;** | Optional list of message types (sms, viber, whatsapp, hlr, telegram) | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **start_date** | **Date** | Start date for the report | |
8
+ | **end_date** | **Date** | End date for the report | |
9
+ | **message_types** | **Array&lt;String&gt;** | Optional list of message types (sms, viber, whatsapp, hlr, telegram) | [optional] |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'MessenteApi'
14
+ require 'messente_api'
15
15
 
16
- instance = MessenteApi::StatisticsReportSettings.new(start_date: null,
17
- end_date: null,
18
- message_types: null)
16
+ instance = MessenteApi::StatisticsReportSettings.new(
17
+ start_date: null,
18
+ end_date: null,
19
+ message_types: null
20
+ )
19
21
  ```
20
22
 
21
-
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **reports** | [**Array&lt;StatisticsReport&gt;**](StatisticsReport.md) | Array of report objects |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **reports** | [**Array&lt;StatisticsReport&gt;**](StatisticsReport.md) | Array of report objects | |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'MessenteApi'
12
+ require 'messente_api'
13
13
 
14
- instance = MessenteApi::StatisticsReportSuccess.new(reports: null)
14
+ instance = MessenteApi::StatisticsReportSuccess.new(
15
+ reports: null
16
+ )
15
17
  ```
16
18
 
17
-
data/docs/Status.md CHANGED
@@ -2,15 +2,14 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
7
 
8
- ## Code Sample
8
+ ## Example
9
9
 
10
10
  ```ruby
11
- require 'MessenteApi'
11
+ require 'messente_api'
12
12
 
13
13
  instance = MessenteApi::Status.new()
14
14
  ```
15
15
 
16
-
@@ -2,32 +2,33 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **number** | **String** | Phone number in e.164 format |
8
- **roaming** | **Boolean** | Indicates if a number is roaming | [optional]
9
- **ported** | **Boolean** | Indicates if a number is ported | [optional]
10
- **roaming_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional]
11
- **current_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional]
12
- **original_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional]
13
- **ported_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional]
14
- **status** | **String** | Status of the phone number | [optional]
15
- **error** | [**AnyType**](.md) | Indicates if any error occurred while handling the request | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **number** | **String** | Phone number in e.164 format | |
8
+ | **roaming** | **Boolean** | Indicates if a number is roaming | [optional] |
9
+ | **ported** | **Boolean** | Indicates if a number is ported | [optional] |
10
+ | **roaming_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] |
11
+ | **current_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] |
12
+ | **original_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] |
13
+ | **ported_network** | [**MobileNetwork**](MobileNetwork.md) | | [optional] |
14
+ | **status** | **String** | Status of the phone number | [optional] |
15
+ | **error** | **Object** | Indicates if any error occurred while handling the request | [optional] |
16
16
 
17
- ## Code Sample
17
+ ## Example
18
18
 
19
19
  ```ruby
20
- require 'MessenteApi'
20
+ require 'messente_api'
21
21
 
22
- instance = MessenteApi::SyncNumberLookupResult.new(number: null,
23
- roaming: null,
24
- ported: null,
25
- roaming_network: null,
26
- current_network: null,
27
- original_network: null,
28
- ported_network: null,
29
- status: null,
30
- error: null)
22
+ instance = MessenteApi::SyncNumberLookupResult.new(
23
+ number: null,
24
+ roaming: null,
25
+ ported: null,
26
+ roaming_network: null,
27
+ current_network: null,
28
+ original_network: null,
29
+ ported_network: null,
30
+ status: null,
31
+ error: null
32
+ )
31
33
  ```
32
34
 
33
-
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **request_id** | **String** | ID of the request |
8
- **result** | [**Array&lt;SyncNumberLookupResult&gt;**](SyncNumberLookupResult.md) | A container for phone number info objects |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **request_id** | **String** | ID of the request | |
8
+ | **result** | [**Array&lt;SyncNumberLookupResult&gt;**](SyncNumberLookupResult.md) | A container for phone number info objects | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'MessenteApi'
13
+ require 'messente_api'
14
14
 
15
- instance = MessenteApi::SyncNumberLookupSuccess.new(request_id: null,
16
- result: null)
15
+ instance = MessenteApi::SyncNumberLookupSuccess.new(
16
+ request_id: null,
17
+ result: null
18
+ )
17
19
  ```
18
20
 
19
-
data/docs/Telegram.md CHANGED
@@ -2,28 +2,29 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **sender** | **String** | Phone number or alphanumeric sender name | [optional]
8
- **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional]
9
- **text** | **String** | Plaintext content for Telegram | [optional]
10
- **image_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;document_url\&quot; and \&quot;audio_url\&quot; | [optional]
11
- **document_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;audio_url\&quot; and \&quot;image_url\&quot; | [optional]
12
- **audio_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;document_url\&quot; and \&quot;image_url\&quot; | [optional]
13
- **channel** | **String** | The channel used to deliver the message | [optional] [default to &#39;telegram&#39;]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **sender** | **String** | Phone number or alphanumeric sender name | [optional] |
8
+ | **validity** | **Integer** | After how many minutes this channel is considered as failed and the next channel is attempted | [optional] |
9
+ | **text** | **String** | Plaintext content for Telegram | [optional] |
10
+ | **image_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;document_url\&quot; and \&quot;audio_url\&quot; | [optional] |
11
+ | **document_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;audio_url\&quot; and \&quot;image_url\&quot; | [optional] |
12
+ | **audio_url** | **String** | URL for the embedded image. Mutually exclusive with \&quot;document_url\&quot; and \&quot;image_url\&quot; | [optional] |
13
+ | **channel** | **String** | The channel used to deliver the message | [optional][default to &#39;telegram&#39;] |
14
14
 
15
- ## Code Sample
15
+ ## Example
16
16
 
17
17
  ```ruby
18
- require 'MessenteApi'
18
+ require 'messente_api'
19
19
 
20
- instance = MessenteApi::Telegram.new(sender: null,
21
- validity: 360,
22
- text: null,
23
- image_url: null,
24
- document_url: null,
25
- audio_url: null,
26
- channel: null)
20
+ instance = MessenteApi::Telegram.new(
21
+ sender: null,
22
+ validity: 360,
23
+ text: null,
24
+ image_url: null,
25
+ document_url: null,
26
+ audio_url: null,
27
+ channel: null
28
+ )
27
29
  ```
28
30
 
29
-
data/docs/TextStore.md CHANGED
@@ -2,15 +2,14 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
7
 
8
- ## Code Sample
8
+ ## Example
9
9
 
10
10
  ```ruby
11
- require 'MessenteApi'
11
+ require 'messente_api'
12
12
 
13
13
  instance = MessenteApi::TextStore.new()
14
14
  ```
15
15
 
16
-