bombbomb 2.0.22196 → 2.0.24005

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 (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +41 -21
  3. data/bombbomb.gemspec +1 -1
  4. data/docs/AccountsApi.md +192 -0
  5. data/docs/ContactsApi.md +60 -0
  6. data/docs/EmailsApi.md +5 -6
  7. data/docs/FilesApi.md +60 -0
  8. data/docs/JerichoPerformance.md +4 -0
  9. data/docs/ListsApi.md +167 -0
  10. data/docs/OrdersApi.md +60 -0
  11. data/docs/PromptBot.md +22 -0
  12. data/docs/PromptsApi.md +55 -21
  13. data/docs/SocialsApi.md +387 -0
  14. data/docs/TeamsApi.md +165 -0
  15. data/docs/VideoEmailPrompt.md +2 -1
  16. data/docs/VideoEncodingStatusResponse.md +10 -0
  17. data/docs/VideosApi.md +53 -0
  18. data/lib/bombbomb.rb +9 -2
  19. data/lib/bombbomb/api/accounts_api.rb +254 -0
  20. data/lib/bombbomb/api/automations_api.rb +1 -1
  21. data/lib/bombbomb/api/contacts_api.rb +91 -0
  22. data/lib/bombbomb/api/curriculum_api.rb +1 -1
  23. data/lib/bombbomb/api/emails_api.rb +9 -11
  24. data/lib/bombbomb/api/files_api.rb +91 -0
  25. data/lib/bombbomb/api/lists_api.rb +207 -0
  26. data/lib/bombbomb/api/orders_api.rb +91 -0
  27. data/lib/bombbomb/api/prompts_api.rb +92 -40
  28. data/lib/bombbomb/api/socials_api.rb +458 -0
  29. data/lib/bombbomb/api/teams_api.rb +184 -1
  30. data/lib/bombbomb/api/utilities_api.rb +1 -1
  31. data/lib/bombbomb/api/videos_api.rb +58 -1
  32. data/lib/bombbomb/api/webhooks_api.rb +1 -1
  33. data/lib/bombbomb/api_client.rb +1 -1
  34. data/lib/bombbomb/api_error.rb +1 -1
  35. data/lib/bombbomb/configuration.rb +1 -1
  36. data/lib/bombbomb/models/bb_web_hook.rb +1 -1
  37. data/lib/bombbomb/models/curriculum.rb +1 -1
  38. data/lib/bombbomb/models/curriculum_user_progress.rb +1 -1
  39. data/lib/bombbomb/models/curriculum_with_progress.rb +1 -1
  40. data/lib/bombbomb/models/inline_response_200.rb +1 -1
  41. data/lib/bombbomb/models/inline_response_200_items.rb +1 -1
  42. data/lib/bombbomb/models/jericho_configuration.rb +1 -1
  43. data/lib/bombbomb/models/jericho_performance.rb +45 -5
  44. data/lib/bombbomb/models/o_auth_client.rb +1 -1
  45. data/lib/bombbomb/models/prompt_bot.rb +340 -0
  46. data/lib/bombbomb/models/sign_upload_request.rb +1 -1
  47. data/lib/bombbomb/models/sign_upload_response.rb +1 -1
  48. data/lib/bombbomb/models/string.rb +1 -1
  49. data/lib/bombbomb/models/team_public_representation.rb +1 -1
  50. data/lib/bombbomb/models/video_email_prompt.rb +19 -11
  51. data/lib/bombbomb/models/video_encoding_status_response.rb +220 -0
  52. data/lib/bombbomb/models/video_public_representation.rb +1 -1
  53. data/lib/bombbomb/models/video_recorder_method_response.rb +1 -1
  54. data/lib/bombbomb/version.rb +2 -2
  55. data/spec/api/accounts_api_spec.rb +96 -0
  56. data/spec/api/contacts_api_spec.rb +58 -0
  57. data/spec/api/files_api_spec.rb +58 -0
  58. data/spec/api/lists_api_spec.rb +83 -0
  59. data/spec/api/orders_api_spec.rb +58 -0
  60. data/spec/api/socials_api_spec.rb +135 -0
  61. data/spec/models/prompt_bot_spec.rb +137 -0
  62. data/spec/models/video_encoding_status_response_spec.rb +65 -0
  63. metadata +34 -2
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -277,6 +277,63 @@ module BombBomb
277
277
  return data, status_code, headers
278
278
  end
279
279
 
280
+ # Lists team associations
281
+ # Returns a collection of team associations for a given user
282
+ # @param client_id The clientId requesting group associations.
283
+ # @param [Hash] opts the optional parameters
284
+ # @return [nil]
285
+ def get_all_client_group_associations(client_id, opts = {})
286
+ get_all_client_group_associations_with_http_info(client_id, opts)
287
+ return nil
288
+ end
289
+
290
+ # Lists team associations
291
+ # Returns a collection of team associations for a given user
292
+ # @param client_id The clientId requesting group associations.
293
+ # @param [Hash] opts the optional parameters
294
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
295
+ def get_all_client_group_associations_with_http_info(client_id, opts = {})
296
+ if @api_client.config.debugging
297
+ @api_client.config.logger.debug "Calling API: TeamsApi.get_all_client_group_associations ..."
298
+ end
299
+ # verify the required parameter 'client_id' is set
300
+ fail ArgumentError, "Missing the required parameter 'client_id' when calling TeamsApi.get_all_client_group_associations" if client_id.nil?
301
+ # resource path
302
+ local_var_path = "/team/associations/".sub('{format}','json')
303
+
304
+ # query parameters
305
+ query_params = {}
306
+ query_params[:'clientId'] = client_id
307
+
308
+ # header parameters
309
+ header_params = {}
310
+
311
+ # HTTP header 'Accept' (if needed)
312
+ local_header_accept = ['application/json']
313
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
314
+
315
+ # HTTP header 'Content-Type'
316
+ local_header_content_type = ['application/x-www-form-urlencoded']
317
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
318
+
319
+ # form parameters
320
+ form_params = {}
321
+
322
+ # http body (model)
323
+ post_body = nil
324
+ auth_names = ['BBOAuth2']
325
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
326
+ :header_params => header_params,
327
+ :query_params => query_params,
328
+ :form_params => form_params,
329
+ :body => post_body,
330
+ :auth_names => auth_names)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: TeamsApi#get_all_client_group_associations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
280
337
  # Lists team assets
281
338
  # Returns a collection of assets
282
339
  # @param asset_type The type of assets.
@@ -651,6 +708,66 @@ module BombBomb
651
708
  return data, status_code, headers
652
709
  end
653
710
 
711
+ # Updates the Jericho Prompt Settings
712
+ # Updates the prompt settings based on the original email id
713
+ # @param team_id The team id
714
+ # @param jericho_id ID of the Jericho job
715
+ # @param [Hash] opts the optional parameters
716
+ # @return [nil]
717
+ def update_jericho_prompt_send(team_id, jericho_id, opts = {})
718
+ update_jericho_prompt_send_with_http_info(team_id, jericho_id, opts)
719
+ return nil
720
+ end
721
+
722
+ # Updates the Jericho Prompt Settings
723
+ # Updates the prompt settings based on the original email id
724
+ # @param team_id The team id
725
+ # @param jericho_id ID of the Jericho job
726
+ # @param [Hash] opts the optional parameters
727
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
728
+ def update_jericho_prompt_send_with_http_info(team_id, jericho_id, opts = {})
729
+ if @api_client.config.debugging
730
+ @api_client.config.logger.debug "Calling API: TeamsApi.update_jericho_prompt_send ..."
731
+ end
732
+ # verify the required parameter 'team_id' is set
733
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_jericho_prompt_send" if team_id.nil?
734
+ # verify the required parameter 'jericho_id' is set
735
+ fail ArgumentError, "Missing the required parameter 'jericho_id' when calling TeamsApi.update_jericho_prompt_send" if jericho_id.nil?
736
+ # resource path
737
+ local_var_path = "/team/{teamId}/jericho/{jerichoId}".sub('{format}','json').sub('{' + 'teamId' + '}', team_id.to_s).sub('{' + 'jerichoId' + '}', jericho_id.to_s)
738
+
739
+ # query parameters
740
+ query_params = {}
741
+
742
+ # header parameters
743
+ header_params = {}
744
+
745
+ # HTTP header 'Accept' (if needed)
746
+ local_header_accept = ['application/json']
747
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
748
+
749
+ # HTTP header 'Content-Type'
750
+ local_header_content_type = ['application/x-www-form-urlencoded']
751
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
752
+
753
+ # form parameters
754
+ form_params = {}
755
+
756
+ # http body (model)
757
+ post_body = nil
758
+ auth_names = ['BBOAuth2']
759
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
760
+ :header_params => header_params,
761
+ :query_params => query_params,
762
+ :form_params => form_params,
763
+ :body => post_body,
764
+ :auth_names => auth_names)
765
+ if @api_client.config.debugging
766
+ @api_client.config.logger.debug "API called: TeamsApi#update_jericho_prompt_send\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
767
+ end
768
+ return data, status_code, headers
769
+ end
770
+
654
771
  # Update a team
655
772
  # Update fields on a team
656
773
  # @param team_id The team id
@@ -710,5 +827,71 @@ module BombBomb
710
827
  end
711
828
  return data, status_code, headers
712
829
  end
830
+
831
+ # Update Member of Team
832
+ # Updates a member of a team
833
+ # @param team_id The team id
834
+ # @param user_id The user id of the member being added to the team.
835
+ # @param admin Set if the user is an admin of this team.
836
+ # @param [Hash] opts the optional parameters
837
+ # @return [nil]
838
+ def update_team_member(team_id, user_id, admin, opts = {})
839
+ update_team_member_with_http_info(team_id, user_id, admin, opts)
840
+ return nil
841
+ end
842
+
843
+ # Update Member of Team
844
+ # Updates a member of a team
845
+ # @param team_id The team id
846
+ # @param user_id The user id of the member being added to the team.
847
+ # @param admin Set if the user is an admin of this team.
848
+ # @param [Hash] opts the optional parameters
849
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
850
+ def update_team_member_with_http_info(team_id, user_id, admin, opts = {})
851
+ if @api_client.config.debugging
852
+ @api_client.config.logger.debug "Calling API: TeamsApi.update_team_member ..."
853
+ end
854
+ # verify the required parameter 'team_id' is set
855
+ fail ArgumentError, "Missing the required parameter 'team_id' when calling TeamsApi.update_team_member" if team_id.nil?
856
+ # verify the required parameter 'user_id' is set
857
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling TeamsApi.update_team_member" if user_id.nil?
858
+ # verify the required parameter 'admin' is set
859
+ fail ArgumentError, "Missing the required parameter 'admin' when calling TeamsApi.update_team_member" if admin.nil?
860
+ # resource path
861
+ local_var_path = "/team/{teamId}/member".sub('{format}','json').sub('{' + 'teamId' + '}', team_id.to_s)
862
+
863
+ # query parameters
864
+ query_params = {}
865
+
866
+ # header parameters
867
+ header_params = {}
868
+
869
+ # HTTP header 'Accept' (if needed)
870
+ local_header_accept = ['application/json']
871
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
872
+
873
+ # HTTP header 'Content-Type'
874
+ local_header_content_type = ['application/x-www-form-urlencoded']
875
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
876
+
877
+ # form parameters
878
+ form_params = {}
879
+ form_params["userId"] = user_id
880
+ form_params["admin"] = admin
881
+
882
+ # http body (model)
883
+ post_body = nil
884
+ auth_names = ['BBOAuth2']
885
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
886
+ :header_params => header_params,
887
+ :query_params => query_params,
888
+ :form_params => form_params,
889
+ :body => post_body,
890
+ :auth_names => auth_names)
891
+ if @api_client.config.debugging
892
+ @api_client.config.logger.debug "API called: TeamsApi#update_team_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
893
+ end
894
+ return data, status_code, headers
895
+ end
713
896
  end
714
897
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -31,6 +31,63 @@ module BombBomb
31
31
  @api_client = api_client
32
32
  end
33
33
 
34
+ # Video Encoding Status
35
+ # Get information about the current state of encoding for a given video id.
36
+ # @param video_id The video&#39;s id.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [VideoEncodingStatusResponse]
39
+ def get_video_encoding_status(video_id, opts = {})
40
+ data, _status_code, _headers = get_video_encoding_status_with_http_info(video_id, opts)
41
+ return data
42
+ end
43
+
44
+ # Video Encoding Status
45
+ # Get information about the current state of encoding for a given video id.
46
+ # @param video_id The video&#39;s id.
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [Array<(VideoEncodingStatusResponse, Fixnum, Hash)>] VideoEncodingStatusResponse data, response status code and response headers
49
+ def get_video_encoding_status_with_http_info(video_id, opts = {})
50
+ if @api_client.config.debugging
51
+ @api_client.config.logger.debug "Calling API: VideosApi.get_video_encoding_status ..."
52
+ end
53
+ # verify the required parameter 'video_id' is set
54
+ fail ArgumentError, "Missing the required parameter 'video_id' when calling VideosApi.get_video_encoding_status" if video_id.nil?
55
+ # resource path
56
+ local_var_path = "/videos/{videoId}/status".sub('{format}','json').sub('{' + 'videoId' + '}', video_id.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # 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
+
68
+ # 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)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+ auth_names = ['BBOAuth2']
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
79
+ :header_params => header_params,
80
+ :query_params => query_params,
81
+ :form_params => form_params,
82
+ :body => post_body,
83
+ :auth_names => auth_names,
84
+ :return_type => 'VideoEncodingStatusResponse')
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: VideosApi#get_video_encoding_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
34
91
  # Get Live Video Recorder HTML
35
92
  # Returns an object with a number of properties to help you put a video recorder on your site. This is to be used in conjunction with the VideoRecordedLive call one the user has confirmed in your UI that the video is how they want it.
36
93
  # @param [Hash] opts the optional parameters
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #We make it easy to build relationships using simple videos.
5
5
 
6
- OpenAPI spec version: 2.0.22196
6
+ OpenAPI spec version: 2.0.24005
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
 
@@ -26,6 +26,9 @@ require 'date'
26
26
  module BombBomb
27
27
  # Reports on the aggregate performance of a Jericho send
28
28
  class JerichoPerformance
29
+ # The jericho id
30
+ attr_accessor :jericho_id
31
+
29
32
  # The number of emails sent
30
33
  attr_accessor :sent
31
34
 
@@ -59,10 +62,20 @@ module BombBomb
59
62
  # The total number of contacts submitted to be sent, may be more than was sent to
60
63
  attr_accessor :contacts
61
64
 
65
+ # The total number of prompts sent to members of the client group
66
+ attr_accessor :prompts_sent
67
+
68
+ # The total number of prompts sent that included a personal recording
69
+ attr_accessor :prompts_with_recordings
70
+
71
+ # The total number of members that chose not to send a prompt
72
+ attr_accessor :prompts_opted_out
73
+
62
74
 
63
75
  # Attribute mapping from ruby-style variable name to JSON key.
64
76
  def self.attribute_map
65
77
  {
78
+ :'jericho_id' => :'jerichoId',
66
79
  :'sent' => :'sent',
67
80
  :'unique_views' => :'uniqueViews',
68
81
  :'unique_landing_page_views' => :'uniqueLandingPageViews',
@@ -73,13 +86,17 @@ module BombBomb
73
86
  :'click' => :'click',
74
87
  :'video_play' => :'videoPlay',
75
88
  :'abuse_complaints' => :'abuseComplaints',
76
- :'contacts' => :'contacts'
89
+ :'contacts' => :'contacts',
90
+ :'prompts_sent' => :'promptsSent',
91
+ :'prompts_with_recordings' => :'promptsWithRecordings',
92
+ :'prompts_opted_out' => :'promptsOptedOut'
77
93
  }
78
94
  end
79
95
 
80
96
  # Attribute type mapping.
81
97
  def self.swagger_types
82
98
  {
99
+ :'jericho_id' => :'Integer',
83
100
  :'sent' => :'Integer',
84
101
  :'unique_views' => :'Integer',
85
102
  :'unique_landing_page_views' => :'Integer',
@@ -90,7 +107,10 @@ module BombBomb
90
107
  :'click' => :'Integer',
91
108
  :'video_play' => :'Integer',
92
109
  :'abuse_complaints' => :'Integer',
93
- :'contacts' => :'Integer'
110
+ :'contacts' => :'Integer',
111
+ :'prompts_sent' => :'Integer',
112
+ :'prompts_with_recordings' => :'Integer',
113
+ :'prompts_opted_out' => :'Integer'
94
114
  }
95
115
  end
96
116
 
@@ -102,6 +122,10 @@ module BombBomb
102
122
  # convert string to symbol for hash key
103
123
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
104
124
 
125
+ if attributes.has_key?(:'jerichoId')
126
+ self.jericho_id = attributes[:'jerichoId']
127
+ end
128
+
105
129
  if attributes.has_key?(:'sent')
106
130
  self.sent = attributes[:'sent']
107
131
  end
@@ -146,6 +170,18 @@ module BombBomb
146
170
  self.contacts = attributes[:'contacts']
147
171
  end
148
172
 
173
+ if attributes.has_key?(:'promptsSent')
174
+ self.prompts_sent = attributes[:'promptsSent']
175
+ end
176
+
177
+ if attributes.has_key?(:'promptsWithRecordings')
178
+ self.prompts_with_recordings = attributes[:'promptsWithRecordings']
179
+ end
180
+
181
+ if attributes.has_key?(:'promptsOptedOut')
182
+ self.prompts_opted_out = attributes[:'promptsOptedOut']
183
+ end
184
+
149
185
  end
150
186
 
151
187
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,6 +202,7 @@ module BombBomb
166
202
  def ==(o)
167
203
  return true if self.equal?(o)
168
204
  self.class == o.class &&
205
+ jericho_id == o.jericho_id &&
169
206
  sent == o.sent &&
170
207
  unique_views == o.unique_views &&
171
208
  unique_landing_page_views == o.unique_landing_page_views &&
@@ -176,7 +213,10 @@ module BombBomb
176
213
  click == o.click &&
177
214
  video_play == o.video_play &&
178
215
  abuse_complaints == o.abuse_complaints &&
179
- contacts == o.contacts
216
+ contacts == o.contacts &&
217
+ prompts_sent == o.prompts_sent &&
218
+ prompts_with_recordings == o.prompts_with_recordings &&
219
+ prompts_opted_out == o.prompts_opted_out
180
220
  end
181
221
 
182
222
  # @see the `==` method
@@ -188,7 +228,7 @@ module BombBomb
188
228
  # Calculates hash code according to all attributes.
189
229
  # @return [Fixnum] Hash code
190
230
  def hash
191
- [sent, unique_views, unique_landing_page_views, landing_page_views, delivered, bounce, open, click, video_play, abuse_complaints, contacts].hash
231
+ [jericho_id, sent, unique_views, unique_landing_page_views, landing_page_views, delivered, bounce, open, click, video_play, abuse_complaints, contacts, prompts_sent, prompts_with_recordings, prompts_opted_out].hash
192
232
  end
193
233
 
194
234
  # Builds the object from hash