ElasticEmail 4.0.1 → 4.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +3 -3
  3. data/README.md +14 -9
  4. data/VERSION +1 -1
  5. data/docs/ApiKeyPayload.md +2 -2
  6. data/docs/BodyPart.md +1 -1
  7. data/docs/Campaign.md +4 -4
  8. data/docs/CampaignOptions.md +2 -2
  9. data/docs/CampaignTemplate.md +2 -2
  10. data/docs/CampaignsApi.md +2 -2
  11. data/docs/ConsentData.md +1 -1
  12. data/docs/Contact.md +3 -3
  13. data/docs/ContactHistory.md +1 -1
  14. data/docs/ContactPayload.md +2 -2
  15. data/docs/ContactsApi.md +3 -3
  16. data/docs/EmailContent.md +4 -2
  17. data/docs/EmailData.md +2 -2
  18. data/docs/EmailMessageData.md +3 -3
  19. data/docs/EmailRecipient.md +1 -1
  20. data/docs/EmailStatus.md +1 -1
  21. data/docs/EmailTransactionalMessageData.md +3 -3
  22. data/docs/EmailsApi.md +3 -3
  23. data/docs/EmailsPayload.md +2 -2
  24. data/docs/EventsApi.md +7 -7
  25. data/docs/FilePayload.md +1 -1
  26. data/docs/FilesApi.md +1 -1
  27. data/docs/InboundPayload.md +4 -4
  28. data/docs/InboundRoute.md +2 -2
  29. data/docs/InboundRouteApi.md +3 -3
  30. data/docs/ListPayload.md +2 -2
  31. data/docs/ListsApi.md +1 -1
  32. data/docs/MergeEmailPayload.md +3 -3
  33. data/docs/MessageAttachment.md +4 -4
  34. data/docs/NewSmtpCredentials.md +1 -1
  35. data/docs/Options.md +1 -1
  36. data/docs/RecipientEvent.md +2 -2
  37. data/docs/SecurityApi.md +4 -4
  38. data/docs/SegmentPayload.md +2 -2
  39. data/docs/SegmentsApi.md +2 -2
  40. data/docs/SmtpCredentials.md +1 -1
  41. data/docs/SmtpCredentialsPayload.md +1 -1
  42. data/docs/SortOrderItem.md +2 -2
  43. data/docs/SplitOptions.md +1 -1
  44. data/docs/SubAccountInfo.md +2 -2
  45. data/docs/SubAccountsApi.md +2 -2
  46. data/docs/SubaccountEmailCreditsPayload.md +1 -1
  47. data/docs/SubaccountPayload.md +3 -3
  48. data/docs/SubaccountSettingsInfo.md +1 -1
  49. data/docs/SubaccountSettingsInfoPayload.md +1 -1
  50. data/docs/Template.md +2 -2
  51. data/docs/TemplatePayload.md +2 -2
  52. data/docs/TemplateScope.md +15 -0
  53. data/docs/TemplatesApi.md +4 -4
  54. data/docs/TransactionalRecipient.md +1 -1
  55. data/docs/VerificationFileResult.md +2 -2
  56. data/docs/VerificationFileResultDetails.md +2 -2
  57. data/docs/VerificationsApi.md +80 -9
  58. data/lib/ElasticEmail/api/campaigns_api.rb +10 -4
  59. data/lib/ElasticEmail/api/contacts_api.rb +20 -8
  60. data/lib/ElasticEmail/api/emails_api.rb +14 -5
  61. data/lib/ElasticEmail/api/events_api.rb +9 -9
  62. data/lib/ElasticEmail/api/files_api.rb +6 -3
  63. data/lib/ElasticEmail/api/inbound_route_api.rb +14 -5
  64. data/lib/ElasticEmail/api/lists_api.rb +18 -6
  65. data/lib/ElasticEmail/api/security_api.rb +18 -6
  66. data/lib/ElasticEmail/api/segments_api.rb +10 -4
  67. data/lib/ElasticEmail/api/statistics_api.rb +2 -2
  68. data/lib/ElasticEmail/api/sub_accounts_api.rb +14 -5
  69. data/lib/ElasticEmail/api/suppressions_api.rb +26 -8
  70. data/lib/ElasticEmail/api/templates_api.rb +12 -6
  71. data/lib/ElasticEmail/api/verifications_api.rb +73 -9
  72. data/lib/ElasticEmail/api_client.rb +5 -5
  73. data/lib/ElasticEmail/api_error.rb +2 -2
  74. data/lib/ElasticEmail/configuration.rb +4 -3
  75. data/lib/ElasticEmail/models/access_level.rb +5 -2
  76. data/lib/ElasticEmail/models/account_status_enum.rb +2 -2
  77. data/lib/ElasticEmail/models/api_key.rb +2 -2
  78. data/lib/ElasticEmail/models/api_key_payload.rb +12 -2
  79. data/lib/ElasticEmail/models/body_content_type.rb +2 -2
  80. data/lib/ElasticEmail/models/body_part.rb +9 -3
  81. data/lib/ElasticEmail/models/campaign.rb +14 -5
  82. data/lib/ElasticEmail/models/campaign_options.rb +4 -4
  83. data/lib/ElasticEmail/models/campaign_recipient.rb +2 -2
  84. data/lib/ElasticEmail/models/campaign_status.rb +2 -2
  85. data/lib/ElasticEmail/models/campaign_template.rb +2 -3
  86. data/lib/ElasticEmail/models/channel_log_status_summary.rb +2 -2
  87. data/lib/ElasticEmail/models/compression_format.rb +2 -2
  88. data/lib/ElasticEmail/models/consent_data.rb +4 -3
  89. data/lib/ElasticEmail/models/consent_tracking.rb +2 -2
  90. data/lib/ElasticEmail/models/contact.rb +6 -5
  91. data/lib/ElasticEmail/models/contact_activity.rb +2 -2
  92. data/lib/ElasticEmail/models/contact_hist_event_type.rb +2 -2
  93. data/lib/ElasticEmail/models/contact_history.rb +4 -3
  94. data/lib/ElasticEmail/models/contact_payload.rb +9 -3
  95. data/lib/ElasticEmail/models/contact_source.rb +2 -2
  96. data/lib/ElasticEmail/models/contact_status.rb +2 -2
  97. data/lib/ElasticEmail/models/contact_update_payload.rb +2 -2
  98. data/lib/ElasticEmail/models/contacts_list.rb +2 -2
  99. data/lib/ElasticEmail/models/delivery_optimization_type.rb +2 -2
  100. data/lib/ElasticEmail/models/email_content.rb +13 -4
  101. data/lib/ElasticEmail/models/email_data.rb +2 -4
  102. data/lib/ElasticEmail/models/email_message_data.rb +8 -5
  103. data/lib/ElasticEmail/models/email_recipient.rb +8 -3
  104. data/lib/ElasticEmail/models/email_send.rb +2 -2
  105. data/lib/ElasticEmail/models/email_status.rb +4 -3
  106. data/lib/ElasticEmail/models/email_transactional_message_data.rb +7 -5
  107. data/lib/ElasticEmail/models/email_validation_result.rb +2 -2
  108. data/lib/ElasticEmail/models/email_validation_status.rb +2 -2
  109. data/lib/ElasticEmail/models/email_view.rb +2 -2
  110. data/lib/ElasticEmail/models/emails_payload.rb +3 -3
  111. data/lib/ElasticEmail/models/encoding_type.rb +2 -2
  112. data/lib/ElasticEmail/models/event_type.rb +2 -2
  113. data/lib/ElasticEmail/models/events_order_by.rb +2 -2
  114. data/lib/ElasticEmail/models/export_file_formats.rb +2 -2
  115. data/lib/ElasticEmail/models/export_link.rb +2 -2
  116. data/lib/ElasticEmail/models/export_status.rb +2 -2
  117. data/lib/ElasticEmail/models/file_info.rb +2 -2
  118. data/lib/ElasticEmail/models/file_payload.rb +7 -2
  119. data/lib/ElasticEmail/models/file_upload_result.rb +2 -2
  120. data/lib/ElasticEmail/models/inbound_payload.rb +26 -4
  121. data/lib/ElasticEmail/models/inbound_route.rb +6 -4
  122. data/lib/ElasticEmail/models/inbound_route_action_type.rb +2 -2
  123. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +2 -2
  124. data/lib/ElasticEmail/models/list_payload.rb +8 -3
  125. data/lib/ElasticEmail/models/list_update_payload.rb +2 -2
  126. data/lib/ElasticEmail/models/log_job_status.rb +2 -2
  127. data/lib/ElasticEmail/models/log_status_summary.rb +2 -2
  128. data/lib/ElasticEmail/models/merge_email_payload.rb +7 -5
  129. data/lib/ElasticEmail/models/message_attachment.rb +10 -3
  130. data/lib/ElasticEmail/models/message_category.rb +2 -2
  131. data/lib/ElasticEmail/models/new_api_key.rb +2 -2
  132. data/lib/ElasticEmail/models/new_smtp_credentials.rb +4 -3
  133. data/lib/ElasticEmail/models/options.rb +4 -3
  134. data/lib/ElasticEmail/models/recipient_event.rb +6 -4
  135. data/lib/ElasticEmail/models/segment.rb +2 -2
  136. data/lib/ElasticEmail/models/segment_payload.rb +12 -2
  137. data/lib/ElasticEmail/models/smtp_credentials.rb +4 -3
  138. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +7 -2
  139. data/lib/ElasticEmail/models/sort_order_item.rb +13 -2
  140. data/lib/ElasticEmail/models/split_optimization_type.rb +2 -2
  141. data/lib/ElasticEmail/models/split_options.rb +4 -3
  142. data/lib/ElasticEmail/models/sub_account_info.rb +4 -4
  143. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +7 -2
  144. data/lib/ElasticEmail/models/subaccount_email_settings.rb +2 -2
  145. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +2 -2
  146. data/lib/ElasticEmail/models/subaccount_payload.rb +12 -3
  147. data/lib/ElasticEmail/models/subaccount_settings_info.rb +2 -3
  148. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +2 -3
  149. data/lib/ElasticEmail/models/suppression.rb +2 -2
  150. data/lib/ElasticEmail/models/template.rb +7 -5
  151. data/lib/ElasticEmail/models/template_payload.rb +10 -4
  152. data/lib/ElasticEmail/models/template_scope.rb +37 -0
  153. data/lib/ElasticEmail/models/template_type.rb +2 -2
  154. data/lib/ElasticEmail/models/transactional_recipient.rb +7 -2
  155. data/lib/ElasticEmail/models/utm.rb +2 -2
  156. data/lib/ElasticEmail/models/verification_file_result.rb +4 -4
  157. data/lib/ElasticEmail/models/verification_file_result_details.rb +4 -4
  158. data/lib/ElasticEmail/models/verification_status.rb +2 -2
  159. data/lib/ElasticEmail/version.rb +3 -3
  160. data/lib/ElasticEmail.rb +3 -3
  161. data/spec/api_client_spec.rb +4 -4
  162. data/spec/configuration_spec.rb +2 -2
  163. data/spec/models/template_scope_spec.rb +28 -0
  164. data/spec/spec_helper.rb +2 -2
  165. metadata +92 -86
  166. data/DIFF +0 -0
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -116,7 +116,10 @@ module ElasticEmail
116
116
  # HTTP header 'Accept' (if needed)
117
117
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
118
118
  # HTTP header 'Content-Type'
119
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
119
+ content_type = @api_client.select_header_content_type(['application/json'])
120
+ if !content_type.nil?
121
+ header_params['Content-Type'] = content_type
122
+ end
120
123
 
121
124
  # form parameters
122
125
  form_params = opts[:form_params] || {}
@@ -181,7 +184,10 @@ module ElasticEmail
181
184
  # HTTP header 'Accept' (if needed)
182
185
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
183
186
  # HTTP header 'Content-Type'
184
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
187
+ content_type = @api_client.select_header_content_type(['application/json'])
188
+ if !content_type.nil?
189
+ header_params['Content-Type'] = content_type
190
+ end
185
191
 
186
192
  # form parameters
187
193
  form_params = opts[:form_params] || {}
@@ -246,7 +252,10 @@ module ElasticEmail
246
252
  # HTTP header 'Accept' (if needed)
247
253
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
248
254
  # HTTP header 'Content-Type'
249
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
255
+ content_type = @api_client.select_header_content_type(['application/json'])
256
+ if !content_type.nil?
257
+ header_params['Content-Type'] = content_type
258
+ end
250
259
 
251
260
  # form parameters
252
261
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -25,7 +25,7 @@ module ElasticEmail
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Time] :from Starting date for search in YYYY-MM-DDThh:mm:ss format.
27
27
  # @option opts [Time] :to Ending date for search in YYYY-MM-DDThh:mm:ss format.
28
- # @option opts [EventsOrderBy] :order_by
28
+ # @option opts [EventsOrderBy] :order_by (default to 'DateDescending')
29
29
  # @option opts [Integer] :limit Maximum number of returned items.
30
30
  # @option opts [Integer] :offset How many items should be returned ahead.
31
31
  # @return [Array<RecipientEvent>]
@@ -104,8 +104,8 @@ module ElasticEmail
104
104
  # @option opts [Array<EventType>] :event_types Types of Events to return
105
105
  # @option opts [Time] :from Starting date for search in YYYY-MM-DDThh:mm:ss format.
106
106
  # @option opts [Time] :to Ending date for search in YYYY-MM-DDThh:mm:ss format.
107
- # @option opts [ExportFileFormats] :file_format Format of the exported file
108
- # @option opts [CompressionFormat] :compression_format FileResponse compression format. None or Zip.
107
+ # @option opts [ExportFileFormats] :file_format Format of the exported file (default to 'Csv')
108
+ # @option opts [CompressionFormat] :compression_format FileResponse compression format. None or Zip. (default to 'None')
109
109
  # @option opts [String] :file_name Name of your file including extension.
110
110
  # @return [ExportLink]
111
111
  def events_channels_by_name_export_post(name, opts = {})
@@ -185,7 +185,7 @@ module ElasticEmail
185
185
  # @option opts [Array<EventType>] :event_types Types of Events to return
186
186
  # @option opts [Time] :from Starting date for search in YYYY-MM-DDThh:mm:ss format.
187
187
  # @option opts [Time] :to Ending date for search in YYYY-MM-DDThh:mm:ss format.
188
- # @option opts [EventsOrderBy] :order_by
188
+ # @option opts [EventsOrderBy] :order_by (default to 'DateDescending')
189
189
  # @option opts [Integer] :limit How many items to load. Maximum for this request is 1000 items
190
190
  # @option opts [Integer] :offset How many items should be returned ahead.
191
191
  # @return [Array<RecipientEvent>]
@@ -391,8 +391,8 @@ module ElasticEmail
391
391
  # @option opts [Array<EventType>] :event_types Types of Events to return
392
392
  # @option opts [Time] :from Starting date for search in YYYY-MM-DDThh:mm:ss format.
393
393
  # @option opts [Time] :to Ending date for search in YYYY-MM-DDThh:mm:ss format.
394
- # @option opts [ExportFileFormats] :file_format Format of the exported file
395
- # @option opts [CompressionFormat] :compression_format FileResponse compression format. None or Zip.
394
+ # @option opts [ExportFileFormats] :file_format Format of the exported file (default to 'Csv')
395
+ # @option opts [CompressionFormat] :compression_format FileResponse compression format. None or Zip. (default to 'None')
396
396
  # @option opts [String] :file_name Name of your file including extension.
397
397
  # @return [ExportLink]
398
398
  def events_export_post(opts = {})
@@ -466,7 +466,7 @@ module ElasticEmail
466
466
  # @option opts [Array<EventType>] :event_types Types of Events to return
467
467
  # @option opts [Time] :from Starting date for search in YYYY-MM-DDThh:mm:ss format.
468
468
  # @option opts [Time] :to Ending date for search in YYYY-MM-DDThh:mm:ss format.
469
- # @option opts [EventsOrderBy] :order_by
469
+ # @option opts [EventsOrderBy] :order_by (default to 'DateDescending')
470
470
  # @option opts [Integer] :limit How many items to load. Maximum for this request is 1000 items
471
471
  # @option opts [Integer] :offset How many items should be returned ahead.
472
472
  # @return [Array<RecipientEvent>]
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -306,7 +306,10 @@ module ElasticEmail
306
306
  # HTTP header 'Accept' (if needed)
307
307
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
308
  # HTTP header 'Content-Type'
309
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
309
+ content_type = @api_client.select_header_content_type(['application/json'])
310
+ if !content_type.nil?
311
+ header_params['Content-Type'] = content_type
312
+ end
310
313
 
311
314
  # form parameters
312
315
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -183,7 +183,10 @@ module ElasticEmail
183
183
  # HTTP header 'Accept' (if needed)
184
184
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
185
  # HTTP header 'Content-Type'
186
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
186
+ content_type = @api_client.select_header_content_type(['application/json'])
187
+ if !content_type.nil?
188
+ header_params['Content-Type'] = content_type
189
+ end
187
190
 
188
191
  # form parameters
189
192
  form_params = opts[:form_params] || {}
@@ -305,7 +308,10 @@ module ElasticEmail
305
308
  # HTTP header 'Accept' (if needed)
306
309
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
307
310
  # HTTP header 'Content-Type'
308
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
311
+ content_type = @api_client.select_header_content_type(['application/json'])
312
+ if !content_type.nil?
313
+ header_params['Content-Type'] = content_type
314
+ end
309
315
 
310
316
  # form parameters
311
317
  form_params = opts[:form_params] || {}
@@ -370,7 +376,10 @@ module ElasticEmail
370
376
  # HTTP header 'Accept' (if needed)
371
377
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
372
378
  # HTTP header 'Content-Type'
373
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
379
+ content_type = @api_client.select_header_content_type(['application/json'])
380
+ if !content_type.nil?
381
+ header_params['Content-Type'] = content_type
382
+ end
374
383
 
375
384
  # form parameters
376
385
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -59,7 +59,10 @@ module ElasticEmail
59
59
  # HTTP header 'Accept' (if needed)
60
60
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
61
  # HTTP header 'Content-Type'
62
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
62
+ content_type = @api_client.select_header_content_type(['application/json'])
63
+ if !content_type.nil?
64
+ header_params['Content-Type'] = content_type
65
+ end
63
66
 
64
67
  # form parameters
65
68
  form_params = opts[:form_params] || {}
@@ -128,7 +131,10 @@ module ElasticEmail
128
131
  # header parameters
129
132
  header_params = opts[:header_params] || {}
130
133
  # HTTP header 'Content-Type'
131
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
134
+ content_type = @api_client.select_header_content_type(['application/json'])
135
+ if !content_type.nil?
136
+ header_params['Content-Type'] = content_type
137
+ end
132
138
 
133
139
  # form parameters
134
140
  form_params = opts[:form_params] || {}
@@ -323,7 +329,10 @@ module ElasticEmail
323
329
  # HTTP header 'Accept' (if needed)
324
330
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
325
331
  # HTTP header 'Content-Type'
326
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
332
+ content_type = @api_client.select_header_content_type(['application/json'])
333
+ if !content_type.nil?
334
+ header_params['Content-Type'] = content_type
335
+ end
327
336
 
328
337
  # form parameters
329
338
  form_params = opts[:form_params] || {}
@@ -451,7 +460,10 @@ module ElasticEmail
451
460
  # HTTP header 'Accept' (if needed)
452
461
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
453
462
  # HTTP header 'Content-Type'
454
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
463
+ content_type = @api_client.select_header_content_type(['application/json'])
464
+ if !content_type.nil?
465
+ header_params['Content-Type'] = content_type
466
+ end
455
467
 
456
468
  # form parameters
457
469
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -189,7 +189,10 @@ module ElasticEmail
189
189
  # HTTP header 'Accept' (if needed)
190
190
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
191
191
  # HTTP header 'Content-Type'
192
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
192
+ content_type = @api_client.select_header_content_type(['application/json'])
193
+ if !content_type.nil?
194
+ header_params['Content-Type'] = content_type
195
+ end
193
196
 
194
197
  # form parameters
195
198
  form_params = opts[:form_params] || {}
@@ -314,7 +317,10 @@ module ElasticEmail
314
317
  # HTTP header 'Accept' (if needed)
315
318
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
316
319
  # HTTP header 'Content-Type'
317
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
320
+ content_type = @api_client.select_header_content_type(['application/json'])
321
+ if !content_type.nil?
322
+ header_params['Content-Type'] = content_type
323
+ end
318
324
 
319
325
  # form parameters
320
326
  form_params = opts[:form_params] || {}
@@ -515,7 +521,10 @@ module ElasticEmail
515
521
  # HTTP header 'Accept' (if needed)
516
522
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
517
523
  # HTTP header 'Content-Type'
518
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
524
+ content_type = @api_client.select_header_content_type(['application/json'])
525
+ if !content_type.nil?
526
+ header_params['Content-Type'] = content_type
527
+ end
519
528
 
520
529
  # form parameters
521
530
  form_params = opts[:form_params] || {}
@@ -640,7 +649,10 @@ module ElasticEmail
640
649
  # HTTP header 'Accept' (if needed)
641
650
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
642
651
  # HTTP header 'Content-Type'
643
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
652
+ content_type = @api_client.select_header_content_type(['application/json'])
653
+ if !content_type.nil?
654
+ header_params['Content-Type'] = content_type
655
+ end
644
656
 
645
657
  # form parameters
646
658
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -183,7 +183,10 @@ module ElasticEmail
183
183
  # HTTP header 'Accept' (if needed)
184
184
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
185
  # HTTP header 'Content-Type'
186
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
186
+ content_type = @api_client.select_header_content_type(['application/json'])
187
+ if !content_type.nil?
188
+ header_params['Content-Type'] = content_type
189
+ end
187
190
 
188
191
  # form parameters
189
192
  form_params = opts[:form_params] || {}
@@ -311,7 +314,10 @@ module ElasticEmail
311
314
  # HTTP header 'Accept' (if needed)
312
315
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
313
316
  # HTTP header 'Content-Type'
314
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
317
+ content_type = @api_client.select_header_content_type(['application/json'])
318
+ if !content_type.nil?
319
+ header_params['Content-Type'] = content_type
320
+ end
315
321
 
316
322
  # form parameters
317
323
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.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. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -57,7 +57,10 @@ module ElasticEmail
57
57
  # header parameters
58
58
  header_params = opts[:header_params] || {}
59
59
  # HTTP header 'Content-Type'
60
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
60
+ content_type = @api_client.select_header_content_type(['application/json'])
61
+ if !content_type.nil?
62
+ header_params['Content-Type'] = content_type
63
+ end
61
64
 
62
65
  # form parameters
63
66
  form_params = opts[:form_params] || {}
@@ -252,7 +255,10 @@ module ElasticEmail
252
255
  # HTTP header 'Accept' (if needed)
253
256
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
254
257
  # HTTP header 'Content-Type'
255
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
258
+ content_type = @api_client.select_header_content_type(['application/json'])
259
+ if !content_type.nil?
260
+ header_params['Content-Type'] = content_type
261
+ end
256
262
 
257
263
  # form parameters
258
264
  form_params = opts[:form_params] || {}
@@ -380,7 +386,10 @@ module ElasticEmail
380
386
  # HTTP header 'Accept' (if needed)
381
387
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
382
388
  # HTTP header 'Content-Type'
383
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
389
+ content_type = @api_client.select_header_content_type(['application/json'])
390
+ if !content_type.nil?
391
+ header_params['Content-Type'] = content_type
392
+ end
384
393
 
385
394
  # form parameters
386
395
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -113,7 +113,10 @@ module ElasticEmail
113
113
  # header parameters
114
114
  header_params = opts[:header_params] || {}
115
115
  # HTTP header 'Content-Type'
116
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
116
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
117
+ if !content_type.nil?
118
+ header_params['Content-Type'] = content_type
119
+ end
117
120
 
118
121
  # form parameters
119
122
  form_params = opts[:form_params] || {}
@@ -179,7 +182,10 @@ module ElasticEmail
179
182
  # HTTP header 'Accept' (if needed)
180
183
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
181
184
  # HTTP header 'Content-Type'
182
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
185
+ content_type = @api_client.select_header_content_type(['application/json'])
186
+ if !content_type.nil?
187
+ header_params['Content-Type'] = content_type
188
+ end
183
189
 
184
190
  # form parameters
185
191
  form_params = opts[:form_params] || {}
@@ -428,7 +434,10 @@ module ElasticEmail
428
434
  # header parameters
429
435
  header_params = opts[:header_params] || {}
430
436
  # HTTP header 'Content-Type'
431
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
437
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
438
+ if !content_type.nil?
439
+ header_params['Content-Type'] = content_type
440
+ end
432
441
 
433
442
  # form parameters
434
443
  form_params = opts[:form_params] || {}
@@ -494,7 +503,10 @@ module ElasticEmail
494
503
  # HTTP header 'Accept' (if needed)
495
504
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
496
505
  # HTTP header 'Content-Type'
497
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
506
+ content_type = @api_client.select_header_content_type(['application/json'])
507
+ if !content_type.nil?
508
+ header_params['Content-Type'] = content_type
509
+ end
498
510
 
499
511
  # form parameters
500
512
  form_params = opts[:form_params] || {}
@@ -682,7 +694,10 @@ module ElasticEmail
682
694
  # header parameters
683
695
  header_params = opts[:header_params] || {}
684
696
  # HTTP header 'Content-Type'
685
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
697
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
698
+ if !content_type.nil?
699
+ header_params['Content-Type'] = content_type
700
+ end
686
701
 
687
702
  # form parameters
688
703
  form_params = opts[:form_params] || {}
@@ -748,7 +763,10 @@ module ElasticEmail
748
763
  # HTTP header 'Accept' (if needed)
749
764
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
750
765
  # HTTP header 'Content-Type'
751
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
766
+ content_type = @api_client.select_header_content_type(['application/json'])
767
+ if !content_type.nil?
768
+ header_params['Content-Type'] = content_type
769
+ end
752
770
 
753
771
  # form parameters
754
772
  form_params = opts[:form_params] || {}
@@ -1,12 +1,12 @@
1
1
  =begin
2
2
  #Elastic Email REST API
3
3
 
4
- #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. To start using this API, you will need your Access Token (available <a href=\"https://elasticemail.com/account#/settings/new/manage-api\">here</a>). Remember to keep it safe. Required access levels are listed in the given request’s description. This is the documentation for REST API. If you’d like to read our legacy documentation regarding Web API v2 click <a href=\"https://api.elasticemail.com/public/help\">here</a>.
4
+ #This API is based on the REST API architecture, allowing the user to easily manage their data with this resource-based approach. Every API call is established on which specific request type (GET, POST, PUT, DELETE) will be used. The API has a limit of 20 concurrent connections and a hard timeout of 600 seconds per request. To start using this API, you will need your Access Token (available <a target=\"_blank\" href=\"https://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>
5
5
 
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -183,7 +183,10 @@ module ElasticEmail
183
183
  # HTTP header 'Accept' (if needed)
184
184
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
185
  # HTTP header 'Content-Type'
186
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
186
+ content_type = @api_client.select_header_content_type(['application/json'])
187
+ if !content_type.nil?
188
+ header_params['Content-Type'] = content_type
189
+ end
187
190
 
188
191
  # form parameters
189
192
  form_params = opts[:form_params] || {}
@@ -216,7 +219,7 @@ module ElasticEmail
216
219
 
217
220
  # Load Templates
218
221
  # Returns a list of templates for the specified type. Required Access Level: ViewTemplates
219
- # @param scope_type [Array<TemplateScopeType>] Return templates with specified scope only
222
+ # @param scope_type [Array<TemplateScope>] Return templates with specified scope only
220
223
  # @param [Hash] opts the optional parameters
221
224
  # @option opts [Array<TemplateType>] :template_types Return templates with specified type only
222
225
  # @option opts [Integer] :limit Maximum number of returned items.
@@ -229,7 +232,7 @@ module ElasticEmail
229
232
 
230
233
  # Load Templates
231
234
  # Returns a list of templates for the specified type. Required Access Level: ViewTemplates
232
- # @param scope_type [Array<TemplateScopeType>] Return templates with specified scope only
235
+ # @param scope_type [Array<TemplateScope>] Return templates with specified scope only
233
236
  # @param [Hash] opts the optional parameters
234
237
  # @option opts [Array<TemplateType>] :template_types Return templates with specified type only
235
238
  # @option opts [Integer] :limit Maximum number of returned items.
@@ -321,7 +324,10 @@ module ElasticEmail
321
324
  # HTTP header 'Accept' (if needed)
322
325
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
323
326
  # HTTP header 'Content-Type'
324
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
327
+ content_type = @api_client.select_header_content_type(['application/json'])
328
+ if !content_type.nil?
329
+ header_params['Content-Type'] = content_type
330
+ end
325
331
 
326
332
  # form parameters
327
333
  form_params = opts[:form_params] || {}