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.
Files changed (239) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +1 -1
  3. data/README.md +5 -5
  4. data/VERSION +1 -1
  5. data/lib/ElasticEmail/api/campaigns_api.rb +1 -1
  6. data/lib/ElasticEmail/api/contacts_api.rb +1 -1
  7. data/lib/ElasticEmail/api/domains_api.rb +1 -1
  8. data/lib/ElasticEmail/api/emails_api.rb +1 -1
  9. data/lib/ElasticEmail/api/events_api.rb +1 -1
  10. data/lib/ElasticEmail/api/files_api.rb +1 -1
  11. data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
  12. data/lib/ElasticEmail/api/lists_api.rb +1 -1
  13. data/lib/ElasticEmail/api/security_api.rb +1 -1
  14. data/lib/ElasticEmail/api/segments_api.rb +1 -1
  15. data/lib/ElasticEmail/api/statistics_api.rb +1 -1
  16. data/lib/ElasticEmail/api/sub_accounts_api.rb +1 -1
  17. data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
  18. data/lib/ElasticEmail/api/templates_api.rb +1 -1
  19. data/lib/ElasticEmail/api/verifications_api.rb +1 -1
  20. data/lib/ElasticEmail/api/webhook_api.rb +1 -1
  21. data/lib/ElasticEmail/api_client.rb +9 -8
  22. data/lib/ElasticEmail/api_error.rb +1 -1
  23. data/lib/ElasticEmail/configuration.rb +1 -1
  24. data/lib/ElasticEmail/models/access_level.rb +1 -1
  25. data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
  26. data/lib/ElasticEmail/models/api_key.rb +4 -10
  27. data/lib/ElasticEmail/models/api_key_payload.rb +4 -30
  28. data/lib/ElasticEmail/models/body_content_type.rb +1 -1
  29. data/lib/ElasticEmail/models/body_part.rb +4 -20
  30. data/lib/ElasticEmail/models/campaign.rb +4 -30
  31. data/lib/ElasticEmail/models/campaign_options.rb +4 -10
  32. data/lib/ElasticEmail/models/campaign_recipient.rb +4 -10
  33. data/lib/ElasticEmail/models/campaign_status.rb +1 -1
  34. data/lib/ElasticEmail/models/campaign_template.rb +4 -20
  35. data/lib/ElasticEmail/models/certificate_validation_status.rb +1 -1
  36. data/lib/ElasticEmail/models/channel_log_status_summary.rb +4 -10
  37. data/lib/ElasticEmail/models/compression_format.rb +1 -1
  38. data/lib/ElasticEmail/models/consent_data.rb +4 -10
  39. data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
  40. data/lib/ElasticEmail/models/contact.rb +4 -10
  41. data/lib/ElasticEmail/models/contact_activity.rb +4 -10
  42. data/lib/ElasticEmail/models/contact_payload.rb +4 -20
  43. data/lib/ElasticEmail/models/contact_source.rb +1 -1
  44. data/lib/ElasticEmail/models/contact_status.rb +1 -1
  45. data/lib/ElasticEmail/models/contact_update_payload.rb +4 -10
  46. data/lib/ElasticEmail/models/contacts_list.rb +4 -10
  47. data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
  48. data/lib/ElasticEmail/models/dkim_record.rb +4 -10
  49. data/lib/ElasticEmail/models/domain_data.rb +4 -10
  50. data/lib/ElasticEmail/models/domain_detail.rb +4 -10
  51. data/lib/ElasticEmail/models/domain_owner.rb +1 -1
  52. data/lib/ElasticEmail/models/domain_payload.rb +4 -10
  53. data/lib/ElasticEmail/models/domain_update_payload.rb +4 -10
  54. data/lib/ElasticEmail/models/email_content.rb +4 -20
  55. data/lib/ElasticEmail/models/email_data.rb +4 -10
  56. data/lib/ElasticEmail/models/email_job_failed_status.rb +4 -10
  57. data/lib/ElasticEmail/models/email_job_status.rb +4 -10
  58. data/lib/ElasticEmail/models/email_message_data.rb +4 -30
  59. data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
  60. data/lib/ElasticEmail/models/email_recipient.rb +4 -20
  61. data/lib/ElasticEmail/models/email_send.rb +4 -10
  62. data/lib/ElasticEmail/models/email_status.rb +4 -10
  63. data/lib/ElasticEmail/models/email_transactional_message_data.rb +4 -30
  64. data/lib/ElasticEmail/models/email_validation_result.rb +4 -10
  65. data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
  66. data/lib/ElasticEmail/models/email_view.rb +4 -10
  67. data/lib/ElasticEmail/models/emails_payload.rb +4 -10
  68. data/lib/ElasticEmail/models/encoding_type.rb +1 -1
  69. data/lib/ElasticEmail/models/event_type.rb +1 -1
  70. data/lib/ElasticEmail/models/events_order_by.rb +1 -1
  71. data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
  72. data/lib/ElasticEmail/models/export_link.rb +4 -10
  73. data/lib/ElasticEmail/models/export_status.rb +1 -1
  74. data/lib/ElasticEmail/models/file_info.rb +4 -10
  75. data/lib/ElasticEmail/models/file_payload.rb +4 -20
  76. data/lib/ElasticEmail/models/file_upload_result.rb +4 -10
  77. data/lib/ElasticEmail/models/inbound_payload.rb +4 -50
  78. data/lib/ElasticEmail/models/inbound_route.rb +4 -10
  79. data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
  80. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
  81. data/lib/ElasticEmail/models/list_payload.rb +4 -20
  82. data/lib/ElasticEmail/models/list_update_payload.rb +4 -10
  83. data/lib/ElasticEmail/models/log_job_status.rb +1 -1
  84. data/lib/ElasticEmail/models/log_status_summary.rb +4 -10
  85. data/lib/ElasticEmail/models/merge_email_payload.rb +4 -30
  86. data/lib/ElasticEmail/models/message_attachment.rb +4 -30
  87. data/lib/ElasticEmail/models/message_category.rb +1 -1
  88. data/lib/ElasticEmail/models/message_category_enum.rb +1 -1
  89. data/lib/ElasticEmail/models/new_api_key.rb +4 -10
  90. data/lib/ElasticEmail/models/new_smtp_credentials.rb +4 -10
  91. data/lib/ElasticEmail/models/options.rb +4 -10
  92. data/lib/ElasticEmail/models/recipient_event.rb +4 -10
  93. data/lib/ElasticEmail/models/segment.rb +4 -10
  94. data/lib/ElasticEmail/models/segment_payload.rb +4 -30
  95. data/lib/ElasticEmail/models/smtp_credentials.rb +4 -10
  96. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +4 -20
  97. data/lib/ElasticEmail/models/sort_order_item.rb +4 -30
  98. data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
  99. data/lib/ElasticEmail/models/split_options.rb +4 -10
  100. data/lib/ElasticEmail/models/sub_account_info.rb +4 -10
  101. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +4 -20
  102. data/lib/ElasticEmail/models/subaccount_email_settings.rb +4 -10
  103. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +4 -10
  104. data/lib/ElasticEmail/models/subaccount_payload.rb +4 -30
  105. data/lib/ElasticEmail/models/subaccount_settings_info.rb +4 -10
  106. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +4 -10
  107. data/lib/ElasticEmail/models/suppression.rb +4 -10
  108. data/lib/ElasticEmail/models/template.rb +4 -10
  109. data/lib/ElasticEmail/models/template_payload.rb +4 -20
  110. data/lib/ElasticEmail/models/template_scope.rb +1 -1
  111. data/lib/ElasticEmail/models/template_type.rb +1 -1
  112. data/lib/ElasticEmail/models/tracking_type.rb +1 -1
  113. data/lib/ElasticEmail/models/tracking_validation_status.rb +1 -1
  114. data/lib/ElasticEmail/models/transactional_recipient.rb +4 -20
  115. data/lib/ElasticEmail/models/utm.rb +4 -10
  116. data/lib/ElasticEmail/models/verification_file_result.rb +4 -10
  117. data/lib/ElasticEmail/models/verification_file_result_details.rb +4 -10
  118. data/lib/ElasticEmail/models/verification_status.rb +1 -1
  119. data/lib/ElasticEmail/models/webhook.rb +4 -10
  120. data/lib/ElasticEmail/models/webhook_create_payload.rb +4 -30
  121. data/lib/ElasticEmail/models/webhook_update_payload.rb +4 -10
  122. data/lib/ElasticEmail/version.rb +2 -2
  123. data/lib/ElasticEmail.rb +1 -1
  124. data/spec/api/campaigns_api_spec.rb +1 -1
  125. data/spec/api/contacts_api_spec.rb +1 -1
  126. data/spec/api/domains_api_spec.rb +1 -1
  127. data/spec/api/emails_api_spec.rb +1 -1
  128. data/spec/api/events_api_spec.rb +1 -1
  129. data/spec/api/files_api_spec.rb +1 -1
  130. data/spec/api/inbound_route_api_spec.rb +1 -1
  131. data/spec/api/lists_api_spec.rb +1 -1
  132. data/spec/api/security_api_spec.rb +1 -1
  133. data/spec/api/segments_api_spec.rb +1 -1
  134. data/spec/api/statistics_api_spec.rb +1 -1
  135. data/spec/api/sub_accounts_api_spec.rb +1 -1
  136. data/spec/api/suppressions_api_spec.rb +1 -1
  137. data/spec/api/templates_api_spec.rb +1 -1
  138. data/spec/api/verifications_api_spec.rb +1 -1
  139. data/spec/api/webhook_api_spec.rb +1 -1
  140. data/spec/models/access_level_spec.rb +1 -1
  141. data/spec/models/account_status_enum_spec.rb +1 -1
  142. data/spec/models/api_key_payload_spec.rb +1 -1
  143. data/spec/models/api_key_spec.rb +1 -1
  144. data/spec/models/body_content_type_spec.rb +1 -1
  145. data/spec/models/body_part_spec.rb +1 -1
  146. data/spec/models/campaign_options_spec.rb +1 -1
  147. data/spec/models/campaign_recipient_spec.rb +1 -1
  148. data/spec/models/campaign_spec.rb +1 -1
  149. data/spec/models/campaign_status_spec.rb +1 -1
  150. data/spec/models/campaign_template_spec.rb +1 -1
  151. data/spec/models/certificate_validation_status_spec.rb +1 -1
  152. data/spec/models/channel_log_status_summary_spec.rb +1 -1
  153. data/spec/models/compression_format_spec.rb +1 -1
  154. data/spec/models/consent_data_spec.rb +1 -1
  155. data/spec/models/consent_tracking_spec.rb +1 -1
  156. data/spec/models/contact_activity_spec.rb +1 -1
  157. data/spec/models/contact_payload_spec.rb +1 -1
  158. data/spec/models/contact_source_spec.rb +1 -1
  159. data/spec/models/contact_spec.rb +1 -1
  160. data/spec/models/contact_status_spec.rb +1 -1
  161. data/spec/models/contact_update_payload_spec.rb +1 -1
  162. data/spec/models/contacts_list_spec.rb +1 -1
  163. data/spec/models/delivery_optimization_type_spec.rb +1 -1
  164. data/spec/models/dkim_record_spec.rb +1 -1
  165. data/spec/models/domain_data_spec.rb +1 -1
  166. data/spec/models/domain_detail_spec.rb +1 -1
  167. data/spec/models/domain_owner_spec.rb +1 -1
  168. data/spec/models/domain_payload_spec.rb +1 -1
  169. data/spec/models/domain_update_payload_spec.rb +1 -1
  170. data/spec/models/email_content_spec.rb +1 -1
  171. data/spec/models/email_data_spec.rb +1 -1
  172. data/spec/models/email_job_failed_status_spec.rb +1 -1
  173. data/spec/models/email_job_status_spec.rb +1 -1
  174. data/spec/models/email_message_data_spec.rb +1 -1
  175. data/spec/models/email_predicted_validation_status_spec.rb +1 -1
  176. data/spec/models/email_recipient_spec.rb +1 -1
  177. data/spec/models/email_send_spec.rb +1 -1
  178. data/spec/models/email_status_spec.rb +1 -1
  179. data/spec/models/email_transactional_message_data_spec.rb +1 -1
  180. data/spec/models/email_validation_result_spec.rb +1 -1
  181. data/spec/models/email_validation_status_spec.rb +1 -1
  182. data/spec/models/email_view_spec.rb +1 -1
  183. data/spec/models/emails_payload_spec.rb +1 -1
  184. data/spec/models/encoding_type_spec.rb +1 -1
  185. data/spec/models/event_type_spec.rb +1 -1
  186. data/spec/models/events_order_by_spec.rb +1 -1
  187. data/spec/models/export_file_formats_spec.rb +1 -1
  188. data/spec/models/export_link_spec.rb +1 -1
  189. data/spec/models/export_status_spec.rb +1 -1
  190. data/spec/models/file_info_spec.rb +1 -1
  191. data/spec/models/file_payload_spec.rb +1 -1
  192. data/spec/models/file_upload_result_spec.rb +1 -1
  193. data/spec/models/inbound_payload_spec.rb +1 -1
  194. data/spec/models/inbound_route_action_type_spec.rb +1 -1
  195. data/spec/models/inbound_route_filter_type_spec.rb +1 -1
  196. data/spec/models/inbound_route_spec.rb +1 -1
  197. data/spec/models/list_payload_spec.rb +1 -1
  198. data/spec/models/list_update_payload_spec.rb +1 -1
  199. data/spec/models/log_job_status_spec.rb +1 -1
  200. data/spec/models/log_status_summary_spec.rb +1 -1
  201. data/spec/models/merge_email_payload_spec.rb +1 -1
  202. data/spec/models/message_attachment_spec.rb +1 -1
  203. data/spec/models/message_category_enum_spec.rb +1 -1
  204. data/spec/models/message_category_spec.rb +1 -1
  205. data/spec/models/new_api_key_spec.rb +1 -1
  206. data/spec/models/new_smtp_credentials_spec.rb +1 -1
  207. data/spec/models/options_spec.rb +1 -1
  208. data/spec/models/recipient_event_spec.rb +1 -1
  209. data/spec/models/segment_payload_spec.rb +1 -1
  210. data/spec/models/segment_spec.rb +1 -1
  211. data/spec/models/smtp_credentials_payload_spec.rb +1 -1
  212. data/spec/models/smtp_credentials_spec.rb +1 -1
  213. data/spec/models/sort_order_item_spec.rb +1 -1
  214. data/spec/models/split_optimization_type_spec.rb +1 -1
  215. data/spec/models/split_options_spec.rb +1 -1
  216. data/spec/models/sub_account_info_spec.rb +1 -1
  217. data/spec/models/subaccount_email_credits_payload_spec.rb +1 -1
  218. data/spec/models/subaccount_email_settings_payload_spec.rb +1 -1
  219. data/spec/models/subaccount_email_settings_spec.rb +1 -1
  220. data/spec/models/subaccount_payload_spec.rb +1 -1
  221. data/spec/models/subaccount_settings_info_payload_spec.rb +1 -1
  222. data/spec/models/subaccount_settings_info_spec.rb +1 -1
  223. data/spec/models/suppression_spec.rb +1 -1
  224. data/spec/models/template_payload_spec.rb +1 -1
  225. data/spec/models/template_scope_spec.rb +1 -1
  226. data/spec/models/template_spec.rb +1 -1
  227. data/spec/models/template_type_spec.rb +1 -1
  228. data/spec/models/tracking_type_spec.rb +1 -1
  229. data/spec/models/tracking_validation_status_spec.rb +1 -1
  230. data/spec/models/transactional_recipient_spec.rb +1 -1
  231. data/spec/models/utm_spec.rb +1 -1
  232. data/spec/models/verification_file_result_details_spec.rb +1 -1
  233. data/spec/models/verification_file_result_spec.rb +1 -1
  234. data/spec/models/verification_status_spec.rb +1 -1
  235. data/spec/models/webhook_create_payload_spec.rb +1 -1
  236. data/spec/models/webhook_spec.rb +1 -1
  237. data/spec/models/webhook_update_payload_spec.rb +1 -1
  238. data/spec/spec_helper.rb +1 -1
  239. 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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -33,14 +33,9 @@ module ElasticEmail
33
33
  }
34
34
  end
35
35
 
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
36
  # Returns all the JSON keys this model knows about
42
37
  def self.acceptable_attributes
43
- acceptable_attribute_map.values
38
+ attribute_map.values
44
39
  end
45
40
 
46
41
  # Attribute type mapping.
@@ -66,10 +61,9 @@ module ElasticEmail
66
61
  end
67
62
 
68
63
  # check to see if the attribute exists and convert string to symbol for hash key
69
- acceptable_attribute_map = self.class.acceptable_attribute_map
70
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
- if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::FilePayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::FilePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
67
  end
74
68
  h[k.to_sym] = v
75
69
  }
@@ -109,16 +103,6 @@ module ElasticEmail
109
103
  true
110
104
  end
111
105
 
112
- # Custom attribute writer method with validation
113
- # @param [Object] binary_content Value to be assigned
114
- def binary_content=(binary_content)
115
- if binary_content.nil?
116
- fail ArgumentError, 'binary_content cannot be nil'
117
- end
118
-
119
- @binary_content = binary_content
120
- end
121
-
122
106
  # Checks equality by comparing each attribute.
123
107
  # @param [Object] Object to be compared
124
108
  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.14.0
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
- acceptable_attribute_map.values
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 (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::FileUploadResult`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::FileUploadResult`. 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
  }
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -65,14 +65,9 @@ module ElasticEmail
65
65
  }
66
66
  end
67
67
 
68
- # Returns attribute mapping this model knows about
69
- def self.acceptable_attribute_map
70
- attribute_map
71
- end
72
-
73
68
  # Returns all the JSON keys this model knows about
74
69
  def self.acceptable_attributes
75
- acceptable_attribute_map.values
70
+ attribute_map.values
76
71
  end
77
72
 
78
73
  # Attribute type mapping.
@@ -101,10 +96,9 @@ module ElasticEmail
101
96
  end
102
97
 
103
98
  # check to see if the attribute exists and convert string to symbol for hash key
104
- acceptable_attribute_map = self.class.acceptable_attribute_map
105
99
  attributes = attributes.each_with_object({}) { |(k, v), h|
106
- if (!acceptable_attribute_map.key?(k.to_sym))
107
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::InboundPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
100
+ if (!self.class.attribute_map.key?(k.to_sym))
101
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::InboundPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
108
102
  end
109
103
  h[k.to_sym] = v
110
104
  }
@@ -177,46 +171,6 @@ module ElasticEmail
177
171
  true
178
172
  end
179
173
 
180
- # Custom attribute writer method with validation
181
- # @param [Object] filter Value to be assigned
182
- def filter=(filter)
183
- if filter.nil?
184
- fail ArgumentError, 'filter cannot be nil'
185
- end
186
-
187
- @filter = filter
188
- end
189
-
190
- # Custom attribute writer method with validation
191
- # @param [Object] name Value to be assigned
192
- def name=(name)
193
- if name.nil?
194
- fail ArgumentError, 'name cannot be nil'
195
- end
196
-
197
- @name = name
198
- end
199
-
200
- # Custom attribute writer method with validation
201
- # @param [Object] filter_type Value to be assigned
202
- def filter_type=(filter_type)
203
- if filter_type.nil?
204
- fail ArgumentError, 'filter_type cannot be nil'
205
- end
206
-
207
- @filter_type = filter_type
208
- end
209
-
210
- # Custom attribute writer method with validation
211
- # @param [Object] action_type Value to be assigned
212
- def action_type=(action_type)
213
- if action_type.nil?
214
- fail ArgumentError, 'action_type cannot be nil'
215
- end
216
-
217
- @action_type = action_type
218
- end
219
-
220
174
  # Checks equality by comparing each attribute.
221
175
  # @param [Object] Object to be compared
222
176
  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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -68,14 +68,9 @@ module ElasticEmail
68
68
  }
69
69
  end
70
70
 
71
- # Returns attribute mapping this model knows about
72
- def self.acceptable_attribute_map
73
- attribute_map
74
- end
75
-
76
71
  # Returns all the JSON keys this model knows about
77
72
  def self.acceptable_attributes
78
- acceptable_attribute_map.values
73
+ attribute_map.values
79
74
  end
80
75
 
81
76
  # 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 (!acceptable_attribute_map.key?(k.to_sym))
111
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::InboundRoute`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
104
+ if (!self.class.attribute_map.key?(k.to_sym))
105
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::InboundRoute`. 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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -33,14 +33,9 @@ module ElasticEmail
33
33
  }
34
34
  end
35
35
 
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
36
  # Returns all the JSON keys this model knows about
42
37
  def self.acceptable_attributes
43
- acceptable_attribute_map.values
38
+ attribute_map.values
44
39
  end
45
40
 
46
41
  # Attribute type mapping.
@@ -66,10 +61,9 @@ module ElasticEmail
66
61
  end
67
62
 
68
63
  # check to see if the attribute exists and convert string to symbol for hash key
69
- acceptable_attribute_map = self.class.acceptable_attribute_map
70
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
- if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ListPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ListPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
67
  end
74
68
  h[k.to_sym] = v
75
69
  }
@@ -111,16 +105,6 @@ module ElasticEmail
111
105
  true
112
106
  end
113
107
 
114
- # Custom attribute writer method with validation
115
- # @param [Object] list_name Value to be assigned
116
- def list_name=(list_name)
117
- if list_name.nil?
118
- fail ArgumentError, 'list_name cannot be nil'
119
- end
120
-
121
- @list_name = list_name
122
- end
123
-
124
108
  # Checks equality by comparing each attribute.
125
109
  # @param [Object] Object to be compared
126
110
  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.14.0
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
- acceptable_attribute_map.values
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 (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ListUpdatePayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::ListUpdatePayload`. 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
  }
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -74,14 +74,9 @@ module ElasticEmail
74
74
  }
75
75
  end
76
76
 
77
- # Returns attribute mapping this model knows about
78
- def self.acceptable_attribute_map
79
- attribute_map
80
- end
81
-
82
77
  # Returns all the JSON keys this model knows about
83
78
  def self.acceptable_attributes
84
- acceptable_attribute_map.values
79
+ attribute_map.values
85
80
  end
86
81
 
87
82
  # 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 (!acceptable_attribute_map.key?(k.to_sym))
123
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::LogStatusSummary`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
116
+ if (!self.class.attribute_map.key?(k.to_sym))
117
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::LogStatusSummary`. 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.14.0
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
- acceptable_attribute_map.values
35
+ attribute_map.values
41
36
  end
42
37
 
43
38
  # Attribute type mapping.
@@ -63,10 +58,9 @@ module ElasticEmail
63
58
  end
64
59
 
65
60
  # check to see if the attribute exists and convert string to symbol for hash key
66
- acceptable_attribute_map = self.class.acceptable_attribute_map
67
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
68
- if (!acceptable_attribute_map.key?(k.to_sym))
69
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::MergeEmailPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ if (!self.class.attribute_map.key?(k.to_sym))
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::MergeEmailPayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
64
  end
71
65
  h[k.to_sym] = v
72
66
  }
@@ -113,26 +107,6 @@ module ElasticEmail
113
107
  true
114
108
  end
115
109
 
116
- # Custom attribute writer method with validation
117
- # @param [Object] merge_file Value to be assigned
118
- def merge_file=(merge_file)
119
- if merge_file.nil?
120
- fail ArgumentError, 'merge_file cannot be nil'
121
- end
122
-
123
- @merge_file = merge_file
124
- end
125
-
126
- # Custom attribute writer method with validation
127
- # @param [Object] content Value to be assigned
128
- def content=(content)
129
- if content.nil?
130
- fail ArgumentError, 'content cannot be nil'
131
- end
132
-
133
- @content = content
134
- end
135
-
136
110
  # Checks equality by comparing each attribute.
137
111
  # @param [Object] Object to be compared
138
112
  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.14.0
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
- acceptable_attribute_map.values
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 (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::MessageAttachment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::MessageAttachment`. 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] binary_content Value to be assigned
130
- def binary_content=(binary_content)
131
- if binary_content.nil?
132
- fail ArgumentError, 'binary_content cannot be nil'
133
- end
134
-
135
- @binary_content = binary_content
136
- end
137
-
138
- # Custom attribute writer method with validation
139
- # @param [Object] name Value to be assigned
140
- def name=(name)
141
- if name.nil?
142
- fail ArgumentError, 'name cannot be nil'
143
- end
144
-
145
- @name = name
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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -50,14 +50,9 @@ module ElasticEmail
50
50
  }
51
51
  end
52
52
 
53
- # Returns attribute mapping this model knows about
54
- def self.acceptable_attribute_map
55
- attribute_map
56
- end
57
-
58
53
  # Returns all the JSON keys this model knows about
59
54
  def self.acceptable_attributes
60
- acceptable_attribute_map.values
55
+ attribute_map.values
61
56
  end
62
57
 
63
58
  # Attribute type mapping.
@@ -89,10 +84,9 @@ module ElasticEmail
89
84
  end
90
85
 
91
86
  # check to see if the attribute exists and convert string to symbol for hash key
92
- acceptable_attribute_map = self.class.acceptable_attribute_map
93
87
  attributes = attributes.each_with_object({}) { |(k, v), h|
94
- if (!acceptable_attribute_map.key?(k.to_sym))
95
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::NewApiKey`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
88
+ if (!self.class.attribute_map.key?(k.to_sym))
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::NewApiKey`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
96
90
  end
97
91
  h[k.to_sym] = v
98
92
  }
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -71,14 +71,9 @@ module ElasticEmail
71
71
  }
72
72
  end
73
73
 
74
- # Returns attribute mapping this model knows about
75
- def self.acceptable_attribute_map
76
- attribute_map
77
- end
78
-
79
74
  # Returns all the JSON keys this model knows about
80
75
  def self.acceptable_attributes
81
- acceptable_attribute_map.values
76
+ attribute_map.values
82
77
  end
83
78
 
84
79
  # Attribute type mapping.
@@ -110,10 +105,9 @@ module ElasticEmail
110
105
  end
111
106
 
112
107
  # check to see if the attribute exists and convert string to symbol for hash key
113
- acceptable_attribute_map = self.class.acceptable_attribute_map
114
108
  attributes = attributes.each_with_object({}) { |(k, v), h|
115
- if (!acceptable_attribute_map.key?(k.to_sym))
116
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::NewSmtpCredentials`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
109
+ if (!self.class.attribute_map.key?(k.to_sym))
110
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::NewSmtpCredentials`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
117
111
  end
118
112
  h[k.to_sym] = v
119
113
  }
@@ -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.14.0
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
- acceptable_attribute_map.values
72
+ attribute_map.values
78
73
  end
79
74
 
80
75
  # Attribute type mapping.
@@ -106,10 +101,9 @@ module ElasticEmail
106
101
  end
107
102
 
108
103
  # check to see if the attribute exists and convert string to symbol for hash key
109
- acceptable_attribute_map = self.class.acceptable_attribute_map
110
104
  attributes = attributes.each_with_object({}) { |(k, v), h|
111
- if (!acceptable_attribute_map.key?(k.to_sym))
112
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Options`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
105
+ if (!self.class.attribute_map.key?(k.to_sym))
106
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::Options`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
113
107
  end
114
108
  h[k.to_sym] = v
115
109
  }
@@ -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.14.0
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -94,14 +94,9 @@ module ElasticEmail
94
94
  }
95
95
  end
96
96
 
97
- # Returns attribute mapping this model knows about
98
- def self.acceptable_attribute_map
99
- attribute_map
100
- end
101
-
102
97
  # Returns all the JSON keys this model knows about
103
98
  def self.acceptable_attributes
104
- acceptable_attribute_map.values
99
+ attribute_map.values
105
100
  end
106
101
 
107
102
  # Attribute type mapping.
@@ -138,10 +133,9 @@ module ElasticEmail
138
133
  end
139
134
 
140
135
  # check to see if the attribute exists and convert string to symbol for hash key
141
- acceptable_attribute_map = self.class.acceptable_attribute_map
142
136
  attributes = attributes.each_with_object({}) { |(k, v), h|
143
- if (!acceptable_attribute_map.key?(k.to_sym))
144
- fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::RecipientEvent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
137
+ if (!self.class.attribute_map.key?(k.to_sym))
138
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ElasticEmail::RecipientEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
145
139
  end
146
140
  h[k.to_sym] = v
147
141
  }