bombbomb 2.0.25797 → 2.0.25798
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -0
- data/README.md +68 -33
- data/Rakefile +8 -3
- data/bombbomb.gemspec +8 -17
- data/docs/AccountsApi.md +164 -5
- data/docs/AutomationsApi.md +52 -0
- data/docs/ClientGroupAssetMetaData.md +11 -0
- data/docs/ContactsApi.md +9 -6
- data/docs/EmailsApi.md +220 -0
- data/docs/FormsApi.md +60 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/IntegrationsApi.md +223 -0
- data/docs/JerichoConfiguration.md +2 -0
- data/docs/PromptMonthlyPerformance.md +11 -0
- data/docs/PromptOverview.md +11 -0
- data/docs/PromptSocialPrompt.md +20 -0
- data/docs/PromptsApi.md +230 -3
- data/docs/SocialsApi.md +167 -2
- data/docs/TeamsApi.md +300 -16
- data/docs/UsersApi.md +100 -0
- data/docs/VideoEmailPrompt.md +15 -15
- data/git_push.sh +1 -13
- data/lib/bombbomb.rb +8 -14
- data/lib/bombbomb/api/accounts_api.rb +189 -51
- data/lib/bombbomb/api/automations_api.rb +71 -30
- data/lib/bombbomb/api/contacts_api.rb +58 -86
- data/lib/bombbomb/api/curriculum_api.rb +8 -27
- data/lib/bombbomb/api/emails_api.rb +262 -66
- data/lib/bombbomb/api/files_api.rb +32 -53
- data/lib/bombbomb/api/forms_api.rb +77 -0
- data/lib/bombbomb/api/integrations_api.rb +238 -20
- data/lib/bombbomb/api/lists_api.rb +32 -53
- data/lib/bombbomb/api/orders_api.rb +8 -21
- data/lib/bombbomb/api/prompts_api.rb +347 -112
- data/lib/bombbomb/api/socials_api.rb +242 -87
- data/lib/bombbomb/api/teams_api.rb +485 -193
- data/lib/bombbomb/api/users_api.rb +119 -0
- data/lib/bombbomb/api/utilities_api.rb +23 -44
- data/lib/bombbomb/api/videos_api.rb +38 -55
- data/lib/bombbomb/api/webhooks_api.rb +23 -50
- data/lib/bombbomb/api_client.rb +55 -45
- data/lib/bombbomb/api_error.rb +9 -18
- data/lib/bombbomb/configuration.rb +8 -13
- data/lib/bombbomb/models/bb_web_hook.rb +6 -17
- data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
- data/lib/bombbomb/models/curriculum.rb +6 -17
- data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
- data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
- data/lib/bombbomb/models/hosted_doc.rb +6 -17
- data/lib/bombbomb/models/inline_response_200.rb +7 -18
- data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
- data/lib/bombbomb/models/jericho_configuration.rb +34 -21
- data/lib/bombbomb/models/jericho_performance.rb +6 -17
- data/lib/bombbomb/models/o_auth_client.rb +6 -17
- data/lib/bombbomb/models/prompt_bot.rb +6 -17
- data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
- data/lib/bombbomb/models/prompt_overview.rb +219 -0
- data/lib/bombbomb/models/prompt_social_prompt.rb +311 -0
- data/lib/bombbomb/models/sign_upload_request.rb +6 -17
- data/lib/bombbomb/models/sign_upload_response.rb +6 -17
- data/lib/bombbomb/models/string.rb +6 -17
- data/lib/bombbomb/models/team_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_email_prompt.rb +128 -144
- data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
- data/lib/bombbomb/models/video_public_representation.rb +6 -17
- data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
- data/lib/bombbomb/version.rb +3 -14
- data/spec/api/forms_api_spec.rb +58 -0
- data/spec/api/users_api_spec.rb +57 -0
- data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
- data/spec/models/prompt_monthly_performance_spec.rb +60 -0
- data/spec/models/prompt_overview_spec.rb +60 -0
- data/spec/models/{prompt_bot_bot_spec.rb → prompt_social_prompt_spec.rb} +27 -15
- metadata +40 -20
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -77,7 +66,7 @@ module BombBomb
|
|
77
66
|
end
|
78
67
|
|
79
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
80
|
-
# @return Array for valid
|
69
|
+
# @return Array for valid properties with the reasons
|
81
70
|
def list_invalid_properties
|
82
71
|
invalid_properties = Array.new
|
83
72
|
return invalid_properties
|
@@ -117,7 +106,7 @@ module BombBomb
|
|
117
106
|
def build_from_hash(attributes)
|
118
107
|
return nil unless attributes.is_a?(Hash)
|
119
108
|
self.class.swagger_types.each_pair do |key, type|
|
120
|
-
if type =~
|
109
|
+
if type =~ /\AArray<(.*)>/i
|
121
110
|
# check to ensure the input is an array given that the the attribute
|
122
111
|
# is documented as an array but the input is not
|
123
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -148,7 +137,7 @@ module BombBomb
|
|
148
137
|
when :Float
|
149
138
|
value.to_f
|
150
139
|
when :BOOLEAN
|
151
|
-
if value.to_s =~
|
140
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
141
|
true
|
153
142
|
else
|
154
143
|
false
|
@@ -159,7 +148,7 @@ module BombBomb
|
|
159
148
|
when /\AArray<(?<inner_type>.+)>\z/
|
160
149
|
inner_type = Regexp.last_match[:inner_type]
|
161
150
|
value.map { |v| _deserialize(inner_type, v) }
|
162
|
-
when /\AHash<(?<k_type
|
151
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
152
|
k_type = Regexp.last_match[:k_type]
|
164
153
|
v_type = Regexp.last_match[:v_type]
|
165
154
|
{}.tap do |hash|
|
@@ -3,21 +3,10 @@
|
|
3
3
|
|
4
4
|
#We make it easy to build relationships using simple videos.
|
5
5
|
|
6
|
-
OpenAPI spec version: 2.0.
|
6
|
+
OpenAPI spec version: 2.0.831
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
-
you may not use this file except in compliance with the License.
|
12
|
-
You may obtain a copy of the License at
|
13
|
-
|
14
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
-
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
-
See the License for the specific language governing permissions and
|
20
|
-
limitations under the License.
|
9
|
+
Swagger Codegen version: 2.3.1
|
21
10
|
|
22
11
|
=end
|
23
12
|
|
@@ -26,12 +15,6 @@ require 'date'
|
|
26
15
|
module BombBomb
|
27
16
|
# Configures a single prompt which asks a user to record a video into an outgoing email.
|
28
17
|
class VideoEmailPrompt
|
29
|
-
# The identifier of the prompt. Read Only.
|
30
|
-
attr_accessor :id
|
31
|
-
|
32
|
-
# The prompt's owner. Read Only.
|
33
|
-
attr_accessor :user_id
|
34
|
-
|
35
18
|
# Optional. The email template to be used in the sent email, if none supplied, the users' default will be applied.
|
36
19
|
attr_accessor :template_id
|
37
20
|
|
@@ -41,24 +24,12 @@ module BombBomb
|
|
41
24
|
# The HTML content of the final email
|
42
25
|
attr_accessor :email_content
|
43
26
|
|
44
|
-
# The URL of a thumbnail image for this prompt
|
45
|
-
attr_accessor :thumbnail_url
|
46
|
-
|
47
27
|
# Contact Id to send the final email to
|
48
28
|
attr_accessor :contact_id
|
49
29
|
|
50
30
|
# List Ids to send the final email to
|
51
31
|
attr_accessor :to_lists
|
52
32
|
|
53
|
-
# If sent in a jericho context, this will have the jericho id
|
54
|
-
attr_accessor :jericho_id
|
55
|
-
|
56
|
-
# The prompt's subject line
|
57
|
-
attr_accessor :prompt_subject
|
58
|
-
|
59
|
-
# The suggested script of the prompt.
|
60
|
-
attr_accessor :prompt_html
|
61
|
-
|
62
33
|
# A paragraph intro statement about the purpose of the email you're recording a video for.
|
63
34
|
attr_accessor :prompt_intro
|
64
35
|
|
@@ -74,9 +45,6 @@ module BombBomb
|
|
74
45
|
# When the video must be recorded by
|
75
46
|
attr_accessor :video_due_date
|
76
47
|
|
77
|
-
# When the final email is scheduled to be sent
|
78
|
-
attr_accessor :scheduled_send_date
|
79
|
-
|
80
48
|
# The video that was added to the prompt. Read Only.
|
81
49
|
attr_accessor :video_id
|
82
50
|
|
@@ -89,21 +57,9 @@ module BombBomb
|
|
89
57
|
# The bot that created the prompt.
|
90
58
|
attr_accessor :prompt_bot_id
|
91
59
|
|
92
|
-
# The client group campaign that created the prompt.
|
93
|
-
attr_accessor :client_group_id
|
94
|
-
|
95
|
-
# The status of the prompt: created = 0, sent = 10, recorded = 20, job_created = 30, timed_out = 40, declined = 50 Read Only
|
96
|
-
attr_accessor :status
|
97
|
-
|
98
60
|
# Controls whether a user template is applied to the message as it is sent
|
99
61
|
attr_accessor :apply_template
|
100
62
|
|
101
|
-
# When the email was first sent out
|
102
|
-
attr_accessor :created_date
|
103
|
-
|
104
|
-
# When the user was last notified about a prompt email waiting for a video
|
105
|
-
attr_accessor :last_notified
|
106
|
-
|
107
63
|
# The facebook message to be passed off to social sender
|
108
64
|
attr_accessor :facebook_message
|
109
65
|
|
@@ -113,12 +69,45 @@ module BombBomb
|
|
113
69
|
# The linkedin message to be passed off to social sender
|
114
70
|
attr_accessor :linkedin_message
|
115
71
|
|
72
|
+
# The id for the alternate content id
|
73
|
+
attr_accessor :alternate_content_id
|
74
|
+
|
75
|
+
# The identifier of the prompt. Read Only.
|
76
|
+
attr_accessor :id
|
77
|
+
|
78
|
+
# The prompt's owner. Read Only.
|
79
|
+
attr_accessor :user_id
|
80
|
+
|
81
|
+
# If sent in a jericho context, this will have the jericho id
|
82
|
+
attr_accessor :jericho_id
|
83
|
+
|
84
|
+
# The prompt's subject line
|
85
|
+
attr_accessor :prompt_subject
|
86
|
+
|
87
|
+
# The suggested script of the prompt.
|
88
|
+
attr_accessor :prompt_html
|
89
|
+
|
90
|
+
# When the final email is scheduled to be sent
|
91
|
+
attr_accessor :scheduled_send_date
|
92
|
+
|
93
|
+
# The client group campaign that created the prompt.
|
94
|
+
attr_accessor :client_group_id
|
95
|
+
|
96
|
+
# The URL of a thumbnail image for this prompt
|
97
|
+
attr_accessor :thumbnail_url
|
98
|
+
|
99
|
+
# The status of the prompt: created = 0, sent = 10, recorded = 20, job_created = 30, timed_out = 40, declined = 50 Read Only
|
100
|
+
attr_accessor :status
|
101
|
+
|
102
|
+
# When the email was first sent out
|
103
|
+
attr_accessor :created_date
|
104
|
+
|
105
|
+
# When the user was last notified about a prompt email waiting for a video
|
106
|
+
attr_accessor :last_notified
|
107
|
+
|
116
108
|
# The sendMechanism property
|
117
109
|
attr_accessor :send_mechanism
|
118
110
|
|
119
|
-
# this determines whether or not it has a social content.
|
120
|
-
attr_accessor :has_social
|
121
|
-
|
122
111
|
# The types of mechanisms this prompt can send.
|
123
112
|
attr_accessor :send_types
|
124
113
|
|
@@ -126,37 +115,37 @@ module BombBomb
|
|
126
115
|
# Attribute mapping from ruby-style variable name to JSON key.
|
127
116
|
def self.attribute_map
|
128
117
|
{
|
129
|
-
:'id' => :'id',
|
130
|
-
:'user_id' => :'userId',
|
131
118
|
:'template_id' => :'templateId',
|
132
119
|
:'email_subject_line' => :'emailSubjectLine',
|
133
120
|
:'email_content' => :'emailContent',
|
134
|
-
:'thumbnail_url' => :'thumbnailUrl',
|
135
121
|
:'contact_id' => :'contactId',
|
136
122
|
:'to_lists' => :'toLists',
|
137
|
-
:'jericho_id' => :'jerichoId',
|
138
|
-
:'prompt_subject' => :'promptSubject',
|
139
|
-
:'prompt_html' => :'promptHtml',
|
140
123
|
:'prompt_intro' => :'promptIntro',
|
141
124
|
:'example_video_id' => :'exampleVideoId',
|
142
125
|
:'followup_video_id' => :'followupVideoId',
|
143
126
|
:'send_without_video' => :'sendWithoutVideo',
|
144
127
|
:'video_due_date' => :'videoDueDate',
|
145
|
-
:'scheduled_send_date' => :'scheduledSendDate',
|
146
128
|
:'video_id' => :'videoId',
|
147
129
|
:'email_id' => :'emailId',
|
148
130
|
:'job_id' => :'jobId',
|
149
131
|
:'prompt_bot_id' => :'promptBotId',
|
150
|
-
:'client_group_id' => :'clientGroupId',
|
151
|
-
:'status' => :'status',
|
152
132
|
:'apply_template' => :'applyTemplate',
|
153
|
-
:'created_date' => :'createdDate',
|
154
|
-
:'last_notified' => :'lastNotified',
|
155
133
|
:'facebook_message' => :'facebookMessage',
|
156
134
|
:'twitter_message' => :'twitterMessage',
|
157
135
|
:'linkedin_message' => :'linkedinMessage',
|
136
|
+
:'alternate_content_id' => :'alternateContentId',
|
137
|
+
:'id' => :'id',
|
138
|
+
:'user_id' => :'userId',
|
139
|
+
:'jericho_id' => :'jerichoId',
|
140
|
+
:'prompt_subject' => :'promptSubject',
|
141
|
+
:'prompt_html' => :'promptHtml',
|
142
|
+
:'scheduled_send_date' => :'scheduledSendDate',
|
143
|
+
:'client_group_id' => :'clientGroupId',
|
144
|
+
:'thumbnail_url' => :'thumbnailUrl',
|
145
|
+
:'status' => :'status',
|
146
|
+
:'created_date' => :'createdDate',
|
147
|
+
:'last_notified' => :'lastNotified',
|
158
148
|
:'send_mechanism' => :'sendMechanism',
|
159
|
-
:'has_social' => :'hasSocial',
|
160
149
|
:'send_types' => :'sendTypes'
|
161
150
|
}
|
162
151
|
end
|
@@ -164,37 +153,37 @@ module BombBomb
|
|
164
153
|
# Attribute type mapping.
|
165
154
|
def self.swagger_types
|
166
155
|
{
|
167
|
-
:'id' => :'String',
|
168
|
-
:'user_id' => :'String',
|
169
156
|
:'template_id' => :'String',
|
170
157
|
:'email_subject_line' => :'String',
|
171
158
|
:'email_content' => :'String',
|
172
|
-
:'thumbnail_url' => :'String',
|
173
159
|
:'contact_id' => :'String',
|
174
160
|
:'to_lists' => :'Array<String>',
|
175
|
-
:'jericho_id' => :'String',
|
176
|
-
:'prompt_subject' => :'String',
|
177
|
-
:'prompt_html' => :'String',
|
178
161
|
:'prompt_intro' => :'String',
|
179
162
|
:'example_video_id' => :'String',
|
180
163
|
:'followup_video_id' => :'String',
|
181
164
|
:'send_without_video' => :'BOOLEAN',
|
182
165
|
:'video_due_date' => :'DateTime',
|
183
|
-
:'scheduled_send_date' => :'DateTime',
|
184
166
|
:'video_id' => :'String',
|
185
167
|
:'email_id' => :'String',
|
186
168
|
:'job_id' => :'String',
|
187
169
|
:'prompt_bot_id' => :'String',
|
188
|
-
:'client_group_id' => :'String',
|
189
|
-
:'status' => :'Integer',
|
190
170
|
:'apply_template' => :'BOOLEAN',
|
191
|
-
:'created_date' => :'DateTime',
|
192
|
-
:'last_notified' => :'DateTime',
|
193
171
|
:'facebook_message' => :'String',
|
194
172
|
:'twitter_message' => :'String',
|
195
173
|
:'linkedin_message' => :'String',
|
196
|
-
:'
|
197
|
-
:'
|
174
|
+
:'alternate_content_id' => :'String',
|
175
|
+
:'id' => :'String',
|
176
|
+
:'user_id' => :'String',
|
177
|
+
:'jericho_id' => :'String',
|
178
|
+
:'prompt_subject' => :'String',
|
179
|
+
:'prompt_html' => :'String',
|
180
|
+
:'scheduled_send_date' => :'DateTime',
|
181
|
+
:'client_group_id' => :'String',
|
182
|
+
:'thumbnail_url' => :'String',
|
183
|
+
:'status' => :'Integer',
|
184
|
+
:'created_date' => :'DateTime',
|
185
|
+
:'last_notified' => :'DateTime',
|
186
|
+
:'send_mechanism' => :'DateTime',
|
198
187
|
:'send_types' => :'Array<String>'
|
199
188
|
}
|
200
189
|
end
|
@@ -207,14 +196,6 @@ module BombBomb
|
|
207
196
|
# convert string to symbol for hash key
|
208
197
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
209
198
|
|
210
|
-
if attributes.has_key?(:'id')
|
211
|
-
self.id = attributes[:'id']
|
212
|
-
end
|
213
|
-
|
214
|
-
if attributes.has_key?(:'userId')
|
215
|
-
self.user_id = attributes[:'userId']
|
216
|
-
end
|
217
|
-
|
218
199
|
if attributes.has_key?(:'templateId')
|
219
200
|
self.template_id = attributes[:'templateId']
|
220
201
|
end
|
@@ -227,10 +208,6 @@ module BombBomb
|
|
227
208
|
self.email_content = attributes[:'emailContent']
|
228
209
|
end
|
229
210
|
|
230
|
-
if attributes.has_key?(:'thumbnailUrl')
|
231
|
-
self.thumbnail_url = attributes[:'thumbnailUrl']
|
232
|
-
end
|
233
|
-
|
234
211
|
if attributes.has_key?(:'contactId')
|
235
212
|
self.contact_id = attributes[:'contactId']
|
236
213
|
end
|
@@ -241,18 +218,6 @@ module BombBomb
|
|
241
218
|
end
|
242
219
|
end
|
243
220
|
|
244
|
-
if attributes.has_key?(:'jerichoId')
|
245
|
-
self.jericho_id = attributes[:'jerichoId']
|
246
|
-
end
|
247
|
-
|
248
|
-
if attributes.has_key?(:'promptSubject')
|
249
|
-
self.prompt_subject = attributes[:'promptSubject']
|
250
|
-
end
|
251
|
-
|
252
|
-
if attributes.has_key?(:'promptHtml')
|
253
|
-
self.prompt_html = attributes[:'promptHtml']
|
254
|
-
end
|
255
|
-
|
256
221
|
if attributes.has_key?(:'promptIntro')
|
257
222
|
self.prompt_intro = attributes[:'promptIntro']
|
258
223
|
end
|
@@ -273,10 +238,6 @@ module BombBomb
|
|
273
238
|
self.video_due_date = attributes[:'videoDueDate']
|
274
239
|
end
|
275
240
|
|
276
|
-
if attributes.has_key?(:'scheduledSendDate')
|
277
|
-
self.scheduled_send_date = attributes[:'scheduledSendDate']
|
278
|
-
end
|
279
|
-
|
280
241
|
if attributes.has_key?(:'videoId')
|
281
242
|
self.video_id = attributes[:'videoId']
|
282
243
|
end
|
@@ -293,26 +254,10 @@ module BombBomb
|
|
293
254
|
self.prompt_bot_id = attributes[:'promptBotId']
|
294
255
|
end
|
295
256
|
|
296
|
-
if attributes.has_key?(:'clientGroupId')
|
297
|
-
self.client_group_id = attributes[:'clientGroupId']
|
298
|
-
end
|
299
|
-
|
300
|
-
if attributes.has_key?(:'status')
|
301
|
-
self.status = attributes[:'status']
|
302
|
-
end
|
303
|
-
|
304
257
|
if attributes.has_key?(:'applyTemplate')
|
305
258
|
self.apply_template = attributes[:'applyTemplate']
|
306
259
|
end
|
307
260
|
|
308
|
-
if attributes.has_key?(:'createdDate')
|
309
|
-
self.created_date = attributes[:'createdDate']
|
310
|
-
end
|
311
|
-
|
312
|
-
if attributes.has_key?(:'lastNotified')
|
313
|
-
self.last_notified = attributes[:'lastNotified']
|
314
|
-
end
|
315
|
-
|
316
261
|
if attributes.has_key?(:'facebookMessage')
|
317
262
|
self.facebook_message = attributes[:'facebookMessage']
|
318
263
|
end
|
@@ -325,12 +270,56 @@ module BombBomb
|
|
325
270
|
self.linkedin_message = attributes[:'linkedinMessage']
|
326
271
|
end
|
327
272
|
|
328
|
-
if attributes.has_key?(:'
|
329
|
-
self.
|
273
|
+
if attributes.has_key?(:'alternateContentId')
|
274
|
+
self.alternate_content_id = attributes[:'alternateContentId']
|
275
|
+
end
|
276
|
+
|
277
|
+
if attributes.has_key?(:'id')
|
278
|
+
self.id = attributes[:'id']
|
279
|
+
end
|
280
|
+
|
281
|
+
if attributes.has_key?(:'userId')
|
282
|
+
self.user_id = attributes[:'userId']
|
283
|
+
end
|
284
|
+
|
285
|
+
if attributes.has_key?(:'jerichoId')
|
286
|
+
self.jericho_id = attributes[:'jerichoId']
|
287
|
+
end
|
288
|
+
|
289
|
+
if attributes.has_key?(:'promptSubject')
|
290
|
+
self.prompt_subject = attributes[:'promptSubject']
|
330
291
|
end
|
331
292
|
|
332
|
-
if attributes.has_key?(:'
|
333
|
-
self.
|
293
|
+
if attributes.has_key?(:'promptHtml')
|
294
|
+
self.prompt_html = attributes[:'promptHtml']
|
295
|
+
end
|
296
|
+
|
297
|
+
if attributes.has_key?(:'scheduledSendDate')
|
298
|
+
self.scheduled_send_date = attributes[:'scheduledSendDate']
|
299
|
+
end
|
300
|
+
|
301
|
+
if attributes.has_key?(:'clientGroupId')
|
302
|
+
self.client_group_id = attributes[:'clientGroupId']
|
303
|
+
end
|
304
|
+
|
305
|
+
if attributes.has_key?(:'thumbnailUrl')
|
306
|
+
self.thumbnail_url = attributes[:'thumbnailUrl']
|
307
|
+
end
|
308
|
+
|
309
|
+
if attributes.has_key?(:'status')
|
310
|
+
self.status = attributes[:'status']
|
311
|
+
end
|
312
|
+
|
313
|
+
if attributes.has_key?(:'createdDate')
|
314
|
+
self.created_date = attributes[:'createdDate']
|
315
|
+
end
|
316
|
+
|
317
|
+
if attributes.has_key?(:'lastNotified')
|
318
|
+
self.last_notified = attributes[:'lastNotified']
|
319
|
+
end
|
320
|
+
|
321
|
+
if attributes.has_key?(:'sendMechanism')
|
322
|
+
self.send_mechanism = attributes[:'sendMechanism']
|
334
323
|
end
|
335
324
|
|
336
325
|
if attributes.has_key?(:'sendTypes')
|
@@ -342,7 +331,7 @@ module BombBomb
|
|
342
331
|
end
|
343
332
|
|
344
333
|
# Show invalid properties with the reasons. Usually used together with valid?
|
345
|
-
# @return Array for valid
|
334
|
+
# @return Array for valid properties with the reasons
|
346
335
|
def list_invalid_properties
|
347
336
|
invalid_properties = Array.new
|
348
337
|
return invalid_properties
|
@@ -351,11 +340,6 @@ module BombBomb
|
|
351
340
|
# Check to see if the all the properties in the model are valid
|
352
341
|
# @return true if the model is valid
|
353
342
|
def valid?
|
354
|
-
return false if @email_subject_line.nil?
|
355
|
-
return false if @email_content.nil?
|
356
|
-
return false if @prompt_subject.nil?
|
357
|
-
return false if @prompt_html.nil?
|
358
|
-
return false if @scheduled_send_date.nil?
|
359
343
|
return true
|
360
344
|
end
|
361
345
|
|
@@ -364,37 +348,37 @@ module BombBomb
|
|
364
348
|
def ==(o)
|
365
349
|
return true if self.equal?(o)
|
366
350
|
self.class == o.class &&
|
367
|
-
id == o.id &&
|
368
|
-
user_id == o.user_id &&
|
369
351
|
template_id == o.template_id &&
|
370
352
|
email_subject_line == o.email_subject_line &&
|
371
353
|
email_content == o.email_content &&
|
372
|
-
thumbnail_url == o.thumbnail_url &&
|
373
354
|
contact_id == o.contact_id &&
|
374
355
|
to_lists == o.to_lists &&
|
375
|
-
jericho_id == o.jericho_id &&
|
376
|
-
prompt_subject == o.prompt_subject &&
|
377
|
-
prompt_html == o.prompt_html &&
|
378
356
|
prompt_intro == o.prompt_intro &&
|
379
357
|
example_video_id == o.example_video_id &&
|
380
358
|
followup_video_id == o.followup_video_id &&
|
381
359
|
send_without_video == o.send_without_video &&
|
382
360
|
video_due_date == o.video_due_date &&
|
383
|
-
scheduled_send_date == o.scheduled_send_date &&
|
384
361
|
video_id == o.video_id &&
|
385
362
|
email_id == o.email_id &&
|
386
363
|
job_id == o.job_id &&
|
387
364
|
prompt_bot_id == o.prompt_bot_id &&
|
388
|
-
client_group_id == o.client_group_id &&
|
389
|
-
status == o.status &&
|
390
365
|
apply_template == o.apply_template &&
|
391
|
-
created_date == o.created_date &&
|
392
|
-
last_notified == o.last_notified &&
|
393
366
|
facebook_message == o.facebook_message &&
|
394
367
|
twitter_message == o.twitter_message &&
|
395
368
|
linkedin_message == o.linkedin_message &&
|
369
|
+
alternate_content_id == o.alternate_content_id &&
|
370
|
+
id == o.id &&
|
371
|
+
user_id == o.user_id &&
|
372
|
+
jericho_id == o.jericho_id &&
|
373
|
+
prompt_subject == o.prompt_subject &&
|
374
|
+
prompt_html == o.prompt_html &&
|
375
|
+
scheduled_send_date == o.scheduled_send_date &&
|
376
|
+
client_group_id == o.client_group_id &&
|
377
|
+
thumbnail_url == o.thumbnail_url &&
|
378
|
+
status == o.status &&
|
379
|
+
created_date == o.created_date &&
|
380
|
+
last_notified == o.last_notified &&
|
396
381
|
send_mechanism == o.send_mechanism &&
|
397
|
-
has_social == o.has_social &&
|
398
382
|
send_types == o.send_types
|
399
383
|
end
|
400
384
|
|
@@ -407,7 +391,7 @@ module BombBomb
|
|
407
391
|
# Calculates hash code according to all attributes.
|
408
392
|
# @return [Fixnum] Hash code
|
409
393
|
def hash
|
410
|
-
[
|
394
|
+
[template_id, email_subject_line, email_content, contact_id, to_lists, prompt_intro, example_video_id, followup_video_id, send_without_video, video_due_date, video_id, email_id, job_id, prompt_bot_id, apply_template, facebook_message, twitter_message, linkedin_message, alternate_content_id, id, user_id, jericho_id, prompt_subject, prompt_html, scheduled_send_date, client_group_id, thumbnail_url, status, created_date, last_notified, send_mechanism, send_types].hash
|
411
395
|
end
|
412
396
|
|
413
397
|
# Builds the object from hash
|
@@ -416,7 +400,7 @@ module BombBomb
|
|
416
400
|
def build_from_hash(attributes)
|
417
401
|
return nil unless attributes.is_a?(Hash)
|
418
402
|
self.class.swagger_types.each_pair do |key, type|
|
419
|
-
if type =~
|
403
|
+
if type =~ /\AArray<(.*)>/i
|
420
404
|
# check to ensure the input is an array given that the the attribute
|
421
405
|
# is documented as an array but the input is not
|
422
406
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -447,7 +431,7 @@ module BombBomb
|
|
447
431
|
when :Float
|
448
432
|
value.to_f
|
449
433
|
when :BOOLEAN
|
450
|
-
if value.to_s =~
|
434
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
451
435
|
true
|
452
436
|
else
|
453
437
|
false
|
@@ -458,7 +442,7 @@ module BombBomb
|
|
458
442
|
when /\AArray<(?<inner_type>.+)>\z/
|
459
443
|
inner_type = Regexp.last_match[:inner_type]
|
460
444
|
value.map { |v| _deserialize(inner_type, v) }
|
461
|
-
when /\AHash<(?<k_type
|
445
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
462
446
|
k_type = Regexp.last_match[:k_type]
|
463
447
|
v_type = Regexp.last_match[:v_type]
|
464
448
|
{}.tap do |hash|
|