mailslurp_client 15.0.3 → 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 +137 -117
  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 +256 -236
  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 +0 -5
  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 +2 -1
  158. metadata +4 -3
@@ -13,62 +13,59 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
- # Options for sending an email message from an inbox. You must provide one of: `to`, `toGroup`, or `toContacts` to send an email. All other parameters are optional.
16
+ # Options for the email
17
17
  class SendEmailOptions
18
- # Add tracking pixel to email
19
- attr_accessor :add_tracking_pixel
18
+ # Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients.
19
+ attr_accessor :to_contacts
20
20
 
21
- # Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods.
22
- attr_accessor :attachments
21
+ # Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients
22
+ attr_accessor :to_group
23
23
 
24
- # Optional list of bcc destination email addresses
25
- attr_accessor :bcc
24
+ # List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing.
25
+ attr_accessor :to
26
26
 
27
- # Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body.
28
- attr_accessor :body
27
+ # Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used.
28
+ attr_accessor :from
29
29
 
30
30
  # Optional list of cc destination email addresses
31
31
  attr_accessor :cc
32
32
 
33
- # Optional charset
34
- attr_accessor :charset
35
-
36
- # Optional from address. Email address is RFC 5322 format and may include a display name and email in angle brackets (`my@address.com` or `My inbox <my@address.com>`). If no sender is set the source inbox address will be used for this field. If you set `useInboxName` to `true` the from field will include the inbox name as a display name: `inbox_name <inbox@address.com>`. For this to work use the name field when creating an inbox. Beware of potential spam penalties when setting the from field to an address not used by the inbox. Your emails may get blocked by services if you impersonate another address. To use a custom email addresses use a custom domain. You can create domains with the DomainController. The domain must be verified in the dashboard before it can be used.
37
- attr_accessor :from
38
-
39
- # Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.)
40
- attr_accessor :html
33
+ # Optional list of bcc destination email addresses
34
+ attr_accessor :bcc
41
35
 
42
- # Optional HTML flag. If true the `content-type` of the email will be `text/html`. Set to true when sending HTML to ensure proper rending on email clients
43
- attr_accessor :is_html
36
+ # Optional email subject line
37
+ attr_accessor :subject
44
38
 
45
39
  # Optional replyTo header
46
40
  attr_accessor :reply_to
47
41
 
48
- # Optional strategy to use when sending the email
49
- attr_accessor :send_strategy
42
+ # Optional contents of email. If body contains HTML then set `isHTML` to true to ensure that email clients render it correctly. You can use moustache template syntax in the email body in conjunction with `toGroup` contact variables or `templateVariables` data. If you need more templating control consider creating a template and using the `template` property instead of the body.
43
+ attr_accessor :body
50
44
 
51
- # Optional email subject line
52
- attr_accessor :subject
45
+ # Optional HTML flag to indicate that contents is HTML. Set's a `content-type: text/html` for email. (Deprecated: use `isHTML` instead.)
46
+ attr_accessor :html
53
47
 
54
- # Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard.
55
- attr_accessor :template
48
+ # Optional charset
49
+ attr_accessor :charset
50
+
51
+ # Optional list of attachment IDs to send with this email. You must first upload each attachment separately via method call or dashboard in order to obtain attachment IDs. This way you can reuse attachments with different emails once uploaded. There are several ways to upload that support `multi-part form`, `base64 file encoding`, and octet stream binary uploads. See the `UploadController` for available methods.
52
+ attr_accessor :attachments
56
53
 
57
54
  # Optional map of template variables. Will replace moustache syntax variables in subject and body or template with the associated values if found.
58
55
  attr_accessor :template_variables
59
56
 
60
- # List of destination email addresses. Each email address must be RFC 5322 format. Even single recipients must be in array form. Maximum recipients per email depends on your plan. If you need to send many emails try using contacts or contact groups or use a non standard sendStrategy to ensure that spam filters are not triggered (many recipients in one email can affect your spam rating). Be cautious when sending emails that your recipients exist. High bounce rates (meaning a high percentage of emails cannot be delivered because an address does not exist) can result in account freezing.
61
- attr_accessor :to
62
-
63
- # Optional list of contact IDs to send email to. Manage your contacts via the API or dashboard. When contacts are used the email is sent to each contact separately so they will not see other recipients.
64
- attr_accessor :to_contacts
57
+ # Optional template ID to use for body. Will override body if provided. When using a template make sure you pass the corresponding map of `templateVariables`. You can find which variables are needed by fetching the template itself or viewing it in the dashboard.
58
+ attr_accessor :template
65
59
 
66
- # Optional contact group ID to send email to. You can create contacts and contact groups in the API or dashboard and use them for email campaigns. When contact groups are used the email is sent to each contact separately so they will not see other recipients
67
- attr_accessor :to_group
60
+ # How an email should be sent based on its recipients
61
+ attr_accessor :send_strategy
68
62
 
69
63
  # Use name of inbox as sender email address name. Will construct RFC 5322 email address with `Inbox name <inbox@address.com>` if the inbox has a name.
70
64
  attr_accessor :use_inbox_name
71
65
 
66
+ # Add tracking pixel to email
67
+ attr_accessor :add_tracking_pixel
68
+
72
69
  class EnumAttributeValidator
73
70
  attr_reader :datatype
74
71
  attr_reader :allowable_values
@@ -94,48 +91,46 @@ module MailSlurpClient
94
91
  # Attribute mapping from ruby-style variable name to JSON key.
95
92
  def self.attribute_map
96
93
  {
97
- :'add_tracking_pixel' => :'addTrackingPixel',
98
- :'attachments' => :'attachments',
94
+ :'to_contacts' => :'toContacts',
95
+ :'to_group' => :'toGroup',
96
+ :'to' => :'to',
97
+ :'from' => :'from',
98
+ :'cc' => :'cc',
99
99
  :'bcc' => :'bcc',
100
+ :'subject' => :'subject',
101
+ :'reply_to' => :'replyTo',
100
102
  :'body' => :'body',
101
- :'cc' => :'cc',
102
- :'charset' => :'charset',
103
- :'from' => :'from',
104
103
  :'html' => :'html',
105
- :'is_html' => :'isHTML',
106
- :'reply_to' => :'replyTo',
107
- :'send_strategy' => :'sendStrategy',
108
- :'subject' => :'subject',
109
- :'template' => :'template',
104
+ :'charset' => :'charset',
105
+ :'attachments' => :'attachments',
110
106
  :'template_variables' => :'templateVariables',
111
- :'to' => :'to',
112
- :'to_contacts' => :'toContacts',
113
- :'to_group' => :'toGroup',
114
- :'use_inbox_name' => :'useInboxName'
107
+ :'template' => :'template',
108
+ :'send_strategy' => :'sendStrategy',
109
+ :'use_inbox_name' => :'useInboxName',
110
+ :'add_tracking_pixel' => :'addTrackingPixel'
115
111
  }
116
112
  end
117
113
 
118
114
  # Attribute type mapping.
119
115
  def self.openapi_types
120
116
  {
121
- :'add_tracking_pixel' => :'Boolean',
122
- :'attachments' => :'Array<String>',
117
+ :'to_contacts' => :'Array<String>',
118
+ :'to_group' => :'String',
119
+ :'to' => :'Array<String>',
120
+ :'from' => :'String',
121
+ :'cc' => :'Array<String>',
123
122
  :'bcc' => :'Array<String>',
123
+ :'subject' => :'String',
124
+ :'reply_to' => :'String',
124
125
  :'body' => :'String',
125
- :'cc' => :'Array<String>',
126
- :'charset' => :'String',
127
- :'from' => :'String',
128
126
  :'html' => :'Boolean',
129
- :'is_html' => :'Boolean',
130
- :'reply_to' => :'String',
131
- :'send_strategy' => :'String',
132
- :'subject' => :'String',
127
+ :'charset' => :'String',
128
+ :'attachments' => :'Array<String>',
129
+ :'template_variables' => :'Hash<String, Object>',
133
130
  :'template' => :'String',
134
- :'template_variables' => :'Object',
135
- :'to' => :'Array<String>',
136
- :'to_contacts' => :'Array<String>',
137
- :'to_group' => :'String',
138
- :'use_inbox_name' => :'Boolean'
131
+ :'send_strategy' => :'String',
132
+ :'use_inbox_name' => :'Boolean',
133
+ :'add_tracking_pixel' => :'Boolean'
139
134
  }
140
135
  end
141
136
 
@@ -160,24 +155,24 @@ module MailSlurpClient
160
155
  h[k.to_sym] = v
161
156
  }
162
157
 
163
- if attributes.key?(:'add_tracking_pixel')
164
- self.add_tracking_pixel = attributes[:'add_tracking_pixel']
158
+ if attributes.key?(:'to_contacts')
159
+ if (value = attributes[:'to_contacts']).is_a?(Array)
160
+ self.to_contacts = value
161
+ end
165
162
  end
166
163
 
167
- if attributes.key?(:'attachments')
168
- if (value = attributes[:'attachments']).is_a?(Array)
169
- self.attachments = value
170
- end
164
+ if attributes.key?(:'to_group')
165
+ self.to_group = attributes[:'to_group']
171
166
  end
172
167
 
173
- if attributes.key?(:'bcc')
174
- if (value = attributes[:'bcc']).is_a?(Array)
175
- self.bcc = value
168
+ if attributes.key?(:'to')
169
+ if (value = attributes[:'to']).is_a?(Array)
170
+ self.to = value
176
171
  end
177
172
  end
178
173
 
179
- if attributes.key?(:'body')
180
- self.body = attributes[:'body']
174
+ if attributes.key?(:'from')
175
+ self.from = attributes[:'from']
181
176
  end
182
177
 
183
178
  if attributes.key?(:'cc')
@@ -186,61 +181,59 @@ module MailSlurpClient
186
181
  end
187
182
  end
188
183
 
189
- if attributes.key?(:'charset')
190
- self.charset = attributes[:'charset']
191
- end
192
-
193
- if attributes.key?(:'from')
194
- self.from = attributes[:'from']
195
- end
196
-
197
- if attributes.key?(:'html')
198
- self.html = attributes[:'html']
184
+ if attributes.key?(:'bcc')
185
+ if (value = attributes[:'bcc']).is_a?(Array)
186
+ self.bcc = value
187
+ end
199
188
  end
200
189
 
201
- if attributes.key?(:'is_html')
202
- self.is_html = attributes[:'is_html']
190
+ if attributes.key?(:'subject')
191
+ self.subject = attributes[:'subject']
203
192
  end
204
193
 
205
194
  if attributes.key?(:'reply_to')
206
195
  self.reply_to = attributes[:'reply_to']
207
196
  end
208
197
 
209
- if attributes.key?(:'send_strategy')
210
- self.send_strategy = attributes[:'send_strategy']
198
+ if attributes.key?(:'body')
199
+ self.body = attributes[:'body']
211
200
  end
212
201
 
213
- if attributes.key?(:'subject')
214
- self.subject = attributes[:'subject']
202
+ if attributes.key?(:'html')
203
+ self.html = attributes[:'html']
215
204
  end
216
205
 
217
- if attributes.key?(:'template')
218
- self.template = attributes[:'template']
206
+ if attributes.key?(:'charset')
207
+ self.charset = attributes[:'charset']
219
208
  end
220
209
 
221
- if attributes.key?(:'template_variables')
222
- self.template_variables = attributes[:'template_variables']
210
+ if attributes.key?(:'attachments')
211
+ if (value = attributes[:'attachments']).is_a?(Array)
212
+ self.attachments = value
213
+ end
223
214
  end
224
215
 
225
- if attributes.key?(:'to')
226
- if (value = attributes[:'to']).is_a?(Array)
227
- self.to = value
216
+ if attributes.key?(:'template_variables')
217
+ if (value = attributes[:'template_variables']).is_a?(Hash)
218
+ self.template_variables = value
228
219
  end
229
220
  end
230
221
 
231
- if attributes.key?(:'to_contacts')
232
- if (value = attributes[:'to_contacts']).is_a?(Array)
233
- self.to_contacts = value
234
- end
222
+ if attributes.key?(:'template')
223
+ self.template = attributes[:'template']
235
224
  end
236
225
 
237
- if attributes.key?(:'to_group')
238
- self.to_group = attributes[:'to_group']
226
+ if attributes.key?(:'send_strategy')
227
+ self.send_strategy = attributes[:'send_strategy']
239
228
  end
240
229
 
241
230
  if attributes.key?(:'use_inbox_name')
242
231
  self.use_inbox_name = attributes[:'use_inbox_name']
243
232
  end
233
+
234
+ if attributes.key?(:'add_tracking_pixel')
235
+ self.add_tracking_pixel = attributes[:'add_tracking_pixel']
236
+ end
244
237
  end
245
238
 
246
239
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -273,24 +266,23 @@ module MailSlurpClient
273
266
  def ==(o)
274
267
  return true if self.equal?(o)
275
268
  self.class == o.class &&
276
- add_tracking_pixel == o.add_tracking_pixel &&
277
- attachments == o.attachments &&
269
+ to_contacts == o.to_contacts &&
270
+ to_group == o.to_group &&
271
+ to == o.to &&
272
+ from == o.from &&
273
+ cc == o.cc &&
278
274
  bcc == o.bcc &&
275
+ subject == o.subject &&
276
+ reply_to == o.reply_to &&
279
277
  body == o.body &&
280
- cc == o.cc &&
281
- charset == o.charset &&
282
- from == o.from &&
283
278
  html == o.html &&
284
- is_html == o.is_html &&
285
- reply_to == o.reply_to &&
286
- send_strategy == o.send_strategy &&
287
- subject == o.subject &&
288
- template == o.template &&
279
+ charset == o.charset &&
280
+ attachments == o.attachments &&
289
281
  template_variables == o.template_variables &&
290
- to == o.to &&
291
- to_contacts == o.to_contacts &&
292
- to_group == o.to_group &&
293
- use_inbox_name == o.use_inbox_name
282
+ template == o.template &&
283
+ send_strategy == o.send_strategy &&
284
+ use_inbox_name == o.use_inbox_name &&
285
+ add_tracking_pixel == o.add_tracking_pixel
294
286
  end
295
287
 
296
288
  # @see the `==` method
@@ -302,7 +294,7 @@ module MailSlurpClient
302
294
  # Calculates hash code according to all attributes.
303
295
  # @return [Integer] Hash code
304
296
  def hash
305
- [add_tracking_pixel, attachments, bcc, body, cc, charset, from, html, is_html, reply_to, send_strategy, subject, template, template_variables, to, to_contacts, to_group, use_inbox_name].hash
297
+ [to_contacts, to_group, to, from, cc, bcc, subject, reply_to, body, html, charset, attachments, template_variables, template, send_strategy, use_inbox_name, add_tracking_pixel].hash
306
298
  end
307
299
 
308
300
  # Builds the object from hash
@@ -13,28 +13,29 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module MailSlurpClient
16
+ # Sender object containing from email address and from personal name if provided in address
16
17
  class Sender
18
+ attr_accessor :raw_value
19
+
17
20
  attr_accessor :email_address
18
21
 
19
22
  attr_accessor :name
20
23
 
21
- attr_accessor :raw_value
22
-
23
24
  # Attribute mapping from ruby-style variable name to JSON key.
24
25
  def self.attribute_map
25
26
  {
27
+ :'raw_value' => :'rawValue',
26
28
  :'email_address' => :'emailAddress',
27
- :'name' => :'name',
28
- :'raw_value' => :'rawValue'
29
+ :'name' => :'name'
29
30
  }
30
31
  end
31
32
 
32
33
  # Attribute type mapping.
33
34
  def self.openapi_types
34
35
  {
36
+ :'raw_value' => :'String',
35
37
  :'email_address' => :'String',
36
- :'name' => :'String',
37
- :'raw_value' => :'String'
38
+ :'name' => :'String'
38
39
  }
39
40
  end
40
41
 
@@ -59,6 +60,10 @@ module MailSlurpClient
59
60
  h[k.to_sym] = v
60
61
  }
61
62
 
63
+ if attributes.key?(:'raw_value')
64
+ self.raw_value = attributes[:'raw_value']
65
+ end
66
+
62
67
  if attributes.key?(:'email_address')
63
68
  self.email_address = attributes[:'email_address']
64
69
  end
@@ -66,32 +71,18 @@ module MailSlurpClient
66
71
  if attributes.key?(:'name')
67
72
  self.name = attributes[:'name']
68
73
  end
69
-
70
- if attributes.key?(:'raw_value')
71
- self.raw_value = attributes[:'raw_value']
72
- end
73
74
  end
74
75
 
75
76
  # Show invalid properties with the reasons. Usually used together with valid?
76
77
  # @return Array for valid properties with the reasons
77
78
  def list_invalid_properties
78
79
  invalid_properties = Array.new
79
- if @email_address.nil?
80
- invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
81
- end
82
-
83
- if @raw_value.nil?
84
- invalid_properties.push('invalid value for "raw_value", raw_value cannot be nil.')
85
- end
86
-
87
80
  invalid_properties
88
81
  end
89
82
 
90
83
  # Check to see if the all the properties in the model are valid
91
84
  # @return true if the model is valid
92
85
  def valid?
93
- return false if @email_address.nil?
94
- return false if @raw_value.nil?
95
86
  true
96
87
  end
97
88
 
@@ -100,9 +91,9 @@ module MailSlurpClient
100
91
  def ==(o)
101
92
  return true if self.equal?(o)
102
93
  self.class == o.class &&
94
+ raw_value == o.raw_value &&
103
95
  email_address == o.email_address &&
104
- name == o.name &&
105
- raw_value == o.raw_value
96
+ name == o.name
106
97
  end
107
98
 
108
99
  # @see the `==` method
@@ -114,7 +105,7 @@ module MailSlurpClient
114
105
  # Calculates hash code according to all attributes.
115
106
  # @return [Integer] Hash code
116
107
  def hash
117
- [email_address, name, raw_value].hash
108
+ [raw_value, email_address, name].hash
118
109
  end
119
110
 
120
111
  # Builds the object from hash