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
 
@@ -14,35 +14,35 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class BounceRecipient
17
- attr_accessor :created_at
18
-
19
17
  attr_accessor :id
20
18
 
19
+ attr_accessor :user_id
20
+
21
21
  attr_accessor :recipient
22
22
 
23
- attr_accessor :updated_at
23
+ attr_accessor :created_at
24
24
 
25
- attr_accessor :user_id
25
+ attr_accessor :updated_at
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'created_at' => :'createdAt',
31
30
  :'id' => :'id',
31
+ :'user_id' => :'userId',
32
32
  :'recipient' => :'recipient',
33
- :'updated_at' => :'updatedAt',
34
- :'user_id' => :'userId'
33
+ :'created_at' => :'createdAt',
34
+ :'updated_at' => :'updatedAt'
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute type mapping.
39
39
  def self.openapi_types
40
40
  {
41
- :'created_at' => :'DateTime',
42
41
  :'id' => :'String',
42
+ :'user_id' => :'String',
43
43
  :'recipient' => :'String',
44
- :'updated_at' => :'DateTime',
45
- :'user_id' => :'String'
44
+ :'created_at' => :'DateTime',
45
+ :'updated_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -67,24 +67,24 @@ module MailSlurpClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'created_at')
71
- self.created_at = attributes[:'created_at']
72
- end
73
-
74
70
  if attributes.key?(:'id')
75
71
  self.id = attributes[:'id']
76
72
  end
77
73
 
74
+ if attributes.key?(:'user_id')
75
+ self.user_id = attributes[:'user_id']
76
+ end
77
+
78
78
  if attributes.key?(:'recipient')
79
79
  self.recipient = attributes[:'recipient']
80
80
  end
81
81
 
82
- if attributes.key?(:'updated_at')
83
- self.updated_at = attributes[:'updated_at']
82
+ if attributes.key?(:'created_at')
83
+ self.created_at = attributes[:'created_at']
84
84
  end
85
85
 
86
- if attributes.key?(:'user_id')
87
- self.user_id = attributes[:'user_id']
86
+ if attributes.key?(:'updated_at')
87
+ self.updated_at = attributes[:'updated_at']
88
88
  end
89
89
  end
90
90
 
@@ -92,20 +92,20 @@ module MailSlurpClient
92
92
  # @return Array for valid properties with the reasons
93
93
  def list_invalid_properties
94
94
  invalid_properties = Array.new
95
- if @created_at.nil?
96
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
95
+ if @user_id.nil?
96
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
97
97
  end
98
98
 
99
99
  if @recipient.nil?
100
100
  invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
101
101
  end
102
102
 
103
- if @updated_at.nil?
104
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
103
+ if @created_at.nil?
104
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
105
105
  end
106
106
 
107
- if @user_id.nil?
108
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
107
+ if @updated_at.nil?
108
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
109
109
  end
110
110
 
111
111
  invalid_properties
@@ -114,10 +114,10 @@ module MailSlurpClient
114
114
  # Check to see if the all the properties in the model are valid
115
115
  # @return true if the model is valid
116
116
  def valid?
117
- return false if @created_at.nil?
117
+ return false if @user_id.nil?
118
118
  return false if @recipient.nil?
119
+ return false if @created_at.nil?
119
120
  return false if @updated_at.nil?
120
- return false if @user_id.nil?
121
121
  true
122
122
  end
123
123
 
@@ -126,11 +126,11 @@ module MailSlurpClient
126
126
  def ==(o)
127
127
  return true if self.equal?(o)
128
128
  self.class == o.class &&
129
- created_at == o.created_at &&
130
129
  id == o.id &&
130
+ user_id == o.user_id &&
131
131
  recipient == o.recipient &&
132
- updated_at == o.updated_at &&
133
- user_id == o.user_id
132
+ created_at == o.created_at &&
133
+ updated_at == o.updated_at
134
134
  end
135
135
 
136
136
  # @see the `==` method
@@ -142,7 +142,7 @@ module MailSlurpClient
142
142
  # Calculates hash code according to all attributes.
143
143
  # @return [Integer] Hash code
144
144
  def hash
145
- [created_at, id, recipient, updated_at, user_id].hash
145
+ [id, user_id, recipient, created_at, updated_at].hash
146
146
  end
147
147
 
148
148
  # Builds the object from hash
@@ -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
 
@@ -15,55 +15,55 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced email
17
17
  class BouncedEmailDto
18
- attr_accessor :bounce_mta
18
+ attr_accessor :id
19
19
 
20
- attr_accessor :bounce_recipients
20
+ attr_accessor :user_id
21
21
 
22
- attr_accessor :bounce_sub_type
22
+ attr_accessor :notification_type
23
23
 
24
- attr_accessor :bounce_type
24
+ attr_accessor :sent_to_recipients
25
25
 
26
- attr_accessor :created_at
26
+ attr_accessor :sender
27
27
 
28
- attr_accessor :id
28
+ attr_accessor :bounce_mta
29
29
 
30
- attr_accessor :notification_type
30
+ attr_accessor :bounce_type
31
31
 
32
- attr_accessor :sender
32
+ attr_accessor :bounce_recipients
33
33
 
34
- attr_accessor :sent_to_recipients
34
+ attr_accessor :bounce_sub_type
35
35
 
36
- attr_accessor :user_id
36
+ attr_accessor :created_at
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'bounce_mta' => :'bounceMta',
42
- :'bounce_recipients' => :'bounceRecipients',
43
- :'bounce_sub_type' => :'bounceSubType',
44
- :'bounce_type' => :'bounceType',
45
- :'created_at' => :'createdAt',
46
41
  :'id' => :'id',
42
+ :'user_id' => :'userId',
47
43
  :'notification_type' => :'notificationType',
48
- :'sender' => :'sender',
49
44
  :'sent_to_recipients' => :'sentToRecipients',
50
- :'user_id' => :'userId'
45
+ :'sender' => :'sender',
46
+ :'bounce_mta' => :'bounceMta',
47
+ :'bounce_type' => :'bounceType',
48
+ :'bounce_recipients' => :'bounceRecipients',
49
+ :'bounce_sub_type' => :'bounceSubType',
50
+ :'created_at' => :'createdAt'
51
51
  }
52
52
  end
53
53
 
54
54
  # Attribute type mapping.
55
55
  def self.openapi_types
56
56
  {
57
- :'bounce_mta' => :'String',
58
- :'bounce_recipients' => :'Array<String>',
59
- :'bounce_sub_type' => :'String',
60
- :'bounce_type' => :'String',
61
- :'created_at' => :'DateTime',
62
57
  :'id' => :'String',
58
+ :'user_id' => :'String',
63
59
  :'notification_type' => :'String',
64
- :'sender' => :'String',
65
60
  :'sent_to_recipients' => :'Array<String>',
66
- :'user_id' => :'String'
61
+ :'sender' => :'String',
62
+ :'bounce_mta' => :'String',
63
+ :'bounce_type' => :'String',
64
+ :'bounce_recipients' => :'Array<String>',
65
+ :'bounce_sub_type' => :'String',
66
+ :'created_at' => :'DateTime'
67
67
  }
68
68
  end
69
69
 
@@ -88,48 +88,48 @@ module MailSlurpClient
88
88
  h[k.to_sym] = v
89
89
  }
90
90
 
91
- if attributes.key?(:'bounce_mta')
92
- self.bounce_mta = attributes[:'bounce_mta']
91
+ if attributes.key?(:'id')
92
+ self.id = attributes[:'id']
93
93
  end
94
94
 
95
- if attributes.key?(:'bounce_recipients')
96
- if (value = attributes[:'bounce_recipients']).is_a?(Array)
97
- self.bounce_recipients = value
98
- end
95
+ if attributes.key?(:'user_id')
96
+ self.user_id = attributes[:'user_id']
99
97
  end
100
98
 
101
- if attributes.key?(:'bounce_sub_type')
102
- self.bounce_sub_type = attributes[:'bounce_sub_type']
99
+ if attributes.key?(:'notification_type')
100
+ self.notification_type = attributes[:'notification_type']
103
101
  end
104
102
 
105
- if attributes.key?(:'bounce_type')
106
- self.bounce_type = attributes[:'bounce_type']
103
+ if attributes.key?(:'sent_to_recipients')
104
+ if (value = attributes[:'sent_to_recipients']).is_a?(Array)
105
+ self.sent_to_recipients = value
106
+ end
107
107
  end
108
108
 
109
- if attributes.key?(:'created_at')
110
- self.created_at = attributes[:'created_at']
109
+ if attributes.key?(:'sender')
110
+ self.sender = attributes[:'sender']
111
111
  end
112
112
 
113
- if attributes.key?(:'id')
114
- self.id = attributes[:'id']
113
+ if attributes.key?(:'bounce_mta')
114
+ self.bounce_mta = attributes[:'bounce_mta']
115
115
  end
116
116
 
117
- if attributes.key?(:'notification_type')
118
- self.notification_type = attributes[:'notification_type']
117
+ if attributes.key?(:'bounce_type')
118
+ self.bounce_type = attributes[:'bounce_type']
119
119
  end
120
120
 
121
- if attributes.key?(:'sender')
122
- self.sender = attributes[:'sender']
121
+ if attributes.key?(:'bounce_recipients')
122
+ if (value = attributes[:'bounce_recipients']).is_a?(Array)
123
+ self.bounce_recipients = value
124
+ end
123
125
  end
124
126
 
125
- if attributes.key?(:'sent_to_recipients')
126
- if (value = attributes[:'sent_to_recipients']).is_a?(Array)
127
- self.sent_to_recipients = value
128
- end
127
+ if attributes.key?(:'bounce_sub_type')
128
+ self.bounce_sub_type = attributes[:'bounce_sub_type']
129
129
  end
130
130
 
131
- if attributes.key?(:'user_id')
132
- self.user_id = attributes[:'user_id']
131
+ if attributes.key?(:'created_at')
132
+ self.created_at = attributes[:'created_at']
133
133
  end
134
134
  end
135
135
 
@@ -137,8 +137,8 @@ module MailSlurpClient
137
137
  # @return Array for valid properties with the reasons
138
138
  def list_invalid_properties
139
139
  invalid_properties = Array.new
140
- if @created_at.nil?
141
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
140
+ if @user_id.nil?
141
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
142
142
  end
143
143
 
144
144
  if @notification_type.nil?
@@ -149,8 +149,8 @@ module MailSlurpClient
149
149
  invalid_properties.push('invalid value for "sender", sender cannot be nil.')
150
150
  end
151
151
 
152
- if @user_id.nil?
153
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
152
+ if @created_at.nil?
153
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
154
154
  end
155
155
 
156
156
  invalid_properties
@@ -159,10 +159,10 @@ module MailSlurpClient
159
159
  # Check to see if the all the properties in the model are valid
160
160
  # @return true if the model is valid
161
161
  def valid?
162
- return false if @created_at.nil?
162
+ return false if @user_id.nil?
163
163
  return false if @notification_type.nil?
164
164
  return false if @sender.nil?
165
- return false if @user_id.nil?
165
+ return false if @created_at.nil?
166
166
  true
167
167
  end
168
168
 
@@ -171,16 +171,16 @@ module MailSlurpClient
171
171
  def ==(o)
172
172
  return true if self.equal?(o)
173
173
  self.class == o.class &&
174
- bounce_mta == o.bounce_mta &&
175
- bounce_recipients == o.bounce_recipients &&
176
- bounce_sub_type == o.bounce_sub_type &&
177
- bounce_type == o.bounce_type &&
178
- created_at == o.created_at &&
179
174
  id == o.id &&
175
+ user_id == o.user_id &&
180
176
  notification_type == o.notification_type &&
181
- sender == o.sender &&
182
177
  sent_to_recipients == o.sent_to_recipients &&
183
- user_id == o.user_id
178
+ sender == o.sender &&
179
+ bounce_mta == o.bounce_mta &&
180
+ bounce_type == o.bounce_type &&
181
+ bounce_recipients == o.bounce_recipients &&
182
+ bounce_sub_type == o.bounce_sub_type &&
183
+ created_at == o.created_at
184
184
  end
185
185
 
186
186
  # @see the `==` method
@@ -192,7 +192,7 @@ module MailSlurpClient
192
192
  # Calculates hash code according to all attributes.
193
193
  # @return [Integer] Hash code
194
194
  def hash
195
- [bounce_mta, bounce_recipients, bounce_sub_type, bounce_type, created_at, id, notification_type, sender, sent_to_recipients, user_id].hash
195
+ [id, user_id, notification_type, sent_to_recipients, sender, bounce_mta, bounce_type, bounce_recipients, bounce_sub_type, created_at].hash
196
196
  end
197
197
 
198
198
  # Builds the object from hash
@@ -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
 
@@ -15,31 +15,31 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Bounced recipient
17
17
  class BouncedRecipientDto
18
- attr_accessor :created_at
19
-
20
18
  attr_accessor :id
21
19
 
20
+ attr_accessor :user_id
21
+
22
22
  attr_accessor :recipient
23
23
 
24
- attr_accessor :user_id
24
+ attr_accessor :created_at
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
- :'created_at' => :'createdAt',
30
29
  :'id' => :'id',
30
+ :'user_id' => :'userId',
31
31
  :'recipient' => :'recipient',
32
- :'user_id' => :'userId'
32
+ :'created_at' => :'createdAt'
33
33
  }
34
34
  end
35
35
 
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'created_at' => :'DateTime',
40
39
  :'id' => :'String',
40
+ :'user_id' => :'String',
41
41
  :'recipient' => :'String',
42
- :'user_id' => :'String'
42
+ :'created_at' => :'DateTime'
43
43
  }
44
44
  end
45
45
 
@@ -64,20 +64,20 @@ module MailSlurpClient
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'created_at')
68
- self.created_at = attributes[:'created_at']
69
- end
70
-
71
67
  if attributes.key?(:'id')
72
68
  self.id = attributes[:'id']
73
69
  end
74
70
 
71
+ if attributes.key?(:'user_id')
72
+ self.user_id = attributes[:'user_id']
73
+ end
74
+
75
75
  if attributes.key?(:'recipient')
76
76
  self.recipient = attributes[:'recipient']
77
77
  end
78
78
 
79
- if attributes.key?(:'user_id')
80
- self.user_id = attributes[:'user_id']
79
+ if attributes.key?(:'created_at')
80
+ self.created_at = attributes[:'created_at']
81
81
  end
82
82
  end
83
83
 
@@ -85,16 +85,16 @@ module MailSlurpClient
85
85
  # @return Array for valid properties with the reasons
86
86
  def list_invalid_properties
87
87
  invalid_properties = Array.new
88
- if @created_at.nil?
89
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
88
+ if @user_id.nil?
89
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
90
90
  end
91
91
 
92
92
  if @recipient.nil?
93
93
  invalid_properties.push('invalid value for "recipient", recipient cannot be nil.')
94
94
  end
95
95
 
96
- if @user_id.nil?
97
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
96
+ if @created_at.nil?
97
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
98
98
  end
99
99
 
100
100
  invalid_properties
@@ -103,9 +103,9 @@ module MailSlurpClient
103
103
  # Check to see if the all the properties in the model are valid
104
104
  # @return true if the model is valid
105
105
  def valid?
106
- return false if @created_at.nil?
107
- return false if @recipient.nil?
108
106
  return false if @user_id.nil?
107
+ return false if @recipient.nil?
108
+ return false if @created_at.nil?
109
109
  true
110
110
  end
111
111
 
@@ -114,10 +114,10 @@ module MailSlurpClient
114
114
  def ==(o)
115
115
  return true if self.equal?(o)
116
116
  self.class == o.class &&
117
- created_at == o.created_at &&
118
117
  id == o.id &&
118
+ user_id == o.user_id &&
119
119
  recipient == o.recipient &&
120
- user_id == o.user_id
120
+ created_at == o.created_at
121
121
  end
122
122
 
123
123
  # @see the `==` method
@@ -129,7 +129,7 @@ module MailSlurpClient
129
129
  # Calculates hash code according to all attributes.
130
130
  # @return [Integer] Hash code
131
131
  def hash
132
- [created_at, id, recipient, user_id].hash
132
+ [id, user_id, recipient, created_at].hash
133
133
  end
134
134
 
135
135
  # Builds the object from hash
@@ -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
 
@@ -72,12 +72,22 @@ module MailSlurpClient
72
72
  # @return Array for valid properties with the reasons
73
73
  def list_invalid_properties
74
74
  invalid_properties = Array.new
75
+ if @inbox_ids.nil?
76
+ invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
77
+ end
78
+
79
+ if @send_email_options.nil?
80
+ invalid_properties.push('invalid value for "send_email_options", send_email_options cannot be nil.')
81
+ end
82
+
75
83
  invalid_properties
76
84
  end
77
85
 
78
86
  # Check to see if the all the properties in the model are valid
79
87
  # @return true if the model is valid
80
88
  def valid?
89
+ return false if @inbox_ids.nil?
90
+ return false if @send_email_options.nil?
81
91
  true
82
92
  end
83
93
 
@@ -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
 
@@ -15,10 +15,10 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Options for matching emails in an inbox based on a condition such as `HAS_ATTACHMENTS=TRUE`
17
17
  class ConditionOption
18
- # The condition to evaluate against the email
18
+ # Condition of an email object that can be used to filter results
19
19
  attr_accessor :condition
20
20
 
21
- # What the condition should evaluate to. A string 'TRUE|FALSE' not a boolean.
21
+ # Expected condition value
22
22
  attr_accessor :value
23
23
 
24
24
  class EnumAttributeValidator
@@ -93,14 +93,24 @@ module MailSlurpClient
93
93
  # @return Array for valid properties with the reasons
94
94
  def list_invalid_properties
95
95
  invalid_properties = Array.new
96
+ if @condition.nil?
97
+ invalid_properties.push('invalid value for "condition", condition cannot be nil.')
98
+ end
99
+
100
+ if @value.nil?
101
+ invalid_properties.push('invalid value for "value", value cannot be nil.')
102
+ end
103
+
96
104
  invalid_properties
97
105
  end
98
106
 
99
107
  # Check to see if the all the properties in the model are valid
100
108
  # @return true if the model is valid
101
109
  def valid?
110
+ return false if @condition.nil?
102
111
  condition_validator = EnumAttributeValidator.new('String', ["HAS_ATTACHMENTS"])
103
112
  return false unless condition_validator.valid?(@condition)
113
+ return false if @value.nil?
104
114
  value_validator = EnumAttributeValidator.new('String', ["TRUE", "FALSE"])
105
115
  return false unless value_validator.valid?(@value)
106
116
  true