mailslurp_client 15.0.0 → 15.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/lib/mailslurp_client/api/alias_controller_api.rb +59 -55
  4. data/lib/mailslurp_client/api/attachment_controller_api.rb +49 -60
  5. data/lib/mailslurp_client/api/bounce_controller_api.rb +26 -18
  6. data/lib/mailslurp_client/api/bulk_actions_controller_api.rb +15 -15
  7. data/lib/mailslurp_client/api/common_actions_controller_api.rb +128 -67
  8. data/lib/mailslurp_client/api/contact_controller_api.rb +22 -22
  9. data/lib/mailslurp_client/api/domain_controller_api.rb +32 -32
  10. data/lib/mailslurp_client/api/email_controller_api.rb +190 -116
  11. data/lib/mailslurp_client/api/expired_controller_api.rb +19 -19
  12. data/lib/mailslurp_client/api/export_controller_api.rb +38 -38
  13. data/lib/mailslurp_client/api/form_controller_api.rb +16 -18
  14. data/lib/mailslurp_client/api/group_controller_api.rb +52 -52
  15. data/lib/mailslurp_client/api/inbox_controller_api.rb +359 -225
  16. data/lib/mailslurp_client/api/inbox_forwarder_controller_api.rb +33 -29
  17. data/lib/mailslurp_client/api/inbox_ruleset_controller_api.rb +33 -29
  18. data/lib/mailslurp_client/api/mail_server_controller_api.rb +26 -26
  19. data/lib/mailslurp_client/api/missed_email_controller_api.rb +54 -42
  20. data/lib/mailslurp_client/api/sent_emails_controller_api.rb +157 -47
  21. data/lib/mailslurp_client/api/template_controller_api.rb +21 -21
  22. data/lib/mailslurp_client/api/tracking_controller_api.rb +16 -16
  23. data/lib/mailslurp_client/api/wait_for_controller_api.rb +128 -88
  24. data/lib/mailslurp_client/api/webhook_controller_api.rb +102 -86
  25. data/lib/mailslurp_client/configuration.rb +4 -4
  26. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +10 -25
  27. data/lib/mailslurp_client/models/alias_dto.rb +45 -56
  28. data/lib/mailslurp_client/models/alias_projection.rb +42 -72
  29. data/lib/mailslurp_client/models/attachment_entity.rb +34 -54
  30. data/lib/mailslurp_client/models/attachment_meta_data.rb +21 -21
  31. data/lib/mailslurp_client/models/attachment_projection.rb +36 -51
  32. data/lib/mailslurp_client/models/basic_auth_options.rb +0 -10
  33. data/lib/mailslurp_client/models/bounce_projection.rb +13 -23
  34. data/lib/mailslurp_client/models/bounce_recipient.rb +22 -42
  35. data/lib/mailslurp_client/models/bounced_email_dto.rb +56 -76
  36. data/lib/mailslurp_client/models/bounced_recipient_dto.rb +16 -31
  37. data/lib/mailslurp_client/models/bulk_send_email_options.rb +5 -0
  38. data/lib/mailslurp_client/models/condition_option.rb +2 -2
  39. data/lib/mailslurp_client/models/contact_dto.rb +53 -73
  40. data/lib/mailslurp_client/models/contact_projection.rb +42 -52
  41. data/lib/mailslurp_client/models/count_dto.rb +206 -0
  42. data/lib/mailslurp_client/models/create_contact_options.rb +42 -42
  43. data/lib/mailslurp_client/models/create_domain_options.rb +21 -16
  44. data/lib/mailslurp_client/models/create_group_options.rb +0 -5
  45. data/lib/mailslurp_client/models/create_inbox_dto.rb +58 -58
  46. data/lib/mailslurp_client/models/create_inbox_forwarder_options.rb +19 -14
  47. data/lib/mailslurp_client/models/create_inbox_ruleset_options.rb +23 -23
  48. data/lib/mailslurp_client/models/create_template_options.rb +0 -10
  49. data/lib/mailslurp_client/models/create_webhook_options.rb +18 -18
  50. data/lib/mailslurp_client/models/describe_mail_server_domain_result.rb +15 -25
  51. data/lib/mailslurp_client/models/dns_lookup_options.rb +24 -14
  52. data/lib/mailslurp_client/models/dns_lookup_result.rb +23 -42
  53. data/lib/mailslurp_client/models/dns_lookup_results.rb +0 -5
  54. data/lib/mailslurp_client/models/domain_dto.rb +59 -80
  55. data/lib/mailslurp_client/models/domain_name_record.rb +11 -30
  56. data/lib/mailslurp_client/models/domain_preview.rb +26 -50
  57. data/lib/mailslurp_client/models/email.rb +134 -135
  58. data/lib/mailslurp_client/models/email_analysis.rb +28 -28
  59. data/lib/mailslurp_client/models/email_content_match_result.rb +13 -23
  60. data/lib/mailslurp_client/models/email_links_result.rb +13 -23
  61. data/lib/mailslurp_client/models/email_preview.rb +47 -47
  62. data/lib/mailslurp_client/models/email_projection.rb +77 -97
  63. data/lib/mailslurp_client/models/email_recipients.rb +16 -15
  64. data/lib/mailslurp_client/models/email_text_lines_result.rb +13 -23
  65. data/lib/mailslurp_client/models/email_verification_result.rb +16 -36
  66. data/lib/mailslurp_client/models/expiration_defaults.rb +16 -26
  67. data/lib/mailslurp_client/models/expired_inbox_dto.rb +13 -28
  68. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +22 -42
  69. data/lib/mailslurp_client/models/export_link.rb +0 -5
  70. data/lib/mailslurp_client/models/export_options.rb +1 -6
  71. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +13 -23
  72. data/lib/mailslurp_client/models/forward_email_options.rb +36 -31
  73. data/lib/mailslurp_client/models/gravatar_url.rb +13 -23
  74. data/lib/mailslurp_client/models/group_contacts_dto.rb +13 -23
  75. data/lib/mailslurp_client/models/group_dto.rb +22 -37
  76. data/lib/mailslurp_client/models/group_projection.rb +22 -37
  77. data/lib/mailslurp_client/models/html_validation_result.rb +13 -14
  78. data/lib/mailslurp_client/models/{inbox.rb → inbox_dto.rb} +47 -57
  79. data/lib/mailslurp_client/models/inbox_exists_dto.rb +0 -5
  80. data/lib/mailslurp_client/models/inbox_forwarder_dto.rb +31 -61
  81. data/lib/mailslurp_client/models/inbox_forwarder_test_options.rb +0 -5
  82. data/lib/mailslurp_client/models/inbox_forwarder_test_result.rb +13 -23
  83. data/lib/mailslurp_client/models/inbox_preview.rb +38 -38
  84. data/lib/mailslurp_client/models/inbox_ruleset_dto.rb +43 -78
  85. data/lib/mailslurp_client/models/inbox_ruleset_test_options.rb +0 -5
  86. data/lib/mailslurp_client/models/inbox_ruleset_test_result.rb +13 -18
  87. data/lib/mailslurp_client/models/inline_object.rb +221 -0
  88. data/lib/mailslurp_client/models/ip_address_result.rb +0 -10
  89. data/lib/mailslurp_client/models/json_schema_dto.rb +0 -5
  90. data/lib/mailslurp_client/models/match_option.rb +7 -2
  91. data/lib/mailslurp_client/models/match_options.rb +16 -16
  92. data/lib/mailslurp_client/models/missed_email.rb +67 -102
  93. data/lib/mailslurp_client/models/missed_email_projection.rb +19 -29
  94. data/lib/mailslurp_client/models/name_server_record.rb +10 -30
  95. data/lib/mailslurp_client/models/organization_inbox_projection.rb +44 -44
  96. data/lib/mailslurp_client/models/page_alias.rb +52 -52
  97. data/lib/mailslurp_client/models/page_attachment_entity.rb +52 -52
  98. data/lib/mailslurp_client/models/page_bounced_email.rb +52 -52
  99. data/lib/mailslurp_client/models/page_bounced_recipients.rb +52 -52
  100. data/lib/mailslurp_client/models/page_contact_projection.rb +52 -52
  101. data/lib/mailslurp_client/models/page_email_preview.rb +52 -52
  102. data/lib/mailslurp_client/models/page_email_projection.rb +52 -52
  103. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +52 -52
  104. data/lib/mailslurp_client/models/page_group_projection.rb +52 -52
  105. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +52 -52
  106. data/lib/mailslurp_client/models/page_inbox_projection.rb +52 -52
  107. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +52 -52
  108. data/lib/mailslurp_client/models/page_missed_email_projection.rb +52 -52
  109. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +52 -52
  110. data/lib/mailslurp_client/models/page_sent_email_projection.rb +49 -49
  111. data/lib/mailslurp_client/models/page_template_projection.rb +52 -52
  112. data/lib/mailslurp_client/models/page_thread_projection.rb +52 -52
  113. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +52 -52
  114. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +52 -52
  115. data/lib/mailslurp_client/models/page_webhook_projection.rb +52 -52
  116. data/lib/mailslurp_client/models/page_webhook_result.rb +52 -52
  117. data/lib/mailslurp_client/models/pageable.rb +10 -10
  118. data/lib/mailslurp_client/models/raw_email_json.rb +0 -5
  119. data/lib/mailslurp_client/models/recipient.rb +13 -23
  120. data/lib/mailslurp_client/models/reply_to_alias_email_options.rb +38 -37
  121. data/lib/mailslurp_client/models/reply_to_email_options.rb +51 -50
  122. data/lib/mailslurp_client/models/send_email_options.rb +107 -115
  123. data/lib/mailslurp_client/models/sender.rb +14 -23
  124. data/lib/mailslurp_client/models/sent_email_dto.rb +97 -102
  125. data/lib/mailslurp_client/models/sent_email_projection.rb +66 -105
  126. data/lib/mailslurp_client/models/simple_send_email_options.rb +24 -24
  127. data/lib/mailslurp_client/models/template_dto.rb +22 -47
  128. data/lib/mailslurp_client/models/template_projection.rb +16 -41
  129. data/lib/mailslurp_client/models/template_variable.rb +0 -10
  130. data/lib/mailslurp_client/models/test_new_inbox_forwarder_options.rb +0 -10
  131. data/lib/mailslurp_client/models/test_new_inbox_ruleset_options.rb +0 -10
  132. data/lib/mailslurp_client/models/thread_projection.rb +60 -95
  133. data/lib/mailslurp_client/models/tracking_pixel_dto.rb +43 -68
  134. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +34 -54
  135. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +19 -29
  136. data/lib/mailslurp_client/models/unread_count.rb +0 -5
  137. data/lib/mailslurp_client/models/unseen_error_count_dto.rb +0 -5
  138. data/lib/mailslurp_client/models/update_group_contacts.rb +0 -5
  139. data/lib/mailslurp_client/models/update_inbox_options.rb +26 -26
  140. data/lib/mailslurp_client/models/upload_attachment_options.rb +14 -14
  141. data/lib/mailslurp_client/models/validation_message.rb +1 -5
  142. data/lib/mailslurp_client/models/verify_email_address_options.rb +0 -5
  143. data/lib/mailslurp_client/models/wait_for_conditions.rb +48 -58
  144. data/lib/mailslurp_client/models/webhook_dto.rb +64 -69
  145. data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +42 -42
  146. data/lib/mailslurp_client/models/webhook_email_read_payload.rb +49 -49
  147. data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +43 -43
  148. data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +75 -95
  149. data/lib/mailslurp_client/models/webhook_new_email_payload.rb +84 -84
  150. data/lib/mailslurp_client/models/webhook_projection.rb +36 -61
  151. data/lib/mailslurp_client/models/webhook_redrive_result.rb +13 -23
  152. data/lib/mailslurp_client/models/webhook_result_dto.rb +76 -126
  153. data/lib/mailslurp_client/models/webhook_test_request.rb +21 -36
  154. data/lib/mailslurp_client/models/webhook_test_response.rb +13 -13
  155. data/lib/mailslurp_client/models/webhook_test_result.rb +13 -23
  156. data/lib/mailslurp_client/version.rb +1 -1
  157. data/lib/mailslurp_client.rb +3 -1
  158. metadata +5 -3
@@ -14,24 +14,18 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class InboxPreview
17
- # When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
18
- attr_accessor :created_at
17
+ # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
18
+ attr_accessor :id
19
19
 
20
20
  # The inbox's email address. Inbox projections and previews may not include the email address. To view the email address fetch the inbox entity directly. Send an email to this address and the inbox will receive and store it for you. Note the email address in MailSlurp match characters exactly and are case sensitive so `+123` additions are considered different addresses. To retrieve the email use the Inbox and Email Controller endpoints with the inbox ID.
21
21
  attr_accessor :email_address
22
22
 
23
- # Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
24
- attr_accessor :expires_at
23
+ # When the inbox was created. Time stamps are in ISO DateTime Format `yyyy-MM-dd'T'HH:mm:ss.SSSXXX` e.g. `2000-10-31T01:30:00.000-05:00`.
24
+ attr_accessor :created_at
25
25
 
26
26
  # Is the inbox a favorite inbox. Make an inbox a favorite is typically done in the dashboard for quick access or filtering
27
27
  attr_accessor :favourite
28
28
 
29
- # ID of the inbox. The ID is a UUID-V4 format string. Use the inboxId for calls to Inbox and Email Controller endpoints. See the emailAddress property for the email address or the inbox. To get emails in an inbox use the WaitFor and Inbox Controller methods `waitForLatestEmail` and `getEmails` methods respectively. Inboxes can be used with aliases to forward emails automatically.
30
- attr_accessor :id
31
-
32
- # Type of inbox - either HTTP (default) or SMTP. HTTP inboxes are great most cases. SMTP inboxes are receive only (cannot send) and are processed by a custom SMTP mail server and are better for public facing inboxes that receive emails from Gmail and other large providers. If using a custom domain the domain type must match the inbox type. Use an SMTP domain for SMTP inboxes that includes an MX record pointing to `10 mx.mailslurp.com` for inbound messages.
33
- attr_accessor :inbox_type
34
-
35
29
  # Name of the inbox and used as the sender name when sending emails .Displayed in the dashboard for easier search
36
30
  attr_accessor :name
37
31
 
@@ -41,6 +35,12 @@ module MailSlurpClient
41
35
  # Does inbox permit team access for organization team members. If so team users can use inbox and emails associated with it. See the team access guide at https://www.mailslurp.com/guides/team-email-account-sharing/
42
36
  attr_accessor :team_access
43
37
 
38
+ # Type of inbox. HTTP inboxes are faster and better for most cases. SMTP inboxes are more suited for public facing inbound messages (but cannot send).
39
+ attr_accessor :inbox_type
40
+
41
+ # Inbox expiration time. When, if ever, the inbox should expire and be deleted. If null then this inbox is permanent and the emails in it won't be deleted. This is the default behavior unless expiration date is set. If an expiration date is set and the time is reached MailSlurp will expire the inbox and move it to an expired inbox entity. You can still access the emails belonging to it but it can no longer send or receive email.
42
+ attr_accessor :expires_at
43
+
44
44
  class EnumAttributeValidator
45
45
  attr_reader :datatype
46
46
  attr_reader :allowable_values
@@ -66,30 +66,30 @@ module MailSlurpClient
66
66
  # Attribute mapping from ruby-style variable name to JSON key.
67
67
  def self.attribute_map
68
68
  {
69
- :'created_at' => :'createdAt',
69
+ :'id' => :'id',
70
70
  :'email_address' => :'emailAddress',
71
- :'expires_at' => :'expiresAt',
71
+ :'created_at' => :'createdAt',
72
72
  :'favourite' => :'favourite',
73
- :'id' => :'id',
74
- :'inbox_type' => :'inboxType',
75
73
  :'name' => :'name',
76
74
  :'tags' => :'tags',
77
- :'team_access' => :'teamAccess'
75
+ :'team_access' => :'teamAccess',
76
+ :'inbox_type' => :'inboxType',
77
+ :'expires_at' => :'expiresAt'
78
78
  }
79
79
  end
80
80
 
81
81
  # Attribute type mapping.
82
82
  def self.openapi_types
83
83
  {
84
- :'created_at' => :'DateTime',
84
+ :'id' => :'String',
85
85
  :'email_address' => :'String',
86
- :'expires_at' => :'String',
86
+ :'created_at' => :'DateTime',
87
87
  :'favourite' => :'Boolean',
88
- :'id' => :'String',
89
- :'inbox_type' => :'String',
90
88
  :'name' => :'String',
91
89
  :'tags' => :'Array<String>',
92
- :'team_access' => :'Boolean'
90
+ :'team_access' => :'Boolean',
91
+ :'inbox_type' => :'String',
92
+ :'expires_at' => :'String'
93
93
  }
94
94
  end
95
95
 
@@ -114,30 +114,22 @@ module MailSlurpClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'created_at')
118
- self.created_at = attributes[:'created_at']
117
+ if attributes.key?(:'id')
118
+ self.id = attributes[:'id']
119
119
  end
120
120
 
121
121
  if attributes.key?(:'email_address')
122
122
  self.email_address = attributes[:'email_address']
123
123
  end
124
124
 
125
- if attributes.key?(:'expires_at')
126
- self.expires_at = attributes[:'expires_at']
125
+ if attributes.key?(:'created_at')
126
+ self.created_at = attributes[:'created_at']
127
127
  end
128
128
 
129
129
  if attributes.key?(:'favourite')
130
130
  self.favourite = attributes[:'favourite']
131
131
  end
132
132
 
133
- if attributes.key?(:'id')
134
- self.id = attributes[:'id']
135
- end
136
-
137
- if attributes.key?(:'inbox_type')
138
- self.inbox_type = attributes[:'inbox_type']
139
- end
140
-
141
133
  if attributes.key?(:'name')
142
134
  self.name = attributes[:'name']
143
135
  end
@@ -151,6 +143,14 @@ module MailSlurpClient
151
143
  if attributes.key?(:'team_access')
152
144
  self.team_access = attributes[:'team_access']
153
145
  end
146
+
147
+ if attributes.key?(:'inbox_type')
148
+ self.inbox_type = attributes[:'inbox_type']
149
+ end
150
+
151
+ if attributes.key?(:'expires_at')
152
+ self.expires_at = attributes[:'expires_at']
153
+ end
154
154
  end
155
155
 
156
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -183,15 +183,15 @@ module MailSlurpClient
183
183
  def ==(o)
184
184
  return true if self.equal?(o)
185
185
  self.class == o.class &&
186
- created_at == o.created_at &&
186
+ id == o.id &&
187
187
  email_address == o.email_address &&
188
- expires_at == o.expires_at &&
188
+ created_at == o.created_at &&
189
189
  favourite == o.favourite &&
190
- id == o.id &&
191
- inbox_type == o.inbox_type &&
192
190
  name == o.name &&
193
191
  tags == o.tags &&
194
- team_access == o.team_access
192
+ team_access == o.team_access &&
193
+ inbox_type == o.inbox_type &&
194
+ expires_at == o.expires_at
195
195
  end
196
196
 
197
197
  # @see the `==` method
@@ -203,7 +203,7 @@ module MailSlurpClient
203
203
  # Calculates hash code according to all attributes.
204
204
  # @return [Integer] Hash code
205
205
  def hash
206
- [created_at, email_address, expires_at, favourite, id, inbox_type, name, tags, team_access].hash
206
+ [id, email_address, created_at, favourite, name, tags, team_access, inbox_type, expires_at].hash
207
207
  end
208
208
 
209
209
  # Builds the object from hash
@@ -14,20 +14,20 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class InboxRulesetDto
17
- attr_accessor :action
18
-
19
- attr_accessor :created_at
20
-
21
- attr_accessor :handler
22
-
23
17
  attr_accessor :id
24
18
 
25
19
  attr_accessor :inbox_id
26
20
 
27
21
  attr_accessor :scope
28
22
 
23
+ attr_accessor :action
24
+
29
25
  attr_accessor :target
30
26
 
27
+ attr_accessor :handler
28
+
29
+ attr_accessor :created_at
30
+
31
31
  class EnumAttributeValidator
32
32
  attr_reader :datatype
33
33
  attr_reader :allowable_values
@@ -53,26 +53,26 @@ module MailSlurpClient
53
53
  # Attribute mapping from ruby-style variable name to JSON key.
54
54
  def self.attribute_map
55
55
  {
56
- :'action' => :'action',
57
- :'created_at' => :'createdAt',
58
- :'handler' => :'handler',
59
56
  :'id' => :'id',
60
57
  :'inbox_id' => :'inboxId',
61
58
  :'scope' => :'scope',
62
- :'target' => :'target'
59
+ :'action' => :'action',
60
+ :'target' => :'target',
61
+ :'handler' => :'handler',
62
+ :'created_at' => :'createdAt'
63
63
  }
64
64
  end
65
65
 
66
66
  # Attribute type mapping.
67
67
  def self.openapi_types
68
68
  {
69
- :'action' => :'String',
70
- :'created_at' => :'DateTime',
71
- :'handler' => :'String',
72
69
  :'id' => :'String',
73
70
  :'inbox_id' => :'String',
74
71
  :'scope' => :'String',
75
- :'target' => :'String'
72
+ :'action' => :'String',
73
+ :'target' => :'String',
74
+ :'handler' => :'String',
75
+ :'created_at' => :'DateTime'
76
76
  }
77
77
  end
78
78
 
@@ -97,18 +97,6 @@ module MailSlurpClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'action')
101
- self.action = attributes[:'action']
102
- end
103
-
104
- if attributes.key?(:'created_at')
105
- self.created_at = attributes[:'created_at']
106
- end
107
-
108
- if attributes.key?(:'handler')
109
- self.handler = attributes[:'handler']
110
- end
111
-
112
100
  if attributes.key?(:'id')
113
101
  self.id = attributes[:'id']
114
102
  end
@@ -121,65 +109,52 @@ module MailSlurpClient
121
109
  self.scope = attributes[:'scope']
122
110
  end
123
111
 
112
+ if attributes.key?(:'action')
113
+ self.action = attributes[:'action']
114
+ end
115
+
124
116
  if attributes.key?(:'target')
125
117
  self.target = attributes[:'target']
126
118
  end
119
+
120
+ if attributes.key?(:'handler')
121
+ self.handler = attributes[:'handler']
122
+ end
123
+
124
+ if attributes.key?(:'created_at')
125
+ self.created_at = attributes[:'created_at']
126
+ end
127
127
  end
128
128
 
129
129
  # Show invalid properties with the reasons. Usually used together with valid?
130
130
  # @return Array for valid properties with the reasons
131
131
  def list_invalid_properties
132
132
  invalid_properties = Array.new
133
- if @action.nil?
134
- invalid_properties.push('invalid value for "action", action cannot be nil.')
135
- end
136
-
137
- if @created_at.nil?
138
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
139
- end
140
-
141
- if @handler.nil?
142
- invalid_properties.push('invalid value for "handler", handler cannot be nil.')
143
- end
144
-
145
- if @id.nil?
146
- invalid_properties.push('invalid value for "id", id cannot be nil.')
147
- end
148
-
149
- if @inbox_id.nil?
150
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
151
- end
152
-
153
- if @scope.nil?
154
- invalid_properties.push('invalid value for "scope", scope cannot be nil.')
155
- end
156
-
157
- if @target.nil?
158
- invalid_properties.push('invalid value for "target", target cannot be nil.')
159
- end
160
-
161
133
  invalid_properties
162
134
  end
163
135
 
164
136
  # Check to see if the all the properties in the model are valid
165
137
  # @return true if the model is valid
166
138
  def valid?
167
- return false if @action.nil?
139
+ scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
140
+ return false unless scope_validator.valid?(@scope)
168
141
  action_validator = EnumAttributeValidator.new('String', ["BLOCK", "ALLOW", "FILTER_REMOVE"])
169
142
  return false unless action_validator.valid?(@action)
170
- return false if @created_at.nil?
171
- return false if @handler.nil?
172
143
  handler_validator = EnumAttributeValidator.new('String', ["EXCEPTION"])
173
144
  return false unless handler_validator.valid?(@handler)
174
- return false if @id.nil?
175
- return false if @inbox_id.nil?
176
- return false if @scope.nil?
177
- scope_validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
178
- return false unless scope_validator.valid?(@scope)
179
- return false if @target.nil?
180
145
  true
181
146
  end
182
147
 
148
+ # Custom attribute writer method checking allowed values (enum).
149
+ # @param [Object] scope Object to be assigned
150
+ def scope=(scope)
151
+ validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
152
+ unless validator.valid?(scope)
153
+ fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
154
+ end
155
+ @scope = scope
156
+ end
157
+
183
158
  # Custom attribute writer method checking allowed values (enum).
184
159
  # @param [Object] action Object to be assigned
185
160
  def action=(action)
@@ -200,28 +175,18 @@ module MailSlurpClient
200
175
  @handler = handler
201
176
  end
202
177
 
203
- # Custom attribute writer method checking allowed values (enum).
204
- # @param [Object] scope Object to be assigned
205
- def scope=(scope)
206
- validator = EnumAttributeValidator.new('String', ["RECEIVING_EMAILS", "SENDING_EMAILS"])
207
- unless validator.valid?(scope)
208
- fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
209
- end
210
- @scope = scope
211
- end
212
-
213
178
  # Checks equality by comparing each attribute.
214
179
  # @param [Object] Object to be compared
215
180
  def ==(o)
216
181
  return true if self.equal?(o)
217
182
  self.class == o.class &&
218
- action == o.action &&
219
- created_at == o.created_at &&
220
- handler == o.handler &&
221
183
  id == o.id &&
222
184
  inbox_id == o.inbox_id &&
223
185
  scope == o.scope &&
224
- target == o.target
186
+ action == o.action &&
187
+ target == o.target &&
188
+ handler == o.handler &&
189
+ created_at == o.created_at
225
190
  end
226
191
 
227
192
  # @see the `==` method
@@ -233,7 +198,7 @@ module MailSlurpClient
233
198
  # Calculates hash code according to all attributes.
234
199
  # @return [Integer] Hash code
235
200
  def hash
236
- [action, created_at, handler, id, inbox_id, scope, target].hash
201
+ [id, inbox_id, scope, action, target, handler, created_at].hash
237
202
  end
238
203
 
239
204
  # Builds the object from hash
@@ -60,17 +60,12 @@ module MailSlurpClient
60
60
  # @return Array for valid properties with the reasons
61
61
  def list_invalid_properties
62
62
  invalid_properties = Array.new
63
- if @test_target.nil?
64
- invalid_properties.push('invalid value for "test_target", test_target cannot be nil.')
65
- end
66
-
67
63
  invalid_properties
68
64
  end
69
65
 
70
66
  # Check to see if the all the properties in the model are valid
71
67
  # @return true if the model is valid
72
68
  def valid?
73
- return false if @test_target.nil?
74
69
  true
75
70
  end
76
71
 
@@ -14,24 +14,24 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class InboxRulesetTestResult
17
- attr_accessor :matches
18
-
19
17
  # Map of inbox ruleset ID to boolean of if target matches
20
18
  attr_accessor :ruleset_matches
21
19
 
20
+ attr_accessor :matches
21
+
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'matches' => :'matches',
26
- :'ruleset_matches' => :'rulesetMatches'
25
+ :'ruleset_matches' => :'rulesetMatches',
26
+ :'matches' => :'matches'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.openapi_types
32
32
  {
33
- :'matches' => :'Boolean',
34
- :'ruleset_matches' => :'Hash<String, Boolean>'
33
+ :'ruleset_matches' => :'Hash<String, Boolean>',
34
+ :'matches' => :'Boolean'
35
35
  }
36
36
  end
37
37
 
@@ -56,32 +56,27 @@ module MailSlurpClient
56
56
  h[k.to_sym] = v
57
57
  }
58
58
 
59
- if attributes.key?(:'matches')
60
- self.matches = attributes[:'matches']
61
- end
62
-
63
59
  if attributes.key?(:'ruleset_matches')
64
60
  if (value = attributes[:'ruleset_matches']).is_a?(Hash)
65
61
  self.ruleset_matches = value
66
62
  end
67
63
  end
64
+
65
+ if attributes.key?(:'matches')
66
+ self.matches = attributes[:'matches']
67
+ end
68
68
  end
69
69
 
70
70
  # Show invalid properties with the reasons. Usually used together with valid?
71
71
  # @return Array for valid properties with the reasons
72
72
  def list_invalid_properties
73
73
  invalid_properties = Array.new
74
- if @matches.nil?
75
- invalid_properties.push('invalid value for "matches", matches cannot be nil.')
76
- end
77
-
78
74
  invalid_properties
79
75
  end
80
76
 
81
77
  # Check to see if the all the properties in the model are valid
82
78
  # @return true if the model is valid
83
79
  def valid?
84
- return false if @matches.nil?
85
80
  true
86
81
  end
87
82
 
@@ -90,8 +85,8 @@ module MailSlurpClient
90
85
  def ==(o)
91
86
  return true if self.equal?(o)
92
87
  self.class == o.class &&
93
- matches == o.matches &&
94
- ruleset_matches == o.ruleset_matches
88
+ ruleset_matches == o.ruleset_matches &&
89
+ matches == o.matches
95
90
  end
96
91
 
97
92
  # @see the `==` method
@@ -103,7 +98,7 @@ module MailSlurpClient
103
98
  # Calculates hash code according to all attributes.
104
99
  # @return [Integer] Hash code
105
100
  def hash
106
- [matches, ruleset_matches].hash
101
+ [ruleset_matches, matches].hash
107
102
  end
108
103
 
109
104
  # Builds the object from hash