ElasticEmail 4.0.21 → 4.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +2 -2
  3. data/README.md +5 -4
  4. data/VERSION +1 -1
  5. data/docs/BodyPart.md +1 -1
  6. data/docs/EmailPredictedValidationStatus.md +15 -0
  7. data/docs/EmailValidationResult.md +5 -1
  8. data/docs/MessageAttachment.md +3 -1
  9. data/docs/VerificationsApi.md +4 -4
  10. data/lib/ElasticEmail/api/campaigns_api.rb +1 -1
  11. data/lib/ElasticEmail/api/contacts_api.rb +1 -1
  12. data/lib/ElasticEmail/api/emails_api.rb +1 -1
  13. data/lib/ElasticEmail/api/events_api.rb +1 -1
  14. data/lib/ElasticEmail/api/files_api.rb +1 -1
  15. data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
  16. data/lib/ElasticEmail/api/lists_api.rb +1 -1
  17. data/lib/ElasticEmail/api/security_api.rb +1 -1
  18. data/lib/ElasticEmail/api/segments_api.rb +1 -1
  19. data/lib/ElasticEmail/api/statistics_api.rb +1 -1
  20. data/lib/ElasticEmail/api/sub_accounts_api.rb +1 -1
  21. data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
  22. data/lib/ElasticEmail/api/templates_api.rb +1 -1
  23. data/lib/ElasticEmail/api/verifications_api.rb +9 -9
  24. data/lib/ElasticEmail/api_client.rb +1 -1
  25. data/lib/ElasticEmail/api_error.rb +2 -1
  26. data/lib/ElasticEmail/configuration.rb +12 -1
  27. data/lib/ElasticEmail/models/access_level.rb +6 -4
  28. data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
  29. data/lib/ElasticEmail/models/api_key.rb +1 -1
  30. data/lib/ElasticEmail/models/api_key_payload.rb +1 -1
  31. data/lib/ElasticEmail/models/body_content_type.rb +1 -1
  32. data/lib/ElasticEmail/models/body_part.rb +24 -2
  33. data/lib/ElasticEmail/models/campaign.rb +23 -1
  34. data/lib/ElasticEmail/models/campaign_options.rb +23 -1
  35. data/lib/ElasticEmail/models/campaign_recipient.rb +1 -1
  36. data/lib/ElasticEmail/models/campaign_status.rb +1 -1
  37. data/lib/ElasticEmail/models/campaign_template.rb +1 -1
  38. data/lib/ElasticEmail/models/channel_log_status_summary.rb +1 -1
  39. data/lib/ElasticEmail/models/compression_format.rb +1 -1
  40. data/lib/ElasticEmail/models/consent_data.rb +23 -1
  41. data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
  42. data/lib/ElasticEmail/models/contact.rb +23 -1
  43. data/lib/ElasticEmail/models/contact_activity.rb +1 -1
  44. data/lib/ElasticEmail/models/contact_payload.rb +23 -1
  45. data/lib/ElasticEmail/models/contact_source.rb +1 -1
  46. data/lib/ElasticEmail/models/contact_status.rb +1 -1
  47. data/lib/ElasticEmail/models/contact_update_payload.rb +1 -1
  48. data/lib/ElasticEmail/models/contacts_list.rb +1 -1
  49. data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
  50. data/lib/ElasticEmail/models/email_content.rb +1 -1
  51. data/lib/ElasticEmail/models/email_data.rb +1 -1
  52. data/lib/ElasticEmail/models/email_message_data.rb +1 -1
  53. data/lib/ElasticEmail/models/email_predicted_validation_status.rb +43 -0
  54. data/lib/ElasticEmail/models/email_recipient.rb +1 -1
  55. data/lib/ElasticEmail/models/email_send.rb +1 -1
  56. data/lib/ElasticEmail/models/email_status.rb +23 -1
  57. data/lib/ElasticEmail/models/email_transactional_message_data.rb +1 -1
  58. data/lib/ElasticEmail/models/email_validation_result.rb +47 -5
  59. data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
  60. data/lib/ElasticEmail/models/email_view.rb +1 -1
  61. data/lib/ElasticEmail/models/emails_payload.rb +1 -1
  62. data/lib/ElasticEmail/models/encoding_type.rb +1 -1
  63. data/lib/ElasticEmail/models/event_type.rb +1 -1
  64. data/lib/ElasticEmail/models/events_order_by.rb +1 -1
  65. data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
  66. data/lib/ElasticEmail/models/export_link.rb +1 -1
  67. data/lib/ElasticEmail/models/export_status.rb +1 -1
  68. data/lib/ElasticEmail/models/file_info.rb +1 -1
  69. data/lib/ElasticEmail/models/file_payload.rb +1 -1
  70. data/lib/ElasticEmail/models/file_upload_result.rb +1 -1
  71. data/lib/ElasticEmail/models/inbound_payload.rb +23 -1
  72. data/lib/ElasticEmail/models/inbound_route.rb +23 -1
  73. data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
  74. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
  75. data/lib/ElasticEmail/models/list_payload.rb +1 -1
  76. data/lib/ElasticEmail/models/list_update_payload.rb +1 -1
  77. data/lib/ElasticEmail/models/log_job_status.rb +1 -1
  78. data/lib/ElasticEmail/models/log_status_summary.rb +1 -1
  79. data/lib/ElasticEmail/models/merge_email_payload.rb +1 -1
  80. data/lib/ElasticEmail/models/message_attachment.rb +15 -5
  81. data/lib/ElasticEmail/models/message_category.rb +1 -1
  82. data/lib/ElasticEmail/models/new_api_key.rb +1 -1
  83. data/lib/ElasticEmail/models/new_smtp_credentials.rb +23 -1
  84. data/lib/ElasticEmail/models/options.rb +23 -1
  85. data/lib/ElasticEmail/models/recipient_event.rb +23 -1
  86. data/lib/ElasticEmail/models/segment.rb +1 -1
  87. data/lib/ElasticEmail/models/segment_payload.rb +1 -1
  88. data/lib/ElasticEmail/models/smtp_credentials.rb +23 -1
  89. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +1 -1
  90. data/lib/ElasticEmail/models/sort_order_item.rb +1 -1
  91. data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
  92. data/lib/ElasticEmail/models/split_options.rb +23 -1
  93. data/lib/ElasticEmail/models/sub_account_info.rb +23 -1
  94. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +1 -1
  95. data/lib/ElasticEmail/models/subaccount_email_settings.rb +1 -1
  96. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +1 -1
  97. data/lib/ElasticEmail/models/subaccount_payload.rb +1 -1
  98. data/lib/ElasticEmail/models/subaccount_settings_info.rb +1 -1
  99. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +1 -1
  100. data/lib/ElasticEmail/models/suppression.rb +1 -1
  101. data/lib/ElasticEmail/models/template.rb +23 -1
  102. data/lib/ElasticEmail/models/template_payload.rb +23 -1
  103. data/lib/ElasticEmail/models/template_scope.rb +1 -1
  104. data/lib/ElasticEmail/models/template_type.rb +3 -2
  105. data/lib/ElasticEmail/models/transactional_recipient.rb +1 -1
  106. data/lib/ElasticEmail/models/utm.rb +1 -1
  107. data/lib/ElasticEmail/models/verification_file_result.rb +23 -1
  108. data/lib/ElasticEmail/models/verification_file_result_details.rb +23 -1
  109. data/lib/ElasticEmail/models/verification_status.rb +1 -1
  110. data/lib/ElasticEmail/version.rb +2 -2
  111. data/lib/ElasticEmail.rb +2 -1
  112. data/spec/api_client_spec.rb +1 -1
  113. data/spec/configuration_spec.rb +1 -1
  114. data/spec/models/email_predicted_validation_status_spec.rb +28 -0
  115. data/spec/spec_helper.rb +1 -1
  116. metadata +7 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3dbb5439e933d6d4f712e4d9d3dd58d78337d5726e8cb4c4987cf3f96d05525
4
- data.tar.gz: 0472be067ee8428d882b477d6947e7e108026354b2df5cdb35a8b95ea8bce95b
3
+ metadata.gz: b2091e7d69623eed15ffc395970b041f62c2a7a152b15d539fe8b8b0e74bc7a3
4
+ data.tar.gz: 8e8bbb597a0589265e598d2d313f0644ac5a61c470fa9f37ab225dc7e68e2051
5
5
  SHA512:
6
- metadata.gz: 56c5ce32bd50a1a8ea3b362ae1ee2f878ecd708e100fd4153d558f5710ee8e94faeeda04bd0c1f3a1a582e8272fd141c7961ed30f134e1898426b2ebc90c2286
7
- data.tar.gz: bb6f889d3642a1e46deccbd0249dde0932ef134d8e5cce364325363fe1f60051d04db35ac2f83bc116ebfda04a6af3f3ce62a8a04c83c6b86c83f32086de419d
6
+ metadata.gz: a316037043c8c25eac0b3d07dc70587ae0980501f42d9c29428614183e10bedd21f2a31f7aac683457d81327a13ec8671e60b4b11f6d71dc4cc5b695158adcec
7
+ data.tar.gz: e1d08cd1a85f445ea30022c44a8f68d8494ce82ccd2dd472b420a6af48ccb7bef5780a1fd228b103ab350b23cc1bb139d9114bb59bf0994c8ca2b1cb3fc80ba0
data/ElasticEmail.gemspec CHANGED
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 4.0.0
9
9
  Contact: support@elasticemail.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 6.2.1
11
+ OpenAPI Generator version: 6.3.0
12
12
 
13
13
  =end
14
14
 
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.summary = "Elastic Email REST API Ruby Gem"
26
26
  s.description = "The C# library for the Elastic Email REST API. This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. To start using this API, you will need your Access Token. Remember to keep it safe."
27
27
  s.license = "Unlicense"
28
- s.required_ruby_version = ">= 2.4"
28
+ s.required_ruby_version = ">= 2.7"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
31
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ Downloadable library clients can be found in our Github repository [here](https:
15
15
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
16
 
17
17
  - API version: 4.0.0
18
- - Package version: 4.0.21
18
+ - Package version: 4.0.22
19
19
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
20
20
 
21
21
  ## Installation
@@ -31,16 +31,16 @@ gem build ElasticEmail.gemspec
31
31
  Then either install the gem locally:
32
32
 
33
33
  ```shell
34
- gem install ./ElasticEmail-4.0.21.gem
34
+ gem install ./ElasticEmail-4.0.22.gem
35
35
  ```
36
36
 
37
- (for development, run `gem install --dev ./ElasticEmail-4.0.21.gem` to install the development dependencies)
37
+ (for development, run `gem install --dev ./ElasticEmail-4.0.22.gem` to install the development dependencies)
38
38
 
39
39
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
40
40
 
41
41
  Finally add this to the Gemfile:
42
42
 
43
- gem 'ElasticEmail', '~> 4.0.21'
43
+ gem 'ElasticEmail', '~> 4.0.22'
44
44
 
45
45
  ### Install from Git
46
46
 
@@ -216,6 +216,7 @@ Class | Method | HTTP request | Description
216
216
  - [ElasticEmail::EmailContent](docs/EmailContent.md)
217
217
  - [ElasticEmail::EmailData](docs/EmailData.md)
218
218
  - [ElasticEmail::EmailMessageData](docs/EmailMessageData.md)
219
+ - [ElasticEmail::EmailPredictedValidationStatus](docs/EmailPredictedValidationStatus.md)
219
220
  - [ElasticEmail::EmailRecipient](docs/EmailRecipient.md)
220
221
  - [ElasticEmail::EmailSend](docs/EmailSend.md)
221
222
  - [ElasticEmail::EmailStatus](docs/EmailStatus.md)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.21
1
+ 4.0.22
data/docs/BodyPart.md CHANGED
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **content_type** | [**BodyContentType**](BodyContentType.md) | | [default to 'HTML'] |
8
8
  | **content** | **String** | Actual content of the body part | [optional] |
9
- | **charset** | **String** | Text value of charset encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and more | [optional] |
9
+ | **charset** | **String** | Text value of charset encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and more... | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -0,0 +1,15 @@
1
+ # ElasticEmail::EmailPredictedValidationStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'ElasticEmail'
12
+
13
+ instance = ElasticEmail::EmailPredictedValidationStatus.new()
14
+ ```
15
+
@@ -13,6 +13,8 @@
13
13
  | **reason** | **String** | All detected issues | [optional] |
14
14
  | **date_added** | **Time** | Date of creation in YYYY-MM-DDThh:ii:ss format | [optional] |
15
15
  | **result** | [**EmailValidationStatus**](EmailValidationStatus.md) | | [optional][default to 'None'] |
16
+ | **predicted_score** | **Float** | | [optional] |
17
+ | **predicted_status** | [**EmailPredictedValidationStatus**](EmailPredictedValidationStatus.md) | | [optional][default to 'None'] |
16
18
 
17
19
  ## Example
18
20
 
@@ -28,7 +30,9 @@ instance = ElasticEmail::EmailValidationResult.new(
28
30
  role: null,
29
31
  reason: null,
30
32
  date_added: null,
31
- result: null
33
+ result: null,
34
+ predicted_score: null,
35
+ predicted_status: null
32
36
  )
33
37
  ```
34
38
 
@@ -7,6 +7,7 @@
7
7
  | **binary_content** | **String** | File's content as byte array (or a Base64 string) | |
8
8
  | **name** | **String** | Display name of the file | |
9
9
  | **content_type** | **String** | MIME content type | [optional] |
10
+ | **size** | **Integer** | Size of your attachment (in bytes). | [optional] |
10
11
 
11
12
  ## Example
12
13
 
@@ -16,7 +17,8 @@ require 'ElasticEmail'
16
17
  instance = ElasticEmail::MessageAttachment.new(
17
18
  binary_content: null,
18
19
  name: null,
19
- content_type: null
20
+ content_type: null,
21
+ size: 100
20
22
  )
21
23
  ```
22
24
 
@@ -92,7 +92,7 @@ nil (empty response body)
92
92
 
93
93
  Get Email Verification Result
94
94
 
95
- Returns a result of verified email. Required Access Level: VerifyEmails, ViewEmailVerifications
95
+ Returns a result of verified email. Required Access Level: VerifyEmails
96
96
 
97
97
  ### Examples
98
98
 
@@ -375,7 +375,7 @@ end
375
375
 
376
376
  Get Detailed File Verification Result
377
377
 
378
- Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails, ViewEmailVerifications
378
+ Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails
379
379
 
380
380
  ### Examples
381
381
 
@@ -595,7 +595,7 @@ end
595
595
 
596
596
  Get Files Verification Results
597
597
 
598
- Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails, ViewEmailVerifications
598
+ Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails
599
599
 
600
600
  ### Examples
601
601
 
@@ -663,7 +663,7 @@ This endpoint does not need any parameter.
663
663
 
664
664
  Get Emails Verification Results
665
665
 
666
- Returns a results of all verified single emails. Required Access Level: VerifyEmails, ViewEmailVerifications
666
+ Returns a results of all verified single emails. Required Access Level: VerifyEmails
667
667
 
668
668
  ### Examples
669
669
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -81,7 +81,7 @@ module ElasticEmail
81
81
  end
82
82
 
83
83
  # Get Email Verification Result
84
- # Returns a result of verified email. Required Access Level: VerifyEmails, ViewEmailVerifications
84
+ # Returns a result of verified email. Required Access Level: VerifyEmails
85
85
  # @param email [String] Email address to view verification result of
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @return [EmailValidationResult]
@@ -91,7 +91,7 @@ module ElasticEmail
91
91
  end
92
92
 
93
93
  # Get Email Verification Result
94
- # Returns a result of verified email. Required Access Level: VerifyEmails, ViewEmailVerifications
94
+ # Returns a result of verified email. Required Access Level: VerifyEmails
95
95
  # @param email [String] Email address to view verification result of
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @return [Array<(EmailValidationResult, Integer, Hash)>] EmailValidationResult data, response status code and response headers
@@ -331,7 +331,7 @@ module ElasticEmail
331
331
  end
332
332
 
333
333
  # Get Detailed File Verification Result
334
- # Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails, ViewEmailVerifications
334
+ # Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails
335
335
  # @param id [String] ID of the Verification to display status of
336
336
  # @param [Hash] opts the optional parameters
337
337
  # @option opts [Integer] :limit Maximum number of returned email verification results
@@ -343,7 +343,7 @@ module ElasticEmail
343
343
  end
344
344
 
345
345
  # Get Detailed File Verification Result
346
- # Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails, ViewEmailVerifications
346
+ # Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails
347
347
  # @param id [String] ID of the Verification to display status of
348
348
  # @param [Hash] opts the optional parameters
349
349
  # @option opts [Integer] :limit Maximum number of returned email verification results
@@ -526,7 +526,7 @@ module ElasticEmail
526
526
  end
527
527
 
528
528
  # Get Files Verification Results
529
- # Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails, ViewEmailVerifications
529
+ # Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails
530
530
  # @param [Hash] opts the optional parameters
531
531
  # @return [Array<VerificationFileResult>]
532
532
  def verifications_files_result_get(opts = {})
@@ -535,7 +535,7 @@ module ElasticEmail
535
535
  end
536
536
 
537
537
  # Get Files Verification Results
538
- # Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails, ViewEmailVerifications
538
+ # Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails
539
539
  # @param [Hash] opts the optional parameters
540
540
  # @return [Array<(Array<VerificationFileResult>, Integer, Hash)>] Array<VerificationFileResult> data, response status code and response headers
541
541
  def verifications_files_result_get_with_http_info(opts = {})
@@ -583,7 +583,7 @@ module ElasticEmail
583
583
  end
584
584
 
585
585
  # Get Emails Verification Results
586
- # Returns a results of all verified single emails. Required Access Level: VerifyEmails, ViewEmailVerifications
586
+ # Returns a results of all verified single emails. Required Access Level: VerifyEmails
587
587
  # @param [Hash] opts the optional parameters
588
588
  # @option opts [Integer] :limit Maximum number of returned items.
589
589
  # @option opts [Integer] :offset How many items should be returned ahead.
@@ -594,7 +594,7 @@ module ElasticEmail
594
594
  end
595
595
 
596
596
  # Get Emails Verification Results
597
- # Returns a results of all verified single emails. Required Access Level: VerifyEmails, ViewEmailVerifications
597
+ # Returns a results of all verified single emails. Required Access Level: VerifyEmails
598
598
  # @param [Hash] opts the optional parameters
599
599
  # @option opts [Integer] :limit Maximum number of returned items.
600
600
  # @option opts [Integer] :offset How many items should be returned ahead.
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -32,6 +32,7 @@ module ElasticEmail
32
32
  end
33
33
  else
34
34
  super arg
35
+ @message = arg
35
36
  end
36
37
  end
37
38
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -62,6 +62,11 @@ module ElasticEmail
62
62
  # Defines the access token (Bearer) used with OAuth2.
63
63
  attr_accessor :access_token
64
64
 
65
+ # Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2.
66
+ # Overrides the access_token if set
67
+ # @return [Proc]
68
+ attr_accessor :access_token_getter
69
+
65
70
  # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response
66
71
  # details will be logged with `logger.debug` (see the `logger` attribute).
67
72
  # Default to false.
@@ -208,6 +213,12 @@ module ElasticEmail
208
213
  end
209
214
  end
210
215
 
216
+ # Gets access_token using access_token_getter or uses the static access_token
217
+ def access_token_with_refresh
218
+ return access_token if access_token_getter.nil?
219
+ access_token_getter.call
220
+ end
221
+
211
222
  # Gets Basic Auth token string
212
223
  def basic_auth_token
213
224
  'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -51,22 +51,24 @@ module ElasticEmail
51
51
  MODIFY_LANGUAGE = "ModifyLanguage".freeze
52
52
  VIEW_SUPPORT = "ViewSupport".freeze
53
53
  SEND_HTTP = "SendHttp".freeze
54
- MODIFY2_FA = "Modify2FA".freeze
54
+ MODIFY2_FA_EMAIL = "Modify2FAEmail".freeze
55
55
  MODIFY_SUPPORT = "ModifySupport".freeze
56
56
  VIEW_CUSTOM_FIELDS = "ViewCustomFields".freeze
57
57
  MODIFY_CUSTOM_FIELDS = "ModifyCustomFields".freeze
58
58
  MODIFY_WEB_NOTIFICATIONS = "ModifyWebNotifications".freeze
59
59
  EXTENDED_LOGS = "ExtendedLogs".freeze
60
60
  VERIFY_EMAILS = "VerifyEmails".freeze
61
- VIEW_EMAIL_VERIFICATIONS = "ViewEmailVerifications".freeze
61
+ MODIFY2_FA_SMS = "Modify2FASms".freeze
62
62
  DISABLE_CONTACTS_STORE = "DisableContactsStore".freeze
63
63
  MODIFY_LANDING_PAGES = "ModifyLandingPages".freeze
64
64
  VIEW_LANDING_PAGES = "ViewLandingPages".freeze
65
65
  MODIFY_SUPPRESSIONS = "ModifySuppressions".freeze
66
66
  VIEW_SUPPRESSIONS = "ViewSuppressions".freeze
67
+ VIEW_DRAG_DROP_EDITOR = "ViewDragDropEditor".freeze
68
+ VIEW_TEMPLATE_EDITOR = "ViewTemplateEditor".freeze
67
69
 
68
70
  def self.all_vars
69
- @all_vars ||= [NONE, VIEW_ACCOUNT, VIEW_CONTACTS, VIEW_FORMS, VIEW_TEMPLATES, VIEW_CAMPAIGNS, VIEW_CHANNELS, VIEW_AUTOMATIONS, VIEW_SURVEYS, VIEW_SETTINGS, VIEW_BILLING, VIEW_SUB_ACCOUNTS, VIEW_USERS, VIEW_FILES, VIEW_REPORTS, MODIFY_ACCOUNT, MODIFY_CONTACTS, MODIFY_FORMS, MODIFY_TEMPLATES, MODIFY_CAMPAIGNS, MODIFY_CHANNELS, MODIFY_AUTOMATIONS, MODIFY_SURVEYS, MODIFY_FILES, EXPORT, SEND_SMTP, SEND_SMS, MODIFY_SETTINGS, MODIFY_BILLING, MODIFY_PROFILE, MODIFY_SUB_ACCOUNTS, MODIFY_USERS, SECURITY, MODIFY_LANGUAGE, VIEW_SUPPORT, SEND_HTTP, MODIFY2_FA, MODIFY_SUPPORT, VIEW_CUSTOM_FIELDS, MODIFY_CUSTOM_FIELDS, MODIFY_WEB_NOTIFICATIONS, EXTENDED_LOGS, VERIFY_EMAILS, VIEW_EMAIL_VERIFICATIONS, DISABLE_CONTACTS_STORE, MODIFY_LANDING_PAGES, VIEW_LANDING_PAGES, MODIFY_SUPPRESSIONS, VIEW_SUPPRESSIONS].freeze
71
+ @all_vars ||= [NONE, VIEW_ACCOUNT, VIEW_CONTACTS, VIEW_FORMS, VIEW_TEMPLATES, VIEW_CAMPAIGNS, VIEW_CHANNELS, VIEW_AUTOMATIONS, VIEW_SURVEYS, VIEW_SETTINGS, VIEW_BILLING, VIEW_SUB_ACCOUNTS, VIEW_USERS, VIEW_FILES, VIEW_REPORTS, MODIFY_ACCOUNT, MODIFY_CONTACTS, MODIFY_FORMS, MODIFY_TEMPLATES, MODIFY_CAMPAIGNS, MODIFY_CHANNELS, MODIFY_AUTOMATIONS, MODIFY_SURVEYS, MODIFY_FILES, EXPORT, SEND_SMTP, SEND_SMS, MODIFY_SETTINGS, MODIFY_BILLING, MODIFY_PROFILE, MODIFY_SUB_ACCOUNTS, MODIFY_USERS, SECURITY, MODIFY_LANGUAGE, VIEW_SUPPORT, SEND_HTTP, MODIFY2_FA_EMAIL, MODIFY_SUPPORT, VIEW_CUSTOM_FIELDS, MODIFY_CUSTOM_FIELDS, MODIFY_WEB_NOTIFICATIONS, EXTENDED_LOGS, VERIFY_EMAILS, MODIFY2_FA_SMS, DISABLE_CONTACTS_STORE, MODIFY_LANDING_PAGES, VIEW_LANDING_PAGES, MODIFY_SUPPRESSIONS, VIEW_SUPPRESSIONS, VIEW_DRAG_DROP_EDITOR, VIEW_TEMPLATE_EDITOR].freeze
70
72
  end
71
73
 
72
74
  # Builds the enum from string
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -21,9 +21,31 @@ module ElasticEmail
21
21
  # Actual content of the body part
22
22
  attr_accessor :content
23
23
 
24
- # Text value of charset encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and more
24
+ # Text value of charset encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and more...
25
25
  attr_accessor :charset
26
26
 
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
27
49
  # Attribute mapping from ruby-style variable name to JSON key.
28
50
  def self.attribute_map
29
51
  {
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -27,6 +27,28 @@ module ElasticEmail
27
27
 
28
28
  attr_accessor :options
29
29
 
30
+ class EnumAttributeValidator
31
+ attr_reader :datatype
32
+ attr_reader :allowable_values
33
+
34
+ def initialize(datatype, allowable_values)
35
+ @allowable_values = allowable_values.map do |value|
36
+ case datatype.to_s
37
+ when /Integer/i
38
+ value.to_i
39
+ when /Float/i
40
+ value.to_f
41
+ else
42
+ value
43
+ end
44
+ end
45
+ end
46
+
47
+ def valid?(value)
48
+ !value || allowable_values.include?(value)
49
+ end
50
+ end
51
+
30
52
  # Attribute mapping from ruby-style variable name to JSON key.
31
53
  def self.attribute_map
32
54
  {
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12
 
@@ -29,6 +29,28 @@ module ElasticEmail
29
29
 
30
30
  attr_accessor :split_options
31
31
 
32
+ class EnumAttributeValidator
33
+ attr_reader :datatype
34
+ attr_reader :allowable_values
35
+
36
+ def initialize(datatype, allowable_values)
37
+ @allowable_values = allowable_values.map do |value|
38
+ case datatype.to_s
39
+ when /Integer/i
40
+ value.to_i
41
+ when /Float/i
42
+ value.to_f
43
+ else
44
+ value
45
+ end
46
+ end
47
+ end
48
+
49
+ def valid?(value)
50
+ !value || allowable_values.include?(value)
51
+ end
52
+ end
53
+
32
54
  # Attribute mapping from ruby-style variable name to JSON key.
33
55
  def self.attribute_map
34
56
  {
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.2.1
9
+ OpenAPI Generator version: 6.3.0
10
10
 
11
11
  =end
12
12