sib-api-v3-sdk 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/docs/AttributesApi.md +2 -2
- data/docs/ContactsApi.md +32 -32
- data/docs/CreateEmailCampaign.md +1 -1
- data/docs/CreateSmsCampaign.md +1 -1
- data/docs/{CreaUpdateFolder.md → CreateUpdateFolder.md} +1 -1
- data/docs/EmailCampaignsApi.md +16 -16
- data/docs/FoldersApi.md +16 -16
- data/docs/GetAccountPlan.md +2 -0
- data/docs/GetCampaignOverview.md +1 -1
- data/docs/GetContactCampaignStatsOpened.md +1 -1
- data/docs/GetContactDetails.md +1 -1
- data/docs/GetEmailCampaign.md +3 -3
- data/docs/GetEmailEventReportEvents.md +4 -4
- data/docs/GetExtendedCampaignOverview.md +3 -3
- data/docs/GetExtendedContactDetails.md +1 -1
- data/docs/GetExtendedContactDetailsStatisticsLinks.md +1 -1
- data/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +1 -1
- data/docs/GetExtendedContactDetailsStatisticsOpened.md +1 -1
- data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +1 -1
- data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +1 -1
- data/docs/GetExtendedList.md +1 -1
- data/docs/GetSmsCampaign.md +3 -3
- data/docs/GetSmsCampaignOverview.md +3 -3
- data/docs/GetSmsEventReportEvents.md +2 -2
- data/docs/GetSmtpTemplateOverview.md +2 -2
- data/docs/GetWebhook.md +2 -2
- data/docs/ListsApi.md +16 -16
- data/docs/ProcessApi.md +2 -2
- data/docs/ResellerApi.md +7 -7
- data/docs/SMSCampaignsApi.md +16 -16
- data/docs/SMTPApi.md +10 -10
- data/docs/SendTransacSms.md +1 -0
- data/docs/SendersApi.md +6 -6
- data/docs/UpdateEmailCampaign.md +1 -1
- data/docs/UpdateSmsCampaign.md +1 -1
- data/docs/WebhooksApi.md +6 -6
- data/lib/sib-api-v3-sdk.rb +1 -1
- data/lib/sib-api-v3-sdk/api/contacts_api.rb +20 -24
- data/lib/sib-api-v3-sdk/api/folders_api.rb +18 -18
- data/lib/sib-api-v3-sdk/api/lists_api.rb +2 -6
- data/lib/sib-api-v3-sdk/api/smtp_api.rb +2 -2
- data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +2 -18
- data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +2 -18
- data/lib/sib-api-v3-sdk/models/{crea_update_folder.rb → create_update_folder.rb} +1 -1
- data/lib/sib-api-v3-sdk/models/get_account_plan.rb +24 -4
- data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +2 -18
- data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +1 -20
- data/lib/sib-api-v3-sdk/models/get_contact_details.rb +2 -21
- data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +6 -60
- data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +4 -4
- data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +6 -60
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +2 -21
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_links.rb +1 -20
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent.rb +1 -20
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened.rb +1 -20
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +1 -20
- data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +1 -20
- data/lib/sib-api-v3-sdk/models/get_extended_list.rb +2 -21
- data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +6 -63
- data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +6 -63
- data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +2 -2
- data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +4 -42
- data/lib/sib-api-v3-sdk/models/get_webhook.rb +4 -42
- data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +46 -1
- data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +2 -18
- data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +2 -18
- data/lib/sib-api-v3-sdk/version.rb +1 -1
- data/spec/api/contacts_api_spec.rb +3 -3
- data/spec/api/folders_api_spec.rb +2 -2
- data/spec/api/lists_api_spec.rb +1 -1
- data/spec/api/smtp_api_spec.rb +1 -1
- data/spec/models/{crea_update_folder_spec.rb → create_update_folder_spec.rb} +6 -6
- data/spec/models/get_account_plan_spec.rb +12 -0
- data/spec/models/send_transac_sms_spec.rb +10 -0
- metadata +6 -6
@@ -34,7 +34,7 @@ module SibApiV3Sdk
|
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
36
|
:'campaign_id' => :'Integer',
|
37
|
-
:'event_time' => :'
|
37
|
+
:'event_time' => :'DateTime'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -68,10 +68,6 @@ module SibApiV3Sdk
|
|
68
68
|
invalid_properties.push("invalid value for 'event_time', event_time cannot be nil.")
|
69
69
|
end
|
70
70
|
|
71
|
-
if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
72
|
-
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)?$/.")
|
73
|
-
end
|
74
|
-
|
75
71
|
return invalid_properties
|
76
72
|
end
|
77
73
|
|
@@ -80,24 +76,9 @@ module SibApiV3Sdk
|
|
80
76
|
def valid?
|
81
77
|
return false if @campaign_id.nil?
|
82
78
|
return false if @event_time.nil?
|
83
|
-
return false if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
84
79
|
return true
|
85
80
|
end
|
86
81
|
|
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
|
-
|
101
82
|
# Checks equality by comparing each attribute.
|
102
83
|
# @param [Object] Object to be compared
|
103
84
|
def ==(o)
|
@@ -43,7 +43,7 @@ module SibApiV3Sdk
|
|
43
43
|
{
|
44
44
|
:'campaign_id' => :'Integer',
|
45
45
|
:'count' => :'Integer',
|
46
|
-
:'event_time' => :'
|
46
|
+
:'event_time' => :'DateTime',
|
47
47
|
:'ip' => :'String'
|
48
48
|
}
|
49
49
|
end
|
@@ -90,10 +90,6 @@ module SibApiV3Sdk
|
|
90
90
|
invalid_properties.push("invalid value for 'event_time', event_time cannot be nil.")
|
91
91
|
end
|
92
92
|
|
93
|
-
if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
94
|
-
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)?$/.")
|
95
|
-
end
|
96
|
-
|
97
93
|
if @ip.nil?
|
98
94
|
invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
|
99
95
|
end
|
@@ -107,25 +103,10 @@ module SibApiV3Sdk
|
|
107
103
|
return false if @campaign_id.nil?
|
108
104
|
return false if @count.nil?
|
109
105
|
return false if @event_time.nil?
|
110
|
-
return false if @event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
111
106
|
return false if @ip.nil?
|
112
107
|
return true
|
113
108
|
end
|
114
109
|
|
115
|
-
# Custom attribute writer method with validation
|
116
|
-
# @param [Object] event_time Value to be assigned
|
117
|
-
def event_time=(event_time)
|
118
|
-
if event_time.nil?
|
119
|
-
fail ArgumentError, "event_time cannot be nil"
|
120
|
-
end
|
121
|
-
|
122
|
-
if event_time !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
123
|
-
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)?$/."
|
124
|
-
end
|
125
|
-
|
126
|
-
@event_time = event_time
|
127
|
-
end
|
128
|
-
|
129
110
|
# Checks equality by comparing each attribute.
|
130
111
|
# @param [Object] Object to be compared
|
131
112
|
def ==(o)
|
@@ -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' => :'DateTime',
|
37
37
|
:'ip' => :'String'
|
38
38
|
}
|
39
39
|
end
|
@@ -64,10 +64,6 @@ 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
|
-
|
71
67
|
if @ip.nil?
|
72
68
|
invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
|
73
69
|
end
|
@@ -79,25 +75,10 @@ module SibApiV3Sdk
|
|
79
75
|
# @return true if the model is valid
|
80
76
|
def valid?
|
81
77
|
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)?$/)
|
83
78
|
return false if @ip.nil?
|
84
79
|
return true
|
85
80
|
end
|
86
81
|
|
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
|
-
|
101
82
|
# Checks equality by comparing each attribute.
|
102
83
|
# @param [Object] Object to be compared
|
103
84
|
def ==(o)
|
@@ -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' => :'DateTime',
|
42
42
|
:'ip' => :'String'
|
43
43
|
}
|
44
44
|
end
|
@@ -77,10 +77,6 @@ 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
|
-
|
84
80
|
if @ip.nil?
|
85
81
|
invalid_properties.push("invalid value for 'ip', ip cannot be nil.")
|
86
82
|
end
|
@@ -93,25 +89,10 @@ module SibApiV3Sdk
|
|
93
89
|
def valid?
|
94
90
|
return false if @campaign_id.nil?
|
95
91
|
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)?$/)
|
97
92
|
return false if @ip.nil?
|
98
93
|
return true
|
99
94
|
end
|
100
95
|
|
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
|
-
|
115
96
|
# Checks equality by comparing each attribute.
|
116
97
|
# @param [Object] Object to be compared
|
117
98
|
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-
|
33
|
+
# Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
34
34
|
attr_accessor :created_at
|
35
35
|
|
36
36
|
attr_accessor :campaign_stats
|
@@ -61,7 +61,7 @@ module SibApiV3Sdk
|
|
61
61
|
:'total_blacklisted' => :'Integer',
|
62
62
|
:'total_subscribers' => :'Integer',
|
63
63
|
:'folder_id' => :'Integer',
|
64
|
-
:'created_at' => :'
|
64
|
+
:'created_at' => :'DateTime',
|
65
65
|
:'campaign_stats' => :'Array<GetExtendedListCampaignStats>',
|
66
66
|
:'dynamic_list' => :'BOOLEAN'
|
67
67
|
}
|
@@ -139,10 +139,6 @@ 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} [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
|
-
end
|
145
|
-
|
146
142
|
return invalid_properties
|
147
143
|
end
|
148
144
|
|
@@ -155,24 +151,9 @@ module SibApiV3Sdk
|
|
155
151
|
return false if @total_subscribers.nil?
|
156
152
|
return false if @folder_id.nil?
|
157
153
|
return false if @created_at.nil?
|
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
154
|
return true
|
160
155
|
end
|
161
156
|
|
162
|
-
# Custom attribute writer method with validation
|
163
|
-
# @param [Object] created_at Value to be assigned
|
164
|
-
def created_at=(created_at)
|
165
|
-
if created_at.nil?
|
166
|
-
fail ArgumentError, "created_at cannot be nil"
|
167
|
-
end
|
168
|
-
|
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
|
-
end
|
172
|
-
|
173
|
-
@created_at = created_at
|
174
|
-
end
|
175
|
-
|
176
157
|
# Checks equality by comparing each attribute.
|
177
158
|
# @param [Object] Object to be compared
|
178
159
|
def ==(o)
|
@@ -27,7 +27,7 @@ module SibApiV3Sdk
|
|
27
27
|
# Content of the SMS Campaign
|
28
28
|
attr_accessor :content
|
29
29
|
|
30
|
-
# Date on which SMS campaign is scheduled. Should be in YYYY-MM-
|
30
|
+
# Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format
|
31
31
|
attr_accessor :scheduled_at
|
32
32
|
|
33
33
|
# Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent)
|
@@ -36,10 +36,10 @@ module SibApiV3Sdk
|
|
36
36
|
# Sender of the SMS Campaign
|
37
37
|
attr_accessor :sender
|
38
38
|
|
39
|
-
# Creation date of the SMS campaign (YYYY-MM-
|
39
|
+
# Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
40
40
|
attr_accessor :created_at
|
41
41
|
|
42
|
-
# Date of last modification of the SMS campaign (YYYY-MM-
|
42
|
+
# Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
43
43
|
attr_accessor :modified_at
|
44
44
|
|
45
45
|
class EnumAttributeValidator
|
@@ -86,11 +86,11 @@ module SibApiV3Sdk
|
|
86
86
|
:'name' => :'String',
|
87
87
|
:'status' => :'String',
|
88
88
|
:'content' => :'String',
|
89
|
-
:'scheduled_at' => :'
|
89
|
+
:'scheduled_at' => :'DateTime',
|
90
90
|
:'test_sent' => :'BOOLEAN',
|
91
91
|
:'sender' => :'String',
|
92
|
-
:'created_at' => :'
|
93
|
-
:'modified_at' => :'
|
92
|
+
:'created_at' => :'DateTime',
|
93
|
+
:'modified_at' => :'DateTime'
|
94
94
|
}
|
95
95
|
end
|
96
96
|
|
@@ -164,10 +164,6 @@ module SibApiV3Sdk
|
|
164
164
|
invalid_properties.push("invalid value for 'scheduled_at', scheduled_at cannot be nil.")
|
165
165
|
end
|
166
166
|
|
167
|
-
if @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
168
|
-
invalid_properties.push("invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
169
|
-
end
|
170
|
-
|
171
167
|
if @test_sent.nil?
|
172
168
|
invalid_properties.push("invalid value for 'test_sent', test_sent cannot be nil.")
|
173
169
|
end
|
@@ -180,18 +176,10 @@ module SibApiV3Sdk
|
|
180
176
|
invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
|
181
177
|
end
|
182
178
|
|
183
|
-
if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
184
|
-
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)?$/.")
|
185
|
-
end
|
186
|
-
|
187
179
|
if @modified_at.nil?
|
188
180
|
invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
|
189
181
|
end
|
190
182
|
|
191
|
-
if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
192
|
-
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)?$/.")
|
193
|
-
end
|
194
|
-
|
195
183
|
return invalid_properties
|
196
184
|
end
|
197
185
|
|
@@ -205,13 +193,10 @@ module SibApiV3Sdk
|
|
205
193
|
return false unless status_validator.valid?(@status)
|
206
194
|
return false if @content.nil?
|
207
195
|
return false if @scheduled_at.nil?
|
208
|
-
return false if @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
209
196
|
return false if @test_sent.nil?
|
210
197
|
return false if @sender.nil?
|
211
198
|
return false if @created_at.nil?
|
212
|
-
return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
213
199
|
return false if @modified_at.nil?
|
214
|
-
return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
215
200
|
return true
|
216
201
|
end
|
217
202
|
|
@@ -225,48 +210,6 @@ module SibApiV3Sdk
|
|
225
210
|
@status = status
|
226
211
|
end
|
227
212
|
|
228
|
-
# Custom attribute writer method with validation
|
229
|
-
# @param [Object] scheduled_at Value to be assigned
|
230
|
-
def scheduled_at=(scheduled_at)
|
231
|
-
if scheduled_at.nil?
|
232
|
-
fail ArgumentError, "scheduled_at cannot be nil"
|
233
|
-
end
|
234
|
-
|
235
|
-
if scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
236
|
-
fail ArgumentError, "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
237
|
-
end
|
238
|
-
|
239
|
-
@scheduled_at = scheduled_at
|
240
|
-
end
|
241
|
-
|
242
|
-
# Custom attribute writer method with validation
|
243
|
-
# @param [Object] created_at Value to be assigned
|
244
|
-
def created_at=(created_at)
|
245
|
-
if created_at.nil?
|
246
|
-
fail ArgumentError, "created_at cannot be nil"
|
247
|
-
end
|
248
|
-
|
249
|
-
if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
250
|
-
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)?$/."
|
251
|
-
end
|
252
|
-
|
253
|
-
@created_at = created_at
|
254
|
-
end
|
255
|
-
|
256
|
-
# Custom attribute writer method with validation
|
257
|
-
# @param [Object] modified_at Value to be assigned
|
258
|
-
def modified_at=(modified_at)
|
259
|
-
if modified_at.nil?
|
260
|
-
fail ArgumentError, "modified_at cannot be nil"
|
261
|
-
end
|
262
|
-
|
263
|
-
if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
264
|
-
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)?$/."
|
265
|
-
end
|
266
|
-
|
267
|
-
@modified_at = modified_at
|
268
|
-
end
|
269
|
-
|
270
213
|
# Checks equality by comparing each attribute.
|
271
214
|
# @param [Object] Object to be compared
|
272
215
|
def ==(o)
|
@@ -27,7 +27,7 @@ module SibApiV3Sdk
|
|
27
27
|
# Content of the SMS Campaign
|
28
28
|
attr_accessor :content
|
29
29
|
|
30
|
-
# Date on which SMS campaign is scheduled. Should be in YYYY-MM-
|
30
|
+
# Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format
|
31
31
|
attr_accessor :scheduled_at
|
32
32
|
|
33
33
|
# Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent)
|
@@ -36,10 +36,10 @@ module SibApiV3Sdk
|
|
36
36
|
# Sender of the SMS Campaign
|
37
37
|
attr_accessor :sender
|
38
38
|
|
39
|
-
# Creation date of the SMS campaign (YYYY-MM-
|
39
|
+
# Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
40
40
|
attr_accessor :created_at
|
41
41
|
|
42
|
-
# Date of last modification of the SMS campaign (YYYY-MM-
|
42
|
+
# Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ)
|
43
43
|
attr_accessor :modified_at
|
44
44
|
|
45
45
|
class EnumAttributeValidator
|
@@ -86,11 +86,11 @@ module SibApiV3Sdk
|
|
86
86
|
:'name' => :'String',
|
87
87
|
:'status' => :'String',
|
88
88
|
:'content' => :'String',
|
89
|
-
:'scheduled_at' => :'
|
89
|
+
:'scheduled_at' => :'DateTime',
|
90
90
|
:'test_sent' => :'BOOLEAN',
|
91
91
|
:'sender' => :'String',
|
92
|
-
:'created_at' => :'
|
93
|
-
:'modified_at' => :'
|
92
|
+
:'created_at' => :'DateTime',
|
93
|
+
:'modified_at' => :'DateTime'
|
94
94
|
}
|
95
95
|
end
|
96
96
|
|
@@ -164,10 +164,6 @@ module SibApiV3Sdk
|
|
164
164
|
invalid_properties.push("invalid value for 'scheduled_at', scheduled_at cannot be nil.")
|
165
165
|
end
|
166
166
|
|
167
|
-
if @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
168
|
-
invalid_properties.push("invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/.")
|
169
|
-
end
|
170
|
-
|
171
167
|
if @test_sent.nil?
|
172
168
|
invalid_properties.push("invalid value for 'test_sent', test_sent cannot be nil.")
|
173
169
|
end
|
@@ -180,18 +176,10 @@ module SibApiV3Sdk
|
|
180
176
|
invalid_properties.push("invalid value for 'created_at', created_at cannot be nil.")
|
181
177
|
end
|
182
178
|
|
183
|
-
if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
184
|
-
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)?$/.")
|
185
|
-
end
|
186
|
-
|
187
179
|
if @modified_at.nil?
|
188
180
|
invalid_properties.push("invalid value for 'modified_at', modified_at cannot be nil.")
|
189
181
|
end
|
190
182
|
|
191
|
-
if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
192
|
-
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)?$/.")
|
193
|
-
end
|
194
|
-
|
195
183
|
return invalid_properties
|
196
184
|
end
|
197
185
|
|
@@ -205,13 +193,10 @@ module SibApiV3Sdk
|
|
205
193
|
return false unless status_validator.valid?(@status)
|
206
194
|
return false if @content.nil?
|
207
195
|
return false if @scheduled_at.nil?
|
208
|
-
return false if @scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
209
196
|
return false if @test_sent.nil?
|
210
197
|
return false if @sender.nil?
|
211
198
|
return false if @created_at.nil?
|
212
|
-
return false if @created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
213
199
|
return false if @modified_at.nil?
|
214
|
-
return false if @modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
215
200
|
return true
|
216
201
|
end
|
217
202
|
|
@@ -225,48 +210,6 @@ module SibApiV3Sdk
|
|
225
210
|
@status = status
|
226
211
|
end
|
227
212
|
|
228
|
-
# Custom attribute writer method with validation
|
229
|
-
# @param [Object] scheduled_at Value to be assigned
|
230
|
-
def scheduled_at=(scheduled_at)
|
231
|
-
if scheduled_at.nil?
|
232
|
-
fail ArgumentError, "scheduled_at cannot be nil"
|
233
|
-
end
|
234
|
-
|
235
|
-
if scheduled_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
236
|
-
fail ArgumentError, "invalid value for 'scheduled_at', must conform to the pattern /^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/."
|
237
|
-
end
|
238
|
-
|
239
|
-
@scheduled_at = scheduled_at
|
240
|
-
end
|
241
|
-
|
242
|
-
# Custom attribute writer method with validation
|
243
|
-
# @param [Object] created_at Value to be assigned
|
244
|
-
def created_at=(created_at)
|
245
|
-
if created_at.nil?
|
246
|
-
fail ArgumentError, "created_at cannot be nil"
|
247
|
-
end
|
248
|
-
|
249
|
-
if created_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
250
|
-
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)?$/."
|
251
|
-
end
|
252
|
-
|
253
|
-
@created_at = created_at
|
254
|
-
end
|
255
|
-
|
256
|
-
# Custom attribute writer method with validation
|
257
|
-
# @param [Object] modified_at Value to be assigned
|
258
|
-
def modified_at=(modified_at)
|
259
|
-
if modified_at.nil?
|
260
|
-
fail ArgumentError, "modified_at cannot be nil"
|
261
|
-
end
|
262
|
-
|
263
|
-
if modified_at !~ Regexp.new(/^([1-9]\d{3}-\d{2}-\d{2} [0-2]\d:[0-5]\d:[0-5]\d)?$/)
|
264
|
-
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)?$/."
|
265
|
-
end
|
266
|
-
|
267
|
-
@modified_at = modified_at
|
268
|
-
end
|
269
|
-
|
270
213
|
# Checks equality by comparing each attribute.
|
271
214
|
# @param [Object] Object to be compared
|
272
215
|
def ==(o)
|