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
 
@@ -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
@@ -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,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,37 @@ 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
74
  if @lines.nil?
79
75
  invalid_properties.push('invalid value for "lines", lines cannot be nil.')
80
76
  end
81
77
 
78
+ if @body.nil?
79
+ invalid_properties.push('invalid value for "body", body cannot be nil.')
80
+ end
81
+
82
82
  invalid_properties
83
83
  end
84
84
 
85
85
  # Check to see if the all the properties in the model are valid
86
86
  # @return true if the model is valid
87
87
  def valid?
88
- return false if @body.nil?
89
88
  return false if @lines.nil?
89
+ return false if @body.nil?
90
90
  true
91
91
  end
92
92
 
@@ -95,8 +95,8 @@ module MailSlurpClient
95
95
  def ==(o)
96
96
  return true if self.equal?(o)
97
97
  self.class == o.class &&
98
- body == o.body &&
99
- lines == o.lines
98
+ lines == o.lines &&
99
+ body == o.body
100
100
  end
101
101
 
102
102
  # @see the `==` method
@@ -108,7 +108,7 @@ module MailSlurpClient
108
108
  # Calculates hash code according to all attributes.
109
109
  # @return [Integer] Hash code
110
110
  def hash
111
- [body, lines].hash
111
+ [lines, body].hash
112
112
  end
113
113
 
114
114
  # 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
 
@@ -17,22 +17,22 @@ module MailSlurpClient
17
17
  class EmailVerificationResult
18
18
  attr_accessor :domain_name
19
19
 
20
- attr_accessor :email_address
20
+ attr_accessor :port
21
21
 
22
- attr_accessor :error
22
+ attr_accessor :email_address
23
23
 
24
24
  attr_accessor :is_valid
25
25
 
26
- attr_accessor :port
26
+ attr_accessor :error
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
- :'error' => :'error',
34
34
  :'is_valid' => :'isValid',
35
- :'port' => :'port'
35
+ :'error' => :'error'
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
- :'error' => :'String',
45
45
  :'is_valid' => :'Boolean',
46
- :'port' => :'Integer'
46
+ :'error' => :'String'
47
47
  }
48
48
  end
49
49
 
@@ -72,20 +72,20 @@ module MailSlurpClient
72
72
  self.domain_name = attributes[:'domain_name']
73
73
  end
74
74
 
75
- if attributes.key?(:'email_address')
76
- self.email_address = attributes[:'email_address']
75
+ if attributes.key?(:'port')
76
+ self.port = attributes[:'port']
77
77
  end
78
78
 
79
- if attributes.key?(:'error')
80
- self.error = attributes[:'error']
79
+ if attributes.key?(:'email_address')
80
+ self.email_address = attributes[:'email_address']
81
81
  end
82
82
 
83
83
  if attributes.key?(:'is_valid')
84
84
  self.is_valid = attributes[:'is_valid']
85
85
  end
86
86
 
87
- if attributes.key?(:'port')
88
- self.port = attributes[:'port']
87
+ if attributes.key?(:'error')
88
+ self.error = attributes[:'error']
89
89
  end
90
90
  end
91
91
 
@@ -97,6 +97,10 @@ module MailSlurpClient
97
97
  invalid_properties.push('invalid value for "domain_name", domain_name cannot be nil.')
98
98
  end
99
99
 
100
+ if @port.nil?
101
+ invalid_properties.push('invalid value for "port", port cannot be nil.')
102
+ end
103
+
100
104
  if @email_address.nil?
101
105
  invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
102
106
  end
@@ -105,10 +109,6 @@ module MailSlurpClient
105
109
  invalid_properties.push('invalid value for "is_valid", is_valid cannot be nil.')
106
110
  end
107
111
 
108
- if @port.nil?
109
- invalid_properties.push('invalid value for "port", port cannot be nil.')
110
- end
111
-
112
112
  invalid_properties
113
113
  end
114
114
 
@@ -116,9 +116,9 @@ module MailSlurpClient
116
116
  # @return true if the model is valid
117
117
  def valid?
118
118
  return false if @domain_name.nil?
119
+ return false if @port.nil?
119
120
  return false if @email_address.nil?
120
121
  return false if @is_valid.nil?
121
- return false if @port.nil?
122
122
  true
123
123
  end
124
124
 
@@ -128,10 +128,10 @@ module MailSlurpClient
128
128
  return true if self.equal?(o)
129
129
  self.class == o.class &&
130
130
  domain_name == o.domain_name &&
131
+ port == o.port &&
131
132
  email_address == o.email_address &&
132
- error == o.error &&
133
133
  is_valid == o.is_valid &&
134
- port == o.port
134
+ error == o.error
135
135
  end
136
136
 
137
137
  # @see the `==` method
@@ -143,7 +143,7 @@ module MailSlurpClient
143
143
  # Calculates hash code according to all attributes.
144
144
  # @return [Integer] Hash code
145
145
  def hash
146
- [domain_name, email_address, error, is_valid, port].hash
146
+ [domain_name, port, email_address, is_valid, error].hash
147
147
  end
148
148
 
149
149
  # 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,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')
@@ -117,10 +117,10 @@ module MailSlurpClient
117
117
  def ==(o)
118
118
  return true if self.equal?(o)
119
119
  self.class == o.class &&
120
- can_permanent_inbox == o.can_permanent_inbox &&
121
120
  default_expiration_millis == o.default_expiration_millis &&
122
- default_expires_at == o.default_expires_at &&
123
121
  max_expiration_millis == o.max_expiration_millis &&
122
+ default_expires_at == o.default_expires_at &&
123
+ can_permanent_inbox == o.can_permanent_inbox &&
124
124
  next_inbox_allows_permanent == o.next_inbox_allows_permanent
125
125
  end
126
126
 
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [can_permanent_inbox, default_expiration_millis, default_expires_at, max_expiration_millis, next_inbox_allows_permanent].hash
136
+ [default_expiration_millis, max_expiration_millis, default_expires_at, can_permanent_inbox, next_inbox_allows_permanent].hash
137
137
  end
138
138
 
139
139
  # 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,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,16 +67,16 @@ 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
80
  if @id.nil?
85
81
  invalid_properties.push('invalid value for "id", id cannot be nil.')
86
82
  end
@@ -89,15 +85,19 @@ module MailSlurpClient
89
85
  invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
90
86
  end
91
87
 
88
+ if @email_address.nil?
89
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
90
+ end
91
+
92
92
  invalid_properties
93
93
  end
94
94
 
95
95
  # Check to see if the all the properties in the model are valid
96
96
  # @return true if the model is valid
97
97
  def valid?
98
- return false if @email_address.nil?
99
98
  return false if @id.nil?
100
99
  return false if @inbox_id.nil?
100
+ return false if @email_address.nil?
101
101
  true
102
102
  end
103
103
 
@@ -106,9 +106,9 @@ module MailSlurpClient
106
106
  def ==(o)
107
107
  return true if self.equal?(o)
108
108
  self.class == o.class &&
109
- email_address == o.email_address &&
110
109
  id == o.id &&
111
- inbox_id == o.inbox_id
110
+ inbox_id == o.inbox_id &&
111
+ email_address == o.email_address
112
112
  end
113
113
 
114
114
  # @see the `==` method
@@ -120,7 +120,7 @@ module MailSlurpClient
120
120
  # Calculates hash code according to all attributes.
121
121
  # @return [Integer] Hash code
122
122
  def hash
123
- [email_address, id, inbox_id].hash
123
+ [id, inbox_id, email_address].hash
124
124
  end
125
125
 
126
126
  # 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,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,20 +70,20 @@ 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
87
  if @id.nil?
96
88
  invalid_properties.push('invalid value for "id", id cannot be nil.')
97
89
  end
@@ -100,16 +92,24 @@ module MailSlurpClient
100
92
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
101
93
  end
102
94
 
95
+ if @email_address.nil?
96
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
97
+ end
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
- return false if @email_address.nil?
111
109
  return false if @id.nil?
112
110
  return false if @user_id.nil?
111
+ return false if @email_address.nil?
112
+ return false if @created_at.nil?
113
113
  true
114
114
  end
115
115
 
@@ -118,10 +118,10 @@ module MailSlurpClient
118
118
  def ==(o)
119
119
  return true if self.equal?(o)
120
120
  self.class == o.class &&
121
- created_at == o.created_at &&
122
- email_address == o.email_address &&
123
121
  id == o.id &&
124
- user_id == o.user_id
122
+ user_id == o.user_id &&
123
+ email_address == o.email_address &&
124
+ created_at == o.created_at
125
125
  end
126
126
 
127
127
  # @see the `==` method
@@ -133,7 +133,7 @@ module MailSlurpClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [created_at, email_address, id, user_id].hash
136
+ [id, user_id, email_address, created_at].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash