kickflow 0.1.0

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 (384) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/Gemfile +18 -0
  4. data/LICENSE.txt +202 -0
  5. data/README.md +303 -0
  6. data/Rakefile +48 -0
  7. data/Rakefile~ +48 -0
  8. data/bin/console +11 -0
  9. data/bin/setup +8 -0
  10. data/bin/setup-Nix +2 -0
  11. data/docs/Attachment.md +22 -0
  12. data/docs/Category.md +24 -0
  13. data/docs/ClimberCloudSetting.md +24 -0
  14. data/docs/ClimberCloudSettingMappingsInner.md +20 -0
  15. data/docs/Comment.md +32 -0
  16. data/docs/DefaultApi.md +6318 -0
  17. data/docs/DeleteTeamsTeamIdMembersRequest.md +18 -0
  18. data/docs/ExternalApiSetting.md +30 -0
  19. data/docs/ExternalApiSettingHeadersInner.md +20 -0
  20. data/docs/ExternalApiSettingMappingsInner.md +24 -0
  21. data/docs/Folder.md +34 -0
  22. data/docs/FolderDetail.md +38 -0
  23. data/docs/FormField.md +60 -0
  24. data/docs/FormFieldDetail.md +68 -0
  25. data/docs/GeneralMaster.md +30 -0
  26. data/docs/GeneralMasterField.md +36 -0
  27. data/docs/GeneralMasterItem.md +34 -0
  28. data/docs/GeneralMasterItemInputsInner.md +26 -0
  29. data/docs/GeneralMasterItemInputsInnerValue.md +15 -0
  30. data/docs/GetFilesSignedId200Response.md +28 -0
  31. data/docs/GetTicketsStatusParameter.md +49 -0
  32. data/docs/Grade.md +30 -0
  33. data/docs/GradeCreateBody.md +22 -0
  34. data/docs/GradeUpdateBody.md +22 -0
  35. data/docs/Label.md +28 -0
  36. data/docs/MemberUser.md +46 -0
  37. data/docs/OrganizationChart.md +32 -0
  38. data/docs/OrganizationChartActivationPlan.md +24 -0
  39. data/docs/OrganizationChartBody.md +18 -0
  40. data/docs/OrganizationChartDetail.md +32 -0
  41. data/docs/PatchFoldersFolderIdRequest.md +24 -0
  42. data/docs/PatchGeneralMastersGeneralMasterIdItemsItemIdRequest.md +28 -0
  43. data/docs/PatchGeneralMastersGeneralMasterIdItemsItemIdRequestInputsInner.md +20 -0
  44. data/docs/PatchGeneralMastersGeneralMasterIdItemsItemIdRequestInputsInnerValue.md +49 -0
  45. data/docs/PatchGeneralMastersGeneralMasterIdRequest.md +24 -0
  46. data/docs/PatchGeneralMastersGeneralMasterIdRequestFieldsInner.md +30 -0
  47. data/docs/PatchTeamsTeamIdMembershipsUserIdRequest.md +20 -0
  48. data/docs/PatchTicketsIdCommentsCommentIdRequest.md +18 -0
  49. data/docs/PatchTicketsTicketIdRequest.md +30 -0
  50. data/docs/PatchTicketsTicketIdRequestCloudSignDocument.md +22 -0
  51. data/docs/PatchTicketsTicketIdRequestInputsInner.md +32 -0
  52. data/docs/PatchTicketsTicketIdRequestSlipItemsInner.md +18 -0
  53. data/docs/PatchTicketsTicketIdRequestSlipItemsInnerInputsInner.md +26 -0
  54. data/docs/PatchUsersUserIdRequest.md +26 -0
  55. data/docs/PostCategoriesRequest.md +18 -0
  56. data/docs/PostFiles200Response.md +18 -0
  57. data/docs/PostFoldersRequest.md +24 -0
  58. data/docs/PostGeneralMastersGeneralMasterIdItemsRequest.md +28 -0
  59. data/docs/PostGeneralMastersGeneralMasterIdItemsRequestInputsInner.md +20 -0
  60. data/docs/PostGeneralMastersGeneralMasterIdItemsRequestInputsInnerValue.md +49 -0
  61. data/docs/PostGeneralMastersRequest.md +24 -0
  62. data/docs/PostGeneralMastersRequestFieldsInner.md +30 -0
  63. data/docs/PostOrganizationChartsOrganizationChartIdActivateRequest.md +18 -0
  64. data/docs/PostProxyApplicantsRequest.md +26 -0
  65. data/docs/PostProxyApproversRequest.md +26 -0
  66. data/docs/PostRolesRoleIdMembershipsRequest.md +18 -0
  67. data/docs/PostTeamsTeamIdMembersRequest.md +18 -0
  68. data/docs/PostTeamsTeamIdMembersRequestUsersInner.md +22 -0
  69. data/docs/PostTicketsIdCommentsRequest.md +20 -0
  70. data/docs/PostTicketsIdViewersRequest.md +22 -0
  71. data/docs/PostTicketsIdViewersRequestTeamId.md +15 -0
  72. data/docs/PostTicketsIdViewersRequestUserId.md +15 -0
  73. data/docs/PostTicketsRequest.md +32 -0
  74. data/docs/PostTicketsRequestCloudSignDocument.md +22 -0
  75. data/docs/PostTicketsRequestInputsInner.md +32 -0
  76. data/docs/PostTicketsRequestInputsInnerTeamId.md +49 -0
  77. data/docs/PostTicketsRequestInputsInnerTicketId.md +49 -0
  78. data/docs/PostTicketsRequestInputsInnerUserId.md +49 -0
  79. data/docs/PostTicketsRequestSlipItemsInner.md +18 -0
  80. data/docs/PostTicketsRequestSlipItemsInnerInputsInner.md +26 -0
  81. data/docs/PostTicketsRequestSlipItemsInnerInputsInnerGeneralMasterItemId.md +49 -0
  82. data/docs/PostTicketsRequestSlipItemsInnerInputsInnerValue.md +49 -0
  83. data/docs/PostTicketsTicketIdRejectRequest.md +18 -0
  84. data/docs/PostUsersRequest.md +28 -0
  85. data/docs/ProxyApplicant.md +32 -0
  86. data/docs/ProxyApprover.md +32 -0
  87. data/docs/Role.md +28 -0
  88. data/docs/RoleCreateBody.md +20 -0
  89. data/docs/RoleCreateBodyPermissionListInner.md +26 -0
  90. data/docs/RoleDetail.md +30 -0
  91. data/docs/RoleDetailAllOfPermissionList.md +26 -0
  92. data/docs/RoleUpdateBody.md +20 -0
  93. data/docs/RoleUpdateBodyPermissionListInner.md +26 -0
  94. data/docs/Route.md +40 -0
  95. data/docs/RouteDetail.md +42 -0
  96. data/docs/RouteStep.md +44 -0
  97. data/docs/RouteStepCondition.md +24 -0
  98. data/docs/RouteStepConditionField.md +34 -0
  99. data/docs/RouteStepTarget.md +24 -0
  100. data/docs/Section.md +32 -0
  101. data/docs/SlipField.md +56 -0
  102. data/docs/SlipFieldDetail.md +60 -0
  103. data/docs/SlipItem.md +24 -0
  104. data/docs/SlipItemInput.md +30 -0
  105. data/docs/SlipItemInputValue.md +15 -0
  106. data/docs/SubStatus.md +28 -0
  107. data/docs/Team.md +32 -0
  108. data/docs/TeamCreateBody.md +24 -0
  109. data/docs/TeamDetail.md +38 -0
  110. data/docs/TeamUpdateBody.md +24 -0
  111. data/docs/Ticket.md +50 -0
  112. data/docs/TicketAssignee.md +28 -0
  113. data/docs/TicketDetail.md +68 -0
  114. data/docs/TicketDetailAllOfCloudSignDocument.md +32 -0
  115. data/docs/TicketInput.md +32 -0
  116. data/docs/TicketInputValue.md +15 -0
  117. data/docs/TicketSection.md +22 -0
  118. data/docs/TicketStep.md +44 -0
  119. data/docs/TicketViewer.md +24 -0
  120. data/docs/TicketWorkflow.md +74 -0
  121. data/docs/User.md +42 -0
  122. data/docs/UserDetail.md +42 -0
  123. data/docs/UserImage.md +18 -0
  124. data/docs/Workflow.md +66 -0
  125. data/docs/WorkflowDetail.md +76 -0
  126. data/docs/WorkflowInTicket.md +74 -0
  127. data/docs/WorkflowInTicketAllOfCloudSignSetting.md +18 -0
  128. data/docs/WorkflowRouteCondition.md +30 -0
  129. data/docs/WorkflowRouteConditionField.md +30 -0
  130. data/docs/WorkflowTicketViewer.md +24 -0
  131. data/git_push.sh +57 -0
  132. data/kickflow.gemspec +34 -0
  133. data/lib/kickflow/api/_api.rb +6531 -0
  134. data/lib/kickflow/api_client.rb +431 -0
  135. data/lib/kickflow/api_error.rb +58 -0
  136. data/lib/kickflow/configuration.rb +392 -0
  137. data/lib/kickflow/models/attachment.rb +257 -0
  138. data/lib/kickflow/models/category.rb +293 -0
  139. data/lib/kickflow/models/climber_cloud_setting.rb +261 -0
  140. data/lib/kickflow/models/climber_cloud_setting_mappings_inner.rb +238 -0
  141. data/lib/kickflow/models/comment.rb +341 -0
  142. data/lib/kickflow/models/delete_teams_team_id_members_request.rb +252 -0
  143. data/lib/kickflow/models/external_api_setting.rb +359 -0
  144. data/lib/kickflow/models/external_api_setting_headers_inner.rb +239 -0
  145. data/lib/kickflow/models/external_api_setting_mappings_inner.rb +268 -0
  146. data/lib/kickflow/models/folder.rb +448 -0
  147. data/lib/kickflow/models/folder_detail.rb +479 -0
  148. data/lib/kickflow/models/form_field.rb +646 -0
  149. data/lib/kickflow/models/form_field_detail.rb +693 -0
  150. data/lib/kickflow/models/general_master.rb +361 -0
  151. data/lib/kickflow/models/general_master_field.rb +442 -0
  152. data/lib/kickflow/models/general_master_item.rb +387 -0
  153. data/lib/kickflow/models/general_master_item_inputs_inner.rb +288 -0
  154. data/lib/kickflow/models/general_master_item_inputs_inner_value.rb +105 -0
  155. data/lib/kickflow/models/get_files_signed_id200_response.rb +307 -0
  156. data/lib/kickflow/models/get_tickets_status_parameter.rb +105 -0
  157. data/lib/kickflow/models/grade.rb +383 -0
  158. data/lib/kickflow/models/grade_create_body.rb +316 -0
  159. data/lib/kickflow/models/grade_update_body.rb +283 -0
  160. data/lib/kickflow/models/label.rb +343 -0
  161. data/lib/kickflow/models/member_user.rb +620 -0
  162. data/lib/kickflow/models/organization_chart.rb +356 -0
  163. data/lib/kickflow/models/organization_chart_activation_plan.rb +274 -0
  164. data/lib/kickflow/models/organization_chart_body.rb +223 -0
  165. data/lib/kickflow/models/organization_chart_detail.rb +363 -0
  166. data/lib/kickflow/models/patch_folders_folder_id_request.rb +246 -0
  167. data/lib/kickflow/models/patch_general_masters_general_master_id_items_item_id_request.rb +269 -0
  168. data/lib/kickflow/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner.rb +238 -0
  169. data/lib/kickflow/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner_value.rb +106 -0
  170. data/lib/kickflow/models/patch_general_masters_general_master_id_request.rb +247 -0
  171. data/lib/kickflow/models/patch_general_masters_general_master_id_request_fields_inner.rb +286 -0
  172. data/lib/kickflow/models/patch_teams_team_id_memberships_user_id_request.rb +260 -0
  173. data/lib/kickflow/models/patch_tickets_id_comments_comment_id_request.rb +222 -0
  174. data/lib/kickflow/models/patch_tickets_ticket_id_request.rb +312 -0
  175. data/lib/kickflow/models/patch_tickets_ticket_id_request_cloud_sign_document.rb +257 -0
  176. data/lib/kickflow/models/patch_tickets_ticket_id_request_inputs_inner.rb +286 -0
  177. data/lib/kickflow/models/patch_tickets_ticket_id_request_slip_items_inner.rb +225 -0
  178. data/lib/kickflow/models/patch_tickets_ticket_id_request_slip_items_inner_inputs_inner.rb +261 -0
  179. data/lib/kickflow/models/patch_users_user_id_request.rb +347 -0
  180. data/lib/kickflow/models/post_categories_request.rb +222 -0
  181. data/lib/kickflow/models/post_files200_response.rb +222 -0
  182. data/lib/kickflow/models/post_folders_request.rb +253 -0
  183. data/lib/kickflow/models/post_general_masters_general_master_id_items_request.rb +283 -0
  184. data/lib/kickflow/models/post_general_masters_general_master_id_items_request_inputs_inner.rb +238 -0
  185. data/lib/kickflow/models/post_general_masters_general_master_id_items_request_inputs_inner_value.rb +106 -0
  186. data/lib/kickflow/models/post_general_masters_request.rb +254 -0
  187. data/lib/kickflow/models/post_general_masters_request_fields_inner.rb +341 -0
  188. data/lib/kickflow/models/post_organization_charts_organization_chart_id_activate_request.rb +215 -0
  189. data/lib/kickflow/models/post_proxy_applicants_request.rb +273 -0
  190. data/lib/kickflow/models/post_proxy_approvers_request.rb +273 -0
  191. data/lib/kickflow/models/post_roles_role_id_memberships_request.rb +252 -0
  192. data/lib/kickflow/models/post_teams_team_id_members_request.rb +252 -0
  193. data/lib/kickflow/models/post_teams_team_id_members_request_users_inner.rb +270 -0
  194. data/lib/kickflow/models/post_tickets_id_comments_request.rb +235 -0
  195. data/lib/kickflow/models/post_tickets_id_viewers_request.rb +236 -0
  196. data/lib/kickflow/models/post_tickets_id_viewers_request_team_id.rb +105 -0
  197. data/lib/kickflow/models/post_tickets_id_viewers_request_user_id.rb +105 -0
  198. data/lib/kickflow/models/post_tickets_request.rb +352 -0
  199. data/lib/kickflow/models/post_tickets_request_cloud_sign_document.rb +257 -0
  200. data/lib/kickflow/models/post_tickets_request_inputs_inner.rb +286 -0
  201. data/lib/kickflow/models/post_tickets_request_inputs_inner_team_id.rb +106 -0
  202. data/lib/kickflow/models/post_tickets_request_inputs_inner_ticket_id.rb +106 -0
  203. data/lib/kickflow/models/post_tickets_request_inputs_inner_user_id.rb +106 -0
  204. data/lib/kickflow/models/post_tickets_request_slip_items_inner.rb +225 -0
  205. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner.rb +259 -0
  206. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_general_master_item_id.rb +106 -0
  207. data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_value.rb +106 -0
  208. data/lib/kickflow/models/post_tickets_ticket_id_reject_request.rb +222 -0
  209. data/lib/kickflow/models/post_users_request.rb +366 -0
  210. data/lib/kickflow/models/proxy_applicant.rb +334 -0
  211. data/lib/kickflow/models/proxy_approver.rb +334 -0
  212. data/lib/kickflow/models/role.rb +346 -0
  213. data/lib/kickflow/models/role_create_body.rb +242 -0
  214. data/lib/kickflow/models/role_create_body_permission_list_inner.rb +309 -0
  215. data/lib/kickflow/models/role_detail.rb +372 -0
  216. data/lib/kickflow/models/role_detail_all_of_permission_list.rb +330 -0
  217. data/lib/kickflow/models/role_update_body.rb +228 -0
  218. data/lib/kickflow/models/role_update_body_permission_list_inner.rb +330 -0
  219. data/lib/kickflow/models/route.rb +429 -0
  220. data/lib/kickflow/models/route_detail.rb +453 -0
  221. data/lib/kickflow/models/route_step.rb +495 -0
  222. data/lib/kickflow/models/route_step_condition.rb +292 -0
  223. data/lib/kickflow/models/route_step_condition_field.rb +293 -0
  224. data/lib/kickflow/models/route_step_target.rb +246 -0
  225. data/lib/kickflow/models/section.rb +336 -0
  226. data/lib/kickflow/models/slip_field.rb +535 -0
  227. data/lib/kickflow/models/slip_field_detail.rb +562 -0
  228. data/lib/kickflow/models/slip_item.rb +276 -0
  229. data/lib/kickflow/models/slip_item_input.rb +324 -0
  230. data/lib/kickflow/models/slip_item_input_value.rb +107 -0
  231. data/lib/kickflow/models/sub_status.rb +302 -0
  232. data/lib/kickflow/models/team.rb +399 -0
  233. data/lib/kickflow/models/team_create_body.rb +253 -0
  234. data/lib/kickflow/models/team_detail.rb +454 -0
  235. data/lib/kickflow/models/team_update_body.rb +246 -0
  236. data/lib/kickflow/models/ticket.rb +540 -0
  237. data/lib/kickflow/models/ticket_assignee.rb +303 -0
  238. data/lib/kickflow/models/ticket_detail.rb +684 -0
  239. data/lib/kickflow/models/ticket_detail_all_of_cloud_sign_document.rb +375 -0
  240. data/lib/kickflow/models/ticket_input.rb +308 -0
  241. data/lib/kickflow/models/ticket_input_value.rb +107 -0
  242. data/lib/kickflow/models/ticket_section.rb +259 -0
  243. data/lib/kickflow/models/ticket_step.rb +471 -0
  244. data/lib/kickflow/models/ticket_viewer.rb +259 -0
  245. data/lib/kickflow/models/ticket_workflow.rb +105 -0
  246. data/lib/kickflow/models/user.rb +558 -0
  247. data/lib/kickflow/models/user_detail.rb +565 -0
  248. data/lib/kickflow/models/user_image.rb +222 -0
  249. data/lib/kickflow/models/workflow.rb +693 -0
  250. data/lib/kickflow/models/workflow_detail.rb +796 -0
  251. data/lib/kickflow/models/workflow_in_ticket.rb +770 -0
  252. data/lib/kickflow/models/workflow_in_ticket_all_of_cloud_sign_setting.rb +222 -0
  253. data/lib/kickflow/models/workflow_route_condition.rb +364 -0
  254. data/lib/kickflow/models/workflow_route_condition_field.rb +305 -0
  255. data/lib/kickflow/models/workflow_ticket_viewer.rb +259 -0
  256. data/lib/kickflow/version.rb +15 -0
  257. data/lib/kickflow.rb +159 -0
  258. data/manifest.scm +1 -0
  259. data/manifest.scm~ +1 -0
  260. data/pkg/kickflow-0.1.0.gem +0 -0
  261. data/sig/kickflow.rbs +4 -0
  262. data/spec/api/_api_spec.rb +1260 -0
  263. data/spec/models/attachment_spec.rb +48 -0
  264. data/spec/models/category_spec.rb +54 -0
  265. data/spec/models/climber_cloud_setting_mappings_inner_spec.rb +42 -0
  266. data/spec/models/climber_cloud_setting_spec.rb +54 -0
  267. data/spec/models/comment_spec.rb +78 -0
  268. data/spec/models/delete_teams_team_id_members_request_spec.rb +36 -0
  269. data/spec/models/external_api_setting_headers_inner_spec.rb +42 -0
  270. data/spec/models/external_api_setting_mappings_inner_spec.rb +54 -0
  271. data/spec/models/external_api_setting_spec.rb +76 -0
  272. data/spec/models/folder_detail_spec.rb +96 -0
  273. data/spec/models/folder_spec.rb +84 -0
  274. data/spec/models/form_field_detail_spec.rb +194 -0
  275. data/spec/models/form_field_spec.rb +170 -0
  276. data/spec/models/general_master_field_spec.rb +94 -0
  277. data/spec/models/general_master_item_inputs_inner_spec.rb +60 -0
  278. data/spec/models/general_master_item_inputs_inner_value_spec.rb +21 -0
  279. data/spec/models/general_master_item_spec.rb +84 -0
  280. data/spec/models/general_master_spec.rb +72 -0
  281. data/spec/models/get_files_signed_id200_response_spec.rb +66 -0
  282. data/spec/models/get_tickets_status_parameter_spec.rb +32 -0
  283. data/spec/models/grade_create_body_spec.rb +48 -0
  284. data/spec/models/grade_spec.rb +72 -0
  285. data/spec/models/grade_update_body_spec.rb +48 -0
  286. data/spec/models/label_spec.rb +66 -0
  287. data/spec/models/member_user_spec.rb +124 -0
  288. data/spec/models/organization_chart_activation_plan_spec.rb +54 -0
  289. data/spec/models/organization_chart_body_spec.rb +36 -0
  290. data/spec/models/organization_chart_detail_spec.rb +78 -0
  291. data/spec/models/organization_chart_spec.rb +78 -0
  292. data/spec/models/patch_folders_folder_id_request_spec.rb +54 -0
  293. data/spec/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner_spec.rb +42 -0
  294. data/spec/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner_value_spec.rb +32 -0
  295. data/spec/models/patch_general_masters_general_master_id_items_item_id_request_spec.rb +66 -0
  296. data/spec/models/patch_general_masters_general_master_id_request_fields_inner_spec.rb +72 -0
  297. data/spec/models/patch_general_masters_general_master_id_request_spec.rb +54 -0
  298. data/spec/models/patch_teams_team_id_memberships_user_id_request_spec.rb +42 -0
  299. data/spec/models/patch_tickets_id_comments_comment_id_request_spec.rb +36 -0
  300. data/spec/models/patch_tickets_ticket_id_request_cloud_sign_document_spec.rb +48 -0
  301. data/spec/models/patch_tickets_ticket_id_request_inputs_inner_spec.rb +78 -0
  302. data/spec/models/patch_tickets_ticket_id_request_slip_items_inner_inputs_inner_spec.rb +60 -0
  303. data/spec/models/patch_tickets_ticket_id_request_slip_items_inner_spec.rb +36 -0
  304. data/spec/models/patch_tickets_ticket_id_request_spec.rb +76 -0
  305. data/spec/models/patch_users_user_id_request_spec.rb +60 -0
  306. data/spec/models/post_categories_request_spec.rb +36 -0
  307. data/spec/models/post_files200_response_spec.rb +36 -0
  308. data/spec/models/post_folders_request_spec.rb +54 -0
  309. data/spec/models/post_general_masters_general_master_id_items_request_inputs_inner_spec.rb +42 -0
  310. data/spec/models/post_general_masters_general_master_id_items_request_inputs_inner_value_spec.rb +32 -0
  311. data/spec/models/post_general_masters_general_master_id_items_request_spec.rb +66 -0
  312. data/spec/models/post_general_masters_request_fields_inner_spec.rb +76 -0
  313. data/spec/models/post_general_masters_request_spec.rb +54 -0
  314. data/spec/models/post_organization_charts_organization_chart_id_activate_request_spec.rb +36 -0
  315. data/spec/models/post_proxy_applicants_request_spec.rb +60 -0
  316. data/spec/models/post_proxy_approvers_request_spec.rb +60 -0
  317. data/spec/models/post_roles_role_id_memberships_request_spec.rb +36 -0
  318. data/spec/models/post_teams_team_id_members_request_spec.rb +36 -0
  319. data/spec/models/post_teams_team_id_members_request_users_inner_spec.rb +48 -0
  320. data/spec/models/post_tickets_id_comments_request_spec.rb +42 -0
  321. data/spec/models/post_tickets_id_viewers_request_spec.rb +48 -0
  322. data/spec/models/post_tickets_id_viewers_request_team_id_spec.rb +21 -0
  323. data/spec/models/post_tickets_id_viewers_request_user_id_spec.rb +21 -0
  324. data/spec/models/post_tickets_request_cloud_sign_document_spec.rb +48 -0
  325. data/spec/models/post_tickets_request_inputs_inner_spec.rb +78 -0
  326. data/spec/models/post_tickets_request_inputs_inner_team_id_spec.rb +32 -0
  327. data/spec/models/post_tickets_request_inputs_inner_ticket_id_spec.rb +32 -0
  328. data/spec/models/post_tickets_request_inputs_inner_user_id_spec.rb +32 -0
  329. data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_general_master_item_id_spec.rb +32 -0
  330. data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_spec.rb +60 -0
  331. data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_value_spec.rb +32 -0
  332. data/spec/models/post_tickets_request_slip_items_inner_spec.rb +36 -0
  333. data/spec/models/post_tickets_request_spec.rb +82 -0
  334. data/spec/models/post_tickets_ticket_id_reject_request_spec.rb +36 -0
  335. data/spec/models/post_users_request_spec.rb +66 -0
  336. data/spec/models/proxy_applicant_spec.rb +78 -0
  337. data/spec/models/proxy_approver_spec.rb +78 -0
  338. data/spec/models/role_create_body_permission_list_inner_spec.rb +64 -0
  339. data/spec/models/role_create_body_spec.rb +42 -0
  340. data/spec/models/role_detail_all_of_permission_list_spec.rb +64 -0
  341. data/spec/models/role_detail_spec.rb +72 -0
  342. data/spec/models/role_spec.rb +66 -0
  343. data/spec/models/role_update_body_permission_list_inner_spec.rb +64 -0
  344. data/spec/models/role_update_body_spec.rb +42 -0
  345. data/spec/models/route_detail_spec.rb +112 -0
  346. data/spec/models/route_spec.rb +106 -0
  347. data/spec/models/route_step_condition_field_spec.rb +84 -0
  348. data/spec/models/route_step_condition_spec.rb +62 -0
  349. data/spec/models/route_step_spec.rb +126 -0
  350. data/spec/models/route_step_target_spec.rb +54 -0
  351. data/spec/models/section_spec.rb +78 -0
  352. data/spec/models/slip_field_detail_spec.rb +166 -0
  353. data/spec/models/slip_field_spec.rb +154 -0
  354. data/spec/models/slip_item_input_spec.rb +72 -0
  355. data/spec/models/slip_item_input_value_spec.rb +21 -0
  356. data/spec/models/slip_item_spec.rb +54 -0
  357. data/spec/models/sub_status_spec.rb +66 -0
  358. data/spec/models/team_create_body_spec.rb +54 -0
  359. data/spec/models/team_detail_spec.rb +96 -0
  360. data/spec/models/team_spec.rb +78 -0
  361. data/spec/models/team_update_body_spec.rb +54 -0
  362. data/spec/models/ticket_assignee_spec.rb +66 -0
  363. data/spec/models/ticket_detail_all_of_cloud_sign_document_spec.rb +82 -0
  364. data/spec/models/ticket_detail_spec.rb +194 -0
  365. data/spec/models/ticket_input_spec.rb +78 -0
  366. data/spec/models/ticket_input_value_spec.rb +21 -0
  367. data/spec/models/ticket_section_spec.rb +48 -0
  368. data/spec/models/ticket_spec.rb +140 -0
  369. data/spec/models/ticket_step_spec.rb +122 -0
  370. data/spec/models/ticket_viewer_spec.rb +54 -0
  371. data/spec/models/ticket_workflow_spec.rb +21 -0
  372. data/spec/models/user_detail_spec.rb +112 -0
  373. data/spec/models/user_image_spec.rb +36 -0
  374. data/spec/models/user_spec.rb +112 -0
  375. data/spec/models/workflow_detail_spec.rb +226 -0
  376. data/spec/models/workflow_in_ticket_all_of_cloud_sign_setting_spec.rb +36 -0
  377. data/spec/models/workflow_in_ticket_spec.rb +220 -0
  378. data/spec/models/workflow_route_condition_field_spec.rb +72 -0
  379. data/spec/models/workflow_route_condition_spec.rb +80 -0
  380. data/spec/models/workflow_spec.rb +196 -0
  381. data/spec/models/workflow_ticket_viewer_spec.rb +54 -0
  382. data/spec/spec_helper.rb +111 -0
  383. data/vendor/schema.yaml +6258 -0
  384. metadata +600 -0
@@ -0,0 +1,620 @@
1
+ =begin
2
+ #kickflow REST API v1
3
+
4
+ #kickflowの開発者用REST API (v1)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.7.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Kickflow
17
+ # チームの所属メンバー
18
+ class MemberUser
19
+ # UUID
20
+ attr_accessor :id
21
+
22
+ # メールアドレス
23
+ attr_accessor :email
24
+
25
+ # コード
26
+ attr_accessor :code
27
+
28
+ # 名
29
+ attr_accessor :first_name
30
+
31
+ # 姓
32
+ attr_accessor :last_name
33
+
34
+ # フルネーム
35
+ attr_accessor :full_name
36
+
37
+ # 社員番号
38
+ attr_accessor :employee_id
39
+
40
+ attr_accessor :image
41
+
42
+ # ステータス
43
+ attr_accessor :status
44
+
45
+ # ロケール(jaまたはen)
46
+ attr_accessor :locale
47
+
48
+ # 作成日時
49
+ attr_accessor :created_at
50
+
51
+ # 更新日時
52
+ attr_accessor :updated_at
53
+
54
+ # 削除日時
55
+ attr_accessor :deactivated_at
56
+
57
+ # 役職
58
+ attr_accessor :grades
59
+
60
+ # リーダーかどうか
61
+ attr_accessor :leader
62
+
63
+ class EnumAttributeValidator
64
+ attr_reader :datatype
65
+ attr_reader :allowable_values
66
+
67
+ def initialize(datatype, allowable_values)
68
+ @allowable_values = allowable_values.map do |value|
69
+ case datatype.to_s
70
+ when /Integer/i
71
+ value.to_i
72
+ when /Float/i
73
+ value.to_f
74
+ else
75
+ value
76
+ end
77
+ end
78
+ end
79
+
80
+ def valid?(value)
81
+ !value || allowable_values.include?(value)
82
+ end
83
+ end
84
+
85
+ # Attribute mapping from ruby-style variable name to JSON key.
86
+ def self.attribute_map
87
+ {
88
+ :'id' => :'id',
89
+ :'email' => :'email',
90
+ :'code' => :'code',
91
+ :'first_name' => :'firstName',
92
+ :'last_name' => :'lastName',
93
+ :'full_name' => :'fullName',
94
+ :'employee_id' => :'employeeId',
95
+ :'image' => :'image',
96
+ :'status' => :'status',
97
+ :'locale' => :'locale',
98
+ :'created_at' => :'createdAt',
99
+ :'updated_at' => :'updatedAt',
100
+ :'deactivated_at' => :'deactivatedAt',
101
+ :'grades' => :'grades',
102
+ :'leader' => :'leader'
103
+ }
104
+ end
105
+
106
+ # Returns all the JSON keys this model knows about
107
+ def self.acceptable_attributes
108
+ attribute_map.values
109
+ end
110
+
111
+ # Attribute type mapping.
112
+ def self.openapi_types
113
+ {
114
+ :'id' => :'String',
115
+ :'email' => :'String',
116
+ :'code' => :'String',
117
+ :'first_name' => :'String',
118
+ :'last_name' => :'String',
119
+ :'full_name' => :'String',
120
+ :'employee_id' => :'String',
121
+ :'image' => :'UserImage',
122
+ :'status' => :'String',
123
+ :'locale' => :'String',
124
+ :'created_at' => :'Time',
125
+ :'updated_at' => :'Time',
126
+ :'deactivated_at' => :'Time',
127
+ :'grades' => :'Array<Grade>',
128
+ :'leader' => :'Boolean'
129
+ }
130
+ end
131
+
132
+ # List of attributes with nullable: true
133
+ def self.openapi_nullable
134
+ Set.new([
135
+ :'employee_id',
136
+ :'deactivated_at',
137
+ ])
138
+ end
139
+
140
+ # List of class defined in allOf (OpenAPI v3)
141
+ def self.openapi_all_of
142
+ [
143
+ :'User'
144
+ ]
145
+ end
146
+
147
+ # Initializes the object
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ def initialize(attributes = {})
150
+ if (!attributes.is_a?(Hash))
151
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Kickflow::MemberUser` initialize method"
152
+ end
153
+
154
+ # check to see if the attribute exists and convert string to symbol for hash key
155
+ attributes = attributes.each_with_object({}) { |(k, v), h|
156
+ if (!self.class.attribute_map.key?(k.to_sym))
157
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Kickflow::MemberUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
158
+ end
159
+ h[k.to_sym] = v
160
+ }
161
+
162
+ if attributes.key?(:'id')
163
+ self.id = attributes[:'id']
164
+ else
165
+ self.id = nil
166
+ end
167
+
168
+ if attributes.key?(:'email')
169
+ self.email = attributes[:'email']
170
+ else
171
+ self.email = nil
172
+ end
173
+
174
+ if attributes.key?(:'code')
175
+ self.code = attributes[:'code']
176
+ else
177
+ self.code = nil
178
+ end
179
+
180
+ if attributes.key?(:'first_name')
181
+ self.first_name = attributes[:'first_name']
182
+ else
183
+ self.first_name = nil
184
+ end
185
+
186
+ if attributes.key?(:'last_name')
187
+ self.last_name = attributes[:'last_name']
188
+ else
189
+ self.last_name = nil
190
+ end
191
+
192
+ if attributes.key?(:'full_name')
193
+ self.full_name = attributes[:'full_name']
194
+ else
195
+ self.full_name = nil
196
+ end
197
+
198
+ if attributes.key?(:'employee_id')
199
+ self.employee_id = attributes[:'employee_id']
200
+ end
201
+
202
+ if attributes.key?(:'image')
203
+ self.image = attributes[:'image']
204
+ else
205
+ self.image = nil
206
+ end
207
+
208
+ if attributes.key?(:'status')
209
+ self.status = attributes[:'status']
210
+ else
211
+ self.status = nil
212
+ end
213
+
214
+ if attributes.key?(:'locale')
215
+ self.locale = attributes[:'locale']
216
+ else
217
+ self.locale = nil
218
+ end
219
+
220
+ if attributes.key?(:'created_at')
221
+ self.created_at = attributes[:'created_at']
222
+ else
223
+ self.created_at = nil
224
+ end
225
+
226
+ if attributes.key?(:'updated_at')
227
+ self.updated_at = attributes[:'updated_at']
228
+ else
229
+ self.updated_at = nil
230
+ end
231
+
232
+ if attributes.key?(:'deactivated_at')
233
+ self.deactivated_at = attributes[:'deactivated_at']
234
+ end
235
+
236
+ if attributes.key?(:'grades')
237
+ if (value = attributes[:'grades']).is_a?(Array)
238
+ self.grades = value
239
+ end
240
+ else
241
+ self.grades = nil
242
+ end
243
+
244
+ if attributes.key?(:'leader')
245
+ self.leader = attributes[:'leader']
246
+ else
247
+ self.leader = nil
248
+ end
249
+ end
250
+
251
+ # Show invalid properties with the reasons. Usually used together with valid?
252
+ # @return Array for valid properties with the reasons
253
+ def list_invalid_properties
254
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
255
+ invalid_properties = Array.new
256
+ if @id.nil?
257
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
258
+ end
259
+
260
+ if @email.nil?
261
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
262
+ end
263
+
264
+ if @email.to_s.length > 255
265
+ invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
266
+ end
267
+
268
+ if @code.nil?
269
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
270
+ end
271
+
272
+ if @code.to_s.length > 255
273
+ invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 255.')
274
+ end
275
+
276
+ if @first_name.nil?
277
+ invalid_properties.push('invalid value for "first_name", first_name cannot be nil.')
278
+ end
279
+
280
+ if @first_name.to_s.length > 255
281
+ invalid_properties.push('invalid value for "first_name", the character length must be smaller than or equal to 255.')
282
+ end
283
+
284
+ if @last_name.nil?
285
+ invalid_properties.push('invalid value for "last_name", last_name cannot be nil.')
286
+ end
287
+
288
+ if @last_name.to_s.length > 255
289
+ invalid_properties.push('invalid value for "last_name", the character length must be smaller than or equal to 255.')
290
+ end
291
+
292
+ if @full_name.nil?
293
+ invalid_properties.push('invalid value for "full_name", full_name cannot be nil.')
294
+ end
295
+
296
+ if @full_name.to_s.length > 255
297
+ invalid_properties.push('invalid value for "full_name", the character length must be smaller than or equal to 255.')
298
+ end
299
+
300
+ if !@employee_id.nil? && @employee_id.to_s.length > 255
301
+ invalid_properties.push('invalid value for "employee_id", the character length must be smaller than or equal to 255.')
302
+ end
303
+
304
+ if @image.nil?
305
+ invalid_properties.push('invalid value for "image", image cannot be nil.')
306
+ end
307
+
308
+ if @status.nil?
309
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
310
+ end
311
+
312
+ if @locale.nil?
313
+ invalid_properties.push('invalid value for "locale", locale cannot be nil.')
314
+ end
315
+
316
+ if @created_at.nil?
317
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
318
+ end
319
+
320
+ if @updated_at.nil?
321
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
322
+ end
323
+
324
+ if @grades.nil?
325
+ invalid_properties.push('invalid value for "grades", grades cannot be nil.')
326
+ end
327
+
328
+ if @grades.length < 1
329
+ invalid_properties.push('invalid value for "grades", number of items must be greater than or equal to 1.')
330
+ end
331
+
332
+ if @leader.nil?
333
+ invalid_properties.push('invalid value for "leader", leader cannot be nil.')
334
+ end
335
+
336
+ invalid_properties
337
+ end
338
+
339
+ # Check to see if the all the properties in the model are valid
340
+ # @return true if the model is valid
341
+ def valid?
342
+ warn '[DEPRECATED] the `valid?` method is obsolete'
343
+ return false if @id.nil?
344
+ return false if @email.nil?
345
+ return false if @email.to_s.length > 255
346
+ return false if @code.nil?
347
+ return false if @code.to_s.length > 255
348
+ return false if @first_name.nil?
349
+ return false if @first_name.to_s.length > 255
350
+ return false if @last_name.nil?
351
+ return false if @last_name.to_s.length > 255
352
+ return false if @full_name.nil?
353
+ return false if @full_name.to_s.length > 255
354
+ return false if !@employee_id.nil? && @employee_id.to_s.length > 255
355
+ return false if @image.nil?
356
+ return false if @status.nil?
357
+ status_validator = EnumAttributeValidator.new('String', ["invited", "activated", "suspended", "deactivated"])
358
+ return false unless status_validator.valid?(@status)
359
+ return false if @locale.nil?
360
+ return false if @created_at.nil?
361
+ return false if @updated_at.nil?
362
+ return false if @grades.nil?
363
+ return false if @grades.length < 1
364
+ return false if @leader.nil?
365
+ true
366
+ end
367
+
368
+ # Custom attribute writer method with validation
369
+ # @param [Object] email Value to be assigned
370
+ def email=(email)
371
+ if email.nil?
372
+ fail ArgumentError, 'email cannot be nil'
373
+ end
374
+
375
+ if email.to_s.length > 255
376
+ fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 255.'
377
+ end
378
+
379
+ @email = email
380
+ end
381
+
382
+ # Custom attribute writer method with validation
383
+ # @param [Object] code Value to be assigned
384
+ def code=(code)
385
+ if code.nil?
386
+ fail ArgumentError, 'code cannot be nil'
387
+ end
388
+
389
+ if code.to_s.length > 255
390
+ fail ArgumentError, 'invalid value for "code", the character length must be smaller than or equal to 255.'
391
+ end
392
+
393
+ @code = code
394
+ end
395
+
396
+ # Custom attribute writer method with validation
397
+ # @param [Object] first_name Value to be assigned
398
+ def first_name=(first_name)
399
+ if first_name.nil?
400
+ fail ArgumentError, 'first_name cannot be nil'
401
+ end
402
+
403
+ if first_name.to_s.length > 255
404
+ fail ArgumentError, 'invalid value for "first_name", the character length must be smaller than or equal to 255.'
405
+ end
406
+
407
+ @first_name = first_name
408
+ end
409
+
410
+ # Custom attribute writer method with validation
411
+ # @param [Object] last_name Value to be assigned
412
+ def last_name=(last_name)
413
+ if last_name.nil?
414
+ fail ArgumentError, 'last_name cannot be nil'
415
+ end
416
+
417
+ if last_name.to_s.length > 255
418
+ fail ArgumentError, 'invalid value for "last_name", the character length must be smaller than or equal to 255.'
419
+ end
420
+
421
+ @last_name = last_name
422
+ end
423
+
424
+ # Custom attribute writer method with validation
425
+ # @param [Object] full_name Value to be assigned
426
+ def full_name=(full_name)
427
+ if full_name.nil?
428
+ fail ArgumentError, 'full_name cannot be nil'
429
+ end
430
+
431
+ if full_name.to_s.length > 255
432
+ fail ArgumentError, 'invalid value for "full_name", the character length must be smaller than or equal to 255.'
433
+ end
434
+
435
+ @full_name = full_name
436
+ end
437
+
438
+ # Custom attribute writer method with validation
439
+ # @param [Object] employee_id Value to be assigned
440
+ def employee_id=(employee_id)
441
+ if !employee_id.nil? && employee_id.to_s.length > 255
442
+ fail ArgumentError, 'invalid value for "employee_id", the character length must be smaller than or equal to 255.'
443
+ end
444
+
445
+ @employee_id = employee_id
446
+ end
447
+
448
+ # Custom attribute writer method checking allowed values (enum).
449
+ # @param [Object] status Object to be assigned
450
+ def status=(status)
451
+ validator = EnumAttributeValidator.new('String', ["invited", "activated", "suspended", "deactivated"])
452
+ unless validator.valid?(status)
453
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
454
+ end
455
+ @status = status
456
+ end
457
+
458
+ # Custom attribute writer method with validation
459
+ # @param [Object] grades Value to be assigned
460
+ def grades=(grades)
461
+ if grades.nil?
462
+ fail ArgumentError, 'grades cannot be nil'
463
+ end
464
+
465
+ if grades.length < 1
466
+ fail ArgumentError, 'invalid value for "grades", number of items must be greater than or equal to 1.'
467
+ end
468
+
469
+ @grades = grades
470
+ end
471
+
472
+ # Checks equality by comparing each attribute.
473
+ # @param [Object] Object to be compared
474
+ def ==(o)
475
+ return true if self.equal?(o)
476
+ self.class == o.class &&
477
+ id == o.id &&
478
+ email == o.email &&
479
+ code == o.code &&
480
+ first_name == o.first_name &&
481
+ last_name == o.last_name &&
482
+ full_name == o.full_name &&
483
+ employee_id == o.employee_id &&
484
+ image == o.image &&
485
+ status == o.status &&
486
+ locale == o.locale &&
487
+ created_at == o.created_at &&
488
+ updated_at == o.updated_at &&
489
+ deactivated_at == o.deactivated_at &&
490
+ grades == o.grades &&
491
+ leader == o.leader
492
+ end
493
+
494
+ # @see the `==` method
495
+ # @param [Object] Object to be compared
496
+ def eql?(o)
497
+ self == o
498
+ end
499
+
500
+ # Calculates hash code according to all attributes.
501
+ # @return [Integer] Hash code
502
+ def hash
503
+ [id, email, code, first_name, last_name, full_name, employee_id, image, status, locale, created_at, updated_at, deactivated_at, grades, leader].hash
504
+ end
505
+
506
+ # Builds the object from hash
507
+ # @param [Hash] attributes Model attributes in the form of hash
508
+ # @return [Object] Returns the model itself
509
+ def self.build_from_hash(attributes)
510
+ return nil unless attributes.is_a?(Hash)
511
+ attributes = attributes.transform_keys(&:to_sym)
512
+ transformed_hash = {}
513
+ openapi_types.each_pair do |key, type|
514
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
515
+ transformed_hash["#{key}"] = nil
516
+ elsif type =~ /\AArray<(.*)>/i
517
+ # check to ensure the input is an array given that the attribute
518
+ # is documented as an array but the input is not
519
+ if attributes[attribute_map[key]].is_a?(Array)
520
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
521
+ end
522
+ elsif !attributes[attribute_map[key]].nil?
523
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
524
+ end
525
+ end
526
+ new(transformed_hash)
527
+ end
528
+
529
+ # Deserializes the data based on type
530
+ # @param string type Data type
531
+ # @param string value Value to be deserialized
532
+ # @return [Object] Deserialized data
533
+ def self._deserialize(type, value)
534
+ case type.to_sym
535
+ when :Time
536
+ Time.parse(value)
537
+ when :Date
538
+ Date.parse(value)
539
+ when :String
540
+ value.to_s
541
+ when :Integer
542
+ value.to_i
543
+ when :Float
544
+ value.to_f
545
+ when :Boolean
546
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
547
+ true
548
+ else
549
+ false
550
+ end
551
+ when :Object
552
+ # generic object (usually a Hash), return directly
553
+ value
554
+ when /\AArray<(?<inner_type>.+)>\z/
555
+ inner_type = Regexp.last_match[:inner_type]
556
+ value.map { |v| _deserialize(inner_type, v) }
557
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
558
+ k_type = Regexp.last_match[:k_type]
559
+ v_type = Regexp.last_match[:v_type]
560
+ {}.tap do |hash|
561
+ value.each do |k, v|
562
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
563
+ end
564
+ end
565
+ else # model
566
+ # models (e.g. Pet) or oneOf
567
+ klass = Kickflow.const_get(type)
568
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
569
+ end
570
+ end
571
+
572
+ # Returns the string representation of the object
573
+ # @return [String] String presentation of the object
574
+ def to_s
575
+ to_hash.to_s
576
+ end
577
+
578
+ # to_body is an alias to to_hash (backward compatibility)
579
+ # @return [Hash] Returns the object in the form of hash
580
+ def to_body
581
+ to_hash
582
+ end
583
+
584
+ # Returns the object in the form of hash
585
+ # @return [Hash] Returns the object in the form of hash
586
+ def to_hash
587
+ hash = {}
588
+ self.class.attribute_map.each_pair do |attr, param|
589
+ value = self.send(attr)
590
+ if value.nil?
591
+ is_nullable = self.class.openapi_nullable.include?(attr)
592
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
593
+ end
594
+
595
+ hash[param] = _to_hash(value)
596
+ end
597
+ hash
598
+ end
599
+
600
+ # Outputs non-array value in the form of hash
601
+ # For object, use to_hash. Otherwise, just return the value
602
+ # @param [Object] value Any valid value
603
+ # @return [Hash] Returns the value in the form of hash
604
+ def _to_hash(value)
605
+ if value.is_a?(Array)
606
+ value.compact.map { |v| _to_hash(v) }
607
+ elsif value.is_a?(Hash)
608
+ {}.tap do |hash|
609
+ value.each { |k, v| hash[k] = _to_hash(v) }
610
+ end
611
+ elsif value.respond_to? :to_hash
612
+ value.to_hash
613
+ else
614
+ value
615
+ end
616
+ end
617
+
618
+ end
619
+
620
+ end