ElasticEmail 4.0.20 → 4.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +2 -2
  3. data/README.md +5 -8
  4. data/VERSION +1 -1
  5. data/docs/ContactsApi.md +2 -78
  6. data/docs/EmailsApi.md +1 -1
  7. data/docs/MessageAttachment.md +1 -1
  8. data/docs/VerificationsApi.md +4 -4
  9. data/lib/ElasticEmail/api/campaigns_api.rb +2 -2
  10. data/lib/ElasticEmail/api/contacts_api.rb +5 -71
  11. data/lib/ElasticEmail/api/emails_api.rb +2 -2
  12. data/lib/ElasticEmail/api/events_api.rb +2 -2
  13. data/lib/ElasticEmail/api/files_api.rb +2 -2
  14. data/lib/ElasticEmail/api/inbound_route_api.rb +2 -2
  15. data/lib/ElasticEmail/api/lists_api.rb +2 -2
  16. data/lib/ElasticEmail/api/security_api.rb +2 -2
  17. data/lib/ElasticEmail/api/segments_api.rb +2 -2
  18. data/lib/ElasticEmail/api/statistics_api.rb +2 -2
  19. data/lib/ElasticEmail/api/sub_accounts_api.rb +2 -2
  20. data/lib/ElasticEmail/api/suppressions_api.rb +2 -2
  21. data/lib/ElasticEmail/api/templates_api.rb +2 -2
  22. data/lib/ElasticEmail/api/verifications_api.rb +10 -10
  23. data/lib/ElasticEmail/api_client.rb +2 -2
  24. data/lib/ElasticEmail/api_error.rb +2 -2
  25. data/lib/ElasticEmail/configuration.rb +2 -2
  26. data/lib/ElasticEmail/models/access_level.rb +9 -8
  27. data/lib/ElasticEmail/models/account_status_enum.rb +8 -6
  28. data/lib/ElasticEmail/models/api_key.rb +2 -2
  29. data/lib/ElasticEmail/models/api_key_payload.rb +2 -2
  30. data/lib/ElasticEmail/models/body_content_type.rb +8 -5
  31. data/lib/ElasticEmail/models/body_part.rb +2 -2
  32. data/lib/ElasticEmail/models/campaign.rb +2 -2
  33. data/lib/ElasticEmail/models/campaign_options.rb +2 -2
  34. data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
  35. data/lib/ElasticEmail/models/campaign_status.rb +8 -5
  36. data/lib/ElasticEmail/models/campaign_template.rb +2 -2
  37. data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
  38. data/lib/ElasticEmail/models/compression_format.rb +8 -5
  39. data/lib/ElasticEmail/models/consent_data.rb +2 -2
  40. data/lib/ElasticEmail/models/consent_tracking.rb +8 -5
  41. data/lib/ElasticEmail/models/contact.rb +2 -2
  42. data/lib/ElasticEmail/models/contact_activity.rb +2 -2
  43. data/lib/ElasticEmail/models/contact_payload.rb +2 -2
  44. data/lib/ElasticEmail/models/contact_source.rb +8 -5
  45. data/lib/ElasticEmail/models/contact_status.rb +8 -5
  46. data/lib/ElasticEmail/models/contact_update_payload.rb +2 -2
  47. data/lib/ElasticEmail/models/contacts_list.rb +2 -2
  48. data/lib/ElasticEmail/models/delivery_optimization_type.rb +8 -5
  49. data/lib/ElasticEmail/models/email_content.rb +2 -2
  50. data/lib/ElasticEmail/models/email_data.rb +2 -2
  51. data/lib/ElasticEmail/models/email_message_data.rb +2 -2
  52. data/lib/ElasticEmail/models/email_recipient.rb +2 -2
  53. data/lib/ElasticEmail/models/email_send.rb +2 -2
  54. data/lib/ElasticEmail/models/email_status.rb +2 -2
  55. data/lib/ElasticEmail/models/email_transactional_message_data.rb +2 -2
  56. data/lib/ElasticEmail/models/email_validation_result.rb +2 -2
  57. data/lib/ElasticEmail/models/email_validation_status.rb +8 -5
  58. data/lib/ElasticEmail/models/email_view.rb +2 -2
  59. data/lib/ElasticEmail/models/emails_payload.rb +2 -2
  60. data/lib/ElasticEmail/models/encoding_type.rb +8 -5
  61. data/lib/ElasticEmail/models/event_type.rb +8 -5
  62. data/lib/ElasticEmail/models/events_order_by.rb +8 -5
  63. data/lib/ElasticEmail/models/export_file_formats.rb +8 -5
  64. data/lib/ElasticEmail/models/export_link.rb +2 -2
  65. data/lib/ElasticEmail/models/export_status.rb +8 -5
  66. data/lib/ElasticEmail/models/file_info.rb +2 -2
  67. data/lib/ElasticEmail/models/file_payload.rb +2 -2
  68. data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
  69. data/lib/ElasticEmail/models/inbound_payload.rb +2 -2
  70. data/lib/ElasticEmail/models/inbound_route.rb +2 -2
  71. data/lib/ElasticEmail/models/inbound_route_action_type.rb +8 -5
  72. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +8 -5
  73. data/lib/ElasticEmail/models/list_payload.rb +2 -2
  74. data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
  75. data/lib/ElasticEmail/models/log_job_status.rb +8 -5
  76. data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
  77. data/lib/ElasticEmail/models/merge_email_payload.rb +2 -2
  78. data/lib/ElasticEmail/models/message_attachment.rb +7 -2
  79. data/lib/ElasticEmail/models/message_category.rb +8 -5
  80. data/lib/ElasticEmail/models/new_api_key.rb +2 -2
  81. data/lib/ElasticEmail/models/new_smtp_credentials.rb +2 -2
  82. data/lib/ElasticEmail/models/options.rb +2 -2
  83. data/lib/ElasticEmail/models/recipient_event.rb +2 -2
  84. data/lib/ElasticEmail/models/segment.rb +2 -2
  85. data/lib/ElasticEmail/models/segment_payload.rb +2 -2
  86. data/lib/ElasticEmail/models/smtp_credentials.rb +2 -2
  87. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +2 -2
  88. data/lib/ElasticEmail/models/sort_order_item.rb +2 -2
  89. data/lib/ElasticEmail/models/split_optimization_type.rb +8 -5
  90. data/lib/ElasticEmail/models/split_options.rb +2 -2
  91. data/lib/ElasticEmail/models/sub_account_info.rb +2 -2
  92. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +2 -2
  93. data/lib/ElasticEmail/models/subaccount_email_settings.rb +2 -2
  94. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +2 -2
  95. data/lib/ElasticEmail/models/subaccount_payload.rb +2 -2
  96. data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -2
  97. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -2
  98. data/lib/ElasticEmail/models/suppression.rb +2 -2
  99. data/lib/ElasticEmail/models/template.rb +2 -2
  100. data/lib/ElasticEmail/models/template_payload.rb +2 -2
  101. data/lib/ElasticEmail/models/template_scope.rb +8 -5
  102. data/lib/ElasticEmail/models/template_type.rb +8 -5
  103. data/lib/ElasticEmail/models/transactional_recipient.rb +2 -2
  104. data/lib/ElasticEmail/models/utm.rb +2 -2
  105. data/lib/ElasticEmail/models/verification_file_result.rb +2 -2
  106. data/lib/ElasticEmail/models/verification_file_result_details.rb +2 -2
  107. data/lib/ElasticEmail/models/verification_status.rb +8 -5
  108. data/lib/ElasticEmail/version.rb +3 -3
  109. data/lib/ElasticEmail.rb +2 -4
  110. data/spec/api_client_spec.rb +2 -2
  111. data/spec/configuration_spec.rb +2 -2
  112. data/spec/spec_helper.rb +2 -2
  113. metadata +2 -2
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -23,6 +23,10 @@ module ElasticEmail
23
23
  VERIFICATION_API = "VerificationApi".freeze
24
24
  FILE_VERIFICATION_API = "FileVerificationApi".freeze
25
25
 
26
+ def self.all_vars
27
+ @all_vars ||= [DELIVERY_API, MANUAL_INPUT, FILE_UPLOAD, WEB_FORM, CONTACT_API, VERIFICATION_API, FILE_VERIFICATION_API].freeze
28
+ end
29
+
26
30
  # Builds the enum from string
27
31
  # @param [String] The enum value in the form of the string
28
32
  # @return [String] The enum value
@@ -34,9 +38,8 @@ module ElasticEmail
34
38
  # @param [String] The enum value in the form of the string
35
39
  # @return [String] The enum value
36
40
  def build_from_hash(value)
37
- constantValues = ContactSource.constants.select { |c| ContactSource::const_get(c) == value }
38
- raise "Invalid ENUM value #{value} for class #ContactSource" if constantValues.empty?
39
- value
41
+ return value if ContactSource.all_vars.include?(value)
42
+ raise "Invalid ENUM value #{value} for class #ContactSource"
40
43
  end
41
44
  end
42
45
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -25,6 +25,10 @@ module ElasticEmail
25
25
  STALE = "Stale".freeze
26
26
  NOT_CONFIRMED = "NotConfirmed".freeze
27
27
 
28
+ def self.all_vars
29
+ @all_vars ||= [TRANSACTIONAL, ENGAGED, ACTIVE, BOUNCED, UNSUBSCRIBED, ABUSE, INACTIVE, STALE, NOT_CONFIRMED].freeze
30
+ end
31
+
28
32
  # Builds the enum from string
29
33
  # @param [String] The enum value in the form of the string
30
34
  # @return [String] The enum value
@@ -36,9 +40,8 @@ module ElasticEmail
36
40
  # @param [String] The enum value in the form of the string
37
41
  # @return [String] The enum value
38
42
  def build_from_hash(value)
39
- constantValues = ContactStatus.constants.select { |c| ContactStatus::const_get(c) == value }
40
- raise "Invalid ENUM value #{value} for class #ContactStatus" if constantValues.empty?
41
- value
43
+ return value if ContactStatus.all_vars.include?(value)
44
+ raise "Invalid ENUM value #{value} for class #ContactStatus"
42
45
  end
43
46
  end
44
47
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -19,6 +19,10 @@ module ElasticEmail
19
19
  TO_ENGAGED_FIRST = "ToEngagedFirst".freeze
20
20
  BY_OPEN_TIME = "ByOpenTime".freeze
21
21
 
22
+ def self.all_vars
23
+ @all_vars ||= [NONE, TO_ENGAGED_FIRST, BY_OPEN_TIME].freeze
24
+ end
25
+
22
26
  # Builds the enum from string
23
27
  # @param [String] The enum value in the form of the string
24
28
  # @return [String] The enum value
@@ -30,9 +34,8 @@ module ElasticEmail
30
34
  # @param [String] The enum value in the form of the string
31
35
  # @return [String] The enum value
32
36
  def build_from_hash(value)
33
- constantValues = DeliveryOptimizationType.constants.select { |c| DeliveryOptimizationType::const_get(c) == value }
34
- raise "Invalid ENUM value #{value} for class #DeliveryOptimizationType" if constantValues.empty?
35
- value
37
+ return value if DeliveryOptimizationType.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #DeliveryOptimizationType"
36
39
  end
37
40
  end
38
41
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -21,6 +21,10 @@ module ElasticEmail
21
21
  RISKY = "Risky".freeze
22
22
  INVALID = "Invalid".freeze
23
23
 
24
+ def self.all_vars
25
+ @all_vars ||= [NONE, VALID, UNKNOWN, RISKY, INVALID].freeze
26
+ end
27
+
24
28
  # Builds the enum from string
25
29
  # @param [String] The enum value in the form of the string
26
30
  # @return [String] The enum value
@@ -32,9 +36,8 @@ module ElasticEmail
32
36
  # @param [String] The enum value in the form of the string
33
37
  # @return [String] The enum value
34
38
  def build_from_hash(value)
35
- constantValues = EmailValidationStatus.constants.select { |c| EmailValidationStatus::const_get(c) == value }
36
- raise "Invalid ENUM value #{value} for class #EmailValidationStatus" if constantValues.empty?
37
- value
39
+ return value if EmailValidationStatus.all_vars.include?(value)
40
+ raise "Invalid ENUM value #{value} for class #EmailValidationStatus"
38
41
  end
39
42
  end
40
43
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -23,6 +23,10 @@ module ElasticEmail
23
23
  BASE64 = "Base64".freeze
24
24
  UUE = "Uue".freeze
25
25
 
26
+ def self.all_vars
27
+ @all_vars ||= [USER_PROVIDED, NONE, RAW7BIT, RAW8BIT, QUOTED_PRINTABLE, BASE64, UUE].freeze
28
+ end
29
+
26
30
  # Builds the enum from string
27
31
  # @param [String] The enum value in the form of the string
28
32
  # @return [String] The enum value
@@ -34,9 +38,8 @@ module ElasticEmail
34
38
  # @param [String] The enum value in the form of the string
35
39
  # @return [String] The enum value
36
40
  def build_from_hash(value)
37
- constantValues = EncodingType.constants.select { |c| EncodingType::const_get(c) == value }
38
- raise "Invalid ENUM value #{value} for class #EncodingType" if constantValues.empty?
39
- value
41
+ return value if EncodingType.all_vars.include?(value)
42
+ raise "Invalid ENUM value #{value} for class #EncodingType"
40
43
  end
41
44
  end
42
45
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -24,6 +24,10 @@ module ElasticEmail
24
24
  UNSUBSCRIBE = "Unsubscribe".freeze
25
25
  COMPLAINT = "Complaint".freeze
26
26
 
27
+ def self.all_vars
28
+ @all_vars ||= [SUBMISSION, FAILED_ATTEMPT, BOUNCE, SENT, OPEN, CLICK, UNSUBSCRIBE, COMPLAINT].freeze
29
+ end
30
+
27
31
  # Builds the enum from string
28
32
  # @param [String] The enum value in the form of the string
29
33
  # @return [String] The enum value
@@ -35,9 +39,8 @@ module ElasticEmail
35
39
  # @param [String] The enum value in the form of the string
36
40
  # @return [String] The enum value
37
41
  def build_from_hash(value)
38
- constantValues = EventType.constants.select { |c| EventType::const_get(c) == value }
39
- raise "Invalid ENUM value #{value} for class #EventType" if constantValues.empty?
40
- value
42
+ return value if EventType.all_vars.include?(value)
43
+ raise "Invalid ENUM value #{value} for class #EventType"
41
44
  end
42
45
  end
43
46
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -18,6 +18,10 @@ module ElasticEmail
18
18
  DATE_DESCENDING = "DateDescending".freeze
19
19
  DATE_ASCENDING = "DateAscending".freeze
20
20
 
21
+ def self.all_vars
22
+ @all_vars ||= [DATE_DESCENDING, DATE_ASCENDING].freeze
23
+ end
24
+
21
25
  # Builds the enum from string
22
26
  # @param [String] The enum value in the form of the string
23
27
  # @return [String] The enum value
@@ -29,9 +33,8 @@ module ElasticEmail
29
33
  # @param [String] The enum value in the form of the string
30
34
  # @return [String] The enum value
31
35
  def build_from_hash(value)
32
- constantValues = EventsOrderBy.constants.select { |c| EventsOrderBy::const_get(c) == value }
33
- raise "Invalid ENUM value #{value} for class #EventsOrderBy" if constantValues.empty?
34
- value
36
+ return value if EventsOrderBy.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #EventsOrderBy"
35
38
  end
36
39
  end
37
40
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -19,6 +19,10 @@ module ElasticEmail
19
19
  XML = "Xml".freeze
20
20
  JSON = "Json".freeze
21
21
 
22
+ def self.all_vars
23
+ @all_vars ||= [CSV, XML, JSON].freeze
24
+ end
25
+
22
26
  # Builds the enum from string
23
27
  # @param [String] The enum value in the form of the string
24
28
  # @return [String] The enum value
@@ -30,9 +34,8 @@ module ElasticEmail
30
34
  # @param [String] The enum value in the form of the string
31
35
  # @return [String] The enum value
32
36
  def build_from_hash(value)
33
- constantValues = ExportFileFormats.constants.select { |c| ExportFileFormats::const_get(c) == value }
34
- raise "Invalid ENUM value #{value} for class #ExportFileFormats" if constantValues.empty?
35
- value
37
+ return value if ExportFileFormats.all_vars.include?(value)
38
+ raise "Invalid ENUM value #{value} for class #ExportFileFormats"
36
39
  end
37
40
  end
38
41
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12
 
@@ -20,6 +20,10 @@ module ElasticEmail
20
20
  READY = "Ready".freeze
21
21
  EXPIRED = "Expired".freeze
22
22
 
23
+ def self.all_vars
24
+ @all_vars ||= [ERROR, LOADING, READY, EXPIRED].freeze
25
+ end
26
+
23
27
  # Builds the enum from string
24
28
  # @param [String] The enum value in the form of the string
25
29
  # @return [String] The enum value
@@ -31,9 +35,8 @@ module ElasticEmail
31
35
  # @param [String] The enum value in the form of the string
32
36
  # @return [String] The enum value
33
37
  def build_from_hash(value)
34
- constantValues = ExportStatus.constants.select { |c| ExportStatus::const_get(c) == value }
35
- raise "Invalid ENUM value #{value} for class #ExportStatus" if constantValues.empty?
36
- value
38
+ return value if ExportStatus.all_vars.include?(value)
39
+ raise "Invalid ENUM value #{value} for class #ExportStatus"
37
40
  end
38
41
  end
39
42
  end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
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://elasticemail.com/account#/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>
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
5
 
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.0.0
9
+ OpenAPI Generator version: 6.2.1
10
10
 
11
11
  =end
12
12