purecloudplatformclientv2 37.0.0 → 38.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (322) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ActionEntityListing.md +1 -1
  4. data/docs/AgentActivityEntityListing.md +1 -1
  5. data/docs/AnalyticsConversation.md +1 -0
  6. data/docs/AnalyticsSurvey.md +22 -0
  7. data/docs/AttemptLimitsEntityListing.md +1 -1
  8. data/docs/AttributeEntityListing.md +1 -1
  9. data/docs/CalibrationEntityListing.md +1 -1
  10. data/docs/CallConversationEntityListing.md +1 -1
  11. data/docs/CallHistoryConversationEntityListing.md +1 -1
  12. data/docs/CallableTimeSetEntityListing.md +1 -1
  13. data/docs/CallbackConversationEntityListing.md +1 -1
  14. data/docs/CampaignDivisionViewListing.md +1 -1
  15. data/docs/CampaignEntityListing.md +1 -1
  16. data/docs/CampaignRuleEntityListing.md +1 -1
  17. data/docs/CampaignSequenceEntityListing.md +1 -1
  18. data/docs/CertificateAuthorityEntityListing.md +1 -1
  19. data/docs/ChatConversationEntityListing.md +1 -1
  20. data/docs/ClientAppEntityListing.md +1 -1
  21. data/docs/CobrowseConversationEntityListing.md +1 -1
  22. data/docs/CommandStatusEntityListing.md +1 -1
  23. data/docs/ConsumedResourcesEntityListing.md +1 -1
  24. data/docs/ConsumingResourcesEntityListing.md +1 -1
  25. data/docs/ContactListEntityListing.md +1 -1
  26. data/docs/ContactListFilterEntityListing.md +1 -1
  27. data/docs/ContactListing.md +1 -1
  28. data/docs/ConversationEntityListing.md +1 -1
  29. data/docs/CredentialInfoListing.md +1 -1
  30. data/docs/CredentialTypeListing.md +1 -1
  31. data/docs/DIDEntityListing.md +1 -1
  32. data/docs/DIDPoolEntityListing.md +1 -1
  33. data/docs/DataTableRowEntityListing.md +1 -1
  34. data/docs/DataTablesDomainEntityListing.md +1 -1
  35. data/docs/DependencyObjectEntityListing.md +1 -1
  36. data/docs/DependencyTypeEntityListing.md +1 -1
  37. data/docs/DialerEventEntityListing.md +1 -1
  38. data/docs/DirectoryUserDevicesListing.md +1 -1
  39. data/docs/DncListEntityListing.md +1 -1
  40. data/docs/DocumentAuditEntityListing.md +1 -1
  41. data/docs/DocumentEntityListing.md +1 -1
  42. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +1 -1
  43. data/docs/DomainEntityListing.md +1 -1
  44. data/docs/DomainEntityListingEvaluationForm.md +1 -1
  45. data/docs/DomainEntityListingQueryResult.md +1 -1
  46. data/docs/DomainEntityListingSurveyForm.md +1 -1
  47. data/docs/EdgeEntityListing.md +1 -1
  48. data/docs/EdgeGroupEntityListing.md +1 -1
  49. data/docs/EdgeLineEntityListing.md +1 -1
  50. data/docs/EmailConversationEntityListing.md +1 -1
  51. data/docs/EmailMessageListing.md +1 -1
  52. data/docs/EmergencyGroupListing.md +1 -1
  53. data/docs/EncryptionKeyEntityListing.md +1 -1
  54. data/docs/EndpointEntityListing.md +1 -1
  55. data/docs/EvaluationEntityListing.md +1 -1
  56. data/docs/EvaluationFormEntityListing.md +1 -1
  57. data/docs/EvaluatorActivityEntityListing.md +1 -1
  58. data/docs/ExtensionEntityListing.md +1 -1
  59. data/docs/ExtensionPoolEntityListing.md +1 -1
  60. data/docs/ExternalOrganizationListing.md +1 -1
  61. data/docs/FaxDocumentEntityListing.md +1 -1
  62. data/docs/FlowDivisionViewEntityListing.md +1 -1
  63. data/docs/FlowEntityListing.md +1 -1
  64. data/docs/FlowVersionEntityListing.md +1 -1
  65. data/docs/GDPRRequestEntityListing.md +1 -1
  66. data/docs/GDPRSubjectEntityListing.md +1 -1
  67. data/docs/GreetingListing.md +1 -1
  68. data/docs/GroupEntityListing.md +1 -1
  69. data/docs/GroupProfileEntityListing.md +1 -1
  70. data/docs/IVREntityListing.md +1 -1
  71. data/docs/InboundDomainEntityListing.md +1 -1
  72. data/docs/InboundRouteEntityListing.md +1 -1
  73. data/docs/IntegrationEntityListing.md +1 -1
  74. data/docs/IntegrationEventEntityListing.md +1 -1
  75. data/docs/IntegrationTypeEntityListing.md +1 -1
  76. data/docs/InteractionStatsAlertContainer.md +1 -1
  77. data/docs/InteractionStatsRuleContainer.md +1 -1
  78. data/docs/IntradayDataUpdateNotificationDateTime.md +1 -1
  79. data/docs/IntradayDataUpdateNotificationStartDate.md +1 -1
  80. data/docs/JsonNode.md +1 -1
  81. data/docs/KeywordSetEntityListing.md +1 -1
  82. data/docs/LanguageEntityListing.md +1 -1
  83. data/docs/LanguagesApi.md +1 -2
  84. data/docs/LibraryEntityListing.md +1 -1
  85. data/docs/LineBaseEntityListing.md +1 -1
  86. data/docs/LineEntityListing.md +1 -1
  87. data/docs/LocationEntityListing.md +1 -1
  88. data/docs/LogicalInterfaceEntityListing.md +1 -1
  89. data/docs/ManagementUnitListing.md +1 -1
  90. data/docs/MessageConversationEntityListing.md +1 -1
  91. data/docs/NoteListing.md +1 -1
  92. data/docs/OAuthClient.md +1 -0
  93. data/docs/OAuthClientEntityListing.md +1 -1
  94. data/docs/OAuthClientListing.md +1 -0
  95. data/docs/OAuthProviderEntityListing.md +1 -1
  96. data/docs/OrgOAuthClient.md +1 -0
  97. data/docs/OrganizationPresenceEntityListing.md +1 -1
  98. data/docs/OrganizationRoleEntityListing.md +1 -1
  99. data/docs/OrphanRecordingListing.md +1 -1
  100. data/docs/OutboundRouteBaseEntityListing.md +1 -1
  101. data/docs/OutboundRouteEntityListing.md +1 -1
  102. data/docs/PermissionCollectionEntityListing.md +1 -1
  103. data/docs/PhoneBaseEntityListing.md +1 -1
  104. data/docs/PhoneEntityListing.md +1 -1
  105. data/docs/PhoneMetaBaseEntityListing.md +1 -1
  106. data/docs/PhysicalInterfaceEntityListing.md +1 -1
  107. data/docs/PolicyEntityListing.md +1 -1
  108. data/docs/PromptAssetEntityListing.md +1 -1
  109. data/docs/PromptEntityListing.md +1 -1
  110. data/docs/QualityAuditPage.md +1 -1
  111. data/docs/QueueEntityListing.md +1 -1
  112. data/docs/QueueMemberEntityListing.md +1 -1
  113. data/docs/RecipientListing.md +1 -1
  114. data/docs/RelationshipListing.md +1 -1
  115. data/docs/ReportMetaDataEntityListing.md +1 -1
  116. data/docs/ReportRunEntryEntityDomainListing.md +1 -1
  117. data/docs/ReportScheduleEntityListing.md +1 -1
  118. data/docs/ReportingExportJobListing.md +1 -1
  119. data/docs/ResponseEntityList.md +1 -1
  120. data/docs/ResponseEntityListing.md +1 -1
  121. data/docs/ResponseSetEntityListing.md +1 -1
  122. data/docs/RoutingApi.md +3 -6
  123. data/docs/RuleSetEntityListing.md +1 -1
  124. data/docs/ScheduleEntityListing.md +1 -1
  125. data/docs/ScheduleGroupEntityListing.md +1 -1
  126. data/docs/SchemaCategoryEntityListing.md +1 -1
  127. data/docs/SchemaReferenceEntityListing.md +1 -1
  128. data/docs/ScreenRecordingSessionListing.md +1 -1
  129. data/docs/ScriptEntityListing.md +1 -1
  130. data/docs/SecurityProfileEntityListing.md +1 -1
  131. data/docs/ShareEntityListing.md +1 -1
  132. data/docs/SiteEntityListing.md +1 -1
  133. data/docs/SkillEntityListing.md +1 -1
  134. data/docs/SmsPhoneNumberEntityListing.md +1 -1
  135. data/docs/StationEntityListing.md +1 -1
  136. data/docs/SurveyFormEntityListing.md +1 -1
  137. data/docs/SystemPromptAssetEntityListing.md +1 -1
  138. data/docs/SystemPromptEntityListing.md +1 -1
  139. data/docs/TagValueEntityListing.md +1 -1
  140. data/docs/TextMessageListing.md +1 -1
  141. data/docs/TimeZoneEntityListing.md +1 -1
  142. data/docs/TrunkBaseEntityListing.md +1 -1
  143. data/docs/TrunkEntityListing.md +1 -1
  144. data/docs/TrunkMetabaseEntityListing.md +1 -1
  145. data/docs/TrustEntityListing.md +1 -1
  146. data/docs/TrustUserEntityListing.md +1 -1
  147. data/docs/TrustorEntityListing.md +1 -1
  148. data/docs/UserActionCategoryEntityListing.md +1 -1
  149. data/docs/UserEntityListing.md +1 -1
  150. data/docs/UserLanguageEntityListing.md +1 -1
  151. data/docs/UserProfileEntityListing.md +1 -1
  152. data/docs/UserQueueEntityListing.md +1 -1
  153. data/docs/UserRecordingEntityListing.md +1 -1
  154. data/docs/UserScheduleAdherenceUpdateNotificationDateTime.md +1 -1
  155. data/docs/UserSkillEntityListing.md +1 -1
  156. data/docs/VoicemailMessageEntityListing.md +1 -1
  157. data/docs/WorkforceManagementApi.md +1 -0
  158. data/docs/WorkspaceEntityListing.md +1 -1
  159. data/docs/WorkspaceMemberEntityListing.md +1 -1
  160. data/docs/WrapupCodeEntityListing.md +1 -1
  161. data/lib/purecloudplatformclientv2.rb +1 -0
  162. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  163. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +16 -16
  164. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +16 -16
  165. data/lib/purecloudplatformclientv2/models/aggregate_metric_data.rb +2 -2
  166. data/lib/purecloudplatformclientv2/models/analytics_conversation.rb +29 -1
  167. data/lib/purecloudplatformclientv2/models/analytics_query_predicate.rb +4 -4
  168. data/lib/purecloudplatformclientv2/models/analytics_survey.rb +436 -0
  169. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +16 -16
  170. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +16 -16
  171. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +16 -16
  172. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +16 -16
  173. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +16 -16
  174. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +16 -16
  175. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +16 -16
  176. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +16 -16
  177. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +16 -16
  178. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +16 -16
  179. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +16 -16
  180. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +16 -16
  181. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +16 -16
  182. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +16 -16
  183. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +16 -16
  184. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +16 -16
  185. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +16 -16
  186. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +16 -16
  187. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +16 -16
  188. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +16 -16
  189. data/lib/purecloudplatformclientv2/models/contact_listing.rb +16 -16
  190. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +16 -16
  191. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +16 -16
  192. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +16 -16
  193. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +16 -16
  194. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +16 -16
  195. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +16 -16
  196. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +16 -16
  197. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +16 -16
  198. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +16 -16
  199. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +16 -16
  200. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +16 -16
  201. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +16 -16
  202. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +16 -16
  203. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +16 -16
  204. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +16 -16
  205. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +16 -16
  206. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +16 -16
  207. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +16 -16
  208. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +16 -16
  209. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +16 -16
  210. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +16 -16
  211. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +16 -16
  212. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +16 -16
  213. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +16 -16
  214. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +16 -16
  215. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +16 -16
  216. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +16 -16
  217. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +16 -16
  218. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +16 -16
  219. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +16 -16
  220. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +16 -16
  221. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +16 -16
  222. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +16 -16
  223. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +16 -16
  224. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +16 -16
  225. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +16 -16
  226. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +16 -16
  227. data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +2 -2
  228. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +16 -16
  229. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +16 -16
  230. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +16 -16
  231. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +16 -16
  232. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +16 -16
  233. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +16 -16
  234. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +16 -16
  235. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +16 -16
  236. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +16 -16
  237. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +16 -16
  238. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +16 -16
  239. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +16 -16
  240. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_date_time.rb +17 -17
  241. data/lib/purecloudplatformclientv2/models/intraday_data_update_notification_start_date.rb +17 -17
  242. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +16 -16
  243. data/lib/purecloudplatformclientv2/models/json_node.rb +17 -17
  244. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +16 -16
  245. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +16 -16
  246. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +16 -16
  247. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +16 -16
  248. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +16 -16
  249. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +16 -16
  250. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +16 -16
  251. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +16 -16
  252. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +16 -16
  253. data/lib/purecloudplatformclientv2/models/note_listing.rb +16 -16
  254. data/lib/purecloudplatformclientv2/models/o_auth_client.rb +34 -1
  255. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +16 -16
  256. data/lib/purecloudplatformclientv2/models/o_auth_client_listing.rb +34 -1
  257. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +16 -16
  258. data/lib/purecloudplatformclientv2/models/org_o_auth_client.rb +34 -1
  259. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +16 -16
  260. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +16 -16
  261. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +16 -16
  262. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +16 -16
  263. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +16 -16
  264. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +16 -16
  265. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +16 -16
  266. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +16 -16
  267. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +16 -16
  268. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +16 -16
  269. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +16 -16
  270. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +16 -16
  271. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +16 -16
  272. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +16 -16
  273. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +16 -16
  274. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +16 -16
  275. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +16 -16
  276. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +16 -16
  277. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +16 -16
  278. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +16 -16
  279. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +16 -16
  280. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +16 -16
  281. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +16 -16
  282. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +16 -16
  283. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +16 -16
  284. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +16 -16
  285. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +16 -16
  286. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +16 -16
  287. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +16 -16
  288. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +16 -16
  289. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +16 -16
  290. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +16 -16
  291. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +16 -16
  292. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +16 -16
  293. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +16 -16
  294. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +16 -16
  295. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +16 -16
  296. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +16 -16
  297. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +16 -16
  298. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +16 -16
  299. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +16 -16
  300. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +16 -16
  301. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +16 -16
  302. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +16 -16
  303. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +16 -16
  304. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +16 -16
  305. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +16 -16
  306. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +16 -16
  307. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +16 -16
  308. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +16 -16
  309. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +16 -16
  310. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +16 -16
  311. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +16 -16
  312. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +16 -16
  313. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +16 -16
  314. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +16 -16
  315. data/lib/purecloudplatformclientv2/models/user_schedule_adherence_update_notification_date_time.rb +17 -17
  316. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +16 -16
  317. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +16 -16
  318. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +16 -16
  319. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +16 -16
  320. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +16 -16
  321. data/lib/purecloudplatformclientv2/version.rb +1 -1
  322. metadata +4 -2
@@ -103,7 +103,7 @@ module PureCloud
103
103
 
104
104
 
105
105
 
106
- allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses"]
106
+ allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors"]
107
107
  if @metric && !allowed_values.include?(@metric)
108
108
  return false
109
109
  end
@@ -125,7 +125,7 @@ module PureCloud
125
125
  # Custom attribute writer method checking allowed values (enum).
126
126
  # @param [Object] metric Object to be assigned
127
127
  def metric=(metric)
128
- allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses"]
128
+ allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors"]
129
129
  if metric && !allowed_values.include?(metric)
130
130
  fail ArgumentError, "invalid value for 'metric', must be one of #{allowed_values}."
131
131
  end
@@ -33,6 +33,9 @@ module PureCloud
33
33
  # Evaluations tied to this conversation
34
34
  attr_accessor :evaluations
35
35
 
36
+ # Surveys tied to this conversation
37
+ attr_accessor :surveys
38
+
36
39
  # Identifiers of divisions associated with this conversation
37
40
  attr_accessor :division_ids
38
41
 
@@ -50,6 +53,8 @@ module PureCloud
50
53
 
51
54
  :'evaluations' => :'evaluations',
52
55
 
56
+ :'surveys' => :'surveys',
57
+
53
58
  :'division_ids' => :'divisionIds'
54
59
 
55
60
  }
@@ -69,6 +74,8 @@ module PureCloud
69
74
 
70
75
  :'evaluations' => :'Array<AnalyticsEvaluation>',
71
76
 
77
+ :'surveys' => :'Array<AnalyticsSurvey>',
78
+
72
79
  :'division_ids' => :'Array<String>'
73
80
 
74
81
  }
@@ -129,6 +136,17 @@ module PureCloud
129
136
 
130
137
 
131
138
 
139
+ end
140
+
141
+
142
+ if attributes.has_key?(:'surveys')
143
+
144
+ if (value = attributes[:'surveys']).is_a?(Array)
145
+ self.surveys = value
146
+ end
147
+
148
+
149
+
132
150
  end
133
151
 
134
152
 
@@ -177,6 +195,10 @@ module PureCloud
177
195
 
178
196
 
179
197
 
198
+
199
+
200
+
201
+
180
202
 
181
203
 
182
204
 
@@ -209,6 +231,11 @@ module PureCloud
209
231
 
210
232
 
211
233
 
234
+
235
+
236
+
237
+
238
+
212
239
 
213
240
 
214
241
 
@@ -225,6 +252,7 @@ module PureCloud
225
252
  conversation_end == o.conversation_end &&
226
253
  participants == o.participants &&
227
254
  evaluations == o.evaluations &&
255
+ surveys == o.surveys &&
228
256
  division_ids == o.division_ids
229
257
  end
230
258
 
@@ -237,7 +265,7 @@ module PureCloud
237
265
  # Calculates hash code according to all attributes.
238
266
  # @return [Fixnum] Hash code
239
267
  def hash
240
- [conversation_id, conversation_start, conversation_end, participants, evaluations, division_ids].hash
268
+ [conversation_id, conversation_start, conversation_end, participants, evaluations, surveys, division_ids].hash
241
269
  end
242
270
 
243
271
  # build the object from hash
@@ -195,7 +195,7 @@ module PureCloud
195
195
 
196
196
 
197
197
 
198
- allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "participantId", "participantName", "direction", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "requestedRoutingUserIds", "purpose", "participantType", "segmentType", "disconnectType", "errorCode", "conversationEnd", "segmentEnd", "externalContactId", "externalOrganizationId", "convertedFrom", "convertedTo", "divisionId", "flaggedReason", "stationId", "edgeId", "dnis", "ani", "outboundCampaignId", "outboundContactId", "outboundContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "addressSelf", "addressOther", "subject", "messageType", "peerId", "scriptId", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime", "systemPresence", "organizationPresenceId", "routingStatus"]
198
+ allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "participantId", "participantName", "direction", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "requestedRoutingUserIds", "purpose", "participantType", "segmentType", "disconnectType", "errorCode", "conversationEnd", "segmentEnd", "externalContactId", "externalOrganizationId", "convertedFrom", "convertedTo", "divisionId", "flaggedReason", "stationId", "edgeId", "dnis", "ani", "outboundCampaignId", "outboundContactId", "outboundContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "addressSelf", "addressOther", "subject", "messageType", "peerId", "scriptId", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime", "surveyId", "surveyFormContextId", "surveyFormId", "surveyAnswerId", "surveyQuestionId", "surveyQuestionGroupId", "systemPresence", "organizationPresenceId", "routingStatus"]
199
199
  if @dimension && !allowed_values.include?(@dimension)
200
200
  return false
201
201
  end
@@ -217,7 +217,7 @@ module PureCloud
217
217
 
218
218
 
219
219
 
220
- allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses"]
220
+ allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors"]
221
221
  if @metric && !allowed_values.include?(@metric)
222
222
  return false
223
223
  end
@@ -262,7 +262,7 @@ module PureCloud
262
262
  # Custom attribute writer method checking allowed values (enum).
263
263
  # @param [Object] dimension Object to be assigned
264
264
  def dimension=(dimension)
265
- allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "participantId", "participantName", "direction", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "requestedRoutingUserIds", "purpose", "participantType", "segmentType", "disconnectType", "errorCode", "conversationEnd", "segmentEnd", "externalContactId", "externalOrganizationId", "convertedFrom", "convertedTo", "divisionId", "flaggedReason", "stationId", "edgeId", "dnis", "ani", "outboundCampaignId", "outboundContactId", "outboundContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "addressSelf", "addressOther", "subject", "messageType", "peerId", "scriptId", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime", "systemPresence", "organizationPresenceId", "routingStatus"]
265
+ allowed_values = ["conversationId", "sessionId", "mediaType", "queueId", "userId", "participantId", "participantName", "direction", "wrapUpCode", "wrapUpNote", "interactionType", "requestedRoutingSkillId", "requestedLanguageId", "requestedRoutingUserIds", "purpose", "participantType", "segmentType", "disconnectType", "errorCode", "conversationEnd", "segmentEnd", "externalContactId", "externalOrganizationId", "convertedFrom", "convertedTo", "divisionId", "flaggedReason", "stationId", "edgeId", "dnis", "ani", "outboundCampaignId", "outboundContactId", "outboundContactListId", "monitoredParticipantId", "sourceSessionId", "destinationSessionId", "sourceConversationId", "destinationConversationId", "remoteNameDisplayable", "sipResponseCode", "q850ResponseCode", "conference", "groupId", "roomId", "addressFrom", "addressTo", "addressSelf", "addressOther", "subject", "messageType", "peerId", "scriptId", "evaluationId", "evaluatorId", "contextId", "formId", "formName", "eventTime", "surveyId", "surveyFormContextId", "surveyFormId", "surveyAnswerId", "surveyQuestionId", "surveyQuestionGroupId", "systemPresence", "organizationPresenceId", "routingStatus"]
266
266
  if dimension && !allowed_values.include?(dimension)
267
267
  fail ArgumentError, "invalid value for 'dimension', must be one of #{allowed_values}."
268
268
  end
@@ -295,7 +295,7 @@ module PureCloud
295
295
  # Custom attribute writer method checking allowed values (enum).
296
296
  # @param [Object] metric Object to be assigned
297
297
  def metric=(metric)
298
- allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses"]
298
+ allowed_values = ["tSegmentDuration", "tConversationDuration", "oTotalCriticalScore", "oTotalScore", "nEvaluations", "tAbandon", "tIvr", "tAnswered", "tFlowOut", "tAcd", "tTalk", "tHeld", "tTalkComplete", "tHeldComplete", "tAcw", "tHandle", "tContacting", "tDialing", "tWait", "tAgentRoutingStatus", "tOrganizationPresence", "tSystemPresence", "tUserResponseTime", "tAgentResponseTime", "tVoicemail", "nStateTransitionError", "nOffered", "nOverSla", "nTransferred", "tAlert", "tNotResponding", "nOutbound", "nOutboundAttempted", "nOutboundConnected", "nOutboundAbandoned", "nError", "oServiceTarget", "oServiceLevel", "tActive", "tInactive", "oActiveUsers", "oMemberUsers", "oActiveQueues", "oMemberQueues", "oInteracting", "oWaiting", "oOnQueueUsers", "oOffQueueUsers", "oUserPresences", "oUserRoutingStatuses", "nSurveysSent", "nSurveysStarted", "nSurveysAbandoned", "nSurveysExpired", "nSurveysBounced", "nSurveyResponses", "nSurveyAnswerResponses", "oSurveyTotalScore", "oSurveyQuestionGroupScore", "nSurveyQuestionGroupResponses", "oSurveyQuestionScore", "nSurveyQuestionResponses", "nSurveyNpsResponses", "nSurveyNpsPromoters", "nSurveyNpsDetractors"]
299
299
  if metric && !allowed_values.include?(metric)
300
300
  fail ArgumentError, "invalid value for 'metric', must be one of #{allowed_values}."
301
301
  end
@@ -0,0 +1,436 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require 'date'
18
+
19
+ module PureCloud
20
+ class AnalyticsSurvey
21
+ # Unique identifier for the survey
22
+ attr_accessor :survey_id
23
+
24
+ # Unique identifier for the survey form
25
+ attr_accessor :survey_form_id
26
+
27
+ # Unique identifier for the survey form, regardless of version
28
+ attr_accessor :survey_form_context_id
29
+
30
+ # Unique identifier of participant
31
+ attr_accessor :participant_id
32
+
33
+ # External contact id
34
+ attr_accessor :external_contact_id
35
+
36
+ # Customer address
37
+ attr_accessor :customer_address
38
+
39
+ # A unique identifier of the PureCloud user
40
+ attr_accessor :user_id
41
+
42
+ # Unique identifier for the queue the conversation was on
43
+ attr_accessor :queue_id
44
+
45
+ # Survey status
46
+ attr_accessor :status
47
+
48
+ # Creation date of survey. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ
49
+ attr_accessor :created_date
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+
55
+ :'survey_id' => :'surveyId',
56
+
57
+ :'survey_form_id' => :'surveyFormId',
58
+
59
+ :'survey_form_context_id' => :'surveyFormContextId',
60
+
61
+ :'participant_id' => :'participantId',
62
+
63
+ :'external_contact_id' => :'externalContactId',
64
+
65
+ :'customer_address' => :'customerAddress',
66
+
67
+ :'user_id' => :'userId',
68
+
69
+ :'queue_id' => :'queueId',
70
+
71
+ :'status' => :'status',
72
+
73
+ :'created_date' => :'createdDate'
74
+
75
+ }
76
+ end
77
+
78
+ # Attribute type mapping.
79
+ def self.swagger_types
80
+ {
81
+
82
+ :'survey_id' => :'String',
83
+
84
+ :'survey_form_id' => :'String',
85
+
86
+ :'survey_form_context_id' => :'String',
87
+
88
+ :'participant_id' => :'String',
89
+
90
+ :'external_contact_id' => :'String',
91
+
92
+ :'customer_address' => :'String',
93
+
94
+ :'user_id' => :'String',
95
+
96
+ :'queue_id' => :'String',
97
+
98
+ :'status' => :'String',
99
+
100
+ :'created_date' => :'DateTime'
101
+
102
+ }
103
+ end
104
+
105
+ # Initializes the object
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ def initialize(attributes = {})
108
+ return unless attributes.is_a?(Hash)
109
+
110
+ # convert string to symbol for hash key
111
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
112
+
113
+
114
+ if attributes.has_key?(:'surveyId')
115
+
116
+
117
+ self.survey_id = attributes[:'surveyId']
118
+
119
+
120
+ end
121
+
122
+
123
+ if attributes.has_key?(:'surveyFormId')
124
+
125
+
126
+ self.survey_form_id = attributes[:'surveyFormId']
127
+
128
+
129
+ end
130
+
131
+
132
+ if attributes.has_key?(:'surveyFormContextId')
133
+
134
+
135
+ self.survey_form_context_id = attributes[:'surveyFormContextId']
136
+
137
+
138
+ end
139
+
140
+
141
+ if attributes.has_key?(:'participantId')
142
+
143
+
144
+ self.participant_id = attributes[:'participantId']
145
+
146
+
147
+ end
148
+
149
+
150
+ if attributes.has_key?(:'externalContactId')
151
+
152
+
153
+ self.external_contact_id = attributes[:'externalContactId']
154
+
155
+
156
+ end
157
+
158
+
159
+ if attributes.has_key?(:'customerAddress')
160
+
161
+
162
+ self.customer_address = attributes[:'customerAddress']
163
+
164
+
165
+ end
166
+
167
+
168
+ if attributes.has_key?(:'userId')
169
+
170
+
171
+ self.user_id = attributes[:'userId']
172
+
173
+
174
+ end
175
+
176
+
177
+ if attributes.has_key?(:'queueId')
178
+
179
+
180
+ self.queue_id = attributes[:'queueId']
181
+
182
+
183
+ end
184
+
185
+
186
+ if attributes.has_key?(:'status')
187
+
188
+
189
+ self.status = attributes[:'status']
190
+
191
+
192
+ end
193
+
194
+
195
+ if attributes.has_key?(:'createdDate')
196
+
197
+
198
+ self.created_date = attributes[:'createdDate']
199
+
200
+
201
+ end
202
+
203
+
204
+ end
205
+
206
+ # Show invalid properties with the reasons. Usually used together with valid?
207
+ # @return Array for valid properies with the reasons
208
+ def list_invalid_properties
209
+ invalid_properties = Array.new
210
+
211
+
212
+ return invalid_properties
213
+ end
214
+
215
+ # Check to see if the all the properties in the model are valid
216
+ # @return true if the model is valid
217
+ def valid?
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+ end
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+ # Checks equality by comparing each attribute.
313
+ # @param [Object] Object to be compared
314
+ def ==(o)
315
+ return true if self.equal?(o)
316
+ self.class == o.class &&
317
+ survey_id == o.survey_id &&
318
+ survey_form_id == o.survey_form_id &&
319
+ survey_form_context_id == o.survey_form_context_id &&
320
+ participant_id == o.participant_id &&
321
+ external_contact_id == o.external_contact_id &&
322
+ customer_address == o.customer_address &&
323
+ user_id == o.user_id &&
324
+ queue_id == o.queue_id &&
325
+ status == o.status &&
326
+ created_date == o.created_date
327
+ end
328
+
329
+ # @see the `==` method
330
+ # @param [Object] Object to be compared
331
+ def eql?(o)
332
+ self == o
333
+ end
334
+
335
+ # Calculates hash code according to all attributes.
336
+ # @return [Fixnum] Hash code
337
+ def hash
338
+ [survey_id, survey_form_id, survey_form_context_id, participant_id, external_contact_id, customer_address, user_id, queue_id, status, created_date].hash
339
+ end
340
+
341
+ # build the object from hash
342
+ def build_from_hash(attributes)
343
+ return nil unless attributes.is_a?(Hash)
344
+ self.class.swagger_types.each_pair do |key, type|
345
+ if type =~ /^Array<(.*)>/i
346
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
347
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
348
+ else
349
+ #TODO show warning in debug mode
350
+ end
351
+ elsif !attributes[self.class.attribute_map[key]].nil?
352
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
353
+ else
354
+ # data not found in attributes(hash), not an issue as the data can be optional
355
+ end
356
+ end
357
+
358
+ self
359
+ end
360
+
361
+ def _deserialize(type, value)
362
+ case type.to_sym
363
+ when :DateTime
364
+ DateTime.parse(value)
365
+ when :Date
366
+ Date.parse(value)
367
+ when :String
368
+ value.to_s
369
+ when :Integer
370
+ value.to_i
371
+ when :Float
372
+ value.to_f
373
+ when :BOOLEAN
374
+ if value.to_s =~ /^(true|t|yes|y|1)$/i
375
+ true
376
+ else
377
+ false
378
+ end
379
+ when :Object
380
+ # generic object (usually a Hash), return directly
381
+ value
382
+ when /\AArray<(?<inner_type>.+)>\z/
383
+ inner_type = Regexp.last_match[:inner_type]
384
+ value.map { |v| _deserialize(inner_type, v) }
385
+ when /\AHash<(?<k_type>.+), (?<v_type>.+)>\z/
386
+ k_type = Regexp.last_match[:k_type]
387
+ v_type = Regexp.last_match[:v_type]
388
+ {}.tap do |hash|
389
+ value.each do |k, v|
390
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
391
+ end
392
+ end
393
+ else # model
394
+ _model = Object.const_get("PureCloud").const_get(type).new
395
+ _model.build_from_hash(value)
396
+ end
397
+ end
398
+
399
+ def to_s
400
+ to_hash.to_s
401
+ end
402
+
403
+ # to_body is an alias to to_body (backward compatibility))
404
+ def to_body
405
+ to_hash
406
+ end
407
+
408
+ # return the object in the form of hash
409
+ def to_hash
410
+ hash = {}
411
+ self.class.attribute_map.each_pair do |attr, param|
412
+ value = self.send(attr)
413
+ next if value.nil?
414
+ hash[param] = _to_hash(value)
415
+ end
416
+ hash
417
+ end
418
+
419
+ # Method to output non-array value in the form of hash
420
+ # For object, use to_hash. Otherwise, just return the value
421
+ def _to_hash(value)
422
+ if value.is_a?(Array)
423
+ value.compact.map{ |v| _to_hash(v) }
424
+ elsif value.is_a?(Hash)
425
+ {}.tap do |hash|
426
+ value.each { |k, v| hash[k] = _to_hash(v) }
427
+ end
428
+ elsif value.respond_to? :to_hash
429
+ value.to_hash
430
+ else
431
+ value
432
+ end
433
+ end
434
+
435
+ end
436
+ end