mailslurp_client 15.13.7 → 15.13.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mailslurp_client/api/webhook_controller_api.rb +87 -2
- data/lib/mailslurp_client/models/abstract_webhook_payload.rb +2 -2
- data/lib/mailslurp_client/models/alias_projection.rb +27 -27
- data/lib/mailslurp_client/models/attachment_projection.rb +14 -14
- data/lib/mailslurp_client/models/bounce_projection.rb +22 -22
- data/lib/mailslurp_client/models/bounce_recipient_projection.rb +13 -13
- data/lib/mailslurp_client/models/create_webhook_options.rb +2 -2
- data/lib/mailslurp_client/models/page_alias.rb +19 -19
- data/lib/mailslurp_client/models/page_attachment_entity.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_email.rb +19 -19
- data/lib/mailslurp_client/models/page_bounced_recipients.rb +19 -19
- data/lib/mailslurp_client/models/page_complaint.rb +19 -19
- data/lib/mailslurp_client/models/page_contact_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_delivery_status.rb +19 -19
- data/lib/mailslurp_client/models/page_email_preview.rb +19 -19
- data/lib/mailslurp_client/models/page_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_email_validation_request.rb +19 -19
- data/lib/mailslurp_client/models/page_expired_inbox_record_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_group_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_forwarder_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_inbox_ruleset_dto.rb +19 -19
- data/lib/mailslurp_client/models/page_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_organization_inbox_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_sent_email_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sent_email_with_queue_projection.rb +16 -16
- data/lib/mailslurp_client/models/page_sms_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_template_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_thread_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_unknown_missed_email_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_projection.rb +19 -19
- data/lib/mailslurp_client/models/page_webhook_result.rb +19 -19
- data/lib/mailslurp_client/models/phone_number_projection.rb +19 -19
- data/lib/mailslurp_client/models/template_projection.rb +15 -15
- data/lib/mailslurp_client/models/thread_projection.rb +16 -16
- data/lib/mailslurp_client/models/tracking_pixel_projection.rb +19 -19
- data/lib/mailslurp_client/models/webhook_bounce_payload.rb +4 -2
- data/lib/mailslurp_client/models/webhook_bounce_recipient_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_dto.rb +2 -2
- data/lib/mailslurp_client/models/webhook_email_opened_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_email_read_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_new_attachment_payload.rb +2 -2
- data/lib/mailslurp_client/models/webhook_new_contact_payload.rb +17 -2
- data/lib/mailslurp_client/models/webhook_new_email_payload.rb +3 -3
- data/lib/mailslurp_client/models/webhook_projection.rb +12 -3
- data/lib/mailslurp_client/models/webhook_result_dto.rb +2 -2
- data/lib/mailslurp_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3719010699a65ff673bd6554e680a323f1680f2ad514360c1af80bac3ec35a3e
|
4
|
+
data.tar.gz: 8704bbf0b868c9f1fda422fd873051c06797181623c824c3a5f6c9810bc61d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a18499b444c4db959e946c5c5f1065e22cb68a4a35a1d745a3dce780f2360470630c961ceb2f329955491962ac4e763fbafcdfb2fd226038392f0dfe2554e2f6
|
7
|
+
data.tar.gz: dee389d7e7bf7aadcf992c9d941b81cced9f84160faecf09e57efadd3a88518485885eb693c7cca405dd91a2bf9a86216ac6fd3ca4fe819f3b57d60577ebba34
|
@@ -487,6 +487,8 @@ module MailSlurpClient
|
|
487
487
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'DESC')
|
488
488
|
# @option opts [String] :search_filter Optional search filter
|
489
489
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
490
|
+
# @option opts [String] :inbox_id Filter by inboxId
|
491
|
+
# @option opts [String] :phone_id Filter by phoneId
|
490
492
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
491
493
|
# @return [PageWebhookProjection]
|
492
494
|
def get_all_webhooks(opts = {})
|
@@ -502,6 +504,8 @@ module MailSlurpClient
|
|
502
504
|
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
503
505
|
# @option opts [String] :search_filter Optional search filter
|
504
506
|
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
507
|
+
# @option opts [String] :inbox_id Filter by inboxId
|
508
|
+
# @option opts [String] :phone_id Filter by phoneId
|
505
509
|
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
506
510
|
# @return [Array<(PageWebhookProjection, Integer, Hash)>] PageWebhookProjection data, response status code and response headers
|
507
511
|
def get_all_webhooks_with_http_info(opts = {})
|
@@ -538,6 +542,8 @@ module MailSlurpClient
|
|
538
542
|
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
539
543
|
query_params[:'searchFilter'] = opts[:'search_filter'] if !opts[:'search_filter'].nil?
|
540
544
|
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
545
|
+
query_params[:'inboxId'] = opts[:'inbox_id'] if !opts[:'inbox_id'].nil?
|
546
|
+
query_params[:'phoneId'] = opts[:'phone_id'] if !opts[:'phone_id'].nil?
|
541
547
|
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
542
548
|
|
543
549
|
# header parameters
|
@@ -677,7 +683,7 @@ module MailSlurpClient
|
|
677
683
|
fail ArgumentError, "Missing the required parameter 'event' when calling WebhookControllerApi.get_json_schema_for_webhook_event"
|
678
684
|
end
|
679
685
|
# verify enum value
|
680
|
-
allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
|
686
|
+
allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
|
681
687
|
if @api_client.config.client_side_validation && !allowable_values.include?(event)
|
682
688
|
fail ArgumentError, "invalid value for \"event\", must be one of #{allowable_values}"
|
683
689
|
end
|
@@ -781,6 +787,85 @@ module MailSlurpClient
|
|
781
787
|
return data, status_code, headers
|
782
788
|
end
|
783
789
|
|
790
|
+
# Get paginated webhooks for a phone number
|
791
|
+
# @param phone_id [String]
|
792
|
+
# @param [Hash] opts the optional parameters
|
793
|
+
# @option opts [Integer] :page Optional page index in list pagination (default to 0)
|
794
|
+
# @option opts [Integer] :size Optional page size in list pagination (default to 20)
|
795
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC (default to 'ASC')
|
796
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
797
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
798
|
+
# @return [PageWebhookProjection]
|
799
|
+
def get_phone_number_webhooks_paginated(phone_id, opts = {})
|
800
|
+
data, _status_code, _headers = get_phone_number_webhooks_paginated_with_http_info(phone_id, opts)
|
801
|
+
data
|
802
|
+
end
|
803
|
+
|
804
|
+
# Get paginated webhooks for a phone number
|
805
|
+
# @param phone_id [String]
|
806
|
+
# @param [Hash] opts the optional parameters
|
807
|
+
# @option opts [Integer] :page Optional page index in list pagination
|
808
|
+
# @option opts [Integer] :size Optional page size in list pagination
|
809
|
+
# @option opts [String] :sort Optional createdAt sort direction ASC or DESC
|
810
|
+
# @option opts [DateTime] :since Filter by created at after the given timestamp
|
811
|
+
# @option opts [DateTime] :before Filter by created at before the given timestamp
|
812
|
+
# @return [Array<(PageWebhookProjection, Integer, Hash)>] PageWebhookProjection data, response status code and response headers
|
813
|
+
def get_phone_number_webhooks_paginated_with_http_info(phone_id, opts = {})
|
814
|
+
if @api_client.config.debugging
|
815
|
+
@api_client.config.logger.debug 'Calling API: WebhookControllerApi.get_phone_number_webhooks_paginated ...'
|
816
|
+
end
|
817
|
+
# verify the required parameter 'phone_id' is set
|
818
|
+
if @api_client.config.client_side_validation && phone_id.nil?
|
819
|
+
fail ArgumentError, "Missing the required parameter 'phone_id' when calling WebhookControllerApi.get_phone_number_webhooks_paginated"
|
820
|
+
end
|
821
|
+
allowable_values = ["ASC", "DESC"]
|
822
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
823
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
824
|
+
end
|
825
|
+
# resource path
|
826
|
+
local_var_path = '/phone/numbers/{phoneId}/webhooks/paginated'.sub('{' + 'phoneId' + '}', CGI.escape(phone_id.to_s))
|
827
|
+
|
828
|
+
# query parameters
|
829
|
+
query_params = opts[:query_params] || {}
|
830
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
831
|
+
query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
|
832
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
833
|
+
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
834
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
835
|
+
|
836
|
+
# header parameters
|
837
|
+
header_params = opts[:header_params] || {}
|
838
|
+
# HTTP header 'Accept' (if needed)
|
839
|
+
header_params['Accept'] = @api_client.select_header_accept(['*/*'])
|
840
|
+
|
841
|
+
# form parameters
|
842
|
+
form_params = opts[:form_params] || {}
|
843
|
+
|
844
|
+
# http body (model)
|
845
|
+
post_body = opts[:body]
|
846
|
+
|
847
|
+
# return_type
|
848
|
+
return_type = opts[:return_type] || 'PageWebhookProjection'
|
849
|
+
|
850
|
+
# auth_names
|
851
|
+
auth_names = opts[:auth_names] || ['API_KEY']
|
852
|
+
|
853
|
+
new_options = opts.merge(
|
854
|
+
:header_params => header_params,
|
855
|
+
:query_params => query_params,
|
856
|
+
:form_params => form_params,
|
857
|
+
:body => post_body,
|
858
|
+
:auth_names => auth_names,
|
859
|
+
:return_type => return_type
|
860
|
+
)
|
861
|
+
|
862
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
863
|
+
if @api_client.config.debugging
|
864
|
+
@api_client.config.logger.debug "API called: WebhookControllerApi#get_phone_number_webhooks_paginated\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
865
|
+
end
|
866
|
+
return data, status_code, headers
|
867
|
+
end
|
868
|
+
|
784
869
|
# Get test webhook payload example. Response content depends on eventName passed. Uses `EMAIL_RECEIVED` as default.
|
785
870
|
# @param [Hash] opts the optional parameters
|
786
871
|
# @option opts [String] :event_name
|
@@ -798,7 +883,7 @@ module MailSlurpClient
|
|
798
883
|
if @api_client.config.debugging
|
799
884
|
@api_client.config.logger.debug 'Calling API: WebhookControllerApi.get_test_webhook_payload ...'
|
800
885
|
end
|
801
|
-
allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
|
886
|
+
allowable_values = ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"]
|
802
887
|
if @api_client.config.client_side_validation && opts[:'event_name'] && !allowable_values.include?(opts[:'event_name'])
|
803
888
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{allowable_values}"
|
804
889
|
end
|
@@ -126,7 +126,7 @@ module MailSlurpClient
|
|
126
126
|
# @return true if the model is valid
|
127
127
|
def valid?
|
128
128
|
return false if @event_name.nil?
|
129
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
129
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
130
130
|
return false unless event_name_validator.valid?(@event_name)
|
131
131
|
return false if @message_id.nil?
|
132
132
|
return false if @webhook_id.nil?
|
@@ -136,7 +136,7 @@ module MailSlurpClient
|
|
136
136
|
# Custom attribute writer method checking allowed values (enum).
|
137
137
|
# @param [Object] event_name Object to be assigned
|
138
138
|
def event_name=(event_name)
|
139
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
139
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
140
140
|
unless validator.valid?(event_name)
|
141
141
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
142
142
|
end
|
@@ -19,29 +19,29 @@ module MailSlurpClient
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
-
attr_accessor :inbox_id
|
23
|
-
|
24
22
|
attr_accessor :user_id
|
25
23
|
|
26
24
|
attr_accessor :email_address
|
27
25
|
|
28
|
-
attr_accessor :
|
26
|
+
attr_accessor :inbox_id
|
29
27
|
|
30
|
-
attr_accessor :
|
28
|
+
attr_accessor :created_at
|
31
29
|
|
32
30
|
attr_accessor :updated_at
|
33
31
|
|
32
|
+
attr_accessor :use_threads
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'name' => :'name',
|
38
38
|
:'id' => :'id',
|
39
|
-
:'inbox_id' => :'inboxId',
|
40
39
|
:'user_id' => :'userId',
|
41
40
|
:'email_address' => :'emailAddress',
|
41
|
+
:'inbox_id' => :'inboxId',
|
42
42
|
:'created_at' => :'createdAt',
|
43
|
-
:'
|
44
|
-
:'
|
43
|
+
:'updated_at' => :'updatedAt',
|
44
|
+
:'use_threads' => :'useThreads'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -50,12 +50,12 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'id' => :'String',
|
53
|
-
:'inbox_id' => :'String',
|
54
53
|
:'user_id' => :'String',
|
55
54
|
:'email_address' => :'String',
|
55
|
+
:'inbox_id' => :'String',
|
56
56
|
:'created_at' => :'DateTime',
|
57
|
-
:'
|
58
|
-
:'
|
57
|
+
:'updated_at' => :'DateTime',
|
58
|
+
:'use_threads' => :'Boolean'
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
@@ -88,10 +88,6 @@ module MailSlurpClient
|
|
88
88
|
self.id = attributes[:'id']
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'inbox_id')
|
92
|
-
self.inbox_id = attributes[:'inbox_id']
|
93
|
-
end
|
94
|
-
|
95
91
|
if attributes.key?(:'user_id')
|
96
92
|
self.user_id = attributes[:'user_id']
|
97
93
|
end
|
@@ -100,17 +96,21 @@ module MailSlurpClient
|
|
100
96
|
self.email_address = attributes[:'email_address']
|
101
97
|
end
|
102
98
|
|
103
|
-
if attributes.key?(:'
|
104
|
-
self.
|
99
|
+
if attributes.key?(:'inbox_id')
|
100
|
+
self.inbox_id = attributes[:'inbox_id']
|
105
101
|
end
|
106
102
|
|
107
|
-
if attributes.key?(:'
|
108
|
-
self.
|
103
|
+
if attributes.key?(:'created_at')
|
104
|
+
self.created_at = attributes[:'created_at']
|
109
105
|
end
|
110
106
|
|
111
107
|
if attributes.key?(:'updated_at')
|
112
108
|
self.updated_at = attributes[:'updated_at']
|
113
109
|
end
|
110
|
+
|
111
|
+
if attributes.key?(:'use_threads')
|
112
|
+
self.use_threads = attributes[:'use_threads']
|
113
|
+
end
|
114
114
|
end
|
115
115
|
|
116
116
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -121,10 +121,6 @@ module MailSlurpClient
|
|
121
121
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
122
122
|
end
|
123
123
|
|
124
|
-
if @inbox_id.nil?
|
125
|
-
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
126
|
-
end
|
127
|
-
|
128
124
|
if @user_id.nil?
|
129
125
|
invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
|
130
126
|
end
|
@@ -133,6 +129,10 @@ module MailSlurpClient
|
|
133
129
|
invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
|
134
130
|
end
|
135
131
|
|
132
|
+
if @inbox_id.nil?
|
133
|
+
invalid_properties.push('invalid value for "inbox_id", inbox_id cannot be nil.')
|
134
|
+
end
|
135
|
+
|
136
136
|
if @created_at.nil?
|
137
137
|
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
138
138
|
end
|
@@ -148,9 +148,9 @@ module MailSlurpClient
|
|
148
148
|
# @return true if the model is valid
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
|
-
return false if @inbox_id.nil?
|
152
151
|
return false if @user_id.nil?
|
153
152
|
return false if @email_address.nil?
|
153
|
+
return false if @inbox_id.nil?
|
154
154
|
return false if @created_at.nil?
|
155
155
|
return false if @updated_at.nil?
|
156
156
|
true
|
@@ -163,12 +163,12 @@ module MailSlurpClient
|
|
163
163
|
self.class == o.class &&
|
164
164
|
name == o.name &&
|
165
165
|
id == o.id &&
|
166
|
-
inbox_id == o.inbox_id &&
|
167
166
|
user_id == o.user_id &&
|
168
167
|
email_address == o.email_address &&
|
168
|
+
inbox_id == o.inbox_id &&
|
169
169
|
created_at == o.created_at &&
|
170
|
-
|
171
|
-
|
170
|
+
updated_at == o.updated_at &&
|
171
|
+
use_threads == o.use_threads
|
172
172
|
end
|
173
173
|
|
174
174
|
# @see the `==` method
|
@@ -180,7 +180,7 @@ module MailSlurpClient
|
|
180
180
|
# Calculates hash code according to all attributes.
|
181
181
|
# @return [Integer] Hash code
|
182
182
|
def hash
|
183
|
-
[name, id,
|
183
|
+
[name, id, user_id, email_address, inbox_id, created_at, updated_at, use_threads].hash
|
184
184
|
end
|
185
185
|
|
186
186
|
# Builds the object from hash
|
@@ -20,9 +20,6 @@ module MailSlurpClient
|
|
20
20
|
# Content length of attachment in bytes
|
21
21
|
attr_accessor :content_length
|
22
22
|
|
23
|
-
# Content type of attachment.
|
24
|
-
attr_accessor :content_type
|
25
|
-
|
26
23
|
attr_accessor :user_id
|
27
24
|
|
28
25
|
# Attachment ID
|
@@ -32,16 +29,19 @@ module MailSlurpClient
|
|
32
29
|
|
33
30
|
attr_accessor :updated_at
|
34
31
|
|
32
|
+
# Content type of attachment.
|
33
|
+
attr_accessor :content_type
|
34
|
+
|
35
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
36
|
def self.attribute_map
|
37
37
|
{
|
38
38
|
:'name' => :'name',
|
39
39
|
:'content_length' => :'contentLength',
|
40
|
-
:'content_type' => :'contentType',
|
41
40
|
:'user_id' => :'userId',
|
42
41
|
:'attachment_id' => :'attachmentId',
|
43
42
|
:'created_at' => :'createdAt',
|
44
|
-
:'updated_at' => :'updatedAt'
|
43
|
+
:'updated_at' => :'updatedAt',
|
44
|
+
:'content_type' => :'contentType'
|
45
45
|
}
|
46
46
|
end
|
47
47
|
|
@@ -50,11 +50,11 @@ module MailSlurpClient
|
|
50
50
|
{
|
51
51
|
:'name' => :'String',
|
52
52
|
:'content_length' => :'Integer',
|
53
|
-
:'content_type' => :'String',
|
54
53
|
:'user_id' => :'String',
|
55
54
|
:'attachment_id' => :'String',
|
56
55
|
:'created_at' => :'DateTime',
|
57
|
-
:'updated_at' => :'DateTime'
|
56
|
+
:'updated_at' => :'DateTime',
|
57
|
+
:'content_type' => :'String'
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
@@ -87,10 +87,6 @@ module MailSlurpClient
|
|
87
87
|
self.content_length = attributes[:'content_length']
|
88
88
|
end
|
89
89
|
|
90
|
-
if attributes.key?(:'content_type')
|
91
|
-
self.content_type = attributes[:'content_type']
|
92
|
-
end
|
93
|
-
|
94
90
|
if attributes.key?(:'user_id')
|
95
91
|
self.user_id = attributes[:'user_id']
|
96
92
|
end
|
@@ -106,6 +102,10 @@ module MailSlurpClient
|
|
106
102
|
if attributes.key?(:'updated_at')
|
107
103
|
self.updated_at = attributes[:'updated_at']
|
108
104
|
end
|
105
|
+
|
106
|
+
if attributes.key?(:'content_type')
|
107
|
+
self.content_type = attributes[:'content_type']
|
108
|
+
end
|
109
109
|
end
|
110
110
|
|
111
111
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -148,11 +148,11 @@ module MailSlurpClient
|
|
148
148
|
self.class == o.class &&
|
149
149
|
name == o.name &&
|
150
150
|
content_length == o.content_length &&
|
151
|
-
content_type == o.content_type &&
|
152
151
|
user_id == o.user_id &&
|
153
152
|
attachment_id == o.attachment_id &&
|
154
153
|
created_at == o.created_at &&
|
155
|
-
updated_at == o.updated_at
|
154
|
+
updated_at == o.updated_at &&
|
155
|
+
content_type == o.content_type
|
156
156
|
end
|
157
157
|
|
158
158
|
# @see the `==` method
|
@@ -164,7 +164,7 @@ module MailSlurpClient
|
|
164
164
|
# Calculates hash code according to all attributes.
|
165
165
|
# @return [Integer] Hash code
|
166
166
|
def hash
|
167
|
-
[name, content_length,
|
167
|
+
[name, content_length, user_id, attachment_id, created_at, updated_at, content_type].hash
|
168
168
|
end
|
169
169
|
|
170
170
|
# Builds the object from hash
|
@@ -17,25 +17,25 @@ module MailSlurpClient
|
|
17
17
|
class BounceProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :subject
|
21
|
-
|
22
20
|
attr_accessor :sender
|
23
21
|
|
24
|
-
attr_accessor :
|
22
|
+
attr_accessor :subject
|
25
23
|
|
26
|
-
attr_accessor :
|
24
|
+
attr_accessor :created_at
|
27
25
|
|
28
26
|
attr_accessor :bounce_mta
|
29
27
|
|
28
|
+
attr_accessor :bounce_type
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'subject' => :'subject',
|
35
34
|
:'sender' => :'sender',
|
35
|
+
:'subject' => :'subject',
|
36
36
|
:'created_at' => :'createdAt',
|
37
|
-
:'
|
38
|
-
:'
|
37
|
+
:'bounce_mta' => :'bounceMta',
|
38
|
+
:'bounce_type' => :'bounceType'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,11 +43,11 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'subject' => :'String',
|
47
46
|
:'sender' => :'String',
|
47
|
+
:'subject' => :'String',
|
48
48
|
:'created_at' => :'DateTime',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'bounce_mta' => :'String',
|
50
|
+
:'bounce_type' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -76,25 +76,25 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'subject')
|
80
|
-
self.subject = attributes[:'subject']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'sender')
|
84
80
|
self.sender = attributes[:'sender']
|
85
81
|
end
|
86
82
|
|
87
|
-
if attributes.key?(:'
|
88
|
-
self.
|
83
|
+
if attributes.key?(:'subject')
|
84
|
+
self.subject = attributes[:'subject']
|
89
85
|
end
|
90
86
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
self.
|
87
|
+
if attributes.key?(:'created_at')
|
88
|
+
self.created_at = attributes[:'created_at']
|
93
89
|
end
|
94
90
|
|
95
91
|
if attributes.key?(:'bounce_mta')
|
96
92
|
self.bounce_mta = attributes[:'bounce_mta']
|
97
93
|
end
|
94
|
+
|
95
|
+
if attributes.key?(:'bounce_type')
|
96
|
+
self.bounce_type = attributes[:'bounce_type']
|
97
|
+
end
|
98
98
|
end
|
99
99
|
|
100
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,11 +126,11 @@ module MailSlurpClient
|
|
126
126
|
return true if self.equal?(o)
|
127
127
|
self.class == o.class &&
|
128
128
|
id == o.id &&
|
129
|
-
subject == o.subject &&
|
130
129
|
sender == o.sender &&
|
130
|
+
subject == o.subject &&
|
131
131
|
created_at == o.created_at &&
|
132
|
-
|
133
|
-
|
132
|
+
bounce_mta == o.bounce_mta &&
|
133
|
+
bounce_type == o.bounce_type
|
134
134
|
end
|
135
135
|
|
136
136
|
# @see the `==` method
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id,
|
145
|
+
[id, sender, subject, created_at, bounce_mta, bounce_type].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -17,8 +17,6 @@ module MailSlurpClient
|
|
17
17
|
class BounceRecipientProjection
|
18
18
|
attr_accessor :id
|
19
19
|
|
20
|
-
attr_accessor :action
|
21
|
-
|
22
20
|
attr_accessor :status
|
23
21
|
|
24
22
|
attr_accessor :sent_email_id
|
@@ -27,15 +25,17 @@ module MailSlurpClient
|
|
27
25
|
|
28
26
|
attr_accessor :recipient
|
29
27
|
|
28
|
+
attr_accessor :action
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
33
33
|
:'id' => :'id',
|
34
|
-
:'action' => :'action',
|
35
34
|
:'status' => :'status',
|
36
35
|
:'sent_email_id' => :'sentEmailId',
|
37
36
|
:'created_at' => :'createdAt',
|
38
|
-
:'recipient' => :'recipient'
|
37
|
+
:'recipient' => :'recipient',
|
38
|
+
:'action' => :'action'
|
39
39
|
}
|
40
40
|
end
|
41
41
|
|
@@ -43,11 +43,11 @@ module MailSlurpClient
|
|
43
43
|
def self.openapi_types
|
44
44
|
{
|
45
45
|
:'id' => :'String',
|
46
|
-
:'action' => :'String',
|
47
46
|
:'status' => :'String',
|
48
47
|
:'sent_email_id' => :'String',
|
49
48
|
:'created_at' => :'DateTime',
|
50
|
-
:'recipient' => :'String'
|
49
|
+
:'recipient' => :'String',
|
50
|
+
:'action' => :'String'
|
51
51
|
}
|
52
52
|
end
|
53
53
|
|
@@ -76,10 +76,6 @@ module MailSlurpClient
|
|
76
76
|
self.id = attributes[:'id']
|
77
77
|
end
|
78
78
|
|
79
|
-
if attributes.key?(:'action')
|
80
|
-
self.action = attributes[:'action']
|
81
|
-
end
|
82
|
-
|
83
79
|
if attributes.key?(:'status')
|
84
80
|
self.status = attributes[:'status']
|
85
81
|
end
|
@@ -95,6 +91,10 @@ module MailSlurpClient
|
|
95
91
|
if attributes.key?(:'recipient')
|
96
92
|
self.recipient = attributes[:'recipient']
|
97
93
|
end
|
94
|
+
|
95
|
+
if attributes.key?(:'action')
|
96
|
+
self.action = attributes[:'action']
|
97
|
+
end
|
98
98
|
end
|
99
99
|
|
100
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,11 +126,11 @@ module MailSlurpClient
|
|
126
126
|
return true if self.equal?(o)
|
127
127
|
self.class == o.class &&
|
128
128
|
id == o.id &&
|
129
|
-
action == o.action &&
|
130
129
|
status == o.status &&
|
131
130
|
sent_email_id == o.sent_email_id &&
|
132
131
|
created_at == o.created_at &&
|
133
|
-
recipient == o.recipient
|
132
|
+
recipient == o.recipient &&
|
133
|
+
action == o.action
|
134
134
|
end
|
135
135
|
|
136
136
|
# @see the `==` method
|
@@ -142,7 +142,7 @@ module MailSlurpClient
|
|
142
142
|
# Calculates hash code according to all attributes.
|
143
143
|
# @return [Integer] Hash code
|
144
144
|
def hash
|
145
|
-
[id,
|
145
|
+
[id, status, sent_email_id, created_at, recipient, action].hash
|
146
146
|
end
|
147
147
|
|
148
148
|
# Builds the object from hash
|
@@ -130,7 +130,7 @@ module MailSlurpClient
|
|
130
130
|
# @return true if the model is valid
|
131
131
|
def valid?
|
132
132
|
return false if @url.nil?
|
133
|
-
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
133
|
+
event_name_validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
134
134
|
return false unless event_name_validator.valid?(@event_name)
|
135
135
|
true
|
136
136
|
end
|
@@ -138,7 +138,7 @@ module MailSlurpClient
|
|
138
138
|
# Custom attribute writer method checking allowed values (enum).
|
139
139
|
# @param [Object] event_name Object to be assigned
|
140
140
|
def event_name=(event_name)
|
141
|
-
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
141
|
+
validator = EnumAttributeValidator.new('String', ["EMAIL_RECEIVED", "NEW_EMAIL", "NEW_CONTACT", "NEW_ATTACHMENT", "EMAIL_OPENED", "EMAIL_READ", "DELIVERY_STATUS", "BOUNCE", "BOUNCE_RECIPIENT", "NEW_SMS"])
|
142
142
|
unless validator.valid?(event_name)
|
143
143
|
fail ArgumentError, "invalid value for \"event_name\", must be one of #{validator.allowable_values}."
|
144
144
|
end
|