ElasticEmail 4.0.23 → 4.0.25
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 +2 -1
- data/README.md +28 -4
- data/VERSION +1 -1
- data/docs/CampaignOptions.md +4 -0
- data/docs/CampaignTemplate.md +2 -2
- data/docs/CampaignsApi.md +71 -0
- data/docs/CertificateValidationStatus.md +15 -0
- data/docs/DomainData.md +54 -0
- data/docs/DomainDetail.md +52 -0
- data/docs/{TemplateScopeType.md → DomainOwner.md} +2 -2
- data/docs/DomainPayload.md +20 -0
- data/docs/DomainUpdatePayload.md +24 -0
- data/docs/DomainsApi.md +583 -0
- data/docs/EmailContent.md +2 -2
- data/docs/EmailJobFailedStatus.md +24 -0
- data/docs/EmailJobStatus.md +56 -0
- data/docs/EmailMessageData.md +1 -1
- data/docs/EmailStatus.md +3 -1
- data/docs/EmailTransactionalMessageData.md +1 -1
- data/docs/EmailValidationResult.md +2 -2
- data/docs/EmailsApi.md +98 -4
- data/docs/EmailsPayload.md +1 -1
- data/docs/ListPayload.md +1 -1
- data/docs/ListsApi.md +78 -0
- data/docs/MergeEmailPayload.md +1 -1
- data/docs/{ContactHistEventType.md → MessageCategoryEnum.md} +2 -2
- data/docs/TrackingType.md +15 -0
- data/docs/TrackingValidationStatus.md +15 -0
- data/lib/ElasticEmail/api/campaigns_api.rb +62 -1
- data/lib/ElasticEmail/api/contacts_api.rb +1 -1
- data/lib/ElasticEmail/api/domains_api.rb +545 -0
- data/lib/ElasticEmail/api/emails_api.rb +96 -3
- 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 +70 -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_client.rb +23 -21
- data/lib/ElasticEmail/api_error.rb +1 -1
- data/lib/ElasticEmail/configuration.rb +18 -10
- data/lib/ElasticEmail/models/access_level.rb +4 -3
- data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
- data/lib/ElasticEmail/models/api_key.rb +14 -19
- data/lib/ElasticEmail/models/api_key_payload.rb +18 -19
- data/lib/ElasticEmail/models/body_content_type.rb +1 -1
- data/lib/ElasticEmail/models/body_part.rb +14 -19
- data/lib/ElasticEmail/models/campaign.rb +18 -19
- data/lib/ElasticEmail/models/campaign_options.rb +35 -20
- data/lib/ElasticEmail/models/campaign_recipient.rb +14 -19
- data/lib/ElasticEmail/models/campaign_status.rb +1 -1
- data/lib/ElasticEmail/models/campaign_template.rb +21 -19
- data/lib/ElasticEmail/models/certificate_validation_status.rb +42 -0
- data/lib/ElasticEmail/models/channel_log_status_summary.rb +14 -19
- data/lib/ElasticEmail/models/compression_format.rb +1 -1
- data/lib/ElasticEmail/models/consent_data.rb +14 -19
- data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
- data/lib/ElasticEmail/models/contact.rb +14 -19
- data/lib/ElasticEmail/models/contact_activity.rb +14 -19
- data/lib/ElasticEmail/models/contact_payload.rb +16 -19
- 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 +14 -19
- data/lib/ElasticEmail/models/contacts_list.rb +14 -19
- data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/domain_data.rb +417 -0
- data/lib/ElasticEmail/models/domain_detail.rb +407 -0
- data/lib/ElasticEmail/models/domain_owner.rb +40 -0
- data/lib/ElasticEmail/models/domain_payload.rb +224 -0
- data/lib/ElasticEmail/models/{contact_history.rb → domain_update_payload.rb} +63 -79
- data/lib/ElasticEmail/models/email_content.rb +21 -19
- data/lib/ElasticEmail/models/email_data.rb +14 -19
- data/lib/ElasticEmail/models/email_job_failed_status.rb +242 -0
- data/lib/ElasticEmail/models/email_job_status.rb +415 -0
- data/lib/ElasticEmail/models/email_message_data.rb +23 -19
- data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_recipient.rb +16 -19
- data/lib/ElasticEmail/models/email_send.rb +14 -19
- data/lib/ElasticEmail/models/email_status.rb +29 -23
- data/lib/ElasticEmail/models/email_transactional_message_data.rb +23 -19
- data/lib/ElasticEmail/models/email_validation_result.rb +16 -20
- data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
- data/lib/ElasticEmail/models/email_view.rb +14 -19
- data/lib/ElasticEmail/models/emails_payload.rb +14 -19
- 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 +14 -19
- data/lib/ElasticEmail/models/export_status.rb +1 -1
- data/lib/ElasticEmail/models/file_info.rb +14 -19
- data/lib/ElasticEmail/models/file_payload.rb +16 -19
- data/lib/ElasticEmail/models/file_upload_result.rb +14 -19
- data/lib/ElasticEmail/models/inbound_payload.rb +18 -19
- data/lib/ElasticEmail/models/inbound_route.rb +14 -19
- 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 +16 -19
- data/lib/ElasticEmail/models/list_update_payload.rb +14 -19
- data/lib/ElasticEmail/models/log_job_status.rb +1 -1
- data/lib/ElasticEmail/models/log_status_summary.rb +14 -19
- data/lib/ElasticEmail/models/merge_email_payload.rb +23 -19
- data/lib/ElasticEmail/models/message_attachment.rb +18 -19
- data/lib/ElasticEmail/models/message_category.rb +1 -1
- data/lib/ElasticEmail/models/message_category_enum.rb +55 -0
- data/lib/ElasticEmail/models/new_api_key.rb +14 -19
- data/lib/ElasticEmail/models/new_smtp_credentials.rb +14 -19
- data/lib/ElasticEmail/models/options.rb +16 -19
- data/lib/ElasticEmail/models/recipient_event.rb +14 -19
- data/lib/ElasticEmail/models/segment.rb +14 -19
- data/lib/ElasticEmail/models/segment_payload.rb +18 -19
- data/lib/ElasticEmail/models/smtp_credentials.rb +14 -19
- data/lib/ElasticEmail/models/smtp_credentials_payload.rb +16 -19
- data/lib/ElasticEmail/models/sort_order_item.rb +18 -19
- data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
- data/lib/ElasticEmail/models/split_options.rb +14 -19
- data/lib/ElasticEmail/models/sub_account_info.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +16 -19
- data/lib/ElasticEmail/models/subaccount_email_settings.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_payload.rb +18 -19
- data/lib/ElasticEmail/models/subaccount_settings_info.rb +14 -19
- data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +14 -19
- data/lib/ElasticEmail/models/suppression.rb +14 -19
- data/lib/ElasticEmail/models/template.rb +14 -19
- data/lib/ElasticEmail/models/template_payload.rb +16 -19
- data/lib/ElasticEmail/models/template_scope.rb +1 -1
- data/lib/ElasticEmail/models/template_type.rb +4 -2
- data/lib/ElasticEmail/models/tracking_type.rb +44 -0
- data/lib/ElasticEmail/models/tracking_validation_status.rb +42 -0
- data/lib/ElasticEmail/models/transactional_recipient.rb +16 -19
- data/lib/ElasticEmail/models/utm.rb +14 -19
- data/lib/ElasticEmail/models/verification_file_result.rb +14 -19
- data/lib/ElasticEmail/models/verification_file_result_details.rb +14 -19
- data/lib/ElasticEmail/models/verification_status.rb +1 -1
- data/lib/ElasticEmail/version.rb +2 -2
- data/lib/ElasticEmail.rb +13 -1
- data/spec/api/campaigns_api_spec.rb +19 -7
- data/spec/api/contacts_api_spec.rb +12 -25
- data/spec/api/domains_api_spec.rb +132 -0
- data/spec/api/emails_api_spec.rb +29 -7
- data/spec/api/events_api_spec.rb +9 -9
- data/spec/api/files_api_spec.rb +7 -7
- data/spec/api/inbound_route_api_spec.rb +8 -8
- data/spec/api/lists_api_spec.rb +23 -9
- data/spec/api/security_api_spec.rb +12 -12
- data/spec/api/segments_api_spec.rb +7 -7
- data/spec/api/statistics_api_spec.rb +7 -7
- data/spec/api/sub_accounts_api_spec.rb +8 -8
- data/spec/api/suppressions_api_spec.rb +26 -26
- data/spec/api/templates_api_spec.rb +7 -7
- data/spec/api/verifications_api_spec.rb +30 -18
- data/spec/models/access_level_spec.rb +5 -3
- data/spec/models/account_status_enum_spec.rb +5 -3
- data/spec/models/api_key_payload_spec.rb +10 -8
- data/spec/models/api_key_spec.rb +11 -9
- data/spec/models/body_content_type_spec.rb +5 -3
- data/spec/models/body_part_spec.rb +8 -6
- data/spec/models/campaign_options_spec.rb +22 -8
- data/spec/models/campaign_recipient_spec.rb +7 -5
- data/spec/models/campaign_spec.rb +10 -8
- data/spec/models/campaign_status_spec.rb +5 -3
- data/spec/models/campaign_template_spec.rb +12 -10
- data/spec/{configuration_spec.rb → models/certificate_validation_status_spec.rb} +15 -27
- data/spec/models/channel_log_status_summary_spec.rb +19 -17
- data/spec/models/compression_format_spec.rb +5 -3
- data/spec/models/consent_data_spec.rb +8 -6
- data/spec/models/consent_tracking_spec.rb +5 -3
- data/spec/models/contact_activity_spec.rb +16 -14
- data/spec/models/contact_payload_spec.rb +11 -9
- data/spec/models/contact_source_spec.rb +5 -3
- data/spec/models/contact_spec.rb +16 -14
- data/spec/models/contact_status_spec.rb +5 -3
- data/spec/models/contact_update_payload_spec.rb +8 -6
- data/spec/models/contacts_list_spec.rb +9 -7
- data/spec/models/delivery_optimization_type_spec.rb +5 -3
- data/spec/models/domain_data_spec.rb +144 -0
- data/spec/models/domain_detail_spec.rb +138 -0
- data/spec/models/domain_owner_spec.rb +30 -0
- data/spec/models/domain_payload_spec.rb +42 -0
- data/spec/models/domain_update_payload_spec.rb +54 -0
- data/spec/models/email_content_spec.rb +22 -14
- data/spec/models/email_data_spec.rb +8 -6
- data/spec/models/email_job_failed_status_spec.rb +54 -0
- data/spec/models/email_job_status_spec.rb +150 -0
- data/spec/models/email_message_data_spec.rb +8 -6
- data/spec/models/email_predicted_validation_status_spec.rb +4 -2
- data/spec/models/email_recipient_spec.rb +7 -5
- data/spec/models/email_send_spec.rb +7 -5
- data/spec/models/email_status_spec.rb +23 -15
- data/spec/models/email_transactional_message_data_spec.rb +8 -6
- data/spec/models/email_validation_result_spec.rb +26 -12
- data/spec/models/email_validation_status_spec.rb +5 -3
- data/spec/models/email_view_spec.rb +8 -6
- data/spec/models/emails_payload_spec.rb +7 -5
- data/spec/models/encoding_type_spec.rb +5 -3
- data/spec/models/event_type_spec.rb +5 -3
- data/spec/models/events_order_by_spec.rb +5 -3
- data/spec/models/export_file_formats_spec.rb +5 -3
- data/spec/models/export_link_spec.rb +7 -5
- data/spec/models/export_status_spec.rb +5 -3
- data/spec/models/file_info_spec.rb +10 -8
- data/spec/models/file_payload_spec.rb +8 -6
- data/spec/models/file_upload_result_spec.rb +7 -5
- data/spec/models/inbound_payload_spec.rb +11 -9
- data/spec/models/inbound_route_action_type_spec.rb +5 -3
- data/spec/models/inbound_route_filter_type_spec.rb +5 -3
- data/spec/models/inbound_route_spec.rb +12 -10
- data/spec/models/list_payload_spec.rb +8 -6
- data/spec/models/list_update_payload_spec.rb +7 -5
- data/spec/models/log_job_status_spec.rb +5 -3
- data/spec/models/log_status_summary_spec.rb +18 -16
- data/spec/models/merge_email_payload_spec.rb +8 -6
- data/spec/models/message_attachment_spec.rb +14 -6
- data/spec/models/message_category_enum_spec.rb +30 -0
- data/spec/models/message_category_spec.rb +5 -3
- data/spec/models/new_api_key_spec.rb +12 -10
- data/spec/models/new_smtp_credentials_spec.rb +12 -10
- data/spec/models/options_spec.rb +11 -9
- data/spec/models/recipient_event_spec.rb +18 -16
- data/spec/models/segment_payload_spec.rb +7 -5
- data/spec/models/segment_spec.rb +7 -5
- data/spec/models/smtp_credentials_payload_spec.rb +9 -7
- data/spec/models/smtp_credentials_spec.rb +11 -9
- data/spec/models/sort_order_item_spec.rb +7 -5
- data/spec/models/split_optimization_type_spec.rb +5 -3
- data/spec/models/split_options_spec.rb +7 -5
- data/spec/models/sub_account_info_spec.rb +14 -12
- data/spec/models/subaccount_email_credits_payload_spec.rb +7 -5
- data/spec/models/subaccount_email_settings_payload_spec.rb +17 -9
- data/spec/models/subaccount_email_settings_spec.rb +18 -10
- data/spec/models/subaccount_payload_spec.rb +9 -7
- data/spec/models/subaccount_settings_info_payload_spec.rb +6 -4
- data/spec/models/subaccount_settings_info_spec.rb +6 -4
- data/spec/models/suppression_spec.rb +9 -7
- data/spec/models/template_payload_spec.rb +9 -7
- data/spec/models/template_scope_spec.rb +5 -3
- data/spec/models/template_spec.rb +11 -9
- data/spec/models/template_type_spec.rb +5 -3
- data/spec/models/tracking_type_spec.rb +30 -0
- data/spec/models/tracking_validation_status_spec.rb +30 -0
- data/spec/models/transactional_recipient_spec.rb +8 -6
- data/spec/models/utm_spec.rb +9 -7
- data/spec/models/verification_file_result_details_spec.rb +12 -10
- data/spec/models/verification_file_result_spec.rb +11 -9
- data/spec/models/verification_status_spec.rb +5 -3
- data/spec/spec_helper.rb +1 -1
- metadata +126 -94
- data/docs/ContactHistory.md +0 -30
- data/lib/ElasticEmail/models/contact_hist_event_type.rb +0 -49
- data/lib/ElasticEmail/models/template_scope_type.rb +0 -38
- data/spec/api_client_spec.rb +0 -226
- data/spec/models/contact_hist_event_type_spec.rb +0 -28
- data/spec/models/contact_history_spec.rb +0 -70
- data/spec/models/template_scope_type_spec.rb +0 -28
@@ -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
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -75,6 +75,7 @@ module ElasticEmail
|
|
75
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
76
76
|
# @return Array for valid properties with the reasons
|
77
77
|
def list_invalid_properties
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
78
79
|
invalid_properties = Array.new
|
79
80
|
invalid_properties
|
80
81
|
end
|
@@ -82,6 +83,7 @@ module ElasticEmail
|
|
82
83
|
# Check to see if the all the properties in the model are valid
|
83
84
|
# @return true if the model is valid
|
84
85
|
def valid?
|
86
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
85
87
|
true
|
86
88
|
end
|
87
89
|
|
@@ -110,37 +112,30 @@ module ElasticEmail
|
|
110
112
|
# @param [Hash] attributes Model attributes in the form of hash
|
111
113
|
# @return [Object] Returns the model itself
|
112
114
|
def self.build_from_hash(attributes)
|
113
|
-
new.build_from_hash(attributes)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Builds the object from hash
|
117
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
-
# @return [Object] Returns the model itself
|
119
|
-
def build_from_hash(attributes)
|
120
115
|
return nil unless attributes.is_a?(Hash)
|
121
116
|
attributes = attributes.transform_keys(&:to_sym)
|
122
|
-
|
123
|
-
|
124
|
-
|
117
|
+
transformed_hash = {}
|
118
|
+
openapi_types.each_pair do |key, type|
|
119
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
120
|
+
transformed_hash["#{key}"] = nil
|
125
121
|
elsif type =~ /\AArray<(.*)>/i
|
126
122
|
# check to ensure the input is an array given that the attribute
|
127
123
|
# is documented as an array but the input is not
|
128
|
-
if attributes[
|
129
|
-
|
124
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
125
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
130
126
|
end
|
131
|
-
elsif !attributes[
|
132
|
-
|
127
|
+
elsif !attributes[attribute_map[key]].nil?
|
128
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
133
129
|
end
|
134
130
|
end
|
135
|
-
|
136
|
-
self
|
131
|
+
new(transformed_hash)
|
137
132
|
end
|
138
133
|
|
139
134
|
# Deserializes the data based on type
|
140
135
|
# @param string type Data type
|
141
136
|
# @param string value Value to be deserialized
|
142
137
|
# @return [Object] Deserialized data
|
143
|
-
def _deserialize(type, value)
|
138
|
+
def self._deserialize(type, value)
|
144
139
|
case type.to_sym
|
145
140
|
when :Time
|
146
141
|
Time.parse(value)
|
@@ -175,7 +170,7 @@ module ElasticEmail
|
|
175
170
|
else # model
|
176
171
|
# models (e.g. Pet) or oneOf
|
177
172
|
klass = ElasticEmail.const_get(type)
|
178
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
173
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
179
174
|
end
|
180
175
|
end
|
181
176
|
|
@@ -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
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -51,6 +51,8 @@ module ElasticEmail
|
|
51
51
|
# Envelope from address
|
52
52
|
attr_accessor :envelope_from
|
53
53
|
|
54
|
+
attr_accessor :error_category
|
55
|
+
|
54
56
|
class EnumAttributeValidator
|
55
57
|
attr_reader :datatype
|
56
58
|
attr_reader :allowable_values
|
@@ -87,7 +89,8 @@ module ElasticEmail
|
|
87
89
|
:'date_clicked' => :'DateClicked',
|
88
90
|
:'error_message' => :'ErrorMessage',
|
89
91
|
:'transaction_id' => :'TransactionID',
|
90
|
-
:'envelope_from' => :'EnvelopeFrom'
|
92
|
+
:'envelope_from' => :'EnvelopeFrom',
|
93
|
+
:'error_category' => :'ErrorCategory'
|
91
94
|
}
|
92
95
|
end
|
93
96
|
|
@@ -110,7 +113,8 @@ module ElasticEmail
|
|
110
113
|
:'date_clicked' => :'Time',
|
111
114
|
:'error_message' => :'String',
|
112
115
|
:'transaction_id' => :'String',
|
113
|
-
:'envelope_from' => :'String'
|
116
|
+
:'envelope_from' => :'String',
|
117
|
+
:'error_category' => :'MessageCategoryEnum'
|
114
118
|
}
|
115
119
|
end
|
116
120
|
|
@@ -186,11 +190,18 @@ module ElasticEmail
|
|
186
190
|
if attributes.key?(:'envelope_from')
|
187
191
|
self.envelope_from = attributes[:'envelope_from']
|
188
192
|
end
|
193
|
+
|
194
|
+
if attributes.key?(:'error_category')
|
195
|
+
self.error_category = attributes[:'error_category']
|
196
|
+
else
|
197
|
+
self.error_category = 'Unknown'
|
198
|
+
end
|
189
199
|
end
|
190
200
|
|
191
201
|
# Show invalid properties with the reasons. Usually used together with valid?
|
192
202
|
# @return Array for valid properties with the reasons
|
193
203
|
def list_invalid_properties
|
204
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
194
205
|
invalid_properties = Array.new
|
195
206
|
invalid_properties
|
196
207
|
end
|
@@ -198,6 +209,7 @@ module ElasticEmail
|
|
198
209
|
# Check to see if the all the properties in the model are valid
|
199
210
|
# @return true if the model is valid
|
200
211
|
def valid?
|
212
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
201
213
|
true
|
202
214
|
end
|
203
215
|
|
@@ -217,7 +229,8 @@ module ElasticEmail
|
|
217
229
|
date_clicked == o.date_clicked &&
|
218
230
|
error_message == o.error_message &&
|
219
231
|
transaction_id == o.transaction_id &&
|
220
|
-
envelope_from == o.envelope_from
|
232
|
+
envelope_from == o.envelope_from &&
|
233
|
+
error_category == o.error_category
|
221
234
|
end
|
222
235
|
|
223
236
|
# @see the `==` method
|
@@ -229,44 +242,37 @@ module ElasticEmail
|
|
229
242
|
# Calculates hash code according to all attributes.
|
230
243
|
# @return [Integer] Hash code
|
231
244
|
def hash
|
232
|
-
[from, to, date, status, status_name, status_change_date, date_sent, date_opened, date_clicked, error_message, transaction_id, envelope_from].hash
|
245
|
+
[from, to, date, status, status_name, status_change_date, date_sent, date_opened, date_clicked, error_message, transaction_id, envelope_from, error_category].hash
|
233
246
|
end
|
234
247
|
|
235
248
|
# Builds the object from hash
|
236
249
|
# @param [Hash] attributes Model attributes in the form of hash
|
237
250
|
# @return [Object] Returns the model itself
|
238
251
|
def self.build_from_hash(attributes)
|
239
|
-
new.build_from_hash(attributes)
|
240
|
-
end
|
241
|
-
|
242
|
-
# Builds the object from hash
|
243
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
244
|
-
# @return [Object] Returns the model itself
|
245
|
-
def build_from_hash(attributes)
|
246
252
|
return nil unless attributes.is_a?(Hash)
|
247
253
|
attributes = attributes.transform_keys(&:to_sym)
|
248
|
-
|
249
|
-
|
250
|
-
|
254
|
+
transformed_hash = {}
|
255
|
+
openapi_types.each_pair do |key, type|
|
256
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
257
|
+
transformed_hash["#{key}"] = nil
|
251
258
|
elsif type =~ /\AArray<(.*)>/i
|
252
259
|
# check to ensure the input is an array given that the attribute
|
253
260
|
# is documented as an array but the input is not
|
254
|
-
if attributes[
|
255
|
-
|
261
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
262
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
256
263
|
end
|
257
|
-
elsif !attributes[
|
258
|
-
|
264
|
+
elsif !attributes[attribute_map[key]].nil?
|
265
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
259
266
|
end
|
260
267
|
end
|
261
|
-
|
262
|
-
self
|
268
|
+
new(transformed_hash)
|
263
269
|
end
|
264
270
|
|
265
271
|
# Deserializes the data based on type
|
266
272
|
# @param string type Data type
|
267
273
|
# @param string value Value to be deserialized
|
268
274
|
# @return [Object] Deserialized data
|
269
|
-
def _deserialize(type, value)
|
275
|
+
def self._deserialize(type, value)
|
270
276
|
case type.to_sym
|
271
277
|
when :Time
|
272
278
|
Time.parse(value)
|
@@ -301,7 +307,7 @@ module ElasticEmail
|
|
301
307
|
else # model
|
302
308
|
# models (e.g. Pet) or oneOf
|
303
309
|
klass = ElasticEmail.const_get(type)
|
304
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
310
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
305
311
|
end
|
306
312
|
end
|
307
313
|
|
@@ -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
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -68,10 +68,14 @@ module ElasticEmail
|
|
68
68
|
|
69
69
|
if attributes.key?(:'recipients')
|
70
70
|
self.recipients = attributes[:'recipients']
|
71
|
+
else
|
72
|
+
self.recipients = nil
|
71
73
|
end
|
72
74
|
|
73
75
|
if attributes.key?(:'content')
|
74
76
|
self.content = attributes[:'content']
|
77
|
+
else
|
78
|
+
self.content = nil
|
75
79
|
end
|
76
80
|
|
77
81
|
if attributes.key?(:'options')
|
@@ -82,18 +86,25 @@ module ElasticEmail
|
|
82
86
|
# Show invalid properties with the reasons. Usually used together with valid?
|
83
87
|
# @return Array for valid properties with the reasons
|
84
88
|
def list_invalid_properties
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
85
90
|
invalid_properties = Array.new
|
86
91
|
if @recipients.nil?
|
87
92
|
invalid_properties.push('invalid value for "recipients", recipients cannot be nil.')
|
88
93
|
end
|
89
94
|
|
95
|
+
if @content.nil?
|
96
|
+
invalid_properties.push('invalid value for "content", content cannot be nil.')
|
97
|
+
end
|
98
|
+
|
90
99
|
invalid_properties
|
91
100
|
end
|
92
101
|
|
93
102
|
# Check to see if the all the properties in the model are valid
|
94
103
|
# @return true if the model is valid
|
95
104
|
def valid?
|
105
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
96
106
|
return false if @recipients.nil?
|
107
|
+
return false if @content.nil?
|
97
108
|
true
|
98
109
|
end
|
99
110
|
|
@@ -123,37 +134,30 @@ module ElasticEmail
|
|
123
134
|
# @param [Hash] attributes Model attributes in the form of hash
|
124
135
|
# @return [Object] Returns the model itself
|
125
136
|
def self.build_from_hash(attributes)
|
126
|
-
new.build_from_hash(attributes)
|
127
|
-
end
|
128
|
-
|
129
|
-
# Builds the object from hash
|
130
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
-
# @return [Object] Returns the model itself
|
132
|
-
def build_from_hash(attributes)
|
133
137
|
return nil unless attributes.is_a?(Hash)
|
134
138
|
attributes = attributes.transform_keys(&:to_sym)
|
135
|
-
|
136
|
-
|
137
|
-
|
139
|
+
transformed_hash = {}
|
140
|
+
openapi_types.each_pair do |key, type|
|
141
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
142
|
+
transformed_hash["#{key}"] = nil
|
138
143
|
elsif type =~ /\AArray<(.*)>/i
|
139
144
|
# check to ensure the input is an array given that the attribute
|
140
145
|
# is documented as an array but the input is not
|
141
|
-
if attributes[
|
142
|
-
|
146
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
147
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
143
148
|
end
|
144
|
-
elsif !attributes[
|
145
|
-
|
149
|
+
elsif !attributes[attribute_map[key]].nil?
|
150
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
146
151
|
end
|
147
152
|
end
|
148
|
-
|
149
|
-
self
|
153
|
+
new(transformed_hash)
|
150
154
|
end
|
151
155
|
|
152
156
|
# Deserializes the data based on type
|
153
157
|
# @param string type Data type
|
154
158
|
# @param string value Value to be deserialized
|
155
159
|
# @return [Object] Deserialized data
|
156
|
-
def _deserialize(type, value)
|
160
|
+
def self._deserialize(type, value)
|
157
161
|
case type.to_sym
|
158
162
|
when :Time
|
159
163
|
Time.parse(value)
|
@@ -188,7 +192,7 @@ module ElasticEmail
|
|
188
192
|
else # model
|
189
193
|
# models (e.g. Pet) or oneOf
|
190
194
|
klass = ElasticEmail.const_get(type)
|
191
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
192
196
|
end
|
193
197
|
end
|
194
198
|
|
@@ -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
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,11 +36,12 @@ module ElasticEmail
|
|
36
36
|
# All detected issues
|
37
37
|
attr_accessor :reason
|
38
38
|
|
39
|
-
#
|
39
|
+
# Added date
|
40
40
|
attr_accessor :date_added
|
41
41
|
|
42
42
|
attr_accessor :result
|
43
43
|
|
44
|
+
# Predicted score
|
44
45
|
attr_accessor :predicted_score
|
45
46
|
|
46
47
|
attr_accessor :predicted_status
|
@@ -179,6 +180,7 @@ module ElasticEmail
|
|
179
180
|
# Show invalid properties with the reasons. Usually used together with valid?
|
180
181
|
# @return Array for valid properties with the reasons
|
181
182
|
def list_invalid_properties
|
183
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
182
184
|
invalid_properties = Array.new
|
183
185
|
invalid_properties
|
184
186
|
end
|
@@ -186,6 +188,7 @@ module ElasticEmail
|
|
186
188
|
# Check to see if the all the properties in the model are valid
|
187
189
|
# @return true if the model is valid
|
188
190
|
def valid?
|
191
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
189
192
|
true
|
190
193
|
end
|
191
194
|
|
@@ -223,37 +226,30 @@ module ElasticEmail
|
|
223
226
|
# @param [Hash] attributes Model attributes in the form of hash
|
224
227
|
# @return [Object] Returns the model itself
|
225
228
|
def self.build_from_hash(attributes)
|
226
|
-
new.build_from_hash(attributes)
|
227
|
-
end
|
228
|
-
|
229
|
-
# Builds the object from hash
|
230
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
231
|
-
# @return [Object] Returns the model itself
|
232
|
-
def build_from_hash(attributes)
|
233
229
|
return nil unless attributes.is_a?(Hash)
|
234
230
|
attributes = attributes.transform_keys(&:to_sym)
|
235
|
-
|
236
|
-
|
237
|
-
|
231
|
+
transformed_hash = {}
|
232
|
+
openapi_types.each_pair do |key, type|
|
233
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
234
|
+
transformed_hash["#{key}"] = nil
|
238
235
|
elsif type =~ /\AArray<(.*)>/i
|
239
236
|
# check to ensure the input is an array given that the attribute
|
240
237
|
# is documented as an array but the input is not
|
241
|
-
if attributes[
|
242
|
-
|
238
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
239
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
243
240
|
end
|
244
|
-
elsif !attributes[
|
245
|
-
|
241
|
+
elsif !attributes[attribute_map[key]].nil?
|
242
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
246
243
|
end
|
247
244
|
end
|
248
|
-
|
249
|
-
self
|
245
|
+
new(transformed_hash)
|
250
246
|
end
|
251
247
|
|
252
248
|
# Deserializes the data based on type
|
253
249
|
# @param string type Data type
|
254
250
|
# @param string value Value to be deserialized
|
255
251
|
# @return [Object] Deserialized data
|
256
|
-
def _deserialize(type, value)
|
252
|
+
def self._deserialize(type, value)
|
257
253
|
case type.to_sym
|
258
254
|
when :Time
|
259
255
|
Time.parse(value)
|
@@ -288,7 +284,7 @@ module ElasticEmail
|
|
288
284
|
else # model
|
289
285
|
# models (e.g. Pet) or oneOf
|
290
286
|
klass = ElasticEmail.const_get(type)
|
291
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
287
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
292
288
|
end
|
293
289
|
end
|
294
290
|
|
@@ -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
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -85,6 +85,7 @@ module ElasticEmail
|
|
85
85
|
# Show invalid properties with the reasons. Usually used together with valid?
|
86
86
|
# @return Array for valid properties with the reasons
|
87
87
|
def list_invalid_properties
|
88
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
88
89
|
invalid_properties = Array.new
|
89
90
|
invalid_properties
|
90
91
|
end
|
@@ -92,6 +93,7 @@ module ElasticEmail
|
|
92
93
|
# Check to see if the all the properties in the model are valid
|
93
94
|
# @return true if the model is valid
|
94
95
|
def valid?
|
96
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
95
97
|
true
|
96
98
|
end
|
97
99
|
|
@@ -121,37 +123,30 @@ module ElasticEmail
|
|
121
123
|
# @param [Hash] attributes Model attributes in the form of hash
|
122
124
|
# @return [Object] Returns the model itself
|
123
125
|
def self.build_from_hash(attributes)
|
124
|
-
new.build_from_hash(attributes)
|
125
|
-
end
|
126
|
-
|
127
|
-
# Builds the object from hash
|
128
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
129
|
-
# @return [Object] Returns the model itself
|
130
|
-
def build_from_hash(attributes)
|
131
126
|
return nil unless attributes.is_a?(Hash)
|
132
127
|
attributes = attributes.transform_keys(&:to_sym)
|
133
|
-
|
134
|
-
|
135
|
-
|
128
|
+
transformed_hash = {}
|
129
|
+
openapi_types.each_pair do |key, type|
|
130
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
131
|
+
transformed_hash["#{key}"] = nil
|
136
132
|
elsif type =~ /\AArray<(.*)>/i
|
137
133
|
# check to ensure the input is an array given that the attribute
|
138
134
|
# is documented as an array but the input is not
|
139
|
-
if attributes[
|
140
|
-
|
135
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
136
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
141
137
|
end
|
142
|
-
elsif !attributes[
|
143
|
-
|
138
|
+
elsif !attributes[attribute_map[key]].nil?
|
139
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
144
140
|
end
|
145
141
|
end
|
146
|
-
|
147
|
-
self
|
142
|
+
new(transformed_hash)
|
148
143
|
end
|
149
144
|
|
150
145
|
# Deserializes the data based on type
|
151
146
|
# @param string type Data type
|
152
147
|
# @param string value Value to be deserialized
|
153
148
|
# @return [Object] Deserialized data
|
154
|
-
def _deserialize(type, value)
|
149
|
+
def self._deserialize(type, value)
|
155
150
|
case type.to_sym
|
156
151
|
when :Time
|
157
152
|
Time.parse(value)
|
@@ -186,7 +181,7 @@ module ElasticEmail
|
|
186
181
|
else # model
|
187
182
|
# models (e.g. Pet) or oneOf
|
188
183
|
klass = ElasticEmail.const_get(type)
|
189
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
184
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
190
185
|
end
|
191
186
|
end
|
192
187
|
|
@@ -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
|
-
|
9
|
+
Generator version: 7.5.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -78,6 +78,7 @@ module ElasticEmail
|
|
78
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
79
79
|
# @return Array for valid properties with the reasons
|
80
80
|
def list_invalid_properties
|
81
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
82
|
invalid_properties = Array.new
|
82
83
|
invalid_properties
|
83
84
|
end
|
@@ -85,6 +86,7 @@ module ElasticEmail
|
|
85
86
|
# Check to see if the all the properties in the model are valid
|
86
87
|
# @return true if the model is valid
|
87
88
|
def valid?
|
89
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
88
90
|
true
|
89
91
|
end
|
90
92
|
|
@@ -113,37 +115,30 @@ module ElasticEmail
|
|
113
115
|
# @param [Hash] attributes Model attributes in the form of hash
|
114
116
|
# @return [Object] Returns the model itself
|
115
117
|
def self.build_from_hash(attributes)
|
116
|
-
new.build_from_hash(attributes)
|
117
|
-
end
|
118
|
-
|
119
|
-
# Builds the object from hash
|
120
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
121
|
-
# @return [Object] Returns the model itself
|
122
|
-
def build_from_hash(attributes)
|
123
118
|
return nil unless attributes.is_a?(Hash)
|
124
119
|
attributes = attributes.transform_keys(&:to_sym)
|
125
|
-
|
126
|
-
|
127
|
-
|
120
|
+
transformed_hash = {}
|
121
|
+
openapi_types.each_pair do |key, type|
|
122
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
123
|
+
transformed_hash["#{key}"] = nil
|
128
124
|
elsif type =~ /\AArray<(.*)>/i
|
129
125
|
# check to ensure the input is an array given that the attribute
|
130
126
|
# is documented as an array but the input is not
|
131
|
-
if attributes[
|
132
|
-
|
127
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
128
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
133
129
|
end
|
134
|
-
elsif !attributes[
|
135
|
-
|
130
|
+
elsif !attributes[attribute_map[key]].nil?
|
131
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
136
132
|
end
|
137
133
|
end
|
138
|
-
|
139
|
-
self
|
134
|
+
new(transformed_hash)
|
140
135
|
end
|
141
136
|
|
142
137
|
# Deserializes the data based on type
|
143
138
|
# @param string type Data type
|
144
139
|
# @param string value Value to be deserialized
|
145
140
|
# @return [Object] Deserialized data
|
146
|
-
def _deserialize(type, value)
|
141
|
+
def self._deserialize(type, value)
|
147
142
|
case type.to_sym
|
148
143
|
when :Time
|
149
144
|
Time.parse(value)
|
@@ -178,7 +173,7 @@ module ElasticEmail
|
|
178
173
|
else # model
|
179
174
|
# models (e.g. Pet) or oneOf
|
180
175
|
klass = ElasticEmail.const_get(type)
|
181
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
176
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
182
177
|
end
|
183
178
|
end
|
184
179
|
|