bombbomb 2.0.0 → 2.0.831

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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +16 -9
  4. data/Rakefile +8 -3
  5. data/bombbomb.gemspec +8 -17
  6. data/docs/AutomationsApi.md +52 -0
  7. data/docs/ClientGroupAssetMetaData.md +11 -0
  8. data/docs/InlineResponse200.md +1 -1
  9. data/docs/JerichoConfiguration.md +1 -0
  10. data/docs/PromptMonthlyPerformance.md +11 -0
  11. data/docs/PromptOverview.md +11 -0
  12. data/docs/PromptsApi.md +53 -1
  13. data/docs/TeamsApi.md +103 -5
  14. data/docs/UsersApi.md +100 -0
  15. data/git_push.sh +1 -13
  16. data/lib/bombbomb.rb +6 -14
  17. data/lib/bombbomb/api/accounts_api.rb +41 -68
  18. data/lib/bombbomb/api/automations_api.rb +71 -30
  19. data/lib/bombbomb/api/contacts_api.rb +47 -76
  20. data/lib/bombbomb/api/curriculum_api.rb +8 -27
  21. data/lib/bombbomb/api/emails_api.rb +53 -96
  22. data/lib/bombbomb/api/files_api.rb +32 -53
  23. data/lib/bombbomb/api/forms_api.rb +8 -21
  24. data/lib/bombbomb/api/integrations_api.rb +26 -51
  25. data/lib/bombbomb/api/lists_api.rb +32 -53
  26. data/lib/bombbomb/api/orders_api.rb +8 -21
  27. data/lib/bombbomb/api/prompts_api.rb +177 -139
  28. data/lib/bombbomb/api/socials_api.rb +80 -111
  29. data/lib/bombbomb/api/teams_api.rb +294 -209
  30. data/lib/bombbomb/api/users_api.rb +119 -0
  31. data/lib/bombbomb/api/utilities_api.rb +23 -44
  32. data/lib/bombbomb/api/videos_api.rb +38 -55
  33. data/lib/bombbomb/api/webhooks_api.rb +23 -50
  34. data/lib/bombbomb/api_client.rb +55 -45
  35. data/lib/bombbomb/api_error.rb +9 -18
  36. data/lib/bombbomb/configuration.rb +8 -13
  37. data/lib/bombbomb/models/bb_web_hook.rb +6 -17
  38. data/lib/bombbomb/models/client_group_asset_meta_data.rb +215 -0
  39. data/lib/bombbomb/models/curriculum.rb +6 -17
  40. data/lib/bombbomb/models/curriculum_user_progress.rb +6 -17
  41. data/lib/bombbomb/models/curriculum_with_progress.rb +6 -17
  42. data/lib/bombbomb/models/hosted_doc.rb +6 -17
  43. data/lib/bombbomb/models/inline_response_200.rb +7 -18
  44. data/lib/bombbomb/models/jericho_configuration.rb +24 -21
  45. data/lib/bombbomb/models/jericho_performance.rb +6 -17
  46. data/lib/bombbomb/models/o_auth_client.rb +6 -17
  47. data/lib/bombbomb/models/prompt_bot.rb +6 -17
  48. data/lib/bombbomb/models/prompt_monthly_performance.rb +219 -0
  49. data/lib/bombbomb/models/prompt_overview.rb +219 -0
  50. data/lib/bombbomb/models/prompt_social_prompt.rb +6 -17
  51. data/lib/bombbomb/models/sign_upload_request.rb +6 -17
  52. data/lib/bombbomb/models/sign_upload_response.rb +6 -17
  53. data/lib/bombbomb/models/string.rb +6 -17
  54. data/lib/bombbomb/models/team_public_representation.rb +6 -17
  55. data/lib/bombbomb/models/video_email_prompt.rb +6 -17
  56. data/lib/bombbomb/models/video_encoding_status_response.rb +6 -17
  57. data/lib/bombbomb/models/video_public_representation.rb +6 -17
  58. data/lib/bombbomb/models/video_recorder_method_response.rb +6 -17
  59. data/lib/bombbomb/version.rb +3 -14
  60. data/spec/api/users_api_spec.rb +57 -0
  61. data/spec/models/{inline_response_200_items_spec.rb → client_group_asset_meta_data_spec.rb} +8 -19
  62. data/spec/models/prompt_monthly_performance_spec.rb +60 -0
  63. data/spec/models/prompt_overview_spec.rb +60 -0
  64. metadata +31 -19
  65. data/spec/models/prompt_bot_bot_spec.rb +0 -113
@@ -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.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
 
@@ -51,23 +40,21 @@ module BombBomb
51
40
  @api_client.config.logger.debug "Calling API: OrdersApi.template_asset_delete ..."
52
41
  end
53
42
  # verify the required parameter 'file_name' is set
54
- fail ArgumentError, "Missing the required parameter 'file_name' when calling OrdersApi.template_asset_delete" if file_name.nil?
43
+ if @api_client.config.client_side_validation && file_name.nil?
44
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling OrdersApi.template_asset_delete"
45
+ end
55
46
  # resource path
56
- local_var_path = "/orders/templates/images".sub('{format}','json')
47
+ local_var_path = "/orders/templates/images"
57
48
 
58
49
  # query parameters
59
50
  query_params = {}
60
51
 
61
52
  # header parameters
62
53
  header_params = {}
63
-
64
54
  # HTTP header 'Accept' (if needed)
65
- local_header_accept = ['application/json']
66
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
-
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
56
  # HTTP header 'Content-Type'
69
- local_header_content_type = ['application/x-www-form-urlencoded']
70
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
71
58
 
72
59
  # form parameters
73
60
  form_params = {}
@@ -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.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
 
@@ -69,35 +58,45 @@ module BombBomb
69
58
  @api_client.config.logger.debug "Calling API: PromptsApi.create_prompt_bot ..."
70
59
  end
71
60
  # verify the required parameter 'email_id' is set
72
- fail ArgumentError, "Missing the required parameter 'email_id' when calling PromptsApi.create_prompt_bot" if email_id.nil?
61
+ if @api_client.config.client_side_validation && email_id.nil?
62
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling PromptsApi.create_prompt_bot"
63
+ end
73
64
  # verify the required parameter 'name' is set
74
- fail ArgumentError, "Missing the required parameter 'name' when calling PromptsApi.create_prompt_bot" if name.nil?
65
+ if @api_client.config.client_side_validation && name.nil?
66
+ fail ArgumentError, "Missing the required parameter 'name' when calling PromptsApi.create_prompt_bot"
67
+ end
75
68
  # verify the required parameter 'subject' is set
76
- fail ArgumentError, "Missing the required parameter 'subject' when calling PromptsApi.create_prompt_bot" if subject.nil?
69
+ if @api_client.config.client_side_validation && subject.nil?
70
+ fail ArgumentError, "Missing the required parameter 'subject' when calling PromptsApi.create_prompt_bot"
71
+ end
77
72
  # verify the required parameter 'content' is set
78
- fail ArgumentError, "Missing the required parameter 'content' when calling PromptsApi.create_prompt_bot" if content.nil?
73
+ if @api_client.config.client_side_validation && content.nil?
74
+ fail ArgumentError, "Missing the required parameter 'content' when calling PromptsApi.create_prompt_bot"
75
+ end
79
76
  # verify the required parameter 'contact_field_value_column' is set
80
- fail ArgumentError, "Missing the required parameter 'contact_field_value_column' when calling PromptsApi.create_prompt_bot" if contact_field_value_column.nil?
77
+ if @api_client.config.client_side_validation && contact_field_value_column.nil?
78
+ fail ArgumentError, "Missing the required parameter 'contact_field_value_column' when calling PromptsApi.create_prompt_bot"
79
+ end
81
80
  # verify the required parameter 'bot_type_id' is set
82
- fail ArgumentError, "Missing the required parameter 'bot_type_id' when calling PromptsApi.create_prompt_bot" if bot_type_id.nil?
81
+ if @api_client.config.client_side_validation && bot_type_id.nil?
82
+ fail ArgumentError, "Missing the required parameter 'bot_type_id' when calling PromptsApi.create_prompt_bot"
83
+ end
83
84
  # verify the required parameter 'template_id' is set
84
- fail ArgumentError, "Missing the required parameter 'template_id' when calling PromptsApi.create_prompt_bot" if template_id.nil?
85
+ if @api_client.config.client_side_validation && template_id.nil?
86
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling PromptsApi.create_prompt_bot"
87
+ end
85
88
  # resource path
86
- local_var_path = "/prompts/bots".sub('{format}','json')
89
+ local_var_path = "/prompts/bots"
87
90
 
88
91
  # query parameters
89
92
  query_params = {}
90
93
 
91
94
  # header parameters
92
95
  header_params = {}
93
-
94
96
  # HTTP header 'Accept' (if needed)
95
- local_header_accept = ['application/json']
96
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
97
-
97
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
98
98
  # HTTP header 'Content-Type'
99
- local_header_content_type = ['application/x-www-form-urlencoded']
100
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
99
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
101
100
 
102
101
  # form parameters
103
102
  form_params = {}
@@ -148,23 +147,21 @@ module BombBomb
148
147
  @api_client.config.logger.debug "Calling API: PromptsApi.create_video_email_prompt ..."
149
148
  end
150
149
  # verify the required parameter 'prompt' is set
151
- fail ArgumentError, "Missing the required parameter 'prompt' when calling PromptsApi.create_video_email_prompt" if prompt.nil?
150
+ if @api_client.config.client_side_validation && prompt.nil?
151
+ fail ArgumentError, "Missing the required parameter 'prompt' when calling PromptsApi.create_video_email_prompt"
152
+ end
152
153
  # resource path
153
- local_var_path = "/prompt".sub('{format}','json')
154
+ local_var_path = "/prompt"
154
155
 
155
156
  # query parameters
156
157
  query_params = {}
157
158
 
158
159
  # header parameters
159
160
  header_params = {}
160
-
161
161
  # HTTP header 'Accept' (if needed)
162
- local_header_accept = ['application/json']
163
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
164
-
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
165
163
  # HTTP header 'Content-Type'
166
- local_header_content_type = ['application/json']
167
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
164
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
168
165
 
169
166
  # form parameters
170
167
  form_params = {}
@@ -205,9 +202,11 @@ module BombBomb
205
202
  @api_client.config.logger.debug "Calling API: PromptsApi.get_alternate_campaign_content ..."
206
203
  end
207
204
  # verify the required parameter 'client_group_id' is set
208
- fail ArgumentError, "Missing the required parameter 'client_group_id' when calling PromptsApi.get_alternate_campaign_content" if client_group_id.nil?
205
+ if @api_client.config.client_side_validation && client_group_id.nil?
206
+ fail ArgumentError, "Missing the required parameter 'client_group_id' when calling PromptsApi.get_alternate_campaign_content"
207
+ end
209
208
  # resource path
210
- local_var_path = "/campaign/{campaignId}/content/alternate".sub('{format}','json')
209
+ local_var_path = "/campaign/{campaignId}/content/alternate"
211
210
 
212
211
  # query parameters
213
212
  query_params = {}
@@ -215,14 +214,10 @@ module BombBomb
215
214
 
216
215
  # header parameters
217
216
  header_params = {}
218
-
219
217
  # HTTP header 'Accept' (if needed)
220
- local_header_accept = ['application/json']
221
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
222
-
218
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
223
219
  # HTTP header 'Content-Type'
224
- local_header_content_type = ['application/x-www-form-urlencoded']
225
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
220
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
226
221
 
227
222
  # form parameters
228
223
  form_params = {}
@@ -260,21 +255,17 @@ module BombBomb
260
255
  @api_client.config.logger.debug "Calling API: PromptsApi.get_pending_video_email_prompts ..."
261
256
  end
262
257
  # resource path
263
- local_var_path = "/prompt/pending".sub('{format}','json')
258
+ local_var_path = "/prompt/pending"
264
259
 
265
260
  # query parameters
266
261
  query_params = {}
267
262
 
268
263
  # header parameters
269
264
  header_params = {}
270
-
271
265
  # HTTP header 'Accept' (if needed)
272
- local_header_accept = ['application/json']
273
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
274
-
266
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
275
267
  # HTTP header 'Content-Type'
276
- local_header_content_type = ['application/x-www-form-urlencoded']
277
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
268
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
278
269
 
279
270
  # form parameters
280
271
  form_params = {}
@@ -313,21 +304,17 @@ module BombBomb
313
304
  @api_client.config.logger.debug "Calling API: PromptsApi.get_prompt_bots ..."
314
305
  end
315
306
  # resource path
316
- local_var_path = "/prompts/bots".sub('{format}','json')
307
+ local_var_path = "/prompts/bots"
317
308
 
318
309
  # query parameters
319
310
  query_params = {}
320
311
 
321
312
  # header parameters
322
313
  header_params = {}
323
-
324
314
  # HTTP header 'Accept' (if needed)
325
- local_header_accept = ['application/json']
326
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
327
-
315
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
328
316
  # HTTP header 'Content-Type'
329
- local_header_content_type = ['application/x-www-form-urlencoded']
330
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
317
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
331
318
 
332
319
  # form parameters
333
320
  form_params = {}
@@ -366,21 +353,17 @@ module BombBomb
366
353
  @api_client.config.logger.debug "Calling API: PromptsApi.get_prompt_campaigns ..."
367
354
  end
368
355
  # resource path
369
- local_var_path = "/prompts/{userId}/campaigns".sub('{format}','json')
356
+ local_var_path = "/prompts/{userId}/campaigns"
370
357
 
371
358
  # query parameters
372
359
  query_params = {}
373
360
 
374
361
  # header parameters
375
362
  header_params = {}
376
-
377
363
  # HTTP header 'Accept' (if needed)
378
- local_header_accept = ['application/json']
379
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
380
-
364
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
381
365
  # HTTP header 'Content-Type'
382
- local_header_content_type = ['application/x-www-form-urlencoded']
383
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
366
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
384
367
 
385
368
  # form parameters
386
369
  form_params = {}
@@ -420,23 +403,21 @@ module BombBomb
420
403
  @api_client.config.logger.debug "Calling API: PromptsApi.get_video_email_prompt ..."
421
404
  end
422
405
  # verify the required parameter 'id' is set
423
- fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.get_video_email_prompt" if id.nil?
406
+ if @api_client.config.client_side_validation && id.nil?
407
+ fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.get_video_email_prompt"
408
+ end
424
409
  # resource path
425
- local_var_path = "/prompt/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
410
+ local_var_path = "/prompt/{id}".sub('{' + 'id' + '}', id.to_s)
426
411
 
427
412
  # query parameters
428
413
  query_params = {}
429
414
 
430
415
  # header parameters
431
416
  header_params = {}
432
-
433
417
  # HTTP header 'Accept' (if needed)
434
- local_header_accept = ['application/json']
435
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
436
-
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
437
419
  # HTTP header 'Content-Type'
438
- local_header_content_type = ['application/x-www-form-urlencoded']
439
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
420
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
440
421
 
441
422
  # form parameters
442
423
  form_params = {}
@@ -475,21 +456,17 @@ module BombBomb
475
456
  @api_client.config.logger.debug "Calling API: PromptsApi.get_video_email_prompts ..."
476
457
  end
477
458
  # resource path
478
- local_var_path = "/prompt/".sub('{format}','json')
459
+ local_var_path = "/prompt/"
479
460
 
480
461
  # query parameters
481
462
  query_params = {}
482
463
 
483
464
  # header parameters
484
465
  header_params = {}
485
-
486
466
  # HTTP header 'Accept' (if needed)
487
- local_header_accept = ['application/json']
488
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
489
-
467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
490
468
  # HTTP header 'Content-Type'
491
- local_header_content_type = ['application/x-www-form-urlencoded']
492
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
469
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
493
470
 
494
471
  # form parameters
495
472
  form_params = {}
@@ -538,29 +515,29 @@ module BombBomb
538
515
  @api_client.config.logger.debug "Calling API: PromptsApi.respond_to_video_email_prompt ..."
539
516
  end
540
517
  # verify the required parameter 'id' is set
541
- fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.respond_to_video_email_prompt" if id.nil?
518
+ if @api_client.config.client_side_validation && id.nil?
519
+ fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.respond_to_video_email_prompt"
520
+ end
542
521
  # verify the required parameter 'choice' is set
543
- fail ArgumentError, "Missing the required parameter 'choice' when calling PromptsApi.respond_to_video_email_prompt" if choice.nil?
522
+ if @api_client.config.client_side_validation && choice.nil?
523
+ fail ArgumentError, "Missing the required parameter 'choice' when calling PromptsApi.respond_to_video_email_prompt"
524
+ end
544
525
  # verify enum value
545
- unless ['WithVideo', 'WithEmail', 'Cancel', 'Restore', 'Reset', 'Manual'].include?(choice)
526
+ if @api_client.config.client_side_validation && !['WithVideo', 'WithEmail', 'Cancel', 'Restore', 'Reset', 'Manual'].include?(choice)
546
527
  fail ArgumentError, "invalid value for 'choice', must be one of WithVideo, WithEmail, Cancel, Restore, Reset, Manual"
547
528
  end
548
529
  # resource path
549
- local_var_path = "/prompt/{id}/response".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
530
+ local_var_path = "/prompt/{id}/response".sub('{' + 'id' + '}', id.to_s)
550
531
 
551
532
  # query parameters
552
533
  query_params = {}
553
534
 
554
535
  # header parameters
555
536
  header_params = {}
556
-
557
537
  # HTTP header 'Accept' (if needed)
558
- local_header_accept = ['application/json']
559
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
560
-
538
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
561
539
  # HTTP header 'Content-Type'
562
- local_header_content_type = ['application/x-www-form-urlencoded']
563
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
540
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
564
541
 
565
542
  # form parameters
566
543
  form_params = {}
@@ -585,6 +562,60 @@ module BombBomb
585
562
  return data, status_code, headers
586
563
  end
587
564
 
565
+ #
566
+ # Ignore send date and send the prompt now.
567
+ # @param id The Id of the prompt
568
+ # @param [Hash] opts the optional parameters
569
+ # @return [nil]
570
+ def send_prompt_immediately(id, opts = {})
571
+ send_prompt_immediately_with_http_info(id, opts)
572
+ return nil
573
+ end
574
+
575
+ #
576
+ # Ignore send date and send the prompt now.
577
+ # @param id The Id of the prompt
578
+ # @param [Hash] opts the optional parameters
579
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
580
+ def send_prompt_immediately_with_http_info(id, opts = {})
581
+ if @api_client.config.debugging
582
+ @api_client.config.logger.debug "Calling API: PromptsApi.send_prompt_immediately ..."
583
+ end
584
+ # verify the required parameter 'id' is set
585
+ if @api_client.config.client_side_validation && id.nil?
586
+ fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.send_prompt_immediately"
587
+ end
588
+ # resource path
589
+ local_var_path = "/prompt/{id}/sendit".sub('{' + 'id' + '}', id.to_s)
590
+
591
+ # query parameters
592
+ query_params = {}
593
+
594
+ # header parameters
595
+ header_params = {}
596
+ # HTTP header 'Accept' (if needed)
597
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
598
+ # HTTP header 'Content-Type'
599
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
600
+
601
+ # form parameters
602
+ form_params = {}
603
+
604
+ # http body (model)
605
+ post_body = nil
606
+ auth_names = ['BBOAuth2']
607
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
608
+ :header_params => header_params,
609
+ :query_params => query_params,
610
+ :form_params => form_params,
611
+ :body => post_body,
612
+ :auth_names => auth_names)
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug "API called: PromptsApi#send_prompt_immediately\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
615
+ end
616
+ return data, status_code, headers
617
+ end
618
+
588
619
  # Syncs Campaigns and One to Ones Subscriptions for User
589
620
  # Syncs Campaigns and One to Ones Subscriptions for User based on their profile information. The user must be a Prompt Subscriber.
590
621
  # @param [Hash] opts the optional parameters
@@ -605,21 +636,17 @@ module BombBomb
605
636
  @api_client.config.logger.debug "Calling API: PromptsApi.sync_prompt_subscriptions ..."
606
637
  end
607
638
  # resource path
608
- local_var_path = "/prompts/campaigns/sync".sub('{format}','json')
639
+ local_var_path = "/prompts/campaigns/sync"
609
640
 
610
641
  # query parameters
611
642
  query_params = {}
612
643
 
613
644
  # header parameters
614
645
  header_params = {}
615
-
616
646
  # HTTP header 'Accept' (if needed)
617
- local_header_accept = ['application/json']
618
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
619
-
647
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
620
648
  # HTTP header 'Content-Type'
621
- local_header_content_type = ['application/x-www-form-urlencoded']
622
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
649
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
623
650
 
624
651
  # form parameters
625
652
  form_params = {}
@@ -678,23 +705,21 @@ module BombBomb
678
705
  @api_client.config.logger.debug "Calling API: PromptsApi.update_prompt ..."
679
706
  end
680
707
  # verify the required parameter 'id' is set
681
- fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt" if id.nil?
708
+ if @api_client.config.client_side_validation && id.nil?
709
+ fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt"
710
+ end
682
711
  # resource path
683
- local_var_path = "/prompts/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
712
+ local_var_path = "/prompts/{id}".sub('{' + 'id' + '}', id.to_s)
684
713
 
685
714
  # query parameters
686
715
  query_params = {}
687
716
 
688
717
  # header parameters
689
718
  header_params = {}
690
-
691
719
  # HTTP header 'Accept' (if needed)
692
- local_header_accept = ['application/json']
693
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
694
-
720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
695
721
  # HTTP header 'Content-Type'
696
- local_header_content_type = ['application/x-www-form-urlencoded']
697
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
722
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
698
723
 
699
724
  # form parameters
700
725
  form_params = {}
@@ -763,35 +788,45 @@ module BombBomb
763
788
  @api_client.config.logger.debug "Calling API: PromptsApi.update_prompt_bot ..."
764
789
  end
765
790
  # verify the required parameter 'id' is set
766
- fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt_bot" if id.nil?
791
+ if @api_client.config.client_side_validation && id.nil?
792
+ fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt_bot"
793
+ end
767
794
  # verify the required parameter 'email_id' is set
768
- fail ArgumentError, "Missing the required parameter 'email_id' when calling PromptsApi.update_prompt_bot" if email_id.nil?
795
+ if @api_client.config.client_side_validation && email_id.nil?
796
+ fail ArgumentError, "Missing the required parameter 'email_id' when calling PromptsApi.update_prompt_bot"
797
+ end
769
798
  # verify the required parameter 'name' is set
770
- fail ArgumentError, "Missing the required parameter 'name' when calling PromptsApi.update_prompt_bot" if name.nil?
799
+ if @api_client.config.client_side_validation && name.nil?
800
+ fail ArgumentError, "Missing the required parameter 'name' when calling PromptsApi.update_prompt_bot"
801
+ end
771
802
  # verify the required parameter 'subject' is set
772
- fail ArgumentError, "Missing the required parameter 'subject' when calling PromptsApi.update_prompt_bot" if subject.nil?
803
+ if @api_client.config.client_side_validation && subject.nil?
804
+ fail ArgumentError, "Missing the required parameter 'subject' when calling PromptsApi.update_prompt_bot"
805
+ end
773
806
  # verify the required parameter 'content' is set
774
- fail ArgumentError, "Missing the required parameter 'content' when calling PromptsApi.update_prompt_bot" if content.nil?
807
+ if @api_client.config.client_side_validation && content.nil?
808
+ fail ArgumentError, "Missing the required parameter 'content' when calling PromptsApi.update_prompt_bot"
809
+ end
775
810
  # verify the required parameter 'contact_field_value_column' is set
776
- fail ArgumentError, "Missing the required parameter 'contact_field_value_column' when calling PromptsApi.update_prompt_bot" if contact_field_value_column.nil?
811
+ if @api_client.config.client_side_validation && contact_field_value_column.nil?
812
+ fail ArgumentError, "Missing the required parameter 'contact_field_value_column' when calling PromptsApi.update_prompt_bot"
813
+ end
777
814
  # verify the required parameter 'template_id' is set
778
- fail ArgumentError, "Missing the required parameter 'template_id' when calling PromptsApi.update_prompt_bot" if template_id.nil?
815
+ if @api_client.config.client_side_validation && template_id.nil?
816
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling PromptsApi.update_prompt_bot"
817
+ end
779
818
  # resource path
780
- local_var_path = "/prompts/bots/{id}".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
819
+ local_var_path = "/prompts/bots/{id}".sub('{' + 'id' + '}', id.to_s)
781
820
 
782
821
  # query parameters
783
822
  query_params = {}
784
823
 
785
824
  # header parameters
786
825
  header_params = {}
787
-
788
826
  # HTTP header 'Accept' (if needed)
789
- local_header_accept = ['application/json']
790
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
791
-
827
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
792
828
  # HTTP header 'Content-Type'
793
- local_header_content_type = ['application/x-www-form-urlencoded']
794
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
829
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
795
830
 
796
831
  # form parameters
797
832
  form_params = {}
@@ -850,27 +885,24 @@ module BombBomb
850
885
  @api_client.config.logger.debug "Calling API: PromptsApi.update_prompt_campaign ..."
851
886
  end
852
887
  # verify the required parameter 'client_group_id' is set
853
- fail ArgumentError, "Missing the required parameter 'client_group_id' when calling PromptsApi.update_prompt_campaign" if client_group_id.nil?
888
+ if @api_client.config.client_side_validation && client_group_id.nil?
889
+ fail ArgumentError, "Missing the required parameter 'client_group_id' when calling PromptsApi.update_prompt_campaign"
890
+ end
854
891
  # resource path
855
- local_var_path = "/prompts/campaigns/{id}".sub('{format}','json')
892
+ local_var_path = "/prompts/campaigns/{clientGroupId}".sub('{' + 'clientGroupId' + '}', client_group_id.to_s)
856
893
 
857
894
  # query parameters
858
895
  query_params = {}
859
896
 
860
897
  # header parameters
861
898
  header_params = {}
862
-
863
899
  # HTTP header 'Accept' (if needed)
864
- local_header_accept = ['application/json']
865
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
866
-
900
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
867
901
  # HTTP header 'Content-Type'
868
- local_header_content_type = ['application/x-www-form-urlencoded']
869
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
902
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
870
903
 
871
904
  # form parameters
872
905
  form_params = {}
873
- form_params["clientGroupId"] = client_group_id
874
906
  form_params["brandedTemplateId"] = opts[:'branded_template_id'] if !opts[:'branded_template_id'].nil?
875
907
  form_params["personalTemplateId"] = opts[:'personal_template_id'] if !opts[:'personal_template_id'].nil?
876
908
  form_params["enabled"] = opts[:'enabled'] if !opts[:'enabled'].nil?
@@ -919,31 +951,37 @@ module BombBomb
919
951
  @api_client.config.logger.debug "Calling API: PromptsApi.update_prompt_template ..."
920
952
  end
921
953
  # verify the required parameter 'id' is set
922
- fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt_template" if id.nil?
954
+ if @api_client.config.client_side_validation && id.nil?
955
+ fail ArgumentError, "Missing the required parameter 'id' when calling PromptsApi.update_prompt_template"
956
+ end
923
957
  # verify the required parameter 'alternate_content_id' is set
924
- fail ArgumentError, "Missing the required parameter 'alternate_content_id' when calling PromptsApi.update_prompt_template" if alternate_content_id.nil?
958
+ if @api_client.config.client_side_validation && alternate_content_id.nil?
959
+ fail ArgumentError, "Missing the required parameter 'alternate_content_id' when calling PromptsApi.update_prompt_template"
960
+ end
925
961
  # verify the required parameter 'new_email_id' is set
926
- fail ArgumentError, "Missing the required parameter 'new_email_id' when calling PromptsApi.update_prompt_template" if new_email_id.nil?
962
+ if @api_client.config.client_side_validation && new_email_id.nil?
963
+ fail ArgumentError, "Missing the required parameter 'new_email_id' when calling PromptsApi.update_prompt_template"
964
+ end
927
965
  # verify the required parameter 'og_email_id' is set
928
- fail ArgumentError, "Missing the required parameter 'og_email_id' when calling PromptsApi.update_prompt_template" if og_email_id.nil?
966
+ if @api_client.config.client_side_validation && og_email_id.nil?
967
+ fail ArgumentError, "Missing the required parameter 'og_email_id' when calling PromptsApi.update_prompt_template"
968
+ end
929
969
  # verify the required parameter 'new_example_video_id' is set
930
- fail ArgumentError, "Missing the required parameter 'new_example_video_id' when calling PromptsApi.update_prompt_template" if new_example_video_id.nil?
970
+ if @api_client.config.client_side_validation && new_example_video_id.nil?
971
+ fail ArgumentError, "Missing the required parameter 'new_example_video_id' when calling PromptsApi.update_prompt_template"
972
+ end
931
973
  # resource path
932
- local_var_path = "/prompts/{id}/content".sub('{format}','json').sub('{' + 'id' + '}', id.to_s)
974
+ local_var_path = "/prompts/{id}/content".sub('{' + 'id' + '}', id.to_s)
933
975
 
934
976
  # query parameters
935
977
  query_params = {}
936
978
 
937
979
  # header parameters
938
980
  header_params = {}
939
-
940
981
  # HTTP header 'Accept' (if needed)
941
- local_header_accept = ['application/json']
942
- local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
943
-
982
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
944
983
  # HTTP header 'Content-Type'
945
- local_header_content_type = ['application/x-www-form-urlencoded']
946
- header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
984
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
947
985
 
948
986
  # form parameters
949
987
  form_params = {}