ElasticEmail 4.0.13 → 4.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/ElasticEmail.gemspec +1 -1
  3. data/README.md +4 -4
  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/SubaccountPayload.md +1 -1
  30. data/docs/SubaccountSettingsInfo.md +1 -1
  31. data/docs/SubaccountSettingsInfoPayload.md +1 -1
  32. data/docs/Template.md +2 -2
  33. data/docs/TemplatePayload.md +1 -1
  34. data/docs/VerificationFileResult.md +2 -2
  35. data/docs/VerificationFileResultDetails.md +2 -2
  36. data/lib/ElasticEmail/api/campaigns_api.rb +9 -3
  37. data/lib/ElasticEmail/api/contacts_api.rb +19 -7
  38. data/lib/ElasticEmail/api/emails_api.rb +13 -4
  39. data/lib/ElasticEmail/api/events_api.rb +8 -8
  40. data/lib/ElasticEmail/api/files_api.rb +5 -2
  41. data/lib/ElasticEmail/api/inbound_route_api.rb +13 -4
  42. data/lib/ElasticEmail/api/lists_api.rb +17 -5
  43. data/lib/ElasticEmail/api/security_api.rb +17 -5
  44. data/lib/ElasticEmail/api/segments_api.rb +9 -3
  45. data/lib/ElasticEmail/api/statistics_api.rb +1 -1
  46. data/lib/ElasticEmail/api/sub_accounts_api.rb +13 -4
  47. data/lib/ElasticEmail/api/suppressions_api.rb +25 -7
  48. data/lib/ElasticEmail/api/templates_api.rb +9 -3
  49. data/lib/ElasticEmail/api/verifications_api.rb +5 -2
  50. data/lib/ElasticEmail/api_client.rb +4 -4
  51. data/lib/ElasticEmail/api_error.rb +1 -1
  52. data/lib/ElasticEmail/configuration.rb +3 -2
  53. data/lib/ElasticEmail/models/access_level.rb +1 -1
  54. data/lib/ElasticEmail/models/account_status_enum.rb +1 -1
  55. data/lib/ElasticEmail/models/api_key.rb +1 -1
  56. data/lib/ElasticEmail/models/api_key_payload.rb +1 -1
  57. data/lib/ElasticEmail/models/body_content_type.rb +1 -1
  58. data/lib/ElasticEmail/models/body_part.rb +3 -2
  59. data/lib/ElasticEmail/models/campaign.rb +3 -4
  60. data/lib/ElasticEmail/models/campaign_options.rb +3 -3
  61. data/lib/ElasticEmail/models/campaign_recipient.rb +1 -1
  62. data/lib/ElasticEmail/models/campaign_status.rb +1 -1
  63. data/lib/ElasticEmail/models/campaign_template.rb +1 -2
  64. data/lib/ElasticEmail/models/channel_log_status_summary.rb +1 -1
  65. data/lib/ElasticEmail/models/compression_format.rb +1 -1
  66. data/lib/ElasticEmail/models/consent_data.rb +3 -2
  67. data/lib/ElasticEmail/models/consent_tracking.rb +1 -1
  68. data/lib/ElasticEmail/models/contact.rb +5 -4
  69. data/lib/ElasticEmail/models/contact_activity.rb +1 -1
  70. data/lib/ElasticEmail/models/contact_hist_event_type.rb +1 -1
  71. data/lib/ElasticEmail/models/contact_history.rb +3 -2
  72. data/lib/ElasticEmail/models/contact_payload.rb +3 -2
  73. data/lib/ElasticEmail/models/contact_source.rb +1 -1
  74. data/lib/ElasticEmail/models/contact_status.rb +1 -1
  75. data/lib/ElasticEmail/models/contact_update_payload.rb +1 -1
  76. data/lib/ElasticEmail/models/contacts_list.rb +1 -1
  77. data/lib/ElasticEmail/models/delivery_optimization_type.rb +1 -1
  78. data/lib/ElasticEmail/models/email_content.rb +1 -2
  79. data/lib/ElasticEmail/models/email_data.rb +1 -3
  80. data/lib/ElasticEmail/models/email_message_data.rb +2 -4
  81. data/lib/ElasticEmail/models/email_recipient.rb +2 -2
  82. data/lib/ElasticEmail/models/email_send.rb +1 -1
  83. data/lib/ElasticEmail/models/email_status.rb +3 -2
  84. data/lib/ElasticEmail/models/email_transactional_message_data.rb +1 -4
  85. data/lib/ElasticEmail/models/email_validation_result.rb +1 -1
  86. data/lib/ElasticEmail/models/email_validation_status.rb +1 -1
  87. data/lib/ElasticEmail/models/email_view.rb +1 -1
  88. data/lib/ElasticEmail/models/emails_payload.rb +1 -1
  89. data/lib/ElasticEmail/models/encoding_type.rb +1 -1
  90. data/lib/ElasticEmail/models/event_type.rb +1 -1
  91. data/lib/ElasticEmail/models/events_order_by.rb +1 -1
  92. data/lib/ElasticEmail/models/export_file_formats.rb +1 -1
  93. data/lib/ElasticEmail/models/export_link.rb +1 -1
  94. data/lib/ElasticEmail/models/export_status.rb +1 -1
  95. data/lib/ElasticEmail/models/file_info.rb +1 -1
  96. data/lib/ElasticEmail/models/file_payload.rb +1 -1
  97. data/lib/ElasticEmail/models/file_upload_result.rb +1 -1
  98. data/lib/ElasticEmail/models/inbound_payload.rb +5 -3
  99. data/lib/ElasticEmail/models/inbound_route.rb +5 -3
  100. data/lib/ElasticEmail/models/inbound_route_action_type.rb +1 -1
  101. data/lib/ElasticEmail/models/inbound_route_filter_type.rb +1 -1
  102. data/lib/ElasticEmail/models/list_payload.rb +1 -1
  103. data/lib/ElasticEmail/models/list_update_payload.rb +1 -1
  104. data/lib/ElasticEmail/models/log_job_status.rb +1 -1
  105. data/lib/ElasticEmail/models/log_status_summary.rb +1 -1
  106. data/lib/ElasticEmail/models/merge_email_payload.rb +1 -4
  107. data/lib/ElasticEmail/models/message_attachment.rb +1 -1
  108. data/lib/ElasticEmail/models/message_category.rb +1 -1
  109. data/lib/ElasticEmail/models/new_api_key.rb +1 -1
  110. data/lib/ElasticEmail/models/new_smtp_credentials.rb +3 -2
  111. data/lib/ElasticEmail/models/options.rb +3 -2
  112. data/lib/ElasticEmail/models/recipient_event.rb +5 -3
  113. data/lib/ElasticEmail/models/segment.rb +1 -1
  114. data/lib/ElasticEmail/models/segment_payload.rb +1 -1
  115. data/lib/ElasticEmail/models/smtp_credentials.rb +3 -2
  116. data/lib/ElasticEmail/models/smtp_credentials_payload.rb +1 -1
  117. data/lib/ElasticEmail/models/sort_order_item.rb +1 -1
  118. data/lib/ElasticEmail/models/split_optimization_type.rb +1 -1
  119. data/lib/ElasticEmail/models/split_options.rb +3 -2
  120. data/lib/ElasticEmail/models/sub_account_info.rb +3 -3
  121. data/lib/ElasticEmail/models/subaccount_email_credits_payload.rb +1 -1
  122. data/lib/ElasticEmail/models/subaccount_email_settings.rb +1 -1
  123. data/lib/ElasticEmail/models/subaccount_email_settings_payload.rb +1 -1
  124. data/lib/ElasticEmail/models/subaccount_payload.rb +1 -2
  125. data/lib/ElasticEmail/models/subaccount_settings_info.rb +1 -2
  126. data/lib/ElasticEmail/models/subaccount_settings_info_payload.rb +1 -2
  127. data/lib/ElasticEmail/models/suppression.rb +1 -1
  128. data/lib/ElasticEmail/models/template.rb +5 -3
  129. data/lib/ElasticEmail/models/template_payload.rb +3 -2
  130. data/lib/ElasticEmail/models/template_scope.rb +1 -1
  131. data/lib/ElasticEmail/models/template_type.rb +1 -1
  132. data/lib/ElasticEmail/models/transactional_recipient.rb +1 -1
  133. data/lib/ElasticEmail/models/utm.rb +1 -1
  134. data/lib/ElasticEmail/models/verification_file_result.rb +3 -3
  135. data/lib/ElasticEmail/models/verification_file_result_details.rb +3 -3
  136. data/lib/ElasticEmail/models/verification_status.rb +1 -1
  137. data/lib/ElasticEmail/version.rb +2 -2
  138. data/lib/ElasticEmail.rb +1 -1
  139. data/spec/api_client_spec.rb +3 -3
  140. data/spec/configuration_spec.rb +1 -1
  141. data/spec/spec_helper.rb +1 -1
  142. metadata +2 -2
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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>]
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.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] || {}
@@ -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] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -490,7 +490,10 @@ module ElasticEmail
490
490
  # HTTP header 'Accept' (if needed)
491
491
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
492
492
  # HTTP header 'Content-Type'
493
- header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
493
+ content_type = @api_client.select_header_content_type(['multipart/form-data'])
494
+ if !content_type.nil?
495
+ header_params['Content-Type'] = content_type
496
+ end
494
497
 
495
498
  # form parameters
496
499
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -296,7 +296,7 @@ module ElasticEmail
296
296
  @config.base_url(opts[:operation]) + path
297
297
  end
298
298
 
299
- # Update hearder and query params based on authentication settings.
299
+ # Update header and query params based on authentication settings.
300
300
  #
301
301
  # @param [Hash] header_params Header parameters
302
302
  # @param [Hash] query_params Query parameters
@@ -335,8 +335,8 @@ module ElasticEmail
335
335
  # @param [Array] content_types array for Content-Type
336
336
  # @return [String] the Content-Type header (e.g. application/json)
337
337
  def select_header_content_type(content_types)
338
- # use application/json by default
339
- return 'application/json' if content_types.nil? || content_types.empty?
338
+ # return nil by default
339
+ return if content_types.nil? || content_types.empty?
340
340
  # use JSON when present, otherwise use the first one
341
341
  json_content_type = content_types.find { |s| json_mime?(s) }
342
342
  json_content_type || content_types.first
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -147,13 +147,13 @@ module ElasticEmail
147
147
  @server_operation_variables = {}
148
148
  @api_key = {}
149
149
  @api_key_prefix = {}
150
- @timeout = 0
151
150
  @client_side_validation = true
152
151
  @verify_ssl = true
153
152
  @verify_ssl_host = true
154
153
  @params_encoding = nil
155
154
  @cert_file = nil
156
155
  @key_file = nil
156
+ @timeout = 0
157
157
  @debugging = false
158
158
  @inject_format = false
159
159
  @force_ending_format = false
@@ -273,5 +273,6 @@ module ElasticEmail
273
273
 
274
274
  url
275
275
  end
276
+
276
277
  end
277
278
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 4.0.0
7
7
  Contact: support@elasticemail.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.2.1
9
+ OpenAPI Generator version: 5.3.0
10
10
 
11
11
  =end
12
12
 
@@ -16,7 +16,6 @@ require 'time'
16
16
  module ElasticEmail
17
17
  # Email body part with user-provided MIME type (text/html, text/plain, etc)
18
18
  class BodyPart
19
- # Type of the body part
20
19
  attr_accessor :content_type
21
20
 
22
21
  # Actual content of the body part
@@ -71,6 +70,8 @@ module ElasticEmail
71
70
 
72
71
  if attributes.key?(:'content_type')
73
72
  self.content_type = attributes[:'content_type']
73
+ else
74
+ self.content_type = 'HTML'
74
75
  end
75
76
 
76
77
  if attributes.key?(:'content')