mailslurp_client 15.0.1 → 15.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
  10. data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
  12. data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
  13. data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
  14. data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
  21. data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
  25. data/lib/mailslurp_client/configuration.rb +4 -4
  26. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
  27. data/lib/mailslurp_client/models/alias_dto.rb +45 -56
  28. data/lib/mailslurp_client/models/alias_projection.rb +42 -72
  29. data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
  30. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
  31. data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
  32. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
  33. data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
  34. data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
  35. data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
  36. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
  37. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  38. data/lib/mailslurp_client/models/condition_option.rb +2 -2
  39. data/lib/mailslurp_client/models/contact_dto.rb +53 -73
  40. data/lib/mailslurp_client/models/contact_projection.rb +42 -52
  41. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  42. data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
  43. data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
  44. data/lib/mailslurp_client/models/create_group_options.rb +0 -5
  45. data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
  46. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
  47. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
  48. data/lib/mailslurp_client/models/create_template_options.rb +0 -10
  49. data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
  50. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
  51. data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
  52. data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
  53. data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
  54. data/lib/mailslurp_client/models/domain_dto.rb +59 -80
  55. data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
  56. data/lib/mailslurp_client/models/domain_preview.rb +26 -50
  57. data/lib/mailslurp_client/models/email.rb +134 -135
  58. data/lib/mailslurp_client/models/email_analysis.rb +28 -28
  59. data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
  60. data/lib/mailslurp_client/models/email_links_result.rb +13 -23
  61. data/lib/mailslurp_client/models/email_preview.rb +47 -47
  62. data/lib/mailslurp_client/models/email_projection.rb +77 -97
  63. data/lib/mailslurp_client/models/email_recipients.rb +16 -15
  64. data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
  65. data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
  66. data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
  67. data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
  68. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
  69. data/lib/mailslurp_client/models/export_link.rb +0 -5
  70. data/lib/mailslurp_client/models/export_options.rb +1 -6
  71. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
  72. data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
  73. data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
  74. data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
  75. data/lib/mailslurp_client/models/group_dto.rb +22 -37
  76. data/lib/mailslurp_client/models/group_projection.rb +22 -37
  77. data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
  78. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
  79. data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
  80. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
  81. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
  82. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
  83. data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
  84. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
  85. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
  86. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
  87. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  88. data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
  89. data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
  90. data/lib/mailslurp_client/models/match_option.rb +7 -2
  91. data/lib/mailslurp_client/models/match_options.rb +16 -16
  92. data/lib/mailslurp_client/models/missed_email.rb +67 -102
  93. data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
  94. data/lib/mailslurp_client/models/name_server_record.rb +10 -30
  95. data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
  96. data/lib/mailslurp_client/models/page_alias.rb +52 -52
  97. data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
  98. data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
  99. data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
  100. data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
  101. data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
  102. data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
  103. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
  104. data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
  105. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
  106. data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
  107. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
  108. data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
  109. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
  110. data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
  111. data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
  112. data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
  113. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
  114. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
  115. data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
  116. data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
  117. data/lib/mailslurp_client/models/pageable.rb +10 -10
  118. data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
  119. data/lib/mailslurp_client/models/recipient.rb +13 -23
  120. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
  121. data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
  122. data/lib/mailslurp_client/models/send_email_options.rb +107 -115
  123. data/lib/mailslurp_client/models/sender.rb +14 -23
  124. data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
  125. data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
  126. data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
  127. data/lib/mailslurp_client/models/template_dto.rb +22 -47
  128. data/lib/mailslurp_client/models/template_projection.rb +16 -41
  129. data/lib/mailslurp_client/models/template_variable.rb +0 -10
  130. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
  131. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
  132. data/lib/mailslurp_client/models/thread_projection.rb +60 -95
  133. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
  134. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
  135. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
  136. data/lib/mailslurp_client/models/unread_count.rb +0 -5
  137. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
  138. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
  139. data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
  140. data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
  141. data/lib/mailslurp_client/models/validation_message.rb +1 -5
  142. data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
  143. data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
  144. data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
  145. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
  146. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
  147. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
  148. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
  149. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
  150. data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
  151. data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
  152. data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
  153. data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
  154. data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
  155. data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
  156. data/lib/mailslurp_client/version.rb +1 -1
  157. data/lib/mailslurp_client.rb +3 -1
  158. metadata +5 -3
@@ -20,21 +20,21 @@ module MailSlurpClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Add contacts to a group
23
- # @param group_id [String] groupId
24
- # @param update_group_contacts_option [UpdateGroupContacts] updateGroupContactsOption
23
+ # @param group_id [String]
24
+ # @param update_group_contacts [UpdateGroupContacts]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [GroupContactsDto]
27
- def add_contacts_to_group(group_id, update_group_contacts_option, opts = {})
28
- data, _status_code, _headers = add_contacts_to_group_with_http_info(group_id, update_group_contacts_option, opts)
27
+ def add_contacts_to_group(group_id, update_group_contacts, opts = {})
28
+ data, _status_code, _headers = add_contacts_to_group_with_http_info(group_id, update_group_contacts, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Add contacts to a group
33
- # @param group_id [String] groupId
34
- # @param update_group_contacts_option [UpdateGroupContacts] updateGroupContactsOption
33
+ # @param group_id [String]
34
+ # @param update_group_contacts [UpdateGroupContacts]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(GroupContactsDto, Integer, Hash)>] GroupContactsDto data, response status code and response headers
37
- def add_contacts_to_group_with_http_info(group_id, update_group_contacts_option, opts = {})
37
+ def add_contacts_to_group_with_http_info(group_id, update_group_contacts, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: GroupControllerApi.add_contacts_to_group ...'
40
40
  end
@@ -42,9 +42,9 @@ module MailSlurpClient
42
42
  if @api_client.config.client_side_validation && group_id.nil?
43
43
  fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupControllerApi.add_contacts_to_group"
44
44
  end
45
- # verify the required parameter 'update_group_contacts_option' is set
46
- if @api_client.config.client_side_validation && update_group_contacts_option.nil?
47
- fail ArgumentError, "Missing the required parameter 'update_group_contacts_option' when calling GroupControllerApi.add_contacts_to_group"
45
+ # verify the required parameter 'update_group_contacts' is set
46
+ if @api_client.config.client_side_validation && update_group_contacts.nil?
47
+ fail ArgumentError, "Missing the required parameter 'update_group_contacts' when calling GroupControllerApi.add_contacts_to_group"
48
48
  end
49
49
  # resource path
50
50
  local_var_path = '/groups/{groupId}/contacts'.sub('{' + 'groupId' + '}', CGI.escape(group_id.to_s))
@@ -55,7 +55,7 @@ module MailSlurpClient
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
57
57
  # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
58
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
59
59
  # HTTP header 'Content-Type'
60
60
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
61
61
 
@@ -63,7 +63,7 @@ module MailSlurpClient
63
63
  form_params = opts[:form_params] || {}
64
64
 
65
65
  # http body (model)
66
- post_body = opts[:body] || @api_client.object_to_http_body(update_group_contacts_option)
66
+ post_body = opts[:body] || @api_client.object_to_http_body(update_group_contacts)
67
67
 
68
68
  # return_type
69
69
  return_type = opts[:return_type] || 'GroupContactsDto'
@@ -88,7 +88,7 @@ module MailSlurpClient
88
88
  end
89
89
 
90
90
  # Create a group
91
- # @param create_group_options [CreateGroupOptions] createGroupOptions
91
+ # @param create_group_options [CreateGroupOptions]
92
92
  # @param [Hash] opts the optional parameters
93
93
  # @return [GroupDto]
94
94
  def create_group(create_group_options, opts = {})
@@ -97,7 +97,7 @@ module MailSlurpClient
97
97
  end
98
98
 
99
99
  # Create a group
100
- # @param create_group_options [CreateGroupOptions] createGroupOptions
100
+ # @param create_group_options [CreateGroupOptions]
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [Array<(GroupDto, Integer, Hash)>] GroupDto data, response status code and response headers
103
103
  def create_group_with_http_info(create_group_options, opts = {})
@@ -117,7 +117,7 @@ module MailSlurpClient
117
117
  # header parameters
118
118
  header_params = opts[:header_params] || {}
119
119
  # HTTP header 'Accept' (if needed)
120
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
120
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
121
121
  # HTTP header 'Content-Type'
122
122
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
123
123
 
@@ -150,7 +150,7 @@ module MailSlurpClient
150
150
  end
151
151
 
152
152
  # Delete group
153
- # @param group_id [String] groupId
153
+ # @param group_id [String]
154
154
  # @param [Hash] opts the optional parameters
155
155
  # @return [nil]
156
156
  def delete_group(group_id, opts = {})
@@ -159,7 +159,7 @@ module MailSlurpClient
159
159
  end
160
160
 
161
161
  # Delete group
162
- # @param group_id [String] groupId
162
+ # @param group_id [String]
163
163
  # @param [Hash] opts the optional parameters
164
164
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
165
165
  def delete_group_with_http_info(group_id, opts = {})
@@ -209,11 +209,11 @@ module MailSlurpClient
209
209
 
210
210
  # Get all Contact Groups in paginated format
211
211
  # @param [Hash] opts the optional parameters
212
- # @option opts [DateTime] :before Filter by created at before the given timestamp
213
212
  # @option opts [Integer] :page Optional page index in list pagination (default to 0)
214
- # @option opts [DateTime] :since Filter by created at after the given timestamp
215
213
  # @option opts [Integer] :size Optional page size in list pagination (default to 20)
216
214
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
215
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
216
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
217
217
  # @return [PageGroupProjection]
218
218
  def get_all_groups(opts = {})
219
219
  data, _status_code, _headers = get_all_groups_with_http_info(opts)
@@ -222,11 +222,11 @@ module MailSlurpClient
222
222
 
223
223
  # Get all Contact Groups in paginated format
224
224
  # @param [Hash] opts the optional parameters
225
- # @option opts [DateTime] :before Filter by created at before the given timestamp
226
225
  # @option opts [Integer] :page Optional page index in list pagination
227
- # @option opts [DateTime] :since Filter by created at after the given timestamp
228
226
  # @option opts [Integer] :size Optional page size in list pagination
229
227
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
228
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
229
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
230
230
  # @return [Array<(PageGroupProjection, Integer, Hash)>] PageGroupProjection data, response status code and response headers
231
231
  def get_all_groups_with_http_info(opts = {})
232
232
  if @api_client.config.debugging
@@ -241,16 +241,16 @@ module MailSlurpClient
241
241
 
242
242
  # query parameters
243
243
  query_params = opts[:query_params] || {}
244
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
245
244
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
246
- query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
247
245
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
248
246
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
247
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
248
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
249
249
 
250
250
  # header parameters
251
251
  header_params = opts[:header_params] || {}
252
252
  # HTTP header 'Accept' (if needed)
253
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
253
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
254
254
 
255
255
  # form parameters
256
256
  form_params = opts[:form_params] || {}
@@ -281,7 +281,7 @@ module MailSlurpClient
281
281
  end
282
282
 
283
283
  # Get group
284
- # @param group_id [String] groupId
284
+ # @param group_id [String]
285
285
  # @param [Hash] opts the optional parameters
286
286
  # @return [GroupDto]
287
287
  def get_group(group_id, opts = {})
@@ -290,7 +290,7 @@ module MailSlurpClient
290
290
  end
291
291
 
292
292
  # Get group
293
- # @param group_id [String] groupId
293
+ # @param group_id [String]
294
294
  # @param [Hash] opts the optional parameters
295
295
  # @return [Array<(GroupDto, Integer, Hash)>] GroupDto data, response status code and response headers
296
296
  def get_group_with_http_info(group_id, opts = {})
@@ -310,7 +310,7 @@ module MailSlurpClient
310
310
  # header parameters
311
311
  header_params = opts[:header_params] || {}
312
312
  # HTTP header 'Accept' (if needed)
313
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
313
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
314
314
 
315
315
  # form parameters
316
316
  form_params = opts[:form_params] || {}
@@ -341,7 +341,7 @@ module MailSlurpClient
341
341
  end
342
342
 
343
343
  # Get group and contacts belonging to it
344
- # @param group_id [String] groupId
344
+ # @param group_id [String]
345
345
  # @param [Hash] opts the optional parameters
346
346
  # @return [GroupContactsDto]
347
347
  def get_group_with_contacts(group_id, opts = {})
@@ -350,7 +350,7 @@ module MailSlurpClient
350
350
  end
351
351
 
352
352
  # Get group and contacts belonging to it
353
- # @param group_id [String] groupId
353
+ # @param group_id [String]
354
354
  # @param [Hash] opts the optional parameters
355
355
  # @return [Array<(GroupContactsDto, Integer, Hash)>] GroupContactsDto data, response status code and response headers
356
356
  def get_group_with_contacts_with_http_info(group_id, opts = {})
@@ -370,7 +370,7 @@ module MailSlurpClient
370
370
  # header parameters
371
371
  header_params = opts[:header_params] || {}
372
372
  # HTTP header 'Accept' (if needed)
373
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
373
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
374
374
 
375
375
  # form parameters
376
376
  form_params = opts[:form_params] || {}
@@ -401,13 +401,13 @@ module MailSlurpClient
401
401
  end
402
402
 
403
403
  # Get group and paginated contacts belonging to it
404
- # @param group_id [String] groupId
404
+ # @param group_id [String]
405
405
  # @param [Hash] opts the optional parameters
406
- # @option opts [DateTime] :before Filter by created at before the given timestamp
407
406
  # @option opts [Integer] :page Optional page index in group contact pagination (default to 0)
408
- # @option opts [DateTime] :since Filter by created at after the given timestamp
409
407
  # @option opts [Integer] :size Optional page size in group contact pagination (default to 20)
410
408
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
409
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
410
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
411
411
  # @return [PageContactProjection]
412
412
  def get_group_with_contacts_paginated(group_id, opts = {})
413
413
  data, _status_code, _headers = get_group_with_contacts_paginated_with_http_info(group_id, opts)
@@ -415,13 +415,13 @@ module MailSlurpClient
415
415
  end
416
416
 
417
417
  # Get group and paginated contacts belonging to it
418
- # @param group_id [String] groupId
418
+ # @param group_id [String]
419
419
  # @param [Hash] opts the optional parameters
420
- # @option opts [DateTime] :before Filter by created at before the given timestamp
421
420
  # @option opts [Integer] :page Optional page index in group contact pagination
422
- # @option opts [DateTime] :since Filter by created at after the given timestamp
423
421
  # @option opts [Integer] :size Optional page size in group contact pagination
424
422
  # @option opts [String] :sort Optional createdAt sort direction ASC or DESC
423
+ # @option opts [DateTime] :since Filter by created at after the given timestamp
424
+ # @option opts [DateTime] :before Filter by created at before the given timestamp
425
425
  # @return [Array<(PageContactProjection, Integer, Hash)>] PageContactProjection data, response status code and response headers
426
426
  def get_group_with_contacts_paginated_with_http_info(group_id, opts = {})
427
427
  if @api_client.config.debugging
@@ -440,16 +440,16 @@ module MailSlurpClient
440
440
 
441
441
  # query parameters
442
442
  query_params = opts[:query_params] || {}
443
- query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
444
443
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
445
- query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
446
444
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
447
445
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
446
+ query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
447
+ query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
448
448
 
449
449
  # header parameters
450
450
  header_params = opts[:header_params] || {}
451
451
  # HTTP header 'Accept' (if needed)
452
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
452
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
453
453
 
454
454
  # form parameters
455
455
  form_params = opts[:form_params] || {}
@@ -503,7 +503,7 @@ module MailSlurpClient
503
503
  # header parameters
504
504
  header_params = opts[:header_params] || {}
505
505
  # HTTP header 'Accept' (if needed)
506
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
506
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
507
507
 
508
508
  # form parameters
509
509
  form_params = opts[:form_params] || {}
@@ -534,21 +534,21 @@ module MailSlurpClient
534
534
  end
535
535
 
536
536
  # Remove contacts from a group
537
- # @param group_id [String] groupId
538
- # @param update_group_contacts_option [UpdateGroupContacts] updateGroupContactsOption
537
+ # @param group_id [String]
538
+ # @param update_group_contacts [UpdateGroupContacts]
539
539
  # @param [Hash] opts the optional parameters
540
540
  # @return [GroupContactsDto]
541
- def remove_contacts_from_group(group_id, update_group_contacts_option, opts = {})
542
- data, _status_code, _headers = remove_contacts_from_group_with_http_info(group_id, update_group_contacts_option, opts)
541
+ def remove_contacts_from_group(group_id, update_group_contacts, opts = {})
542
+ data, _status_code, _headers = remove_contacts_from_group_with_http_info(group_id, update_group_contacts, opts)
543
543
  data
544
544
  end
545
545
 
546
546
  # Remove contacts from a group
547
- # @param group_id [String] groupId
548
- # @param update_group_contacts_option [UpdateGroupContacts] updateGroupContactsOption
547
+ # @param group_id [String]
548
+ # @param update_group_contacts [UpdateGroupContacts]
549
549
  # @param [Hash] opts the optional parameters
550
550
  # @return [Array<(GroupContactsDto, Integer, Hash)>] GroupContactsDto data, response status code and response headers
551
- def remove_contacts_from_group_with_http_info(group_id, update_group_contacts_option, opts = {})
551
+ def remove_contacts_from_group_with_http_info(group_id, update_group_contacts, opts = {})
552
552
  if @api_client.config.debugging
553
553
  @api_client.config.logger.debug 'Calling API: GroupControllerApi.remove_contacts_from_group ...'
554
554
  end
@@ -556,9 +556,9 @@ module MailSlurpClient
556
556
  if @api_client.config.client_side_validation && group_id.nil?
557
557
  fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupControllerApi.remove_contacts_from_group"
558
558
  end
559
- # verify the required parameter 'update_group_contacts_option' is set
560
- if @api_client.config.client_side_validation && update_group_contacts_option.nil?
561
- fail ArgumentError, "Missing the required parameter 'update_group_contacts_option' when calling GroupControllerApi.remove_contacts_from_group"
559
+ # verify the required parameter 'update_group_contacts' is set
560
+ if @api_client.config.client_side_validation && update_group_contacts.nil?
561
+ fail ArgumentError, "Missing the required parameter 'update_group_contacts' when calling GroupControllerApi.remove_contacts_from_group"
562
562
  end
563
563
  # resource path
564
564
  local_var_path = '/groups/{groupId}/contacts'.sub('{' + 'groupId' + '}', CGI.escape(group_id.to_s))
@@ -569,7 +569,7 @@ module MailSlurpClient
569
569
  # header parameters
570
570
  header_params = opts[:header_params] || {}
571
571
  # HTTP header 'Accept' (if needed)
572
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
572
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
573
573
  # HTTP header 'Content-Type'
574
574
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
575
575
 
@@ -577,7 +577,7 @@ module MailSlurpClient
577
577
  form_params = opts[:form_params] || {}
578
578
 
579
579
  # http body (model)
580
- post_body = opts[:body] || @api_client.object_to_http_body(update_group_contacts_option)
580
+ post_body = opts[:body] || @api_client.object_to_http_body(update_group_contacts)
581
581
 
582
582
  # return_type
583
583
  return_type = opts[:return_type] || 'GroupContactsDto'