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
 
@@ -15,25 +15,25 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Optional filter for matching emails based on fields. For instance filter results to only include emails whose `SUBJECT` value does `CONTAIN` given match value. An example payload would be `{ matches: [{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }] }`. You can also pass conditions such as `HAS_ATTACHMENT`. If you wish to extract regex matches inside the email content see the `getEmailContentMatch` method in the EmailController.
17
17
  class MatchOptions
18
- # Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans.
19
- attr_accessor :conditions
20
-
21
18
  # Zero or more match options such as `{ field: 'SUBJECT', should: 'CONTAIN', value: 'Welcome' }`. Options are additive so if one does not match the email is excluded from results
22
19
  attr_accessor :matches
23
20
 
21
+ # Zero or more conditions such as `{ condition: 'HAS_ATTACHMENTS', value: 'TRUE' }`. Note the values are the strings `TRUE|FALSE` not booleans.
22
+ attr_accessor :conditions
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- :'conditions' => :'conditions',
28
- :'matches' => :'matches'
27
+ :'matches' => :'matches',
28
+ :'conditions' => :'conditions'
29
29
  }
30
30
  end
31
31
 
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'conditions' => :'Array<ConditionOption>',
36
- :'matches' => :'Array<MatchOption>'
35
+ :'matches' => :'Array<MatchOption>',
36
+ :'conditions' => :'Array<ConditionOption>'
37
37
  }
38
38
  end
39
39
 
@@ -58,17 +58,17 @@ module MailSlurpClient
58
58
  h[k.to_sym] = v
59
59
  }
60
60
 
61
- if attributes.key?(:'conditions')
62
- if (value = attributes[:'conditions']).is_a?(Array)
63
- self.conditions = value
64
- end
65
- end
66
-
67
61
  if attributes.key?(:'matches')
68
62
  if (value = attributes[:'matches']).is_a?(Array)
69
63
  self.matches = value
70
64
  end
71
65
  end
66
+
67
+ if attributes.key?(:'conditions')
68
+ if (value = attributes[:'conditions']).is_a?(Array)
69
+ self.conditions = value
70
+ end
71
+ end
72
72
  end
73
73
 
74
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -89,8 +89,8 @@ module MailSlurpClient
89
89
  def ==(o)
90
90
  return true if self.equal?(o)
91
91
  self.class == o.class &&
92
- conditions == o.conditions &&
93
- matches == o.matches
92
+ matches == o.matches &&
93
+ conditions == o.conditions
94
94
  end
95
95
 
96
96
  # @see the `==` method
@@ -102,7 +102,7 @@ module MailSlurpClient
102
102
  # Calculates hash code according to all attributes.
103
103
  # @return [Integer] Hash code
104
104
  def hash
105
- [conditions, matches].hash
105
+ [matches, conditions].hash
106
106
  end
107
107
 
108
108
  # 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
 
@@ -14,63 +14,63 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class MissedEmail
17
- attr_accessor :attachment_count
17
+ attr_accessor :id
18
18
 
19
- attr_accessor :bcc
19
+ attr_accessor :user_id
20
20
 
21
- attr_accessor :body_excerpt
21
+ attr_accessor :subject
22
22
 
23
- attr_accessor :cc
23
+ attr_accessor :body_excerpt
24
24
 
25
- attr_accessor :created_at
25
+ attr_accessor :attachment_count
26
26
 
27
27
  attr_accessor :from
28
28
 
29
- attr_accessor :id
29
+ attr_accessor :to
30
30
 
31
- attr_accessor :inbox_ids
31
+ attr_accessor :cc
32
32
 
33
- attr_accessor :subject
33
+ attr_accessor :bcc
34
34
 
35
- attr_accessor :to
35
+ attr_accessor :inbox_ids
36
36
 
37
- attr_accessor :updated_at
37
+ attr_accessor :created_at
38
38
 
39
- attr_accessor :user_id
39
+ attr_accessor :updated_at
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'attachment_count' => :'attachmentCount',
45
- :'bcc' => :'bcc',
46
- :'body_excerpt' => :'bodyExcerpt',
47
- :'cc' => :'cc',
48
- :'created_at' => :'createdAt',
49
- :'from' => :'from',
50
44
  :'id' => :'id',
51
- :'inbox_ids' => :'inboxIds',
45
+ :'user_id' => :'userId',
52
46
  :'subject' => :'subject',
47
+ :'body_excerpt' => :'bodyExcerpt',
48
+ :'attachment_count' => :'attachmentCount',
49
+ :'from' => :'from',
53
50
  :'to' => :'to',
54
- :'updated_at' => :'updatedAt',
55
- :'user_id' => :'userId'
51
+ :'cc' => :'cc',
52
+ :'bcc' => :'bcc',
53
+ :'inbox_ids' => :'inboxIds',
54
+ :'created_at' => :'createdAt',
55
+ :'updated_at' => :'updatedAt'
56
56
  }
57
57
  end
58
58
 
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'attachment_count' => :'Integer',
63
- :'bcc' => :'Array<String>',
64
- :'body_excerpt' => :'String',
65
- :'cc' => :'Array<String>',
66
- :'created_at' => :'DateTime',
67
- :'from' => :'String',
68
62
  :'id' => :'String',
69
- :'inbox_ids' => :'Array<String>',
63
+ :'user_id' => :'String',
70
64
  :'subject' => :'String',
65
+ :'body_excerpt' => :'String',
66
+ :'attachment_count' => :'Integer',
67
+ :'from' => :'String',
71
68
  :'to' => :'Array<String>',
72
- :'updated_at' => :'DateTime',
73
- :'user_id' => :'String'
69
+ :'cc' => :'Array<String>',
70
+ :'bcc' => :'Array<String>',
71
+ :'inbox_ids' => :'Array<String>',
72
+ :'created_at' => :'DateTime',
73
+ :'updated_at' => :'DateTime'
74
74
  }
75
75
  end
76
76
 
@@ -95,60 +95,60 @@ module MailSlurpClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'attachment_count')
99
- self.attachment_count = attributes[:'attachment_count']
98
+ if attributes.key?(:'id')
99
+ self.id = attributes[:'id']
100
100
  end
101
101
 
102
- if attributes.key?(:'bcc')
103
- if (value = attributes[:'bcc']).is_a?(Array)
104
- self.bcc = value
105
- end
102
+ if attributes.key?(:'user_id')
103
+ self.user_id = attributes[:'user_id']
106
104
  end
107
105
 
108
- if attributes.key?(:'body_excerpt')
109
- self.body_excerpt = attributes[:'body_excerpt']
106
+ if attributes.key?(:'subject')
107
+ self.subject = attributes[:'subject']
110
108
  end
111
109
 
112
- if attributes.key?(:'cc')
113
- if (value = attributes[:'cc']).is_a?(Array)
114
- self.cc = value
115
- end
110
+ if attributes.key?(:'body_excerpt')
111
+ self.body_excerpt = attributes[:'body_excerpt']
116
112
  end
117
113
 
118
- if attributes.key?(:'created_at')
119
- self.created_at = attributes[:'created_at']
114
+ if attributes.key?(:'attachment_count')
115
+ self.attachment_count = attributes[:'attachment_count']
120
116
  end
121
117
 
122
118
  if attributes.key?(:'from')
123
119
  self.from = attributes[:'from']
124
120
  end
125
121
 
126
- if attributes.key?(:'id')
127
- self.id = attributes[:'id']
122
+ if attributes.key?(:'to')
123
+ if (value = attributes[:'to']).is_a?(Array)
124
+ self.to = value
125
+ end
128
126
  end
129
127
 
130
- if attributes.key?(:'inbox_ids')
131
- if (value = attributes[:'inbox_ids']).is_a?(Array)
132
- self.inbox_ids = value
128
+ if attributes.key?(:'cc')
129
+ if (value = attributes[:'cc']).is_a?(Array)
130
+ self.cc = value
133
131
  end
134
132
  end
135
133
 
136
- if attributes.key?(:'subject')
137
- self.subject = attributes[:'subject']
134
+ if attributes.key?(:'bcc')
135
+ if (value = attributes[:'bcc']).is_a?(Array)
136
+ self.bcc = value
137
+ end
138
138
  end
139
139
 
140
- if attributes.key?(:'to')
141
- if (value = attributes[:'to']).is_a?(Array)
142
- self.to = value
140
+ if attributes.key?(:'inbox_ids')
141
+ if (value = attributes[:'inbox_ids']).is_a?(Array)
142
+ self.inbox_ids = value
143
143
  end
144
144
  end
145
145
 
146
- if attributes.key?(:'updated_at')
147
- self.updated_at = attributes[:'updated_at']
146
+ if attributes.key?(:'created_at')
147
+ self.created_at = attributes[:'created_at']
148
148
  end
149
149
 
150
- if attributes.key?(:'user_id')
151
- self.user_id = attributes[:'user_id']
150
+ if attributes.key?(:'updated_at')
151
+ self.updated_at = attributes[:'updated_at']
152
152
  end
153
153
  end
154
154
 
@@ -160,24 +160,24 @@ module MailSlurpClient
160
160
  invalid_properties.push('invalid value for "attachment_count", attachment_count cannot be nil.')
161
161
  end
162
162
 
163
- if @bcc.nil?
164
- invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
163
+ if @to.nil?
164
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
165
165
  end
166
166
 
167
167
  if @cc.nil?
168
168
  invalid_properties.push('invalid value for "cc", cc cannot be nil.')
169
169
  end
170
170
 
171
- if @created_at.nil?
172
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
171
+ if @bcc.nil?
172
+ invalid_properties.push('invalid value for "bcc", bcc cannot be nil.')
173
173
  end
174
174
 
175
175
  if @inbox_ids.nil?
176
176
  invalid_properties.push('invalid value for "inbox_ids", inbox_ids cannot be nil.')
177
177
  end
178
178
 
179
- if @to.nil?
180
- invalid_properties.push('invalid value for "to", to cannot be nil.')
179
+ if @created_at.nil?
180
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
181
181
  end
182
182
 
183
183
  if @updated_at.nil?
@@ -191,11 +191,11 @@ module MailSlurpClient
191
191
  # @return true if the model is valid
192
192
  def valid?
193
193
  return false if @attachment_count.nil?
194
- return false if @bcc.nil?
194
+ return false if @to.nil?
195
195
  return false if @cc.nil?
196
- return false if @created_at.nil?
196
+ return false if @bcc.nil?
197
197
  return false if @inbox_ids.nil?
198
- return false if @to.nil?
198
+ return false if @created_at.nil?
199
199
  return false if @updated_at.nil?
200
200
  true
201
201
  end
@@ -205,18 +205,18 @@ module MailSlurpClient
205
205
  def ==(o)
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
- attachment_count == o.attachment_count &&
209
- bcc == o.bcc &&
210
- body_excerpt == o.body_excerpt &&
211
- cc == o.cc &&
212
- created_at == o.created_at &&
213
- from == o.from &&
214
208
  id == o.id &&
215
- inbox_ids == o.inbox_ids &&
209
+ user_id == o.user_id &&
216
210
  subject == o.subject &&
211
+ body_excerpt == o.body_excerpt &&
212
+ attachment_count == o.attachment_count &&
213
+ from == o.from &&
217
214
  to == o.to &&
218
- updated_at == o.updated_at &&
219
- user_id == o.user_id
215
+ cc == o.cc &&
216
+ bcc == o.bcc &&
217
+ inbox_ids == o.inbox_ids &&
218
+ created_at == o.created_at &&
219
+ updated_at == o.updated_at
220
220
  end
221
221
 
222
222
  # @see the `==` method
@@ -228,7 +228,7 @@ module MailSlurpClient
228
228
  # Calculates hash code according to all attributes.
229
229
  # @return [Integer] Hash code
230
230
  def hash
231
- [attachment_count, bcc, body_excerpt, cc, created_at, from, id, inbox_ids, subject, to, updated_at, user_id].hash
231
+ [id, user_id, subject, body_excerpt, attachment_count, from, to, cc, bcc, inbox_ids, created_at, updated_at].hash
232
232
  end
233
233
 
234
234
  # 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
 
@@ -14,35 +14,35 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class MissedEmailProjection
17
- attr_accessor :created_at
17
+ attr_accessor :id
18
18
 
19
19
  attr_accessor :from
20
20
 
21
- attr_accessor :id
22
-
23
21
  attr_accessor :subject
24
22
 
25
23
  attr_accessor :user_id
26
24
 
25
+ attr_accessor :created_at
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
- :'from' => :'from',
32
30
  :'id' => :'id',
31
+ :'from' => :'from',
33
32
  :'subject' => :'subject',
34
- :'user_id' => :'userId'
33
+ :'user_id' => :'userId',
34
+ :'created_at' => :'createdAt'
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
- :'from' => :'String',
43
41
  :'id' => :'String',
42
+ :'from' => :'String',
44
43
  :'subject' => :'String',
45
- :'user_id' => :'String'
44
+ :'user_id' => :'String',
45
+ :'created_at' => :'DateTime'
46
46
  }
47
47
  end
48
48
 
@@ -67,18 +67,14 @@ 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']
70
+ if attributes.key?(:'id')
71
+ self.id = attributes[:'id']
72
72
  end
73
73
 
74
74
  if attributes.key?(:'from')
75
75
  self.from = attributes[:'from']
76
76
  end
77
77
 
78
- if attributes.key?(:'id')
79
- self.id = attributes[:'id']
80
- end
81
-
82
78
  if attributes.key?(:'subject')
83
79
  self.subject = attributes[:'subject']
84
80
  end
@@ -86,28 +82,32 @@ module MailSlurpClient
86
82
  if attributes.key?(:'user_id')
87
83
  self.user_id = attributes[:'user_id']
88
84
  end
85
+
86
+ if attributes.key?(:'created_at')
87
+ self.created_at = attributes[:'created_at']
88
+ end
89
89
  end
90
90
 
91
91
  # Show invalid properties with the reasons. Usually used together with valid?
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.')
97
- end
98
-
99
95
  if @id.nil?
100
96
  invalid_properties.push('invalid value for "id", id cannot be nil.')
101
97
  end
102
98
 
99
+ if @created_at.nil?
100
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
101
+ end
102
+
103
103
  invalid_properties
104
104
  end
105
105
 
106
106
  # Check to see if the all the properties in the model are valid
107
107
  # @return true if the model is valid
108
108
  def valid?
109
- return false if @created_at.nil?
110
109
  return false if @id.nil?
110
+ return false if @created_at.nil?
111
111
  true
112
112
  end
113
113
 
@@ -116,11 +116,11 @@ module MailSlurpClient
116
116
  def ==(o)
117
117
  return true if self.equal?(o)
118
118
  self.class == o.class &&
119
- created_at == o.created_at &&
120
- from == o.from &&
121
119
  id == o.id &&
120
+ from == o.from &&
122
121
  subject == o.subject &&
123
- user_id == o.user_id
122
+ user_id == o.user_id &&
123
+ created_at == o.created_at
124
124
  end
125
125
 
126
126
  # @see the `==` method
@@ -132,7 +132,7 @@ module MailSlurpClient
132
132
  # Calculates hash code according to all attributes.
133
133
  # @return [Integer] Hash code
134
134
  def hash
135
- [created_at, from, id, subject, user_id].hash
135
+ [id, from, subject, user_id, created_at].hash
136
136
  end
137
137
 
138
138
  # 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,20 +15,20 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Name Server Record
17
17
  class NameServerRecord
18
- attr_accessor :priority
19
-
20
18
  attr_accessor :raw
21
19
 
22
20
  attr_accessor :record_type
23
21
 
22
+ attr_accessor :priority
23
+
24
24
  attr_accessor :value
25
25
 
26
26
  # Attribute mapping from ruby-style variable name to JSON key.
27
27
  def self.attribute_map
28
28
  {
29
- :'priority' => :'priority',
30
29
  :'raw' => :'raw',
31
30
  :'record_type' => :'recordType',
31
+ :'priority' => :'priority',
32
32
  :'value' => :'value'
33
33
  }
34
34
  end
@@ -36,9 +36,9 @@ module MailSlurpClient
36
36
  # Attribute type mapping.
37
37
  def self.openapi_types
38
38
  {
39
- :'priority' => :'String',
40
39
  :'raw' => :'String',
41
40
  :'record_type' => :'String',
41
+ :'priority' => :'String',
42
42
  :'value' => :'String'
43
43
  }
44
44
  end
@@ -64,10 +64,6 @@ module MailSlurpClient
64
64
  h[k.to_sym] = v
65
65
  }
66
66
 
67
- if attributes.key?(:'priority')
68
- self.priority = attributes[:'priority']
69
- end
70
-
71
67
  if attributes.key?(:'raw')
72
68
  self.raw = attributes[:'raw']
73
69
  end
@@ -76,6 +72,10 @@ module MailSlurpClient
76
72
  self.record_type = attributes[:'record_type']
77
73
  end
78
74
 
75
+ if attributes.key?(:'priority')
76
+ self.priority = attributes[:'priority']
77
+ end
78
+
79
79
  if attributes.key?(:'value')
80
80
  self.value = attributes[:'value']
81
81
  end
@@ -85,10 +85,6 @@ 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 @priority.nil?
89
- invalid_properties.push('invalid value for "priority", priority cannot be nil.')
90
- end
91
-
92
88
  if @raw.nil?
93
89
  invalid_properties.push('invalid value for "raw", raw cannot be nil.')
94
90
  end
@@ -97,6 +93,10 @@ module MailSlurpClient
97
93
  invalid_properties.push('invalid value for "record_type", record_type cannot be nil.')
98
94
  end
99
95
 
96
+ if @priority.nil?
97
+ invalid_properties.push('invalid value for "priority", priority cannot be nil.')
98
+ end
99
+
100
100
  if @value.nil?
101
101
  invalid_properties.push('invalid value for "value", value cannot be nil.')
102
102
  end
@@ -107,9 +107,9 @@ module MailSlurpClient
107
107
  # Check to see if the all the properties in the model are valid
108
108
  # @return true if the model is valid
109
109
  def valid?
110
- return false if @priority.nil?
111
110
  return false if @raw.nil?
112
111
  return false if @record_type.nil?
112
+ return false if @priority.nil?
113
113
  return false if @value.nil?
114
114
  true
115
115
  end
@@ -119,9 +119,9 @@ module MailSlurpClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
- priority == o.priority &&
123
122
  raw == o.raw &&
124
123
  record_type == o.record_type &&
124
+ priority == o.priority &&
125
125
  value == o.value
126
126
  end
127
127
 
@@ -134,7 +134,7 @@ module MailSlurpClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [priority, raw, record_type, value].hash
137
+ [raw, record_type, priority, value].hash
138
138
  end
139
139
 
140
140
  # Builds the object from hash