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
|
@@ -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::Segment`. 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::Segment`. 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
|
}
|
|
@@ -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
|
|
|
@@ -29,14 +29,9 @@ module ElasticEmail
|
|
|
29
29
|
}
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# Returns attribute mapping this model knows about
|
|
33
|
-
def self.acceptable_attribute_map
|
|
34
|
-
attribute_map
|
|
35
|
-
end
|
|
36
|
-
|
|
37
32
|
# Returns all the JSON keys this model knows about
|
|
38
33
|
def self.acceptable_attributes
|
|
39
|
-
|
|
34
|
+
attribute_map.values
|
|
40
35
|
end
|
|
41
36
|
|
|
42
37
|
# Attribute type mapping.
|
|
@@ -61,10 +56,9 @@ module ElasticEmail
|
|
|
61
56
|
end
|
|
62
57
|
|
|
63
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
59
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
-
if (!
|
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SegmentPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SegmentPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
68
62
|
end
|
|
69
63
|
h[k.to_sym] = v
|
|
70
64
|
}
|
|
@@ -107,26 +101,6 @@ module ElasticEmail
|
|
|
107
101
|
true
|
|
108
102
|
end
|
|
109
103
|
|
|
110
|
-
# Custom attribute writer method with validation
|
|
111
|
-
# @param [Object] name Value to be assigned
|
|
112
|
-
def name=(name)
|
|
113
|
-
if name.nil?
|
|
114
|
-
fail ArgumentError, 'name cannot be nil'
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@name = name
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object] rule Value to be assigned
|
|
122
|
-
def rule=(rule)
|
|
123
|
-
if rule.nil?
|
|
124
|
-
fail ArgumentError, 'rule cannot be nil'
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@rule = rule
|
|
128
|
-
end
|
|
129
|
-
|
|
130
104
|
# Checks equality by comparing each attribute.
|
|
131
105
|
# @param [Object] Object to be compared
|
|
132
106
|
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
|
|
|
@@ -67,14 +67,9 @@ module ElasticEmail
|
|
|
67
67
|
}
|
|
68
68
|
end
|
|
69
69
|
|
|
70
|
-
# Returns attribute mapping this model knows about
|
|
71
|
-
def self.acceptable_attribute_map
|
|
72
|
-
attribute_map
|
|
73
|
-
end
|
|
74
|
-
|
|
75
70
|
# Returns all the JSON keys this model knows about
|
|
76
71
|
def self.acceptable_attributes
|
|
77
|
-
|
|
72
|
+
attribute_map.values
|
|
78
73
|
end
|
|
79
74
|
|
|
80
75
|
# Attribute type mapping.
|
|
@@ -105,10 +100,9 @@ module ElasticEmail
|
|
|
105
100
|
end
|
|
106
101
|
|
|
107
102
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
108
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
109
103
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
110
|
-
if (!
|
|
111
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SmtpCredentials`. Please check the name to make sure it's valid. List of attributes: " +
|
|
104
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
105
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SmtpCredentials`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
112
106
|
end
|
|
113
107
|
h[k.to_sym] = v
|
|
114
108
|
}
|
|
@@ -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
|
|
|
@@ -38,14 +38,9 @@ module ElasticEmail
|
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
# Returns attribute mapping this model knows about
|
|
42
|
-
def self.acceptable_attribute_map
|
|
43
|
-
attribute_map
|
|
44
|
-
end
|
|
45
|
-
|
|
46
41
|
# Returns all the JSON keys this model knows about
|
|
47
42
|
def self.acceptable_attributes
|
|
48
|
-
|
|
43
|
+
attribute_map.values
|
|
49
44
|
end
|
|
50
45
|
|
|
51
46
|
# Attribute type mapping.
|
|
@@ -73,10 +68,9 @@ module ElasticEmail
|
|
|
73
68
|
end
|
|
74
69
|
|
|
75
70
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
76
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
77
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
78
|
-
if (!
|
|
79
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SmtpCredentialsPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
72
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SmtpCredentialsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
80
74
|
end
|
|
81
75
|
h[k.to_sym] = v
|
|
82
76
|
}
|
|
@@ -122,16 +116,6 @@ module ElasticEmail
|
|
|
122
116
|
true
|
|
123
117
|
end
|
|
124
118
|
|
|
125
|
-
# Custom attribute writer method with validation
|
|
126
|
-
# @param [Object] name Value to be assigned
|
|
127
|
-
def name=(name)
|
|
128
|
-
if name.nil?
|
|
129
|
-
fail ArgumentError, 'name cannot be nil'
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
@name = name
|
|
133
|
-
end
|
|
134
|
-
|
|
135
119
|
# Checks equality by comparing each attribute.
|
|
136
120
|
# @param [Object] Object to be compared
|
|
137
121
|
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
|
|
|
@@ -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::SortOrderItem`. 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::SortOrderItem`. 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
|
}
|
|
@@ -108,26 +102,6 @@ module ElasticEmail
|
|
|
108
102
|
true
|
|
109
103
|
end
|
|
110
104
|
|
|
111
|
-
# Custom attribute writer method with validation
|
|
112
|
-
# @param [Object] public_inbound_id Value to be assigned
|
|
113
|
-
def public_inbound_id=(public_inbound_id)
|
|
114
|
-
if public_inbound_id.nil?
|
|
115
|
-
fail ArgumentError, 'public_inbound_id cannot be nil'
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
@public_inbound_id = public_inbound_id
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# Custom attribute writer method with validation
|
|
122
|
-
# @param [Object] sort_order Value to be assigned
|
|
123
|
-
def sort_order=(sort_order)
|
|
124
|
-
if sort_order.nil?
|
|
125
|
-
fail ArgumentError, 'sort_order cannot be nil'
|
|
126
|
-
end
|
|
127
|
-
|
|
128
|
-
@sort_order = sort_order
|
|
129
|
-
end
|
|
130
|
-
|
|
131
105
|
# Checks equality by comparing each attribute.
|
|
132
106
|
# @param [Object] Object to be compared
|
|
133
107
|
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
|
|
|
@@ -51,14 +51,9 @@ module ElasticEmail
|
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
# Returns attribute mapping this model knows about
|
|
55
|
-
def self.acceptable_attribute_map
|
|
56
|
-
attribute_map
|
|
57
|
-
end
|
|
58
|
-
|
|
59
54
|
# Returns all the JSON keys this model knows about
|
|
60
55
|
def self.acceptable_attributes
|
|
61
|
-
|
|
56
|
+
attribute_map.values
|
|
62
57
|
end
|
|
63
58
|
|
|
64
59
|
# Attribute type mapping.
|
|
@@ -83,10 +78,9 @@ module ElasticEmail
|
|
|
83
78
|
end
|
|
84
79
|
|
|
85
80
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
86
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
87
81
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
88
|
-
if (!
|
|
89
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SplitOptions`. Please check the name to make sure it's valid. List of attributes: " +
|
|
82
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
83
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SplitOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
90
84
|
end
|
|
91
85
|
h[k.to_sym] = v
|
|
92
86
|
}
|
|
@@ -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
|
|
|
@@ -78,14 +78,9 @@ module ElasticEmail
|
|
|
78
78
|
}
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
# Returns attribute mapping this model knows about
|
|
82
|
-
def self.acceptable_attribute_map
|
|
83
|
-
attribute_map
|
|
84
|
-
end
|
|
85
|
-
|
|
86
81
|
# Returns all the JSON keys this model knows about
|
|
87
82
|
def self.acceptable_attributes
|
|
88
|
-
|
|
83
|
+
attribute_map.values
|
|
89
84
|
end
|
|
90
85
|
|
|
91
86
|
# Attribute type mapping.
|
|
@@ -117,10 +112,9 @@ module ElasticEmail
|
|
|
117
112
|
end
|
|
118
113
|
|
|
119
114
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
120
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
121
115
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
122
|
-
if (!
|
|
123
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubAccountInfo`. Please check the name to make sure it's valid. List of attributes: " +
|
|
116
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubAccountInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
124
118
|
end
|
|
125
119
|
h[k.to_sym] = v
|
|
126
120
|
}
|
|
@@ -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::SubaccountEmailCreditsPayload`. 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::SubaccountEmailCreditsPayload`. 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
|
}
|
|
@@ -101,16 +95,6 @@ module ElasticEmail
|
|
|
101
95
|
true
|
|
102
96
|
end
|
|
103
97
|
|
|
104
|
-
# Custom attribute writer method with validation
|
|
105
|
-
# @param [Object] credits Value to be assigned
|
|
106
|
-
def credits=(credits)
|
|
107
|
-
if credits.nil?
|
|
108
|
-
fail ArgumentError, 'credits cannot be nil'
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
@credits = credits
|
|
112
|
-
end
|
|
113
|
-
|
|
114
98
|
# Checks equality by comparing each attribute.
|
|
115
99
|
# @param [Object] Object to be compared
|
|
116
100
|
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
|
|
|
@@ -53,14 +53,9 @@ module ElasticEmail
|
|
|
53
53
|
}
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
# Returns attribute mapping this model knows about
|
|
57
|
-
def self.acceptable_attribute_map
|
|
58
|
-
attribute_map
|
|
59
|
-
end
|
|
60
|
-
|
|
61
56
|
# Returns all the JSON keys this model knows about
|
|
62
57
|
def self.acceptable_attributes
|
|
63
|
-
|
|
58
|
+
attribute_map.values
|
|
64
59
|
end
|
|
65
60
|
|
|
66
61
|
# Attribute type mapping.
|
|
@@ -92,10 +87,9 @@ module ElasticEmail
|
|
|
92
87
|
end
|
|
93
88
|
|
|
94
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
95
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
96
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
97
|
-
if (!
|
|
98
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettings`. Please check the name to make sure it's valid. List of attributes: " +
|
|
91
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettings`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
99
93
|
end
|
|
100
94
|
h[k.to_sym] = v
|
|
101
95
|
}
|
|
@@ -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,14 +49,9 @@ module ElasticEmail
|
|
|
49
49
|
}
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
-
# Returns attribute mapping this model knows about
|
|
53
|
-
def self.acceptable_attribute_map
|
|
54
|
-
attribute_map
|
|
55
|
-
end
|
|
56
|
-
|
|
57
52
|
# Returns all the JSON keys this model knows about
|
|
58
53
|
def self.acceptable_attributes
|
|
59
|
-
|
|
54
|
+
attribute_map.values
|
|
60
55
|
end
|
|
61
56
|
|
|
62
57
|
# Attribute type mapping.
|
|
@@ -87,10 +82,9 @@ module ElasticEmail
|
|
|
87
82
|
end
|
|
88
83
|
|
|
89
84
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
91
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
|
-
if (!
|
|
93
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettingsPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountEmailSettingsPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
94
88
|
end
|
|
95
89
|
h[k.to_sym] = v
|
|
96
90
|
}
|
|
@@ -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
|
|
|
@@ -37,14 +37,9 @@ module ElasticEmail
|
|
|
37
37
|
}
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
# Returns attribute mapping this model knows about
|
|
41
|
-
def self.acceptable_attribute_map
|
|
42
|
-
attribute_map
|
|
43
|
-
end
|
|
44
|
-
|
|
45
40
|
# Returns all the JSON keys this model knows about
|
|
46
41
|
def self.acceptable_attributes
|
|
47
|
-
|
|
42
|
+
attribute_map.values
|
|
48
43
|
end
|
|
49
44
|
|
|
50
45
|
# Attribute type mapping.
|
|
@@ -71,10 +66,9 @@ module ElasticEmail
|
|
|
71
66
|
end
|
|
72
67
|
|
|
73
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
75
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
76
|
-
if (!
|
|
77
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
78
72
|
end
|
|
79
73
|
h[k.to_sym] = v
|
|
80
74
|
}
|
|
@@ -125,26 +119,6 @@ module ElasticEmail
|
|
|
125
119
|
true
|
|
126
120
|
end
|
|
127
121
|
|
|
128
|
-
# Custom attribute writer method with validation
|
|
129
|
-
# @param [Object] email Value to be assigned
|
|
130
|
-
def email=(email)
|
|
131
|
-
if email.nil?
|
|
132
|
-
fail ArgumentError, 'email cannot be nil'
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
@email = email
|
|
136
|
-
end
|
|
137
|
-
|
|
138
|
-
# Custom attribute writer method with validation
|
|
139
|
-
# @param [Object] password Value to be assigned
|
|
140
|
-
def password=(password)
|
|
141
|
-
if password.nil?
|
|
142
|
-
fail ArgumentError, 'password cannot be nil'
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
@password = password
|
|
146
|
-
end
|
|
147
|
-
|
|
148
122
|
# Checks equality by comparing each attribute.
|
|
149
123
|
# @param [Object] Object to be compared
|
|
150
124
|
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
|
|
|
@@ -25,14 +25,9 @@ module ElasticEmail
|
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
# Returns attribute mapping this model knows about
|
|
29
|
-
def self.acceptable_attribute_map
|
|
30
|
-
attribute_map
|
|
31
|
-
end
|
|
32
|
-
|
|
33
28
|
# Returns all the JSON keys this model knows about
|
|
34
29
|
def self.acceptable_attributes
|
|
35
|
-
|
|
30
|
+
attribute_map.values
|
|
36
31
|
end
|
|
37
32
|
|
|
38
33
|
# Attribute type mapping.
|
|
@@ -56,10 +51,9 @@ module ElasticEmail
|
|
|
56
51
|
end
|
|
57
52
|
|
|
58
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
-
if (!
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfo`. Please check the name to make sure it's valid. List of attributes: " +
|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
63
57
|
end
|
|
64
58
|
h[k.to_sym] = v
|
|
65
59
|
}
|
|
@@ -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
|
|
|
@@ -25,14 +25,9 @@ module ElasticEmail
|
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
# Returns attribute mapping this model knows about
|
|
29
|
-
def self.acceptable_attribute_map
|
|
30
|
-
attribute_map
|
|
31
|
-
end
|
|
32
|
-
|
|
33
28
|
# Returns all the JSON keys this model knows about
|
|
34
29
|
def self.acceptable_attributes
|
|
35
|
-
|
|
30
|
+
attribute_map.values
|
|
36
31
|
end
|
|
37
32
|
|
|
38
33
|
# Attribute type mapping.
|
|
@@ -56,10 +51,9 @@ module ElasticEmail
|
|
|
56
51
|
end
|
|
57
52
|
|
|
58
53
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
54
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
-
if (!
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfoPayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::SubaccountSettingsInfoPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
63
57
|
end
|
|
64
58
|
h[k.to_sym] = v
|
|
65
59
|
}
|
|
@@ -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
|
|
|
@@ -38,14 +38,9 @@ module ElasticEmail
|
|
|
38
38
|
}
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
# Returns attribute mapping this model knows about
|
|
42
|
-
def self.acceptable_attribute_map
|
|
43
|
-
attribute_map
|
|
44
|
-
end
|
|
45
|
-
|
|
46
41
|
# Returns all the JSON keys this model knows about
|
|
47
42
|
def self.acceptable_attributes
|
|
48
|
-
|
|
43
|
+
attribute_map.values
|
|
49
44
|
end
|
|
50
45
|
|
|
51
46
|
# Attribute type mapping.
|
|
@@ -74,10 +69,9 @@ module ElasticEmail
|
|
|
74
69
|
end
|
|
75
70
|
|
|
76
71
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
78
72
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
79
|
-
if (!
|
|
80
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Suppression`. Please check the name to make sure it's valid. List of attributes: " +
|
|
73
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Suppression`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
81
75
|
end
|
|
82
76
|
h[k.to_sym] = v
|
|
83
77
|
}
|