pingram 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pingram/api/broadcasts_api.rb +2 -2
- data/lib/pingram/api/domains_api.rb +109 -35
- data/lib/pingram/api_client.rb +1 -1
- data/lib/pingram/models/get_senders_response_inner.rb +135 -159
- data/lib/pingram/models/{domain_dns_check_records_inner.rb → get_senders_response_inner_dns_records_inner.rb} +98 -90
- data/lib/pingram/models/get_users_response_users_inner_email_suppression_status.rb +52 -27
- data/lib/pingram/models/{check_domain_dns_request.rb → patch_domain_request.rb} +35 -5
- data/lib/pingram/models/{post_senders_request_body.rb → post_domain_request.rb} +60 -19
- data/lib/pingram/version.rb +1 -1
- data/lib/pingram.rb +3 -6
- metadata +5 -8
- data/lib/pingram/models/domain_dns_check.rb +0 -244
- data/lib/pingram/models/get_senders_response_inner_verification_records.rb +0 -193
- data/lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb +0 -287
|
@@ -14,13 +14,30 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Pingram
|
|
17
|
-
class
|
|
18
|
-
|
|
17
|
+
class PostDomainRequest < ApiModelBase
|
|
18
|
+
# Domain you own. A subdomain such as mail.example.com is recommended. Mail from a subdomain is easier to deliver, and receiving mail there does not replace mail already arriving at the bare domain.
|
|
19
|
+
attr_accessor :domain
|
|
20
|
+
|
|
21
|
+
# Receive mail for this domain. Leave this out to send only.
|
|
22
|
+
attr_accessor :inbound
|
|
23
|
+
|
|
24
|
+
# Record when someone opens mail from this domain. False turns opens off. You can record opens without recording clicks.
|
|
25
|
+
attr_accessor :open_tracking
|
|
26
|
+
|
|
27
|
+
# Record when someone clicks a link in mail from this domain. False turns clicks off. You can record clicks without recording opens.
|
|
28
|
+
attr_accessor :click_tracking
|
|
29
|
+
|
|
30
|
+
# Host label for this domain, such as links or go. The domain name is added after it.
|
|
31
|
+
attr_accessor :tracking_subdomain
|
|
19
32
|
|
|
20
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
34
|
def self.attribute_map
|
|
22
35
|
{
|
|
23
|
-
:'
|
|
36
|
+
:'domain' => :'domain',
|
|
37
|
+
:'inbound' => :'inbound',
|
|
38
|
+
:'open_tracking' => :'openTracking',
|
|
39
|
+
:'click_tracking' => :'clickTracking',
|
|
40
|
+
:'tracking_subdomain' => :'trackingSubdomain'
|
|
24
41
|
}
|
|
25
42
|
end
|
|
26
43
|
|
|
@@ -37,7 +54,11 @@ module Pingram
|
|
|
37
54
|
# Attribute type mapping.
|
|
38
55
|
def self.openapi_types
|
|
39
56
|
{
|
|
40
|
-
:'
|
|
57
|
+
:'domain' => :'String',
|
|
58
|
+
:'inbound' => :'Boolean',
|
|
59
|
+
:'open_tracking' => :'Boolean',
|
|
60
|
+
:'click_tracking' => :'Boolean',
|
|
61
|
+
:'tracking_subdomain' => :'String'
|
|
41
62
|
}
|
|
42
63
|
end
|
|
43
64
|
|
|
@@ -51,22 +72,38 @@ module Pingram
|
|
|
51
72
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
73
|
def initialize(attributes = {})
|
|
53
74
|
if (!attributes.is_a?(Hash))
|
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::PostDomainRequest` initialize method"
|
|
55
76
|
end
|
|
56
77
|
|
|
57
78
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
79
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
80
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
81
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::PostDomainRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
83
|
end
|
|
63
84
|
h[k.to_sym] = v
|
|
64
85
|
}
|
|
65
86
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
self.
|
|
87
|
+
if attributes.key?(:'domain')
|
|
88
|
+
self.domain = attributes[:'domain']
|
|
68
89
|
else
|
|
69
|
-
self.
|
|
90
|
+
self.domain = nil
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'inbound')
|
|
94
|
+
self.inbound = attributes[:'inbound']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'open_tracking')
|
|
98
|
+
self.open_tracking = attributes[:'open_tracking']
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
if attributes.key?(:'click_tracking')
|
|
102
|
+
self.click_tracking = attributes[:'click_tracking']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'tracking_subdomain')
|
|
106
|
+
self.tracking_subdomain = attributes[:'tracking_subdomain']
|
|
70
107
|
end
|
|
71
108
|
end
|
|
72
109
|
|
|
@@ -75,8 +112,8 @@ module Pingram
|
|
|
75
112
|
def list_invalid_properties
|
|
76
113
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
114
|
invalid_properties = Array.new
|
|
78
|
-
if @
|
|
79
|
-
invalid_properties.push('invalid value for "
|
|
115
|
+
if @domain.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "domain", domain cannot be nil.')
|
|
80
117
|
end
|
|
81
118
|
|
|
82
119
|
invalid_properties
|
|
@@ -86,18 +123,18 @@ module Pingram
|
|
|
86
123
|
# @return true if the model is valid
|
|
87
124
|
def valid?
|
|
88
125
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
-
return false if @
|
|
126
|
+
return false if @domain.nil?
|
|
90
127
|
true
|
|
91
128
|
end
|
|
92
129
|
|
|
93
130
|
# Custom attribute writer method with validation
|
|
94
|
-
# @param [Object]
|
|
95
|
-
def
|
|
96
|
-
if
|
|
97
|
-
fail ArgumentError, '
|
|
131
|
+
# @param [Object] domain Value to be assigned
|
|
132
|
+
def domain=(domain)
|
|
133
|
+
if domain.nil?
|
|
134
|
+
fail ArgumentError, 'domain cannot be nil'
|
|
98
135
|
end
|
|
99
136
|
|
|
100
|
-
@
|
|
137
|
+
@domain = domain
|
|
101
138
|
end
|
|
102
139
|
|
|
103
140
|
# Checks equality by comparing each attribute.
|
|
@@ -105,7 +142,11 @@ module Pingram
|
|
|
105
142
|
def ==(o)
|
|
106
143
|
return true if self.equal?(o)
|
|
107
144
|
self.class == o.class &&
|
|
108
|
-
|
|
145
|
+
domain == o.domain &&
|
|
146
|
+
inbound == o.inbound &&
|
|
147
|
+
open_tracking == o.open_tracking &&
|
|
148
|
+
click_tracking == o.click_tracking &&
|
|
149
|
+
tracking_subdomain == o.tracking_subdomain
|
|
109
150
|
end
|
|
110
151
|
|
|
111
152
|
# @see the `==` method
|
|
@@ -117,7 +158,7 @@ module Pingram
|
|
|
117
158
|
# Calculates hash code according to all attributes.
|
|
118
159
|
# @return [Integer] Hash code
|
|
119
160
|
def hash
|
|
120
|
-
[
|
|
161
|
+
[domain, inbound, open_tracking, click_tracking, tracking_subdomain].hash
|
|
121
162
|
end
|
|
122
163
|
|
|
123
164
|
# Builds the object from hash
|
data/lib/pingram/version.rb
CHANGED
data/lib/pingram.rb
CHANGED
|
@@ -56,7 +56,6 @@ require 'pingram/models/campaign_webhook_response'
|
|
|
56
56
|
require 'pingram/models/cancel_subscription_request'
|
|
57
57
|
require 'pingram/models/change_phone_request'
|
|
58
58
|
require 'pingram/models/channels_enum'
|
|
59
|
-
require 'pingram/models/check_domain_dns_request'
|
|
60
59
|
require 'pingram/models/confirm_change_email_request'
|
|
61
60
|
require 'pingram/models/confirm_change_email_response'
|
|
62
61
|
require 'pingram/models/confirm_password_change_request'
|
|
@@ -77,8 +76,6 @@ require 'pingram/models/delete_key_response'
|
|
|
77
76
|
require 'pingram/models/delete_user_response'
|
|
78
77
|
require 'pingram/models/disabled'
|
|
79
78
|
require 'pingram/models/disconnect'
|
|
80
|
-
require 'pingram/models/domain_dns_check'
|
|
81
|
-
require 'pingram/models/domain_dns_check_records_inner'
|
|
82
79
|
require 'pingram/models/dtmf'
|
|
83
80
|
require 'pingram/models/elevenlabs'
|
|
84
81
|
require 'pingram/models/elevenlabs1'
|
|
@@ -126,8 +123,7 @@ require 'pingram/models/get_notifications_response_inner_options_email_weekly'
|
|
|
126
123
|
require 'pingram/models/get_notifications_response_inner_templates_inner'
|
|
127
124
|
require 'pingram/models/get_notifications_response_inner_throttling'
|
|
128
125
|
require 'pingram/models/get_senders_response_inner'
|
|
129
|
-
require 'pingram/models/
|
|
130
|
-
require 'pingram/models/get_senders_response_inner_verification_records_dkim'
|
|
126
|
+
require 'pingram/models/get_senders_response_inner_dns_records_inner'
|
|
131
127
|
require 'pingram/models/get_templates_list_response_inner'
|
|
132
128
|
require 'pingram/models/get_templates_list_response_inner_any_of'
|
|
133
129
|
require 'pingram/models/get_templates_list_response_inner_any_of1'
|
|
@@ -250,14 +246,15 @@ require 'pingram/models/openai_gpt_realtime21_mini'
|
|
|
250
246
|
require 'pingram/models/order_phone_number_request'
|
|
251
247
|
require 'pingram/models/order_phone_number_response'
|
|
252
248
|
require 'pingram/models/password_status_response'
|
|
249
|
+
require 'pingram/models/patch_domain_request'
|
|
253
250
|
require 'pingram/models/payment_method_setup'
|
|
254
251
|
require 'pingram/models/phone_verify_confirm_request'
|
|
255
252
|
require 'pingram/models/phone_verify_confirm_response'
|
|
256
253
|
require 'pingram/models/phone_verify_start_request'
|
|
257
254
|
require 'pingram/models/phone_verify_start_response'
|
|
255
|
+
require 'pingram/models/post_domain_request'
|
|
258
256
|
require 'pingram/models/post_email_test_request'
|
|
259
257
|
require 'pingram/models/post_email_test_response'
|
|
260
|
-
require 'pingram/models/post_senders_request_body'
|
|
261
258
|
require 'pingram/models/post_user_request'
|
|
262
259
|
require 'pingram/models/release_phone_number_response'
|
|
263
260
|
require 'pingram/models/schedule_broadcast_request'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pingram
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.47
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pingram
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -131,7 +131,6 @@ files:
|
|
|
131
131
|
- lib/pingram/models/cancel_subscription_request.rb
|
|
132
132
|
- lib/pingram/models/change_phone_request.rb
|
|
133
133
|
- lib/pingram/models/channels_enum.rb
|
|
134
|
-
- lib/pingram/models/check_domain_dns_request.rb
|
|
135
134
|
- lib/pingram/models/confirm_change_email_request.rb
|
|
136
135
|
- lib/pingram/models/confirm_change_email_response.rb
|
|
137
136
|
- lib/pingram/models/confirm_password_change_request.rb
|
|
@@ -152,8 +151,6 @@ files:
|
|
|
152
151
|
- lib/pingram/models/delete_user_response.rb
|
|
153
152
|
- lib/pingram/models/disabled.rb
|
|
154
153
|
- lib/pingram/models/disconnect.rb
|
|
155
|
-
- lib/pingram/models/domain_dns_check.rb
|
|
156
|
-
- lib/pingram/models/domain_dns_check_records_inner.rb
|
|
157
154
|
- lib/pingram/models/dtmf.rb
|
|
158
155
|
- lib/pingram/models/elevenlabs.rb
|
|
159
156
|
- lib/pingram/models/elevenlabs1.rb
|
|
@@ -201,8 +198,7 @@ files:
|
|
|
201
198
|
- lib/pingram/models/get_notifications_response_inner_templates_inner.rb
|
|
202
199
|
- lib/pingram/models/get_notifications_response_inner_throttling.rb
|
|
203
200
|
- lib/pingram/models/get_senders_response_inner.rb
|
|
204
|
-
- lib/pingram/models/
|
|
205
|
-
- lib/pingram/models/get_senders_response_inner_verification_records_dkim.rb
|
|
201
|
+
- lib/pingram/models/get_senders_response_inner_dns_records_inner.rb
|
|
206
202
|
- lib/pingram/models/get_templates_list_response_inner.rb
|
|
207
203
|
- lib/pingram/models/get_templates_list_response_inner_any_of.rb
|
|
208
204
|
- lib/pingram/models/get_templates_list_response_inner_any_of1.rb
|
|
@@ -325,14 +321,15 @@ files:
|
|
|
325
321
|
- lib/pingram/models/order_phone_number_request.rb
|
|
326
322
|
- lib/pingram/models/order_phone_number_response.rb
|
|
327
323
|
- lib/pingram/models/password_status_response.rb
|
|
324
|
+
- lib/pingram/models/patch_domain_request.rb
|
|
328
325
|
- lib/pingram/models/payment_method_setup.rb
|
|
329
326
|
- lib/pingram/models/phone_verify_confirm_request.rb
|
|
330
327
|
- lib/pingram/models/phone_verify_confirm_response.rb
|
|
331
328
|
- lib/pingram/models/phone_verify_start_request.rb
|
|
332
329
|
- lib/pingram/models/phone_verify_start_response.rb
|
|
330
|
+
- lib/pingram/models/post_domain_request.rb
|
|
333
331
|
- lib/pingram/models/post_email_test_request.rb
|
|
334
332
|
- lib/pingram/models/post_email_test_response.rb
|
|
335
|
-
- lib/pingram/models/post_senders_request_body.rb
|
|
336
333
|
- lib/pingram/models/post_user_request.rb
|
|
337
334
|
- lib/pingram/models/release_phone_number_response.rb
|
|
338
335
|
- lib/pingram/models/schedule_broadcast_request.rb
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pingram
|
|
3
|
-
|
|
4
|
-
#Internal API for notification delivery and management
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.19.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module Pingram
|
|
17
|
-
class DomainDnsCheck < ApiModelBase
|
|
18
|
-
attr_accessor :sender
|
|
19
|
-
|
|
20
|
-
attr_accessor :records
|
|
21
|
-
|
|
22
|
-
attr_accessor :can_start_verification
|
|
23
|
-
|
|
24
|
-
attr_accessor :checked_at
|
|
25
|
-
|
|
26
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
-
def self.attribute_map
|
|
28
|
-
{
|
|
29
|
-
:'sender' => :'sender',
|
|
30
|
-
:'records' => :'records',
|
|
31
|
-
:'can_start_verification' => :'canStartVerification',
|
|
32
|
-
:'checked_at' => :'checkedAt'
|
|
33
|
-
}
|
|
34
|
-
end
|
|
35
|
-
|
|
36
|
-
# Returns attribute mapping this model knows about
|
|
37
|
-
def self.acceptable_attribute_map
|
|
38
|
-
attribute_map
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# Returns all the JSON keys this model knows about
|
|
42
|
-
def self.acceptable_attributes
|
|
43
|
-
acceptable_attribute_map.values
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# Attribute type mapping.
|
|
47
|
-
def self.openapi_types
|
|
48
|
-
{
|
|
49
|
-
:'sender' => :'String',
|
|
50
|
-
:'records' => :'Array<DomainDnsCheckRecordsInner>',
|
|
51
|
-
:'can_start_verification' => :'Boolean',
|
|
52
|
-
:'checked_at' => :'String'
|
|
53
|
-
}
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
# List of attributes with nullable: true
|
|
57
|
-
def self.openapi_nullable
|
|
58
|
-
Set.new([
|
|
59
|
-
])
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# Initializes the object
|
|
63
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
-
def initialize(attributes = {})
|
|
65
|
-
if (!attributes.is_a?(Hash))
|
|
66
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::DomainDnsCheck` initialize method"
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::DomainDnsCheck`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
-
end
|
|
75
|
-
h[k.to_sym] = v
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if attributes.key?(:'sender')
|
|
79
|
-
self.sender = attributes[:'sender']
|
|
80
|
-
else
|
|
81
|
-
self.sender = nil
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
if attributes.key?(:'records')
|
|
85
|
-
if (value = attributes[:'records']).is_a?(Array)
|
|
86
|
-
self.records = value
|
|
87
|
-
end
|
|
88
|
-
else
|
|
89
|
-
self.records = nil
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
if attributes.key?(:'can_start_verification')
|
|
93
|
-
self.can_start_verification = attributes[:'can_start_verification']
|
|
94
|
-
else
|
|
95
|
-
self.can_start_verification = nil
|
|
96
|
-
end
|
|
97
|
-
|
|
98
|
-
if attributes.key?(:'checked_at')
|
|
99
|
-
self.checked_at = attributes[:'checked_at']
|
|
100
|
-
else
|
|
101
|
-
self.checked_at = nil
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
106
|
-
# @return Array for valid properties with the reasons
|
|
107
|
-
def list_invalid_properties
|
|
108
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
109
|
-
invalid_properties = Array.new
|
|
110
|
-
if @sender.nil?
|
|
111
|
-
invalid_properties.push('invalid value for "sender", sender cannot be nil.')
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
if @records.nil?
|
|
115
|
-
invalid_properties.push('invalid value for "records", records cannot be nil.')
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
if @can_start_verification.nil?
|
|
119
|
-
invalid_properties.push('invalid value for "can_start_verification", can_start_verification cannot be nil.')
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
if @checked_at.nil?
|
|
123
|
-
invalid_properties.push('invalid value for "checked_at", checked_at cannot be nil.')
|
|
124
|
-
end
|
|
125
|
-
|
|
126
|
-
invalid_properties
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
# Check to see if the all the properties in the model are valid
|
|
130
|
-
# @return true if the model is valid
|
|
131
|
-
def valid?
|
|
132
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
133
|
-
return false if @sender.nil?
|
|
134
|
-
return false if @records.nil?
|
|
135
|
-
return false if @can_start_verification.nil?
|
|
136
|
-
return false if @checked_at.nil?
|
|
137
|
-
true
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
# Custom attribute writer method with validation
|
|
141
|
-
# @param [Object] sender Value to be assigned
|
|
142
|
-
def sender=(sender)
|
|
143
|
-
if sender.nil?
|
|
144
|
-
fail ArgumentError, 'sender cannot be nil'
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
@sender = sender
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Custom attribute writer method with validation
|
|
151
|
-
# @param [Object] records Value to be assigned
|
|
152
|
-
def records=(records)
|
|
153
|
-
if records.nil?
|
|
154
|
-
fail ArgumentError, 'records cannot be nil'
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
@records = records
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
# Custom attribute writer method with validation
|
|
161
|
-
# @param [Object] can_start_verification Value to be assigned
|
|
162
|
-
def can_start_verification=(can_start_verification)
|
|
163
|
-
if can_start_verification.nil?
|
|
164
|
-
fail ArgumentError, 'can_start_verification cannot be nil'
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
@can_start_verification = can_start_verification
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
# Custom attribute writer method with validation
|
|
171
|
-
# @param [Object] checked_at Value to be assigned
|
|
172
|
-
def checked_at=(checked_at)
|
|
173
|
-
if checked_at.nil?
|
|
174
|
-
fail ArgumentError, 'checked_at cannot be nil'
|
|
175
|
-
end
|
|
176
|
-
|
|
177
|
-
@checked_at = checked_at
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
# Checks equality by comparing each attribute.
|
|
181
|
-
# @param [Object] Object to be compared
|
|
182
|
-
def ==(o)
|
|
183
|
-
return true if self.equal?(o)
|
|
184
|
-
self.class == o.class &&
|
|
185
|
-
sender == o.sender &&
|
|
186
|
-
records == o.records &&
|
|
187
|
-
can_start_verification == o.can_start_verification &&
|
|
188
|
-
checked_at == o.checked_at
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
# @see the `==` method
|
|
192
|
-
# @param [Object] Object to be compared
|
|
193
|
-
def eql?(o)
|
|
194
|
-
self == o
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
# Calculates hash code according to all attributes.
|
|
198
|
-
# @return [Integer] Hash code
|
|
199
|
-
def hash
|
|
200
|
-
[sender, records, can_start_verification, checked_at].hash
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
# Builds the object from hash
|
|
204
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
205
|
-
# @return [Object] Returns the model itself
|
|
206
|
-
def self.build_from_hash(attributes)
|
|
207
|
-
return nil unless attributes.is_a?(Hash)
|
|
208
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
209
|
-
transformed_hash = {}
|
|
210
|
-
openapi_types.each_pair do |key, type|
|
|
211
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
212
|
-
transformed_hash["#{key}"] = nil
|
|
213
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
214
|
-
# check to ensure the input is an array given that the attribute
|
|
215
|
-
# is documented as an array but the input is not
|
|
216
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
217
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
218
|
-
end
|
|
219
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
220
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
221
|
-
end
|
|
222
|
-
end
|
|
223
|
-
new(transformed_hash)
|
|
224
|
-
end
|
|
225
|
-
|
|
226
|
-
# Returns the object in the form of hash
|
|
227
|
-
# @return [Hash] Returns the object in the form of hash
|
|
228
|
-
def to_hash
|
|
229
|
-
hash = {}
|
|
230
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
231
|
-
value = self.send(attr)
|
|
232
|
-
if value.nil?
|
|
233
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
234
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
hash[param] = _to_hash(value)
|
|
238
|
-
end
|
|
239
|
-
hash
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
end
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
=begin
|
|
2
|
-
#Pingram
|
|
3
|
-
|
|
4
|
-
#Internal API for notification delivery and management
|
|
5
|
-
|
|
6
|
-
The version of the OpenAPI document: 1.0.0
|
|
7
|
-
|
|
8
|
-
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.19.0
|
|
10
|
-
|
|
11
|
-
=end
|
|
12
|
-
|
|
13
|
-
require 'date'
|
|
14
|
-
require 'time'
|
|
15
|
-
|
|
16
|
-
module Pingram
|
|
17
|
-
# Keyed by record id — computed on domain API responses, not stored in DB.
|
|
18
|
-
class GetSendersResponseInnerVerificationRecords < ApiModelBase
|
|
19
|
-
attr_accessor :dkim
|
|
20
|
-
|
|
21
|
-
attr_accessor :mail_from_spf
|
|
22
|
-
|
|
23
|
-
attr_accessor :mail_from_mx
|
|
24
|
-
|
|
25
|
-
attr_accessor :dmarc
|
|
26
|
-
|
|
27
|
-
attr_accessor :inbound_mx
|
|
28
|
-
|
|
29
|
-
attr_accessor :tracking_cname
|
|
30
|
-
|
|
31
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
-
def self.attribute_map
|
|
33
|
-
{
|
|
34
|
-
:'dkim' => :'dkim',
|
|
35
|
-
:'mail_from_spf' => :'mail_from_spf',
|
|
36
|
-
:'mail_from_mx' => :'mail_from_mx',
|
|
37
|
-
:'dmarc' => :'dmarc',
|
|
38
|
-
:'inbound_mx' => :'inbound_mx',
|
|
39
|
-
:'tracking_cname' => :'trackingCname'
|
|
40
|
-
}
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
# Returns attribute mapping this model knows about
|
|
44
|
-
def self.acceptable_attribute_map
|
|
45
|
-
attribute_map
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
# Returns all the JSON keys this model knows about
|
|
49
|
-
def self.acceptable_attributes
|
|
50
|
-
acceptable_attribute_map.values
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# Attribute type mapping.
|
|
54
|
-
def self.openapi_types
|
|
55
|
-
{
|
|
56
|
-
:'dkim' => :'GetSendersResponseInnerVerificationRecordsDkim',
|
|
57
|
-
:'mail_from_spf' => :'GetSendersResponseInnerVerificationRecordsDkim',
|
|
58
|
-
:'mail_from_mx' => :'GetSendersResponseInnerVerificationRecordsDkim',
|
|
59
|
-
:'dmarc' => :'GetSendersResponseInnerVerificationRecordsDkim',
|
|
60
|
-
:'inbound_mx' => :'GetSendersResponseInnerVerificationRecordsDkim',
|
|
61
|
-
:'tracking_cname' => :'GetSendersResponseInnerVerificationRecordsDkim'
|
|
62
|
-
}
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# List of attributes with nullable: true
|
|
66
|
-
def self.openapi_nullable
|
|
67
|
-
Set.new([
|
|
68
|
-
])
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# Initializes the object
|
|
72
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
|
-
def initialize(attributes = {})
|
|
74
|
-
if (!attributes.is_a?(Hash))
|
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Pingram::GetSendersResponseInnerVerificationRecords` initialize method"
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
-
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
-
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Pingram::GetSendersResponseInnerVerificationRecords`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
|
-
end
|
|
84
|
-
h[k.to_sym] = v
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
if attributes.key?(:'dkim')
|
|
88
|
-
self.dkim = attributes[:'dkim']
|
|
89
|
-
end
|
|
90
|
-
|
|
91
|
-
if attributes.key?(:'mail_from_spf')
|
|
92
|
-
self.mail_from_spf = attributes[:'mail_from_spf']
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'mail_from_mx')
|
|
96
|
-
self.mail_from_mx = attributes[:'mail_from_mx']
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if attributes.key?(:'dmarc')
|
|
100
|
-
self.dmarc = attributes[:'dmarc']
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if attributes.key?(:'inbound_mx')
|
|
104
|
-
self.inbound_mx = attributes[:'inbound_mx']
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if attributes.key?(:'tracking_cname')
|
|
108
|
-
self.tracking_cname = attributes[:'tracking_cname']
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
113
|
-
# @return Array for valid properties with the reasons
|
|
114
|
-
def list_invalid_properties
|
|
115
|
-
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
116
|
-
invalid_properties = Array.new
|
|
117
|
-
invalid_properties
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
# Check to see if the all the properties in the model are valid
|
|
121
|
-
# @return true if the model is valid
|
|
122
|
-
def valid?
|
|
123
|
-
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
124
|
-
true
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
# Checks equality by comparing each attribute.
|
|
128
|
-
# @param [Object] Object to be compared
|
|
129
|
-
def ==(o)
|
|
130
|
-
return true if self.equal?(o)
|
|
131
|
-
self.class == o.class &&
|
|
132
|
-
dkim == o.dkim &&
|
|
133
|
-
mail_from_spf == o.mail_from_spf &&
|
|
134
|
-
mail_from_mx == o.mail_from_mx &&
|
|
135
|
-
dmarc == o.dmarc &&
|
|
136
|
-
inbound_mx == o.inbound_mx &&
|
|
137
|
-
tracking_cname == o.tracking_cname
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
# @see the `==` method
|
|
141
|
-
# @param [Object] Object to be compared
|
|
142
|
-
def eql?(o)
|
|
143
|
-
self == o
|
|
144
|
-
end
|
|
145
|
-
|
|
146
|
-
# Calculates hash code according to all attributes.
|
|
147
|
-
# @return [Integer] Hash code
|
|
148
|
-
def hash
|
|
149
|
-
[dkim, mail_from_spf, mail_from_mx, dmarc, inbound_mx, tracking_cname].hash
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
# Builds the object from hash
|
|
153
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
154
|
-
# @return [Object] Returns the model itself
|
|
155
|
-
def self.build_from_hash(attributes)
|
|
156
|
-
return nil unless attributes.is_a?(Hash)
|
|
157
|
-
attributes = attributes.transform_keys(&:to_sym)
|
|
158
|
-
transformed_hash = {}
|
|
159
|
-
openapi_types.each_pair do |key, type|
|
|
160
|
-
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
161
|
-
transformed_hash["#{key}"] = nil
|
|
162
|
-
elsif type =~ /\AArray<(.*)>/i
|
|
163
|
-
# check to ensure the input is an array given that the attribute
|
|
164
|
-
# is documented as an array but the input is not
|
|
165
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
|
166
|
-
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
167
|
-
end
|
|
168
|
-
elsif !attributes[attribute_map[key]].nil?
|
|
169
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
170
|
-
end
|
|
171
|
-
end
|
|
172
|
-
new(transformed_hash)
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
# Returns the object in the form of hash
|
|
176
|
-
# @return [Hash] Returns the object in the form of hash
|
|
177
|
-
def to_hash
|
|
178
|
-
hash = {}
|
|
179
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
180
|
-
value = self.send(attr)
|
|
181
|
-
if value.nil?
|
|
182
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
183
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
hash[param] = _to_hash(value)
|
|
187
|
-
end
|
|
188
|
-
hash
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
end
|