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.
Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +2 -1
  3. data/README.md +28 -4
  4. data/VERSION +1 -1
  5. data/docs/CampaignOptions.md +4 -0
  6. data/docs/CampaignTemplate.md +2 -2
  7. data/docs/CampaignsApi.md +71 -0
  8. data/docs/CertificateValidationStatus.md +15 -0
  9. data/docs/DomainData.md +54 -0
  10. data/docs/DomainDetail.md +52 -0
  11. data/docs/{TemplateScopeType.md → DomainOwner.md} +2 -2
  12. data/docs/DomainPayload.md +20 -0
  13. data/docs/DomainUpdatePayload.md +24 -0
  14. data/docs/DomainsApi.md +583 -0
  15. data/docs/EmailContent.md +2 -2
  16. data/docs/EmailJobFailedStatus.md +24 -0
  17. data/docs/EmailJobStatus.md +56 -0
  18. data/docs/EmailMessageData.md +1 -1
  19. data/docs/EmailStatus.md +3 -1
  20. data/docs/EmailTransactionalMessageData.md +1 -1
  21. data/docs/EmailValidationResult.md +2 -2
  22. data/docs/EmailsApi.md +98 -4
  23. data/docs/EmailsPayload.md +1 -1
  24. data/docs/ListPayload.md +1 -1
  25. data/docs/ListsApi.md +78 -0
  26. data/docs/MergeEmailPayload.md +1 -1
  27. data/docs/{ContactHistEventType.md → MessageCategoryEnum.md} +2 -2
  28. data/docs/TrackingType.md +15 -0
  29. data/docs/TrackingValidationStatus.md +15 -0
  30. data/lib/ElasticEmail/api/campaigns_api.rb +62 -1
  31. data/lib/ElasticEmail/api/contacts_api.rb +1 -1
  32. data/lib/ElasticEmail/api/domains_api.rb +545 -0
  33. data/lib/ElasticEmail/api/emails_api.rb +96 -3
  34. data/lib/ElasticEmail/api/events_api.rb +1 -1
  35. data/lib/ElasticEmail/api/files_api.rb +1 -1
  36. data/lib/ElasticEmail/api/inbound_route_api.rb +1 -1
  37. data/lib/ElasticEmail/api/lists_api.rb +70 -1
  38. data/lib/ElasticEmail/api/security_api.rb +1 -1
  39. data/lib/ElasticEmail/api/segments_api.rb +1 -1
  40. data/lib/ElasticEmail/api/statistics_api.rb +1 -1
  41. data/lib/ElasticEmail/api/sub_accounts_api.rb +1 -1
  42. data/lib/ElasticEmail/api/suppressions_api.rb +1 -1
  43. data/lib/ElasticEmail/api/templates_api.rb +1 -1
  44. data/lib/ElasticEmail/api/verifications_api.rb +1 -1
  45. data/lib/ElasticEmail/api_client.rb +23 -21
  46. data/lib/ElasticEmail/api_error.rb +1 -1
  47. data/lib/ElasticEmail/configuration.rb +18 -10
  48. data/lib/ElasticEmail/models/access_level.rb +4 -3
  49. data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
  50. data/lib/ElasticEmail/models/api_key.rb +14 -19
  51. data/lib/ElasticEmail/models/api_key_payload.rb +18 -19
  52. data/lib/ElasticEmail/models/body_content_type.rb +1 -1
  53. data/lib/ElasticEmail/models/body_part.rb +14 -19
  54. data/lib/ElasticEmail/models/campaign.rb +18 -19
  55. data/lib/ElasticEmail/models/campaign_options.rb +35 -20
  56. data/lib/ElasticEmail/models/campaign_recipient.rb +14 -19
  57. data/lib/ElasticEmail/models/campaign_status.rb +1 -1
  58. data/lib/ElasticEmail/models/campaign_template.rb +21 -19
  59. data/lib/ElasticEmail/models/certificate_validation_status.rb +42 -0
  60. data/lib/ElasticEmail/models/channel_log_status_summary.rb +14 -19
  61. data/lib/ElasticEmail/models/compression_format.rb +1 -1
  62. data/lib/ElasticEmail/models/consent_data.rb +14 -19
  63. data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
  64. data/lib/ElasticEmail/models/contact.rb +14 -19
  65. data/lib/ElasticEmail/models/contact_activity.rb +14 -19
  66. data/lib/ElasticEmail/models/contact_payload.rb +16 -19
  67. data/lib/ElasticEmail/models/contact_source.rb +1 -1
  68. data/lib/ElasticEmail/models/contact_status.rb +1 -1
  69. data/lib/ElasticEmail/models/contact_update_payload.rb +14 -19
  70. data/lib/ElasticEmail/models/contacts_list.rb +14 -19
  71. data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
  72. data/lib/ElasticEmail/models/domain_data.rb +417 -0
  73. data/lib/ElasticEmail/models/domain_detail.rb +407 -0
  74. data/lib/ElasticEmail/models/domain_owner.rb +40 -0
  75. data/lib/ElasticEmail/models/domain_payload.rb +224 -0
  76. data/lib/ElasticEmail/models/{contact_history.rb → domain_update_payload.rb} +63 -79
  77. data/lib/ElasticEmail/models/email_content.rb +21 -19
  78. data/lib/ElasticEmail/models/email_data.rb +14 -19
  79. data/lib/ElasticEmail/models/email_job_failed_status.rb +242 -0
  80. data/lib/ElasticEmail/models/email_job_status.rb +415 -0
  81. data/lib/ElasticEmail/models/email_message_data.rb +23 -19
  82. data/lib/ElasticEmail/models/email_predicted_validation_status.rb +1 -1
  83. data/lib/ElasticEmail/models/email_recipient.rb +16 -19
  84. data/lib/ElasticEmail/models/email_send.rb +14 -19
  85. data/lib/ElasticEmail/models/email_status.rb +29 -23
  86. data/lib/ElasticEmail/models/email_transactional_message_data.rb +23 -19
  87. data/lib/ElasticEmail/models/email_validation_result.rb +16 -20
  88. data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
  89. data/lib/ElasticEmail/models/email_view.rb +14 -19
  90. data/lib/ElasticEmail/models/emails_payload.rb +14 -19
  91. data/lib/ElasticEmail/models/encoding_type.rb +1 -1
  92. data/lib/ElasticEmail/models/event_type.rb +1 -1
  93. data/lib/ElasticEmail/models/events_order_by.rb +1 -1
  94. data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
  95. data/lib/ElasticEmail/models/export_link.rb +14 -19
  96. data/lib/ElasticEmail/models/export_status.rb +1 -1
  97. data/lib/ElasticEmail/models/file_info.rb +14 -19
  98. data/lib/ElasticEmail/models/file_payload.rb +16 -19
  99. data/lib/ElasticEmail/models/file_upload_result.rb +14 -19
  100. data/lib/ElasticEmail/models/inbound_payload.rb +18 -19
  101. data/lib/ElasticEmail/models/inbound_route.rb +14 -19
  102. data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
  103. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
  104. data/lib/ElasticEmail/models/list_payload.rb +16 -19
  105. data/lib/ElasticEmail/models/list_update_payload.rb +14 -19
  106. data/lib/ElasticEmail/models/log_job_status.rb +1 -1
  107. data/lib/ElasticEmail/models/log_status_summary.rb +14 -19
  108. data/lib/ElasticEmail/models/merge_email_payload.rb +23 -19
  109. data/lib/ElasticEmail/models/message_attachment.rb +18 -19
  110. data/lib/ElasticEmail/models/message_category.rb +1 -1
  111. data/lib/ElasticEmail/models/message_category_enum.rb +55 -0
  112. data/lib/ElasticEmail/models/new_api_key.rb +14 -19
  113. data/lib/ElasticEmail/models/new_smtp_credentials.rb +14 -19
  114. data/lib/ElasticEmail/models/options.rb +16 -19
  115. data/lib/ElasticEmail/models/recipient_event.rb +14 -19
  116. data/lib/ElasticEmail/models/segment.rb +14 -19
  117. data/lib/ElasticEmail/models/segment_payload.rb +18 -19
  118. data/lib/ElasticEmail/models/smtp_credentials.rb +14 -19
  119. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +16 -19
  120. data/lib/ElasticEmail/models/sort_order_item.rb +18 -19
  121. data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
  122. data/lib/ElasticEmail/models/split_options.rb +14 -19
  123. data/lib/ElasticEmail/models/sub_account_info.rb +14 -19
  124. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +16 -19
  125. data/lib/ElasticEmail/models/subaccount_email_settings.rb +14 -19
  126. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +14 -19
  127. data/lib/ElasticEmail/models/subaccount_payload.rb +18 -19
  128. data/lib/ElasticEmail/models/subaccount_settings_info.rb +14 -19
  129. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +14 -19
  130. data/lib/ElasticEmail/models/suppression.rb +14 -19
  131. data/lib/ElasticEmail/models/template.rb +14 -19
  132. data/lib/ElasticEmail/models/template_payload.rb +16 -19
  133. data/lib/ElasticEmail/models/template_scope.rb +1 -1
  134. data/lib/ElasticEmail/models/template_type.rb +4 -2
  135. data/lib/ElasticEmail/models/tracking_type.rb +44 -0
  136. data/lib/ElasticEmail/models/tracking_validation_status.rb +42 -0
  137. data/lib/ElasticEmail/models/transactional_recipient.rb +16 -19
  138. data/lib/ElasticEmail/models/utm.rb +14 -19
  139. data/lib/ElasticEmail/models/verification_file_result.rb +14 -19
  140. data/lib/ElasticEmail/models/verification_file_result_details.rb +14 -19
  141. data/lib/ElasticEmail/models/verification_status.rb +1 -1
  142. data/lib/ElasticEmail/version.rb +2 -2
  143. data/lib/ElasticEmail.rb +13 -1
  144. data/spec/api/campaigns_api_spec.rb +19 -7
  145. data/spec/api/contacts_api_spec.rb +12 -25
  146. data/spec/api/domains_api_spec.rb +132 -0
  147. data/spec/api/emails_api_spec.rb +29 -7
  148. data/spec/api/events_api_spec.rb +9 -9
  149. data/spec/api/files_api_spec.rb +7 -7
  150. data/spec/api/inbound_route_api_spec.rb +8 -8
  151. data/spec/api/lists_api_spec.rb +23 -9
  152. data/spec/api/security_api_spec.rb +12 -12
  153. data/spec/api/segments_api_spec.rb +7 -7
  154. data/spec/api/statistics_api_spec.rb +7 -7
  155. data/spec/api/sub_accounts_api_spec.rb +8 -8
  156. data/spec/api/suppressions_api_spec.rb +26 -26
  157. data/spec/api/templates_api_spec.rb +7 -7
  158. data/spec/api/verifications_api_spec.rb +30 -18
  159. data/spec/models/access_level_spec.rb +5 -3
  160. data/spec/models/account_status_enum_spec.rb +5 -3
  161. data/spec/models/api_key_payload_spec.rb +10 -8
  162. data/spec/models/api_key_spec.rb +11 -9
  163. data/spec/models/body_content_type_spec.rb +5 -3
  164. data/spec/models/body_part_spec.rb +8 -6
  165. data/spec/models/campaign_options_spec.rb +22 -8
  166. data/spec/models/campaign_recipient_spec.rb +7 -5
  167. data/spec/models/campaign_spec.rb +10 -8
  168. data/spec/models/campaign_status_spec.rb +5 -3
  169. data/spec/models/campaign_template_spec.rb +12 -10
  170. data/spec/{configuration_spec.rb → models/certificate_validation_status_spec.rb} +15 -27
  171. data/spec/models/channel_log_status_summary_spec.rb +19 -17
  172. data/spec/models/compression_format_spec.rb +5 -3
  173. data/spec/models/consent_data_spec.rb +8 -6
  174. data/spec/models/consent_tracking_spec.rb +5 -3
  175. data/spec/models/contact_activity_spec.rb +16 -14
  176. data/spec/models/contact_payload_spec.rb +11 -9
  177. data/spec/models/contact_source_spec.rb +5 -3
  178. data/spec/models/contact_spec.rb +16 -14
  179. data/spec/models/contact_status_spec.rb +5 -3
  180. data/spec/models/contact_update_payload_spec.rb +8 -6
  181. data/spec/models/contacts_list_spec.rb +9 -7
  182. data/spec/models/delivery_optimization_type_spec.rb +5 -3
  183. data/spec/models/domain_data_spec.rb +144 -0
  184. data/spec/models/domain_detail_spec.rb +138 -0
  185. data/spec/models/domain_owner_spec.rb +30 -0
  186. data/spec/models/domain_payload_spec.rb +42 -0
  187. data/spec/models/domain_update_payload_spec.rb +54 -0
  188. data/spec/models/email_content_spec.rb +22 -14
  189. data/spec/models/email_data_spec.rb +8 -6
  190. data/spec/models/email_job_failed_status_spec.rb +54 -0
  191. data/spec/models/email_job_status_spec.rb +150 -0
  192. data/spec/models/email_message_data_spec.rb +8 -6
  193. data/spec/models/email_predicted_validation_status_spec.rb +4 -2
  194. data/spec/models/email_recipient_spec.rb +7 -5
  195. data/spec/models/email_send_spec.rb +7 -5
  196. data/spec/models/email_status_spec.rb +23 -15
  197. data/spec/models/email_transactional_message_data_spec.rb +8 -6
  198. data/spec/models/email_validation_result_spec.rb +26 -12
  199. data/spec/models/email_validation_status_spec.rb +5 -3
  200. data/spec/models/email_view_spec.rb +8 -6
  201. data/spec/models/emails_payload_spec.rb +7 -5
  202. data/spec/models/encoding_type_spec.rb +5 -3
  203. data/spec/models/event_type_spec.rb +5 -3
  204. data/spec/models/events_order_by_spec.rb +5 -3
  205. data/spec/models/export_file_formats_spec.rb +5 -3
  206. data/spec/models/export_link_spec.rb +7 -5
  207. data/spec/models/export_status_spec.rb +5 -3
  208. data/spec/models/file_info_spec.rb +10 -8
  209. data/spec/models/file_payload_spec.rb +8 -6
  210. data/spec/models/file_upload_result_spec.rb +7 -5
  211. data/spec/models/inbound_payload_spec.rb +11 -9
  212. data/spec/models/inbound_route_action_type_spec.rb +5 -3
  213. data/spec/models/inbound_route_filter_type_spec.rb +5 -3
  214. data/spec/models/inbound_route_spec.rb +12 -10
  215. data/spec/models/list_payload_spec.rb +8 -6
  216. data/spec/models/list_update_payload_spec.rb +7 -5
  217. data/spec/models/log_job_status_spec.rb +5 -3
  218. data/spec/models/log_status_summary_spec.rb +18 -16
  219. data/spec/models/merge_email_payload_spec.rb +8 -6
  220. data/spec/models/message_attachment_spec.rb +14 -6
  221. data/spec/models/message_category_enum_spec.rb +30 -0
  222. data/spec/models/message_category_spec.rb +5 -3
  223. data/spec/models/new_api_key_spec.rb +12 -10
  224. data/spec/models/new_smtp_credentials_spec.rb +12 -10
  225. data/spec/models/options_spec.rb +11 -9
  226. data/spec/models/recipient_event_spec.rb +18 -16
  227. data/spec/models/segment_payload_spec.rb +7 -5
  228. data/spec/models/segment_spec.rb +7 -5
  229. data/spec/models/smtp_credentials_payload_spec.rb +9 -7
  230. data/spec/models/smtp_credentials_spec.rb +11 -9
  231. data/spec/models/sort_order_item_spec.rb +7 -5
  232. data/spec/models/split_optimization_type_spec.rb +5 -3
  233. data/spec/models/split_options_spec.rb +7 -5
  234. data/spec/models/sub_account_info_spec.rb +14 -12
  235. data/spec/models/subaccount_email_credits_payload_spec.rb +7 -5
  236. data/spec/models/subaccount_email_settings_payload_spec.rb +17 -9
  237. data/spec/models/subaccount_email_settings_spec.rb +18 -10
  238. data/spec/models/subaccount_payload_spec.rb +9 -7
  239. data/spec/models/subaccount_settings_info_payload_spec.rb +6 -4
  240. data/spec/models/subaccount_settings_info_spec.rb +6 -4
  241. data/spec/models/suppression_spec.rb +9 -7
  242. data/spec/models/template_payload_spec.rb +9 -7
  243. data/spec/models/template_scope_spec.rb +5 -3
  244. data/spec/models/template_spec.rb +11 -9
  245. data/spec/models/template_type_spec.rb +5 -3
  246. data/spec/models/tracking_type_spec.rb +30 -0
  247. data/spec/models/tracking_validation_status_spec.rb +30 -0
  248. data/spec/models/transactional_recipient_spec.rb +8 -6
  249. data/spec/models/utm_spec.rb +9 -7
  250. data/spec/models/verification_file_result_details_spec.rb +12 -10
  251. data/spec/models/verification_file_result_spec.rb +11 -9
  252. data/spec/models/verification_status_spec.rb +5 -3
  253. data/spec/spec_helper.rb +1 -1
  254. metadata +126 -94
  255. data/docs/ContactHistory.md +0 -30
  256. data/lib/ElasticEmail/models/contact_hist_event_type.rb +0 -49
  257. data/lib/ElasticEmail/models/template_scope_type.rb +0 -38
  258. data/spec/api_client_spec.rb +0 -226
  259. data/spec/models/contact_hist_event_type_spec.rb +0 -28
  260. data/spec/models/contact_history_spec.rb +0 -70
  261. 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
- OpenAPI Generator version: 6.3.0
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -134,6 +134,7 @@ module ElasticEmail
134
134
  # Show invalid properties with the reasons. Usually used together with valid?
135
135
  # @return Array for valid properties with the reasons
136
136
  def list_invalid_properties
137
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
137
138
  invalid_properties = Array.new
138
139
  invalid_properties
139
140
  end
@@ -141,6 +142,7 @@ module ElasticEmail
141
142
  # Check to see if the all the properties in the model are valid
142
143
  # @return true if the model is valid
143
144
  def valid?
145
+ warn '[DEPRECATED] the `valid?` method is obsolete'
144
146
  true
145
147
  end
146
148
 
@@ -173,37 +175,30 @@ module ElasticEmail
173
175
  # @param [Hash] attributes Model attributes in the form of hash
174
176
  # @return [Object] Returns the model itself
175
177
  def self.build_from_hash(attributes)
176
- new.build_from_hash(attributes)
177
- end
178
-
179
- # Builds the object from hash
180
- # @param [Hash] attributes Model attributes in the form of hash
181
- # @return [Object] Returns the model itself
182
- def build_from_hash(attributes)
183
178
  return nil unless attributes.is_a?(Hash)
184
179
  attributes = attributes.transform_keys(&:to_sym)
185
- self.class.openapi_types.each_pair do |key, type|
186
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
187
- self.send("#{key}=", nil)
180
+ transformed_hash = {}
181
+ openapi_types.each_pair do |key, type|
182
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
183
+ transformed_hash["#{key}"] = nil
188
184
  elsif type =~ /\AArray<(.*)>/i
189
185
  # check to ensure the input is an array given that the attribute
190
186
  # is documented as an array but the input is not
191
- if attributes[self.class.attribute_map[key]].is_a?(Array)
192
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
187
+ if attributes[attribute_map[key]].is_a?(Array)
188
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
193
189
  end
194
- elsif !attributes[self.class.attribute_map[key]].nil?
195
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
190
+ elsif !attributes[attribute_map[key]].nil?
191
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
196
192
  end
197
193
  end
198
-
199
- self
194
+ new(transformed_hash)
200
195
  end
201
196
 
202
197
  # Deserializes the data based on type
203
198
  # @param string type Data type
204
199
  # @param string value Value to be deserialized
205
200
  # @return [Object] Deserialized data
206
- def _deserialize(type, value)
201
+ def self._deserialize(type, value)
207
202
  case type.to_sym
208
203
  when :Time
209
204
  Time.parse(value)
@@ -238,7 +233,7 @@ module ElasticEmail
238
233
  else # model
239
234
  # models (e.g. Pet) or oneOf
240
235
  klass = ElasticEmail.const_get(type)
241
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
236
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
242
237
  end
243
238
  end
244
239
 
@@ -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
- OpenAPI Generator version: 6.3.0
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -145,6 +145,7 @@ module ElasticEmail
145
145
  # Show invalid properties with the reasons. Usually used together with valid?
146
146
  # @return Array for valid properties with the reasons
147
147
  def list_invalid_properties
148
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
148
149
  invalid_properties = Array.new
149
150
  invalid_properties
150
151
  end
@@ -152,6 +153,7 @@ module ElasticEmail
152
153
  # Check to see if the all the properties in the model are valid
153
154
  # @return true if the model is valid
154
155
  def valid?
156
+ warn '[DEPRECATED] the `valid?` method is obsolete'
155
157
  true
156
158
  end
157
159
 
@@ -185,37 +187,30 @@ module ElasticEmail
185
187
  # @param [Hash] attributes Model attributes in the form of hash
186
188
  # @return [Object] Returns the model itself
187
189
  def self.build_from_hash(attributes)
188
- new.build_from_hash(attributes)
189
- end
190
-
191
- # Builds the object from hash
192
- # @param [Hash] attributes Model attributes in the form of hash
193
- # @return [Object] Returns the model itself
194
- def build_from_hash(attributes)
195
190
  return nil unless attributes.is_a?(Hash)
196
191
  attributes = attributes.transform_keys(&:to_sym)
197
- self.class.openapi_types.each_pair do |key, type|
198
- if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
199
- self.send("#{key}=", nil)
192
+ transformed_hash = {}
193
+ openapi_types.each_pair do |key, type|
194
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
195
+ transformed_hash["#{key}"] = nil
200
196
  elsif type =~ /\AArray<(.*)>/i
201
197
  # check to ensure the input is an array given that the attribute
202
198
  # is documented as an array but the input is not
203
- if attributes[self.class.attribute_map[key]].is_a?(Array)
204
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
199
+ if attributes[attribute_map[key]].is_a?(Array)
200
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
205
201
  end
206
- elsif !attributes[self.class.attribute_map[key]].nil?
207
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
202
+ elsif !attributes[attribute_map[key]].nil?
203
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
208
204
  end
209
205
  end
210
-
211
- self
206
+ new(transformed_hash)
212
207
  end
213
208
 
214
209
  # Deserializes the data based on type
215
210
  # @param string type Data type
216
211
  # @param string value Value to be deserialized
217
212
  # @return [Object] Deserialized data
218
- def _deserialize(type, value)
213
+ def self._deserialize(type, value)
219
214
  case type.to_sym
220
215
  when :Time
221
216
  Time.parse(value)
@@ -250,7 +245,7 @@ module ElasticEmail
250
245
  else # model
251
246
  # models (e.g. Pet) or oneOf
252
247
  klass = ElasticEmail.const_get(type)
253
- klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
248
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
254
249
  end
255
250
  end
256
251
 
@@ -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
- OpenAPI Generator version: 6.3.0
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -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
- OpenAPI Generator version: 6.3.0
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
13
13
  module ElasticEmail
14
- VERSION = '4.0.23'
14
+ VERSION = '4.0.25'
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
- OpenAPI Generator version: 6.3.0
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -28,6 +28,7 @@ require 'ElasticEmail/models/campaign_options'
28
28
  require 'ElasticEmail/models/campaign_recipient'
29
29
  require 'ElasticEmail/models/campaign_status'
30
30
  require 'ElasticEmail/models/campaign_template'
31
+ require 'ElasticEmail/models/certificate_validation_status'
31
32
  require 'ElasticEmail/models/channel_log_status_summary'
32
33
  require 'ElasticEmail/models/compression_format'
33
34
  require 'ElasticEmail/models/consent_data'
@@ -40,8 +41,15 @@ require 'ElasticEmail/models/contact_status'
40
41
  require 'ElasticEmail/models/contact_update_payload'
41
42
  require 'ElasticEmail/models/contacts_list'
42
43
  require 'ElasticEmail/models/delivery_optimization_type'
44
+ require 'ElasticEmail/models/domain_data'
45
+ require 'ElasticEmail/models/domain_detail'
46
+ require 'ElasticEmail/models/domain_owner'
47
+ require 'ElasticEmail/models/domain_payload'
48
+ require 'ElasticEmail/models/domain_update_payload'
43
49
  require 'ElasticEmail/models/email_content'
44
50
  require 'ElasticEmail/models/email_data'
51
+ require 'ElasticEmail/models/email_job_failed_status'
52
+ require 'ElasticEmail/models/email_job_status'
45
53
  require 'ElasticEmail/models/email_message_data'
46
54
  require 'ElasticEmail/models/email_predicted_validation_status'
47
55
  require 'ElasticEmail/models/email_recipient'
@@ -72,6 +80,7 @@ require 'ElasticEmail/models/log_status_summary'
72
80
  require 'ElasticEmail/models/merge_email_payload'
73
81
  require 'ElasticEmail/models/message_attachment'
74
82
  require 'ElasticEmail/models/message_category'
83
+ require 'ElasticEmail/models/message_category_enum'
75
84
  require 'ElasticEmail/models/new_api_key'
76
85
  require 'ElasticEmail/models/new_smtp_credentials'
77
86
  require 'ElasticEmail/models/options'
@@ -95,6 +104,8 @@ require 'ElasticEmail/models/template'
95
104
  require 'ElasticEmail/models/template_payload'
96
105
  require 'ElasticEmail/models/template_scope'
97
106
  require 'ElasticEmail/models/template_type'
107
+ require 'ElasticEmail/models/tracking_type'
108
+ require 'ElasticEmail/models/tracking_validation_status'
98
109
  require 'ElasticEmail/models/transactional_recipient'
99
110
  require 'ElasticEmail/models/utm'
100
111
  require 'ElasticEmail/models/verification_file_result'
@@ -104,6 +115,7 @@ require 'ElasticEmail/models/verification_status'
104
115
  # APIs
105
116
  require 'ElasticEmail/api/campaigns_api'
106
117
  require 'ElasticEmail/api/contacts_api'
118
+ require 'ElasticEmail/api/domains_api'
107
119
  require 'ElasticEmail/api/emails_api'
108
120
  require 'ElasticEmail/api/events_api'
109
121
  require 'ElasticEmail/api/files_api'
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://app.elasticemail.com/marketing/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
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
- OpenAPI Generator version: 5.0.1
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -40,7 +40,7 @@ describe 'CampaignsApi' do
40
40
  # @return [nil]
41
41
  describe 'campaigns_by_name_delete test' do
42
42
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
44
  end
45
45
  end
46
46
 
@@ -52,7 +52,19 @@ describe 'CampaignsApi' do
52
52
  # @return [Campaign]
53
53
  describe 'campaigns_by_name_get test' do
54
54
  it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for campaigns_by_name_pause_put
60
+ # Pause Campaign
61
+ # Pauses the specific campaign, cancelling emails that are waiting to be sent. Required Access Level: ModifyCampaigns
62
+ # @param name Name of Campaign to pause
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [nil]
65
+ describe 'campaigns_by_name_pause_put test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
68
  end
57
69
  end
58
70
 
@@ -65,7 +77,7 @@ describe 'CampaignsApi' do
65
77
  # @return [Campaign]
66
78
  describe 'campaigns_by_name_put test' do
67
79
  it 'should work' do
68
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
81
  end
70
82
  end
71
83
 
@@ -79,7 +91,7 @@ describe 'CampaignsApi' do
79
91
  # @return [Array<Campaign>]
80
92
  describe 'campaigns_get test' do
81
93
  it 'should work' do
82
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
83
95
  end
84
96
  end
85
97
 
@@ -91,7 +103,7 @@ describe 'CampaignsApi' do
91
103
  # @return [Campaign]
92
104
  describe 'campaigns_post test' do
93
105
  it 'should work' do
94
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
106
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
95
107
  end
96
108
  end
97
109
 
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://app.elasticemail.com/marketing/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
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
- OpenAPI Generator version: 5.0.1
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -40,7 +40,7 @@ describe 'ContactsApi' do
40
40
  # @return [nil]
41
41
  describe 'contacts_by_email_delete test' do
42
42
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
44
  end
45
45
  end
46
46
 
@@ -52,21 +52,7 @@ describe 'ContactsApi' do
52
52
  # @return [Contact]
53
53
  describe 'contacts_by_email_get test' do
54
54
  it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
- end
57
- end
58
-
59
- # unit tests for contacts_by_email_history_get
60
- # Load History
61
- # Returns detailed history of specified Contact. Required Access Level: ViewContacts
62
- # @param email Proper email address.
63
- # @param [Hash] opts the optional parameters
64
- # @option opts [Integer] :limit Maximum number of returned items.
65
- # @option opts [Integer] :offset How many items should be returned ahead.
66
- # @return [Array<ContactHistory>]
67
- describe 'contacts_by_email_history_get test' do
68
- it 'should work' do
69
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
70
56
  end
71
57
  end
72
58
 
@@ -79,7 +65,7 @@ describe 'ContactsApi' do
79
65
  # @return [Contact]
80
66
  describe 'contacts_by_email_put test' do
81
67
  it 'should work' do
82
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
83
69
  end
84
70
  end
85
71
 
@@ -91,7 +77,7 @@ describe 'ContactsApi' do
91
77
  # @return [nil]
92
78
  describe 'contacts_delete_post test' do
93
79
  it 'should work' do
94
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
95
81
  end
96
82
  end
97
83
 
@@ -103,7 +89,7 @@ describe 'ContactsApi' do
103
89
  # @return [ExportStatus]
104
90
  describe 'contacts_export_by_id_status_get test' do
105
91
  it 'should work' do
106
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
107
93
  end
108
94
  end
109
95
 
@@ -119,7 +105,7 @@ describe 'ContactsApi' do
119
105
  # @return [ExportLink]
120
106
  describe 'contacts_export_post test' do
121
107
  it 'should work' do
122
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
108
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
123
109
  end
124
110
  end
125
111
 
@@ -132,7 +118,7 @@ describe 'ContactsApi' do
132
118
  # @return [Array<Contact>]
133
119
  describe 'contacts_get test' do
134
120
  it 'should work' do
135
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
121
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
136
122
  end
137
123
  end
138
124
 
@@ -142,11 +128,12 @@ describe 'ContactsApi' do
142
128
  # @param [Hash] opts the optional parameters
143
129
  # @option opts [String] :list_name Name of an existing list to add these contacts to
144
130
  # @option opts [String] :encoding_name In what encoding the file is uploaded
131
+ # @option opts [String] :file_url Optional url of csv to import
145
132
  # @option opts [File] :file
146
133
  # @return [nil]
147
134
  describe 'contacts_import_post test' do
148
135
  it 'should work' do
149
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
150
137
  end
151
138
  end
152
139
 
@@ -159,7 +146,7 @@ describe 'ContactsApi' do
159
146
  # @return [Array<Contact>]
160
147
  describe 'contacts_post test' do
161
148
  it 'should work' do
162
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
163
150
  end
164
151
  end
165
152
 
@@ -0,0 +1,132 @@
1
+ =begin
2
+ #Elastic Email REST API
3
+
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://app.elasticemail.com/marketing/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
+
6
+ The version of the OpenAPI document: 4.0.0
7
+ Contact: support@elasticemail.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.5.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for ElasticEmail::DomainsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DomainsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = ElasticEmail::DomainsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DomainsApi' do
30
+ it 'should create an instance of DomainsApi' do
31
+ expect(@api_instance).to be_instance_of(ElasticEmail::DomainsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for domains_by_domain_delete
36
+ # Delete Domain
37
+ # Deletes configured domain from Account. Required Access Level: ModifySettings
38
+ # @param domain Name of the given domain
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [nil]
41
+ describe 'domains_by_domain_delete 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
+
47
+ # unit tests for domains_by_domain_get
48
+ # Load Domain
49
+ # Retrieve a domain configured for this Account. Required Access Level: ViewSettings
50
+ # @param domain Name of the given domain
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [DomainData]
53
+ describe 'domains_by_domain_get test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for domains_by_domain_put
60
+ # Update Domain
61
+ # Updates the specified domain. Required Access Level: ModifySettings
62
+ # @param domain Name of the given domain
63
+ # @param domain_update_payload Updated Domain resource
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [DomainDetail]
66
+ describe 'domains_by_domain_put test' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
72
+ # unit tests for domains_by_domain_restricted_get
73
+ # Check for domain restriction
74
+ # Checking if domain is from free provider, or restricted. Required Access Level: ViewSettings
75
+ # @param domain Name of the given domain
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [Boolean]
78
+ describe 'domains_by_domain_restricted_get test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
81
+ end
82
+ end
83
+
84
+ # unit tests for domains_by_domain_verification_put
85
+ # Verify Domain
86
+ # Verifies that required DNS records exist for specified domain. Required Access Level: ModifySettings
87
+ # @param domain Name of the given domain
88
+ # @param body Tracking type used in the Tracking verification
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [DomainData]
91
+ describe 'domains_by_domain_verification_put test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
94
+ end
95
+ end
96
+
97
+ # unit tests for domains_by_email_default_patch
98
+ # Set Default
99
+ # Sets a verified email address as default sender. Required Access Level: ModifySettings
100
+ # @param email Default email sender, example: mail@yourdomain.com
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [DomainDetail]
103
+ describe 'domains_by_email_default_patch test' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
106
+ end
107
+ end
108
+
109
+ # unit tests for domains_get
110
+ # Load Domains
111
+ # Returns a list of all domains configured for this Account. Required Access Level: ViewSettings
112
+ # @param [Hash] opts the optional parameters
113
+ # @return [Array<DomainDetail>]
114
+ describe 'domains_get test' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
117
+ end
118
+ end
119
+
120
+ # unit tests for domains_post
121
+ # Add Domain
122
+ # Add new domain to Account. Required Access Level: ModifySettings
123
+ # @param domain_payload Domain to add
124
+ # @param [Hash] opts the optional parameters
125
+ # @return [DomainDetail]
126
+ describe 'domains_post test' do
127
+ it 'should work' do
128
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
129
+ end
130
+ end
131
+
132
+ end
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://app.elasticemail.com/marketing/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. Downloadable library clients can be found in our Github repository <a target=\"_blank\" href=\"https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme\">here</a>
5
5
 
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
- OpenAPI Generator version: 5.0.1
9
+ Generator version: 7.5.0
10
10
 
11
11
  =end
12
12
 
@@ -40,19 +40,41 @@ describe 'EmailsApi' do
40
40
  # @return [EmailData]
41
41
  describe 'emails_by_msgid_view_get test' do
42
42
  it 'should work' do
43
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for emails_by_transactionid_status_get
48
+ # Get Status
49
+ # Get status details of an email transaction. Required Access Level: ViewReports
50
+ # @param transactionid Transaction identifier
51
+ # @param [Hash] opts the optional parameters
52
+ # @option opts [Boolean] :show_failed Include Bounced email addresses.
53
+ # @option opts [Boolean] :show_sent Include Sent email addresses.
54
+ # @option opts [Boolean] :show_delivered Include all delivered email addresses.
55
+ # @option opts [Boolean] :show_pending Include Ready to send email addresses.
56
+ # @option opts [Boolean] :show_opened Include Opened email addresses.
57
+ # @option opts [Boolean] :show_clicked Include Clicked email addresses.
58
+ # @option opts [Boolean] :show_abuse Include Reported as abuse email addresses.
59
+ # @option opts [Boolean] :show_unsubscribed Include Unsubscribed email addresses.
60
+ # @option opts [Boolean] :show_errors Include error messages for bounced emails.
61
+ # @option opts [Boolean] :show_message_ids Include all MessageIDs for this transaction
62
+ # @return [EmailJobStatus]
63
+ describe 'emails_by_transactionid_status_get test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
66
  end
45
67
  end
46
68
 
47
69
  # unit tests for emails_mergefile_post
48
70
  # Send Bulk Emails CSV
49
- # Send bulk merge email. Required Access Level: SendHttp
71
+ # Send to a list of contacts submitted in a CSV data file. The first column in the CSV must be the email address and the CSV must contain a header row. Additional fields can be included with a named header row and can be merged with the template using {merge} tags in the content. Example CSV: email, firstname, lastname test1@gmail.com, michael, smith test2@gmail.com, janet, smith Merge file must not be empty. Required Access Level: SendHttp
50
72
  # @param merge_email_payload Email data
51
73
  # @param [Hash] opts the optional parameters
52
74
  # @return [EmailSend]
53
75
  describe 'emails_mergefile_post test' do
54
76
  it 'should work' do
55
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
78
  end
57
79
  end
58
80
 
@@ -64,7 +86,7 @@ describe 'EmailsApi' do
64
86
  # @return [EmailSend]
65
87
  describe 'emails_post test' do
66
88
  it 'should work' do
67
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
89
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
90
  end
69
91
  end
70
92
 
@@ -76,7 +98,7 @@ describe 'EmailsApi' do
76
98
  # @return [EmailSend]
77
99
  describe 'emails_transactional_post test' do
78
100
  it 'should work' do
79
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
101
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
102
  end
81
103
  end
82
104