ElasticEmail 4.0.20 → 4.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ElasticEmail.gemspec +3 -3
- data/README.md +6 -8
- data/VERSION +1 -1
- data/docs/BodyPart.md +1 -1
- data/docs/ContactsApi.md +2 -78
- data/docs/EmailPredictedValidationStatus.md +15 -0
- data/docs/EmailValidationResult.md +5 -1
- data/docs/EmailsApi.md +1 -1
- data/docs/MessageAttachment.md +4 -2
- data/docs/VerificationsApi.md +4 -4
- data/lib/ElasticEmail/api/campaigns_api.rb +2 -2
- data/lib/ElasticEmail/api/contacts_api.rb +5 -71
- data/lib/ElasticEmail/api/emails_api.rb +2 -2
- data/lib/ElasticEmail/api/events_api.rb +2 -2
- data/lib/ElasticEmail/api/files_api.rb +2 -2
- data/lib/ElasticEmail/api/inbound_route_api.rb +2 -2
- data/lib/ElasticEmail/api/lists_api.rb +2 -2
- data/lib/ElasticEmail/api/security_api.rb +2 -2
- data/lib/ElasticEmail/api/segments_api.rb +2 -2
- data/lib/ElasticEmail/api/statistics_api.rb +2 -2
- data/lib/ElasticEmail/api/sub_accounts_api.rb +2 -2
- data/lib/ElasticEmail/api/suppressions_api.rb +2 -2
- data/lib/ElasticEmail/api/templates_api.rb +2 -2
- data/lib/ElasticEmail/api/verifications_api.rb +10 -10
- data/lib/ElasticEmail/api_client.rb +2 -2
- data/lib/ElasticEmail/api_error.rb +3 -2
- data/lib/ElasticEmail/configuration.rb +13 -2
- data/lib/ElasticEmail/models/access_level.rb +13 -10
- data/lib/ElasticEmail/models/account_status_enum.rb +8 -6
- data/lib/ElasticEmail/models/api_key.rb +2 -2
- data/lib/ElasticEmail/models/api_key_payload.rb +2 -2
- data/lib/ElasticEmail/models/body_content_type.rb +8 -5
- data/lib/ElasticEmail/models/body_part.rb +25 -3
- data/lib/ElasticEmail/models/campaign.rb +24 -2
- data/lib/ElasticEmail/models/campaign_options.rb +24 -2
- data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
- data/lib/ElasticEmail/models/campaign_status.rb +8 -5
- data/lib/ElasticEmail/models/campaign_template.rb +2 -2
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
- data/lib/ElasticEmail/models/compression_format.rb +8 -5
- data/lib/ElasticEmail/models/consent_data.rb +24 -2
- data/lib/ElasticEmail/models/consent_tracking.rb +8 -5
- data/lib/ElasticEmail/models/contact.rb +24 -2
- data/lib/ElasticEmail/models/contact_activity.rb +2 -2
- data/lib/ElasticEmail/models/contact_payload.rb +24 -2
- data/lib/ElasticEmail/models/contact_source.rb +8 -5
- data/lib/ElasticEmail/models/contact_status.rb +8 -5
- data/lib/ElasticEmail/models/contact_update_payload.rb +2 -2
- data/lib/ElasticEmail/models/contacts_list.rb +2 -2
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +8 -5
- data/lib/ElasticEmail/models/email_content.rb +2 -2
- data/lib/ElasticEmail/models/email_data.rb +2 -2
- data/lib/ElasticEmail/models/email_message_data.rb +2 -2
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +43 -0
- data/lib/ElasticEmail/models/email_recipient.rb +2 -2
- data/lib/ElasticEmail/models/email_send.rb +2 -2
- data/lib/ElasticEmail/models/email_status.rb +24 -2
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +2 -2
- data/lib/ElasticEmail/models/email_validation_result.rb +48 -6
- data/lib/ElasticEmail/models/email_validation_status.rb +8 -5
- data/lib/ElasticEmail/models/email_view.rb +2 -2
- data/lib/ElasticEmail/models/emails_payload.rb +2 -2
- data/lib/ElasticEmail/models/encoding_type.rb +8 -5
- data/lib/ElasticEmail/models/event_type.rb +8 -5
- data/lib/ElasticEmail/models/events_order_by.rb +8 -5
- data/lib/ElasticEmail/models/export_file_formats.rb +8 -5
- data/lib/ElasticEmail/models/export_link.rb +2 -2
- data/lib/ElasticEmail/models/export_status.rb +8 -5
- data/lib/ElasticEmail/models/file_info.rb +2 -2
- data/lib/ElasticEmail/models/file_payload.rb +2 -2
- data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
- data/lib/ElasticEmail/models/inbound_payload.rb +24 -2
- data/lib/ElasticEmail/models/inbound_route.rb +24 -2
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +8 -5
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +8 -5
- data/lib/ElasticEmail/models/list_payload.rb +2 -2
- data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
- data/lib/ElasticEmail/models/log_job_status.rb +8 -5
- data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
- data/lib/ElasticEmail/models/merge_email_payload.rb +2 -2
- data/lib/ElasticEmail/models/message_attachment.rb +21 -6
- data/lib/ElasticEmail/models/message_category.rb +8 -5
- data/lib/ElasticEmail/models/new_api_key.rb +2 -2
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +24 -2
- data/lib/ElasticEmail/models/options.rb +24 -2
- data/lib/ElasticEmail/models/recipient_event.rb +24 -2
- data/lib/ElasticEmail/models/segment.rb +2 -2
- data/lib/ElasticEmail/models/segment_payload.rb +2 -2
- data/lib/ElasticEmail/models/smtp_credentials.rb +24 -2
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +2 -2
- data/lib/ElasticEmail/models/sort_order_item.rb +2 -2
- data/lib/ElasticEmail/models/split_optimization_type.rb +8 -5
- data/lib/ElasticEmail/models/split_options.rb +24 -2
- data/lib/ElasticEmail/models/sub_account_info.rb +24 -2
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_payload.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -2
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -2
- data/lib/ElasticEmail/models/suppression.rb +2 -2
- data/lib/ElasticEmail/models/template.rb +24 -2
- data/lib/ElasticEmail/models/template_payload.rb +24 -2
- data/lib/ElasticEmail/models/template_scope.rb +8 -5
- data/lib/ElasticEmail/models/template_type.rb +9 -5
- data/lib/ElasticEmail/models/transactional_recipient.rb +2 -2
- data/lib/ElasticEmail/models/utm.rb +2 -2
- data/lib/ElasticEmail/models/verification_file_result.rb +24 -2
- data/lib/ElasticEmail/models/verification_file_result_details.rb +24 -2
- data/lib/ElasticEmail/models/verification_status.rb +8 -5
- data/lib/ElasticEmail/version.rb +3 -3
- data/lib/ElasticEmail.rb +3 -4
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/email_predicted_validation_status_spec.rb +28 -0
- data/spec/spec_helper.rb +2 -2
- metadata +7 -3
@@ -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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -41,6 +41,32 @@ module ElasticEmail
|
|
41
41
|
|
42
42
|
attr_accessor :result
|
43
43
|
|
44
|
+
attr_accessor :predicted_score
|
45
|
+
|
46
|
+
attr_accessor :predicted_status
|
47
|
+
|
48
|
+
class EnumAttributeValidator
|
49
|
+
attr_reader :datatype
|
50
|
+
attr_reader :allowable_values
|
51
|
+
|
52
|
+
def initialize(datatype, allowable_values)
|
53
|
+
@allowable_values = allowable_values.map do |value|
|
54
|
+
case datatype.to_s
|
55
|
+
when /Integer/i
|
56
|
+
value.to_i
|
57
|
+
when /Float/i
|
58
|
+
value.to_f
|
59
|
+
else
|
60
|
+
value
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def valid?(value)
|
66
|
+
!value || allowable_values.include?(value)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
44
70
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
71
|
def self.attribute_map
|
46
72
|
{
|
@@ -52,7 +78,9 @@ module ElasticEmail
|
|
52
78
|
:'role' => :'Role',
|
53
79
|
:'reason' => :'Reason',
|
54
80
|
:'date_added' => :'DateAdded',
|
55
|
-
:'result' => :'Result'
|
81
|
+
:'result' => :'Result',
|
82
|
+
:'predicted_score' => :'PredictedScore',
|
83
|
+
:'predicted_status' => :'PredictedStatus'
|
56
84
|
}
|
57
85
|
end
|
58
86
|
|
@@ -72,7 +100,9 @@ module ElasticEmail
|
|
72
100
|
:'role' => :'Boolean',
|
73
101
|
:'reason' => :'String',
|
74
102
|
:'date_added' => :'Time',
|
75
|
-
:'result' => :'EmailValidationStatus'
|
103
|
+
:'result' => :'EmailValidationStatus',
|
104
|
+
:'predicted_score' => :'Float',
|
105
|
+
:'predicted_status' => :'EmailPredictedValidationStatus'
|
76
106
|
}
|
77
107
|
end
|
78
108
|
|
@@ -134,6 +164,16 @@ module ElasticEmail
|
|
134
164
|
else
|
135
165
|
self.result = 'None'
|
136
166
|
end
|
167
|
+
|
168
|
+
if attributes.key?(:'predicted_score')
|
169
|
+
self.predicted_score = attributes[:'predicted_score']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'predicted_status')
|
173
|
+
self.predicted_status = attributes[:'predicted_status']
|
174
|
+
else
|
175
|
+
self.predicted_status = 'None'
|
176
|
+
end
|
137
177
|
end
|
138
178
|
|
139
179
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -162,7 +202,9 @@ module ElasticEmail
|
|
162
202
|
role == o.role &&
|
163
203
|
reason == o.reason &&
|
164
204
|
date_added == o.date_added &&
|
165
|
-
result == o.result
|
205
|
+
result == o.result &&
|
206
|
+
predicted_score == o.predicted_score &&
|
207
|
+
predicted_status == o.predicted_status
|
166
208
|
end
|
167
209
|
|
168
210
|
# @see the `==` method
|
@@ -174,7 +216,7 @@ module ElasticEmail
|
|
174
216
|
# Calculates hash code according to all attributes.
|
175
217
|
# @return [Integer] Hash code
|
176
218
|
def hash
|
177
|
-
[account, domain, email, suggested_spelling, disposable, role, reason, date_added, result].hash
|
219
|
+
[account, domain, email, suggested_spelling, disposable, role, reason, date_added, result, predicted_score, predicted_status].hash
|
178
220
|
end
|
179
221
|
|
180
222
|
# Builds the object from hash
|
@@ -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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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
|
-
|
36
|
-
raise "Invalid ENUM value #{value} for class #EmailValidationStatus"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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
|
-
|
38
|
-
raise "Invalid ENUM value #{value} for class #EncodingType"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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
|
-
|
39
|
-
raise "Invalid ENUM value #{value} for class #EventType"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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
|
-
|
33
|
-
raise "Invalid ENUM value #{value} for class #EventsOrderBy"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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
|
-
|
34
|
-
raise "Invalid ENUM value #{value} for class #ExportFileFormats"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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
|
-
|
35
|
-
raise "Invalid ENUM value #{value} for class #ExportStatus"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,6 +31,28 @@ module ElasticEmail
|
|
31
31
|
# Address to notify about the inbound
|
32
32
|
attr_accessor :http_address
|
33
33
|
|
34
|
+
class EnumAttributeValidator
|
35
|
+
attr_reader :datatype
|
36
|
+
attr_reader :allowable_values
|
37
|
+
|
38
|
+
def initialize(datatype, allowable_values)
|
39
|
+
@allowable_values = allowable_values.map do |value|
|
40
|
+
case datatype.to_s
|
41
|
+
when /Integer/i
|
42
|
+
value.to_i
|
43
|
+
when /Float/i
|
44
|
+
value.to_f
|
45
|
+
else
|
46
|
+
value
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def valid?(value)
|
52
|
+
!value || allowable_values.include?(value)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
34
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
57
|
def self.attribute_map
|
36
58
|
{
|
@@ -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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -33,6 +33,28 @@ module ElasticEmail
|
|
33
33
|
# Place of this route in your routes queue's order
|
34
34
|
attr_accessor :sort_order
|
35
35
|
|
36
|
+
class EnumAttributeValidator
|
37
|
+
attr_reader :datatype
|
38
|
+
attr_reader :allowable_values
|
39
|
+
|
40
|
+
def initialize(datatype, allowable_values)
|
41
|
+
@allowable_values = allowable_values.map do |value|
|
42
|
+
case datatype.to_s
|
43
|
+
when /Integer/i
|
44
|
+
value.to_i
|
45
|
+
when /Float/i
|
46
|
+
value.to_f
|
47
|
+
else
|
48
|
+
value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def valid?(value)
|
54
|
+
!value || allowable_values.include?(value)
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
36
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
59
|
def self.attribute_map
|
38
60
|
{
|
@@ -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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,6 +19,10 @@ module ElasticEmail
|
|
19
19
|
NOTIFY_VIA_HTTP = "NotifyViaHttp".freeze
|
20
20
|
STOP = "Stop".freeze
|
21
21
|
|
22
|
+
def self.all_vars
|
23
|
+
@all_vars ||= [FORWARD_TO_EMAIL, NOTIFY_VIA_HTTP, STOP].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
|
-
|
34
|
-
raise "Invalid ENUM value #{value} for class #InboundRouteActionType"
|
35
|
-
value
|
37
|
+
return value if InboundRouteActionType.all_vars.include?(value)
|
38
|
+
raise "Invalid ENUM value #{value} for class #InboundRouteActionType"
|
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/
|
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.
|
9
|
+
OpenAPI Generator version: 6.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,6 +18,10 @@ module ElasticEmail
|
|
18
18
|
EMAIL_ADDRESS = "EmailAddress".freeze
|
19
19
|
SUBJECT = "Subject".freeze
|
20
20
|
|
21
|
+
def self.all_vars
|
22
|
+
@all_vars ||= [EMAIL_ADDRESS, SUBJECT].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
|
-
|
33
|
-
raise "Invalid ENUM value #{value} for class #InboundRouteFilterType"
|
34
|
-
value
|
36
|
+
return value if InboundRouteFilterType.all_vars.include?(value)
|
37
|
+
raise "Invalid ENUM value #{value} for class #InboundRouteFilterType"
|
35
38
|
end
|
36
39
|
end
|
37
40
|
end
|