ElasticEmail 4.0.13 → 4.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +3 -3
  3. data/README.md +6 -8
  4. data/VERSION +1 -1
  5. data/docs/BodyPart.md +1 -1
  6. data/docs/Campaign.md +3 -3
  7. data/docs/CampaignOptions.md +2 -2
  8. data/docs/CampaignTemplate.md +1 -1
  9. data/docs/ConsentData.md +1 -1
  10. data/docs/Contact.md +3 -3
  11. data/docs/ContactHistory.md +1 -1
  12. data/docs/ContactPayload.md +1 -1
  13. data/docs/ContactsApi.md +2 -2
  14. data/docs/EmailContent.md +1 -1
  15. data/docs/EmailData.md +2 -2
  16. data/docs/EmailMessageData.md +3 -3
  17. data/docs/EmailStatus.md +1 -1
  18. data/docs/EmailTransactionalMessageData.md +3 -3
  19. data/docs/EventsApi.md +7 -7
  20. data/docs/InboundPayload.md +2 -2
  21. data/docs/InboundRoute.md +2 -2
  22. data/docs/MergeEmailPayload.md +3 -3
  23. data/docs/NewSmtpCredentials.md +1 -1
  24. data/docs/Options.md +1 -1
  25. data/docs/RecipientEvent.md +2 -2
  26. data/docs/SmtpCredentials.md +1 -1
  27. data/docs/SplitOptions.md +1 -1
  28. data/docs/SubAccountInfo.md +2 -2
  29. data/docs/SubaccountEmailSettings.md +3 -1
  30. data/docs/SubaccountEmailSettingsPayload.md +3 -1
  31. data/docs/SubaccountPayload.md +1 -1
  32. data/docs/SubaccountSettingsInfo.md +1 -1
  33. data/docs/SubaccountSettingsInfoPayload.md +1 -1
  34. data/docs/SuppressionsApi.md +12 -12
  35. data/docs/Template.md +2 -2
  36. data/docs/TemplatePayload.md +1 -1
  37. data/docs/VerificationFileResult.md +2 -2
  38. data/docs/VerificationFileResultDetails.md +2 -2
  39. data/lib/ElasticEmail/api/campaigns_api.rb +10 -4
  40. data/lib/ElasticEmail/api/contacts_api.rb +22 -10
  41. data/lib/ElasticEmail/api/emails_api.rb +14 -5
  42. data/lib/ElasticEmail/api/events_api.rb +16 -16
  43. data/lib/ElasticEmail/api/files_api.rb +6 -3
  44. data/lib/ElasticEmail/api/inbound_route_api.rb +14 -5
  45. data/lib/ElasticEmail/api/lists_api.rb +18 -6
  46. data/lib/ElasticEmail/api/security_api.rb +18 -6
  47. data/lib/ElasticEmail/api/segments_api.rb +10 -4
  48. data/lib/ElasticEmail/api/statistics_api.rb +2 -2
  49. data/lib/ElasticEmail/api/sub_accounts_api.rb +14 -5
  50. data/lib/ElasticEmail/api/suppressions_api.rb +50 -32
  51. data/lib/ElasticEmail/api/templates_api.rb +10 -4
  52. data/lib/ElasticEmail/api/verifications_api.rb +6 -3
  53. data/lib/ElasticEmail/api_client.rb +8 -6
  54. data/lib/ElasticEmail/api_error.rb +2 -2
  55. data/lib/ElasticEmail/configuration.rb +6 -4
  56. data/lib/ElasticEmail/models/access_level.rb +6 -2
  57. data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
  58. data/lib/ElasticEmail/models/api_key.rb +3 -2
  59. data/lib/ElasticEmail/models/api_key_payload.rb +3 -2
  60. data/lib/ElasticEmail/models/body_content_type.rb +2 -2
  61. data/lib/ElasticEmail/models/body_part.rb +5 -3
  62. data/lib/ElasticEmail/models/campaign.rb +5 -5
  63. data/lib/ElasticEmail/models/campaign_options.rb +5 -4
  64. data/lib/ElasticEmail/models/campaign_recipient.rb +3 -2
  65. data/lib/ElasticEmail/models/campaign_status.rb +2 -2
  66. data/lib/ElasticEmail/models/campaign_template.rb +3 -3
  67. data/lib/ElasticEmail/models/channel_log_status_summary.rb +3 -2
  68. data/lib/ElasticEmail/models/compression_format.rb +2 -2
  69. data/lib/ElasticEmail/models/consent_data.rb +5 -3
  70. data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
  71. data/lib/ElasticEmail/models/contact.rb +7 -5
  72. data/lib/ElasticEmail/models/contact_activity.rb +3 -2
  73. data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
  74. data/lib/ElasticEmail/models/contact_history.rb +5 -3
  75. data/lib/ElasticEmail/models/contact_payload.rb +5 -3
  76. data/lib/ElasticEmail/models/contact_source.rb +2 -2
  77. data/lib/ElasticEmail/models/contact_status.rb +2 -2
  78. data/lib/ElasticEmail/models/contact_update_payload.rb +3 -2
  79. data/lib/ElasticEmail/models/contacts_list.rb +3 -2
  80. data/lib/ElasticEmail/models/delivery_optimization_type.rb +2 -2
  81. data/lib/ElasticEmail/models/email_content.rb +3 -3
  82. data/lib/ElasticEmail/models/email_data.rb +3 -4
  83. data/lib/ElasticEmail/models/email_message_data.rb +4 -5
  84. data/lib/ElasticEmail/models/email_recipient.rb +4 -3
  85. data/lib/ElasticEmail/models/email_send.rb +3 -2
  86. data/lib/ElasticEmail/models/email_status.rb +5 -3
  87. data/lib/ElasticEmail/models/email_transactional_message_data.rb +3 -5
  88. data/lib/ElasticEmail/models/email_validation_result.rb +3 -2
  89. data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
  90. data/lib/ElasticEmail/models/email_view.rb +3 -2
  91. data/lib/ElasticEmail/models/emails_payload.rb +3 -2
  92. data/lib/ElasticEmail/models/encoding_type.rb +2 -2
  93. data/lib/ElasticEmail/models/event_type.rb +2 -2
  94. data/lib/ElasticEmail/models/events_order_by.rb +2 -2
  95. data/lib/ElasticEmail/models/export_file_formats.rb +2 -2
  96. data/lib/ElasticEmail/models/export_link.rb +3 -2
  97. data/lib/ElasticEmail/models/export_status.rb +2 -2
  98. data/lib/ElasticEmail/models/file_info.rb +3 -2
  99. data/lib/ElasticEmail/models/file_payload.rb +3 -2
  100. data/lib/ElasticEmail/models/file_upload_result.rb +3 -2
  101. data/lib/ElasticEmail/models/inbound_payload.rb +7 -4
  102. data/lib/ElasticEmail/models/inbound_route.rb +7 -4
  103. data/lib/ElasticEmail/models/inbound_route_action_type.rb +2 -2
  104. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +2 -2
  105. data/lib/ElasticEmail/models/list_payload.rb +3 -2
  106. data/lib/ElasticEmail/models/list_update_payload.rb +3 -2
  107. data/lib/ElasticEmail/models/log_job_status.rb +2 -2
  108. data/lib/ElasticEmail/models/log_status_summary.rb +3 -2
  109. data/lib/ElasticEmail/models/merge_email_payload.rb +3 -5
  110. data/lib/ElasticEmail/models/message_attachment.rb +3 -2
  111. data/lib/ElasticEmail/models/message_category.rb +2 -2
  112. data/lib/ElasticEmail/models/new_api_key.rb +3 -2
  113. data/lib/ElasticEmail/models/new_smtp_credentials.rb +5 -3
  114. data/lib/ElasticEmail/models/options.rb +5 -3
  115. data/lib/ElasticEmail/models/recipient_event.rb +7 -4
  116. data/lib/ElasticEmail/models/segment.rb +3 -2
  117. data/lib/ElasticEmail/models/segment_payload.rb +3 -2
  118. data/lib/ElasticEmail/models/smtp_credentials.rb +5 -3
  119. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +3 -2
  120. data/lib/ElasticEmail/models/sort_order_item.rb +3 -2
  121. data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
  122. data/lib/ElasticEmail/models/split_options.rb +5 -3
  123. data/lib/ElasticEmail/models/sub_account_info.rb +5 -4
  124. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +3 -2
  125. data/lib/ElasticEmail/models/subaccount_email_settings.rb +17 -6
  126. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +17 -6
  127. data/lib/ElasticEmail/models/subaccount_payload.rb +3 -3
  128. data/lib/ElasticEmail/models/subaccount_settings_info.rb +3 -3
  129. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +3 -3
  130. data/lib/ElasticEmail/models/suppression.rb +3 -2
  131. data/lib/ElasticEmail/models/template.rb +7 -4
  132. data/lib/ElasticEmail/models/template_payload.rb +5 -3
  133. data/lib/ElasticEmail/models/template_scope.rb +2 -2
  134. data/lib/ElasticEmail/models/template_type.rb +2 -2
  135. data/lib/ElasticEmail/models/transactional_recipient.rb +3 -2
  136. data/lib/ElasticEmail/models/utm.rb +3 -2
  137. data/lib/ElasticEmail/models/verification_file_result.rb +5 -4
  138. data/lib/ElasticEmail/models/verification_file_result_details.rb +5 -4
  139. data/lib/ElasticEmail/models/verification_status.rb +2 -2
  140. data/lib/ElasticEmail/version.rb +3 -3
  141. data/lib/ElasticEmail.rb +2 -2
  142. data/spec/api_client_spec.rb +4 -4
  143. data/spec/configuration_spec.rb +2 -2
  144. data/spec/spec_helper.rb +2 -2
  145. metadata +7 -13
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -21,10 +21,8 @@ module ElasticEmail
21
21
  # Name of this route
22
22
  attr_accessor :name
23
23
 
24
- # Type of the filter
25
24
  attr_accessor :filter_type
26
25
 
27
- # Type of action to take
28
26
  attr_accessor :action_type
29
27
 
30
28
  # Email to forward the inbound to
@@ -93,10 +91,14 @@ module ElasticEmail
93
91
 
94
92
  if attributes.key?(:'filter_type')
95
93
  self.filter_type = attributes[:'filter_type']
94
+ else
95
+ self.filter_type = 'EmailAddress'
96
96
  end
97
97
 
98
98
  if attributes.key?(:'action_type')
99
99
  self.action_type = attributes[:'action_type']
100
+ else
101
+ self.action_type = 'ForwardToEmail'
100
102
  end
101
103
 
102
104
  if attributes.key?(:'email_address')
@@ -178,6 +180,7 @@ module ElasticEmail
178
180
  # @return [Object] Returns the model itself
179
181
  def build_from_hash(attributes)
180
182
  return nil unless attributes.is_a?(Hash)
183
+ attributes = attributes.transform_keys(&:to_sym)
181
184
  self.class.openapi_types.each_pair do |key, type|
182
185
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
183
186
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -20,13 +20,11 @@ module ElasticEmail
20
20
  # Name of this route
21
21
  attr_accessor :name
22
22
 
23
- # Type of the filter
24
23
  attr_accessor :filter_type
25
24
 
26
25
  # Filter of the inbound data
27
26
  attr_accessor :filter
28
27
 
29
- # Type of action to take
30
28
  attr_accessor :action_type
31
29
 
32
30
  # URL address or Email to notify about the inbound
@@ -97,6 +95,8 @@ module ElasticEmail
97
95
 
98
96
  if attributes.key?(:'filter_type')
99
97
  self.filter_type = attributes[:'filter_type']
98
+ else
99
+ self.filter_type = 'EmailAddress'
100
100
  end
101
101
 
102
102
  if attributes.key?(:'filter')
@@ -105,6 +105,8 @@ module ElasticEmail
105
105
 
106
106
  if attributes.key?(:'action_type')
107
107
  self.action_type = attributes[:'action_type']
108
+ else
109
+ self.action_type = 'ForwardToEmail'
108
110
  end
109
111
 
110
112
  if attributes.key?(:'action_parameter')
@@ -167,6 +169,7 @@ module ElasticEmail
167
169
  # @return [Object] Returns the model itself
168
170
  def build_from_hash(attributes)
169
171
  return nil unless attributes.is_a?(Hash)
172
+ attributes = attributes.transform_keys(&:to_sym)
170
173
  self.class.openapi_types.each_pair do |key, type|
171
174
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
172
175
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -135,6 +135,7 @@ module ElasticEmail
135
135
  # @return [Object] Returns the model itself
136
136
  def build_from_hash(attributes)
137
137
  return nil unless attributes.is_a?(Hash)
138
+ attributes = attributes.transform_keys(&:to_sym)
138
139
  self.class.openapi_types.each_pair do |key, type|
139
140
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
140
141
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -118,6 +118,7 @@ module ElasticEmail
118
118
  # @return [Object] Returns the model itself
119
119
  def build_from_hash(attributes)
120
120
  return nil unless attributes.is_a?(Hash)
121
+ attributes = attributes.transform_keys(&:to_sym)
121
122
  self.class.openapi_types.each_pair do |key, type|
122
123
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
124
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -229,6 +229,7 @@ module ElasticEmail
229
229
  # @return [Object] Returns the model itself
230
230
  def build_from_hash(attributes)
231
231
  return nil unless attributes.is_a?(Hash)
232
+ attributes = attributes.transform_keys(&:to_sym)
232
233
  self.class.openapi_types.each_pair do |key, type|
233
234
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
234
235
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -15,13 +15,10 @@ require 'time'
15
15
 
16
16
  module ElasticEmail
17
17
  class MergeEmailPayload
18
- # CSV file containing recipients with optional merge fields
19
18
  attr_accessor :merge_file
20
19
 
21
- # Proper e-mail content
22
20
  attr_accessor :content
23
21
 
24
- # E-mail configuration
25
22
  attr_accessor :options
26
23
 
27
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -133,6 +130,7 @@ module ElasticEmail
133
130
  # @return [Object] Returns the model itself
134
131
  def build_from_hash(attributes)
135
132
  return nil unless attributes.is_a?(Hash)
133
+ attributes = attributes.transform_keys(&:to_sym)
136
134
  self.class.openapi_types.each_pair do |key, type|
137
135
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
136
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -133,6 +133,7 @@ module ElasticEmail
133
133
  # @return [Object] Returns the model itself
134
134
  def build_from_hash(attributes)
135
135
  return nil unless attributes.is_a?(Hash)
136
+ attributes = attributes.transform_keys(&:to_sym)
136
137
  self.class.openapi_types.each_pair do |key, type|
137
138
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
138
139
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -175,6 +175,7 @@ module ElasticEmail
175
175
  # @return [Object] Returns the model itself
176
176
  def build_from_hash(attributes)
177
177
  return nil unless attributes.is_a?(Hash)
178
+ attributes = attributes.transform_keys(&:to_sym)
178
179
  self.class.openapi_types.each_pair do |key, type|
179
180
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
180
181
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,6 @@ module ElasticEmail
19
19
  # Unique token to be used in the system
20
20
  attr_accessor :token
21
21
 
22
- # Access level of this Smtp Credential.
23
22
  attr_accessor :access_level
24
23
 
25
24
  # Name of the key.
@@ -97,6 +96,8 @@ module ElasticEmail
97
96
 
98
97
  if attributes.key?(:'access_level')
99
98
  self.access_level = attributes[:'access_level']
99
+ else
100
+ self.access_level = 'None'
100
101
  end
101
102
 
102
103
  if attributes.key?(:'name')
@@ -173,6 +174,7 @@ module ElasticEmail
173
174
  # @return [Object] Returns the model itself
174
175
  def build_from_hash(attributes)
175
176
  return nil unless attributes.is_a?(Hash)
177
+ attributes = attributes.transform_keys(&:to_sym)
176
178
  self.class.openapi_types.each_pair do |key, type|
177
179
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
178
180
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -25,7 +25,6 @@ module ElasticEmail
25
25
  # Name of selected channel.
26
26
  attr_accessor :channel_name
27
27
 
28
- # 0 for None, 1 for Raw7Bit, 2 for Raw8Bit, 3 for QuotedPrintable, 4 for Base64 (Default), 5 for Uue note that you can also provide the text version such as \"Raw7Bit\" for value 1. NOTE: Base64 or QuotedPrintable is recommended if you are validating your domain(s) with DKIM.
29
28
  attr_accessor :encoding
30
29
 
31
30
  # Should the opens be tracked? If no value has been provided, Account's default setting will be used.
@@ -99,6 +98,8 @@ module ElasticEmail
99
98
 
100
99
  if attributes.key?(:'encoding')
101
100
  self.encoding = attributes[:'encoding']
101
+ else
102
+ self.encoding = 'UserProvided'
102
103
  end
103
104
 
104
105
  if attributes.key?(:'track_opens')
@@ -160,6 +161,7 @@ module ElasticEmail
160
161
  # @return [Object] Returns the model itself
161
162
  def build_from_hash(attributes)
162
163
  return nil unless attributes.is_a?(Hash)
164
+ attributes = attributes.transform_keys(&:to_sym)
163
165
  self.class.openapi_types.each_pair do |key, type|
164
166
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
165
167
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -31,7 +31,6 @@ module ElasticEmail
31
31
  # Default subject of email.
32
32
  attr_accessor :subject
33
33
 
34
- # Type of an Event
35
34
  attr_accessor :event_type
36
35
 
37
36
  # Creation date
@@ -40,7 +39,6 @@ module ElasticEmail
40
39
  # Name of selected channel.
41
40
  attr_accessor :channel_name
42
41
 
43
- # Message category
44
42
  attr_accessor :message_category
45
43
 
46
44
  # Date of next try
@@ -142,6 +140,8 @@ module ElasticEmail
142
140
 
143
141
  if attributes.key?(:'event_type')
144
142
  self.event_type = attributes[:'event_type']
143
+ else
144
+ self.event_type = 'Submission'
145
145
  end
146
146
 
147
147
  if attributes.key?(:'event_date')
@@ -154,6 +154,8 @@ module ElasticEmail
154
154
 
155
155
  if attributes.key?(:'message_category')
156
156
  self.message_category = attributes[:'message_category']
157
+ else
158
+ self.message_category = 'Unknown'
157
159
  end
158
160
 
159
161
  if attributes.key?(:'next_try_on')
@@ -230,6 +232,7 @@ module ElasticEmail
230
232
  # @return [Object] Returns the model itself
231
233
  def build_from_hash(attributes)
232
234
  return nil unless attributes.is_a?(Hash)
235
+ attributes = attributes.transform_keys(&:to_sym)
233
236
  self.class.openapi_types.each_pair do |key, type|
234
237
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
235
238
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -119,6 +119,7 @@ module ElasticEmail
119
119
  # @return [Object] Returns the model itself
120
120
  def build_from_hash(attributes)
121
121
  return nil unless attributes.is_a?(Hash)
122
+ attributes = attributes.transform_keys(&:to_sym)
122
123
  self.class.openapi_types.each_pair do |key, type|
123
124
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
125
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -128,6 +128,7 @@ module ElasticEmail
128
128
  # @return [Object] Returns the model itself
129
129
  def build_from_hash(attributes)
130
130
  return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
131
132
  self.class.openapi_types.each_pair do |key, type|
132
133
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
133
134
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -16,7 +16,6 @@ require 'time'
16
16
  module ElasticEmail
17
17
  # SMTP Credentials info
18
18
  class SmtpCredentials
19
- # Access level of this Smtp Credential.
20
19
  attr_accessor :access_level
21
20
 
22
21
  # Name of the key.
@@ -88,6 +87,8 @@ module ElasticEmail
88
87
 
89
88
  if attributes.key?(:'access_level')
90
89
  self.access_level = attributes[:'access_level']
90
+ else
91
+ self.access_level = 'None'
91
92
  end
92
93
 
93
94
  if attributes.key?(:'name')
@@ -163,6 +164,7 @@ module ElasticEmail
163
164
  # @return [Object] Returns the model itself
164
165
  def build_from_hash(attributes)
165
166
  return nil unless attributes.is_a?(Hash)
167
+ attributes = attributes.transform_keys(&:to_sym)
166
168
  self.class.openapi_types.each_pair do |key, type|
167
169
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
168
170
  self.send("#{key}=", nil)
@@ -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. 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>
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://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. 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.2.1
9
+ OpenAPI Generator version: 6.0.0
10
10
 
11
11
  =end
12
12
 
@@ -147,6 +147,7 @@ module ElasticEmail
147
147
  # @return [Object] Returns the model itself
148
148
  def build_from_hash(attributes)
149
149
  return nil unless attributes.is_a?(Hash)
150
+ attributes = attributes.transform_keys(&:to_sym)
150
151
  self.class.openapi_types.each_pair do |key, type|
151
152
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
152
153
  self.send("#{key}=", nil)