ElasticEmail 4.0.28 → 4.0.29
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 +13 -9
- data/VERSION +1 -1
- data/docs/CampaignsApi.md +73 -0
- data/docs/DKIMRecord.md +26 -0
- data/docs/DomainData.md +7 -1
- data/docs/DomainDetail.md +7 -1
- data/docs/SecurityApi.md +4 -4
- data/docs/SubAccountsApi.md +73 -1
- data/lib/ElasticEmail/api/campaigns_api.rb +69 -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 +5 -5
- 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 +66 -3
- 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 +8 -9
- 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 +10 -4
- data/lib/ElasticEmail/models/api_key_payload.rb +30 -4
- data/lib/ElasticEmail/models/body_content_type.rb +1 -1
- data/lib/ElasticEmail/models/body_part.rb +20 -4
- data/lib/ElasticEmail/models/campaign.rb +30 -4
- data/lib/ElasticEmail/models/campaign_options.rb +10 -4
- data/lib/ElasticEmail/models/campaign_recipient.rb +10 -4
- data/lib/ElasticEmail/models/campaign_status.rb +1 -1
- data/lib/ElasticEmail/models/campaign_template.rb +20 -4
- data/lib/ElasticEmail/models/certificate_validation_status.rb +3 -2
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +10 -4
- data/lib/ElasticEmail/models/compression_format.rb +1 -1
- data/lib/ElasticEmail/models/consent_data.rb +10 -4
- data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
- data/lib/ElasticEmail/models/contact.rb +10 -4
- data/lib/ElasticEmail/models/contact_activity.rb +10 -4
- data/lib/ElasticEmail/models/contact_payload.rb +20 -4
- 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 +10 -4
- data/lib/ElasticEmail/models/contacts_list.rb +10 -4
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/dkim_record.rb +258 -0
- data/lib/ElasticEmail/models/domain_data.rb +42 -8
- data/lib/ElasticEmail/models/domain_detail.rb +42 -8
- data/lib/ElasticEmail/models/domain_owner.rb +1 -1
- data/lib/ElasticEmail/models/domain_payload.rb +10 -4
- data/lib/ElasticEmail/models/domain_update_payload.rb +10 -4
- data/lib/ElasticEmail/models/email_content.rb +20 -4
- data/lib/ElasticEmail/models/email_data.rb +10 -4
- data/lib/ElasticEmail/models/email_job_failed_status.rb +10 -4
- data/lib/ElasticEmail/models/email_job_status.rb +10 -4
- data/lib/ElasticEmail/models/email_message_data.rb +30 -4
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_recipient.rb +20 -4
- data/lib/ElasticEmail/models/email_send.rb +10 -4
- data/lib/ElasticEmail/models/email_status.rb +10 -4
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +30 -4
- data/lib/ElasticEmail/models/email_validation_result.rb +10 -4
- data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_view.rb +10 -4
- data/lib/ElasticEmail/models/emails_payload.rb +10 -4
- data/lib/ElasticEmail/models/encoding_type.rb +1 -1
- data/lib/ElasticEmail/models/event_type.rb +6 -3
- 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 +10 -4
- data/lib/ElasticEmail/models/export_status.rb +1 -1
- data/lib/ElasticEmail/models/file_info.rb +10 -4
- data/lib/ElasticEmail/models/file_payload.rb +20 -4
- data/lib/ElasticEmail/models/file_upload_result.rb +10 -4
- data/lib/ElasticEmail/models/inbound_payload.rb +50 -4
- data/lib/ElasticEmail/models/inbound_route.rb +10 -4
- 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 +20 -4
- data/lib/ElasticEmail/models/list_update_payload.rb +10 -4
- data/lib/ElasticEmail/models/log_job_status.rb +1 -1
- data/lib/ElasticEmail/models/log_status_summary.rb +10 -4
- data/lib/ElasticEmail/models/merge_email_payload.rb +30 -4
- data/lib/ElasticEmail/models/message_attachment.rb +30 -4
- 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 +10 -4
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +10 -4
- data/lib/ElasticEmail/models/options.rb +10 -4
- data/lib/ElasticEmail/models/recipient_event.rb +10 -4
- data/lib/ElasticEmail/models/segment.rb +10 -4
- data/lib/ElasticEmail/models/segment_payload.rb +30 -4
- data/lib/ElasticEmail/models/smtp_credentials.rb +10 -4
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +20 -4
- data/lib/ElasticEmail/models/sort_order_item.rb +30 -4
- data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/split_options.rb +10 -4
- data/lib/ElasticEmail/models/sub_account_info.rb +10 -4
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +20 -4
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +10 -4
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +10 -4
- data/lib/ElasticEmail/models/subaccount_payload.rb +30 -4
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +10 -4
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +10 -4
- data/lib/ElasticEmail/models/suppression.rb +10 -4
- data/lib/ElasticEmail/models/template.rb +10 -4
- data/lib/ElasticEmail/models/template_payload.rb +20 -4
- 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 +20 -4
- data/lib/ElasticEmail/models/utm.rb +10 -4
- data/lib/ElasticEmail/models/verification_file_result.rb +10 -4
- data/lib/ElasticEmail/models/verification_file_result_details.rb +10 -4
- data/lib/ElasticEmail/models/verification_status.rb +1 -1
- data/lib/ElasticEmail/models/webhook.rb +10 -4
- data/lib/ElasticEmail/models/webhook_create_payload.rb +30 -4
- data/lib/ElasticEmail/models/webhook_update_payload.rb +10 -4
- data/lib/ElasticEmail/version.rb +2 -2
- data/lib/ElasticEmail.rb +2 -1
- data/spec/api/campaigns_api_spec.rb +14 -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 +3 -3
- 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 +14 -2
- 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 +60 -0
- data/spec/models/domain_data_spec.rb +19 -1
- data/spec/models/domain_detail_spec.rb +19 -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 +95 -91
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -48,6 +48,8 @@ module ElasticEmail
|
|
|
48
48
|
|
|
49
49
|
attr_accessor :certificate_status
|
|
50
50
|
|
|
51
|
+
attr_accessor :certificate_expiry_date
|
|
52
|
+
|
|
51
53
|
attr_accessor :certificate_validation_error
|
|
52
54
|
|
|
53
55
|
attr_accessor :tracking_type_user_request
|
|
@@ -58,10 +60,14 @@ module ElasticEmail
|
|
|
58
60
|
|
|
59
61
|
attr_accessor :is_custom_bounces_domain_default
|
|
60
62
|
|
|
63
|
+
attr_accessor :was_ever_verified
|
|
64
|
+
|
|
61
65
|
attr_accessor :is_marked_for_deletion
|
|
62
66
|
|
|
63
67
|
attr_accessor :ownership
|
|
64
68
|
|
|
69
|
+
attr_accessor :dkim_record
|
|
70
|
+
|
|
65
71
|
class EnumAttributeValidator
|
|
66
72
|
attr_reader :datatype
|
|
67
73
|
attr_reader :allowable_values
|
|
@@ -99,19 +105,27 @@ module ElasticEmail
|
|
|
99
105
|
:'type' => :'Type',
|
|
100
106
|
:'tracking_status' => :'TrackingStatus',
|
|
101
107
|
:'certificate_status' => :'CertificateStatus',
|
|
108
|
+
:'certificate_expiry_date' => :'CertificateExpiryDate',
|
|
102
109
|
:'certificate_validation_error' => :'CertificateValidationError',
|
|
103
110
|
:'tracking_type_user_request' => :'TrackingTypeUserRequest',
|
|
104
111
|
:'verp' => :'VERP',
|
|
105
112
|
:'custom_bounces_domain' => :'CustomBouncesDomain',
|
|
106
113
|
:'is_custom_bounces_domain_default' => :'IsCustomBouncesDomainDefault',
|
|
114
|
+
:'was_ever_verified' => :'WasEverVerified',
|
|
107
115
|
:'is_marked_for_deletion' => :'IsMarkedForDeletion',
|
|
108
|
-
:'ownership' => :'Ownership'
|
|
116
|
+
:'ownership' => :'Ownership',
|
|
117
|
+
:'dkim_record' => :'DKIMRecord'
|
|
109
118
|
}
|
|
110
119
|
end
|
|
111
120
|
|
|
121
|
+
# Returns attribute mapping this model knows about
|
|
122
|
+
def self.acceptable_attribute_map
|
|
123
|
+
attribute_map
|
|
124
|
+
end
|
|
125
|
+
|
|
112
126
|
# Returns all the JSON keys this model knows about
|
|
113
127
|
def self.acceptable_attributes
|
|
114
|
-
|
|
128
|
+
acceptable_attribute_map.values
|
|
115
129
|
end
|
|
116
130
|
|
|
117
131
|
# Attribute type mapping.
|
|
@@ -129,19 +143,23 @@ module ElasticEmail
|
|
|
129
143
|
:'type' => :'TrackingType',
|
|
130
144
|
:'tracking_status' => :'TrackingValidationStatus',
|
|
131
145
|
:'certificate_status' => :'CertificateValidationStatus',
|
|
146
|
+
:'certificate_expiry_date' => :'Time',
|
|
132
147
|
:'certificate_validation_error' => :'String',
|
|
133
148
|
:'tracking_type_user_request' => :'TrackingType',
|
|
134
149
|
:'verp' => :'Boolean',
|
|
135
150
|
:'custom_bounces_domain' => :'String',
|
|
136
151
|
:'is_custom_bounces_domain_default' => :'Boolean',
|
|
152
|
+
:'was_ever_verified' => :'Boolean',
|
|
137
153
|
:'is_marked_for_deletion' => :'Boolean',
|
|
138
|
-
:'ownership' => :'DomainOwner'
|
|
154
|
+
:'ownership' => :'DomainOwner',
|
|
155
|
+
:'dkim_record' => :'DKIMRecord'
|
|
139
156
|
}
|
|
140
157
|
end
|
|
141
158
|
|
|
142
159
|
# List of attributes with nullable: true
|
|
143
160
|
def self.openapi_nullable
|
|
144
161
|
Set.new([
|
|
162
|
+
:'certificate_expiry_date',
|
|
145
163
|
])
|
|
146
164
|
end
|
|
147
165
|
|
|
@@ -153,9 +171,10 @@ module ElasticEmail
|
|
|
153
171
|
end
|
|
154
172
|
|
|
155
173
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
174
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
156
175
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
157
|
-
if (!
|
|
158
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainData`. Please check the name to make sure it's valid. List of attributes: " +
|
|
176
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
177
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
159
178
|
end
|
|
160
179
|
h[k.to_sym] = v
|
|
161
180
|
}
|
|
@@ -214,6 +233,10 @@ module ElasticEmail
|
|
|
214
233
|
self.certificate_status = 'ErrorOccured'
|
|
215
234
|
end
|
|
216
235
|
|
|
236
|
+
if attributes.key?(:'certificate_expiry_date')
|
|
237
|
+
self.certificate_expiry_date = attributes[:'certificate_expiry_date']
|
|
238
|
+
end
|
|
239
|
+
|
|
217
240
|
if attributes.key?(:'certificate_validation_error')
|
|
218
241
|
self.certificate_validation_error = attributes[:'certificate_validation_error']
|
|
219
242
|
end
|
|
@@ -236,6 +259,10 @@ module ElasticEmail
|
|
|
236
259
|
self.is_custom_bounces_domain_default = attributes[:'is_custom_bounces_domain_default']
|
|
237
260
|
end
|
|
238
261
|
|
|
262
|
+
if attributes.key?(:'was_ever_verified')
|
|
263
|
+
self.was_ever_verified = attributes[:'was_ever_verified']
|
|
264
|
+
end
|
|
265
|
+
|
|
239
266
|
if attributes.key?(:'is_marked_for_deletion')
|
|
240
267
|
self.is_marked_for_deletion = attributes[:'is_marked_for_deletion']
|
|
241
268
|
end
|
|
@@ -245,6 +272,10 @@ module ElasticEmail
|
|
|
245
272
|
else
|
|
246
273
|
self.ownership = 'Current'
|
|
247
274
|
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'dkim_record')
|
|
277
|
+
self.dkim_record = attributes[:'dkim_record']
|
|
278
|
+
end
|
|
248
279
|
end
|
|
249
280
|
|
|
250
281
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -279,13 +310,16 @@ module ElasticEmail
|
|
|
279
310
|
type == o.type &&
|
|
280
311
|
tracking_status == o.tracking_status &&
|
|
281
312
|
certificate_status == o.certificate_status &&
|
|
313
|
+
certificate_expiry_date == o.certificate_expiry_date &&
|
|
282
314
|
certificate_validation_error == o.certificate_validation_error &&
|
|
283
315
|
tracking_type_user_request == o.tracking_type_user_request &&
|
|
284
316
|
verp == o.verp &&
|
|
285
317
|
custom_bounces_domain == o.custom_bounces_domain &&
|
|
286
318
|
is_custom_bounces_domain_default == o.is_custom_bounces_domain_default &&
|
|
319
|
+
was_ever_verified == o.was_ever_verified &&
|
|
287
320
|
is_marked_for_deletion == o.is_marked_for_deletion &&
|
|
288
|
-
ownership == o.ownership
|
|
321
|
+
ownership == o.ownership &&
|
|
322
|
+
dkim_record == o.dkim_record
|
|
289
323
|
end
|
|
290
324
|
|
|
291
325
|
# @see the `==` method
|
|
@@ -297,7 +331,7 @@ module ElasticEmail
|
|
|
297
331
|
# Calculates hash code according to all attributes.
|
|
298
332
|
# @return [Integer] Hash code
|
|
299
333
|
def hash
|
|
300
|
-
[validation_log, domain, default_domain, spf, dkim, mx, dmarc, is_rewrite_domain_valid, verify, type, tracking_status, certificate_status, certificate_validation_error, tracking_type_user_request, verp, custom_bounces_domain, is_custom_bounces_domain_default, is_marked_for_deletion, ownership].hash
|
|
334
|
+
[validation_log, domain, default_domain, spf, dkim, mx, dmarc, is_rewrite_domain_valid, verify, type, tracking_status, certificate_status, certificate_expiry_date, certificate_validation_error, tracking_type_user_request, verp, custom_bounces_domain, is_custom_bounces_domain_default, was_ever_verified, is_marked_for_deletion, ownership, dkim_record].hash
|
|
301
335
|
end
|
|
302
336
|
|
|
303
337
|
# Builds the object from hash
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -45,6 +45,8 @@ module ElasticEmail
|
|
|
45
45
|
|
|
46
46
|
attr_accessor :certificate_status
|
|
47
47
|
|
|
48
|
+
attr_accessor :certificate_expiry_date
|
|
49
|
+
|
|
48
50
|
attr_accessor :certificate_validation_error
|
|
49
51
|
|
|
50
52
|
attr_accessor :tracking_type_user_request
|
|
@@ -55,10 +57,14 @@ module ElasticEmail
|
|
|
55
57
|
|
|
56
58
|
attr_accessor :is_custom_bounces_domain_default
|
|
57
59
|
|
|
60
|
+
attr_accessor :was_ever_verified
|
|
61
|
+
|
|
58
62
|
attr_accessor :is_marked_for_deletion
|
|
59
63
|
|
|
60
64
|
attr_accessor :ownership
|
|
61
65
|
|
|
66
|
+
attr_accessor :dkim_record
|
|
67
|
+
|
|
62
68
|
class EnumAttributeValidator
|
|
63
69
|
attr_reader :datatype
|
|
64
70
|
attr_reader :allowable_values
|
|
@@ -95,19 +101,27 @@ module ElasticEmail
|
|
|
95
101
|
:'type' => :'Type',
|
|
96
102
|
:'tracking_status' => :'TrackingStatus',
|
|
97
103
|
:'certificate_status' => :'CertificateStatus',
|
|
104
|
+
:'certificate_expiry_date' => :'CertificateExpiryDate',
|
|
98
105
|
:'certificate_validation_error' => :'CertificateValidationError',
|
|
99
106
|
:'tracking_type_user_request' => :'TrackingTypeUserRequest',
|
|
100
107
|
:'verp' => :'VERP',
|
|
101
108
|
:'custom_bounces_domain' => :'CustomBouncesDomain',
|
|
102
109
|
:'is_custom_bounces_domain_default' => :'IsCustomBouncesDomainDefault',
|
|
110
|
+
:'was_ever_verified' => :'WasEverVerified',
|
|
103
111
|
:'is_marked_for_deletion' => :'IsMarkedForDeletion',
|
|
104
|
-
:'ownership' => :'Ownership'
|
|
112
|
+
:'ownership' => :'Ownership',
|
|
113
|
+
:'dkim_record' => :'DKIMRecord'
|
|
105
114
|
}
|
|
106
115
|
end
|
|
107
116
|
|
|
117
|
+
# Returns attribute mapping this model knows about
|
|
118
|
+
def self.acceptable_attribute_map
|
|
119
|
+
attribute_map
|
|
120
|
+
end
|
|
121
|
+
|
|
108
122
|
# Returns all the JSON keys this model knows about
|
|
109
123
|
def self.acceptable_attributes
|
|
110
|
-
|
|
124
|
+
acceptable_attribute_map.values
|
|
111
125
|
end
|
|
112
126
|
|
|
113
127
|
# Attribute type mapping.
|
|
@@ -124,19 +138,23 @@ module ElasticEmail
|
|
|
124
138
|
:'type' => :'TrackingType',
|
|
125
139
|
:'tracking_status' => :'TrackingValidationStatus',
|
|
126
140
|
:'certificate_status' => :'CertificateValidationStatus',
|
|
141
|
+
:'certificate_expiry_date' => :'Time',
|
|
127
142
|
:'certificate_validation_error' => :'String',
|
|
128
143
|
:'tracking_type_user_request' => :'TrackingType',
|
|
129
144
|
:'verp' => :'Boolean',
|
|
130
145
|
:'custom_bounces_domain' => :'String',
|
|
131
146
|
:'is_custom_bounces_domain_default' => :'Boolean',
|
|
147
|
+
:'was_ever_verified' => :'Boolean',
|
|
132
148
|
:'is_marked_for_deletion' => :'Boolean',
|
|
133
|
-
:'ownership' => :'DomainOwner'
|
|
149
|
+
:'ownership' => :'DomainOwner',
|
|
150
|
+
:'dkim_record' => :'DKIMRecord'
|
|
134
151
|
}
|
|
135
152
|
end
|
|
136
153
|
|
|
137
154
|
# List of attributes with nullable: true
|
|
138
155
|
def self.openapi_nullable
|
|
139
156
|
Set.new([
|
|
157
|
+
:'certificate_expiry_date',
|
|
140
158
|
])
|
|
141
159
|
end
|
|
142
160
|
|
|
@@ -148,9 +166,10 @@ module ElasticEmail
|
|
|
148
166
|
end
|
|
149
167
|
|
|
150
168
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
169
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
151
170
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
152
|
-
if (!
|
|
153
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainDetail`. Please check the name to make sure it's valid. List of attributes: " +
|
|
171
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
172
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
154
173
|
end
|
|
155
174
|
h[k.to_sym] = v
|
|
156
175
|
}
|
|
@@ -205,6 +224,10 @@ module ElasticEmail
|
|
|
205
224
|
self.certificate_status = 'ErrorOccured'
|
|
206
225
|
end
|
|
207
226
|
|
|
227
|
+
if attributes.key?(:'certificate_expiry_date')
|
|
228
|
+
self.certificate_expiry_date = attributes[:'certificate_expiry_date']
|
|
229
|
+
end
|
|
230
|
+
|
|
208
231
|
if attributes.key?(:'certificate_validation_error')
|
|
209
232
|
self.certificate_validation_error = attributes[:'certificate_validation_error']
|
|
210
233
|
end
|
|
@@ -227,6 +250,10 @@ module ElasticEmail
|
|
|
227
250
|
self.is_custom_bounces_domain_default = attributes[:'is_custom_bounces_domain_default']
|
|
228
251
|
end
|
|
229
252
|
|
|
253
|
+
if attributes.key?(:'was_ever_verified')
|
|
254
|
+
self.was_ever_verified = attributes[:'was_ever_verified']
|
|
255
|
+
end
|
|
256
|
+
|
|
230
257
|
if attributes.key?(:'is_marked_for_deletion')
|
|
231
258
|
self.is_marked_for_deletion = attributes[:'is_marked_for_deletion']
|
|
232
259
|
end
|
|
@@ -236,6 +263,10 @@ module ElasticEmail
|
|
|
236
263
|
else
|
|
237
264
|
self.ownership = 'Current'
|
|
238
265
|
end
|
|
266
|
+
|
|
267
|
+
if attributes.key?(:'dkim_record')
|
|
268
|
+
self.dkim_record = attributes[:'dkim_record']
|
|
269
|
+
end
|
|
239
270
|
end
|
|
240
271
|
|
|
241
272
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -269,13 +300,16 @@ module ElasticEmail
|
|
|
269
300
|
type == o.type &&
|
|
270
301
|
tracking_status == o.tracking_status &&
|
|
271
302
|
certificate_status == o.certificate_status &&
|
|
303
|
+
certificate_expiry_date == o.certificate_expiry_date &&
|
|
272
304
|
certificate_validation_error == o.certificate_validation_error &&
|
|
273
305
|
tracking_type_user_request == o.tracking_type_user_request &&
|
|
274
306
|
verp == o.verp &&
|
|
275
307
|
custom_bounces_domain == o.custom_bounces_domain &&
|
|
276
308
|
is_custom_bounces_domain_default == o.is_custom_bounces_domain_default &&
|
|
309
|
+
was_ever_verified == o.was_ever_verified &&
|
|
277
310
|
is_marked_for_deletion == o.is_marked_for_deletion &&
|
|
278
|
-
ownership == o.ownership
|
|
311
|
+
ownership == o.ownership &&
|
|
312
|
+
dkim_record == o.dkim_record
|
|
279
313
|
end
|
|
280
314
|
|
|
281
315
|
# @see the `==` method
|
|
@@ -287,7 +321,7 @@ module ElasticEmail
|
|
|
287
321
|
# Calculates hash code according to all attributes.
|
|
288
322
|
# @return [Integer] Hash code
|
|
289
323
|
def hash
|
|
290
|
-
[domain, default_domain, spf, dkim, mx, dmarc, is_rewrite_domain_valid, verify, type, tracking_status, certificate_status, certificate_validation_error, tracking_type_user_request, verp, custom_bounces_domain, is_custom_bounces_domain_default, is_marked_for_deletion, ownership].hash
|
|
324
|
+
[domain, default_domain, spf, dkim, mx, dmarc, is_rewrite_domain_valid, verify, type, tracking_status, certificate_status, certificate_expiry_date, certificate_validation_error, tracking_type_user_request, verp, custom_bounces_domain, is_custom_bounces_domain_default, was_ever_verified, is_marked_for_deletion, ownership, dkim_record].hash
|
|
291
325
|
end
|
|
292
326
|
|
|
293
327
|
# Builds the object from hash
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -28,9 +28,14 @@ module ElasticEmail
|
|
|
28
28
|
}
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# Returns attribute mapping this model knows about
|
|
32
|
+
def self.acceptable_attribute_map
|
|
33
|
+
attribute_map
|
|
34
|
+
end
|
|
35
|
+
|
|
31
36
|
# Returns all the JSON keys this model knows about
|
|
32
37
|
def self.acceptable_attributes
|
|
33
|
-
|
|
38
|
+
acceptable_attribute_map.values
|
|
34
39
|
end
|
|
35
40
|
|
|
36
41
|
# Attribute type mapping.
|
|
@@ -55,9 +60,10 @@ module ElasticEmail
|
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
63
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
58
64
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
-
if (!
|
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
65
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
61
67
|
end
|
|
62
68
|
h[k.to_sym] = v
|
|
63
69
|
}
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -55,9 +55,14 @@ 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
|
+
|
|
58
63
|
# Returns all the JSON keys this model knows about
|
|
59
64
|
def self.acceptable_attributes
|
|
60
|
-
|
|
65
|
+
acceptable_attribute_map.values
|
|
61
66
|
end
|
|
62
67
|
|
|
63
68
|
# Attribute type mapping.
|
|
@@ -84,9 +89,10 @@ module ElasticEmail
|
|
|
84
89
|
end
|
|
85
90
|
|
|
86
91
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
92
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
93
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
|
-
if (!
|
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
94
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::DomainUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
90
96
|
end
|
|
91
97
|
h[k.to_sym] = v
|
|
92
98
|
}
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -69,9 +69,14 @@ module ElasticEmail
|
|
|
69
69
|
}
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
# Returns attribute mapping this model knows about
|
|
73
|
+
def self.acceptable_attribute_map
|
|
74
|
+
attribute_map
|
|
75
|
+
end
|
|
76
|
+
|
|
72
77
|
# Returns all the JSON keys this model knows about
|
|
73
78
|
def self.acceptable_attributes
|
|
74
|
-
|
|
79
|
+
acceptable_attribute_map.values
|
|
75
80
|
end
|
|
76
81
|
|
|
77
82
|
# Attribute type mapping.
|
|
@@ -106,9 +111,10 @@ module ElasticEmail
|
|
|
106
111
|
end
|
|
107
112
|
|
|
108
113
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
114
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
109
115
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
110
|
-
if (!
|
|
111
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailContent`. Please check the name to make sure it's valid. List of attributes: " +
|
|
116
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailContent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
112
118
|
end
|
|
113
119
|
h[k.to_sym] = v
|
|
114
120
|
}
|
|
@@ -194,6 +200,16 @@ module ElasticEmail
|
|
|
194
200
|
true
|
|
195
201
|
end
|
|
196
202
|
|
|
203
|
+
# Custom attribute writer method with validation
|
|
204
|
+
# @param [Object] from Value to be assigned
|
|
205
|
+
def from=(from)
|
|
206
|
+
if from.nil?
|
|
207
|
+
fail ArgumentError, 'from cannot be nil'
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
@from = from
|
|
211
|
+
end
|
|
212
|
+
|
|
197
213
|
# Checks equality by comparing each attribute.
|
|
198
214
|
# @param [Object] Object to be compared
|
|
199
215
|
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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -31,9 +31,14 @@ module ElasticEmail
|
|
|
31
31
|
}
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
# Returns attribute mapping this model knows about
|
|
35
|
+
def self.acceptable_attribute_map
|
|
36
|
+
attribute_map
|
|
37
|
+
end
|
|
38
|
+
|
|
34
39
|
# Returns all the JSON keys this model knows about
|
|
35
40
|
def self.acceptable_attributes
|
|
36
|
-
|
|
41
|
+
acceptable_attribute_map.values
|
|
37
42
|
end
|
|
38
43
|
|
|
39
44
|
# Attribute type mapping.
|
|
@@ -59,9 +64,10 @@ module ElasticEmail
|
|
|
59
64
|
end
|
|
60
65
|
|
|
61
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
62
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
63
|
-
if (!
|
|
64
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailData`. Please check the name to make sure it's valid. List of attributes: " +
|
|
69
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
65
71
|
end
|
|
66
72
|
h[k.to_sym] = v
|
|
67
73
|
}
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -34,9 +34,14 @@ module ElasticEmail
|
|
|
34
34
|
}
|
|
35
35
|
end
|
|
36
36
|
|
|
37
|
+
# Returns attribute mapping this model knows about
|
|
38
|
+
def self.acceptable_attribute_map
|
|
39
|
+
attribute_map
|
|
40
|
+
end
|
|
41
|
+
|
|
37
42
|
# Returns all the JSON keys this model knows about
|
|
38
43
|
def self.acceptable_attributes
|
|
39
|
-
|
|
44
|
+
acceptable_attribute_map.values
|
|
40
45
|
end
|
|
41
46
|
|
|
42
47
|
# Attribute type mapping.
|
|
@@ -63,9 +68,10 @@ module ElasticEmail
|
|
|
63
68
|
end
|
|
64
69
|
|
|
65
70
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
71
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
72
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
-
if (!
|
|
68
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailJobFailedStatus`. Please check the name to make sure it's valid. List of attributes: " +
|
|
73
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailJobFailedStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
75
|
end
|
|
70
76
|
h[k.to_sym] = v
|
|
71
77
|
}
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -93,9 +93,14 @@ module ElasticEmail
|
|
|
93
93
|
}
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
# Returns attribute mapping this model knows about
|
|
97
|
+
def self.acceptable_attribute_map
|
|
98
|
+
attribute_map
|
|
99
|
+
end
|
|
100
|
+
|
|
96
101
|
# Returns all the JSON keys this model knows about
|
|
97
102
|
def self.acceptable_attributes
|
|
98
|
-
|
|
103
|
+
acceptable_attribute_map.values
|
|
99
104
|
end
|
|
100
105
|
|
|
101
106
|
# Attribute type mapping.
|
|
@@ -138,9 +143,10 @@ module ElasticEmail
|
|
|
138
143
|
end
|
|
139
144
|
|
|
140
145
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
146
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
141
147
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
142
|
-
if (!
|
|
143
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailJobStatus`. Please check the name to make sure it's valid. List of attributes: " +
|
|
148
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
149
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailJobStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
144
150
|
end
|
|
145
151
|
h[k.to_sym] = v
|
|
146
152
|
}
|
|
@@ -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.14.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -32,9 +32,14 @@ module ElasticEmail
|
|
|
32
32
|
}
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# Returns attribute mapping this model knows about
|
|
36
|
+
def self.acceptable_attribute_map
|
|
37
|
+
attribute_map
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
# Returns all the JSON keys this model knows about
|
|
36
41
|
def self.acceptable_attributes
|
|
37
|
-
|
|
42
|
+
acceptable_attribute_map.values
|
|
38
43
|
end
|
|
39
44
|
|
|
40
45
|
# Attribute type mapping.
|
|
@@ -60,9 +65,10 @@ module ElasticEmail
|
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
-
if (!
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailMessageData`. Please check the name to make sure it's valid. List of attributes: " +
|
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::EmailMessageData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
72
|
end
|
|
67
73
|
h[k.to_sym] = v
|
|
68
74
|
}
|
|
@@ -111,6 +117,26 @@ module ElasticEmail
|
|
|
111
117
|
true
|
|
112
118
|
end
|
|
113
119
|
|
|
120
|
+
# Custom attribute writer method with validation
|
|
121
|
+
# @param [Object] recipients Value to be assigned
|
|
122
|
+
def recipients=(recipients)
|
|
123
|
+
if recipients.nil?
|
|
124
|
+
fail ArgumentError, 'recipients cannot be nil'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@recipients = recipients
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] content Value to be assigned
|
|
132
|
+
def content=(content)
|
|
133
|
+
if content.nil?
|
|
134
|
+
fail ArgumentError, 'content cannot be nil'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
@content = content
|
|
138
|
+
end
|
|
139
|
+
|
|
114
140
|
# Checks equality by comparing each attribute.
|
|
115
141
|
# @param [Object] Object to be compared
|
|
116
142
|
def ==(o)
|