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
@@ -0,0 +1,583 @@
1
+ # ElasticEmail::DomainsApi
2
+
3
+ All URIs are relative to *https://api.elasticemail.com/v4*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**domains_by_domain_delete**](DomainsApi.md#domains_by_domain_delete) | **DELETE** /domains/{domain} | Delete Domain |
8
+ | [**domains_by_domain_get**](DomainsApi.md#domains_by_domain_get) | **GET** /domains/{domain} | Load Domain |
9
+ | [**domains_by_domain_put**](DomainsApi.md#domains_by_domain_put) | **PUT** /domains/{domain} | Update Domain |
10
+ | [**domains_by_domain_restricted_get**](DomainsApi.md#domains_by_domain_restricted_get) | **GET** /domains/{domain}/restricted | Check for domain restriction |
11
+ | [**domains_by_domain_verification_put**](DomainsApi.md#domains_by_domain_verification_put) | **PUT** /domains/{domain}/verification | Verify Domain |
12
+ | [**domains_by_email_default_patch**](DomainsApi.md#domains_by_email_default_patch) | **PATCH** /domains/{email}/default | Set Default |
13
+ | [**domains_get**](DomainsApi.md#domains_get) | **GET** /domains | Load Domains |
14
+ | [**domains_post**](DomainsApi.md#domains_post) | **POST** /domains | Add Domain |
15
+
16
+
17
+ ## domains_by_domain_delete
18
+
19
+ > domains_by_domain_delete(domain)
20
+
21
+ Delete Domain
22
+
23
+ Deletes configured domain from Account. Required Access Level: ModifySettings
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'ElasticEmail'
30
+ # setup authorization
31
+ ElasticEmail.configure do |config|
32
+ # Configure API key authorization: apikey
33
+ config.api_key['apikey'] = 'YOUR API KEY'
34
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
35
+ # config.api_key_prefix['apikey'] = 'Bearer'
36
+ end
37
+
38
+ api_instance = ElasticEmail::DomainsApi.new
39
+ domain = 'domain_example' # String | Name of the given domain
40
+
41
+ begin
42
+ # Delete Domain
43
+ api_instance.domains_by_domain_delete(domain)
44
+ rescue ElasticEmail::ApiError => e
45
+ puts "Error when calling DomainsApi->domains_by_domain_delete: #{e}"
46
+ end
47
+ ```
48
+
49
+ #### Using the domains_by_domain_delete_with_http_info variant
50
+
51
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
52
+
53
+ > <Array(nil, Integer, Hash)> domains_by_domain_delete_with_http_info(domain)
54
+
55
+ ```ruby
56
+ begin
57
+ # Delete Domain
58
+ data, status_code, headers = api_instance.domains_by_domain_delete_with_http_info(domain)
59
+ p status_code # => 2xx
60
+ p headers # => { ... }
61
+ p data # => nil
62
+ rescue ElasticEmail::ApiError => e
63
+ puts "Error when calling DomainsApi->domains_by_domain_delete_with_http_info: #{e}"
64
+ end
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Name | Type | Description | Notes |
70
+ | ---- | ---- | ----------- | ----- |
71
+ | **domain** | **String** | Name of the given domain | |
72
+
73
+ ### Return type
74
+
75
+ nil (empty response body)
76
+
77
+ ### Authorization
78
+
79
+ [apikey](../README.md#apikey)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: Not defined
85
+
86
+
87
+ ## domains_by_domain_get
88
+
89
+ > <DomainData> domains_by_domain_get(domain)
90
+
91
+ Load Domain
92
+
93
+ Retrieve a domain configured for this Account. Required Access Level: ViewSettings
94
+
95
+ ### Examples
96
+
97
+ ```ruby
98
+ require 'time'
99
+ require 'ElasticEmail'
100
+ # setup authorization
101
+ ElasticEmail.configure do |config|
102
+ # Configure API key authorization: apikey
103
+ config.api_key['apikey'] = 'YOUR API KEY'
104
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
105
+ # config.api_key_prefix['apikey'] = 'Bearer'
106
+ end
107
+
108
+ api_instance = ElasticEmail::DomainsApi.new
109
+ domain = 'domain_example' # String | Name of the given domain
110
+
111
+ begin
112
+ # Load Domain
113
+ result = api_instance.domains_by_domain_get(domain)
114
+ p result
115
+ rescue ElasticEmail::ApiError => e
116
+ puts "Error when calling DomainsApi->domains_by_domain_get: #{e}"
117
+ end
118
+ ```
119
+
120
+ #### Using the domains_by_domain_get_with_http_info variant
121
+
122
+ This returns an Array which contains the response data, status code and headers.
123
+
124
+ > <Array(<DomainData>, Integer, Hash)> domains_by_domain_get_with_http_info(domain)
125
+
126
+ ```ruby
127
+ begin
128
+ # Load Domain
129
+ data, status_code, headers = api_instance.domains_by_domain_get_with_http_info(domain)
130
+ p status_code # => 2xx
131
+ p headers # => { ... }
132
+ p data # => <DomainData>
133
+ rescue ElasticEmail::ApiError => e
134
+ puts "Error when calling DomainsApi->domains_by_domain_get_with_http_info: #{e}"
135
+ end
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ | Name | Type | Description | Notes |
141
+ | ---- | ---- | ----------- | ----- |
142
+ | **domain** | **String** | Name of the given domain | |
143
+
144
+ ### Return type
145
+
146
+ [**DomainData**](DomainData.md)
147
+
148
+ ### Authorization
149
+
150
+ [apikey](../README.md#apikey)
151
+
152
+ ### HTTP request headers
153
+
154
+ - **Content-Type**: Not defined
155
+ - **Accept**: application/json
156
+
157
+
158
+ ## domains_by_domain_put
159
+
160
+ > <DomainDetail> domains_by_domain_put(domain, domain_update_payload)
161
+
162
+ Update Domain
163
+
164
+ Updates the specified domain. Required Access Level: ModifySettings
165
+
166
+ ### Examples
167
+
168
+ ```ruby
169
+ require 'time'
170
+ require 'ElasticEmail'
171
+ # setup authorization
172
+ ElasticEmail.configure do |config|
173
+ # Configure API key authorization: apikey
174
+ config.api_key['apikey'] = 'YOUR API KEY'
175
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
176
+ # config.api_key_prefix['apikey'] = 'Bearer'
177
+ end
178
+
179
+ api_instance = ElasticEmail::DomainsApi.new
180
+ domain = 'domain_example' # String | Name of the given domain
181
+ domain_update_payload = ElasticEmail::DomainUpdatePayload.new # DomainUpdatePayload | Updated Domain resource
182
+
183
+ begin
184
+ # Update Domain
185
+ result = api_instance.domains_by_domain_put(domain, domain_update_payload)
186
+ p result
187
+ rescue ElasticEmail::ApiError => e
188
+ puts "Error when calling DomainsApi->domains_by_domain_put: #{e}"
189
+ end
190
+ ```
191
+
192
+ #### Using the domains_by_domain_put_with_http_info variant
193
+
194
+ This returns an Array which contains the response data, status code and headers.
195
+
196
+ > <Array(<DomainDetail>, Integer, Hash)> domains_by_domain_put_with_http_info(domain, domain_update_payload)
197
+
198
+ ```ruby
199
+ begin
200
+ # Update Domain
201
+ data, status_code, headers = api_instance.domains_by_domain_put_with_http_info(domain, domain_update_payload)
202
+ p status_code # => 2xx
203
+ p headers # => { ... }
204
+ p data # => <DomainDetail>
205
+ rescue ElasticEmail::ApiError => e
206
+ puts "Error when calling DomainsApi->domains_by_domain_put_with_http_info: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ | Name | Type | Description | Notes |
213
+ | ---- | ---- | ----------- | ----- |
214
+ | **domain** | **String** | Name of the given domain | |
215
+ | **domain_update_payload** | [**DomainUpdatePayload**](DomainUpdatePayload.md) | Updated Domain resource | |
216
+
217
+ ### Return type
218
+
219
+ [**DomainDetail**](DomainDetail.md)
220
+
221
+ ### Authorization
222
+
223
+ [apikey](../README.md#apikey)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json
229
+
230
+
231
+ ## domains_by_domain_restricted_get
232
+
233
+ > Boolean domains_by_domain_restricted_get(domain)
234
+
235
+ Check for domain restriction
236
+
237
+ Checking if domain is from free provider, or restricted. Required Access Level: ViewSettings
238
+
239
+ ### Examples
240
+
241
+ ```ruby
242
+ require 'time'
243
+ require 'ElasticEmail'
244
+ # setup authorization
245
+ ElasticEmail.configure do |config|
246
+ # Configure API key authorization: apikey
247
+ config.api_key['apikey'] = 'YOUR API KEY'
248
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
249
+ # config.api_key_prefix['apikey'] = 'Bearer'
250
+ end
251
+
252
+ api_instance = ElasticEmail::DomainsApi.new
253
+ domain = 'domain_example' # String | Name of the given domain
254
+
255
+ begin
256
+ # Check for domain restriction
257
+ result = api_instance.domains_by_domain_restricted_get(domain)
258
+ p result
259
+ rescue ElasticEmail::ApiError => e
260
+ puts "Error when calling DomainsApi->domains_by_domain_restricted_get: #{e}"
261
+ end
262
+ ```
263
+
264
+ #### Using the domains_by_domain_restricted_get_with_http_info variant
265
+
266
+ This returns an Array which contains the response data, status code and headers.
267
+
268
+ > <Array(Boolean, Integer, Hash)> domains_by_domain_restricted_get_with_http_info(domain)
269
+
270
+ ```ruby
271
+ begin
272
+ # Check for domain restriction
273
+ data, status_code, headers = api_instance.domains_by_domain_restricted_get_with_http_info(domain)
274
+ p status_code # => 2xx
275
+ p headers # => { ... }
276
+ p data # => Boolean
277
+ rescue ElasticEmail::ApiError => e
278
+ puts "Error when calling DomainsApi->domains_by_domain_restricted_get_with_http_info: #{e}"
279
+ end
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ | Name | Type | Description | Notes |
285
+ | ---- | ---- | ----------- | ----- |
286
+ | **domain** | **String** | Name of the given domain | |
287
+
288
+ ### Return type
289
+
290
+ **Boolean**
291
+
292
+ ### Authorization
293
+
294
+ [apikey](../README.md#apikey)
295
+
296
+ ### HTTP request headers
297
+
298
+ - **Content-Type**: Not defined
299
+ - **Accept**: application/json
300
+
301
+
302
+ ## domains_by_domain_verification_put
303
+
304
+ > <DomainData> domains_by_domain_verification_put(domain, body)
305
+
306
+ Verify Domain
307
+
308
+ Verifies that required DNS records exist for specified domain. Required Access Level: ModifySettings
309
+
310
+ ### Examples
311
+
312
+ ```ruby
313
+ require 'time'
314
+ require 'ElasticEmail'
315
+ # setup authorization
316
+ ElasticEmail.configure do |config|
317
+ # Configure API key authorization: apikey
318
+ config.api_key['apikey'] = 'YOUR API KEY'
319
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
320
+ # config.api_key_prefix['apikey'] = 'Bearer'
321
+ end
322
+
323
+ api_instance = ElasticEmail::DomainsApi.new
324
+ domain = 'domain_example' # String | Name of the given domain
325
+ body = 'body_example' # String | Tracking type used in the Tracking verification
326
+
327
+ begin
328
+ # Verify Domain
329
+ result = api_instance.domains_by_domain_verification_put(domain, body)
330
+ p result
331
+ rescue ElasticEmail::ApiError => e
332
+ puts "Error when calling DomainsApi->domains_by_domain_verification_put: #{e}"
333
+ end
334
+ ```
335
+
336
+ #### Using the domains_by_domain_verification_put_with_http_info variant
337
+
338
+ This returns an Array which contains the response data, status code and headers.
339
+
340
+ > <Array(<DomainData>, Integer, Hash)> domains_by_domain_verification_put_with_http_info(domain, body)
341
+
342
+ ```ruby
343
+ begin
344
+ # Verify Domain
345
+ data, status_code, headers = api_instance.domains_by_domain_verification_put_with_http_info(domain, body)
346
+ p status_code # => 2xx
347
+ p headers # => { ... }
348
+ p data # => <DomainData>
349
+ rescue ElasticEmail::ApiError => e
350
+ puts "Error when calling DomainsApi->domains_by_domain_verification_put_with_http_info: #{e}"
351
+ end
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ | Name | Type | Description | Notes |
357
+ | ---- | ---- | ----------- | ----- |
358
+ | **domain** | **String** | Name of the given domain | |
359
+ | **body** | **String** | Tracking type used in the Tracking verification | |
360
+
361
+ ### Return type
362
+
363
+ [**DomainData**](DomainData.md)
364
+
365
+ ### Authorization
366
+
367
+ [apikey](../README.md#apikey)
368
+
369
+ ### HTTP request headers
370
+
371
+ - **Content-Type**: application/json
372
+ - **Accept**: application/json
373
+
374
+
375
+ ## domains_by_email_default_patch
376
+
377
+ > <DomainDetail> domains_by_email_default_patch(email)
378
+
379
+ Set Default
380
+
381
+ Sets a verified email address as default sender. Required Access Level: ModifySettings
382
+
383
+ ### Examples
384
+
385
+ ```ruby
386
+ require 'time'
387
+ require 'ElasticEmail'
388
+ # setup authorization
389
+ ElasticEmail.configure do |config|
390
+ # Configure API key authorization: apikey
391
+ config.api_key['apikey'] = 'YOUR API KEY'
392
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
393
+ # config.api_key_prefix['apikey'] = 'Bearer'
394
+ end
395
+
396
+ api_instance = ElasticEmail::DomainsApi.new
397
+ email = 'email_example' # String | Default email sender, example: mail@yourdomain.com
398
+
399
+ begin
400
+ # Set Default
401
+ result = api_instance.domains_by_email_default_patch(email)
402
+ p result
403
+ rescue ElasticEmail::ApiError => e
404
+ puts "Error when calling DomainsApi->domains_by_email_default_patch: #{e}"
405
+ end
406
+ ```
407
+
408
+ #### Using the domains_by_email_default_patch_with_http_info variant
409
+
410
+ This returns an Array which contains the response data, status code and headers.
411
+
412
+ > <Array(<DomainDetail>, Integer, Hash)> domains_by_email_default_patch_with_http_info(email)
413
+
414
+ ```ruby
415
+ begin
416
+ # Set Default
417
+ data, status_code, headers = api_instance.domains_by_email_default_patch_with_http_info(email)
418
+ p status_code # => 2xx
419
+ p headers # => { ... }
420
+ p data # => <DomainDetail>
421
+ rescue ElasticEmail::ApiError => e
422
+ puts "Error when calling DomainsApi->domains_by_email_default_patch_with_http_info: #{e}"
423
+ end
424
+ ```
425
+
426
+ ### Parameters
427
+
428
+ | Name | Type | Description | Notes |
429
+ | ---- | ---- | ----------- | ----- |
430
+ | **email** | **String** | Default email sender, example: mail@yourdomain.com | |
431
+
432
+ ### Return type
433
+
434
+ [**DomainDetail**](DomainDetail.md)
435
+
436
+ ### Authorization
437
+
438
+ [apikey](../README.md#apikey)
439
+
440
+ ### HTTP request headers
441
+
442
+ - **Content-Type**: Not defined
443
+ - **Accept**: application/json
444
+
445
+
446
+ ## domains_get
447
+
448
+ > <Array<DomainDetail>> domains_get
449
+
450
+ Load Domains
451
+
452
+ Returns a list of all domains configured for this Account. Required Access Level: ViewSettings
453
+
454
+ ### Examples
455
+
456
+ ```ruby
457
+ require 'time'
458
+ require 'ElasticEmail'
459
+ # setup authorization
460
+ ElasticEmail.configure do |config|
461
+ # Configure API key authorization: apikey
462
+ config.api_key['apikey'] = 'YOUR API KEY'
463
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
464
+ # config.api_key_prefix['apikey'] = 'Bearer'
465
+ end
466
+
467
+ api_instance = ElasticEmail::DomainsApi.new
468
+
469
+ begin
470
+ # Load Domains
471
+ result = api_instance.domains_get
472
+ p result
473
+ rescue ElasticEmail::ApiError => e
474
+ puts "Error when calling DomainsApi->domains_get: #{e}"
475
+ end
476
+ ```
477
+
478
+ #### Using the domains_get_with_http_info variant
479
+
480
+ This returns an Array which contains the response data, status code and headers.
481
+
482
+ > <Array(<Array<DomainDetail>>, Integer, Hash)> domains_get_with_http_info
483
+
484
+ ```ruby
485
+ begin
486
+ # Load Domains
487
+ data, status_code, headers = api_instance.domains_get_with_http_info
488
+ p status_code # => 2xx
489
+ p headers # => { ... }
490
+ p data # => <Array<DomainDetail>>
491
+ rescue ElasticEmail::ApiError => e
492
+ puts "Error when calling DomainsApi->domains_get_with_http_info: #{e}"
493
+ end
494
+ ```
495
+
496
+ ### Parameters
497
+
498
+ This endpoint does not need any parameter.
499
+
500
+ ### Return type
501
+
502
+ [**Array&lt;DomainDetail&gt;**](DomainDetail.md)
503
+
504
+ ### Authorization
505
+
506
+ [apikey](../README.md#apikey)
507
+
508
+ ### HTTP request headers
509
+
510
+ - **Content-Type**: Not defined
511
+ - **Accept**: application/json
512
+
513
+
514
+ ## domains_post
515
+
516
+ > <DomainDetail> domains_post(domain_payload)
517
+
518
+ Add Domain
519
+
520
+ Add new domain to Account. Required Access Level: ModifySettings
521
+
522
+ ### Examples
523
+
524
+ ```ruby
525
+ require 'time'
526
+ require 'ElasticEmail'
527
+ # setup authorization
528
+ ElasticEmail.configure do |config|
529
+ # Configure API key authorization: apikey
530
+ config.api_key['apikey'] = 'YOUR API KEY'
531
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
532
+ # config.api_key_prefix['apikey'] = 'Bearer'
533
+ end
534
+
535
+ api_instance = ElasticEmail::DomainsApi.new
536
+ domain_payload = ElasticEmail::DomainPayload.new # DomainPayload | Domain to add
537
+
538
+ begin
539
+ # Add Domain
540
+ result = api_instance.domains_post(domain_payload)
541
+ p result
542
+ rescue ElasticEmail::ApiError => e
543
+ puts "Error when calling DomainsApi->domains_post: #{e}"
544
+ end
545
+ ```
546
+
547
+ #### Using the domains_post_with_http_info variant
548
+
549
+ This returns an Array which contains the response data, status code and headers.
550
+
551
+ > <Array(<DomainDetail>, Integer, Hash)> domains_post_with_http_info(domain_payload)
552
+
553
+ ```ruby
554
+ begin
555
+ # Add Domain
556
+ data, status_code, headers = api_instance.domains_post_with_http_info(domain_payload)
557
+ p status_code # => 2xx
558
+ p headers # => { ... }
559
+ p data # => <DomainDetail>
560
+ rescue ElasticEmail::ApiError => e
561
+ puts "Error when calling DomainsApi->domains_post_with_http_info: #{e}"
562
+ end
563
+ ```
564
+
565
+ ### Parameters
566
+
567
+ | Name | Type | Description | Notes |
568
+ | ---- | ---- | ----------- | ----- |
569
+ | **domain_payload** | [**DomainPayload**](DomainPayload.md) | Domain to add | |
570
+
571
+ ### Return type
572
+
573
+ [**DomainDetail**](DomainDetail.md)
574
+
575
+ ### Authorization
576
+
577
+ [apikey](../README.md#apikey)
578
+
579
+ ### HTTP request headers
580
+
581
+ - **Content-Type**: application/json
582
+ - **Accept**: application/json
583
+
data/docs/EmailContent.md CHANGED
@@ -10,7 +10,7 @@
10
10
  | **headers** | **Hash&lt;String, String&gt;** | A key-value collection of custom e-mail headers. | [optional] |
11
11
  | **postback** | **String** | Postback header. | [optional] |
12
12
  | **envelope_from** | **String** | E-mail with an optional name to be used as the envelope from address (e.g.: John Doe &lt;email@domain.com&gt;) | [optional] |
13
- | **from** | **String** | Your e-mail with an optional name (e.g.: John Doe &lt;email@domain.com&gt;) | [optional] |
13
+ | **from** | **String** | Your e-mail with an optional name (e.g.: John Doe &lt;email@domain.com&gt;) | |
14
14
  | **reply_to** | **String** | To what address should the recipients reply to (e.g. John Doe &lt;email@domain.com&gt;) | [optional] |
15
15
  | **subject** | **String** | Default subject of email. | [optional] |
16
16
  | **template_name** | **String** | Name of template. | [optional] |
@@ -33,7 +33,7 @@ instance = ElasticEmail::EmailContent.new(
33
33
  reply_to: John Doe &lt;email@domain.com&gt;,
34
34
  subject: Hello!,
35
35
  template_name: Template01,
36
- attach_files: [ &quot;preuploaded.jpg&quot; ],
36
+ attach_files: [&quot;preuploaded.jpg&quot;],
37
37
  utm: null
38
38
  )
39
39
  ```
@@ -0,0 +1,24 @@
1
+ # ElasticEmail::EmailJobFailedStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address** | **String** | | [optional] |
8
+ | **error** | **String** | | [optional] |
9
+ | **error_code** | **Integer** | RFC Error code | [optional] |
10
+ | **category** | **String** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ElasticEmail'
16
+
17
+ instance = ElasticEmail::EmailJobFailedStatus.new(
18
+ address: null,
19
+ error: null,
20
+ error_code: 550,
21
+ category: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,56 @@
1
+ # ElasticEmail::EmailJobStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | ID number of your attachment | [optional] |
8
+ | **status** | **String** | Name of status: submitted, complete, in_progress | [optional] |
9
+ | **recipients_count** | **Integer** | | [optional] |
10
+ | **failed** | [**Array&lt;EmailJobFailedStatus&gt;**](EmailJobFailedStatus.md) | | [optional] |
11
+ | **failed_count** | **Integer** | Total emails failed. | [optional] |
12
+ | **sent** | **Array&lt;String&gt;** | | [optional] |
13
+ | **sent_count** | **Integer** | Total emails sent. | [optional] |
14
+ | **delivered** | **Array&lt;String&gt;** | Number of delivered messages | [optional] |
15
+ | **delivered_count** | **Integer** | | [optional] |
16
+ | **pending** | **Array&lt;String&gt;** | | [optional] |
17
+ | **pending_count** | **Integer** | | [optional] |
18
+ | **opened** | **Array&lt;String&gt;** | Number of opened messages | [optional] |
19
+ | **opened_count** | **Integer** | Total emails opened. | [optional] |
20
+ | **clicked** | **Array&lt;String&gt;** | Number of clicked messages | [optional] |
21
+ | **clicked_count** | **Integer** | Total emails clicked | [optional] |
22
+ | **unsubscribed** | **Array&lt;String&gt;** | Number of unsubscribed messages | [optional] |
23
+ | **unsubscribed_count** | **Integer** | Total emails unsubscribed | [optional] |
24
+ | **abuse_reports** | **Array&lt;String&gt;** | | [optional] |
25
+ | **abuse_reports_count** | **Integer** | | [optional] |
26
+ | **message_ids** | **Array&lt;String&gt;** | List of all MessageIDs for this job. | [optional] |
27
+
28
+ ## Example
29
+
30
+ ```ruby
31
+ require 'ElasticEmail'
32
+
33
+ instance = ElasticEmail::EmailJobStatus.new(
34
+ id: 123456,
35
+ status: null,
36
+ recipients_count: null,
37
+ failed: null,
38
+ failed_count: 1000,
39
+ sent: null,
40
+ sent_count: 1000,
41
+ delivered: [&quot;1000&quot;],
42
+ delivered_count: null,
43
+ pending: null,
44
+ pending_count: null,
45
+ opened: [&quot;1000&quot;],
46
+ opened_count: 1000,
47
+ clicked: [&quot;1000&quot;],
48
+ clicked_count: 1000,
49
+ unsubscribed: [&quot;1000&quot;],
50
+ unsubscribed_count: 1000,
51
+ abuse_reports: null,
52
+ abuse_reports_count: null,
53
+ message_ids: null
54
+ )
55
+ ```
56
+
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **recipients** | [**Array&lt;EmailRecipient&gt;**](EmailRecipient.md) | List of recipients | |
8
- | **content** | [**EmailContent**](EmailContent.md) | | [optional] |
8
+ | **content** | [**EmailContent**](EmailContent.md) | | |
9
9
  | **options** | [**Options**](Options.md) | | [optional] |
10
10
 
11
11
  ## Example
data/docs/EmailStatus.md CHANGED
@@ -16,6 +16,7 @@
16
16
  | **error_message** | **String** | Detailed error or bounced message. | [optional] |
17
17
  | **transaction_id** | **String** | ID number of transaction | [optional] |
18
18
  | **envelope_from** | **String** | Envelope from address | [optional] |
19
+ | **error_category** | [**MessageCategoryEnum**](MessageCategoryEnum.md) | | [optional][default to &#39;Unknown&#39;] |
19
20
 
20
21
  ## Example
21
22
 
@@ -34,7 +35,8 @@ instance = ElasticEmail::EmailStatus.new(
34
35
  date_clicked: null,
35
36
  error_message: null,
36
37
  transaction_id: TransactionID,
37
- envelope_from: null
38
+ envelope_from: null,
39
+ error_category: null
38
40
  )
39
41
  ```
40
42