yousign_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (279) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +230 -0
  4. data/Rakefile +8 -0
  5. data/config.json +11 -0
  6. data/docs/AuthenticationEmailOutput.md +10 -0
  7. data/docs/AuthenticationInweboOutput.md +10 -0
  8. data/docs/AuthenticationSmsOutput.md +10 -0
  9. data/docs/AuthenticationsApi.md +320 -0
  10. data/docs/Body.md +8 -0
  11. data/docs/Body1.md +9 -0
  12. data/docs/Body2.md +9 -0
  13. data/docs/CheckDocumentBankAccountsInput.md +13 -0
  14. data/docs/CheckDocumentBankAccountsOutput.md +24 -0
  15. data/docs/CheckDocumentIdentitiesInput.md +11 -0
  16. data/docs/CheckDocumentIdentitiesOutput.md +28 -0
  17. data/docs/CheckDocumentsApi.md +210 -0
  18. data/docs/ConfigEmailTemplate.md +11 -0
  19. data/docs/ConfigWebhookTemplate.md +10 -0
  20. data/docs/ConsentProcessInput.md +14 -0
  21. data/docs/ConsentProcessOutput.md +15 -0
  22. data/docs/ConsentProcessValueInput.md +10 -0
  23. data/docs/ConsentProcessValueOutput.md +12 -0
  24. data/docs/ConsentProcessesApi.md +422 -0
  25. data/docs/FileInput.md +15 -0
  26. data/docs/FileInputMetadata.md +9 -0
  27. data/docs/FileObjectInput.md +21 -0
  28. data/docs/FileObjectInputWithoutFileReference.md +13 -0
  29. data/docs/FileObjectOutput.md +24 -0
  30. data/docs/FileObjectOutputWithoutFileReference.md +17 -0
  31. data/docs/FileObjectsApi.md +220 -0
  32. data/docs/FileOutput.md +19 -0
  33. data/docs/FilesApi.md +218 -0
  34. data/docs/InlineResponse400.md +8 -0
  35. data/docs/InweboUserRequest.md +8 -0
  36. data/docs/MemberInput.md +19 -0
  37. data/docs/MemberOutput.md +24 -0
  38. data/docs/MembersApi.md +272 -0
  39. data/docs/ModeSmsConfiguration.md +8 -0
  40. data/docs/OperationInput.md +14 -0
  41. data/docs/OperationOutput.md +15 -0
  42. data/docs/OperationOutputMetadata.md +9 -0
  43. data/docs/OperationsApi.md +109 -0
  44. data/docs/OrganizationBillingAddress.md +16 -0
  45. data/docs/OrganizationOutput.md +41 -0
  46. data/docs/OrganizationsApi.md +54 -0
  47. data/docs/ProcedureConfig.md +10 -0
  48. data/docs/ProcedureConfigEmail.md +15 -0
  49. data/docs/ProcedureConfigReminder.md +10 -0
  50. data/docs/ProcedureConfigReminderConfig.md +8 -0
  51. data/docs/ProcedureConfigReminderConfigEmail.md +8 -0
  52. data/docs/ProcedureConfigWebhook.md +15 -0
  53. data/docs/ProcedureDuplicateInput.md +9 -0
  54. data/docs/ProcedureInput.md +18 -0
  55. data/docs/ProcedureInputMetadata.md +9 -0
  56. data/docs/ProcedureOutput.md +27 -0
  57. data/docs/ProcedureOutputMetadata.md +9 -0
  58. data/docs/ProcedureRemindConfig.md +8 -0
  59. data/docs/ProcedureRemindConfigEmail.md +8 -0
  60. data/docs/ProcedureRemindInput.md +8 -0
  61. data/docs/ProceduresApi.md +527 -0
  62. data/docs/ServerStampConfig.md +8 -0
  63. data/docs/ServerStampConfigWebhook.md +8 -0
  64. data/docs/ServerStampInput.md +12 -0
  65. data/docs/ServerStampOutput.md +17 -0
  66. data/docs/ServerStampsApi.md +109 -0
  67. data/docs/SignatureUIsApi.md +545 -0
  68. data/docs/SignatureUiInput.md +28 -0
  69. data/docs/SignatureUiInputRedirectCancel.md +10 -0
  70. data/docs/SignatureUiInputRedirectError.md +10 -0
  71. data/docs/SignatureUiInputRedirectSuccess.md +10 -0
  72. data/docs/SignatureUiInputUpdate.md +27 -0
  73. data/docs/SignatureUiLabelInput.md +10 -0
  74. data/docs/SignatureUiLabelInputIncluded.md +9 -0
  75. data/docs/SignatureUiLabelOutput.md +14 -0
  76. data/docs/SignatureUiOutput.md +33 -0
  77. data/docs/SignatureUiOutputRedirectCancel.md +10 -0
  78. data/docs/SignatureUiOutputRedirectError.md +10 -0
  79. data/docs/SignatureUiOutputRedirectSuccess.md +10 -0
  80. data/docs/UserGroup.md +10 -0
  81. data/docs/UserGroupsApi.md +103 -0
  82. data/docs/UserInput.md +17 -0
  83. data/docs/UserInputNotifications.md +8 -0
  84. data/docs/UserOutput.md +29 -0
  85. data/docs/UserOutputNotifications.md +8 -0
  86. data/docs/UserWorkspaceOutput.md +9 -0
  87. data/docs/UsersApi.md +258 -0
  88. data/docs/WorkspaceConfig.md +10 -0
  89. data/docs/WorkspaceConfigEmail.md +15 -0
  90. data/docs/WorkspaceConfigProcedure.md +8 -0
  91. data/docs/WorkspaceOutput.md +16 -0
  92. data/docs/WorkspacesApi.md +54 -0
  93. data/git_push.sh +55 -0
  94. data/lib/yousign_client.rb +126 -0
  95. data/lib/yousign_client/api/authentications_api.rb +410 -0
  96. data/lib/yousign_client/api/check_documents_api.rb +269 -0
  97. data/lib/yousign_client/api/consent_processes_api.rb +528 -0
  98. data/lib/yousign_client/api/file_objects_api.rb +282 -0
  99. data/lib/yousign_client/api/files_api.rb +279 -0
  100. data/lib/yousign_client/api/members_api.rb +340 -0
  101. data/lib/yousign_client/api/operations_api.rb +148 -0
  102. data/lib/yousign_client/api/organizations_api.rb +76 -0
  103. data/lib/yousign_client/api/procedures_api.rb +680 -0
  104. data/lib/yousign_client/api/server_stamps_api.rb +146 -0
  105. data/lib/yousign_client/api/signature_u_is_api.rb +669 -0
  106. data/lib/yousign_client/api/user_groups_api.rb +135 -0
  107. data/lib/yousign_client/api/users_api.rb +327 -0
  108. data/lib/yousign_client/api/workspaces_api.rb +76 -0
  109. data/lib/yousign_client/api_client.rb +391 -0
  110. data/lib/yousign_client/api_error.rb +38 -0
  111. data/lib/yousign_client/configuration.rb +209 -0
  112. data/lib/yousign_client/models/authentication_email_output.rb +239 -0
  113. data/lib/yousign_client/models/authentication_inwebo_output.rb +239 -0
  114. data/lib/yousign_client/models/authentication_sms_output.rb +239 -0
  115. data/lib/yousign_client/models/body.rb +185 -0
  116. data/lib/yousign_client/models/body_1.rb +200 -0
  117. data/lib/yousign_client/models/body_2.rb +200 -0
  118. data/lib/yousign_client/models/check_document_bank_accounts_input.rb +240 -0
  119. data/lib/yousign_client/models/check_document_bank_accounts_output.rb +394 -0
  120. data/lib/yousign_client/models/check_document_identities_input.rb +222 -0
  121. data/lib/yousign_client/models/check_document_identities_output.rb +440 -0
  122. data/lib/yousign_client/models/config_email_template.rb +256 -0
  123. data/lib/yousign_client/models/config_webhook_template.rb +246 -0
  124. data/lib/yousign_client/models/consent_process_input.rb +293 -0
  125. data/lib/yousign_client/models/consent_process_output.rb +298 -0
  126. data/lib/yousign_client/models/consent_process_value_input.rb +215 -0
  127. data/lib/yousign_client/models/consent_process_value_output.rb +235 -0
  128. data/lib/yousign_client/models/file_input.rb +304 -0
  129. data/lib/yousign_client/models/file_input_metadata.rb +194 -0
  130. data/lib/yousign_client/models/file_object_input.rb +445 -0
  131. data/lib/yousign_client/models/file_object_input_without_file_reference.rb +252 -0
  132. data/lib/yousign_client/models/file_object_output.rb +489 -0
  133. data/lib/yousign_client/models/file_object_output_without_file_reference.rb +307 -0
  134. data/lib/yousign_client/models/file_output.rb +374 -0
  135. data/lib/yousign_client/models/inline_response_400.rb +185 -0
  136. data/lib/yousign_client/models/inwebo_user_request.rb +200 -0
  137. data/lib/yousign_client/models/member_input.rb +343 -0
  138. data/lib/yousign_client/models/member_output.rb +432 -0
  139. data/lib/yousign_client/models/mode_sms_configuration.rb +190 -0
  140. data/lib/yousign_client/models/operation_input.rb +313 -0
  141. data/lib/yousign_client/models/operation_output.rb +311 -0
  142. data/lib/yousign_client/models/operation_output_metadata.rb +194 -0
  143. data/lib/yousign_client/models/organization_billing_address.rb +256 -0
  144. data/lib/yousign_client/models/organization_output.rb +530 -0
  145. data/lib/yousign_client/models/procedure_config.rb +204 -0
  146. data/lib/yousign_client/models/procedure_config_email.rb +263 -0
  147. data/lib/yousign_client/models/procedure_config_reminder.rb +256 -0
  148. data/lib/yousign_client/models/procedure_config_reminder_config.rb +184 -0
  149. data/lib/yousign_client/models/procedure_config_reminder_config_email.rb +186 -0
  150. data/lib/yousign_client/models/procedure_config_webhook.rb +263 -0
  151. data/lib/yousign_client/models/procedure_duplicate_input.rb +197 -0
  152. data/lib/yousign_client/models/procedure_input.rb +289 -0
  153. data/lib/yousign_client/models/procedure_input_metadata.rb +194 -0
  154. data/lib/yousign_client/models/procedure_output.rb +457 -0
  155. data/lib/yousign_client/models/procedure_output_metadata.rb +194 -0
  156. data/lib/yousign_client/models/procedure_remind_config.rb +184 -0
  157. data/lib/yousign_client/models/procedure_remind_config_email.rb +186 -0
  158. data/lib/yousign_client/models/procedure_remind_input.rb +184 -0
  159. data/lib/yousign_client/models/server_stamp_config.rb +184 -0
  160. data/lib/yousign_client/models/server_stamp_config_webhook.rb +186 -0
  161. data/lib/yousign_client/models/server_stamp_input.rb +242 -0
  162. data/lib/yousign_client/models/server_stamp_output.rb +352 -0
  163. data/lib/yousign_client/models/signature_ui_input.rb +456 -0
  164. data/lib/yousign_client/models/signature_ui_input_redirect_cancel.rb +244 -0
  165. data/lib/yousign_client/models/signature_ui_input_redirect_error.rb +247 -0
  166. data/lib/yousign_client/models/signature_ui_input_redirect_success.rb +242 -0
  167. data/lib/yousign_client/models/signature_ui_input_update.rb +421 -0
  168. data/lib/yousign_client/models/signature_ui_label_input.rb +210 -0
  169. data/lib/yousign_client/models/signature_ui_label_input_included.rb +200 -0
  170. data/lib/yousign_client/models/signature_ui_label_output.rb +245 -0
  171. data/lib/yousign_client/models/signature_ui_output.rb +481 -0
  172. data/lib/yousign_client/models/signature_ui_output_redirect_cancel.rb +242 -0
  173. data/lib/yousign_client/models/signature_ui_output_redirect_error.rb +247 -0
  174. data/lib/yousign_client/models/signature_ui_output_redirect_success.rb +242 -0
  175. data/lib/yousign_client/models/user_group.rb +249 -0
  176. data/lib/yousign_client/models/user_input.rb +341 -0
  177. data/lib/yousign_client/models/user_input_notifications.rb +185 -0
  178. data/lib/yousign_client/models/user_output.rb +457 -0
  179. data/lib/yousign_client/models/user_output_notifications.rb +185 -0
  180. data/lib/yousign_client/models/user_workspace_output.rb +210 -0
  181. data/lib/yousign_client/models/workspace_config.rb +226 -0
  182. data/lib/yousign_client/models/workspace_config_email.rb +263 -0
  183. data/lib/yousign_client/models/workspace_config_procedure.rb +208 -0
  184. data/lib/yousign_client/models/workspace_output.rb +275 -0
  185. data/lib/yousign_client/version.rb +15 -0
  186. data/spec/api/authentications_api_spec.rb +113 -0
  187. data/spec/api/check_documents_api_spec.rb +85 -0
  188. data/spec/api/consent_processes_api_spec.rb +138 -0
  189. data/spec/api/file_objects_api_spec.rb +90 -0
  190. data/spec/api/files_api_spec.rb +89 -0
  191. data/spec/api/members_api_spec.rb +103 -0
  192. data/spec/api/operations_api_spec.rb +60 -0
  193. data/spec/api/organizations_api_spec.rb +46 -0
  194. data/spec/api/procedures_api_spec.rb +178 -0
  195. data/spec/api/server_stamps_api_spec.rb +60 -0
  196. data/spec/api/signature_u_is_api_spec.rb +170 -0
  197. data/spec/api/user_groups_api_spec.rb +58 -0
  198. data/spec/api/users_api_spec.rb +97 -0
  199. data/spec/api/workspaces_api_spec.rb +46 -0
  200. data/spec/api_client_spec.rb +243 -0
  201. data/spec/configuration_spec.rb +42 -0
  202. data/spec/models/authentication_email_output_spec.rb +57 -0
  203. data/spec/models/authentication_inwebo_output_spec.rb +57 -0
  204. data/spec/models/authentication_sms_output_spec.rb +57 -0
  205. data/spec/models/body_1_spec.rb +47 -0
  206. data/spec/models/body_2_spec.rb +47 -0
  207. data/spec/models/body_spec.rb +41 -0
  208. data/spec/models/check_document_bank_accounts_input_spec.rb +71 -0
  209. data/spec/models/check_document_bank_accounts_output_spec.rb +141 -0
  210. data/spec/models/check_document_identities_input_spec.rb +59 -0
  211. data/spec/models/check_document_identities_output_spec.rb +165 -0
  212. data/spec/models/config_email_template_spec.rb +63 -0
  213. data/spec/models/config_webhook_template_spec.rb +57 -0
  214. data/spec/models/consent_process_input_spec.rb +81 -0
  215. data/spec/models/consent_process_output_spec.rb +87 -0
  216. data/spec/models/consent_process_value_input_spec.rb +53 -0
  217. data/spec/models/consent_process_value_output_spec.rb +65 -0
  218. data/spec/models/file_input_metadata_spec.rb +47 -0
  219. data/spec/models/file_input_spec.rb +87 -0
  220. data/spec/models/file_object_input_spec.rb +127 -0
  221. data/spec/models/file_object_input_without_file_reference_spec.rb +71 -0
  222. data/spec/models/file_object_output_spec.rb +145 -0
  223. data/spec/models/file_object_output_without_file_reference_spec.rb +95 -0
  224. data/spec/models/file_output_spec.rb +111 -0
  225. data/spec/models/inline_response_400_spec.rb +41 -0
  226. data/spec/models/inwebo_user_request_spec.rb +41 -0
  227. data/spec/models/member_input_spec.rb +119 -0
  228. data/spec/models/member_output_spec.rb +153 -0
  229. data/spec/models/mode_sms_configuration_spec.rb +41 -0
  230. data/spec/models/operation_input_spec.rb +89 -0
  231. data/spec/models/operation_output_metadata_spec.rb +47 -0
  232. data/spec/models/operation_output_spec.rb +95 -0
  233. data/spec/models/organization_billing_address_spec.rb +89 -0
  234. data/spec/models/organization_output_spec.rb +239 -0
  235. data/spec/models/procedure_config_email_spec.rb +83 -0
  236. data/spec/models/procedure_config_reminder_config_email_spec.rb +41 -0
  237. data/spec/models/procedure_config_reminder_config_spec.rb +41 -0
  238. data/spec/models/procedure_config_reminder_spec.rb +53 -0
  239. data/spec/models/procedure_config_spec.rb +53 -0
  240. data/spec/models/procedure_config_webhook_spec.rb +83 -0
  241. data/spec/models/procedure_duplicate_input_spec.rb +47 -0
  242. data/spec/models/procedure_input_metadata_spec.rb +47 -0
  243. data/spec/models/procedure_input_spec.rb +101 -0
  244. data/spec/models/procedure_output_metadata_spec.rb +47 -0
  245. data/spec/models/procedure_output_spec.rb +159 -0
  246. data/spec/models/procedure_remind_config_email_spec.rb +41 -0
  247. data/spec/models/procedure_remind_config_spec.rb +41 -0
  248. data/spec/models/procedure_remind_input_spec.rb +41 -0
  249. data/spec/models/server_stamp_config_spec.rb +41 -0
  250. data/spec/models/server_stamp_config_webhook_spec.rb +41 -0
  251. data/spec/models/server_stamp_input_spec.rb +65 -0
  252. data/spec/models/server_stamp_output_spec.rb +99 -0
  253. data/spec/models/signature_ui_input_redirect_cancel_spec.rb +57 -0
  254. data/spec/models/signature_ui_input_redirect_error_spec.rb +57 -0
  255. data/spec/models/signature_ui_input_redirect_success_spec.rb +57 -0
  256. data/spec/models/signature_ui_input_spec.rb +165 -0
  257. data/spec/models/signature_ui_input_update_spec.rb +159 -0
  258. data/spec/models/signature_ui_label_input_included_spec.rb +47 -0
  259. data/spec/models/signature_ui_label_input_spec.rb +53 -0
  260. data/spec/models/signature_ui_label_output_spec.rb +77 -0
  261. data/spec/models/signature_ui_output_redirect_cancel_spec.rb +57 -0
  262. data/spec/models/signature_ui_output_redirect_error_spec.rb +57 -0
  263. data/spec/models/signature_ui_output_redirect_success_spec.rb +57 -0
  264. data/spec/models/signature_ui_output_spec.rb +195 -0
  265. data/spec/models/user_group_spec.rb +57 -0
  266. data/spec/models/user_input_notifications_spec.rb +41 -0
  267. data/spec/models/user_input_spec.rb +99 -0
  268. data/spec/models/user_output_notifications_spec.rb +41 -0
  269. data/spec/models/user_output_spec.rb +171 -0
  270. data/spec/models/user_workspace_output_spec.rb +47 -0
  271. data/spec/models/workspace_config_email_spec.rb +83 -0
  272. data/spec/models/workspace_config_procedure_spec.rb +45 -0
  273. data/spec/models/workspace_config_spec.rb +57 -0
  274. data/spec/models/workspace_output_spec.rb +89 -0
  275. data/spec/spec_helper.rb +111 -0
  276. data/update_client.sh +11 -0
  277. data/yousign_client.gemspec +45 -0
  278. data/yousign_openapi.json +5417 -0
  279. metadata +590 -0
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #Yousign API Swagger
3
+
4
+ #For your information, the Yousign API documentation is available at https://dev.yousign.com/
5
+
6
+ OpenAPI spec version: 2.1
7
+ Contact: support@yousign.fr
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module YousignClient
16
+ class OrganizationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List all Organizations
23
+ # @param authorization Authentication credentials for HTTP authentication
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Array<OrganizationOutput>]
26
+ def organizations_get(authorization, opts = {})
27
+ data, _status_code, _headers = organizations_get_with_http_info(authorization, opts)
28
+ data
29
+ end
30
+
31
+ # List all Organizations
32
+ # @param authorization Authentication credentials for HTTP authentication
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Array<OrganizationOutput>, Fixnum, Hash)>] Array<OrganizationOutput> data, response status code and response headers
35
+ def organizations_get_with_http_info(authorization, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_get ...'
38
+ end
39
+ # verify the required parameter 'authorization' is set
40
+ if @api_client.config.client_side_validation && authorization.nil?
41
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling OrganizationsApi.organizations_get"
42
+ end
43
+ # resource path
44
+ local_var_path = '/organizations'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+ header_params[:'Authorization'] = authorization
56
+
57
+ # form parameters
58
+ form_params = {}
59
+
60
+ # http body (model)
61
+ post_body = nil
62
+ auth_names = []
63
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => 'Array<OrganizationOutput>')
70
+ if @api_client.config.debugging
71
+ @api_client.config.logger.debug "API called: OrganizationsApi#organizations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
+ end
73
+ return data, status_code, headers
74
+ end
75
+ end
76
+ end
@@ -0,0 +1,680 @@
1
+ =begin
2
+ #Yousign API Swagger
3
+
4
+ #For your information, the Yousign API documentation is available at https://dev.yousign.com/
5
+
6
+ OpenAPI spec version: 2.1
7
+ Contact: support@yousign.fr
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module YousignClient
16
+ class ProceduresApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Export Procedure list
23
+ # @param authorization Authentication credentials for HTTP authentication
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :status Return Procedure list based on the status for each Procedure
26
+ # @option opts [String] :name Filter by name (contains)
27
+ # @option opts [String] :members_firstname Filter by member firstname (contains)
28
+ # @option opts [String] :members_lastname Filter by member lastname (contains)
29
+ # @option opts [String] :members_phone Filter by member phone (contains)
30
+ # @option opts [String] :members_email Filter by member email (contains)
31
+ # @option opts [String] :files_name Filter by file name (contains)
32
+ # @option opts [Array<Date>] :created_at Filter by creation date createdAt[after]&#x3D;2017-09-18 createdAt[before]&#x3D;2017-09-18 createdAt[strictly_after]&#x3D;2017-09-18 createdAt[strictly_before]&#x3D;2017-09-18
33
+ # @option opts [Array<Date>] :updated_at Filter by update date updatedAt[after]&#x3D;2017-09-18 updatedAt[before]&#x3D;2017-09-18 updatedAt[strictly_after]&#x3D;2017-09-18 updatedAt[strictly_before]&#x3D;2017-09-18
34
+ # @option opts [Array<Date>] :expires_at Filter by expire date expiresAt[after]&#x3D;2017-09-18 expiresAt[before]&#x3D;2017-09-18 expiresAt[strictly_after]&#x3D;2017-09-18 expiresAt[strictly_before]&#x3D;2017-09-18
35
+ # @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]&#x3D;2017-09-18 deletedAt[before]&#x3D;2017-09-18 deletedAt[strictly_after]&#x3D;2017-09-18 deletedAt[strictly_before]&#x3D;2017-09-18
36
+ # @option opts [String] :order_created_at Order by attribut
37
+ # @return [String]
38
+ def export_procedures_get(authorization, opts = {})
39
+ data, _status_code, _headers = export_procedures_get_with_http_info(authorization, opts)
40
+ data
41
+ end
42
+
43
+ # Export Procedure list
44
+ # @param authorization Authentication credentials for HTTP authentication
45
+ # @param [Hash] opts the optional parameters
46
+ # @option opts [String] :status Return Procedure list based on the status for each Procedure
47
+ # @option opts [String] :name Filter by name (contains)
48
+ # @option opts [String] :members_firstname Filter by member firstname (contains)
49
+ # @option opts [String] :members_lastname Filter by member lastname (contains)
50
+ # @option opts [String] :members_phone Filter by member phone (contains)
51
+ # @option opts [String] :members_email Filter by member email (contains)
52
+ # @option opts [String] :files_name Filter by file name (contains)
53
+ # @option opts [Array<Date>] :created_at Filter by creation date createdAt[after]&#x3D;2017-09-18 createdAt[before]&#x3D;2017-09-18 createdAt[strictly_after]&#x3D;2017-09-18 createdAt[strictly_before]&#x3D;2017-09-18
54
+ # @option opts [Array<Date>] :updated_at Filter by update date updatedAt[after]&#x3D;2017-09-18 updatedAt[before]&#x3D;2017-09-18 updatedAt[strictly_after]&#x3D;2017-09-18 updatedAt[strictly_before]&#x3D;2017-09-18
55
+ # @option opts [Array<Date>] :expires_at Filter by expire date expiresAt[after]&#x3D;2017-09-18 expiresAt[before]&#x3D;2017-09-18 expiresAt[strictly_after]&#x3D;2017-09-18 expiresAt[strictly_before]&#x3D;2017-09-18
56
+ # @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]&#x3D;2017-09-18 deletedAt[before]&#x3D;2017-09-18 deletedAt[strictly_after]&#x3D;2017-09-18 deletedAt[strictly_before]&#x3D;2017-09-18
57
+ # @option opts [String] :order_created_at Order by attribut
58
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
59
+ def export_procedures_get_with_http_info(authorization, opts = {})
60
+ if @api_client.config.debugging
61
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.export_procedures_get ...'
62
+ end
63
+ # verify the required parameter 'authorization' is set
64
+ if @api_client.config.client_side_validation && authorization.nil?
65
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.export_procedures_get"
66
+ end
67
+ if @api_client.config.client_side_validation && opts[:'status'] && !['active', 'finished', 'expired', 'refused', 'draft'].include?(opts[:'status'])
68
+ fail ArgumentError, 'invalid value for "status", must be one of active, finished, expired, refused, draft'
69
+ end
70
+ if @api_client.config.client_side_validation && opts[:'order_created_at'] && !['asc', 'desc'].include?(opts[:'order_created_at'])
71
+ fail ArgumentError, 'invalid value for "order_created_at", must be one of asc, desc'
72
+ end
73
+ # resource path
74
+ local_var_path = '/export/procedures'
75
+
76
+ # query parameters
77
+ query_params = {}
78
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
79
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
80
+ query_params[:'members.firstname'] = opts[:'members_firstname'] if !opts[:'members_firstname'].nil?
81
+ query_params[:'members.lastname'] = opts[:'members_lastname'] if !opts[:'members_lastname'].nil?
82
+ query_params[:'members.phone'] = opts[:'members_phone'] if !opts[:'members_phone'].nil?
83
+ query_params[:'members.email'] = opts[:'members_email'] if !opts[:'members_email'].nil?
84
+ query_params[:'files.name'] = opts[:'files_name'] if !opts[:'files_name'].nil?
85
+ query_params[:'createdAt'] = @api_client.build_collection_param(opts[:'created_at'], :csv) if !opts[:'created_at'].nil?
86
+ query_params[:'updatedAt'] = @api_client.build_collection_param(opts[:'updated_at'], :csv) if !opts[:'updated_at'].nil?
87
+ query_params[:'expiresAt'] = @api_client.build_collection_param(opts[:'expires_at'], :csv) if !opts[:'expires_at'].nil?
88
+ query_params[:'deletedAt'] = @api_client.build_collection_param(opts[:'deleted_at'], :csv) if !opts[:'deleted_at'].nil?
89
+ query_params[:'order[createdAt]'] = opts[:'order_created_at'] if !opts[:'order_created_at'].nil?
90
+
91
+ # header parameters
92
+ header_params = {}
93
+ # HTTP header 'Accept' (if needed)
94
+ header_params['Accept'] = @api_client.select_header_accept(['text/csv'])
95
+ # HTTP header 'Content-Type'
96
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
97
+ header_params[:'Authorization'] = authorization
98
+
99
+ # form parameters
100
+ form_params = {}
101
+
102
+ # http body (model)
103
+ post_body = nil
104
+ auth_names = []
105
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
106
+ :header_params => header_params,
107
+ :query_params => query_params,
108
+ :form_params => form_params,
109
+ :body => post_body,
110
+ :auth_names => auth_names,
111
+ :return_type => 'String')
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called: ProceduresApi#export_procedures_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
114
+ end
115
+ return data, status_code, headers
116
+ end
117
+ # Get Procedure list
118
+ # @param authorization Authentication credentials for HTTP authentication
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [String] :status Return Procedure list based on the status for each Procedure
121
+ # @option opts [BOOLEAN] :template Used to get Procedure template list (default to false)
122
+ # @option opts [Array<String>] :members Get Procedure list for given members (paraph mode)
123
+ # @option opts [String] :items_per_page Number of items per page for the pagination
124
+ # @option opts [BOOLEAN] :pagination Enable the pagination
125
+ # @option opts [Integer] :page Page of the pagination
126
+ # @option opts [String] :name Filter by name (contains)
127
+ # @option opts [String] :members_firstname Filter by member firstname (contains)
128
+ # @option opts [String] :members_lastname Filter by member lastname (contains)
129
+ # @option opts [String] :members_phone Filter by member phone (contains)
130
+ # @option opts [String] :members_email Filter by member email (contains)
131
+ # @option opts [String] :files_name Filter by file name (contains)
132
+ # @option opts [Array<Date>] :created_at Filter by creation date createdAt[after]&#x3D;2017-09-18 createdAt[before]&#x3D;2017-09-18 createdAt[strictly_after]&#x3D;2017-09-18 createdAt[strictly_before]&#x3D;2017-09-18
133
+ # @option opts [Array<Date>] :updated_at Filter by update date updatedAt[after]&#x3D;2017-09-18 updatedAt[before]&#x3D;2017-09-18 updatedAt[strictly_after]&#x3D;2017-09-18 updatedAt[strictly_before]&#x3D;2017-09-18
134
+ # @option opts [Array<Date>] :expires_at Filter by expire date expiresAt[after]&#x3D;2017-09-18 expiresAt[before]&#x3D;2017-09-18 expiresAt[strictly_after]&#x3D;2017-09-18 expiresAt[strictly_before]&#x3D;2017-09-18
135
+ # @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]&#x3D;2017-09-18 deletedAt[before]&#x3D;2017-09-18 deletedAt[strictly_after]&#x3D;2017-09-18 deletedAt[strictly_before]&#x3D;2017-09-18
136
+ # @option opts [String] :order_created_at Order by createdAt order[createdAt]&#x3D;asc order[createdAt]&#x3D;desc
137
+ # @return [Array<ProcedureOutput>]
138
+ def procedures_get(authorization, opts = {})
139
+ data, _status_code, _headers = procedures_get_with_http_info(authorization, opts)
140
+ data
141
+ end
142
+
143
+ # Get Procedure list
144
+ # @param authorization Authentication credentials for HTTP authentication
145
+ # @param [Hash] opts the optional parameters
146
+ # @option opts [String] :status Return Procedure list based on the status for each Procedure
147
+ # @option opts [BOOLEAN] :template Used to get Procedure template list
148
+ # @option opts [Array<String>] :members Get Procedure list for given members (paraph mode)
149
+ # @option opts [String] :items_per_page Number of items per page for the pagination
150
+ # @option opts [BOOLEAN] :pagination Enable the pagination
151
+ # @option opts [Integer] :page Page of the pagination
152
+ # @option opts [String] :name Filter by name (contains)
153
+ # @option opts [String] :members_firstname Filter by member firstname (contains)
154
+ # @option opts [String] :members_lastname Filter by member lastname (contains)
155
+ # @option opts [String] :members_phone Filter by member phone (contains)
156
+ # @option opts [String] :members_email Filter by member email (contains)
157
+ # @option opts [String] :files_name Filter by file name (contains)
158
+ # @option opts [Array<Date>] :created_at Filter by creation date createdAt[after]&#x3D;2017-09-18 createdAt[before]&#x3D;2017-09-18 createdAt[strictly_after]&#x3D;2017-09-18 createdAt[strictly_before]&#x3D;2017-09-18
159
+ # @option opts [Array<Date>] :updated_at Filter by update date updatedAt[after]&#x3D;2017-09-18 updatedAt[before]&#x3D;2017-09-18 updatedAt[strictly_after]&#x3D;2017-09-18 updatedAt[strictly_before]&#x3D;2017-09-18
160
+ # @option opts [Array<Date>] :expires_at Filter by expire date expiresAt[after]&#x3D;2017-09-18 expiresAt[before]&#x3D;2017-09-18 expiresAt[strictly_after]&#x3D;2017-09-18 expiresAt[strictly_before]&#x3D;2017-09-18
161
+ # @option opts [Array<Date>] :deleted_at Filter by delete date deletedAt[after]&#x3D;2017-09-18 deletedAt[before]&#x3D;2017-09-18 deletedAt[strictly_after]&#x3D;2017-09-18 deletedAt[strictly_before]&#x3D;2017-09-18
162
+ # @option opts [String] :order_created_at Order by createdAt order[createdAt]&#x3D;asc order[createdAt]&#x3D;desc
163
+ # @return [Array<(Array<ProcedureOutput>, Fixnum, Hash)>] Array<ProcedureOutput> data, response status code and response headers
164
+ def procedures_get_with_http_info(authorization, opts = {})
165
+ if @api_client.config.debugging
166
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_get ...'
167
+ end
168
+ # verify the required parameter 'authorization' is set
169
+ if @api_client.config.client_side_validation && authorization.nil?
170
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_get"
171
+ end
172
+ if @api_client.config.client_side_validation && opts[:'status'] && !['active', 'finished', 'expired', 'refused', 'draft'].include?(opts[:'status'])
173
+ fail ArgumentError, 'invalid value for "status", must be one of active, finished, expired, refused, draft'
174
+ end
175
+ if @api_client.config.client_side_validation && opts[:'order_created_at'] && !['asc', 'desc'].include?(opts[:'order_created_at'])
176
+ fail ArgumentError, 'invalid value for "order_created_at", must be one of asc, desc'
177
+ end
178
+ # resource path
179
+ local_var_path = '/procedures'
180
+
181
+ # query parameters
182
+ query_params = {}
183
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
184
+ query_params[:'template'] = opts[:'template'] if !opts[:'template'].nil?
185
+ query_params[:'members'] = @api_client.build_collection_param(opts[:'members'], :csv) if !opts[:'members'].nil?
186
+ query_params[:'itemsPerPage'] = opts[:'items_per_page'] if !opts[:'items_per_page'].nil?
187
+ query_params[:'pagination'] = opts[:'pagination'] if !opts[:'pagination'].nil?
188
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
189
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
190
+ query_params[:'members.firstname'] = opts[:'members_firstname'] if !opts[:'members_firstname'].nil?
191
+ query_params[:'members.lastname'] = opts[:'members_lastname'] if !opts[:'members_lastname'].nil?
192
+ query_params[:'members.phone'] = opts[:'members_phone'] if !opts[:'members_phone'].nil?
193
+ query_params[:'members.email'] = opts[:'members_email'] if !opts[:'members_email'].nil?
194
+ query_params[:'files.name'] = opts[:'files_name'] if !opts[:'files_name'].nil?
195
+ query_params[:'createdAt'] = @api_client.build_collection_param(opts[:'created_at'], :csv) if !opts[:'created_at'].nil?
196
+ query_params[:'updatedAt'] = @api_client.build_collection_param(opts[:'updated_at'], :csv) if !opts[:'updated_at'].nil?
197
+ query_params[:'expiresAt'] = @api_client.build_collection_param(opts[:'expires_at'], :csv) if !opts[:'expires_at'].nil?
198
+ query_params[:'deletedAt'] = @api_client.build_collection_param(opts[:'deleted_at'], :csv) if !opts[:'deleted_at'].nil?
199
+ query_params[:'order[createdAt]'] = opts[:'order_created_at'] if !opts[:'order_created_at'].nil?
200
+
201
+ # header parameters
202
+ header_params = {}
203
+ # HTTP header 'Accept' (if needed)
204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
205
+ # HTTP header 'Content-Type'
206
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
207
+ header_params[:'Authorization'] = authorization
208
+
209
+ # form parameters
210
+ form_params = {}
211
+
212
+ # http body (model)
213
+ post_body = nil
214
+ auth_names = []
215
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
216
+ :header_params => header_params,
217
+ :query_params => query_params,
218
+ :form_params => form_params,
219
+ :body => post_body,
220
+ :auth_names => auth_names,
221
+ :return_type => 'Array<ProcedureOutput>')
222
+ if @api_client.config.debugging
223
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ end
225
+ return data, status_code, headers
226
+ end
227
+ # Delete a Procedure
228
+ # @param id
229
+ # @param authorization Authentication credentials for HTTP authentication
230
+ # @param [Hash] opts the optional parameters
231
+ # @return [nil]
232
+ def procedures_id_delete(id, authorization, opts = {})
233
+ procedures_id_delete_with_http_info(id, authorization, opts)
234
+ nil
235
+ end
236
+
237
+ # Delete a Procedure
238
+ # @param id
239
+ # @param authorization Authentication credentials for HTTP authentication
240
+ # @param [Hash] opts the optional parameters
241
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
242
+ def procedures_id_delete_with_http_info(id, authorization, opts = {})
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_delete ...'
245
+ end
246
+ # verify the required parameter 'id' is set
247
+ if @api_client.config.client_side_validation && id.nil?
248
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_delete"
249
+ end
250
+ # verify the required parameter 'authorization' is set
251
+ if @api_client.config.client_side_validation && authorization.nil?
252
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_delete"
253
+ end
254
+ # resource path
255
+ local_var_path = '/procedures/{id}'.sub('{' + 'id' + '}', id.to_s)
256
+
257
+ # query parameters
258
+ query_params = {}
259
+
260
+ # header parameters
261
+ header_params = {}
262
+ # HTTP header 'Accept' (if needed)
263
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
264
+ # HTTP header 'Content-Type'
265
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
266
+ header_params[:'Authorization'] = authorization
267
+
268
+ # form parameters
269
+ form_params = {}
270
+
271
+ # http body (model)
272
+ post_body = nil
273
+ auth_names = []
274
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
275
+ :header_params => header_params,
276
+ :query_params => query_params,
277
+ :form_params => form_params,
278
+ :body => post_body,
279
+ :auth_names => auth_names)
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
282
+ end
283
+ return data, status_code, headers
284
+ end
285
+ # Duplicate a Procedure
286
+ # @param id
287
+ # @param authorization Authentication credentials for HTTP authentication
288
+ # @param content_type The MIME type of the body of the request
289
+ # @param body
290
+ # @param [Hash] opts the optional parameters
291
+ # @return [ProcedureOutput]
292
+ def procedures_id_duplicate_post(id, authorization, content_type, body, opts = {})
293
+ data, _status_code, _headers = procedures_id_duplicate_post_with_http_info(id, authorization, content_type, body, opts)
294
+ data
295
+ end
296
+
297
+ # Duplicate a Procedure
298
+ # @param id
299
+ # @param authorization Authentication credentials for HTTP authentication
300
+ # @param content_type The MIME type of the body of the request
301
+ # @param body
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
304
+ def procedures_id_duplicate_post_with_http_info(id, authorization, content_type, body, opts = {})
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_duplicate_post ...'
307
+ end
308
+ # verify the required parameter 'id' is set
309
+ if @api_client.config.client_side_validation && id.nil?
310
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_duplicate_post"
311
+ end
312
+ # verify the required parameter 'authorization' is set
313
+ if @api_client.config.client_side_validation && authorization.nil?
314
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_duplicate_post"
315
+ end
316
+ # verify the required parameter 'content_type' is set
317
+ if @api_client.config.client_side_validation && content_type.nil?
318
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_id_duplicate_post"
319
+ end
320
+ # verify the required parameter 'body' is set
321
+ if @api_client.config.client_side_validation && body.nil?
322
+ fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_id_duplicate_post"
323
+ end
324
+ # resource path
325
+ local_var_path = '/procedures/{id}/duplicate'.sub('{' + 'id' + '}', id.to_s)
326
+
327
+ # query parameters
328
+ query_params = {}
329
+
330
+ # header parameters
331
+ header_params = {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
334
+ header_params[:'Authorization'] = authorization
335
+ header_params[:'Content-Type'] = content_type
336
+
337
+ # form parameters
338
+ form_params = {}
339
+
340
+ # http body (model)
341
+ post_body = @api_client.object_to_http_body(body)
342
+ auth_names = []
343
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
344
+ :header_params => header_params,
345
+ :query_params => query_params,
346
+ :form_params => form_params,
347
+ :body => post_body,
348
+ :auth_names => auth_names,
349
+ :return_type => 'ProcedureOutput')
350
+ if @api_client.config.debugging
351
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_id_duplicate_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
+ end
353
+ return data, status_code, headers
354
+ end
355
+ # Find a Procedure by ID
356
+ # @param id
357
+ # @param authorization Authentication credentials for HTTP authentication
358
+ # @param [Hash] opts the optional parameters
359
+ # @return [ProcedureOutput]
360
+ def procedures_id_get(id, authorization, opts = {})
361
+ data, _status_code, _headers = procedures_id_get_with_http_info(id, authorization, opts)
362
+ data
363
+ end
364
+
365
+ # Find a Procedure by ID
366
+ # @param id
367
+ # @param authorization Authentication credentials for HTTP authentication
368
+ # @param [Hash] opts the optional parameters
369
+ # @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
370
+ def procedures_id_get_with_http_info(id, authorization, opts = {})
371
+ if @api_client.config.debugging
372
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_get ...'
373
+ end
374
+ # verify the required parameter 'id' is set
375
+ if @api_client.config.client_side_validation && id.nil?
376
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_get"
377
+ end
378
+ # verify the required parameter 'authorization' is set
379
+ if @api_client.config.client_side_validation && authorization.nil?
380
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_get"
381
+ end
382
+ # resource path
383
+ local_var_path = '/procedures/{id}'.sub('{' + 'id' + '}', id.to_s)
384
+
385
+ # query parameters
386
+ query_params = {}
387
+
388
+ # header parameters
389
+ header_params = {}
390
+ # HTTP header 'Accept' (if needed)
391
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
392
+ # HTTP header 'Content-Type'
393
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
394
+ header_params[:'Authorization'] = authorization
395
+
396
+ # form parameters
397
+ form_params = {}
398
+
399
+ # http body (model)
400
+ post_body = nil
401
+ auth_names = []
402
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
403
+ :header_params => header_params,
404
+ :query_params => query_params,
405
+ :form_params => form_params,
406
+ :body => post_body,
407
+ :auth_names => auth_names,
408
+ :return_type => 'ProcedureOutput')
409
+ if @api_client.config.debugging
410
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
411
+ end
412
+ return data, status_code, headers
413
+ end
414
+ # Get a Procedure proof file
415
+ # Get a Procedure proof file
416
+ # @param id
417
+ # @param authorization Authentication credentials for HTTP authentication
418
+ # @param [Hash] opts the optional parameters
419
+ # @return [String]
420
+ def procedures_id_proof_get(id, authorization, opts = {})
421
+ data, _status_code, _headers = procedures_id_proof_get_with_http_info(id, authorization, opts)
422
+ data
423
+ end
424
+
425
+ # Get a Procedure proof file
426
+ # Get a Procedure proof file
427
+ # @param id
428
+ # @param authorization Authentication credentials for HTTP authentication
429
+ # @param [Hash] opts the optional parameters
430
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
431
+ def procedures_id_proof_get_with_http_info(id, authorization, opts = {})
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_proof_get ...'
434
+ end
435
+ # verify the required parameter 'id' is set
436
+ if @api_client.config.client_side_validation && id.nil?
437
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_proof_get"
438
+ end
439
+ # verify the required parameter 'authorization' is set
440
+ if @api_client.config.client_side_validation && authorization.nil?
441
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_proof_get"
442
+ end
443
+ # resource path
444
+ local_var_path = '/procedures/{id}/proof'.sub('{' + 'id' + '}', id.to_s)
445
+
446
+ # query parameters
447
+ query_params = {}
448
+
449
+ # header parameters
450
+ header_params = {}
451
+ # HTTP header 'Accept' (if needed)
452
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
453
+ # HTTP header 'Content-Type'
454
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
455
+ header_params[:'Authorization'] = authorization
456
+
457
+ # form parameters
458
+ form_params = {}
459
+
460
+ # http body (model)
461
+ post_body = nil
462
+ auth_names = []
463
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
464
+ :header_params => header_params,
465
+ :query_params => query_params,
466
+ :form_params => form_params,
467
+ :body => post_body,
468
+ :auth_names => auth_names,
469
+ :return_type => 'String')
470
+ if @api_client.config.debugging
471
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_id_proof_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
472
+ end
473
+ return data, status_code, headers
474
+ end
475
+ # Update a Procedure
476
+ # @param id
477
+ # @param authorization Authentication credentials for HTTP authentication
478
+ # @param content_type The MIME type of the body of the request
479
+ # @param body
480
+ # @param [Hash] opts the optional parameters
481
+ # @return [ProcedureOutput]
482
+ def procedures_id_put(id, authorization, content_type, body, opts = {})
483
+ data, _status_code, _headers = procedures_id_put_with_http_info(id, authorization, content_type, body, opts)
484
+ data
485
+ end
486
+
487
+ # Update a Procedure
488
+ # @param id
489
+ # @param authorization Authentication credentials for HTTP authentication
490
+ # @param content_type The MIME type of the body of the request
491
+ # @param body
492
+ # @param [Hash] opts the optional parameters
493
+ # @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
494
+ def procedures_id_put_with_http_info(id, authorization, content_type, body, opts = {})
495
+ if @api_client.config.debugging
496
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_put ...'
497
+ end
498
+ # verify the required parameter 'id' is set
499
+ if @api_client.config.client_side_validation && id.nil?
500
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_put"
501
+ end
502
+ # verify the required parameter 'authorization' is set
503
+ if @api_client.config.client_side_validation && authorization.nil?
504
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_put"
505
+ end
506
+ # verify the required parameter 'content_type' is set
507
+ if @api_client.config.client_side_validation && content_type.nil?
508
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_id_put"
509
+ end
510
+ # verify the required parameter 'body' is set
511
+ if @api_client.config.client_side_validation && body.nil?
512
+ fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_id_put"
513
+ end
514
+ # resource path
515
+ local_var_path = '/procedures/{id}'.sub('{' + 'id' + '}', id.to_s)
516
+
517
+ # query parameters
518
+ query_params = {}
519
+
520
+ # header parameters
521
+ header_params = {}
522
+ # HTTP header 'Accept' (if needed)
523
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
524
+ header_params[:'Authorization'] = authorization
525
+ header_params[:'Content-Type'] = content_type
526
+
527
+ # form parameters
528
+ form_params = {}
529
+
530
+ # http body (model)
531
+ post_body = @api_client.object_to_http_body(body)
532
+ auth_names = []
533
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
534
+ :header_params => header_params,
535
+ :query_params => query_params,
536
+ :form_params => form_params,
537
+ :body => post_body,
538
+ :auth_names => auth_names,
539
+ :return_type => 'ProcedureOutput')
540
+ if @api_client.config.debugging
541
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
542
+ end
543
+ return data, status_code, headers
544
+ end
545
+ # Remind a Procedure
546
+ # @param id
547
+ # @param authorization Authentication credentials for HTTP authentication
548
+ # @param content_type The MIME type of the body of the request
549
+ # @param body
550
+ # @param [Hash] opts the optional parameters
551
+ # @return [ProcedureOutput]
552
+ def procedures_id_remind_post(id, authorization, content_type, body, opts = {})
553
+ data, _status_code, _headers = procedures_id_remind_post_with_http_info(id, authorization, content_type, body, opts)
554
+ data
555
+ end
556
+
557
+ # Remind a Procedure
558
+ # @param id
559
+ # @param authorization Authentication credentials for HTTP authentication
560
+ # @param content_type The MIME type of the body of the request
561
+ # @param body
562
+ # @param [Hash] opts the optional parameters
563
+ # @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
564
+ def procedures_id_remind_post_with_http_info(id, authorization, content_type, body, opts = {})
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_id_remind_post ...'
567
+ end
568
+ # verify the required parameter 'id' is set
569
+ if @api_client.config.client_side_validation && id.nil?
570
+ fail ArgumentError, "Missing the required parameter 'id' when calling ProceduresApi.procedures_id_remind_post"
571
+ end
572
+ # verify the required parameter 'authorization' is set
573
+ if @api_client.config.client_side_validation && authorization.nil?
574
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_id_remind_post"
575
+ end
576
+ # verify the required parameter 'content_type' is set
577
+ if @api_client.config.client_side_validation && content_type.nil?
578
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_id_remind_post"
579
+ end
580
+ # verify the required parameter 'body' is set
581
+ if @api_client.config.client_side_validation && body.nil?
582
+ fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_id_remind_post"
583
+ end
584
+ # resource path
585
+ local_var_path = '/procedures/{id}/remind'.sub('{' + 'id' + '}', id.to_s)
586
+
587
+ # query parameters
588
+ query_params = {}
589
+
590
+ # header parameters
591
+ header_params = {}
592
+ # HTTP header 'Accept' (if needed)
593
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
594
+ header_params[:'Authorization'] = authorization
595
+ header_params[:'Content-Type'] = content_type
596
+
597
+ # form parameters
598
+ form_params = {}
599
+
600
+ # http body (model)
601
+ post_body = @api_client.object_to_http_body(body)
602
+ auth_names = []
603
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
604
+ :header_params => header_params,
605
+ :query_params => query_params,
606
+ :form_params => form_params,
607
+ :body => post_body,
608
+ :auth_names => auth_names,
609
+ :return_type => 'ProcedureOutput')
610
+ if @api_client.config.debugging
611
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_id_remind_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
612
+ end
613
+ return data, status_code, headers
614
+ end
615
+ # Create a new Procedure
616
+ # @param authorization Authentication credentials for HTTP authentication
617
+ # @param content_type The MIME type of the body of the request
618
+ # @param body
619
+ # @param [Hash] opts the optional parameters
620
+ # @return [ProcedureOutput]
621
+ def procedures_post(authorization, content_type, body, opts = {})
622
+ data, _status_code, _headers = procedures_post_with_http_info(authorization, content_type, body, opts)
623
+ data
624
+ end
625
+
626
+ # Create a new Procedure
627
+ # @param authorization Authentication credentials for HTTP authentication
628
+ # @param content_type The MIME type of the body of the request
629
+ # @param body
630
+ # @param [Hash] opts the optional parameters
631
+ # @return [Array<(ProcedureOutput, Fixnum, Hash)>] ProcedureOutput data, response status code and response headers
632
+ def procedures_post_with_http_info(authorization, content_type, body, opts = {})
633
+ if @api_client.config.debugging
634
+ @api_client.config.logger.debug 'Calling API: ProceduresApi.procedures_post ...'
635
+ end
636
+ # verify the required parameter 'authorization' is set
637
+ if @api_client.config.client_side_validation && authorization.nil?
638
+ fail ArgumentError, "Missing the required parameter 'authorization' when calling ProceduresApi.procedures_post"
639
+ end
640
+ # verify the required parameter 'content_type' is set
641
+ if @api_client.config.client_side_validation && content_type.nil?
642
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling ProceduresApi.procedures_post"
643
+ end
644
+ # verify the required parameter 'body' is set
645
+ if @api_client.config.client_side_validation && body.nil?
646
+ fail ArgumentError, "Missing the required parameter 'body' when calling ProceduresApi.procedures_post"
647
+ end
648
+ # resource path
649
+ local_var_path = '/procedures'
650
+
651
+ # query parameters
652
+ query_params = {}
653
+
654
+ # header parameters
655
+ header_params = {}
656
+ # HTTP header 'Accept' (if needed)
657
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
658
+ header_params[:'Authorization'] = authorization
659
+ header_params[:'Content-Type'] = content_type
660
+
661
+ # form parameters
662
+ form_params = {}
663
+
664
+ # http body (model)
665
+ post_body = @api_client.object_to_http_body(body)
666
+ auth_names = []
667
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
668
+ :header_params => header_params,
669
+ :query_params => query_params,
670
+ :form_params => form_params,
671
+ :body => post_body,
672
+ :auth_names => auth_names,
673
+ :return_type => 'ProcedureOutput')
674
+ if @api_client.config.debugging
675
+ @api_client.config.logger.debug "API called: ProceduresApi#procedures_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
676
+ end
677
+ return data, status_code, headers
678
+ end
679
+ end
680
+ end