sib-api-v3-sdk 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -9
- data/docs/GetAccountPlan.md +1 -1
- data/docs/GetCampaignStats.md +1 -1
- data/docs/GetContactCampaignStats.md +4 -4
- data/docs/GetContactCampaignStatsClicked.md +1 -1
- data/docs/GetContactCampaignStatsOpened.md +1 -1
- data/docs/GetContactCampaignStatsUnsubscriptions.md +2 -2
- data/docs/GetEmailCampaign.md +1 -1
- data/docs/GetEmailEventReportEvents.md +2 -0
- data/docs/GetExtendedCampaignOverview.md +1 -1
- data/docs/GetExtendedContactDetails.md +1 -0
- data/docs/GetExtendedContactDetailsStatistics.md +15 -0
- data/docs/GetExtendedContactDetailsStatisticsClicked.md +9 -0
- data/docs/{GetContactCampaignStatsLinks.md → GetExtendedContactDetailsStatisticsLinks.md} +2 -2
- data/docs/{GetContactCampaignStatsMessagesSent.md → GetExtendedContactDetailsStatisticsMessagesSent.md} +2 -2
- data/docs/GetExtendedContactDetailsStatisticsOpened.md +11 -0
- data/docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md +9 -0
- data/docs/{GetContactCampaignStatsUnsubscriptionsAdminUnsubscription.md → GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md} +2 -2
- data/docs/{GetContactCampaignStatsUnsubscriptionsUserUnsubscription.md → GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md} +2 -2
- data/docs/GetExtendedList.md +1 -1
- data/docs/GetLists.md +1 -1
- data/docs/GetWebhook.md +2 -2
- data/lib/sib-api-v3-sdk.rb +8 -6
- data/lib/sib-api-v3-sdk/models/get_account_plan.rb +1 -1
- data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +4 -4
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_clicked.rb +1 -1
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +20 -1
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions.rb +2 -2
- data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +24 -4
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +0 -5
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +13 -4
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +272 -0
- data/lib/sib-api-v3-sdk/models/{get_contact_campaign_stats_messages_sent.rb → get_extended_contact_details_statistics_clicked.rb} +14 -12
- data/lib/sib-api-v3-sdk/models/{get_contact_campaign_stats_links.rb → get_extended_contact_details_statistics_links.rb} +21 -2
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent.rb +228 -0
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened.rb +258 -0
- data/lib/sib-api-v3-sdk/models/{get_lists_folder.rb → get_extended_contact_details_statistics_unsubscriptions.rb} +27 -23
- data/lib/sib-api-v3-sdk/models/{get_contact_campaign_stats_unsubscriptions_admin_unsubscription.rb → get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb} +21 -2
- data/lib/sib-api-v3-sdk/models/{get_contact_campaign_stats_unsubscriptions_user_unsubscription.rb → get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb} +21 -2
- data/lib/sib-api-v3-sdk/models/get_extended_list.rb +6 -6
- data/lib/sib-api-v3-sdk/models/get_lists.rb +19 -19
- data/lib/sib-api-v3-sdk/models/get_webhook.rb +12 -12
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/models/get_email_event_report_events_spec.rb +12 -0
- data/spec/models/get_extended_contact_details_spec.rb +6 -0
- data/spec/models/{get_lists_folder_spec.rb → get_extended_contact_details_statistics_clicked_spec.rb} +8 -8
- data/spec/models/{get_contact_campaign_stats_links_spec.rb → get_extended_contact_details_statistics_links_spec.rb} +6 -6
- data/spec/models/{get_contact_campaign_stats_messages_sent_spec.rb → get_extended_contact_details_statistics_messages_sent_spec.rb} +6 -6
- data/spec/models/get_extended_contact_details_statistics_opened_spec.rb +60 -0
- data/spec/models/get_extended_contact_details_statistics_spec.rb +84 -0
- data/spec/models/{get_contact_campaign_stats_unsubscriptions_admin_unsubscription_spec.rb → get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription_spec.rb} +6 -6
- data/spec/models/get_extended_contact_details_statistics_unsubscriptions_spec.rb +48 -0
- data/spec/models/{get_contact_campaign_stats_unsubscriptions_user_unsubscription_spec.rb → get_extended_contact_details_statistics_unsubscriptions_user_unsubscription_spec.rb} +6 -6
- data/spec/models/get_lists_spec.rb +2 -2
- metadata +34 -27
- data/docs/GetListsFolder.md +0 -9
- data/docs/GetListsLists.md +0 -8
- data/git_push.sh +0 -55
- data/lib/sib-api-v3-sdk/models/get_lists_lists.rb +0 -188
- data/spec/models/get_lists_lists_spec.rb +0 -42
@@ -13,28 +13,28 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
|
+
# Listing of the unsubscription for the contact
|
17
|
+
class GetExtendedContactDetailsStatisticsUnsubscriptions
|
18
|
+
# Contact unsubscribe via unsubscription link in a campaign
|
19
|
+
attr_accessor :user_unsubscription
|
16
20
|
|
17
|
-
|
18
|
-
|
19
|
-
attr_accessor :id
|
20
|
-
|
21
|
-
# Name of the folder
|
22
|
-
attr_accessor :name
|
21
|
+
# Contact has been unsubscribed from the administrator
|
22
|
+
attr_accessor :admin_unsubscription
|
23
23
|
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
-
:'
|
29
|
-
:'
|
28
|
+
:'user_unsubscription' => :'userUnsubscription',
|
29
|
+
:'admin_unsubscription' => :'adminUnsubscription'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'user_unsubscription' => :'Array<GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription>',
|
37
|
+
:'admin_unsubscription' => :'Array<GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription>'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -46,12 +46,16 @@ module SibApiV3Sdk
|
|
46
46
|
# convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
48
|
|
49
|
-
if attributes.has_key?(:'
|
50
|
-
|
49
|
+
if attributes.has_key?(:'userUnsubscription')
|
50
|
+
if (value = attributes[:'userUnsubscription']).is_a?(Array)
|
51
|
+
self.user_unsubscription = value
|
52
|
+
end
|
51
53
|
end
|
52
54
|
|
53
|
-
if attributes.has_key?(:'
|
54
|
-
|
55
|
+
if attributes.has_key?(:'adminUnsubscription')
|
56
|
+
if (value = attributes[:'adminUnsubscription']).is_a?(Array)
|
57
|
+
self.admin_unsubscription = value
|
58
|
+
end
|
55
59
|
end
|
56
60
|
|
57
61
|
end
|
@@ -60,12 +64,12 @@ module SibApiV3Sdk
|
|
60
64
|
# @return Array for valid properies with the reasons
|
61
65
|
def list_invalid_properties
|
62
66
|
invalid_properties = Array.new
|
63
|
-
if @
|
64
|
-
invalid_properties.push("invalid value for '
|
67
|
+
if @user_unsubscription.nil?
|
68
|
+
invalid_properties.push("invalid value for 'user_unsubscription', user_unsubscription cannot be nil.")
|
65
69
|
end
|
66
70
|
|
67
|
-
if @
|
68
|
-
invalid_properties.push("invalid value for '
|
71
|
+
if @admin_unsubscription.nil?
|
72
|
+
invalid_properties.push("invalid value for 'admin_unsubscription', admin_unsubscription cannot be nil.")
|
69
73
|
end
|
70
74
|
|
71
75
|
return invalid_properties
|
@@ -74,8 +78,8 @@ module SibApiV3Sdk
|
|
74
78
|
# Check to see if the all the properties in the model are valid
|
75
79
|
# @return true if the model is valid
|
76
80
|
def valid?
|
77
|
-
return false if @
|
78
|
-
return false if @
|
81
|
+
return false if @user_unsubscription.nil?
|
82
|
+
return false if @admin_unsubscription.nil?
|
79
83
|
return true
|
80
84
|
end
|
81
85
|
|
@@ -84,8 +88,8 @@ module SibApiV3Sdk
|
|
84
88
|
def ==(o)
|
85
89
|
return true if self.equal?(o)
|
86
90
|
self.class == o.class &&
|
87
|
-
|
88
|
-
|
91
|
+
user_unsubscription == o.user_unsubscription &&
|
92
|
+
admin_unsubscription == o.admin_unsubscription
|
89
93
|
end
|
90
94
|
|
91
95
|
# @see the `==` method
|
@@ -97,7 +101,7 @@ module SibApiV3Sdk
|
|
97
101
|
# Calculates hash code according to all attributes.
|
98
102
|
# @return [Fixnum] Hash code
|
99
103
|
def hash
|
100
|
-
[
|
104
|
+
[user_unsubscription, admin_unsubscription].hash
|
101
105
|
end
|
102
106
|
|
103
107
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
|
17
|
-
class
|
17
|
+
class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription
|
18
18
|
# Date of the event
|
19
19
|
attr_accessor :event_time
|
20
20
|
|
@@ -33,7 +33,7 @@ module SibApiV3Sdk
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'event_time' => :'
|
36
|
+
:'event_time' => :'String',
|
37
37
|
:'ip' => :'String'
|
38
38
|
}
|
39
39
|
end
|
@@ -64,6 +64,10 @@ module SibApiV3Sdk
|
|
64
64
|
invalid_properties.push("invalid value for 'event_time', event_time cannot be nil.")
|
65
65
|
end
|
66
66
|
|
67
|
+
if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
68
|
+
invalid_properties.push("invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
69
|
+
end
|
70
|
+
|
67
71
|
if @ip.nil?
|
68
72
|
invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
|
69
73
|
end
|
@@ -75,10 +79,25 @@ module SibApiV3Sdk
|
|
75
79
|
# @return true if the model is valid
|
76
80
|
def valid?
|
77
81
|
return false if @event_time.nil?
|
82
|
+
return false if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
78
83
|
return false if @ip.nil?
|
79
84
|
return true
|
80
85
|
end
|
81
86
|
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param [Object] event_time Value to be assigned
|
89
|
+
def event_time=(event_time)
|
90
|
+
if event_time.nil?
|
91
|
+
fail ArgumentError, "event_time cannot be nil"
|
92
|
+
end
|
93
|
+
|
94
|
+
if event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
95
|
+
fail ArgumentError, "invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
96
|
+
end
|
97
|
+
|
98
|
+
@event_time = event_time
|
99
|
+
end
|
100
|
+
|
82
101
|
# Checks equality by comparing each attribute.
|
83
102
|
# @param [Object] Object to be compared
|
84
103
|
def ==(o)
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
|
17
|
-
class
|
17
|
+
class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription
|
18
18
|
# ID of the campaign which generated the event
|
19
19
|
attr_accessor :campaign_id
|
20
20
|
|
@@ -38,7 +38,7 @@ module SibApiV3Sdk
|
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
40
|
:'campaign_id' => :'Integer',
|
41
|
-
:'event_time' => :'
|
41
|
+
:'event_time' => :'String',
|
42
42
|
:'ip' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -77,6 +77,10 @@ module SibApiV3Sdk
|
|
77
77
|
invalid_properties.push("invalid value for 'event_time', event_time cannot be nil.")
|
78
78
|
end
|
79
79
|
|
80
|
+
if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
81
|
+
invalid_properties.push("invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
82
|
+
end
|
83
|
+
|
80
84
|
if @ip.nil?
|
81
85
|
invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
|
82
86
|
end
|
@@ -89,10 +93,25 @@ module SibApiV3Sdk
|
|
89
93
|
def valid?
|
90
94
|
return false if @campaign_id.nil?
|
91
95
|
return false if @event_time.nil?
|
96
|
+
return false if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
92
97
|
return false if @ip.nil?
|
93
98
|
return true
|
94
99
|
end
|
95
100
|
|
101
|
+
# Custom attribute writer method with validation
|
102
|
+
# @param [Object] event_time Value to be assigned
|
103
|
+
def event_time=(event_time)
|
104
|
+
if event_time.nil?
|
105
|
+
fail ArgumentError, "event_time cannot be nil"
|
106
|
+
end
|
107
|
+
|
108
|
+
if event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
109
|
+
fail ArgumentError, "invalid value for 'event_time', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
110
|
+
end
|
111
|
+
|
112
|
+
@event_time = event_time
|
113
|
+
end
|
114
|
+
|
96
115
|
# Checks equality by comparing each attribute.
|
97
116
|
# @param [Object] Object to be compared
|
98
117
|
def ==(o)
|
@@ -30,7 +30,7 @@ module SibApiV3Sdk
|
|
30
30
|
# ID of the folder
|
31
31
|
attr_accessor :folder_id
|
32
32
|
|
33
|
-
# Creation Date of the list (YYYY-MM-DD)
|
33
|
+
# Creation Date of the list (YYYY-MM-DD HH:mm:ss)
|
34
34
|
attr_accessor :created_at
|
35
35
|
|
36
36
|
attr_accessor :campaign_stats
|
@@ -139,8 +139,8 @@ module SibApiV3Sdk
|
|
139
139
|
invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
|
140
140
|
end
|
141
141
|
|
142
|
-
if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
143
|
-
invalid_properties.push("invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2})?$/.")
|
142
|
+
if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
143
|
+
invalid_properties.push("invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
144
144
|
end
|
145
145
|
|
146
146
|
return invalid_properties
|
@@ -155,7 +155,7 @@ module SibApiV3Sdk
|
|
155
155
|
return false if @total_subscribers.nil?
|
156
156
|
return false if @folder_id.nil?
|
157
157
|
return false if @created_at.nil?
|
158
|
-
return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
158
|
+
return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
159
159
|
return true
|
160
160
|
end
|
161
161
|
|
@@ -166,8 +166,8 @@ module SibApiV3Sdk
|
|
166
166
|
fail ArgumentError, "created_at cannot be nil"
|
167
167
|
end
|
168
168
|
|
169
|
-
if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
170
|
-
fail ArgumentError, "invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2})?$/."
|
169
|
+
if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
170
|
+
fail ArgumentError, "invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
171
171
|
end
|
172
172
|
|
173
173
|
@created_at = created_at
|
@@ -15,26 +15,26 @@ require 'date'
|
|
15
15
|
module SibApiV3Sdk
|
16
16
|
|
17
17
|
class GetLists
|
18
|
-
# Number of lists in your account
|
19
|
-
attr_accessor :count
|
20
|
-
|
21
18
|
# Listing of all the lists available in your account
|
22
19
|
attr_accessor :lists
|
23
20
|
|
21
|
+
# Number of lists in your account
|
22
|
+
attr_accessor :count
|
23
|
+
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
-
:'
|
29
|
-
:'
|
28
|
+
:'lists' => :'lists',
|
29
|
+
:'count' => :'count'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'lists' => :'Array<Object>',
|
37
|
+
:'count' => :'Integer'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -46,38 +46,38 @@ module SibApiV3Sdk
|
|
46
46
|
# convert string to symbol for hash key
|
47
47
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
48
|
|
49
|
-
if attributes.has_key?(:'count')
|
50
|
-
self.count = attributes[:'count']
|
51
|
-
end
|
52
|
-
|
53
49
|
if attributes.has_key?(:'lists')
|
54
50
|
if (value = attributes[:'lists']).is_a?(Array)
|
55
51
|
self.lists = value
|
56
52
|
end
|
57
53
|
end
|
58
54
|
|
55
|
+
if attributes.has_key?(:'count')
|
56
|
+
self.count = attributes[:'count']
|
57
|
+
end
|
58
|
+
|
59
59
|
end
|
60
60
|
|
61
61
|
# Show invalid properties with the reasons. Usually used together with valid?
|
62
62
|
# @return Array for valid properies with the reasons
|
63
63
|
def list_invalid_properties
|
64
64
|
invalid_properties = Array.new
|
65
|
-
if @count.nil?
|
66
|
-
invalid_properties.push("invalid value for 'count', count cannot be nil.")
|
67
|
-
end
|
68
|
-
|
69
65
|
if @lists.nil?
|
70
66
|
invalid_properties.push("invalid value for 'lists', lists cannot be nil.")
|
71
67
|
end
|
72
68
|
|
69
|
+
if @count.nil?
|
70
|
+
invalid_properties.push("invalid value for 'count', count cannot be nil.")
|
71
|
+
end
|
72
|
+
|
73
73
|
return invalid_properties
|
74
74
|
end
|
75
75
|
|
76
76
|
# Check to see if the all the properties in the model are valid
|
77
77
|
# @return true if the model is valid
|
78
78
|
def valid?
|
79
|
-
return false if @count.nil?
|
80
79
|
return false if @lists.nil?
|
80
|
+
return false if @count.nil?
|
81
81
|
return true
|
82
82
|
end
|
83
83
|
|
@@ -86,8 +86,8 @@ module SibApiV3Sdk
|
|
86
86
|
def ==(o)
|
87
87
|
return true if self.equal?(o)
|
88
88
|
self.class == o.class &&
|
89
|
-
|
90
|
-
|
89
|
+
lists == o.lists &&
|
90
|
+
count == o.count
|
91
91
|
end
|
92
92
|
|
93
93
|
# @see the `==` method
|
@@ -99,7 +99,7 @@ module SibApiV3Sdk
|
|
99
99
|
# Calculates hash code according to all attributes.
|
100
100
|
# @return [Fixnum] Hash code
|
101
101
|
def hash
|
102
|
-
[
|
102
|
+
[lists, count].hash
|
103
103
|
end
|
104
104
|
|
105
105
|
# Builds the object from hash
|
@@ -29,10 +29,10 @@ module SibApiV3Sdk
|
|
29
29
|
# Type of webhook (marketing or transac)
|
30
30
|
attr_accessor :type
|
31
31
|
|
32
|
-
# Creation date of the webhook (YYYY-MM-DD)
|
32
|
+
# Creation date of the webhook (YYYY-MM-DD HH:mm:ss)
|
33
33
|
attr_accessor :created_at
|
34
34
|
|
35
|
-
# Last modification date of the webhook (YYYY-MM-DD)
|
35
|
+
# Last modification date of the webhook (YYYY-MM-DD HH:mm:ss)
|
36
36
|
attr_accessor :modified_at
|
37
37
|
|
38
38
|
class EnumAttributeValidator
|
@@ -151,16 +151,16 @@ module SibApiV3Sdk
|
|
151
151
|
invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
|
152
152
|
end
|
153
153
|
|
154
|
-
if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
155
|
-
invalid_properties.push("invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2})?$/.")
|
154
|
+
if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
155
|
+
invalid_properties.push("invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
156
156
|
end
|
157
157
|
|
158
158
|
if @modified_at.nil?
|
159
159
|
invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
|
160
160
|
end
|
161
161
|
|
162
|
-
if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
163
|
-
invalid_properties.push("invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2})?$/.")
|
162
|
+
if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
163
|
+
invalid_properties.push("invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
164
164
|
end
|
165
165
|
|
166
166
|
return invalid_properties
|
@@ -177,9 +177,9 @@ module SibApiV3Sdk
|
|
177
177
|
type_validator = EnumAttributeValidator.new('String', ["marketing", "transac"])
|
178
178
|
return false unless type_validator.valid?(@type)
|
179
179
|
return false if @created_at.nil?
|
180
|
-
return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
180
|
+
return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
181
181
|
return false if @modified_at.nil?
|
182
|
-
return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
182
|
+
return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
183
183
|
return true
|
184
184
|
end
|
185
185
|
|
@@ -200,8 +200,8 @@ module SibApiV3Sdk
|
|
200
200
|
fail ArgumentError, "created_at cannot be nil"
|
201
201
|
end
|
202
202
|
|
203
|
-
if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
204
|
-
fail ArgumentError, "invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2})?$/."
|
203
|
+
if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
204
|
+
fail ArgumentError, "invalid value for 'created_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
205
205
|
end
|
206
206
|
|
207
207
|
@created_at = created_at
|
@@ -214,8 +214,8 @@ module SibApiV3Sdk
|
|
214
214
|
fail ArgumentError, "modified_at cannot be nil"
|
215
215
|
end
|
216
216
|
|
217
|
-
if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2})?$/)
|
218
|
-
fail ArgumentError, "invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2})?$/."
|
217
|
+
if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
218
|
+
fail ArgumentError, "invalid value for 'modified_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
219
219
|
end
|
220
220
|
|
221
221
|
@modified_at = modified_at
|
@@ -44,6 +44,12 @@ describe 'GetEmailEventReportEvents' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "subject"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "message_id"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -78,5 +84,11 @@ describe 'GetEmailEventReportEvents' do
|
|
78
84
|
end
|
79
85
|
end
|
80
86
|
|
87
|
+
describe 'test attribute "link"' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
81
93
|
end
|
82
94
|
|