ElasticEmail 4.0.29 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ElasticEmail.gemspec +1 -1
- data/README.md +5 -5
- data/VERSION +1 -1
- data/lib/ElasticEmail/api/campaigns_api.rb +1 -1
- data/lib/ElasticEmail/api/contacts_api.rb +1 -1
- data/lib/ElasticEmail/api/domains_api.rb +1 -1
- data/lib/ElasticEmail/api/emails_api.rb +1 -1
- data/lib/ElasticEmail/api/events_api.rb +1 -1
- data/lib/ElasticEmail/api/files_api.rb +1 -1
- data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
- data/lib/ElasticEmail/api/lists_api.rb +1 -1
- data/lib/ElasticEmail/api/security_api.rb +1 -1
- data/lib/ElasticEmail/api/segments_api.rb +1 -1
- data/lib/ElasticEmail/api/statistics_api.rb +1 -1
- data/lib/ElasticEmail/api/sub_accounts_api.rb +1 -1
- data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
- data/lib/ElasticEmail/api/templates_api.rb +1 -1
- data/lib/ElasticEmail/api/verifications_api.rb +1 -1
- data/lib/ElasticEmail/api/webhook_api.rb +1 -1
- data/lib/ElasticEmail/api_client.rb +9 -8
- data/lib/ElasticEmail/api_error.rb +1 -1
- data/lib/ElasticEmail/configuration.rb +1 -1
- data/lib/ElasticEmail/models/access_level.rb +1 -1
- data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
- data/lib/ElasticEmail/models/api_key.rb +4 -10
- data/lib/ElasticEmail/models/api_key_payload.rb +4 -30
- data/lib/ElasticEmail/models/body_content_type.rb +1 -1
- data/lib/ElasticEmail/models/body_part.rb +4 -20
- data/lib/ElasticEmail/models/campaign.rb +4 -30
- data/lib/ElasticEmail/models/campaign_options.rb +4 -10
- data/lib/ElasticEmail/models/campaign_recipient.rb +4 -10
- data/lib/ElasticEmail/models/campaign_status.rb +1 -1
- data/lib/ElasticEmail/models/campaign_template.rb +4 -20
- data/lib/ElasticEmail/models/certificate_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +4 -10
- data/lib/ElasticEmail/models/compression_format.rb +1 -1
- data/lib/ElasticEmail/models/consent_data.rb +4 -10
- data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
- data/lib/ElasticEmail/models/contact.rb +4 -10
- data/lib/ElasticEmail/models/contact_activity.rb +4 -10
- data/lib/ElasticEmail/models/contact_payload.rb +4 -20
- data/lib/ElasticEmail/models/contact_source.rb +1 -1
- data/lib/ElasticEmail/models/contact_status.rb +1 -1
- data/lib/ElasticEmail/models/contact_update_payload.rb +4 -10
- data/lib/ElasticEmail/models/contacts_list.rb +4 -10
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/dkim_record.rb +4 -10
- data/lib/ElasticEmail/models/domain_data.rb +4 -10
- data/lib/ElasticEmail/models/domain_detail.rb +4 -10
- data/lib/ElasticEmail/models/domain_owner.rb +1 -1
- data/lib/ElasticEmail/models/domain_payload.rb +4 -10
- data/lib/ElasticEmail/models/domain_update_payload.rb +4 -10
- data/lib/ElasticEmail/models/email_content.rb +4 -20
- data/lib/ElasticEmail/models/email_data.rb +4 -10
- data/lib/ElasticEmail/models/email_job_failed_status.rb +4 -10
- data/lib/ElasticEmail/models/email_job_status.rb +4 -10
- data/lib/ElasticEmail/models/email_message_data.rb +4 -30
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_recipient.rb +4 -20
- data/lib/ElasticEmail/models/email_send.rb +4 -10
- data/lib/ElasticEmail/models/email_status.rb +4 -10
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +4 -30
- data/lib/ElasticEmail/models/email_validation_result.rb +4 -10
- data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_view.rb +4 -10
- data/lib/ElasticEmail/models/emails_payload.rb +4 -10
- data/lib/ElasticEmail/models/encoding_type.rb +1 -1
- data/lib/ElasticEmail/models/event_type.rb +1 -1
- data/lib/ElasticEmail/models/events_order_by.rb +1 -1
- data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
- data/lib/ElasticEmail/models/export_link.rb +4 -10
- data/lib/ElasticEmail/models/export_status.rb +1 -1
- data/lib/ElasticEmail/models/file_info.rb +4 -10
- data/lib/ElasticEmail/models/file_payload.rb +4 -20
- data/lib/ElasticEmail/models/file_upload_result.rb +4 -10
- data/lib/ElasticEmail/models/inbound_payload.rb +4 -50
- data/lib/ElasticEmail/models/inbound_route.rb +4 -10
- data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
- data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
- data/lib/ElasticEmail/models/list_payload.rb +4 -20
- data/lib/ElasticEmail/models/list_update_payload.rb +4 -10
- data/lib/ElasticEmail/models/log_job_status.rb +1 -1
- data/lib/ElasticEmail/models/log_status_summary.rb +4 -10
- data/lib/ElasticEmail/models/merge_email_payload.rb +4 -30
- data/lib/ElasticEmail/models/message_attachment.rb +4 -30
- data/lib/ElasticEmail/models/message_category.rb +1 -1
- data/lib/ElasticEmail/models/message_category_enum.rb +1 -1
- data/lib/ElasticEmail/models/new_api_key.rb +4 -10
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +4 -10
- data/lib/ElasticEmail/models/options.rb +4 -10
- data/lib/ElasticEmail/models/recipient_event.rb +4 -10
- data/lib/ElasticEmail/models/segment.rb +4 -10
- data/lib/ElasticEmail/models/segment_payload.rb +4 -30
- data/lib/ElasticEmail/models/smtp_credentials.rb +4 -10
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +4 -20
- data/lib/ElasticEmail/models/sort_order_item.rb +4 -30
- data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/split_options.rb +4 -10
- data/lib/ElasticEmail/models/sub_account_info.rb +4 -10
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +4 -20
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +4 -10
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +4 -10
- data/lib/ElasticEmail/models/subaccount_payload.rb +4 -30
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +4 -10
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +4 -10
- data/lib/ElasticEmail/models/suppression.rb +4 -10
- data/lib/ElasticEmail/models/template.rb +4 -10
- data/lib/ElasticEmail/models/template_payload.rb +4 -20
- data/lib/ElasticEmail/models/template_scope.rb +1 -1
- data/lib/ElasticEmail/models/template_type.rb +1 -1
- data/lib/ElasticEmail/models/tracking_type.rb +1 -1
- data/lib/ElasticEmail/models/tracking_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/transactional_recipient.rb +4 -20
- data/lib/ElasticEmail/models/utm.rb +4 -10
- data/lib/ElasticEmail/models/verification_file_result.rb +4 -10
- data/lib/ElasticEmail/models/verification_file_result_details.rb +4 -10
- data/lib/ElasticEmail/models/verification_status.rb +1 -1
- data/lib/ElasticEmail/models/webhook.rb +4 -10
- data/lib/ElasticEmail/models/webhook_create_payload.rb +4 -30
- data/lib/ElasticEmail/models/webhook_update_payload.rb +4 -10
- data/lib/ElasticEmail/version.rb +2 -2
- data/lib/ElasticEmail.rb +1 -1
- data/spec/api/campaigns_api_spec.rb +1 -1
- data/spec/api/contacts_api_spec.rb +1 -1
- data/spec/api/domains_api_spec.rb +1 -1
- data/spec/api/emails_api_spec.rb +1 -1
- data/spec/api/events_api_spec.rb +1 -1
- data/spec/api/files_api_spec.rb +1 -1
- data/spec/api/inbound_route_api_spec.rb +1 -1
- data/spec/api/lists_api_spec.rb +1 -1
- data/spec/api/security_api_spec.rb +1 -1
- data/spec/api/segments_api_spec.rb +1 -1
- data/spec/api/statistics_api_spec.rb +1 -1
- data/spec/api/sub_accounts_api_spec.rb +1 -1
- data/spec/api/suppressions_api_spec.rb +1 -1
- data/spec/api/templates_api_spec.rb +1 -1
- data/spec/api/verifications_api_spec.rb +1 -1
- data/spec/api/webhook_api_spec.rb +1 -1
- data/spec/models/access_level_spec.rb +1 -1
- data/spec/models/account_status_enum_spec.rb +1 -1
- data/spec/models/api_key_payload_spec.rb +1 -1
- data/spec/models/api_key_spec.rb +1 -1
- data/spec/models/body_content_type_spec.rb +1 -1
- data/spec/models/body_part_spec.rb +1 -1
- data/spec/models/campaign_options_spec.rb +1 -1
- data/spec/models/campaign_recipient_spec.rb +1 -1
- data/spec/models/campaign_spec.rb +1 -1
- data/spec/models/campaign_status_spec.rb +1 -1
- data/spec/models/campaign_template_spec.rb +1 -1
- data/spec/models/certificate_validation_status_spec.rb +1 -1
- data/spec/models/channel_log_status_summary_spec.rb +1 -1
- data/spec/models/compression_format_spec.rb +1 -1
- data/spec/models/consent_data_spec.rb +1 -1
- data/spec/models/consent_tracking_spec.rb +1 -1
- data/spec/models/contact_activity_spec.rb +1 -1
- data/spec/models/contact_payload_spec.rb +1 -1
- data/spec/models/contact_source_spec.rb +1 -1
- data/spec/models/contact_spec.rb +1 -1
- data/spec/models/contact_status_spec.rb +1 -1
- data/spec/models/contact_update_payload_spec.rb +1 -1
- data/spec/models/contacts_list_spec.rb +1 -1
- data/spec/models/delivery_optimization_type_spec.rb +1 -1
- data/spec/models/dkim_record_spec.rb +1 -1
- data/spec/models/domain_data_spec.rb +1 -1
- data/spec/models/domain_detail_spec.rb +1 -1
- data/spec/models/domain_owner_spec.rb +1 -1
- data/spec/models/domain_payload_spec.rb +1 -1
- data/spec/models/domain_update_payload_spec.rb +1 -1
- data/spec/models/email_content_spec.rb +1 -1
- data/spec/models/email_data_spec.rb +1 -1
- data/spec/models/email_job_failed_status_spec.rb +1 -1
- data/spec/models/email_job_status_spec.rb +1 -1
- data/spec/models/email_message_data_spec.rb +1 -1
- data/spec/models/email_predicted_validation_status_spec.rb +1 -1
- data/spec/models/email_recipient_spec.rb +1 -1
- data/spec/models/email_send_spec.rb +1 -1
- data/spec/models/email_status_spec.rb +1 -1
- data/spec/models/email_transactional_message_data_spec.rb +1 -1
- data/spec/models/email_validation_result_spec.rb +1 -1
- data/spec/models/email_validation_status_spec.rb +1 -1
- data/spec/models/email_view_spec.rb +1 -1
- data/spec/models/emails_payload_spec.rb +1 -1
- data/spec/models/encoding_type_spec.rb +1 -1
- data/spec/models/event_type_spec.rb +1 -1
- data/spec/models/events_order_by_spec.rb +1 -1
- data/spec/models/export_file_formats_spec.rb +1 -1
- data/spec/models/export_link_spec.rb +1 -1
- data/spec/models/export_status_spec.rb +1 -1
- data/spec/models/file_info_spec.rb +1 -1
- data/spec/models/file_payload_spec.rb +1 -1
- data/spec/models/file_upload_result_spec.rb +1 -1
- data/spec/models/inbound_payload_spec.rb +1 -1
- data/spec/models/inbound_route_action_type_spec.rb +1 -1
- data/spec/models/inbound_route_filter_type_spec.rb +1 -1
- data/spec/models/inbound_route_spec.rb +1 -1
- data/spec/models/list_payload_spec.rb +1 -1
- data/spec/models/list_update_payload_spec.rb +1 -1
- data/spec/models/log_job_status_spec.rb +1 -1
- data/spec/models/log_status_summary_spec.rb +1 -1
- data/spec/models/merge_email_payload_spec.rb +1 -1
- data/spec/models/message_attachment_spec.rb +1 -1
- data/spec/models/message_category_enum_spec.rb +1 -1
- data/spec/models/message_category_spec.rb +1 -1
- data/spec/models/new_api_key_spec.rb +1 -1
- data/spec/models/new_smtp_credentials_spec.rb +1 -1
- data/spec/models/options_spec.rb +1 -1
- data/spec/models/recipient_event_spec.rb +1 -1
- data/spec/models/segment_payload_spec.rb +1 -1
- data/spec/models/segment_spec.rb +1 -1
- data/spec/models/smtp_credentials_payload_spec.rb +1 -1
- data/spec/models/smtp_credentials_spec.rb +1 -1
- data/spec/models/sort_order_item_spec.rb +1 -1
- data/spec/models/split_optimization_type_spec.rb +1 -1
- data/spec/models/split_options_spec.rb +1 -1
- data/spec/models/sub_account_info_spec.rb +1 -1
- data/spec/models/subaccount_email_credits_payload_spec.rb +1 -1
- data/spec/models/subaccount_email_settings_payload_spec.rb +1 -1
- data/spec/models/subaccount_email_settings_spec.rb +1 -1
- data/spec/models/subaccount_payload_spec.rb +1 -1
- data/spec/models/subaccount_settings_info_payload_spec.rb +1 -1
- data/spec/models/subaccount_settings_info_spec.rb +1 -1
- data/spec/models/suppression_spec.rb +1 -1
- data/spec/models/template_payload_spec.rb +1 -1
- data/spec/models/template_scope_spec.rb +1 -1
- data/spec/models/template_spec.rb +1 -1
- data/spec/models/template_type_spec.rb +1 -1
- data/spec/models/tracking_type_spec.rb +1 -1
- data/spec/models/tracking_validation_status_spec.rb +1 -1
- data/spec/models/transactional_recipient_spec.rb +1 -1
- data/spec/models/utm_spec.rb +1 -1
- data/spec/models/verification_file_result_details_spec.rb +1 -1
- data/spec/models/verification_file_result_spec.rb +1 -1
- data/spec/models/verification_status_spec.rb +1 -1
- data/spec/models/webhook_create_payload_spec.rb +1 -1
- data/spec/models/webhook_spec.rb +1 -1
- data/spec/models/webhook_update_payload_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '06992cb5829185504ab14ef86658dbcec7017bc89ab3be8d7488ee92d989acce'
|
|
4
|
+
data.tar.gz: b2b1d3bfb7e5ec9feeea50d7190b717139a1548ab0efcaac36f210107e558e2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4398e5c24377380692390953090991d298d502cb0f6b207e2df933580808a61dd2e60f90309b8dc852e44d83043ca092e15aed9a15329000baed6f58b94e90d7
|
|
7
|
+
data.tar.gz: 2048a4b9c2fbd556eaa4eb91ca0416de6517313cab1edd57d5fc5b82297f333a50c67e762b08fbaa4b3483677e1fe30593fac6acd433210b1826c056b54e0f0f
|
data/ElasticEmail.gemspec
CHANGED
data/README.md
CHANGED
|
@@ -15,8 +15,8 @@ Downloadable library clients can be found in our Github repository <a target='_b
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: 4.0.0
|
|
18
|
-
- Package version: 4.0
|
|
19
|
-
- Generator version: 7.
|
|
18
|
+
- Package version: 4.2.0
|
|
19
|
+
- Generator version: 7.11.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
21
21
|
|
|
22
22
|
## Installation
|
|
@@ -32,16 +32,16 @@ gem build ElasticEmail.gemspec
|
|
|
32
32
|
Then either install the gem locally:
|
|
33
33
|
|
|
34
34
|
```shell
|
|
35
|
-
gem install ./ElasticEmail-4.0.
|
|
35
|
+
gem install ./ElasticEmail-4.2.0.gem
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
(for development, run `gem install --dev ./ElasticEmail-4.0.
|
|
38
|
+
(for development, run `gem install --dev ./ElasticEmail-4.2.0.gem` to install the development dependencies)
|
|
39
39
|
|
|
40
40
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
41
41
|
|
|
42
42
|
Finally add this to the Gemfile:
|
|
43
43
|
|
|
44
|
-
gem 'ElasticEmail', '~> 4.0
|
|
44
|
+
gem 'ElasticEmail', '~> 4.2.0'
|
|
45
45
|
|
|
46
46
|
### Install from Git
|
|
47
47
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0
|
|
1
|
+
4.2.0
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -49,8 +49,7 @@ module ElasticEmail
|
|
|
49
49
|
# the data deserialized from response body (may be a Tempfile or nil), response status code and response headers.
|
|
50
50
|
def call_api(http_method, path, opts = {})
|
|
51
51
|
request = build_request(http_method, path, opts)
|
|
52
|
-
tempfile =
|
|
53
|
-
(download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File'
|
|
52
|
+
tempfile = download_file(request) if opts[:return_type] == 'File'
|
|
54
53
|
response = request.run
|
|
55
54
|
|
|
56
55
|
if @config.debugging
|
|
@@ -189,17 +188,19 @@ module ElasticEmail
|
|
|
189
188
|
chunk.force_encoding(encoding)
|
|
190
189
|
tempfile.write(chunk)
|
|
191
190
|
end
|
|
192
|
-
request
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
end
|
|
191
|
+
# run the request to ensure the tempfile is created successfully before returning it
|
|
192
|
+
request.run
|
|
193
|
+
if tempfile
|
|
196
194
|
tempfile.close
|
|
197
195
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
|
198
196
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
|
199
197
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
|
200
198
|
"explicitly with `tempfile.delete`"
|
|
201
|
-
|
|
199
|
+
else
|
|
200
|
+
fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}")
|
|
202
201
|
end
|
|
202
|
+
|
|
203
|
+
tempfile
|
|
203
204
|
end
|
|
204
205
|
|
|
205
206
|
# Check if the given MIME is a JSON MIME.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -46,14 +46,9 @@ module ElasticEmail
|
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
# Returns attribute mapping this model knows about
|
|
50
|
-
def self.acceptable_attribute_map
|
|
51
|
-
attribute_map
|
|
52
|
-
end
|
|
53
|
-
|
|
54
49
|
# Returns all the JSON keys this model knows about
|
|
55
50
|
def self.acceptable_attributes
|
|
56
|
-
|
|
51
|
+
attribute_map.values
|
|
57
52
|
end
|
|
58
53
|
|
|
59
54
|
# Attribute type mapping.
|
|
@@ -84,10 +79,9 @@ module ElasticEmail
|
|
|
84
79
|
end
|
|
85
80
|
|
|
86
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
87
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
88
82
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
-
if (!
|
|
90
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ApiKey`. Please check the name to make sure it's valid. List of attributes: " +
|
|
83
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
84
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ApiKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
91
85
|
end
|
|
92
86
|
h[k.to_sym] = v
|
|
93
87
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -42,14 +42,9 @@ module ElasticEmail
|
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
# Returns attribute mapping this model knows about
|
|
46
|
-
def self.acceptable_attribute_map
|
|
47
|
-
attribute_map
|
|
48
|
-
end
|
|
49
|
-
|
|
50
45
|
# Returns all the JSON keys this model knows about
|
|
51
46
|
def self.acceptable_attributes
|
|
52
|
-
|
|
47
|
+
attribute_map.values
|
|
53
48
|
end
|
|
54
49
|
|
|
55
50
|
# Attribute type mapping.
|
|
@@ -78,10 +73,9 @@ module ElasticEmail
|
|
|
78
73
|
end
|
|
79
74
|
|
|
80
75
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
81
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
82
76
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
83
|
-
if (!
|
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ApiKeyPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
77
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ApiKeyPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
85
79
|
end
|
|
86
80
|
h[k.to_sym] = v
|
|
87
81
|
}
|
|
@@ -140,26 +134,6 @@ module ElasticEmail
|
|
|
140
134
|
true
|
|
141
135
|
end
|
|
142
136
|
|
|
143
|
-
# Custom attribute writer method with validation
|
|
144
|
-
# @param [Object] name Value to be assigned
|
|
145
|
-
def name=(name)
|
|
146
|
-
if name.nil?
|
|
147
|
-
fail ArgumentError, 'name cannot be nil'
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
@name = name
|
|
151
|
-
end
|
|
152
|
-
|
|
153
|
-
# Custom attribute writer method with validation
|
|
154
|
-
# @param [Object] access_level Value to be assigned
|
|
155
|
-
def access_level=(access_level)
|
|
156
|
-
if access_level.nil?
|
|
157
|
-
fail ArgumentError, 'access_level cannot be nil'
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
@access_level = access_level
|
|
161
|
-
end
|
|
162
|
-
|
|
163
137
|
# Checks equality by comparing each attribute.
|
|
164
138
|
# @param [Object] Object to be compared
|
|
165
139
|
def ==(o)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -55,14 +55,9 @@ module ElasticEmail
|
|
|
55
55
|
}
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
-
# Returns attribute mapping this model knows about
|
|
59
|
-
def self.acceptable_attribute_map
|
|
60
|
-
attribute_map
|
|
61
|
-
end
|
|
62
|
-
|
|
63
58
|
# Returns all the JSON keys this model knows about
|
|
64
59
|
def self.acceptable_attributes
|
|
65
|
-
|
|
60
|
+
attribute_map.values
|
|
66
61
|
end
|
|
67
62
|
|
|
68
63
|
# Attribute type mapping.
|
|
@@ -88,10 +83,9 @@ module ElasticEmail
|
|
|
88
83
|
end
|
|
89
84
|
|
|
90
85
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
91
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
92
86
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
93
|
-
if (!
|
|
94
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::BodyPart`. Please check the name to make sure it's valid. List of attributes: " +
|
|
87
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
88
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::BodyPart`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
95
89
|
end
|
|
96
90
|
h[k.to_sym] = v
|
|
97
91
|
}
|
|
@@ -131,16 +125,6 @@ module ElasticEmail
|
|
|
131
125
|
true
|
|
132
126
|
end
|
|
133
127
|
|
|
134
|
-
# Custom attribute writer method with validation
|
|
135
|
-
# @param [Object] content_type Value to be assigned
|
|
136
|
-
def content_type=(content_type)
|
|
137
|
-
if content_type.nil?
|
|
138
|
-
fail ArgumentError, 'content_type cannot be nil'
|
|
139
|
-
end
|
|
140
|
-
|
|
141
|
-
@content_type = content_type
|
|
142
|
-
end
|
|
143
|
-
|
|
144
128
|
# Checks equality by comparing each attribute.
|
|
145
129
|
# @param [Object] Object to be compared
|
|
146
130
|
def ==(o)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -63,14 +63,9 @@ module ElasticEmail
|
|
|
63
63
|
}
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
# Returns attribute mapping this model knows about
|
|
67
|
-
def self.acceptable_attribute_map
|
|
68
|
-
attribute_map
|
|
69
|
-
end
|
|
70
|
-
|
|
71
66
|
# Returns all the JSON keys this model knows about
|
|
72
67
|
def self.acceptable_attributes
|
|
73
|
-
|
|
68
|
+
attribute_map.values
|
|
74
69
|
end
|
|
75
70
|
|
|
76
71
|
# Attribute type mapping.
|
|
@@ -99,10 +94,9 @@ module ElasticEmail
|
|
|
99
94
|
end
|
|
100
95
|
|
|
101
96
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
102
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
103
97
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
104
|
-
if (!
|
|
105
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Campaign`. Please check the name to make sure it's valid. List of attributes: " +
|
|
98
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
99
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Campaign`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
106
100
|
end
|
|
107
101
|
h[k.to_sym] = v
|
|
108
102
|
}
|
|
@@ -165,26 +159,6 @@ module ElasticEmail
|
|
|
165
159
|
true
|
|
166
160
|
end
|
|
167
161
|
|
|
168
|
-
# Custom attribute writer method with validation
|
|
169
|
-
# @param [Object] name Value to be assigned
|
|
170
|
-
def name=(name)
|
|
171
|
-
if name.nil?
|
|
172
|
-
fail ArgumentError, 'name cannot be nil'
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
@name = name
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# Custom attribute writer method with validation
|
|
179
|
-
# @param [Object] recipients Value to be assigned
|
|
180
|
-
def recipients=(recipients)
|
|
181
|
-
if recipients.nil?
|
|
182
|
-
fail ArgumentError, 'recipients cannot be nil'
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
@recipients = recipients
|
|
186
|
-
end
|
|
187
|
-
|
|
188
162
|
# Checks equality by comparing each attribute.
|
|
189
163
|
# @param [Object] Object to be compared
|
|
190
164
|
def ==(o)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,14 +74,9 @@ module ElasticEmail
|
|
|
74
74
|
}
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# Returns attribute mapping this model knows about
|
|
78
|
-
def self.acceptable_attribute_map
|
|
79
|
-
attribute_map
|
|
80
|
-
end
|
|
81
|
-
|
|
82
77
|
# Returns all the JSON keys this model knows about
|
|
83
78
|
def self.acceptable_attributes
|
|
84
|
-
|
|
79
|
+
attribute_map.values
|
|
85
80
|
end
|
|
86
81
|
|
|
87
82
|
# Attribute type mapping.
|
|
@@ -116,10 +111,9 @@ module ElasticEmail
|
|
|
116
111
|
end
|
|
117
112
|
|
|
118
113
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
119
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
120
114
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
121
|
-
if (!
|
|
122
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::CampaignOptions`. Please check the name to make sure it's valid. List of attributes: " +
|
|
115
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
116
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::CampaignOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
123
117
|
end
|
|
124
118
|
h[k.to_sym] = v
|
|
125
119
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 4.0.0
|
|
7
7
|
Contact: support@elasticemail.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.11.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -30,14 +30,9 @@ module ElasticEmail
|
|
|
30
30
|
}
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
# Returns attribute mapping this model knows about
|
|
34
|
-
def self.acceptable_attribute_map
|
|
35
|
-
attribute_map
|
|
36
|
-
end
|
|
37
|
-
|
|
38
33
|
# Returns all the JSON keys this model knows about
|
|
39
34
|
def self.acceptable_attributes
|
|
40
|
-
|
|
35
|
+
attribute_map.values
|
|
41
36
|
end
|
|
42
37
|
|
|
43
38
|
# Attribute type mapping.
|
|
@@ -62,10 +57,9 @@ module ElasticEmail
|
|
|
62
57
|
end
|
|
63
58
|
|
|
64
59
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
-
if (!
|
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::CampaignRecipient`. Please check the name to make sure it's valid. List of attributes: " +
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::CampaignRecipient`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
69
63
|
end
|
|
70
64
|
h[k.to_sym] = v
|
|
71
65
|
}
|