ElasticEmail 4.0.12 → 4.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +3 -3
  3. data/README.md +9 -7
  4. data/VERSION +1 -1
  5. data/docs/ApiKeyPayload.md +2 -2
  6. data/docs/BodyPart.md +1 -1
  7. data/docs/Campaign.md +2 -2
  8. data/docs/CampaignTemplate.md +1 -1
  9. data/docs/CampaignsApi.md +2 -2
  10. data/docs/ContactPayload.md +1 -1
  11. data/docs/ContactsApi.md +1 -1
  12. data/docs/EmailContent.md +1 -1
  13. data/docs/EmailMessageData.md +1 -1
  14. data/docs/EmailRecipient.md +1 -1
  15. data/docs/EmailTransactionalMessageData.md +1 -1
  16. data/docs/EmailsApi.md +3 -3
  17. data/docs/EmailsPayload.md +2 -2
  18. data/docs/FilePayload.md +1 -1
  19. data/docs/FilesApi.md +1 -1
  20. data/docs/InboundPayload.md +4 -4
  21. data/docs/InboundRouteApi.md +3 -3
  22. data/docs/ListPayload.md +2 -2
  23. data/docs/ListsApi.md +1 -1
  24. data/docs/MergeEmailPayload.md +1 -1
  25. data/docs/MessageAttachment.md +1 -1
  26. data/docs/SecurityApi.md +4 -4
  27. data/docs/SegmentPayload.md +2 -2
  28. data/docs/SegmentsApi.md +2 -2
  29. data/docs/SmtpCredentialsPayload.md +1 -1
  30. data/docs/SortOrderItem.md +2 -2
  31. data/docs/SubAccountsApi.md +2 -2
  32. data/docs/SubaccountEmailCreditsPayload.md +1 -1
  33. data/docs/SubaccountPayload.md +2 -2
  34. data/docs/TemplatePayload.md +1 -1
  35. data/docs/TemplatesApi.md +2 -2
  36. data/docs/TransactionalRecipient.md +1 -1
  37. data/lib/ElasticEmail/api/campaigns_api.rb +2 -2
  38. data/lib/ElasticEmail/api/contacts_api.rb +2 -2
  39. data/lib/ElasticEmail/api/emails_api.rb +2 -2
  40. data/lib/ElasticEmail/api/events_api.rb +2 -2
  41. data/lib/ElasticEmail/api/files_api.rb +2 -2
  42. data/lib/ElasticEmail/api/inbound_route_api.rb +2 -2
  43. data/lib/ElasticEmail/api/lists_api.rb +2 -2
  44. data/lib/ElasticEmail/api/security_api.rb +2 -2
  45. data/lib/ElasticEmail/api/segments_api.rb +2 -2
  46. data/lib/ElasticEmail/api/statistics_api.rb +2 -2
  47. data/lib/ElasticEmail/api/sub_accounts_api.rb +2 -2
  48. data/lib/ElasticEmail/api/suppressions_api.rb +2 -2
  49. data/lib/ElasticEmail/api/templates_api.rb +2 -2
  50. data/lib/ElasticEmail/api/verifications_api.rb +2 -2
  51. data/lib/ElasticEmail/api_client.rb +2 -2
  52. data/lib/ElasticEmail/api_error.rb +2 -2
  53. data/lib/ElasticEmail/configuration.rb +2 -2
  54. data/lib/ElasticEmail/models/access_level.rb +3 -2
  55. data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
  56. data/lib/ElasticEmail/models/api_key.rb +2 -2
  57. data/lib/ElasticEmail/models/api_key_payload.rb +12 -2
  58. data/lib/ElasticEmail/models/body_content_type.rb +2 -2
  59. data/lib/ElasticEmail/models/body_part.rb +7 -2
  60. data/lib/ElasticEmail/models/campaign.rb +12 -2
  61. data/lib/ElasticEmail/models/campaign_options.rb +2 -2
  62. data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
  63. data/lib/ElasticEmail/models/campaign_status.rb +2 -2
  64. data/lib/ElasticEmail/models/campaign_template.rb +2 -2
  65. data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
  66. data/lib/ElasticEmail/models/compression_format.rb +2 -2
  67. data/lib/ElasticEmail/models/consent_data.rb +2 -2
  68. data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
  69. data/lib/ElasticEmail/models/contact.rb +2 -2
  70. data/lib/ElasticEmail/models/contact_activity.rb +2 -2
  71. data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
  72. data/lib/ElasticEmail/models/contact_history.rb +2 -2
  73. data/lib/ElasticEmail/models/contact_payload.rb +7 -2
  74. data/lib/ElasticEmail/models/contact_source.rb +2 -2
  75. data/lib/ElasticEmail/models/contact_status.rb +2 -2
  76. data/lib/ElasticEmail/models/contact_update_payload.rb +2 -2
  77. data/lib/ElasticEmail/models/contacts_list.rb +2 -2
  78. data/lib/ElasticEmail/models/delivery_optimization_type.rb +2 -2
  79. data/lib/ElasticEmail/models/email_content.rb +2 -2
  80. data/lib/ElasticEmail/models/email_data.rb +2 -2
  81. data/lib/ElasticEmail/models/email_message_data.rb +7 -2
  82. data/lib/ElasticEmail/models/email_recipient.rb +7 -2
  83. data/lib/ElasticEmail/models/email_send.rb +2 -2
  84. data/lib/ElasticEmail/models/email_status.rb +2 -2
  85. data/lib/ElasticEmail/models/email_transactional_message_data.rb +7 -2
  86. data/lib/ElasticEmail/models/email_validation_result.rb +2 -2
  87. data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
  88. data/lib/ElasticEmail/models/email_view.rb +2 -2
  89. data/lib/ElasticEmail/models/emails_payload.rb +3 -3
  90. data/lib/ElasticEmail/models/encoding_type.rb +2 -2
  91. data/lib/ElasticEmail/models/event_type.rb +2 -2
  92. data/lib/ElasticEmail/models/events_order_by.rb +2 -2
  93. data/lib/ElasticEmail/models/export_file_formats.rb +2 -2
  94. data/lib/ElasticEmail/models/export_link.rb +2 -2
  95. data/lib/ElasticEmail/models/export_status.rb +2 -2
  96. data/lib/ElasticEmail/models/file_info.rb +2 -2
  97. data/lib/ElasticEmail/models/file_payload.rb +7 -2
  98. data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
  99. data/lib/ElasticEmail/models/inbound_payload.rb +22 -2
  100. data/lib/ElasticEmail/models/inbound_route.rb +2 -2
  101. data/lib/ElasticEmail/models/inbound_route_action_type.rb +2 -2
  102. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +2 -2
  103. data/lib/ElasticEmail/models/list_payload.rb +8 -3
  104. data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
  105. data/lib/ElasticEmail/models/log_job_status.rb +2 -2
  106. data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
  107. data/lib/ElasticEmail/models/merge_email_payload.rb +7 -2
  108. data/lib/ElasticEmail/models/message_attachment.rb +7 -2
  109. data/lib/ElasticEmail/models/message_category.rb +2 -2
  110. data/lib/ElasticEmail/models/new_api_key.rb +2 -2
  111. data/lib/ElasticEmail/models/new_smtp_credentials.rb +2 -2
  112. data/lib/ElasticEmail/models/options.rb +2 -2
  113. data/lib/ElasticEmail/models/recipient_event.rb +2 -2
  114. data/lib/ElasticEmail/models/segment.rb +2 -2
  115. data/lib/ElasticEmail/models/segment_payload.rb +12 -2
  116. data/lib/ElasticEmail/models/smtp_credentials.rb +2 -2
  117. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +7 -2
  118. data/lib/ElasticEmail/models/sort_order_item.rb +13 -2
  119. data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
  120. data/lib/ElasticEmail/models/split_options.rb +2 -2
  121. data/lib/ElasticEmail/models/sub_account_info.rb +2 -2
  122. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +7 -2
  123. data/lib/ElasticEmail/models/subaccount_email_settings.rb +2 -2
  124. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +2 -2
  125. data/lib/ElasticEmail/models/subaccount_payload.rb +12 -2
  126. data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -2
  127. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -2
  128. data/lib/ElasticEmail/models/suppression.rb +2 -2
  129. data/lib/ElasticEmail/models/template.rb +2 -2
  130. data/lib/ElasticEmail/models/template_payload.rb +7 -2
  131. data/lib/ElasticEmail/models/template_scope.rb +2 -2
  132. data/lib/ElasticEmail/models/template_type.rb +2 -2
  133. data/lib/ElasticEmail/models/transactional_recipient.rb +7 -2
  134. data/lib/ElasticEmail/models/utm.rb +2 -2
  135. data/lib/ElasticEmail/models/verification_file_result.rb +2 -2
  136. data/lib/ElasticEmail/models/verification_file_result_details.rb +2 -2
  137. data/lib/ElasticEmail/models/verification_status.rb +2 -2
  138. data/lib/ElasticEmail/version.rb +3 -3
  139. data/lib/ElasticEmail.rb +2 -2
  140. data/spec/api_client_spec.rb +2 -2
  141. data/spec/configuration_spec.rb +2 -2
  142. data/spec/spec_helper.rb +2 -2
  143. metadata +9 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdbda054427188f07760c2f3eb6e7e27892471e66338755b302ee8dbd2056e20
4
- data.tar.gz: c21695fc7bf759627ba2b5e89145a1bebff7078f365f8b7dc2ab685a0b7c0c89
3
+ metadata.gz: 6f28babff6884dddbab9f1d2c70e05300c34ece068e515da48d87e4415d71a87
4
+ data.tar.gz: 6e28930bfa6c084dc484ea99e846ccbac1a9844052ec610ba45c1434ba9d7135
5
5
  SHA512:
6
- metadata.gz: 2eb8cac315b968d1147e4defb925bd374ac893950b866cb2d054be050dd8ef9dd2512a71fc5ca5f7515b764bea9e8c61b0672df29061a6beaf1d174fd201bedc
7
- data.tar.gz: 40389b8a3b8d520edd41686ad54cf9ec8279bbfffad13886162f0fc5a869461c3ddda6e18791ae532c95b1418b509293650716c71f78e28cfe7d77d238a8b3fd
6
+ metadata.gz: 6b2a09f004eebe46ce0b71285c800f64642325aba3cc01516587749e86c75fe3717526540d3cf0c23bde9f28b2a3dd71f52f488d9f2b1c2644038253acd732c2
7
+ data.tar.gz: 606bf59ae5d1192163699caf6bb7e6fd230b10f243bf381cc322efa287cf44ba4ac31a9d1946cfb965539dbb7e1012ed71338fb63151143bc261c410c3b41be6
data/ElasticEmail.gemspec CHANGED
@@ -3,12 +3,12 @@
3
3
  =begin
4
4
  #Elastic Email REST API
5
5
 
6
- #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 target=\"_blank\" 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 target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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>
6
+ #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://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 target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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>
7
7
 
8
8
  The version of the OpenAPI document: 4.0.0
9
9
  Contact: support@elasticemail.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.0.1
11
+ OpenAPI Generator version: 5.2.1
12
12
 
13
13
  =end
14
14
 
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.email = ["contact@elasticemail.com"]
24
24
  s.homepage = "https://elasticemail.com"
25
25
  s.summary = "Elastic Email REST API Ruby Gem"
26
- s.description = "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 target=\"_blank\" 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 target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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>"
26
+ s.description = "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://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 target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>. 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>"
27
27
  s.license = "Unlicense"
28
28
  s.required_ruby_version = ">= 2.4"
29
29
 
data/README.md CHANGED
@@ -6,16 +6,18 @@ This API is based on the REST API architecture, allowing the user to easily mana
6
6
 
7
7
  Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used.
8
8
 
9
- To start using this API, you will need your Access Token (available <a target=\"_blank\" 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.
9
+ The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request.
10
10
 
11
- This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a target=\"_blank\" href=\"https://api.elasticemail.com/public/help\">here</a>.
11
+ To start using this API, you will need your Access Token (available [here](https://elasticemail.com/account#/settings/new/manage-api)). Remember to keep it safe. Required access levels are listed in the given request’s description.
12
12
 
13
- 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>
13
+ This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click [here](https://api.elasticemail.com/public/help).
14
+
15
+ Downloadable library clients can be found in our Github repository [here](https://github.com/ElasticEmail?tab=repositories&q=%22rest+api%22+in%3Areadme)
14
16
 
15
17
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
16
18
 
17
19
  - API version: 4.0.0
18
- - Package version: 4.0.12
20
+ - Package version: 4.0.13
19
21
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
20
22
 
21
23
  ## Installation
@@ -31,16 +33,16 @@ gem build ElasticEmail.gemspec
31
33
  Then either install the gem locally:
32
34
 
33
35
  ```shell
34
- gem install ./ElasticEmail-4.0.12.gem
36
+ gem install ./ElasticEmail-4.0.13.gem
35
37
  ```
36
38
 
37
- (for development, run `gem install --dev ./ElasticEmail-4.0.12.gem` to install the development dependencies)
39
+ (for development, run `gem install --dev ./ElasticEmail-4.0.13.gem` to install the development dependencies)
38
40
 
39
41
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
40
42
 
41
43
  Finally add this to the Gemfile:
42
44
 
43
- gem 'ElasticEmail', '~> 4.0.12'
45
+ gem 'ElasticEmail', '~> 4.0.13'
44
46
 
45
47
  ### Install from Git
46
48
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.12
1
+ 4.0.13
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | Name of the ApiKey for ease of reference. | [optional] |
8
- | **access_level** | [**Array&lt;AccessLevel&gt;**](AccessLevel.md) | Access level or permission to be assigned to this ApiKey. | [optional] |
7
+ | **name** | **String** | Name of the ApiKey for ease of reference. | |
8
+ | **access_level** | [**Array&lt;AccessLevel&gt;**](AccessLevel.md) | Access level or permission to be assigned to this ApiKey. | |
9
9
  | **expires** | **Time** | Date this ApiKey expires. | [optional] |
10
10
  | **restrict_access_to_ip_range** | **Array&lt;String&gt;** | Which IPs can use this ApiKey | [optional] |
11
11
  | **subaccount** | **String** | Email of the subaccount for which this ApiKey should be created | [optional] |
data/docs/BodyPart.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **content_type** | [**BodyContentType**](BodyContentType.md) | Type of the body part | [optional] |
7
+ | **content_type** | [**BodyContentType**](BodyContentType.md) | Type of the body part | |
8
8
  | **content** | **String** | Actual content of the body part | [optional] |
9
9
  | **charset** | **String** | Text value of charset encoding for example: iso-8859-1, windows-1251, utf-8, us-ascii, windows-1250 and more… | [optional] |
10
10
 
data/docs/Campaign.md CHANGED
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **content** | [**Array&lt;CampaignTemplate&gt;**](CampaignTemplate.md) | Campaign&#39;s email content. Provide multiple items to send an A/X Split Campaign | [optional] |
8
- | **name** | **String** | Campaign name | [optional] |
8
+ | **name** | **String** | Campaign name | |
9
9
  | **status** | [**CampaignStatus**](CampaignStatus.md) | Campaign status | [optional] |
10
- | **recipients** | [**CampaignRecipient**](CampaignRecipient.md) | Recipients this campaign should be sent to | [optional] |
10
+ | **recipients** | [**CampaignRecipient**](CampaignRecipient.md) | Recipients this campaign should be sent to | |
11
11
  | **options** | [**CampaignOptions**](CampaignOptions.md) | Campaign sending options | [optional] |
12
12
 
13
13
  ## Example
@@ -23,7 +23,7 @@ instance = ElasticEmail::CampaignTemplate.new(
23
23
  reply_to: John Doe &lt;email@domain.com&gt;,
24
24
  subject: Hello!,
25
25
  template_name: Template01,
26
- attach_files: null,
26
+ attach_files: [ &quot;preuploaded.jpg&quot; ],
27
27
  utm: null
28
28
  )
29
29
  ```
data/docs/CampaignsApi.md CHANGED
@@ -175,7 +175,7 @@ end
175
175
 
176
176
  api_instance = ElasticEmail::CampaignsApi.new
177
177
  name = 'name_example' # String | Name of Campaign to update
178
- campaign = ElasticEmail::Campaign.new # Campaign | JSON representation of a campaign
178
+ campaign = ElasticEmail::Campaign.new({name: 'name_example', recipients: ElasticEmail::CampaignRecipient.new}) # Campaign | JSON representation of a campaign
179
179
 
180
180
  begin
181
181
  # Update Campaign
@@ -324,7 +324,7 @@ ElasticEmail.configure do |config|
324
324
  end
325
325
 
326
326
  api_instance = ElasticEmail::CampaignsApi.new
327
- campaign = ElasticEmail::Campaign.new # Campaign | JSON representation of a campaign
327
+ campaign = ElasticEmail::Campaign.new({name: 'name_example', recipients: ElasticEmail::CampaignRecipient.new}) # Campaign | JSON representation of a campaign
328
328
 
329
329
  begin
330
330
  # Add Campaign
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **email** | **String** | Proper email address. | [optional] |
7
+ | **email** | **String** | Proper email address. | |
8
8
  | **status** | [**ContactStatus**](ContactStatus.md) | Status of the given resource | [optional] |
9
9
  | **first_name** | **String** | First name. | [optional] |
10
10
  | **last_name** | **String** | Last name. | [optional] |
data/docs/ContactsApi.md CHANGED
@@ -702,7 +702,7 @@ ElasticEmail.configure do |config|
702
702
  end
703
703
 
704
704
  api_instance = ElasticEmail::ContactsApi.new
705
- contact_payload = [ElasticEmail::ContactPayload.new] # Array<ContactPayload> |
705
+ contact_payload = [ElasticEmail::ContactPayload.new({email: 'mail@example.com'})] # Array<ContactPayload> |
706
706
  opts = {
707
707
  listnames: ['inner_example'] # Array<String> | Names of lists to which the uploaded contacts should be added to
708
708
  }
data/docs/EmailContent.md CHANGED
@@ -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: null,
36
+ attach_files: [ &quot;preuploaded.jpg&quot; ],
37
37
  utm: null
38
38
  )
39
39
  ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **recipients** | [**Array&lt;EmailRecipient&gt;**](EmailRecipient.md) | List of recipients (visible to others) | [optional] |
7
+ | **recipients** | [**Array&lt;EmailRecipient&gt;**](EmailRecipient.md) | List of recipients (visible to others) | |
8
8
  | **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
9
9
  | **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **email** | **String** | Proper email address. | [optional] |
7
+ | **email** | **String** | Proper email address. | |
8
8
  | **fields** | **Hash&lt;String, String&gt;** | A key-value collection of merge fields which can be used in e-mail body. | [optional] |
9
9
 
10
10
  ## Example
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **recipients** | [**TransactionalRecipient**](TransactionalRecipient.md) | List of transactional recipients | [optional] |
7
+ | **recipients** | [**TransactionalRecipient**](TransactionalRecipient.md) | List of transactional recipients | |
8
8
  | **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
9
9
  | **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
10
10
 
data/docs/EmailsApi.md CHANGED
@@ -103,7 +103,7 @@ ElasticEmail.configure do |config|
103
103
  end
104
104
 
105
105
  api_instance = ElasticEmail::EmailsApi.new
106
- merge_email_payload = ElasticEmail::MergeEmailPayload.new # MergeEmailPayload | Email data
106
+ merge_email_payload = ElasticEmail::MergeEmailPayload.new({merge_file: ElasticEmail::MessageAttachment.new({binary_content: 'binary_content_example'})}) # MergeEmailPayload | Email data
107
107
 
108
108
  begin
109
109
  # Send Bulk Emails CSV
@@ -174,7 +174,7 @@ ElasticEmail.configure do |config|
174
174
  end
175
175
 
176
176
  api_instance = ElasticEmail::EmailsApi.new
177
- email_message_data = ElasticEmail::EmailMessageData.new # EmailMessageData | Email data
177
+ email_message_data = ElasticEmail::EmailMessageData.new({recipients: [ElasticEmail::EmailRecipient.new({email: 'mail@example.com'})]}) # EmailMessageData | Email data
178
178
 
179
179
  begin
180
180
  # Send Bulk Emails
@@ -245,7 +245,7 @@ ElasticEmail.configure do |config|
245
245
  end
246
246
 
247
247
  api_instance = ElasticEmail::EmailsApi.new
248
- email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new # EmailTransactionalMessageData | Email data
248
+ email_transactional_message_data = ElasticEmail::EmailTransactionalMessageData.new({recipients: ElasticEmail::TransactionalRecipient.new({to: ['to_example']})}) # EmailTransactionalMessageData | Email data
249
249
 
250
250
  begin
251
251
  # Send Transactional Email
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **rule** | **String** | SQL-like rule. Sending &#39;All&#39; as a value loads all resources of the given type. | [optional] |
7
+ | **rule** | **String** | SQL-like rule. Sending &#39;All&#39; as a value loads all resources of the given type. Help for building a segment rule can be found here: https://help.elasticemail.com/en/articles/5162182-segment-rules | [optional] |
8
8
  | **emails** | **Array&lt;String&gt;** | Comma delimited list of contact emails | [optional] |
9
9
 
10
10
  ## Example
@@ -14,7 +14,7 @@ require 'ElasticEmail'
14
14
 
15
15
  instance = ElasticEmail::EmailsPayload.new(
16
16
  rule: null,
17
- emails: null
17
+ emails: [ &quot;john.doe@sample.com&quot; ]
18
18
  )
19
19
  ```
20
20
 
data/docs/FilePayload.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **binary_content** | **String** | Content of the file sent as binary data | [optional] |
7
+ | **binary_content** | **String** | Content of the file sent as binary data | |
8
8
  | **name** | **String** | Filename | [optional] |
9
9
  | **content_type** | **String** | Type of file&#39;s content (e.g. image/jpeg) | [optional] |
10
10
 
data/docs/FilesApi.md CHANGED
@@ -320,7 +320,7 @@ ElasticEmail.configure do |config|
320
320
  end
321
321
 
322
322
  api_instance = ElasticEmail::FilesApi.new
323
- file_payload = ElasticEmail::FilePayload.new # FilePayload |
323
+ file_payload = ElasticEmail::FilePayload.new({binary_content: 'binary_content_example'}) # FilePayload |
324
324
  opts = {
325
325
  expires_after_days: 56 # Integer | After how many days should the file be deleted.
326
326
  }
@@ -4,10 +4,10 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **filter** | **String** | Filter of the inbound data | [optional] |
8
- | **name** | **String** | Name of this route | [optional] |
9
- | **filter_type** | [**InboundRouteFilterType**](InboundRouteFilterType.md) | Type of the filter | [optional] |
10
- | **action_type** | [**InboundRouteActionType**](InboundRouteActionType.md) | Type of action to take | [optional] |
7
+ | **filter** | **String** | Filter of the inbound data | |
8
+ | **name** | **String** | Name of this route | |
9
+ | **filter_type** | [**InboundRouteFilterType**](InboundRouteFilterType.md) | Type of the filter | |
10
+ | **action_type** | [**InboundRouteActionType**](InboundRouteActionType.md) | Type of action to take | |
11
11
  | **email_address** | **String** | Email to forward the inbound to | [optional] |
12
12
  | **http_address** | **String** | Address to notify about the inbound | [optional] |
13
13
 
@@ -176,7 +176,7 @@ end
176
176
 
177
177
  api_instance = ElasticEmail::InboundRouteApi.new
178
178
  id = 'id_example' # String |
179
- inbound_payload = ElasticEmail::InboundPayload.new # InboundPayload |
179
+ inbound_payload = ElasticEmail::InboundPayload.new({filter: 'filter_example', name: 'name_example', filter_type: ElasticEmail::InboundRouteFilterType::EMAIL_ADDRESS, action_type: ElasticEmail::InboundRouteActionType::FORWARD_TO_EMAIL}) # InboundPayload |
180
180
 
181
181
  begin
182
182
  # Update Route
@@ -316,7 +316,7 @@ ElasticEmail.configure do |config|
316
316
  end
317
317
 
318
318
  api_instance = ElasticEmail::InboundRouteApi.new
319
- sort_order_item = [ElasticEmail::SortOrderItem.new] # Array<SortOrderItem> | Change the ordering of inbound routes for when matching the inbound
319
+ sort_order_item = [ElasticEmail::SortOrderItem.new({public_inbound_id: 'public_inbound_id_example', sort_order: 37})] # Array<SortOrderItem> | Change the ordering of inbound routes for when matching the inbound
320
320
 
321
321
  begin
322
322
  # Update Sorting
@@ -387,7 +387,7 @@ ElasticEmail.configure do |config|
387
387
  end
388
388
 
389
389
  api_instance = ElasticEmail::InboundRouteApi.new
390
- inbound_payload = ElasticEmail::InboundPayload.new # InboundPayload |
390
+ inbound_payload = ElasticEmail::InboundPayload.new({filter: 'filter_example', name: 'name_example', filter_type: ElasticEmail::InboundRouteFilterType::EMAIL_ADDRESS, action_type: ElasticEmail::InboundRouteActionType::FORWARD_TO_EMAIL}) # InboundPayload |
391
391
 
392
392
  begin
393
393
  # Create Route
data/docs/ListPayload.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **list_name** | **String** | Name of your list. | [optional] |
7
+ | **list_name** | **String** | Name of your list. | |
8
8
  | **allow_unsubscribe** | **Boolean** | True: Allow unsubscribing from this list. Otherwise, false | [optional] |
9
- | **emails** | **Array&lt;String&gt;** | Comma delimited list of existing contact emails that should be added to this list | [optional] |
9
+ | **emails** | **Array&lt;String&gt;** | Comma delimited list of existing contact emails that should be added to this list. Leave empty for all contacts | [optional] |
10
10
 
11
11
  ## Example
12
12
 
data/docs/ListsApi.md CHANGED
@@ -469,7 +469,7 @@ ElasticEmail.configure do |config|
469
469
  end
470
470
 
471
471
  api_instance = ElasticEmail::ListsApi.new
472
- list_payload = ElasticEmail::ListPayload.new # ListPayload |
472
+ list_payload = ElasticEmail::ListPayload.new({list_name: 'My List 1'}) # ListPayload |
473
473
 
474
474
  begin
475
475
  # Add List
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **merge_file** | [**MessageAttachment**](MessageAttachment.md) | CSV file containing recipients with optional merge fields | [optional] |
7
+ | **merge_file** | [**MessageAttachment**](MessageAttachment.md) | CSV file containing recipients with optional merge fields | |
8
8
  | **content** | [**EmailContent**](EmailContent.md) | Proper e-mail content | [optional] |
9
9
  | **options** | [**Options**](Options.md) | E-mail configuration | [optional] |
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **binary_content** | **String** | File&#39;s content as byte array (or a Base64 string) | [optional] |
7
+ | **binary_content** | **String** | File&#39;s content as byte array (or a Base64 string) | |
8
8
  | **name** | **String** | Display name of the file | [optional] |
9
9
  | **content_type** | **String** | MIME content type | [optional] |
10
10
 
data/docs/SecurityApi.md CHANGED
@@ -188,7 +188,7 @@ end
188
188
 
189
189
  api_instance = ElasticEmail::SecurityApi.new
190
190
  name = 'name_example' # String | Name of the ApiKey
191
- api_key_payload = ElasticEmail::ApiKeyPayload.new # ApiKeyPayload |
191
+ api_key_payload = ElasticEmail::ApiKeyPayload.new({name: 'name_example', access_level: [ElasticEmail::AccessLevel::NONE]}) # ApiKeyPayload |
192
192
 
193
193
  begin
194
194
  # Update ApiKey
@@ -333,7 +333,7 @@ ElasticEmail.configure do |config|
333
333
  end
334
334
 
335
335
  api_instance = ElasticEmail::SecurityApi.new
336
- api_key_payload = ElasticEmail::ApiKeyPayload.new # ApiKeyPayload |
336
+ api_key_payload = ElasticEmail::ApiKeyPayload.new({name: 'name_example', access_level: [ElasticEmail::AccessLevel::NONE]}) # ApiKeyPayload |
337
337
 
338
338
  begin
339
339
  # Add ApiKey
@@ -554,7 +554,7 @@ end
554
554
 
555
555
  api_instance = ElasticEmail::SecurityApi.new
556
556
  name = 'name_example' # String | Name of the SMTP Credential
557
- smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new # SmtpCredentialsPayload |
557
+ smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new({name: 'name_example'}) # SmtpCredentialsPayload |
558
558
 
559
559
  begin
560
560
  # Update SMTP Credential
@@ -699,7 +699,7 @@ ElasticEmail.configure do |config|
699
699
  end
700
700
 
701
701
  api_instance = ElasticEmail::SecurityApi.new
702
- smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new # SmtpCredentialsPayload |
702
+ smtp_credentials_payload = ElasticEmail::SmtpCredentialsPayload.new({name: 'name_example'}) # SmtpCredentialsPayload |
703
703
 
704
704
  begin
705
705
  # Add SMTP Credential
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | Segment name | [optional] |
8
- | **rule** | **String** | SQL-like rule to determine which Contacts belong to this Segment. Help for building a segment rule can be found here: https://help.elasticemail.com/en/articles/5162182-segment-rules | [optional] |
7
+ | **name** | **String** | Segment name | |
8
+ | **rule** | **String** | SQL-like rule to determine which Contacts belong to this Segment. Help for building a segment rule can be found here: https://help.elasticemail.com/en/articles/5162182-segment-rules | |
9
9
 
10
10
  ## Example
11
11
 
data/docs/SegmentsApi.md CHANGED
@@ -175,7 +175,7 @@ end
175
175
 
176
176
  api_instance = ElasticEmail::SegmentsApi.new
177
177
  name = 'My Segment 1' # String | Name of your segment.
178
- segment_payload = ElasticEmail::SegmentPayload.new # SegmentPayload |
178
+ segment_payload = ElasticEmail::SegmentPayload.new({name: 'name_example', rule: 'rule_example'}) # SegmentPayload |
179
179
 
180
180
  begin
181
181
  # Update Segment
@@ -322,7 +322,7 @@ ElasticEmail.configure do |config|
322
322
  end
323
323
 
324
324
  api_instance = ElasticEmail::SegmentsApi.new
325
- segment_payload = ElasticEmail::SegmentPayload.new # SegmentPayload |
325
+ segment_payload = ElasticEmail::SegmentPayload.new({name: 'name_example', rule: 'rule_example'}) # SegmentPayload |
326
326
 
327
327
  begin
328
328
  # Add Segment
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **name** | **String** | Name of the Credential for ease of reference. It must be a valid email address. | [optional] |
7
+ | **name** | **String** | Name of the Credential for ease of reference. It must be a valid email address. | |
8
8
  | **expires** | **Time** | Date this SmtpCredential expires. | [optional] |
9
9
  | **restrict_access_to_ip_range** | **Array&lt;String&gt;** | Which IPs can use this SmtpCredential | [optional] |
10
10
  | **subaccount** | **String** | Email of the subaccount for which this SmtpCredential should be created | [optional] |
@@ -4,8 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **public_inbound_id** | **String** | | [optional] |
8
- | **sort_order** | **Integer** | 1 - route will be used first | [optional] |
7
+ | **public_inbound_id** | **String** | ID of the route to change the order of | |
8
+ | **sort_order** | **Integer** | 1 - route will be used first | |
9
9
 
10
10
  ## Example
11
11