messente_api 1.1.0 → 1.3.1

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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +11 -3
  4. data/docs/ContactEnvelope.md +1 -1
  5. data/docs/ContactListEnvelope.md +1 -1
  6. data/docs/ContactResponseFields.md +37 -0
  7. data/docs/ErrorCodeStatistics.md +16 -0
  8. data/docs/ErrorItemNumberLookup.md +17 -0
  9. data/docs/ErrorItemNumberLookupError.md +19 -0
  10. data/docs/ErrorItemStatistics.md +21 -0
  11. data/docs/ErrorNumberLookup.md +17 -0
  12. data/docs/ErrorStatistics.md +17 -0
  13. data/docs/MobileNetwork.md +25 -0
  14. data/docs/NumberLookupApi.md +60 -0
  15. data/docs/NumbersToInvestigate.md +17 -0
  16. data/docs/OmnimessageApi.md +4 -3
  17. data/docs/StatisticsApi.md +60 -0
  18. data/docs/StatisticsReport.md +21 -0
  19. data/docs/StatisticsReportSettings.md +21 -0
  20. data/docs/StatisticsReportSuccess.md +17 -0
  21. data/docs/SyncNumberLookupResult.md +33 -0
  22. data/docs/SyncNumberLookupSuccess.md +19 -0
  23. data/git_push.sh +10 -7
  24. data/lib/messente_api.rb +19 -3
  25. data/lib/messente_api/api/blacklist_api.rb +3 -3
  26. data/lib/messente_api/api/contacts_api.rb +3 -3
  27. data/lib/messente_api/api/delivery_report_api.rb +3 -3
  28. data/lib/messente_api/api/groups_api.rb +3 -3
  29. data/lib/messente_api/api/number_lookup_api.rb +84 -0
  30. data/lib/messente_api/api/omnimessage_api.rb +8 -8
  31. data/lib/messente_api/api/statistics_api.rb +84 -0
  32. data/lib/messente_api/api_client.rb +38 -36
  33. data/lib/messente_api/api_error.rb +3 -3
  34. data/lib/messente_api/configuration.rb +4 -4
  35. data/lib/messente_api/models/channel.rb +3 -3
  36. data/lib/messente_api/models/contact_envelope.rb +15 -5
  37. data/lib/messente_api/models/contact_fields.rb +24 -5
  38. data/lib/messente_api/models/contact_list_envelope.rb +15 -5
  39. data/lib/messente_api/models/contact_response_fields.rb +318 -0
  40. data/lib/messente_api/models/contact_update_fields.rb +23 -4
  41. data/lib/messente_api/models/delivery_report_response.rb +14 -4
  42. data/lib/messente_api/models/delivery_result.rb +14 -4
  43. data/lib/messente_api/models/error_code_omnichannel.rb +3 -3
  44. data/lib/messente_api/models/error_code_omnichannel_machine.rb +3 -3
  45. data/lib/messente_api/models/error_code_phonebook.rb +3 -3
  46. data/lib/messente_api/models/error_code_statistics.rb +38 -0
  47. data/lib/messente_api/models/error_item_number_lookup.rb +212 -0
  48. data/lib/messente_api/models/error_item_number_lookup_error.rb +256 -0
  49. data/lib/messente_api/models/error_item_omnichannel.rb +15 -9
  50. data/lib/messente_api/models/error_item_phonebook.rb +14 -4
  51. data/lib/messente_api/models/error_item_statistics.rb +242 -0
  52. data/lib/messente_api/models/error_number_lookup.rb +215 -0
  53. data/lib/messente_api/models/error_omnichannel.rb +14 -4
  54. data/lib/messente_api/models/error_phonebook.rb +14 -4
  55. data/lib/messente_api/models/error_statistics.rb +215 -0
  56. data/lib/messente_api/models/error_title_omnichannel.rb +3 -3
  57. data/lib/messente_api/models/error_title_phonebook.rb +3 -3
  58. data/lib/messente_api/models/fetch_blacklist_success.rb +14 -4
  59. data/lib/messente_api/models/group_envelope.rb +14 -4
  60. data/lib/messente_api/models/group_list_envelope.rb +14 -4
  61. data/lib/messente_api/models/group_name.rb +14 -4
  62. data/lib/messente_api/models/group_response_fields.rb +15 -4
  63. data/lib/messente_api/models/message_result.rb +14 -4
  64. data/lib/messente_api/models/mobile_network.rb +248 -0
  65. data/lib/messente_api/models/number_to_blacklist.rb +14 -4
  66. data/lib/messente_api/models/numbers_to_investigate.rb +215 -0
  67. data/lib/messente_api/models/omni_message_create_success_response.rb +14 -4
  68. data/lib/messente_api/models/omnimessage.rb +14 -4
  69. data/lib/messente_api/models/sms.rb +14 -4
  70. data/lib/messente_api/models/statistics_report.rb +243 -0
  71. data/lib/messente_api/models/statistics_report_settings.rb +240 -0
  72. data/lib/messente_api/models/statistics_report_success.rb +215 -0
  73. data/lib/messente_api/models/status.rb +3 -3
  74. data/lib/messente_api/models/sync_number_lookup_result.rb +329 -0
  75. data/lib/messente_api/models/sync_number_lookup_success.rb +230 -0
  76. data/lib/messente_api/models/telegram.rb +14 -4
  77. data/lib/messente_api/models/text_store.rb +3 -3
  78. data/lib/messente_api/models/viber.rb +14 -4
  79. data/lib/messente_api/models/whats_app.rb +14 -4
  80. data/lib/messente_api/models/whats_app_audio.rb +14 -4
  81. data/lib/messente_api/models/whats_app_document.rb +14 -4
  82. data/lib/messente_api/models/whats_app_image.rb +14 -4
  83. data/lib/messente_api/models/whats_app_text.rb +14 -4
  84. data/lib/messente_api/version.rb +4 -4
  85. data/messente_api-1.3.0.gem +0 -0
  86. data/messente_api.gemspec +4 -10
  87. data/spec/api_client_spec.rb +4 -4
  88. data/spec/configuration_spec.rb +3 -3
  89. data/spec/spec_helper.rb +3 -3
  90. metadata +49 -136
  91. data/Gemfile.lock +0 -79
@@ -0,0 +1,21 @@
1
+ # MessenteApi::StatisticsReportSettings
2
+
3
+ ## Properties
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<String>** | Optional list of message types (sms, viber, whatsapp, hlr, telegram) | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'MessenteApi'
15
+
16
+ instance = MessenteApi::StatisticsReportSettings.new(start_date: null,
17
+ end_date: null,
18
+ message_types: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,17 @@
1
+ # MessenteApi::StatisticsReportSuccess
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **reports** | [**Array<StatisticsReport>**](StatisticsReport.md) | Array of report objects |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'MessenteApi'
13
+
14
+ instance = MessenteApi::StatisticsReportSuccess.new(reports: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,33 @@
1
+ # MessenteApi::SyncNumberLookupResult
2
+
3
+ ## Properties
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]
16
+
17
+ ## Code Sample
18
+
19
+ ```ruby
20
+ require 'MessenteApi'
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)
31
+ ```
32
+
33
+
@@ -0,0 +1,19 @@
1
+ # MessenteApi::SyncNumberLookupSuccess
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **request_id** | **String** | ID of the request |
8
+ **result** | [**Array<SyncNumberLookupResult>**](SyncNumberLookupResult.md) | A container for phone number info objects |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'MessenteApi'
14
+
15
+ instance = MessenteApi::SyncNumberLookupSuccess.new(request_id: null,
16
+ result: null)
17
+ ```
18
+
19
+
@@ -1,14 +1,17 @@
1
1
  #!/bin/sh
2
- #
3
- # Generated by: https://openapi-generator.tech
4
- #
5
2
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
3
  #
7
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
8
5
 
9
6
  git_user_id=$1
10
7
  git_repo_id=$2
11
8
  release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
12
15
 
13
16
  if [ "$git_user_id" = "" ]; then
14
17
  git_user_id="messente"
@@ -40,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
40
43
 
41
44
  if [ "$GIT_TOKEN" = "" ]; then
42
45
  echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
44
47
  else
45
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
46
49
  fi
47
50
 
48
51
  fi
@@ -50,6 +53,6 @@ fi
50
53
  git pull origin master
51
54
 
52
55
  # Pushes (Forces) the changes in the local repository up to the remote repository
53
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
54
57
  git push origin master 2>&1 | grep -v 'To https'
55
58
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[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.
5
5
 
6
- The version of the OpenAPI document: 1.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -21,16 +21,23 @@ require 'messente_api/models/channel'
21
21
  require 'messente_api/models/contact_envelope'
22
22
  require 'messente_api/models/contact_fields'
23
23
  require 'messente_api/models/contact_list_envelope'
24
+ require 'messente_api/models/contact_response_fields'
24
25
  require 'messente_api/models/contact_update_fields'
25
26
  require 'messente_api/models/delivery_report_response'
26
27
  require 'messente_api/models/delivery_result'
27
28
  require 'messente_api/models/error_code_omnichannel'
28
29
  require 'messente_api/models/error_code_omnichannel_machine'
29
30
  require 'messente_api/models/error_code_phonebook'
31
+ require 'messente_api/models/error_code_statistics'
32
+ require 'messente_api/models/error_item_number_lookup'
33
+ require 'messente_api/models/error_item_number_lookup_error'
30
34
  require 'messente_api/models/error_item_omnichannel'
31
35
  require 'messente_api/models/error_item_phonebook'
36
+ require 'messente_api/models/error_item_statistics'
37
+ require 'messente_api/models/error_number_lookup'
32
38
  require 'messente_api/models/error_omnichannel'
33
39
  require 'messente_api/models/error_phonebook'
40
+ require 'messente_api/models/error_statistics'
34
41
  require 'messente_api/models/error_title_omnichannel'
35
42
  require 'messente_api/models/error_title_phonebook'
36
43
  require 'messente_api/models/fetch_blacklist_success'
@@ -39,11 +46,18 @@ require 'messente_api/models/group_list_envelope'
39
46
  require 'messente_api/models/group_name'
40
47
  require 'messente_api/models/group_response_fields'
41
48
  require 'messente_api/models/message_result'
49
+ require 'messente_api/models/mobile_network'
42
50
  require 'messente_api/models/number_to_blacklist'
51
+ require 'messente_api/models/numbers_to_investigate'
43
52
  require 'messente_api/models/omni_message_create_success_response'
44
53
  require 'messente_api/models/omnimessage'
45
54
  require 'messente_api/models/sms'
55
+ require 'messente_api/models/statistics_report'
56
+ require 'messente_api/models/statistics_report_settings'
57
+ require 'messente_api/models/statistics_report_success'
46
58
  require 'messente_api/models/status'
59
+ require 'messente_api/models/sync_number_lookup_result'
60
+ require 'messente_api/models/sync_number_lookup_success'
47
61
  require 'messente_api/models/telegram'
48
62
  require 'messente_api/models/text_store'
49
63
  require 'messente_api/models/viber'
@@ -58,7 +72,9 @@ require 'messente_api/api/blacklist_api'
58
72
  require 'messente_api/api/contacts_api'
59
73
  require 'messente_api/api/delivery_report_api'
60
74
  require 'messente_api/api/groups_api'
75
+ require 'messente_api/api/number_lookup_api'
61
76
  require 'messente_api/api/omnimessage_api'
77
+ require 'messente_api/api/statistics_api'
62
78
 
63
79
  module MessenteApi
64
80
  class << self
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[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.
5
5
 
6
- The version of the OpenAPI document: 1.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[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.
5
5
 
6
- The version of the OpenAPI document: 1.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[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.
5
5
 
6
- The version of the OpenAPI document: 1.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[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.
5
5
 
6
- The version of the OpenAPI document: 1.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -0,0 +1,84 @@
1
+ =begin
2
+ #Messente API
3
+
4
+ #[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.
5
+
6
+ The version of the OpenAPI document: 1.3.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MessenteApi
16
+ class NumberLookupApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Requests info about phone numbers
23
+ # @param numbers_to_investigate [NumbersToInvestigate] Numbers for lookup
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [SyncNumberLookupSuccess]
26
+ def fetch_info(numbers_to_investigate, opts = {})
27
+ data, _status_code, _headers = fetch_info_with_http_info(numbers_to_investigate, opts)
28
+ data
29
+ end
30
+
31
+ # Requests info about phone numbers
32
+ # @param numbers_to_investigate [NumbersToInvestigate] Numbers for lookup
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(SyncNumberLookupSuccess, Integer, Hash)>] SyncNumberLookupSuccess data, response status code and response headers
35
+ def fetch_info_with_http_info(numbers_to_investigate, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: NumberLookupApi.fetch_info ...'
38
+ end
39
+ # verify the required parameter 'numbers_to_investigate' is set
40
+ if @api_client.config.client_side_validation && numbers_to_investigate.nil?
41
+ fail ArgumentError, "Missing the required parameter 'numbers_to_investigate' when calling NumberLookupApi.fetch_info"
42
+ end
43
+ # resource path
44
+ local_var_path = '/hlr/sync'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:body] || @api_client.object_to_http_body(numbers_to_investigate)
61
+
62
+ # return_type
63
+ return_type = opts[:return_type] || 'SyncNumberLookupSuccess'
64
+
65
+ # auth_names
66
+ auth_names = opts[:auth_names] || ['basicAuth']
67
+
68
+ new_options = opts.merge(
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: NumberLookupApi#fetch_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ end
84
+ end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Messente API
3
3
 
4
- #[Messente](https://messente.com) is a global provider of messaging and user verification services. Use Messente API library to send and receive SMS, Viber, WhatsApp and Telegram messages, blacklist phone numbers to make sure you're not sending any unwanted messages, manage contacts and groups. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
4
+ #[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.
5
5
 
6
- The version of the OpenAPI document: 1.1.0
6
+ The version of the OpenAPI document: 1.3.0
7
7
  Contact: messente@messente.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -22,16 +22,16 @@ module MessenteApi
22
22
  # Cancels a scheduled Omnimessage
23
23
  # @param omnimessage_id [String] UUID of the scheduled omnimessage to be cancelled
24
24
  # @param [Hash] opts the optional parameters
25
- # @return [nil]
25
+ # @return [Object]
26
26
  def cancel_scheduled_message(omnimessage_id, opts = {})
27
- cancel_scheduled_message_with_http_info(omnimessage_id, opts)
28
- nil
27
+ data, _status_code, _headers = cancel_scheduled_message_with_http_info(omnimessage_id, opts)
28
+ data
29
29
  end
30
30
 
31
31
  # Cancels a scheduled Omnimessage
32
32
  # @param omnimessage_id [String] UUID of the scheduled omnimessage to be cancelled
33
33
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
34
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
35
35
  def cancel_scheduled_message_with_http_info(omnimessage_id, opts = {})
36
36
  if @api_client.config.debugging
37
37
  @api_client.config.logger.debug 'Calling API: OmnimessageApi.cancel_scheduled_message ...'
@@ -58,7 +58,7 @@ module MessenteApi
58
58
  post_body = opts[:body]
59
59
 
60
60
  # return_type
61
- return_type = opts[:return_type]
61
+ return_type = opts[:return_type] || 'Object'
62
62
 
63
63
  # auth_names
64
64
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -0,0 +1,84 @@
1
+ =begin
2
+ #Messente API
3
+
4
+ #[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.
5
+
6
+ The version of the OpenAPI document: 1.3.0
7
+ Contact: messente@messente.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module MessenteApi
16
+ class StatisticsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Requests statistics reports for each country
23
+ # @param statistics_report_settings [StatisticsReportSettings] Settings for statistics report
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [StatisticsReportSuccess]
26
+ def create_statistics_report(statistics_report_settings, opts = {})
27
+ data, _status_code, _headers = create_statistics_report_with_http_info(statistics_report_settings, opts)
28
+ data
29
+ end
30
+
31
+ # Requests statistics reports for each country
32
+ # @param statistics_report_settings [StatisticsReportSettings] Settings for statistics report
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(StatisticsReportSuccess, Integer, Hash)>] StatisticsReportSuccess data, response status code and response headers
35
+ def create_statistics_report_with_http_info(statistics_report_settings, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: StatisticsApi.create_statistics_report ...'
38
+ end
39
+ # verify the required parameter 'statistics_report_settings' is set
40
+ if @api_client.config.client_side_validation && statistics_report_settings.nil?
41
+ fail ArgumentError, "Missing the required parameter 'statistics_report_settings' when calling StatisticsApi.create_statistics_report"
42
+ end
43
+ # resource path
44
+ local_var_path = '/statistics/reports'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:body] || @api_client.object_to_http_body(statistics_report_settings)
61
+
62
+ # return_type
63
+ return_type = opts[:return_type] || 'StatisticsReportSuccess'
64
+
65
+ # auth_names
66
+ auth_names = opts[:auth_names] || ['basicAuth']
67
+
68
+ new_options = opts.merge(
69
+ :header_params => header_params,
70
+ :query_params => query_params,
71
+ :form_params => form_params,
72
+ :body => post_body,
73
+ :auth_names => auth_names,
74
+ :return_type => return_type
75
+ )
76
+
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
78
+ if @api_client.config.debugging
79
+ @api_client.config.logger.debug "API called: StatisticsApi#create_statistics_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
+ end
81
+ return data, status_code, headers
82
+ end
83
+ end
84
+ end