mailslurp_client 15.0.3 → 15.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +60 -56
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +50 -61
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +27 -19
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +16 -16
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +129 -68
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +23 -23
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +33 -33
  10. data/lib/mailslurp_client/api/email_controller_api.rb +145 -122
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +20 -20
  12. data/lib/mailslurp_client/api/export_controller_api.rb +39 -39
  13. data/lib/mailslurp_client/api/form_controller_api.rb +17 -19
  14. data/lib/mailslurp_client/api/group_controller_api.rb +53 -53
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +198 -178
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +34 -30
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +34 -30
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +27 -27
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +55 -43
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +158 -48
  21. data/lib/mailslurp_client/api/template_controller_api.rb +22 -22
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +17 -17
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +129 -89
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +103 -87
  25. data/lib/mailslurp_client/api_client.rb +1 -1
  26. data/lib/mailslurp_client/api_error.rb +1 -1
  27. data/lib/mailslurp_client/configuration.rb +3 -3
  28. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +22 -22
  29. data/lib/mailslurp_client/models/alias_dto.rb +64 -49
  30. data/lib/mailslurp_client/models/alias_projection.rb +50 -50
  31. data/lib/mailslurp_client/models/attachment_entity.rb +40 -40
  32. data/lib/mailslurp_client/models/attachment_meta_data.rb +42 -22
  33. data/lib/mailslurp_client/models/attachment_projection.rb +38 -33
  34. data/lib/mailslurp_client/models/basic_auth_options.rb +1 -1
  35. data/lib/mailslurp_client/models/bounce_projection.rb +19 -19
  36. data/lib/mailslurp_client/models/bounce_recipient.rb +31 -31
  37. data/lib/mailslurp_client/models/bounced_email_dto.rb +63 -63
  38. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +23 -23
  39. data/lib/mailslurp_client/models/bulk_send_email_options.rb +11 -1
  40. data/lib/mailslurp_client/models/condition_option.rb +13 -3
  41. data/lib/mailslurp_client/models/contact_dto.rb +63 -63
  42. data/lib/mailslurp_client/models/contact_projection.rb +39 -39
  43. data/lib/mailslurp_client/models/content_match_options.rb +6 -1
  44. data/lib/mailslurp_client/models/count_dto.rb +1 -1
  45. data/lib/mailslurp_client/models/create_alias_options.rb +11 -1
  46. data/lib/mailslurp_client/models/create_contact_options.rb +43 -43
  47. data/lib/mailslurp_client/models/create_domain_options.rb +22 -17
  48. data/lib/mailslurp_client/models/create_group_options.rb +1 -1
  49. data/lib/mailslurp_client/models/create_inbox_dto.rb +59 -59
  50. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +30 -15
  51. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +39 -24
  52. data/lib/mailslurp_client/models/create_template_options.rb +1 -1
  53. data/lib/mailslurp_client/models/create_tracking_pixel_options.rb +1 -1
  54. data/lib/mailslurp_client/models/create_webhook_options.rb +24 -19
  55. data/lib/mailslurp_client/models/describe_domain_options.rb +1 -1
  56. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +21 -21
  57. data/lib/mailslurp_client/models/dns_lookup_options.rb +30 -15
  58. data/lib/mailslurp_client/models/dns_lookup_result.rb +34 -33
  59. data/lib/mailslurp_client/models/dns_lookup_results.rb +1 -1
  60. data/lib/mailslurp_client/models/domain_dto.rb +100 -70
  61. data/lib/mailslurp_client/models/domain_name_record.rb +18 -17
  62. data/lib/mailslurp_client/models/domain_preview.rb +29 -28
  63. data/lib/mailslurp_client/models/download_attachment_dto.rb +16 -1
  64. data/lib/mailslurp_client/models/email.rb +179 -139
  65. data/lib/mailslurp_client/models/email_analysis.rb +29 -29
  66. data/lib/mailslurp_client/models/email_content_match_result.rb +19 -19
  67. data/lib/mailslurp_client/models/email_links_result.rb +19 -19
  68. data/lib/mailslurp_client/models/email_preview.rb +63 -48
  69. data/lib/mailslurp_client/models/email_projection.rb +77 -77
  70. data/lib/mailslurp_client/models/email_recipients.rb +17 -16
  71. data/lib/mailslurp_client/models/email_text_lines_result.rb +19 -19
  72. data/lib/mailslurp_client/models/email_verification_result.rb +22 -22
  73. data/lib/mailslurp_client/models/expiration_defaults.rb +17 -17
  74. data/lib/mailslurp_client/models/expired_inbox_dto.rb +19 -19
  75. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +33 -33
  76. data/lib/mailslurp_client/models/export_link.rb +1 -1
  77. data/lib/mailslurp_client/models/export_options.rb +2 -2
  78. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +19 -19
  79. data/lib/mailslurp_client/models/forward_email_options.rb +37 -32
  80. data/lib/mailslurp_client/models/gravatar_url.rb +19 -19
  81. data/lib/mailslurp_client/models/group_contacts_dto.rb +19 -19
  82. data/lib/mailslurp_client/models/group_dto.rb +28 -28
  83. data/lib/mailslurp_client/models/group_projection.rb +29 -29
  84. data/lib/mailslurp_client/models/html_validation_result.rb +27 -12
  85. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +72 -57
  86. data/lib/mailslurp_client/models/inbox_exists_dto.rb +1 -1
  87. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +48 -48
  88. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +1 -1
  89. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +19 -19
  90. data/lib/mailslurp_client/models/inbox_preview.rb +59 -39
  91. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +61 -61
  92. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +1 -1
  93. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +19 -14
  94. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  95. data/lib/mailslurp_client/models/ip_address_result.rb +1 -1
  96. data/lib/mailslurp_client/models/json_schema_dto.rb +1 -1
  97. data/lib/mailslurp_client/models/match_option.rb +18 -3
  98. data/lib/mailslurp_client/models/match_options.rb +17 -17
  99. data/lib/mailslurp_client/models/missed_email.rb +77 -77
  100. data/lib/mailslurp_client/models/missed_email_projection.rb +25 -25
  101. data/lib/mailslurp_client/models/name_server_record.rb +16 -16
  102. data/lib/mailslurp_client/models/organization_inbox_projection.rb +70 -45
  103. data/lib/mailslurp_client/models/page_alias.rb +59 -50
  104. data/lib/mailslurp_client/models/page_attachment_entity.rb +59 -50
  105. data/lib/mailslurp_client/models/page_bounced_email.rb +59 -50
  106. data/lib/mailslurp_client/models/page_bounced_recipients.rb +59 -50
  107. data/lib/mailslurp_client/models/page_contact_projection.rb +59 -50
  108. data/lib/mailslurp_client/models/page_email_preview.rb +59 -50
  109. data/lib/mailslurp_client/models/page_email_projection.rb +59 -50
  110. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +59 -50
  111. data/lib/mailslurp_client/models/page_group_projection.rb +59 -50
  112. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +59 -50
  113. data/lib/mailslurp_client/models/page_inbox_projection.rb +59 -50
  114. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +59 -50
  115. data/lib/mailslurp_client/models/page_missed_email_projection.rb +59 -50
  116. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +59 -50
  117. data/lib/mailslurp_client/models/page_sent_email_projection.rb +86 -47
  118. data/lib/mailslurp_client/models/page_template_projection.rb +59 -50
  119. data/lib/mailslurp_client/models/page_thread_projection.rb +59 -50
  120. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +59 -50
  121. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +59 -50
  122. data/lib/mailslurp_client/models/page_webhook_projection.rb +59 -50
  123. data/lib/mailslurp_client/models/page_webhook_result.rb +59 -50
  124. data/lib/mailslurp_client/models/{pageable.rb → pageable_object.rb} +32 -32
  125. data/lib/mailslurp_client/models/raw_email_json.rb +1 -1
  126. data/lib/mailslurp_client/models/recipient.rb +19 -19
  127. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +47 -35
  128. data/lib/mailslurp_client/models/reply_to_email_options.rb +57 -45
  129. data/lib/mailslurp_client/models/send_email_options.rb +112 -110
  130. data/lib/mailslurp_client/models/sender.rb +20 -19
  131. data/lib/mailslurp_client/models/sent_email_dto.rb +110 -95
  132. data/lib/mailslurp_client/models/sent_email_projection.rb +88 -87
  133. data/lib/mailslurp_client/models/set_inbox_favourited_options.rb +6 -1
  134. data/lib/mailslurp_client/models/simple_send_email_options.rb +30 -25
  135. data/lib/mailslurp_client/models/sort.rb +1 -1
  136. data/lib/mailslurp_client/models/template_dto.rb +33 -33
  137. data/lib/mailslurp_client/models/template_projection.rb +37 -37
  138. data/lib/mailslurp_client/models/template_variable.rb +1 -1
  139. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +1 -1
  140. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +1 -1
  141. data/lib/mailslurp_client/models/thread_projection.rb +71 -71
  142. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +54 -54
  143. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +42 -42
  144. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +25 -25
  145. data/lib/mailslurp_client/models/unread_count.rb +1 -1
  146. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +1 -1
  147. data/lib/mailslurp_client/models/update_alias_options.rb +1 -1
  148. data/lib/mailslurp_client/models/update_domain_options.rb +1 -1
  149. data/lib/mailslurp_client/models/update_group_contacts.rb +1 -1
  150. data/lib/mailslurp_client/models/update_inbox_options.rb +27 -27
  151. data/lib/mailslurp_client/models/upload_attachment_options.rb +15 -15
  152. data/lib/mailslurp_client/models/validation_dto.rb +11 -1
  153. data/lib/mailslurp_client/models/validation_message.rb +2 -1
  154. data/lib/mailslurp_client/models/verify_email_address_options.rb +1 -1
  155. data/lib/mailslurp_client/models/wait_for_conditions.rb +53 -53
  156. data/lib/mailslurp_client/models/webhook_dto.rb +105 -65
  157. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +83 -43
  158. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +85 -50
  159. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +79 -44
  160. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +98 -83
  161. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +140 -85
  162. data/lib/mailslurp_client/models/webhook_projection.rb +47 -47
  163. data/lib/mailslurp_client/models/webhook_redrive_result.rb +19 -19
  164. data/lib/mailslurp_client/models/webhook_result_dto.rb +102 -102
  165. data/lib/mailslurp_client/models/webhook_test_request.rb +28 -28
  166. data/lib/mailslurp_client/models/webhook_test_response.rb +14 -14
  167. data/lib/mailslurp_client/models/webhook_test_result.rb +19 -19
  168. data/lib/mailslurp_client/version.rb +2 -2
  169. data/lib/mailslurp_client.rb +4 -3
  170. metadata +5 -4
@@ -4,7 +4,7 @@
4
4
  #MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://www.mailslurp.com) - Get an [API KEY](https://app.mailslurp.com/sign-up/) - Generated [SDK Clients](https://www.mailslurp.com/docs/) - [Examples](https://github.com/mailslurp/examples) repository
5
5
 
6
6
  The version of the OpenAPI document: 6.5.2
7
-
7
+ Contact: contact@mailslurp.dev
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
@@ -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'