ElasticEmail 4.0.16 → 4.0.21
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 +7 -12
- data/VERSION +1 -1
- data/docs/ContactsApi.md +2 -78
- data/docs/EmailsApi.md +1 -1
- data/docs/MessageAttachment.md +1 -1
- data/docs/SuppressionsApi.md +12 -12
- data/docs/VerificationsApi.md +4 -4
- data/lib/ElasticEmail/api/campaigns_api.rb +2 -2
- data/lib/ElasticEmail/api/contacts_api.rb +7 -73
- data/lib/ElasticEmail/api/emails_api.rb +2 -2
- data/lib/ElasticEmail/api/events_api.rb +9 -9
- 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 +26 -26
- data/lib/ElasticEmail/api/templates_api.rb +2 -2
- data/lib/ElasticEmail/api/verifications_api.rb +10 -10
- data/lib/ElasticEmail/api_client.rb +5 -3
- data/lib/ElasticEmail/api_error.rb +2 -2
- data/lib/ElasticEmail/configuration.rb +4 -3
- data/lib/ElasticEmail/models/access_level.rb +13 -8
- data/lib/ElasticEmail/models/account_status_enum.rb +8 -6
- data/lib/ElasticEmail/models/api_key.rb +3 -2
- data/lib/ElasticEmail/models/api_key_payload.rb +3 -2
- data/lib/ElasticEmail/models/body_content_type.rb +8 -5
- data/lib/ElasticEmail/models/body_part.rb +3 -2
- data/lib/ElasticEmail/models/campaign.rb +3 -2
- data/lib/ElasticEmail/models/campaign_options.rb +3 -2
- data/lib/ElasticEmail/models/campaign_recipient.rb +3 -2
- data/lib/ElasticEmail/models/campaign_status.rb +8 -5
- data/lib/ElasticEmail/models/campaign_template.rb +3 -2
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +3 -2
- data/lib/ElasticEmail/models/compression_format.rb +8 -5
- data/lib/ElasticEmail/models/consent_data.rb +3 -2
- data/lib/ElasticEmail/models/consent_tracking.rb +8 -5
- data/lib/ElasticEmail/models/contact.rb +3 -2
- data/lib/ElasticEmail/models/contact_activity.rb +3 -2
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
- data/lib/ElasticEmail/models/contact_history.rb +3 -2
- data/lib/ElasticEmail/models/contact_payload.rb +3 -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 +3 -2
- data/lib/ElasticEmail/models/contacts_list.rb +3 -2
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +8 -5
- data/lib/ElasticEmail/models/email_content.rb +3 -2
- data/lib/ElasticEmail/models/email_data.rb +3 -2
- data/lib/ElasticEmail/models/email_message_data.rb +3 -2
- data/lib/ElasticEmail/models/email_recipient.rb +3 -2
- data/lib/ElasticEmail/models/email_send.rb +3 -2
- data/lib/ElasticEmail/models/email_status.rb +3 -2
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +3 -2
- data/lib/ElasticEmail/models/email_validation_result.rb +3 -2
- data/lib/ElasticEmail/models/email_validation_status.rb +8 -5
- data/lib/ElasticEmail/models/email_view.rb +3 -2
- data/lib/ElasticEmail/models/emails_payload.rb +3 -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 +3 -2
- data/lib/ElasticEmail/models/export_status.rb +8 -5
- data/lib/ElasticEmail/models/file_info.rb +3 -2
- data/lib/ElasticEmail/models/file_payload.rb +3 -2
- data/lib/ElasticEmail/models/file_upload_result.rb +3 -2
- data/lib/ElasticEmail/models/inbound_payload.rb +3 -2
- data/lib/ElasticEmail/models/inbound_route.rb +3 -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 +3 -2
- data/lib/ElasticEmail/models/list_update_payload.rb +3 -2
- data/lib/ElasticEmail/models/log_job_status.rb +8 -5
- data/lib/ElasticEmail/models/log_status_summary.rb +3 -2
- data/lib/ElasticEmail/models/merge_email_payload.rb +3 -2
- data/lib/ElasticEmail/models/message_attachment.rb +8 -2
- data/lib/ElasticEmail/models/message_category.rb +8 -5
- data/lib/ElasticEmail/models/new_api_key.rb +3 -2
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +3 -2
- data/lib/ElasticEmail/models/options.rb +3 -2
- data/lib/ElasticEmail/models/recipient_event.rb +3 -2
- data/lib/ElasticEmail/models/segment.rb +3 -2
- data/lib/ElasticEmail/models/segment_payload.rb +3 -2
- data/lib/ElasticEmail/models/smtp_credentials.rb +3 -2
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +3 -2
- data/lib/ElasticEmail/models/sort_order_item.rb +3 -2
- data/lib/ElasticEmail/models/split_optimization_type.rb +8 -5
- data/lib/ElasticEmail/models/split_options.rb +3 -2
- data/lib/ElasticEmail/models/sub_account_info.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_payload.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +3 -2
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +3 -2
- data/lib/ElasticEmail/models/suppression.rb +3 -2
- data/lib/ElasticEmail/models/template.rb +3 -2
- data/lib/ElasticEmail/models/template_payload.rb +3 -2
- data/lib/ElasticEmail/models/template_scope.rb +8 -5
- data/lib/ElasticEmail/models/template_type.rb +8 -5
- data/lib/ElasticEmail/models/transactional_recipient.rb +3 -2
- data/lib/ElasticEmail/models/utm.rb +3 -2
- data/lib/ElasticEmail/models/verification_file_result.rb +3 -2
- data/lib/ElasticEmail/models/verification_file_result_details.rb +3 -2
- data/lib/ElasticEmail/models/verification_status.rb +8 -5
- data/lib/ElasticEmail/version.rb +3 -3
- data/lib/ElasticEmail.rb +2 -4
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +7 -13
@@ -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:
|
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/
|
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:
|
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/
|
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:
|
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/
|
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:
|
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/
|
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:
|
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/
|
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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -20,7 +20,7 @@ module ElasticEmail
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# Get Bounce List
|
23
|
-
# Retrieve your list of bounced emails. Required Access Level: ViewContacts
|
23
|
+
# Retrieve your list of bounced emails. Required Access Level: ViewContacts, ViewSuppressions
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :search Text fragment used for searching.
|
26
26
|
# @option opts [Integer] :limit Maximum number of returned items.
|
@@ -32,7 +32,7 @@ module ElasticEmail
|
|
32
32
|
end
|
33
33
|
|
34
34
|
# Get Bounce List
|
35
|
-
# Retrieve your list of bounced emails. Required Access Level: ViewContacts
|
35
|
+
# Retrieve your list of bounced emails. Required Access Level: ViewContacts, ViewSuppressions
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @option opts [String] :search Text fragment used for searching.
|
38
38
|
# @option opts [Integer] :limit Maximum number of returned items.
|
@@ -86,7 +86,7 @@ module ElasticEmail
|
|
86
86
|
end
|
87
87
|
|
88
88
|
# Add Bounces Async
|
89
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
89
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
90
90
|
# @param [Hash] opts the optional parameters
|
91
91
|
# @option opts [File] :file
|
92
92
|
# @return [nil]
|
@@ -96,7 +96,7 @@ module ElasticEmail
|
|
96
96
|
end
|
97
97
|
|
98
98
|
# Add Bounces Async
|
99
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
99
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @option opts [File] :file
|
102
102
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -149,7 +149,7 @@ module ElasticEmail
|
|
149
149
|
end
|
150
150
|
|
151
151
|
# Add Bounces
|
152
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
152
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
153
153
|
# @param request_body [Array<String>] Emails to add as bounces. Limited to 1000 per request
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
155
|
# @return [Array<Suppression>]
|
@@ -159,7 +159,7 @@ module ElasticEmail
|
|
159
159
|
end
|
160
160
|
|
161
161
|
# Add Bounces
|
162
|
-
# Add Bounced. Required Access Level: ModifyContacts
|
162
|
+
# Add Bounced. Required Access Level: ModifyContacts, ModifySuppressions
|
163
163
|
# @param request_body [Array<String>] Emails to add as bounces. Limited to 1000 per request
|
164
164
|
# @param [Hash] opts the optional parameters
|
165
165
|
# @return [Array<(Array<Suppression>, Integer, Hash)>] Array<Suppression> data, response status code and response headers
|
@@ -217,7 +217,7 @@ module ElasticEmail
|
|
217
217
|
end
|
218
218
|
|
219
219
|
# Delete Suppression
|
220
|
-
# Delete Suppression. Required Access Level: ViewContacts
|
220
|
+
# Delete Suppression. Required Access Level: ViewContacts, ViewSuppressions
|
221
221
|
# @param email [String] Proper email address.
|
222
222
|
# @param [Hash] opts the optional parameters
|
223
223
|
# @return [nil]
|
@@ -227,7 +227,7 @@ module ElasticEmail
|
|
227
227
|
end
|
228
228
|
|
229
229
|
# Delete Suppression
|
230
|
-
# Delete Suppression. Required Access Level: ViewContacts
|
230
|
+
# Delete Suppression. Required Access Level: ViewContacts, ViewSuppressions
|
231
231
|
# @param email [String] Proper email address.
|
232
232
|
# @param [Hash] opts the optional parameters
|
233
233
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -278,7 +278,7 @@ module ElasticEmail
|
|
278
278
|
end
|
279
279
|
|
280
280
|
# Get Suppression
|
281
|
-
# Retrieve your suppression. Required Access Level: ViewContacts
|
281
|
+
# Retrieve your suppression. Required Access Level: ViewContacts, ViewSuppressions
|
282
282
|
# @param email [String] Proper email address.
|
283
283
|
# @param [Hash] opts the optional parameters
|
284
284
|
# @return [Suppression]
|
@@ -288,7 +288,7 @@ module ElasticEmail
|
|
288
288
|
end
|
289
289
|
|
290
290
|
# Get Suppression
|
291
|
-
# Retrieve your suppression. Required Access Level: ViewContacts
|
291
|
+
# Retrieve your suppression. Required Access Level: ViewContacts, ViewSuppressions
|
292
292
|
# @param email [String] Proper email address.
|
293
293
|
# @param [Hash] opts the optional parameters
|
294
294
|
# @return [Array<(Suppression, Integer, Hash)>] Suppression data, response status code and response headers
|
@@ -341,7 +341,7 @@ module ElasticEmail
|
|
341
341
|
end
|
342
342
|
|
343
343
|
# Get Complaints List
|
344
|
-
# Retrieve your list of complaints. Required Access Level: ViewContacts
|
344
|
+
# Retrieve your list of complaints. Required Access Level: ViewContacts, ViewSuppressions
|
345
345
|
# @param [Hash] opts the optional parameters
|
346
346
|
# @option opts [String] :search Text fragment used for searching.
|
347
347
|
# @option opts [Integer] :limit Maximum number of returned items.
|
@@ -353,7 +353,7 @@ module ElasticEmail
|
|
353
353
|
end
|
354
354
|
|
355
355
|
# Get Complaints List
|
356
|
-
# Retrieve your list of complaints. Required Access Level: ViewContacts
|
356
|
+
# Retrieve your list of complaints. Required Access Level: ViewContacts, ViewSuppressions
|
357
357
|
# @param [Hash] opts the optional parameters
|
358
358
|
# @option opts [String] :search Text fragment used for searching.
|
359
359
|
# @option opts [Integer] :limit Maximum number of returned items.
|
@@ -407,7 +407,7 @@ module ElasticEmail
|
|
407
407
|
end
|
408
408
|
|
409
409
|
# Add Complaints Async
|
410
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
410
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
411
411
|
# @param [Hash] opts the optional parameters
|
412
412
|
# @option opts [File] :file
|
413
413
|
# @return [nil]
|
@@ -417,7 +417,7 @@ module ElasticEmail
|
|
417
417
|
end
|
418
418
|
|
419
419
|
# Add Complaints Async
|
420
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
420
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
421
421
|
# @param [Hash] opts the optional parameters
|
422
422
|
# @option opts [File] :file
|
423
423
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -470,7 +470,7 @@ module ElasticEmail
|
|
470
470
|
end
|
471
471
|
|
472
472
|
# Add Complaints
|
473
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
473
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
474
474
|
# @param request_body [Array<String>] Emails to add as complaints. Limited to 1000 per request
|
475
475
|
# @param [Hash] opts the optional parameters
|
476
476
|
# @return [Array<Suppression>]
|
@@ -480,7 +480,7 @@ module ElasticEmail
|
|
480
480
|
end
|
481
481
|
|
482
482
|
# Add Complaints
|
483
|
-
# Add Complaints. Required Access Level: ModifyContacts
|
483
|
+
# Add Complaints. Required Access Level: ModifyContacts, ModifySuppressions
|
484
484
|
# @param request_body [Array<String>] Emails to add as complaints. Limited to 1000 per request
|
485
485
|
# @param [Hash] opts the optional parameters
|
486
486
|
# @return [Array<(Array<Suppression>, Integer, Hash)>] Array<Suppression> data, response status code and response headers
|
@@ -538,7 +538,7 @@ module ElasticEmail
|
|
538
538
|
end
|
539
539
|
|
540
540
|
# Get Suppressions
|
541
|
-
# Retrieve your suppressions. Required Access Level: ViewContacts
|
541
|
+
# Retrieve your suppressions. Required Access Level: ViewContacts, ViewSuppressions
|
542
542
|
# @param [Hash] opts the optional parameters
|
543
543
|
# @option opts [Integer] :limit Maximum number of returned items.
|
544
544
|
# @option opts [Integer] :offset How many items should be returned ahead.
|
@@ -549,7 +549,7 @@ module ElasticEmail
|
|
549
549
|
end
|
550
550
|
|
551
551
|
# Get Suppressions
|
552
|
-
# Retrieve your suppressions. Required Access Level: ViewContacts
|
552
|
+
# Retrieve your suppressions. Required Access Level: ViewContacts, ViewSuppressions
|
553
553
|
# @param [Hash] opts the optional parameters
|
554
554
|
# @option opts [Integer] :limit Maximum number of returned items.
|
555
555
|
# @option opts [Integer] :offset How many items should be returned ahead.
|
@@ -601,7 +601,7 @@ module ElasticEmail
|
|
601
601
|
end
|
602
602
|
|
603
603
|
# Get Unsubscribes List
|
604
|
-
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts
|
604
|
+
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts, ViewSuppressions
|
605
605
|
# @param [Hash] opts the optional parameters
|
606
606
|
# @option opts [String] :search Text fragment used for searching.
|
607
607
|
# @option opts [Integer] :limit Maximum number of returned items.
|
@@ -613,7 +613,7 @@ module ElasticEmail
|
|
613
613
|
end
|
614
614
|
|
615
615
|
# Get Unsubscribes List
|
616
|
-
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts
|
616
|
+
# Retrieve your list of unsubscribes. Required Access Level: ViewContacts, ViewSuppressions
|
617
617
|
# @param [Hash] opts the optional parameters
|
618
618
|
# @option opts [String] :search Text fragment used for searching.
|
619
619
|
# @option opts [Integer] :limit Maximum number of returned items.
|
@@ -667,7 +667,7 @@ module ElasticEmail
|
|
667
667
|
end
|
668
668
|
|
669
669
|
# Add Unsubscribes Async
|
670
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
670
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
671
671
|
# @param [Hash] opts the optional parameters
|
672
672
|
# @option opts [File] :file
|
673
673
|
# @return [nil]
|
@@ -677,7 +677,7 @@ module ElasticEmail
|
|
677
677
|
end
|
678
678
|
|
679
679
|
# Add Unsubscribes Async
|
680
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
680
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
681
681
|
# @param [Hash] opts the optional parameters
|
682
682
|
# @option opts [File] :file
|
683
683
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -730,7 +730,7 @@ module ElasticEmail
|
|
730
730
|
end
|
731
731
|
|
732
732
|
# Add Unsubscribes
|
733
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
733
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
734
734
|
# @param request_body [Array<String>] Emails to add as unsubscribes. Limited to 1000 per request
|
735
735
|
# @param [Hash] opts the optional parameters
|
736
736
|
# @return [Array<Suppression>]
|
@@ -740,7 +740,7 @@ module ElasticEmail
|
|
740
740
|
end
|
741
741
|
|
742
742
|
# Add Unsubscribes
|
743
|
-
# Add Unsubscribes. Required Access Level: ModifyContacts
|
743
|
+
# Add Unsubscribes. Required Access Level: ModifyContacts, ModifySuppressions
|
744
744
|
# @param request_body [Array<String>] Emails to add as unsubscribes. Limited to 1000 per request
|
745
745
|
# @param [Hash] opts the optional parameters
|
746
746
|
# @return [Array<(Array<Suppression>, Integer, Hash)>] Array<Suppression> data, response status code and response headers
|
@@ -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:
|
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/
|
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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -81,7 +81,7 @@ module ElasticEmail
|
|
81
81
|
end
|
82
82
|
|
83
83
|
# Get Email Verification Result
|
84
|
-
# Returns a result of verified email. Required Access Level: ViewEmailVerifications
|
84
|
+
# Returns a result of verified email. Required Access Level: VerifyEmails, ViewEmailVerifications
|
85
85
|
# @param email [String] Email address to view verification result of
|
86
86
|
# @param [Hash] opts the optional parameters
|
87
87
|
# @return [EmailValidationResult]
|
@@ -91,7 +91,7 @@ module ElasticEmail
|
|
91
91
|
end
|
92
92
|
|
93
93
|
# Get Email Verification Result
|
94
|
-
# Returns a result of verified email. Required Access Level: ViewEmailVerifications
|
94
|
+
# Returns a result of verified email. Required Access Level: VerifyEmails, ViewEmailVerifications
|
95
95
|
# @param email [String] Email address to view verification result of
|
96
96
|
# @param [Hash] opts the optional parameters
|
97
97
|
# @return [Array<(EmailValidationResult, Integer, Hash)>] EmailValidationResult data, response status code and response headers
|
@@ -331,7 +331,7 @@ module ElasticEmail
|
|
331
331
|
end
|
332
332
|
|
333
333
|
# Get Detailed File Verification Result
|
334
|
-
# Returns status and results (if verified) of file with given ID. Required Access Level: ViewEmailVerifications
|
334
|
+
# Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails, ViewEmailVerifications
|
335
335
|
# @param id [String] ID of the Verification to display status of
|
336
336
|
# @param [Hash] opts the optional parameters
|
337
337
|
# @option opts [Integer] :limit Maximum number of returned email verification results
|
@@ -343,7 +343,7 @@ module ElasticEmail
|
|
343
343
|
end
|
344
344
|
|
345
345
|
# Get Detailed File Verification Result
|
346
|
-
# Returns status and results (if verified) of file with given ID. Required Access Level: ViewEmailVerifications
|
346
|
+
# Returns status and results (if verified) of file with given ID. Required Access Level: VerifyEmails, ViewEmailVerifications
|
347
347
|
# @param id [String] ID of the Verification to display status of
|
348
348
|
# @param [Hash] opts the optional parameters
|
349
349
|
# @option opts [Integer] :limit Maximum number of returned email verification results
|
@@ -526,7 +526,7 @@ module ElasticEmail
|
|
526
526
|
end
|
527
527
|
|
528
528
|
# Get Files Verification Results
|
529
|
-
# Returns a list of uploaded files, their statuses and results. Required Access Level: ViewEmailVerifications
|
529
|
+
# Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails, ViewEmailVerifications
|
530
530
|
# @param [Hash] opts the optional parameters
|
531
531
|
# @return [Array<VerificationFileResult>]
|
532
532
|
def verifications_files_result_get(opts = {})
|
@@ -535,7 +535,7 @@ module ElasticEmail
|
|
535
535
|
end
|
536
536
|
|
537
537
|
# Get Files Verification Results
|
538
|
-
# Returns a list of uploaded files, their statuses and results. Required Access Level: ViewEmailVerifications
|
538
|
+
# Returns a list of uploaded files, their statuses and results. Required Access Level: VerifyEmails, ViewEmailVerifications
|
539
539
|
# @param [Hash] opts the optional parameters
|
540
540
|
# @return [Array<(Array<VerificationFileResult>, Integer, Hash)>] Array<VerificationFileResult> data, response status code and response headers
|
541
541
|
def verifications_files_result_get_with_http_info(opts = {})
|
@@ -583,7 +583,7 @@ module ElasticEmail
|
|
583
583
|
end
|
584
584
|
|
585
585
|
# Get Emails Verification Results
|
586
|
-
# Returns a results of all verified single emails. Required Access Level: ViewEmailVerifications
|
586
|
+
# Returns a results of all verified single emails. Required Access Level: VerifyEmails, ViewEmailVerifications
|
587
587
|
# @param [Hash] opts the optional parameters
|
588
588
|
# @option opts [Integer] :limit Maximum number of returned items.
|
589
589
|
# @option opts [Integer] :offset How many items should be returned ahead.
|
@@ -594,7 +594,7 @@ module ElasticEmail
|
|
594
594
|
end
|
595
595
|
|
596
596
|
# Get Emails Verification Results
|
597
|
-
# Returns a results of all verified single emails. Required Access Level: ViewEmailVerifications
|
597
|
+
# Returns a results of all verified single emails. Required Access Level: VerifyEmails, ViewEmailVerifications
|
598
598
|
# @param [Hash] opts the optional parameters
|
599
599
|
# @option opts [Integer] :limit Maximum number of returned items.
|
600
600
|
# @option opts [Integer] :offset How many items should be returned ahead.
|
@@ -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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -93,6 +93,7 @@ module ElasticEmail
|
|
93
93
|
header_params = @default_headers.merge(opts[:header_params] || {})
|
94
94
|
query_params = opts[:query_params] || {}
|
95
95
|
form_params = opts[:form_params] || {}
|
96
|
+
follow_location = opts[:follow_location] || true
|
96
97
|
|
97
98
|
update_params_for_auth! header_params, query_params, opts[:auth_names]
|
98
99
|
|
@@ -109,7 +110,8 @@ module ElasticEmail
|
|
109
110
|
:ssl_verifyhost => _verify_ssl_host,
|
110
111
|
:sslcert => @config.cert_file,
|
111
112
|
:sslkey => @config.key_file,
|
112
|
-
:verbose => @config.debugging
|
113
|
+
:verbose => @config.debugging,
|
114
|
+
:followlocation => follow_location
|
113
115
|
}
|
114
116
|
|
115
117
|
# set custom cert, if provided
|
@@ -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:
|
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/
|
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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -133,6 +133,7 @@ module ElasticEmail
|
|
133
133
|
# https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
|
134
134
|
attr_accessor :params_encoding
|
135
135
|
|
136
|
+
|
136
137
|
attr_accessor :inject_format
|
137
138
|
|
138
139
|
attr_accessor :force_ending_format
|
@@ -150,10 +151,10 @@ module ElasticEmail
|
|
150
151
|
@client_side_validation = true
|
151
152
|
@verify_ssl = true
|
152
153
|
@verify_ssl_host = true
|
153
|
-
@params_encoding = nil
|
154
154
|
@cert_file = nil
|
155
155
|
@key_file = nil
|
156
156
|
@timeout = 0
|
157
|
+
@params_encoding = nil
|
157
158
|
@debugging = false
|
158
159
|
@inject_format = false
|
159
160
|
@force_ending_format = false
|
@@ -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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -59,9 +59,15 @@ module ElasticEmail
|
|
59
59
|
EXTENDED_LOGS = "ExtendedLogs".freeze
|
60
60
|
VERIFY_EMAILS = "VerifyEmails".freeze
|
61
61
|
VIEW_EMAIL_VERIFICATIONS = "ViewEmailVerifications".freeze
|
62
|
-
|
63
|
-
|
64
|
-
|
62
|
+
DISABLE_CONTACTS_STORE = "DisableContactsStore".freeze
|
63
|
+
MODIFY_LANDING_PAGES = "ModifyLandingPages".freeze
|
64
|
+
VIEW_LANDING_PAGES = "ViewLandingPages".freeze
|
65
|
+
MODIFY_SUPPRESSIONS = "ModifySuppressions".freeze
|
66
|
+
VIEW_SUPPRESSIONS = "ViewSuppressions".freeze
|
67
|
+
|
68
|
+
def self.all_vars
|
69
|
+
@all_vars ||= [NONE, VIEW_ACCOUNT, VIEW_CONTACTS, VIEW_FORMS, VIEW_TEMPLATES, VIEW_CAMPAIGNS, VIEW_CHANNELS, VIEW_AUTOMATIONS, VIEW_SURVEYS, VIEW_SETTINGS, VIEW_BILLING, VIEW_SUB_ACCOUNTS, VIEW_USERS, VIEW_FILES, VIEW_REPORTS, MODIFY_ACCOUNT, MODIFY_CONTACTS, MODIFY_FORMS, MODIFY_TEMPLATES, MODIFY_CAMPAIGNS, MODIFY_CHANNELS, MODIFY_AUTOMATIONS, MODIFY_SURVEYS, MODIFY_FILES, EXPORT, SEND_SMTP, SEND_SMS, MODIFY_SETTINGS, MODIFY_BILLING, MODIFY_PROFILE, MODIFY_SUB_ACCOUNTS, MODIFY_USERS, SECURITY, MODIFY_LANGUAGE, VIEW_SUPPORT, SEND_HTTP, MODIFY2_FA, MODIFY_SUPPORT, VIEW_CUSTOM_FIELDS, MODIFY_CUSTOM_FIELDS, MODIFY_WEB_NOTIFICATIONS, EXTENDED_LOGS, VERIFY_EMAILS, VIEW_EMAIL_VERIFICATIONS, DISABLE_CONTACTS_STORE, MODIFY_LANDING_PAGES, VIEW_LANDING_PAGES, MODIFY_SUPPRESSIONS, VIEW_SUPPRESSIONS].freeze
|
70
|
+
end
|
65
71
|
|
66
72
|
# Builds the enum from string
|
67
73
|
# @param [String] The enum value in the form of the string
|
@@ -74,9 +80,8 @@ module ElasticEmail
|
|
74
80
|
# @param [String] The enum value in the form of the string
|
75
81
|
# @return [String] The enum value
|
76
82
|
def build_from_hash(value)
|
77
|
-
|
78
|
-
raise "Invalid ENUM value #{value} for class #AccessLevel"
|
79
|
-
value
|
83
|
+
return value if AccessLevel.all_vars.include?(value)
|
84
|
+
raise "Invalid ENUM value #{value} for class #AccessLevel"
|
80
85
|
end
|
81
86
|
end
|
82
87
|
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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,10 +17,13 @@ module ElasticEmail
|
|
17
17
|
class AccountStatusEnum
|
18
18
|
DISABLED = "Disabled".freeze
|
19
19
|
UNDER_REVIEW = "UnderReview".freeze
|
20
|
-
NO_PAYMENTS_ALLOWED = "NoPaymentsAllowed".freeze
|
21
20
|
NEVER_SIGNED_IN = "NeverSignedIn".freeze
|
22
21
|
ACTIVE = "Active".freeze
|
23
22
|
|
23
|
+
def self.all_vars
|
24
|
+
@all_vars ||= [DISABLED, UNDER_REVIEW, NEVER_SIGNED_IN, ACTIVE].freeze
|
25
|
+
end
|
26
|
+
|
24
27
|
# Builds the enum from string
|
25
28
|
# @param [String] The enum value in the form of the string
|
26
29
|
# @return [String] The enum value
|
@@ -32,9 +35,8 @@ module ElasticEmail
|
|
32
35
|
# @param [String] The enum value in the form of the string
|
33
36
|
# @return [String] The enum value
|
34
37
|
def build_from_hash(value)
|
35
|
-
|
36
|
-
raise "Invalid ENUM value #{value} for class #AccountStatusEnum"
|
37
|
-
value
|
38
|
+
return value if AccountStatusEnum.all_vars.include?(value)
|
39
|
+
raise "Invalid ENUM value #{value} for class #AccountStatusEnum"
|
38
40
|
end
|
39
41
|
end
|
40
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:
|
9
|
+
OpenAPI Generator version: 6.2.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -165,6 +165,7 @@ module ElasticEmail
|
|
165
165
|
# @return [Object] Returns the model itself
|
166
166
|
def build_from_hash(attributes)
|
167
167
|
return nil unless attributes.is_a?(Hash)
|
168
|
+
attributes = attributes.transform_keys(&:to_sym)
|
168
169
|
self.class.openapi_types.each_pair do |key, type|
|
169
170
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
170
171
|
self.send("#{key}=", nil)
|