ElasticEmail 4.0.1 → 4.0.15
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 +14 -9
- data/VERSION +1 -1
- data/docs/ApiKeyPayload.md +2 -2
- data/docs/BodyPart.md +1 -1
- data/docs/Campaign.md +4 -4
- data/docs/CampaignOptions.md +2 -2
- data/docs/CampaignTemplate.md +2 -2
- data/docs/CampaignsApi.md +2 -2
- data/docs/ConsentData.md +1 -1
- data/docs/Contact.md +3 -3
- data/docs/ContactHistory.md +1 -1
- data/docs/ContactPayload.md +2 -2
- data/docs/ContactsApi.md +3 -3
- data/docs/EmailContent.md +4 -2
- data/docs/EmailData.md +2 -2
- data/docs/EmailMessageData.md +3 -3
- data/docs/EmailRecipient.md +1 -1
- data/docs/EmailStatus.md +1 -1
- data/docs/EmailTransactionalMessageData.md +3 -3
- data/docs/EmailsApi.md +3 -3
- data/docs/EmailsPayload.md +2 -2
- data/docs/EventsApi.md +7 -7
- data/docs/FilePayload.md +1 -1
- data/docs/FilesApi.md +1 -1
- data/docs/InboundPayload.md +4 -4
- data/docs/InboundRoute.md +2 -2
- data/docs/InboundRouteApi.md +3 -3
- data/docs/ListPayload.md +2 -2
- data/docs/ListsApi.md +1 -1
- data/docs/MergeEmailPayload.md +3 -3
- data/docs/MessageAttachment.md +4 -4
- data/docs/NewSmtpCredentials.md +1 -1
- data/docs/Options.md +1 -1
- data/docs/RecipientEvent.md +2 -2
- data/docs/SecurityApi.md +4 -4
- data/docs/SegmentPayload.md +2 -2
- data/docs/SegmentsApi.md +2 -2
- data/docs/SmtpCredentials.md +1 -1
- data/docs/SmtpCredentialsPayload.md +1 -1
- data/docs/SortOrderItem.md +2 -2
- data/docs/SplitOptions.md +1 -1
- data/docs/SubAccountInfo.md +2 -2
- data/docs/SubAccountsApi.md +2 -2
- data/docs/SubaccountEmailCreditsPayload.md +1 -1
- data/docs/SubaccountPayload.md +3 -3
- data/docs/SubaccountSettingsInfo.md +1 -1
- data/docs/SubaccountSettingsInfoPayload.md +1 -1
- data/docs/Template.md +2 -2
- data/docs/TemplatePayload.md +2 -2
- data/docs/TemplateScope.md +15 -0
- data/docs/TemplatesApi.md +4 -4
- data/docs/TransactionalRecipient.md +1 -1
- data/docs/VerificationFileResult.md +2 -2
- data/docs/VerificationFileResultDetails.md +2 -2
- data/docs/VerificationsApi.md +80 -9
- data/lib/ElasticEmail/api/campaigns_api.rb +10 -4
- data/lib/ElasticEmail/api/contacts_api.rb +20 -8
- data/lib/ElasticEmail/api/emails_api.rb +14 -5
- data/lib/ElasticEmail/api/events_api.rb +9 -9
- data/lib/ElasticEmail/api/files_api.rb +6 -3
- data/lib/ElasticEmail/api/inbound_route_api.rb +14 -5
- data/lib/ElasticEmail/api/lists_api.rb +18 -6
- data/lib/ElasticEmail/api/security_api.rb +18 -6
- data/lib/ElasticEmail/api/segments_api.rb +10 -4
- data/lib/ElasticEmail/api/statistics_api.rb +2 -2
- data/lib/ElasticEmail/api/sub_accounts_api.rb +14 -5
- data/lib/ElasticEmail/api/suppressions_api.rb +26 -8
- data/lib/ElasticEmail/api/templates_api.rb +12 -6
- data/lib/ElasticEmail/api/verifications_api.rb +73 -9
- data/lib/ElasticEmail/api_client.rb +5 -5
- data/lib/ElasticEmail/api_error.rb +2 -2
- data/lib/ElasticEmail/configuration.rb +4 -3
- data/lib/ElasticEmail/models/access_level.rb +5 -2
- data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
- data/lib/ElasticEmail/models/api_key.rb +2 -2
- data/lib/ElasticEmail/models/api_key_payload.rb +12 -2
- data/lib/ElasticEmail/models/body_content_type.rb +2 -2
- data/lib/ElasticEmail/models/body_part.rb +9 -3
- data/lib/ElasticEmail/models/campaign.rb +14 -5
- data/lib/ElasticEmail/models/campaign_options.rb +4 -4
- data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
- data/lib/ElasticEmail/models/campaign_status.rb +2 -2
- data/lib/ElasticEmail/models/campaign_template.rb +2 -3
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
- data/lib/ElasticEmail/models/compression_format.rb +2 -2
- data/lib/ElasticEmail/models/consent_data.rb +4 -3
- data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
- data/lib/ElasticEmail/models/contact.rb +6 -5
- data/lib/ElasticEmail/models/contact_activity.rb +2 -2
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
- data/lib/ElasticEmail/models/contact_history.rb +4 -3
- data/lib/ElasticEmail/models/contact_payload.rb +9 -3
- data/lib/ElasticEmail/models/contact_source.rb +2 -2
- data/lib/ElasticEmail/models/contact_status.rb +2 -2
- 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 +2 -2
- data/lib/ElasticEmail/models/email_content.rb +13 -4
- data/lib/ElasticEmail/models/email_data.rb +2 -4
- data/lib/ElasticEmail/models/email_message_data.rb +8 -5
- data/lib/ElasticEmail/models/email_recipient.rb +8 -3
- data/lib/ElasticEmail/models/email_send.rb +2 -2
- data/lib/ElasticEmail/models/email_status.rb +4 -3
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +7 -5
- data/lib/ElasticEmail/models/email_validation_result.rb +2 -2
- data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
- data/lib/ElasticEmail/models/email_view.rb +2 -2
- data/lib/ElasticEmail/models/emails_payload.rb +3 -3
- data/lib/ElasticEmail/models/encoding_type.rb +2 -2
- data/lib/ElasticEmail/models/event_type.rb +2 -2
- data/lib/ElasticEmail/models/events_order_by.rb +2 -2
- data/lib/ElasticEmail/models/export_file_formats.rb +2 -2
- data/lib/ElasticEmail/models/export_link.rb +2 -2
- data/lib/ElasticEmail/models/export_status.rb +2 -2
- data/lib/ElasticEmail/models/file_info.rb +2 -2
- data/lib/ElasticEmail/models/file_payload.rb +7 -2
- data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
- data/lib/ElasticEmail/models/inbound_payload.rb +26 -4
- data/lib/ElasticEmail/models/inbound_route.rb +6 -4
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +2 -2
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +2 -2
- data/lib/ElasticEmail/models/list_payload.rb +8 -3
- data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
- data/lib/ElasticEmail/models/log_job_status.rb +2 -2
- data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
- data/lib/ElasticEmail/models/merge_email_payload.rb +7 -5
- data/lib/ElasticEmail/models/message_attachment.rb +10 -3
- data/lib/ElasticEmail/models/message_category.rb +2 -2
- data/lib/ElasticEmail/models/new_api_key.rb +2 -2
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +4 -3
- data/lib/ElasticEmail/models/options.rb +4 -3
- data/lib/ElasticEmail/models/recipient_event.rb +6 -4
- data/lib/ElasticEmail/models/segment.rb +2 -2
- data/lib/ElasticEmail/models/segment_payload.rb +12 -2
- data/lib/ElasticEmail/models/smtp_credentials.rb +4 -3
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +7 -2
- data/lib/ElasticEmail/models/sort_order_item.rb +13 -2
- data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
- data/lib/ElasticEmail/models/split_options.rb +4 -3
- data/lib/ElasticEmail/models/sub_account_info.rb +4 -4
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +7 -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 +12 -3
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -3
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -3
- data/lib/ElasticEmail/models/suppression.rb +2 -2
- data/lib/ElasticEmail/models/template.rb +7 -5
- data/lib/ElasticEmail/models/template_payload.rb +10 -4
- data/lib/ElasticEmail/models/template_scope.rb +37 -0
- data/lib/ElasticEmail/models/template_type.rb +2 -2
- data/lib/ElasticEmail/models/transactional_recipient.rb +7 -2
- data/lib/ElasticEmail/models/utm.rb +2 -2
- data/lib/ElasticEmail/models/verification_file_result.rb +4 -4
- data/lib/ElasticEmail/models/verification_file_result_details.rb +4 -4
- data/lib/ElasticEmail/models/verification_status.rb +2 -2
- data/lib/ElasticEmail/version.rb +3 -3
- data/lib/ElasticEmail.rb +3 -3
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/template_scope_spec.rb +28 -0
- data/spec/spec_helper.rb +2 -2
- metadata +92 -86
- data/DIFF +0 -0
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -19,7 +19,6 @@ module ElasticEmail
|
|
19
19
|
# Proper email address.
|
20
20
|
attr_accessor :email
|
21
21
|
|
22
|
-
# Status of the given resource
|
23
22
|
attr_accessor :status
|
24
23
|
|
25
24
|
# First name.
|
@@ -33,7 +32,6 @@ module ElasticEmail
|
|
33
32
|
|
34
33
|
attr_accessor :consent
|
35
34
|
|
36
|
-
# From where was this contact added
|
37
35
|
attr_accessor :source
|
38
36
|
|
39
37
|
# Date of creation in YYYY-MM-DDThh:ii:ss format
|
@@ -45,7 +43,6 @@ module ElasticEmail
|
|
45
43
|
# Date of last status change.
|
46
44
|
attr_accessor :status_change_date
|
47
45
|
|
48
|
-
# Contact's email statistics and activity
|
49
46
|
attr_accessor :activity
|
50
47
|
|
51
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -116,6 +113,8 @@ module ElasticEmail
|
|
116
113
|
|
117
114
|
if attributes.key?(:'status')
|
118
115
|
self.status = attributes[:'status']
|
116
|
+
else
|
117
|
+
self.status = 'Transactional'
|
119
118
|
end
|
120
119
|
|
121
120
|
if attributes.key?(:'first_name')
|
@@ -138,6 +137,8 @@ module ElasticEmail
|
|
138
137
|
|
139
138
|
if attributes.key?(:'source')
|
140
139
|
self.source = attributes[:'source']
|
140
|
+
else
|
141
|
+
self.source = 'DeliveryApi'
|
141
142
|
end
|
142
143
|
|
143
144
|
if attributes.key?(:'date_added')
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,7 +15,6 @@ require 'time'
|
|
15
15
|
|
16
16
|
module ElasticEmail
|
17
17
|
class ContactHistory
|
18
|
-
# Type of event occured on this Contact.
|
19
18
|
attr_accessor :event_type
|
20
19
|
|
21
20
|
# Formatted date of event.
|
@@ -90,6 +89,8 @@ module ElasticEmail
|
|
90
89
|
|
91
90
|
if attributes.key?(:'event_type')
|
92
91
|
self.event_type = attributes[:'event_type']
|
92
|
+
else
|
93
|
+
self.event_type = 'Opened'
|
93
94
|
end
|
94
95
|
|
95
96
|
if attributes.key?(:'event_date')
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,6 @@ module ElasticEmail
|
|
18
18
|
# Proper email address.
|
19
19
|
attr_accessor :email
|
20
20
|
|
21
|
-
# Status of the given resource
|
22
21
|
attr_accessor :status
|
23
22
|
|
24
23
|
# First name.
|
@@ -88,6 +87,8 @@ module ElasticEmail
|
|
88
87
|
|
89
88
|
if attributes.key?(:'status')
|
90
89
|
self.status = attributes[:'status']
|
90
|
+
else
|
91
|
+
self.status = 'Transactional'
|
91
92
|
end
|
92
93
|
|
93
94
|
if attributes.key?(:'first_name')
|
@@ -113,12 +114,17 @@ module ElasticEmail
|
|
113
114
|
# @return Array for valid properties with the reasons
|
114
115
|
def list_invalid_properties
|
115
116
|
invalid_properties = Array.new
|
117
|
+
if @email.nil?
|
118
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
119
|
+
end
|
120
|
+
|
116
121
|
invalid_properties
|
117
122
|
end
|
118
123
|
|
119
124
|
# Check to see if the all the properties in the model are valid
|
120
125
|
# @return true if the model is valid
|
121
126
|
def valid?
|
127
|
+
return false if @email.nil?
|
122
128
|
true
|
123
129
|
end
|
124
130
|
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -31,6 +31,9 @@ module ElasticEmail
|
|
31
31
|
# Postback header.
|
32
32
|
attr_accessor :postback
|
33
33
|
|
34
|
+
# E-mail with an optional name to be used as the envelope from address (e.g.: John Doe <email@domain.com>)
|
35
|
+
attr_accessor :envelope_from
|
36
|
+
|
34
37
|
# Your e-mail with an optional name (e.g.: John Doe <email@domain.com>)
|
35
38
|
attr_accessor :from
|
36
39
|
|
@@ -46,7 +49,6 @@ module ElasticEmail
|
|
46
49
|
# Names of previously uploaded files that should be sent as downloadable attachments
|
47
50
|
attr_accessor :attach_files
|
48
51
|
|
49
|
-
# Utm marketing data to be attached to every link in this e-mail.
|
50
52
|
attr_accessor :utm
|
51
53
|
|
52
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -57,6 +59,7 @@ module ElasticEmail
|
|
57
59
|
:'attachments' => :'Attachments',
|
58
60
|
:'headers' => :'Headers',
|
59
61
|
:'postback' => :'Postback',
|
62
|
+
:'envelope_from' => :'EnvelopeFrom',
|
60
63
|
:'from' => :'From',
|
61
64
|
:'reply_to' => :'ReplyTo',
|
62
65
|
:'subject' => :'Subject',
|
@@ -79,6 +82,7 @@ module ElasticEmail
|
|
79
82
|
:'attachments' => :'Array<MessageAttachment>',
|
80
83
|
:'headers' => :'Hash<String, String>',
|
81
84
|
:'postback' => :'String',
|
85
|
+
:'envelope_from' => :'String',
|
82
86
|
:'from' => :'String',
|
83
87
|
:'reply_to' => :'String',
|
84
88
|
:'subject' => :'String',
|
@@ -137,6 +141,10 @@ module ElasticEmail
|
|
137
141
|
self.postback = attributes[:'postback']
|
138
142
|
end
|
139
143
|
|
144
|
+
if attributes.key?(:'envelope_from')
|
145
|
+
self.envelope_from = attributes[:'envelope_from']
|
146
|
+
end
|
147
|
+
|
140
148
|
if attributes.key?(:'from')
|
141
149
|
self.from = attributes[:'from']
|
142
150
|
end
|
@@ -187,6 +195,7 @@ module ElasticEmail
|
|
187
195
|
attachments == o.attachments &&
|
188
196
|
headers == o.headers &&
|
189
197
|
postback == o.postback &&
|
198
|
+
envelope_from == o.envelope_from &&
|
190
199
|
from == o.from &&
|
191
200
|
reply_to == o.reply_to &&
|
192
201
|
subject == o.subject &&
|
@@ -204,7 +213,7 @@ module ElasticEmail
|
|
204
213
|
# Calculates hash code according to all attributes.
|
205
214
|
# @return [Integer] Hash code
|
206
215
|
def hash
|
207
|
-
[body, merge, attachments, headers, postback, from, reply_to, subject, template_name, attach_files, utm].hash
|
216
|
+
[body, merge, attachments, headers, postback, envelope_from, from, reply_to, subject, template_name, attach_files, utm].hash
|
208
217
|
end
|
209
218
|
|
210
219
|
# 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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,13 +15,11 @@ require 'time'
|
|
15
15
|
|
16
16
|
module ElasticEmail
|
17
17
|
class EmailData
|
18
|
-
# Email details
|
19
18
|
attr_accessor :preview
|
20
19
|
|
21
20
|
# Attachments sent with the email
|
22
21
|
attr_accessor :attachments
|
23
22
|
|
24
|
-
# Status of the given resource
|
25
23
|
attr_accessor :status
|
26
24
|
|
27
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,13 +16,11 @@ require 'time'
|
|
16
16
|
module ElasticEmail
|
17
17
|
# Email data
|
18
18
|
class EmailMessageData
|
19
|
-
# List of recipients
|
19
|
+
# List of recipients
|
20
20
|
attr_accessor :recipients
|
21
21
|
|
22
|
-
# Proper e-mail content
|
23
22
|
attr_accessor :content
|
24
23
|
|
25
|
-
# E-mail configuration
|
26
24
|
attr_accessor :options
|
27
25
|
|
28
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -88,12 +86,17 @@ module ElasticEmail
|
|
88
86
|
# @return Array for valid properties with the reasons
|
89
87
|
def list_invalid_properties
|
90
88
|
invalid_properties = Array.new
|
89
|
+
if @recipients.nil?
|
90
|
+
invalid_properties.push('invalid value for "recipients", recipients cannot be nil.')
|
91
|
+
end
|
92
|
+
|
91
93
|
invalid_properties
|
92
94
|
end
|
93
95
|
|
94
96
|
# Check to see if the all the properties in the model are valid
|
95
97
|
# @return true if the model is valid
|
96
98
|
def valid?
|
99
|
+
return false if @recipients.nil?
|
97
100
|
true
|
98
101
|
end
|
99
102
|
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module ElasticEmail
|
17
|
-
# List of recipients
|
17
|
+
# List of recipients
|
18
18
|
class EmailRecipient
|
19
19
|
# Proper email address.
|
20
20
|
attr_accessor :email
|
@@ -79,12 +79,17 @@ module ElasticEmail
|
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
81
|
invalid_properties = Array.new
|
82
|
+
if @email.nil?
|
83
|
+
invalid_properties.push('invalid value for "email", email cannot be nil.')
|
84
|
+
end
|
85
|
+
|
82
86
|
invalid_properties
|
83
87
|
end
|
84
88
|
|
85
89
|
# Check to see if the all the properties in the model are valid
|
86
90
|
# @return true if the model is valid
|
87
91
|
def valid?
|
92
|
+
return false if @email.nil?
|
88
93
|
true
|
89
94
|
end
|
90
95
|
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -25,7 +25,6 @@ module ElasticEmail
|
|
25
25
|
# Date the email was submitted.
|
26
26
|
attr_accessor :date
|
27
27
|
|
28
|
-
# Value of email's status
|
29
28
|
attr_accessor :status
|
30
29
|
|
31
30
|
# Name of email's status
|
@@ -130,6 +129,8 @@ module ElasticEmail
|
|
130
129
|
|
131
130
|
if attributes.key?(:'status')
|
132
131
|
self.status = attributes[:'status']
|
132
|
+
else
|
133
|
+
self.status = 'All'
|
133
134
|
end
|
134
135
|
|
135
136
|
if attributes.key?(:'status_name')
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -16,13 +16,10 @@ require 'time'
|
|
16
16
|
module ElasticEmail
|
17
17
|
# Email data
|
18
18
|
class EmailTransactionalMessageData
|
19
|
-
# List of transactional recipients
|
20
19
|
attr_accessor :recipients
|
21
20
|
|
22
|
-
# Proper e-mail content
|
23
21
|
attr_accessor :content
|
24
22
|
|
25
|
-
# E-mail configuration
|
26
23
|
attr_accessor :options
|
27
24
|
|
28
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -86,12 +83,17 @@ module ElasticEmail
|
|
86
83
|
# @return Array for valid properties with the reasons
|
87
84
|
def list_invalid_properties
|
88
85
|
invalid_properties = Array.new
|
86
|
+
if @recipients.nil?
|
87
|
+
invalid_properties.push('invalid value for "recipients", recipients cannot be nil.')
|
88
|
+
end
|
89
|
+
|
89
90
|
invalid_properties
|
90
91
|
end
|
91
92
|
|
92
93
|
# Check to see if the all the properties in the model are valid
|
93
94
|
# @return true if the model is valid
|
94
95
|
def valid?
|
96
|
+
return false if @recipients.nil?
|
95
97
|
true
|
96
98
|
end
|
97
99
|
|
@@ -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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
|
4
|
+
#This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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: 5.0
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|