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
@@ -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
 
@@ -35,6 +35,28 @@ module ElasticEmail
35
35
  # Origin file extension
36
36
  attr_accessor :source
37
37
 
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
38
60
  # Attribute mapping from ruby-style variable name to JSON key.
39
61
  def self.attribute_map
40
62
  {
@@ -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,10 +6,10 @@
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
 
13
13
  module ElasticEmail
14
- VERSION = '4.0.21'
14
+ VERSION = '4.0.22'
15
15
  end
data/lib/ElasticEmail.rb CHANGED
@@ -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
 
@@ -43,6 +43,7 @@ require 'ElasticEmail/models/delivery_optimization_type'
43
43
  require 'ElasticEmail/models/email_content'
44
44
  require 'ElasticEmail/models/email_data'
45
45
  require 'ElasticEmail/models/email_message_data'
46
+ require 'ElasticEmail/models/email_predicted_validation_status'
46
47
  require 'ElasticEmail/models/email_recipient'
47
48
  require 'ElasticEmail/models/email_send'
48
49
  require 'ElasticEmail/models/email_status'
@@ -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
 
@@ -0,0 +1,28 @@
1
+ =begin
2
+ #Elastic Email REST API
3
+
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://app.elasticemail.com/marketing/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
+
6
+ The version of the OpenAPI document: 4.0.0
7
+ Contact: support@elasticemail.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.3.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for ElasticEmail::EmailPredictedValidationStatus
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe ElasticEmail::EmailPredictedValidationStatus do
21
+ let(:instance) { ElasticEmail::EmailPredictedValidationStatus.new }
22
+
23
+ describe 'test an instance of EmailPredictedValidationStatus' do
24
+ it 'should create an instance of EmailPredictedValidationStatus' do
25
+ expect(instance).to be_instance_of(ElasticEmail::EmailPredictedValidationStatus)
26
+ end
27
+ end
28
+ end
data/spec/spec_helper.rb CHANGED
@@ -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
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ElasticEmail
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.21
4
+ version: 4.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - ElasticEmail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-29 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -95,6 +95,7 @@ files:
95
95
  - docs/EmailContent.md
96
96
  - docs/EmailData.md
97
97
  - docs/EmailMessageData.md
98
+ - docs/EmailPredictedValidationStatus.md
98
99
  - docs/EmailRecipient.md
99
100
  - docs/EmailSend.md
100
101
  - docs/EmailStatus.md
@@ -210,6 +211,7 @@ files:
210
211
  - lib/ElasticEmail/models/email_content.rb
211
212
  - lib/ElasticEmail/models/email_data.rb
212
213
  - lib/ElasticEmail/models/email_message_data.rb
214
+ - lib/ElasticEmail/models/email_predicted_validation_status.rb
213
215
  - lib/ElasticEmail/models/email_recipient.rb
214
216
  - lib/ElasticEmail/models/email_send.rb
215
217
  - lib/ElasticEmail/models/email_status.rb
@@ -312,6 +314,7 @@ files:
312
314
  - spec/models/email_content_spec.rb
313
315
  - spec/models/email_data_spec.rb
314
316
  - spec/models/email_message_data_spec.rb
317
+ - spec/models/email_predicted_validation_status_spec.rb
315
318
  - spec/models/email_recipient_spec.rb
316
319
  - spec/models/email_send_spec.rb
317
320
  - spec/models/email_status_spec.rb
@@ -382,7 +385,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
382
385
  requirements:
383
386
  - - ">="
384
387
  - !ruby/object:Gem::Version
385
- version: '2.4'
388
+ version: '2.7'
386
389
  required_rubygems_version: !ruby/object:Gem::Requirement
387
390
  requirements:
388
391
  - - ">="
@@ -431,6 +434,7 @@ test_files:
431
434
  - spec/models/encoding_type_spec.rb
432
435
  - spec/models/contacts_list_spec.rb
433
436
  - spec/models/inbound_route_action_type_spec.rb
437
+ - spec/models/email_predicted_validation_status_spec.rb
434
438
  - spec/models/inbound_payload_spec.rb
435
439
  - spec/models/campaign_recipient_spec.rb
436
440
  - spec/models/email_status_spec.rb