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
@@ -13,28 +13,29 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # The `To`,`CC`,`BCC` recipients stored in object form with email address and name accessible.
16
17
  class EmailRecipients
17
- attr_accessor :bcc
18
+ attr_accessor :to
18
19
 
19
20
  attr_accessor :cc
20
21
 
21
- attr_accessor :to
22
+ attr_accessor :bcc
22
23
 
23
24
  # Attribute mapping from ruby-style variable name to JSON key.
24
25
  def self.attribute_map
25
26
  {
26
- :'bcc' => :'bcc',
27
+ :'to' => :'to',
27
28
  :'cc' => :'cc',
28
- :'to' => :'to'
29
+ :'bcc' => :'bcc'
29
30
  }
30
31
  end
31
32
 
32
33
  # Attribute type mapping.
33
34
  def self.openapi_types
34
35
  {
35
- :'bcc' => :'Array<Recipient>',
36
+ :'to' => :'Array<Recipient>',
36
37
  :'cc' => :'Array<Recipient>',
37
- :'to' => :'Array<Recipient>'
38
+ :'bcc' => :'Array<Recipient>'
38
39
  }
39
40
  end
40
41
 
@@ -59,9 +60,9 @@ module MailSlurpClient
59
60
  h[k.to_sym] = v
60
61
  }
61
62
 
62
- if attributes.key?(:'bcc')
63
- if (value = attributes[:'bcc']).is_a?(Array)
64
- self.bcc = value
63
+ if attributes.key?(:'to')
64
+ if (value = attributes[:'to']).is_a?(Array)
65
+ self.to = value
65
66
  end
66
67
  end
67
68
 
@@ -71,9 +72,9 @@ module MailSlurpClient
71
72
  end
72
73
  end
73
74
 
74
- if attributes.key?(:'to')
75
- if (value = attributes[:'to']).is_a?(Array)
76
- self.to = value
75
+ if attributes.key?(:'bcc')
76
+ if (value = attributes[:'bcc']).is_a?(Array)
77
+ self.bcc = value
77
78
  end
78
79
  end
79
80
  end
@@ -96,9 +97,9 @@ module MailSlurpClient
96
97
  def ==(o)
97
98
  return true if self.equal?(o)
98
99
  self.class == o.class &&
99
- bcc == o.bcc &&
100
+ to == o.to &&
100
101
  cc == o.cc &&
101
- to == o.to
102
+ bcc == o.bcc
102
103
  end
103
104
 
104
105
  # @see the `==` method
@@ -110,7 +111,7 @@ module MailSlurpClient
110
111
  # Calculates hash code according to all attributes.
111
112
  # @return [Integer] Hash code
112
113
  def hash
113
- [bcc, cc, to].hash
114
+ [to, cc, bcc].hash
114
115
  end
115
116
 
116
117
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Parsed text of an email
17
17
  class EmailTextLinesResult
18
- attr_accessor :body
19
-
20
18
  attr_accessor :lines
21
19
 
20
+ attr_accessor :body
21
+
22
22
  # Attribute mapping from ruby-style variable name to JSON key.
23
23
  def self.attribute_map
24
24
  {
25
- :'body' => :'body',
26
- :'lines' => :'lines'
25
+ :'lines' => :'lines',
26
+ :'body' => :'body'
27
27
  }
28
28
  end
29
29
 
30
30
  # Attribute type mapping.
31
31
  def self.openapi_types
32
32
  {
33
- :'body' => :'String',
34
- :'lines' => :'Array<String>'
33
+ :'lines' => :'Array<String>',
34
+ :'body' => :'String'
35
35
  }
36
36
  end
37
37
 
@@ -56,37 +56,27 @@ module MailSlurpClient
56
56
  h[k.to_sym] = v
57
57
  }
58
58
 
59
- if attributes.key?(:'body')
60
- self.body = attributes[:'body']
61
- end
62
-
63
59
  if attributes.key?(:'lines')
64
60
  if (value = attributes[:'lines']).is_a?(Array)
65
61
  self.lines = value
66
62
  end
67
63
  end
64
+
65
+ if attributes.key?(:'body')
66
+ self.body = attributes[:'body']
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 @body.nil?
75
- invalid_properties.push('invalid value for "body", body cannot be nil.')
76
- end
77
-
78
- if @lines.nil?
79
- invalid_properties.push('invalid value for "lines", lines cannot be nil.')
80
- end
81
-
82
74
  invalid_properties
83
75
  end
84
76
 
85
77
  # Check to see if the all the properties in the model are valid
86
78
  # @return true if the model is valid
87
79
  def valid?
88
- return false if @body.nil?
89
- return false if @lines.nil?
90
80
  true
91
81
  end
92
82
 
@@ -95,8 +85,8 @@ module MailSlurpClient
95
85
  def ==(o)
96
86
  return true if self.equal?(o)
97
87
  self.class == o.class &&
98
- body == o.body &&
99
- lines == o.lines
88
+ lines == o.lines &&
89
+ body == o.body
100
90
  end
101
91
 
102
92
  # @see the `==` method
@@ -108,7 +98,7 @@ module MailSlurpClient
108
98
  # Calculates hash code according to all attributes.
109
99
  # @return [Integer] Hash code
110
100
  def hash
111
- [body, lines].hash
101
+ [lines, body].hash
112
102
  end
113
103
 
114
104
  # Builds the object from hash
@@ -17,22 +17,22 @@ module MailSlurpClient
17
17
  class EmailVerificationResult
18
18
  attr_accessor :domain_name
19
19
 
20
+ attr_accessor :port
21
+
20
22
  attr_accessor :email_address
21
23
 
22
24
  attr_accessor :error
23
25
 
24
- attr_accessor :is_valid
25
-
26
- attr_accessor :port
26
+ attr_accessor :valid
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
31
  :'domain_name' => :'domainName',
32
+ :'port' => :'port',
32
33
  :'email_address' => :'emailAddress',
33
34
  :'error' => :'error',
34
- :'is_valid' => :'isValid',
35
- :'port' => :'port'
35
+ :'valid' => :'valid'
36
36
  }
37
37
  end
38
38
 
@@ -40,10 +40,10 @@ module MailSlurpClient
40
40
  def self.openapi_types
41
41
  {
42
42
  :'domain_name' => :'String',
43
+ :'port' => :'Integer',
43
44
  :'email_address' => :'String',
44
45
  :'error' => :'String',
45
- :'is_valid' => :'Boolean',
46
- :'port' => :'Integer'
46
+ :'valid' => :'Boolean'
47
47
  }
48
48
  end
49
49
 
@@ -72,6 +72,10 @@ module MailSlurpClient
72
72
  self.domain_name = attributes[:'domain_name']
73
73
  end
74
74
 
75
+ if attributes.key?(:'port')
76
+ self.port = attributes[:'port']
77
+ end
78
+
75
79
  if attributes.key?(:'email_address')
76
80
  self.email_address = attributes[:'email_address']
77
81
  end
@@ -80,12 +84,8 @@ module MailSlurpClient
80
84
  self.error = attributes[:'error']
81
85
  end
82
86
 
83
- if attributes.key?(:'is_valid')
84
- self.is_valid = attributes[:'is_valid']
85
- end
86
-
87
- if attributes.key?(:'port')
88
- self.port = attributes[:'port']
87
+ if attributes.key?(:'valid')
88
+ self.valid = attributes[:'valid']
89
89
  end
90
90
  end
91
91
 
@@ -93,32 +93,12 @@ 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 @domain_name.nil?
97
- invalid_properties.push('invalid value for "domain_name", domain_name cannot be nil.')
98
- end
99
-
100
- if @email_address.nil?
101
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
102
- end
103
-
104
- if @is_valid.nil?
105
- invalid_properties.push('invalid value for "is_valid", is_valid cannot be nil.')
106
- end
107
-
108
- if @port.nil?
109
- invalid_properties.push('invalid value for "port", port cannot be nil.')
110
- end
111
-
112
96
  invalid_properties
113
97
  end
114
98
 
115
99
  # Check to see if the all the properties in the model are valid
116
100
  # @return true if the model is valid
117
101
  def valid?
118
- return false if @domain_name.nil?
119
- return false if @email_address.nil?
120
- return false if @is_valid.nil?
121
- return false if @port.nil?
122
102
  true
123
103
  end
124
104
 
@@ -128,10 +108,10 @@ module MailSlurpClient
128
108
  return true if self.equal?(o)
129
109
  self.class == o.class &&
130
110
  domain_name == o.domain_name &&
111
+ port == o.port &&
131
112
  email_address == o.email_address &&
132
113
  error == o.error &&
133
- is_valid == o.is_valid &&
134
- port == o.port
114
+ valid == o.valid
135
115
  end
136
116
 
137
117
  # @see the `==` method
@@ -143,7 +123,7 @@ module MailSlurpClient
143
123
  # Calculates hash code according to all attributes.
144
124
  # @return [Integer] Hash code
145
125
  def hash
146
- [domain_name, email_address, error, is_valid, port].hash
126
+ [domain_name, port, email_address, error, valid].hash
147
127
  end
148
128
 
149
129
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Expiration defaults for your account
17
17
  class ExpirationDefaults
18
- attr_accessor :can_permanent_inbox
19
-
20
18
  attr_accessor :default_expiration_millis
21
19
 
20
+ attr_accessor :max_expiration_millis
21
+
22
22
  attr_accessor :default_expires_at
23
23
 
24
- attr_accessor :max_expiration_millis
24
+ attr_accessor :can_permanent_inbox
25
25
 
26
26
  attr_accessor :next_inbox_allows_permanent
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'can_permanent_inbox' => :'canPermanentInbox',
32
31
  :'default_expiration_millis' => :'defaultExpirationMillis',
33
- :'default_expires_at' => :'defaultExpiresAt',
34
32
  :'max_expiration_millis' => :'maxExpirationMillis',
33
+ :'default_expires_at' => :'defaultExpiresAt',
34
+ :'can_permanent_inbox' => :'canPermanentInbox',
35
35
  :'next_inbox_allows_permanent' => :'nextInboxAllowsPermanent'
36
36
  }
37
37
  end
@@ -39,10 +39,10 @@ module MailSlurpClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'can_permanent_inbox' => :'Boolean',
43
42
  :'default_expiration_millis' => :'Integer',
44
- :'default_expires_at' => :'DateTime',
45
43
  :'max_expiration_millis' => :'Integer',
44
+ :'default_expires_at' => :'DateTime',
45
+ :'can_permanent_inbox' => :'Boolean',
46
46
  :'next_inbox_allows_permanent' => :'Boolean'
47
47
  }
48
48
  end
@@ -68,20 +68,20 @@ module MailSlurpClient
68
68
  h[k.to_sym] = v
69
69
  }
70
70
 
71
- if attributes.key?(:'can_permanent_inbox')
72
- self.can_permanent_inbox = attributes[:'can_permanent_inbox']
73
- end
74
-
75
71
  if attributes.key?(:'default_expiration_millis')
76
72
  self.default_expiration_millis = attributes[:'default_expiration_millis']
77
73
  end
78
74
 
75
+ if attributes.key?(:'max_expiration_millis')
76
+ self.max_expiration_millis = attributes[:'max_expiration_millis']
77
+ end
78
+
79
79
  if attributes.key?(:'default_expires_at')
80
80
  self.default_expires_at = attributes[:'default_expires_at']
81
81
  end
82
82
 
83
- if attributes.key?(:'max_expiration_millis')
84
- self.max_expiration_millis = attributes[:'max_expiration_millis']
83
+ if attributes.key?(:'can_permanent_inbox')
84
+ self.can_permanent_inbox = attributes[:'can_permanent_inbox']
85
85
  end
86
86
 
87
87
  if attributes.key?(:'next_inbox_allows_permanent')
@@ -93,22 +93,12 @@ 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 @can_permanent_inbox.nil?
97
- invalid_properties.push('invalid value for "can_permanent_inbox", can_permanent_inbox cannot be nil.')
98
- end
99
-
100
- if @next_inbox_allows_permanent.nil?
101
- invalid_properties.push('invalid value for "next_inbox_allows_permanent", next_inbox_allows_permanent cannot be nil.')
102
- end
103
-
104
96
  invalid_properties
105
97
  end
106
98
 
107
99
  # Check to see if the all the properties in the model are valid
108
100
  # @return true if the model is valid
109
101
  def valid?
110
- return false if @can_permanent_inbox.nil?
111
- return false if @next_inbox_allows_permanent.nil?
112
102
  true
113
103
  end
114
104
 
@@ -117,10 +107,10 @@ module MailSlurpClient
117
107
  def ==(o)
118
108
  return true if self.equal?(o)
119
109
  self.class == o.class &&
120
- can_permanent_inbox == o.can_permanent_inbox &&
121
110
  default_expiration_millis == o.default_expiration_millis &&
122
- default_expires_at == o.default_expires_at &&
123
111
  max_expiration_millis == o.max_expiration_millis &&
112
+ default_expires_at == o.default_expires_at &&
113
+ can_permanent_inbox == o.can_permanent_inbox &&
124
114
  next_inbox_allows_permanent == o.next_inbox_allows_permanent
125
115
  end
126
116
 
@@ -133,7 +123,7 @@ module MailSlurpClient
133
123
  # Calculates hash code according to all attributes.
134
124
  # @return [Integer] Hash code
135
125
  def hash
136
- [can_permanent_inbox, default_expiration_millis, default_expires_at, max_expiration_millis, next_inbox_allows_permanent].hash
126
+ [default_expiration_millis, max_expiration_millis, default_expires_at, can_permanent_inbox, next_inbox_allows_permanent].hash
137
127
  end
138
128
 
139
129
  # Builds the object from hash
@@ -15,27 +15,27 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Expired inbox
17
17
  class ExpiredInboxDto
18
- attr_accessor :email_address
19
-
20
18
  attr_accessor :id
21
19
 
22
20
  attr_accessor :inbox_id
23
21
 
22
+ attr_accessor :email_address
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- :'email_address' => :'emailAddress',
28
27
  :'id' => :'id',
29
- :'inbox_id' => :'inboxId'
28
+ :'inbox_id' => :'inboxId',
29
+ :'email_address' => :'emailAddress'
30
30
  }
31
31
  end
32
32
 
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'email_address' => :'String',
37
36
  :'id' => :'String',
38
- :'inbox_id' => :'String'
37
+ :'inbox_id' => :'String',
38
+ :'email_address' => :'String'
39
39
  }
40
40
  end
41
41
 
@@ -60,10 +60,6 @@ module MailSlurpClient
60
60
  h[k.to_sym] = v
61
61
  }
62
62
 
63
- if attributes.key?(:'email_address')
64
- self.email_address = attributes[:'email_address']
65
- end
66
-
67
63
  if attributes.key?(:'id')
68
64
  self.id = attributes[:'id']
69
65
  end
@@ -71,33 +67,22 @@ module MailSlurpClient
71
67
  if attributes.key?(:'inbox_id')
72
68
  self.inbox_id = attributes[:'inbox_id']
73
69
  end
70
+
71
+ if attributes.key?(:'email_address')
72
+ self.email_address = attributes[:'email_address']
73
+ end
74
74
  end
75
75
 
76
76
  # Show invalid properties with the reasons. Usually used together with valid?
77
77
  # @return Array for valid properties with the reasons
78
78
  def list_invalid_properties
79
79
  invalid_properties = Array.new
80
- if @email_address.nil?
81
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
82
- end
83
-
84
- if @id.nil?
85
- invalid_properties.push('invalid value for "id", id cannot be nil.')
86
- end
87
-
88
- if @inbox_id.nil?
89
- invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
90
- end
91
-
92
80
  invalid_properties
93
81
  end
94
82
 
95
83
  # Check to see if the all the properties in the model are valid
96
84
  # @return true if the model is valid
97
85
  def valid?
98
- return false if @email_address.nil?
99
- return false if @id.nil?
100
- return false if @inbox_id.nil?
101
86
  true
102
87
  end
103
88
 
@@ -106,9 +91,9 @@ module MailSlurpClient
106
91
  def ==(o)
107
92
  return true if self.equal?(o)
108
93
  self.class == o.class &&
109
- email_address == o.email_address &&
110
94
  id == o.id &&
111
- inbox_id == o.inbox_id
95
+ inbox_id == o.inbox_id &&
96
+ email_address == o.email_address
112
97
  end
113
98
 
114
99
  # @see the `==` method
@@ -120,7 +105,7 @@ module MailSlurpClient
120
105
  # Calculates hash code according to all attributes.
121
106
  # @return [Integer] Hash code
122
107
  def hash
123
- [email_address, id, inbox_id].hash
108
+ [id, inbox_id, email_address].hash
124
109
  end
125
110
 
126
111
  # Builds the object from hash
@@ -14,31 +14,31 @@ require 'date'
14
14
 
15
15
  module MailSlurpClient
16
16
  class ExpiredInboxRecordProjection
17
- attr_accessor :created_at
18
-
19
- attr_accessor :email_address
20
-
21
17
  attr_accessor :id
22
18
 
23
19
  attr_accessor :user_id
24
20
 
21
+ attr_accessor :email_address
22
+
23
+ attr_accessor :created_at
24
+
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
26
26
  def self.attribute_map
27
27
  {
28
- :'created_at' => :'createdAt',
29
- :'email_address' => :'emailAddress',
30
28
  :'id' => :'id',
31
- :'user_id' => :'userId'
29
+ :'user_id' => :'userId',
30
+ :'email_address' => :'emailAddress',
31
+ :'created_at' => :'createdAt'
32
32
  }
33
33
  end
34
34
 
35
35
  # Attribute type mapping.
36
36
  def self.openapi_types
37
37
  {
38
- :'created_at' => :'DateTime',
39
- :'email_address' => :'String',
40
38
  :'id' => :'String',
41
- :'user_id' => :'String'
39
+ :'user_id' => :'String',
40
+ :'email_address' => :'String',
41
+ :'created_at' => :'DateTime'
42
42
  }
43
43
  end
44
44
 
@@ -63,14 +63,6 @@ module MailSlurpClient
63
63
  h[k.to_sym] = v
64
64
  }
65
65
 
66
- if attributes.key?(:'created_at')
67
- self.created_at = attributes[:'created_at']
68
- end
69
-
70
- if attributes.key?(:'email_address')
71
- self.email_address = attributes[:'email_address']
72
- end
73
-
74
66
  if attributes.key?(:'id')
75
67
  self.id = attributes[:'id']
76
68
  end
@@ -78,38 +70,26 @@ module MailSlurpClient
78
70
  if attributes.key?(:'user_id')
79
71
  self.user_id = attributes[:'user_id']
80
72
  end
73
+
74
+ if attributes.key?(:'email_address')
75
+ self.email_address = attributes[:'email_address']
76
+ end
77
+
78
+ if attributes.key?(:'created_at')
79
+ self.created_at = attributes[:'created_at']
80
+ end
81
81
  end
82
82
 
83
83
  # Show invalid properties with the reasons. Usually used together with valid?
84
84
  # @return Array for valid properties with the reasons
85
85
  def list_invalid_properties
86
86
  invalid_properties = Array.new
87
- if @created_at.nil?
88
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
89
- end
90
-
91
- if @email_address.nil?
92
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
93
- end
94
-
95
- if @id.nil?
96
- invalid_properties.push('invalid value for "id", id cannot be nil.')
97
- end
98
-
99
- if @user_id.nil?
100
- invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
101
- end
102
-
103
87
  invalid_properties
104
88
  end
105
89
 
106
90
  # Check to see if the all the properties in the model are valid
107
91
  # @return true if the model is valid
108
92
  def valid?
109
- return false if @created_at.nil?
110
- return false if @email_address.nil?
111
- return false if @id.nil?
112
- return false if @user_id.nil?
113
93
  true
114
94
  end
115
95
 
@@ -118,10 +98,10 @@ module MailSlurpClient
118
98
  def ==(o)
119
99
  return true if self.equal?(o)
120
100
  self.class == o.class &&
121
- created_at == o.created_at &&
122
- email_address == o.email_address &&
123
101
  id == o.id &&
124
- user_id == o.user_id
102
+ user_id == o.user_id &&
103
+ email_address == o.email_address &&
104
+ created_at == o.created_at
125
105
  end
126
106
 
127
107
  # @see the `==` method
@@ -133,7 +113,7 @@ module MailSlurpClient
133
113
  # Calculates hash code according to all attributes.
134
114
  # @return [Integer] Hash code
135
115
  def hash
136
- [created_at, email_address, id, user_id].hash
116
+ [id, user_id, email_address, created_at].hash
137
117
  end
138
118
 
139
119
  # Builds the object from hash
@@ -61,17 +61,12 @@ module MailSlurpClient
61
61
  # @return Array for valid properties with the reasons
62
62
  def list_invalid_properties
63
63
  invalid_properties = Array.new
64
- if @download_link.nil?
65
- invalid_properties.push('invalid value for "download_link", download_link cannot be nil.')
66
- end
67
-
68
64
  invalid_properties
69
65
  end
70
66
 
71
67
  # Check to see if the all the properties in the model are valid
72
68
  # @return true if the model is valid
73
69
  def valid?
74
- return false if @download_link.nil?
75
70
  true
76
71
  end
77
72
 
@@ -69,7 +69,7 @@ module MailSlurpClient
69
69
  :'created_earliest_time' => :'DateTime',
70
70
  :'created_oldest_time' => :'DateTime',
71
71
  :'filter' => :'String',
72
- :'list_separator_token' => :'Object'
72
+ :'list_separator_token' => :'String'
73
73
  }
74
74
  end
75
75
 
@@ -123,17 +123,12 @@ module MailSlurpClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if @output_format.nil?
127
- invalid_properties.push('invalid value for "output_format", output_format cannot be nil.')
128
- end
129
-
130
126
  invalid_properties
131
127
  end
132
128
 
133
129
  # Check to see if the all the properties in the model are valid
134
130
  # @return true if the model is valid
135
131
  def valid?
136
- return false if @output_format.nil?
137
132
  output_format_validator = EnumAttributeValidator.new('String', ["CSV_DEFAULT", "CSV_EXCEL"])
138
133
  return false unless output_format_validator.valid?(@output_format)
139
134
  true