mailslurp_client 15.7.17 → 15.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mailslurp_client/api/inbox_controller_api.rb +2 -2
  3. data/lib/mailslurp_client/api/template_controller_api.rb +28 -16
  4. data/lib/mailslurp_client/api/webhook_controller_api.rb +68 -10
  5. data/lib/mailslurp_client/models/abstract_webhook_payload.rb +15 -15
  6. data/lib/mailslurp_client/models/alias_projection.rb +33 -33
  7. data/lib/mailslurp_client/models/attachment_projection.rb +28 -28
  8. data/lib/mailslurp_client/models/create_template_options.rb +3 -1
  9. data/lib/mailslurp_client/models/email_projection.rb +40 -40
  10. data/lib/mailslurp_client/models/expired_inbox_record_projection.rb +18 -18
  11. data/lib/mailslurp_client/models/flush_expired_inboxes_result.rb +2 -0
  12. data/lib/mailslurp_client/models/missed_email_projection.rb +13 -13
  13. data/lib/mailslurp_client/models/page_alias.rb +19 -19
  14. data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
  15. data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
  16. data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
  17. data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
  18. data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
  19. data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
  20. data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
  21. data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
  22. data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
  23. data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
  24. data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
  25. data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
  26. data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
  27. data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
  28. data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
  29. data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
  30. data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
  31. data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
  32. data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
  33. data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
  34. data/lib/mailslurp_client/models/sent_email_projection.rb +30 -30
  35. data/lib/mailslurp_client/models/template_dto.rb +5 -0
  36. data/lib/mailslurp_client/models/template_projection.rb +18 -18
  37. data/lib/mailslurp_client/models/template_variable.rb +2 -0
  38. data/lib/mailslurp_client/models/thread_projection.rb +44 -33
  39. data/lib/mailslurp_client/models/tracking_pixel_projection.rb +18 -18
  40. data/lib/mailslurp_client/models/unknown_missed_email_projection.rb +13 -13
  41. data/lib/mailslurp_client/models/verify_webhook_signature_options.rb +225 -0
  42. data/lib/mailslurp_client/models/verify_webhook_signature_results.rb +211 -0
  43. data/lib/mailslurp_client/models/webhook_projection.rb +18 -18
  44. data/lib/mailslurp_client/version.rb +1 -1
  45. data/lib/mailslurp_client.rb +2 -0
  46. metadata +4 -2
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<TrackingPixelProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<UnknownMissedEmailProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookProjection>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -21,22 +21,22 @@ module MailSlurpClient
21
21
 
22
22
  attr_accessor :total
23
23
 
24
- attr_accessor :last
25
-
26
24
  attr_accessor :total_elements
27
25
 
28
26
  attr_accessor :total_pages
29
27
 
28
+ attr_accessor :last
29
+
30
30
  attr_accessor :size
31
31
 
32
32
  attr_accessor :number
33
33
 
34
34
  attr_accessor :sort
35
35
 
36
- attr_accessor :first
37
-
38
36
  attr_accessor :number_of_elements
39
37
 
38
+ attr_accessor :first
39
+
40
40
  attr_accessor :empty
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -45,14 +45,14 @@ module MailSlurpClient
45
45
  :'content' => :'content',
46
46
  :'pageable' => :'pageable',
47
47
  :'total' => :'total',
48
- :'last' => :'last',
49
48
  :'total_elements' => :'totalElements',
50
49
  :'total_pages' => :'totalPages',
50
+ :'last' => :'last',
51
51
  :'size' => :'size',
52
52
  :'number' => :'number',
53
53
  :'sort' => :'sort',
54
- :'first' => :'first',
55
54
  :'number_of_elements' => :'numberOfElements',
55
+ :'first' => :'first',
56
56
  :'empty' => :'empty'
57
57
  }
58
58
  end
@@ -63,14 +63,14 @@ module MailSlurpClient
63
63
  :'content' => :'Array<WebhookResultDto>',
64
64
  :'pageable' => :'PageableObject',
65
65
  :'total' => :'Integer',
66
- :'last' => :'Boolean',
67
66
  :'total_elements' => :'Integer',
68
67
  :'total_pages' => :'Integer',
68
+ :'last' => :'Boolean',
69
69
  :'size' => :'Integer',
70
70
  :'number' => :'Integer',
71
71
  :'sort' => :'Sort',
72
- :'first' => :'Boolean',
73
72
  :'number_of_elements' => :'Integer',
73
+ :'first' => :'Boolean',
74
74
  :'empty' => :'Boolean'
75
75
  }
76
76
  end
@@ -110,10 +110,6 @@ module MailSlurpClient
110
110
  self.total = attributes[:'total']
111
111
  end
112
112
 
113
- if attributes.key?(:'last')
114
- self.last = attributes[:'last']
115
- end
116
-
117
113
  if attributes.key?(:'total_elements')
118
114
  self.total_elements = attributes[:'total_elements']
119
115
  end
@@ -122,6 +118,10 @@ module MailSlurpClient
122
118
  self.total_pages = attributes[:'total_pages']
123
119
  end
124
120
 
121
+ if attributes.key?(:'last')
122
+ self.last = attributes[:'last']
123
+ end
124
+
125
125
  if attributes.key?(:'size')
126
126
  self.size = attributes[:'size']
127
127
  end
@@ -134,14 +134,14 @@ module MailSlurpClient
134
134
  self.sort = attributes[:'sort']
135
135
  end
136
136
 
137
- if attributes.key?(:'first')
138
- self.first = attributes[:'first']
139
- end
140
-
141
137
  if attributes.key?(:'number_of_elements')
142
138
  self.number_of_elements = attributes[:'number_of_elements']
143
139
  end
144
140
 
141
+ if attributes.key?(:'first')
142
+ self.first = attributes[:'first']
143
+ end
144
+
145
145
  if attributes.key?(:'empty')
146
146
  self.empty = attributes[:'empty']
147
147
  end
@@ -168,14 +168,14 @@ module MailSlurpClient
168
168
  content == o.content &&
169
169
  pageable == o.pageable &&
170
170
  total == o.total &&
171
- last == o.last &&
172
171
  total_elements == o.total_elements &&
173
172
  total_pages == o.total_pages &&
173
+ last == o.last &&
174
174
  size == o.size &&
175
175
  number == o.number &&
176
176
  sort == o.sort &&
177
- first == o.first &&
178
177
  number_of_elements == o.number_of_elements &&
178
+ first == o.first &&
179
179
  empty == o.empty
180
180
  end
181
181
 
@@ -188,7 +188,7 @@ module MailSlurpClient
188
188
  # Calculates hash code according to all attributes.
189
189
  # @return [Integer] Hash code
190
190
  def hash
191
- [content, pageable, total, last, total_elements, total_pages, size, number, sort, first, number_of_elements, empty].hash
191
+ [content, pageable, total, total_elements, total_pages, last, size, number, sort, number_of_elements, first, empty].hash
192
192
  end
193
193
 
194
194
  # Builds the object from hash
@@ -23,20 +23,20 @@ module MailSlurpClient
23
23
 
24
24
  attr_accessor :subject
25
25
 
26
- attr_accessor :created_at
26
+ attr_accessor :to
27
27
 
28
28
  attr_accessor :inbox_id
29
29
 
30
30
  attr_accessor :attachments
31
31
 
32
- attr_accessor :to
32
+ attr_accessor :body_md5_hash
33
+
34
+ attr_accessor :created_at
33
35
 
34
36
  attr_accessor :bcc
35
37
 
36
38
  attr_accessor :cc
37
39
 
38
- attr_accessor :body_md5_hash
39
-
40
40
  attr_accessor :virtual_send
41
41
 
42
42
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -46,13 +46,13 @@ module MailSlurpClient
46
46
  :'from' => :'from',
47
47
  :'user_id' => :'userId',
48
48
  :'subject' => :'subject',
49
- :'created_at' => :'createdAt',
49
+ :'to' => :'to',
50
50
  :'inbox_id' => :'inboxId',
51
51
  :'attachments' => :'attachments',
52
- :'to' => :'to',
52
+ :'body_md5_hash' => :'bodyMD5Hash',
53
+ :'created_at' => :'createdAt',
53
54
  :'bcc' => :'bcc',
54
55
  :'cc' => :'cc',
55
- :'body_md5_hash' => :'bodyMD5Hash',
56
56
  :'virtual_send' => :'virtualSend'
57
57
  }
58
58
  end
@@ -64,13 +64,13 @@ module MailSlurpClient
64
64
  :'from' => :'String',
65
65
  :'user_id' => :'String',
66
66
  :'subject' => :'String',
67
- :'created_at' => :'DateTime',
67
+ :'to' => :'Array<String>',
68
68
  :'inbox_id' => :'String',
69
69
  :'attachments' => :'Array<String>',
70
- :'to' => :'Array<String>',
70
+ :'body_md5_hash' => :'String',
71
+ :'created_at' => :'DateTime',
71
72
  :'bcc' => :'Array<String>',
72
73
  :'cc' => :'Array<String>',
73
- :'body_md5_hash' => :'String',
74
74
  :'virtual_send' => :'Boolean'
75
75
  }
76
76
  end
@@ -112,8 +112,10 @@ module MailSlurpClient
112
112
  self.subject = attributes[:'subject']
113
113
  end
114
114
 
115
- if attributes.key?(:'created_at')
116
- self.created_at = attributes[:'created_at']
115
+ if attributes.key?(:'to')
116
+ if (value = attributes[:'to']).is_a?(Array)
117
+ self.to = value
118
+ end
117
119
  end
118
120
 
119
121
  if attributes.key?(:'inbox_id')
@@ -126,10 +128,12 @@ module MailSlurpClient
126
128
  end
127
129
  end
128
130
 
129
- if attributes.key?(:'to')
130
- if (value = attributes[:'to']).is_a?(Array)
131
- self.to = value
132
- end
131
+ if attributes.key?(:'body_md5_hash')
132
+ self.body_md5_hash = attributes[:'body_md5_hash']
133
+ end
134
+
135
+ if attributes.key?(:'created_at')
136
+ self.created_at = attributes[:'created_at']
133
137
  end
134
138
 
135
139
  if attributes.key?(:'bcc')
@@ -144,10 +148,6 @@ module MailSlurpClient
144
148
  end
145
149
  end
146
150
 
147
- if attributes.key?(:'body_md5_hash')
148
- self.body_md5_hash = attributes[:'body_md5_hash']
149
- end
150
-
151
151
  if attributes.key?(:'virtual_send')
152
152
  self.virtual_send = attributes[:'virtual_send']
153
153
  end
@@ -165,8 +165,8 @@ module MailSlurpClient
165
165
  invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
166
166
  end
167
167
 
168
- if @created_at.nil?
169
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
168
+ if @to.nil?
169
+ invalid_properties.push('invalid value for "to", to cannot be nil.')
170
170
  end
171
171
 
172
172
  if @inbox_id.nil?
@@ -177,8 +177,8 @@ module MailSlurpClient
177
177
  invalid_properties.push('invalid value for "attachments", attachments cannot be nil.')
178
178
  end
179
179
 
180
- if @to.nil?
181
- invalid_properties.push('invalid value for "to", to cannot be nil.')
180
+ if @created_at.nil?
181
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
182
182
  end
183
183
 
184
184
  if @bcc.nil?
@@ -197,10 +197,10 @@ module MailSlurpClient
197
197
  def valid?
198
198
  return false if @id.nil?
199
199
  return false if @user_id.nil?
200
- return false if @created_at.nil?
200
+ return false if @to.nil?
201
201
  return false if @inbox_id.nil?
202
202
  return false if @attachments.nil?
203
- return false if @to.nil?
203
+ return false if @created_at.nil?
204
204
  return false if @bcc.nil?
205
205
  return false if @cc.nil?
206
206
  true
@@ -215,13 +215,13 @@ module MailSlurpClient
215
215
  from == o.from &&
216
216
  user_id == o.user_id &&
217
217
  subject == o.subject &&
218
- created_at == o.created_at &&
218
+ to == o.to &&
219
219
  inbox_id == o.inbox_id &&
220
220
  attachments == o.attachments &&
221
- to == o.to &&
221
+ body_md5_hash == o.body_md5_hash &&
222
+ created_at == o.created_at &&
222
223
  bcc == o.bcc &&
223
224
  cc == o.cc &&
224
- body_md5_hash == o.body_md5_hash &&
225
225
  virtual_send == o.virtual_send
226
226
  end
227
227
 
@@ -234,7 +234,7 @@ module MailSlurpClient
234
234
  # Calculates hash code according to all attributes.
235
235
  # @return [Integer] Hash code
236
236
  def hash
237
- [id, from, user_id, subject, created_at, inbox_id, attachments, to, bcc, cc, body_md5_hash, virtual_send].hash
237
+ [id, from, user_id, subject, to, inbox_id, attachments, body_md5_hash, created_at, bcc, cc, virtual_send].hash
238
238
  end
239
239
 
240
240
  # Builds the object from hash
@@ -15,14 +15,19 @@ require 'date'
15
15
  module MailSlurpClient
16
16
  # Email template
17
17
  class TemplateDto
18
+ # ID of template
18
19
  attr_accessor :id
19
20
 
21
+ # Template name
20
22
  attr_accessor :name
21
23
 
24
+ # Variables available in template that can be replaced with values
22
25
  attr_accessor :variables
23
26
 
27
+ # Content of the template
24
28
  attr_accessor :content
25
29
 
30
+ # Created at time
26
31
  attr_accessor :created_at
27
32
 
28
33
  # Attribute mapping from ruby-style variable name to JSON key.