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
|
|
|
@@ -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.
|
|
@@ -62,9 +67,10 @@ module ElasticEmail
|
|
|
62
67
|
end
|
|
63
68
|
|
|
64
69
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
65
71
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
66
|
-
if (!
|
|
67
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::TransactionalRecipient`. Please check the name to make sure it's valid. List of attributes: " +
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::TransactionalRecipient`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
68
74
|
end
|
|
69
75
|
h[k.to_sym] = v
|
|
70
76
|
}
|
|
@@ -110,6 +116,16 @@ module ElasticEmail
|
|
|
110
116
|
true
|
|
111
117
|
end
|
|
112
118
|
|
|
119
|
+
# Custom attribute writer method with validation
|
|
120
|
+
# @param [Object] to Value to be assigned
|
|
121
|
+
def to=(to)
|
|
122
|
+
if to.nil?
|
|
123
|
+
fail ArgumentError, 'to cannot be nil'
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
@to = to
|
|
127
|
+
end
|
|
128
|
+
|
|
113
129
|
# Checks equality by comparing each attribute.
|
|
114
130
|
# @param [Object] Object to be compared
|
|
115
131
|
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
|
|
|
@@ -38,9 +38,14 @@ 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
|
+
|
|
41
46
|
# Returns all the JSON keys this model knows about
|
|
42
47
|
def self.acceptable_attributes
|
|
43
|
-
|
|
48
|
+
acceptable_attribute_map.values
|
|
44
49
|
end
|
|
45
50
|
|
|
46
51
|
# Attribute type mapping.
|
|
@@ -67,9 +72,10 @@ module ElasticEmail
|
|
|
67
72
|
end
|
|
68
73
|
|
|
69
74
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
70
76
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
71
|
-
if (!
|
|
72
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Utm`. Please check the name to make sure it's valid. List of attributes: " +
|
|
77
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Utm`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
73
79
|
end
|
|
74
80
|
h[k.to_sym] = v
|
|
75
81
|
}
|
|
@@ -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
|
|
|
@@ -66,9 +66,14 @@ module ElasticEmail
|
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
# Returns attribute mapping this model knows about
|
|
70
|
+
def self.acceptable_attribute_map
|
|
71
|
+
attribute_map
|
|
72
|
+
end
|
|
73
|
+
|
|
69
74
|
# Returns all the JSON keys this model knows about
|
|
70
75
|
def self.acceptable_attributes
|
|
71
|
-
|
|
76
|
+
acceptable_attribute_map.values
|
|
72
77
|
end
|
|
73
78
|
|
|
74
79
|
# Attribute type mapping.
|
|
@@ -97,9 +102,10 @@ module ElasticEmail
|
|
|
97
102
|
end
|
|
98
103
|
|
|
99
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
105
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
100
106
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
101
|
-
if (!
|
|
102
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::VerificationFileResult`. Please check the name to make sure it's valid. List of attributes: " +
|
|
107
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::VerificationFileResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
103
109
|
end
|
|
104
110
|
h[k.to_sym] = v
|
|
105
111
|
}
|
|
@@ -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
|
|
|
@@ -70,9 +70,14 @@ module ElasticEmail
|
|
|
70
70
|
}
|
|
71
71
|
end
|
|
72
72
|
|
|
73
|
+
# Returns attribute mapping this model knows about
|
|
74
|
+
def self.acceptable_attribute_map
|
|
75
|
+
attribute_map
|
|
76
|
+
end
|
|
77
|
+
|
|
73
78
|
# Returns all the JSON keys this model knows about
|
|
74
79
|
def self.acceptable_attributes
|
|
75
|
-
|
|
80
|
+
acceptable_attribute_map.values
|
|
76
81
|
end
|
|
77
82
|
|
|
78
83
|
# Attribute type mapping.
|
|
@@ -102,9 +107,10 @@ module ElasticEmail
|
|
|
102
107
|
end
|
|
103
108
|
|
|
104
109
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
110
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
105
111
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
106
|
-
if (!
|
|
107
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::VerificationFileResultDetails`. Please check the name to make sure it's valid. List of attributes: " +
|
|
112
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::VerificationFileResultDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
108
114
|
end
|
|
109
115
|
h[k.to_sym] = v
|
|
110
116
|
}
|
|
@@ -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
|
|
|
@@ -66,9 +66,14 @@ module ElasticEmail
|
|
|
66
66
|
}
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
+
# Returns attribute mapping this model knows about
|
|
70
|
+
def self.acceptable_attribute_map
|
|
71
|
+
attribute_map
|
|
72
|
+
end
|
|
73
|
+
|
|
69
74
|
# Returns all the JSON keys this model knows about
|
|
70
75
|
def self.acceptable_attributes
|
|
71
|
-
|
|
76
|
+
acceptable_attribute_map.values
|
|
72
77
|
end
|
|
73
78
|
|
|
74
79
|
# 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::Webhook`. 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::Webhook`. 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
|
}
|
|
@@ -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
|
|
|
@@ -51,9 +51,14 @@ 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
|
+
|
|
54
59
|
# Returns all the JSON keys this model knows about
|
|
55
60
|
def self.acceptable_attributes
|
|
56
|
-
|
|
61
|
+
acceptable_attribute_map.values
|
|
57
62
|
end
|
|
58
63
|
|
|
59
64
|
# Attribute type mapping.
|
|
@@ -85,9 +90,10 @@ module ElasticEmail
|
|
|
85
90
|
end
|
|
86
91
|
|
|
87
92
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
93
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
88
94
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
-
if (!
|
|
90
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::WebhookCreatePayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
95
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
96
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::WebhookCreatePayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
91
97
|
end
|
|
92
98
|
h[k.to_sym] = v
|
|
93
99
|
}
|
|
@@ -158,6 +164,26 @@ module ElasticEmail
|
|
|
158
164
|
true
|
|
159
165
|
end
|
|
160
166
|
|
|
167
|
+
# Custom attribute writer method with validation
|
|
168
|
+
# @param [Object] name Value to be assigned
|
|
169
|
+
def name=(name)
|
|
170
|
+
if name.nil?
|
|
171
|
+
fail ArgumentError, 'name cannot be nil'
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
@name = name
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Custom attribute writer method with validation
|
|
178
|
+
# @param [Object] url Value to be assigned
|
|
179
|
+
def url=(url)
|
|
180
|
+
if url.nil?
|
|
181
|
+
fail ArgumentError, 'url cannot be nil'
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
@url = url
|
|
185
|
+
end
|
|
186
|
+
|
|
161
187
|
# Checks equality by comparing each attribute.
|
|
162
188
|
# @param [Object] Object to be compared
|
|
163
189
|
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
|
|
|
@@ -54,9 +54,14 @@ module ElasticEmail
|
|
|
54
54
|
}
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
+
# Returns attribute mapping this model knows about
|
|
58
|
+
def self.acceptable_attribute_map
|
|
59
|
+
attribute_map
|
|
60
|
+
end
|
|
61
|
+
|
|
57
62
|
# Returns all the JSON keys this model knows about
|
|
58
63
|
def self.acceptable_attributes
|
|
59
|
-
|
|
64
|
+
acceptable_attribute_map.values
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
# Attribute type mapping.
|
|
@@ -97,9 +102,10 @@ module ElasticEmail
|
|
|
97
102
|
end
|
|
98
103
|
|
|
99
104
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
105
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
100
106
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
101
|
-
if (!
|
|
102
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::WebhookUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " +
|
|
107
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
108
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::WebhookUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
103
109
|
end
|
|
104
110
|
h[k.to_sym] = v
|
|
105
111
|
}
|
data/lib/ElasticEmail/version.rb
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
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
|
|
|
13
13
|
module ElasticEmail
|
|
14
|
-
VERSION = '4.0.
|
|
14
|
+
VERSION = '4.0.29'
|
|
15
15
|
end
|
data/lib/ElasticEmail.rb
CHANGED
|
@@ -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
|
|
|
@@ -40,6 +40,7 @@ require 'ElasticEmail/models/contact_source'
|
|
|
40
40
|
require 'ElasticEmail/models/contact_status'
|
|
41
41
|
require 'ElasticEmail/models/contact_update_payload'
|
|
42
42
|
require 'ElasticEmail/models/contacts_list'
|
|
43
|
+
require 'ElasticEmail/models/dkim_record'
|
|
43
44
|
require 'ElasticEmail/models/delivery_optimization_type'
|
|
44
45
|
require 'ElasticEmail/models/domain_data'
|
|
45
46
|
require 'ElasticEmail/models/domain_detail'
|
|
@@ -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,6 +32,19 @@ describe 'CampaignsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for campaigns_automation_by_name_trigger_post
|
|
36
|
+
# Trigger Automation for Contact
|
|
37
|
+
# Manually trigger an Automation for a contact. Required Access Level: ModifyAutomations
|
|
38
|
+
# @param name
|
|
39
|
+
# @param contact_email
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [nil]
|
|
42
|
+
describe 'campaigns_automation_by_name_trigger_post test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
35
48
|
# unit tests for campaigns_by_name_delete
|
|
36
49
|
# Delete Campaign
|
|
37
50
|
# Delete the specific campaign. This does not cancel in progress email, see Cancel In Progress. Required Access Level: ModifyCampaigns
|
data/spec/api/emails_api_spec.rb
CHANGED
data/spec/api/events_api_spec.rb
CHANGED
data/spec/api/files_api_spec.rb
CHANGED
data/spec/api/lists_api_spec.rb
CHANGED
|
@@ -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
|
|
|
@@ -50,7 +50,7 @@ describe 'SecurityApi' do
|
|
|
50
50
|
# Load your existing ApiKey info. Required Access Level: ViewAccessTokens
|
|
51
51
|
# @param name Name of the ApiKey
|
|
52
52
|
# @param [Hash] opts the optional parameters
|
|
53
|
-
# @option opts [String] :subaccount Email of the subaccount of which ApiKey should be loaded
|
|
53
|
+
# @option opts [String] :subaccount Email of the subaccount of which ApiKey should be loaded. The default API key created for the subaccount has a 48-hour expiration period.
|
|
54
54
|
# @return [ApiKey]
|
|
55
55
|
describe 'security_apikeys_by_name_get test' do
|
|
56
56
|
it 'should work' do
|
|
@@ -75,7 +75,7 @@ describe 'SecurityApi' do
|
|
|
75
75
|
# List ApiKeys
|
|
76
76
|
# List all your existing ApiKeys. Required Access Level: ViewAccessTokens
|
|
77
77
|
# @param [Hash] opts the optional parameters
|
|
78
|
-
# @option opts [String] :subaccount Email of the subaccount of which ApiKeys should be loaded
|
|
78
|
+
# @option opts [String] :subaccount Email of the subaccount of which ApiKeys should be loaded. The default API key created for the subaccount has a 48-hour expiration period.
|
|
79
79
|
# @return [Array<ApiKey>]
|
|
80
80
|
describe 'security_apikeys_get test' do
|
|
81
81
|
it 'should work' do
|
|
@@ -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,6 +32,18 @@ describe 'SubAccountsApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for subaccounts_by_email_apikey_get
|
|
36
|
+
# Get SubAccount ApiKey
|
|
37
|
+
# Returns API key token for the specified SubAccount. The default API key created for the subaccount has a 48-hour expiration period. Required Access Level: ModifySubAccounts
|
|
38
|
+
# @param email Email address of Sub-Account
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [String]
|
|
41
|
+
describe 'subaccounts_by_email_apikey_get test' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
35
47
|
# unit tests for subaccounts_by_email_credits_patch
|
|
36
48
|
# Add, Subtract Email Credits
|
|
37
49
|
# Update email credits of a subaccount by the given amount. Required Access Level: ModifySubAccounts
|
|
@@ -97,7 +109,7 @@ describe 'SubAccountsApi' do
|
|
|
97
109
|
|
|
98
110
|
# unit tests for subaccounts_post
|
|
99
111
|
# Add SubAccount
|
|
100
|
-
# Add a new SubAccount to your Account. To receive an access token for this SubAccount, make a POST security/apikeys request using the 'subaccount' parameter. Required Access Level: ModifySubAccounts
|
|
112
|
+
# Add a new SubAccount to your Account. To receive an access token for this SubAccount, make a POST security/apikeys request using the 'subaccount' parameter. The default API key created for the subaccount has a 48-hour expiration period. Required Access Level: ModifySubAccounts
|
|
101
113
|
# @param subaccount_payload
|
|
102
114
|
# @param [Hash] opts the optional parameters
|
|
103
115
|
# @return [SubAccountInfo]
|
data/spec/models/api_key_spec.rb
CHANGED