finch-api 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.20

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 (293) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +50 -0
  3. data/README.md +4 -4
  4. data/SECURITY.md +2 -2
  5. data/lib/finch_api/errors.rb +22 -0
  6. data/lib/finch_api/internal/individuals_page.rb +1 -1
  7. data/lib/finch_api/internal/page.rb +1 -1
  8. data/lib/finch_api/internal/type/array_of.rb +14 -1
  9. data/lib/finch_api/internal/type/base_model.rb +84 -25
  10. data/lib/finch_api/internal/type/boolean.rb +15 -1
  11. data/lib/finch_api/internal/type/converter.rb +42 -34
  12. data/lib/finch_api/internal/type/enum.rb +25 -2
  13. data/lib/finch_api/internal/type/file_input.rb +13 -1
  14. data/lib/finch_api/internal/type/hash_of.rb +14 -1
  15. data/lib/finch_api/internal/type/union.rb +27 -7
  16. data/lib/finch_api/internal/type/unknown.rb +15 -1
  17. data/lib/finch_api/internal/util.rb +62 -10
  18. data/lib/finch_api/internal.rb +3 -0
  19. data/lib/finch_api/models/account_update_event.rb +110 -109
  20. data/lib/finch_api/models/base_webhook_event.rb +1 -1
  21. data/lib/finch_api/models/company_event.rb +2 -2
  22. data/lib/finch_api/models/connect/session_new_params.rb +12 -12
  23. data/lib/finch_api/models/connect/session_reauthenticate_params.rb +2 -2
  24. data/lib/finch_api/models/create_access_token_response.rb +7 -7
  25. data/lib/finch_api/models/directory_event.rb +4 -4
  26. data/lib/finch_api/models/employment_event.rb +4 -4
  27. data/lib/finch_api/models/hris/benefit_contribution.rb +3 -3
  28. data/lib/finch_api/models/hris/benefit_create_params.rb +11 -11
  29. data/lib/finch_api/models/hris/benefit_features_and_operations.rb +5 -120
  30. data/lib/finch_api/models/hris/benefit_type.rb +10 -10
  31. data/lib/finch_api/models/hris/benefits/individual_benefit.rb +11 -11
  32. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +23 -23
  33. data/lib/finch_api/models/hris/benefits_support.rb +24 -24
  34. data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +11 -11
  35. data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +2 -2
  36. data/lib/finch_api/models/hris/company/pay_statement_item_list_response.rb +18 -18
  37. data/lib/finch_api/models/hris/company.rb +23 -23
  38. data/lib/finch_api/models/hris/company_benefit.rb +12 -12
  39. data/lib/finch_api/models/hris/document_list_params.rb +2 -2
  40. data/lib/finch_api/models/hris/document_list_response.rb +4 -4
  41. data/lib/finch_api/models/hris/document_response.rb +4 -4
  42. data/lib/finch_api/models/hris/document_retreive_response.rb +1 -5
  43. data/lib/finch_api/models/hris/employment_data.rb +89 -99
  44. data/lib/finch_api/models/hris/employment_data_response.rb +2 -2
  45. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +4 -3
  46. data/lib/finch_api/models/hris/individual.rb +20 -26
  47. data/lib/finch_api/models/hris/individual_in_directory.rb +6 -6
  48. data/lib/finch_api/models/hris/individual_response.rb +2 -2
  49. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +4 -4
  50. data/lib/finch_api/models/hris/pay_statement.rb +184 -182
  51. data/lib/finch_api/models/hris/pay_statement_data_sync_in_progress.rb +76 -0
  52. data/lib/finch_api/models/hris/pay_statement_response.rb +50 -8
  53. data/lib/finch_api/models/hris/pay_statement_response_body.rb +27 -9
  54. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +2 -2
  55. data/lib/finch_api/models/hris/payment.rb +37 -37
  56. data/lib/finch_api/models/hris/support_per_benefit_type.rb +4 -4
  57. data/lib/finch_api/models/hris/supported_benefit.rb +10 -9
  58. data/lib/finch_api/models/hris/w42005.rb +12 -12
  59. data/lib/finch_api/models/hris/w42020.rb +10 -10
  60. data/lib/finch_api/models/income.rb +8 -8
  61. data/lib/finch_api/models/individual_event.rb +4 -4
  62. data/lib/finch_api/models/introspection.rb +23 -23
  63. data/lib/finch_api/models/job_completion_event.rb +4 -4
  64. data/lib/finch_api/models/jobs/automated_async_job.rb +10 -10
  65. data/lib/finch_api/models/jobs/automated_create_params.rb +4 -4
  66. data/lib/finch_api/models/jobs/automated_list_response.rb +2 -2
  67. data/lib/finch_api/models/jobs/manual_async_job.rb +3 -3
  68. data/lib/finch_api/models/money.rb +4 -4
  69. data/lib/finch_api/models/operation_support_matrix.rb +9 -9
  70. data/lib/finch_api/models/pay_statement_event.rb +4 -4
  71. data/lib/finch_api/models/payment_event.rb +4 -4
  72. data/lib/finch_api/models/payroll/pay_group_list_response.rb +12 -12
  73. data/lib/finch_api/models/payroll/pay_group_retrieve_response.rb +5 -5
  74. data/lib/finch_api/models/provider.rb +104 -104
  75. data/lib/finch_api/models/sandbox/company_update_params.rb +21 -21
  76. data/lib/finch_api/models/sandbox/company_update_response.rb +2 -2
  77. data/lib/finch_api/models/sandbox/connection_create_params.rb +2 -2
  78. data/lib/finch_api/models/sandbox/connections/account_create_params.rb +2 -2
  79. data/lib/finch_api/models/sandbox/connections/account_update_params.rb +2 -2
  80. data/lib/finch_api/models/sandbox/directory_create_params.rb +57 -53
  81. data/lib/finch_api/models/sandbox/employment_update_params.rb +32 -28
  82. data/lib/finch_api/models/sandbox/employment_update_response.rb +17 -14
  83. data/lib/finch_api/models/sandbox/individual_update_params.rb +16 -16
  84. data/lib/finch_api/models/sandbox/individual_update_response.rb +2 -2
  85. data/lib/finch_api/models/sandbox/job_create_params.rb +2 -2
  86. data/lib/finch_api/models/sandbox/jobs/sandbox_job_configuration.rb +6 -6
  87. data/lib/finch_api/models/sandbox/payment_create_params.rb +160 -367
  88. data/lib/finch_api/models/webhook_event.rb +1 -16
  89. data/lib/finch_api/models.rb +30 -19
  90. data/lib/finch_api/resources/access_tokens.rb +1 -1
  91. data/lib/finch_api/resources/account.rb +2 -2
  92. data/lib/finch_api/resources/connect/sessions.rb +5 -5
  93. data/lib/finch_api/resources/hris/benefits/individuals.rb +4 -4
  94. data/lib/finch_api/resources/hris/benefits.rb +9 -9
  95. data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +3 -3
  96. data/lib/finch_api/resources/hris/company/pay_statement_item.rb +1 -1
  97. data/lib/finch_api/resources/hris/company.rb +1 -1
  98. data/lib/finch_api/resources/hris/directory.rb +1 -1
  99. data/lib/finch_api/resources/hris/documents.rb +2 -2
  100. data/lib/finch_api/resources/hris/employments.rb +2 -2
  101. data/lib/finch_api/resources/hris/individuals.rb +3 -3
  102. data/lib/finch_api/resources/hris/pay_statements.rb +2 -2
  103. data/lib/finch_api/resources/hris/payments.rb +1 -1
  104. data/lib/finch_api/resources/jobs/automated.rb +3 -3
  105. data/lib/finch_api/resources/jobs/manual.rb +1 -1
  106. data/lib/finch_api/resources/providers.rb +1 -1
  107. data/lib/finch_api/resources/sandbox/company.rb +4 -4
  108. data/lib/finch_api/resources/sandbox/connections/accounts.rb +2 -2
  109. data/lib/finch_api/resources/sandbox/connections.rb +1 -1
  110. data/lib/finch_api/resources/sandbox/directory.rb +1 -1
  111. data/lib/finch_api/resources/sandbox/employment.rb +9 -9
  112. data/lib/finch_api/resources/sandbox/individual.rb +5 -5
  113. data/lib/finch_api/resources/sandbox/jobs/configuration.rb +4 -4
  114. data/lib/finch_api/resources/sandbox/jobs.rb +1 -1
  115. data/lib/finch_api/resources/sandbox/payment.rb +6 -3
  116. data/lib/finch_api/version.rb +1 -1
  117. data/lib/finch_api.rb +4 -2
  118. data/rbi/finch_api/errors.rbi +16 -0
  119. data/rbi/finch_api/internal/type/array_of.rbi +6 -0
  120. data/rbi/finch_api/internal/type/base_model.rbi +5 -0
  121. data/rbi/finch_api/internal/type/boolean.rbi +8 -0
  122. data/rbi/finch_api/internal/type/converter.rbi +15 -15
  123. data/rbi/finch_api/internal/type/enum.rbi +5 -0
  124. data/rbi/finch_api/internal/type/file_input.rbi +5 -0
  125. data/rbi/finch_api/internal/type/hash_of.rbi +6 -0
  126. data/rbi/finch_api/internal/type/union.rbi +10 -0
  127. data/rbi/finch_api/internal/type/unknown.rbi +8 -0
  128. data/rbi/finch_api/internal/util.rbi +36 -0
  129. data/rbi/finch_api/internal.rbi +3 -0
  130. data/rbi/finch_api/models/connect/session_new_params.rbi +4 -4
  131. data/rbi/finch_api/models/hris/benefit_features_and_operations.rbi +4 -296
  132. data/rbi/finch_api/models/hris/benefit_type.rbi +16 -16
  133. data/rbi/finch_api/models/hris/company/pay_statement_item_list_response.rbi +18 -33
  134. data/rbi/finch_api/models/hris/employment_data.rbi +123 -140
  135. data/rbi/finch_api/models/hris/employment_data_response.rbi +2 -13
  136. data/rbi/finch_api/models/hris/individual_response.rbi +2 -13
  137. data/rbi/finch_api/models/hris/pay_statement.rbi +275 -307
  138. data/rbi/finch_api/models/hris/pay_statement_data_sync_in_progress.rbi +188 -0
  139. data/rbi/finch_api/models/hris/pay_statement_response.rbi +84 -20
  140. data/rbi/finch_api/models/hris/pay_statement_response_body.rbi +45 -17
  141. data/rbi/finch_api/models/hris/payment.rbi +27 -30
  142. data/rbi/finch_api/models/hris/supported_benefit.rbi +12 -8
  143. data/rbi/finch_api/models/income.rbi +3 -3
  144. data/rbi/finch_api/models/money.rbi +4 -7
  145. data/rbi/finch_api/models/payroll/pay_group_list_response.rbi +25 -43
  146. data/rbi/finch_api/models/payroll/pay_group_retrieve_response.rbi +14 -14
  147. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +20 -26
  148. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +20 -26
  149. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +20 -26
  150. data/rbi/finch_api/models/sandbox/payment_create_params.rbi +463 -727
  151. data/rbi/finch_api/resources/connect/sessions.rbi +2 -2
  152. data/rbi/finch_api/resources/hris/benefits.rbi +1 -3
  153. data/rbi/finch_api/resources/hris/documents.rbi +1 -1
  154. data/rbi/finch_api/resources/sandbox/employment.rbi +8 -5
  155. data/rbi/finch_api/resources/sandbox/payment.rbi +3 -2
  156. data/sig/finch_api/errors.rbs +9 -0
  157. data/sig/finch_api/internal/type/array_of.rbs +3 -0
  158. data/sig/finch_api/internal/type/base_model.rbs +2 -0
  159. data/sig/finch_api/internal/type/boolean.rbs +3 -0
  160. data/sig/finch_api/internal/type/converter.rbs +7 -1
  161. data/sig/finch_api/internal/type/enum.rbs +2 -0
  162. data/sig/finch_api/internal/type/file_input.rbs +2 -0
  163. data/sig/finch_api/internal/type/hash_of.rbs +3 -0
  164. data/sig/finch_api/internal/type/union.rbs +2 -0
  165. data/sig/finch_api/internal/type/unknown.rbs +3 -0
  166. data/sig/finch_api/internal/util.rbs +12 -0
  167. data/sig/finch_api/internal.rbs +2 -0
  168. data/sig/finch_api/models/access_token_create_params.rbs +8 -0
  169. data/sig/finch_api/models/account_disconnect_params.rbs +2 -0
  170. data/sig/finch_api/models/account_introspect_params.rbs +2 -0
  171. data/sig/finch_api/models/account_update_event.rbs +230 -12
  172. data/sig/finch_api/models/base_webhook_event.rbs +6 -0
  173. data/sig/finch_api/models/company_event.rbs +11 -6
  174. data/sig/finch_api/models/connect/session_new_params.rbs +26 -8
  175. data/sig/finch_api/models/connect/session_new_response.rbs +2 -0
  176. data/sig/finch_api/models/connect/session_reauthenticate_params.rbs +12 -4
  177. data/sig/finch_api/models/connect/session_reauthenticate_response.rbs +2 -0
  178. data/sig/finch_api/models/create_access_token_response.rbs +21 -8
  179. data/sig/finch_api/models/directory_event.rbs +13 -6
  180. data/sig/finch_api/models/disconnect_response.rbs +2 -0
  181. data/sig/finch_api/models/employment_event.rbs +13 -6
  182. data/sig/finch_api/models/hris/benefit_contribution.rbs +12 -4
  183. data/sig/finch_api/models/hris/benefit_create_params.rbs +21 -6
  184. data/sig/finch_api/models/hris/benefit_features_and_operations.rbs +9 -78
  185. data/sig/finch_api/models/hris/benefit_list_params.rbs +2 -0
  186. data/sig/finch_api/models/hris/benefit_list_supported_benefits_params.rbs +2 -0
  187. data/sig/finch_api/models/hris/benefit_retrieve_params.rbs +2 -0
  188. data/sig/finch_api/models/hris/benefit_type.rbs +21 -21
  189. data/sig/finch_api/models/hris/benefit_update_params.rbs +5 -0
  190. data/sig/finch_api/models/hris/benefits/enrolled_individual_benefit_response.rbs +2 -0
  191. data/sig/finch_api/models/hris/benefits/individual_benefit.rbs +18 -4
  192. data/sig/finch_api/models/hris/benefits/individual_enroll_many_params.rbs +47 -18
  193. data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbs +2 -0
  194. data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_response.rbs +5 -0
  195. data/sig/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +5 -0
  196. data/sig/finch_api/models/hris/benefits/individual_unenroll_many_params.rbs +5 -0
  197. data/sig/finch_api/models/hris/benefits/unenrolled_individual_benefit_response.rbs +2 -0
  198. data/sig/finch_api/models/hris/benefits_support.rbs +15 -0
  199. data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +23 -6
  200. data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbs +20 -0
  201. data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +2 -0
  202. data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbs +21 -0
  203. data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +2 -0
  204. data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbs +20 -0
  205. data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +5 -0
  206. data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbs +20 -0
  207. data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +15 -6
  208. data/sig/finch_api/models/hris/company/pay_statement_item_list_response.rbs +23 -20
  209. data/sig/finch_api/models/hris/company.rbs +44 -12
  210. data/sig/finch_api/models/hris/company_benefit.rbs +21 -6
  211. data/sig/finch_api/models/hris/company_retrieve_params.rbs +2 -0
  212. data/sig/finch_api/models/hris/create_company_benefits_response.rbs +2 -0
  213. data/sig/finch_api/models/hris/directory_list_individuals_params.rbs +6 -0
  214. data/sig/finch_api/models/hris/directory_list_params.rbs +6 -0
  215. data/sig/finch_api/models/hris/document_list_params.rbs +14 -6
  216. data/sig/finch_api/models/hris/document_list_response.rbs +5 -0
  217. data/sig/finch_api/models/hris/document_response.rbs +14 -6
  218. data/sig/finch_api/models/hris/document_retreive_params.rbs +2 -0
  219. data/sig/finch_api/models/hris/employment_data.rbs +91 -49
  220. data/sig/finch_api/models/hris/employment_data_response.rbs +6 -0
  221. data/sig/finch_api/models/hris/employment_retrieve_many_params.rbs +7 -0
  222. data/sig/finch_api/models/hris/individual.rbs +49 -16
  223. data/sig/finch_api/models/hris/individual_in_directory.rbs +14 -0
  224. data/sig/finch_api/models/hris/individual_response.rbs +6 -0
  225. data/sig/finch_api/models/hris/individual_retrieve_many_params.rbs +10 -0
  226. data/sig/finch_api/models/hris/pay_statement.rbs +179 -133
  227. data/sig/finch_api/models/hris/pay_statement_data_sync_in_progress.rbs +78 -0
  228. data/sig/finch_api/models/hris/pay_statement_response.rbs +51 -13
  229. data/sig/finch_api/models/hris/pay_statement_response_body.rbs +24 -11
  230. data/sig/finch_api/models/hris/pay_statement_retrieve_many_params.rbs +11 -0
  231. data/sig/finch_api/models/hris/payment.rbs +44 -29
  232. data/sig/finch_api/models/hris/payment_list_params.rbs +6 -0
  233. data/sig/finch_api/models/hris/support_per_benefit_type.rbs +5 -0
  234. data/sig/finch_api/models/hris/supported_benefit.rbs +22 -12
  235. data/sig/finch_api/models/hris/update_company_benefit_response.rbs +2 -0
  236. data/sig/finch_api/models/hris/w42005.rbs +30 -16
  237. data/sig/finch_api/models/hris/w42020.rbs +27 -10
  238. data/sig/finch_api/models/income.rbs +14 -7
  239. data/sig/finch_api/models/individual_event.rbs +13 -6
  240. data/sig/finch_api/models/introspection.rbs +51 -14
  241. data/sig/finch_api/models/job_completion_event.rbs +13 -6
  242. data/sig/finch_api/models/jobs/automated_async_job.rbs +22 -8
  243. data/sig/finch_api/models/jobs/automated_create_params.rbs +8 -0
  244. data/sig/finch_api/models/jobs/automated_create_response.rbs +7 -0
  245. data/sig/finch_api/models/jobs/automated_list_params.rbs +6 -0
  246. data/sig/finch_api/models/jobs/automated_list_response.rbs +18 -0
  247. data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +2 -0
  248. data/sig/finch_api/models/jobs/manual_async_job.rbs +10 -4
  249. data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +2 -0
  250. data/sig/finch_api/models/location.rbs +11 -0
  251. data/sig/finch_api/models/money.rbs +3 -3
  252. data/sig/finch_api/models/operation_support_matrix.rbs +7 -0
  253. data/sig/finch_api/models/paging.rbs +2 -0
  254. data/sig/finch_api/models/pay_statement_event.rbs +13 -6
  255. data/sig/finch_api/models/payment_event.rbs +13 -6
  256. data/sig/finch_api/models/payroll/pay_group_list_params.rbs +6 -0
  257. data/sig/finch_api/models/payroll/pay_group_list_response.rbs +22 -24
  258. data/sig/finch_api/models/payroll/pay_group_retrieve_params.rbs +2 -0
  259. data/sig/finch_api/models/payroll/pay_group_retrieve_response.rbs +17 -10
  260. data/sig/finch_api/models/provider.rbs +227 -6
  261. data/sig/finch_api/models/provider_list_params.rbs +2 -0
  262. data/sig/finch_api/models/request_forwarding_forward_params.rbs +9 -0
  263. data/sig/finch_api/models/request_forwarding_forward_response.rbs +15 -0
  264. data/sig/finch_api/models/sandbox/company_update_params.rbs +44 -12
  265. data/sig/finch_api/models/sandbox/company_update_response.rbs +31 -0
  266. data/sig/finch_api/models/sandbox/connection_create_params.rbs +8 -0
  267. data/sig/finch_api/models/sandbox/connection_create_response.rbs +11 -0
  268. data/sig/finch_api/models/sandbox/connections/account_create_params.rbs +8 -0
  269. data/sig/finch_api/models/sandbox/connections/account_create_response.rbs +10 -0
  270. data/sig/finch_api/models/sandbox/connections/account_update_params.rbs +5 -0
  271. data/sig/finch_api/models/sandbox/connections/account_update_response.rbs +9 -0
  272. data/sig/finch_api/models/sandbox/directory_create_params.rbs +90 -40
  273. data/sig/finch_api/models/sandbox/employment_update_params.rbs +47 -20
  274. data/sig/finch_api/models/sandbox/employment_update_response.rbs +39 -12
  275. data/sig/finch_api/models/sandbox/individual_update_params.rbs +34 -8
  276. data/sig/finch_api/models/sandbox/individual_update_response.rbs +26 -0
  277. data/sig/finch_api/models/sandbox/job_create_params.rbs +5 -0
  278. data/sig/finch_api/models/sandbox/job_create_response.rbs +7 -0
  279. data/sig/finch_api/models/sandbox/jobs/configuration_retrieve_params.rbs +2 -0
  280. data/sig/finch_api/models/sandbox/jobs/configuration_update_params.rbs +2 -0
  281. data/sig/finch_api/models/sandbox/jobs/sandbox_job_configuration.rbs +13 -8
  282. data/sig/finch_api/models/sandbox/payment_create_params.rbs +287 -228
  283. data/sig/finch_api/models/sandbox/payment_create_response.rbs +2 -0
  284. data/sig/finch_api/resources/connect/sessions.rbs +2 -2
  285. data/sig/finch_api/resources/hris/benefits.rbs +1 -1
  286. data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +1 -1
  287. data/sig/finch_api/resources/hris/documents.rbs +1 -1
  288. data/sig/finch_api/resources/sandbox/employment.rbs +2 -2
  289. data/sig/finch_api/resources/sandbox/payment.rbs +2 -2
  290. metadata +5 -5
  291. data/lib/finch_api/models/hris/benefit_list_supported_benefits_response.rb +0 -110
  292. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_response.rbi +0 -290
  293. data/sig/finch_api/models/hris/benefit_list_supported_benefits_response.rbs +0 -79
@@ -11,7 +11,7 @@ module FinchAPI
11
11
  # @!attribute accounts
12
12
  # An array of bank account objects associated with the payroll/HRIS system.
13
13
  #
14
- # @return [Array<FinchAPI::Sandbox::CompanyUpdateParams::Account>, nil]
14
+ # @return [Array<FinchAPI::Models::Sandbox::CompanyUpdateParams::Account>, nil]
15
15
  required :accounts,
16
16
  -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::CompanyUpdateParams::Account] },
17
17
  nil?: true
@@ -19,7 +19,7 @@ module FinchAPI
19
19
  # @!attribute departments
20
20
  # The array of company departments.
21
21
  #
22
- # @return [Array<FinchAPI::Sandbox::CompanyUpdateParams::Department, nil>, nil]
22
+ # @return [Array<FinchAPI::Models::Sandbox::CompanyUpdateParams::Department, nil>, nil]
23
23
  required :departments,
24
24
  -> {
25
25
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::CompanyUpdateParams::Department,
@@ -36,7 +36,7 @@ module FinchAPI
36
36
  # @!attribute entity
37
37
  # The entity type object.
38
38
  #
39
- # @return [FinchAPI::Sandbox::CompanyUpdateParams::Entity, nil]
39
+ # @return [FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity, nil]
40
40
  required :entity, -> { FinchAPI::Sandbox::CompanyUpdateParams::Entity }, nil?: true
41
41
 
42
42
  # @!attribute legal_name
@@ -47,7 +47,7 @@ module FinchAPI
47
47
 
48
48
  # @!attribute locations
49
49
  #
50
- # @return [Array<FinchAPI::Location, nil>, nil]
50
+ # @return [Array<FinchAPI::Models::Location, nil>, nil]
51
51
  required :locations,
52
52
  -> {
53
53
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Location, nil?: true]
@@ -71,17 +71,17 @@ module FinchAPI
71
71
  # Some parameter documentations has been truncated, see
72
72
  # {FinchAPI::Models::Sandbox::CompanyUpdateParams} for more details.
73
73
  #
74
- # @param accounts [Array<FinchAPI::Sandbox::CompanyUpdateParams::Account>, nil] An array of bank account objects associated with the payroll/HRIS system.
74
+ # @param accounts [Array<FinchAPI::Models::Sandbox::CompanyUpdateParams::Account>, nil] An array of bank account objects associated with the payroll/HRIS system.
75
75
  #
76
- # @param departments [Array<FinchAPI::Sandbox::CompanyUpdateParams::Department, nil>, nil] The array of company departments.
76
+ # @param departments [Array<FinchAPI::Models::Sandbox::CompanyUpdateParams::Department, nil>, nil] The array of company departments.
77
77
  #
78
78
  # @param ein [String, nil] The employer identification number.
79
79
  #
80
- # @param entity [FinchAPI::Sandbox::CompanyUpdateParams::Entity, nil] The entity type object.
80
+ # @param entity [FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity, nil] The entity type object.
81
81
  #
82
82
  # @param legal_name [String, nil] The legal name of the company.
83
83
  #
84
- # @param locations [Array<FinchAPI::Location, nil>, nil]
84
+ # @param locations [Array<FinchAPI::Models::Location, nil>, nil]
85
85
  #
86
86
  # @param primary_email [String, nil] The email of the main administrator on the account.
87
87
  #
@@ -105,7 +105,7 @@ module FinchAPI
105
105
  # @!attribute account_type
106
106
  # The type of bank account.
107
107
  #
108
- # @return [Symbol, FinchAPI::Sandbox::CompanyUpdateParams::Account::AccountType, nil]
108
+ # @return [Symbol, FinchAPI::Models::Sandbox::CompanyUpdateParams::Account::AccountType, nil]
109
109
  optional :account_type,
110
110
  enum: -> { FinchAPI::Sandbox::CompanyUpdateParams::Account::AccountType },
111
111
  nil?: true
@@ -125,13 +125,13 @@ module FinchAPI
125
125
 
126
126
  # @!method initialize(account_name: nil, account_number: nil, account_type: nil, institution_name: nil, routing_number: nil)
127
127
  # Some parameter documentations has been truncated, see
128
- # {FinchAPI::Sandbox::CompanyUpdateParams::Account} for more details.
128
+ # {FinchAPI::Models::Sandbox::CompanyUpdateParams::Account} for more details.
129
129
  #
130
130
  # @param account_name [String, nil] The name of the bank associated in the payroll/HRIS system.
131
131
  #
132
132
  # @param account_number [String, nil] 10-12 digit number to specify the bank account
133
133
  #
134
- # @param account_type [Symbol, FinchAPI::Sandbox::CompanyUpdateParams::Account::AccountType, nil] The type of bank account.
134
+ # @param account_type [Symbol, FinchAPI::Models::Sandbox::CompanyUpdateParams::Account::AccountType, nil] The type of bank account.
135
135
  #
136
136
  # @param institution_name [String, nil] Name of the banking institution.
137
137
  #
@@ -139,7 +139,7 @@ module FinchAPI
139
139
 
140
140
  # The type of bank account.
141
141
  #
142
- # @see FinchAPI::Sandbox::CompanyUpdateParams::Account#account_type
142
+ # @see FinchAPI::Models::Sandbox::CompanyUpdateParams::Account#account_type
143
143
  module AccountType
144
144
  extend FinchAPI::Internal::Type::Enum
145
145
 
@@ -161,15 +161,15 @@ module FinchAPI
161
161
  # @!attribute parent
162
162
  # The parent department, if present.
163
163
  #
164
- # @return [FinchAPI::Sandbox::CompanyUpdateParams::Department::Parent, nil]
164
+ # @return [FinchAPI::Models::Sandbox::CompanyUpdateParams::Department::Parent, nil]
165
165
  optional :parent, -> { FinchAPI::Sandbox::CompanyUpdateParams::Department::Parent }, nil?: true
166
166
 
167
167
  # @!method initialize(name: nil, parent: nil)
168
168
  # @param name [String, nil] The department name.
169
169
  #
170
- # @param parent [FinchAPI::Sandbox::CompanyUpdateParams::Department::Parent, nil] The parent department, if present.
170
+ # @param parent [FinchAPI::Models::Sandbox::CompanyUpdateParams::Department::Parent, nil] The parent department, if present.
171
171
 
172
- # @see FinchAPI::Sandbox::CompanyUpdateParams::Department#parent
172
+ # @see FinchAPI::Models::Sandbox::CompanyUpdateParams::Department#parent
173
173
  class Parent < FinchAPI::Internal::Type::BaseModel
174
174
  # @!attribute name
175
175
  # The parent department's name.
@@ -188,25 +188,25 @@ module FinchAPI
188
188
  # @!attribute subtype
189
189
  # The tax payer subtype of the company.
190
190
  #
191
- # @return [Symbol, FinchAPI::Sandbox::CompanyUpdateParams::Entity::Subtype, nil]
191
+ # @return [Symbol, FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity::Subtype, nil]
192
192
  optional :subtype, enum: -> { FinchAPI::Sandbox::CompanyUpdateParams::Entity::Subtype }, nil?: true
193
193
 
194
194
  # @!attribute type
195
195
  # The tax payer type of the company.
196
196
  #
197
- # @return [Symbol, FinchAPI::Sandbox::CompanyUpdateParams::Entity::Type, nil]
197
+ # @return [Symbol, FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity::Type, nil]
198
198
  optional :type, enum: -> { FinchAPI::Sandbox::CompanyUpdateParams::Entity::Type }, nil?: true
199
199
 
200
200
  # @!method initialize(subtype: nil, type: nil)
201
201
  # The entity type object.
202
202
  #
203
- # @param subtype [Symbol, FinchAPI::Sandbox::CompanyUpdateParams::Entity::Subtype, nil] The tax payer subtype of the company.
203
+ # @param subtype [Symbol, FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity::Subtype, nil] The tax payer subtype of the company.
204
204
  #
205
- # @param type [Symbol, FinchAPI::Sandbox::CompanyUpdateParams::Entity::Type, nil] The tax payer type of the company.
205
+ # @param type [Symbol, FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity::Type, nil] The tax payer type of the company.
206
206
 
207
207
  # The tax payer subtype of the company.
208
208
  #
209
- # @see FinchAPI::Sandbox::CompanyUpdateParams::Entity#subtype
209
+ # @see FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity#subtype
210
210
  module Subtype
211
211
  extend FinchAPI::Internal::Type::Enum
212
212
 
@@ -220,7 +220,7 @@ module FinchAPI
220
220
 
221
221
  # The tax payer type of the company.
222
222
  #
223
- # @see FinchAPI::Sandbox::CompanyUpdateParams::Entity#type
223
+ # @see FinchAPI::Models::Sandbox::CompanyUpdateParams::Entity#type
224
224
  module Type
225
225
  extend FinchAPI::Internal::Type::Enum
226
226
 
@@ -41,7 +41,7 @@ module FinchAPI
41
41
 
42
42
  # @!attribute locations
43
43
  #
44
- # @return [Array<FinchAPI::Location, nil>, nil]
44
+ # @return [Array<FinchAPI::Models::Location, nil>, nil]
45
45
  required :locations,
46
46
  -> {
47
47
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Location, nil?: true]
@@ -75,7 +75,7 @@ module FinchAPI
75
75
  #
76
76
  # @param legal_name [String, nil] The legal name of the company.
77
77
  #
78
- # @param locations [Array<FinchAPI::Location, nil>, nil]
78
+ # @param locations [Array<FinchAPI::Models::Location, nil>, nil]
79
79
  #
80
80
  # @param primary_email [String, nil] The email of the main administrator on the account.
81
81
  #
@@ -16,7 +16,7 @@ module FinchAPI
16
16
 
17
17
  # @!attribute authentication_type
18
18
  #
19
- # @return [Symbol, FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType, nil]
19
+ # @return [Symbol, FinchAPI::Models::Sandbox::ConnectionCreateParams::AuthenticationType, nil]
20
20
  optional :authentication_type,
21
21
  enum: -> {
22
22
  FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType
@@ -41,7 +41,7 @@ module FinchAPI
41
41
  #
42
42
  # @param provider_id [String] The provider associated with the connection
43
43
  #
44
- # @param authentication_type [Symbol, FinchAPI::Sandbox::ConnectionCreateParams::AuthenticationType]
44
+ # @param authentication_type [Symbol, FinchAPI::Models::Sandbox::ConnectionCreateParams::AuthenticationType]
45
45
  #
46
46
  # @param employee_size [Integer] Optional: the size of the employer to be created with this connection. Defaults
47
47
  #
@@ -22,7 +22,7 @@ module FinchAPI
22
22
 
23
23
  # @!attribute authentication_type
24
24
  #
25
- # @return [Symbol, FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType, nil]
25
+ # @return [Symbol, FinchAPI::Models::Sandbox::Connections::AccountCreateParams::AuthenticationType, nil]
26
26
  optional :authentication_type,
27
27
  enum: -> { FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType }
28
28
 
@@ -41,7 +41,7 @@ module FinchAPI
41
41
  #
42
42
  # @param provider_id [String] The provider associated with the `access_token`
43
43
  #
44
- # @param authentication_type [Symbol, FinchAPI::Sandbox::Connections::AccountCreateParams::AuthenticationType]
44
+ # @param authentication_type [Symbol, FinchAPI::Models::Sandbox::Connections::AccountCreateParams::AuthenticationType]
45
45
  #
46
46
  # @param products [Array<String>] Optional, defaults to Organization products (`company`, `directory`, `employment
47
47
  #
@@ -11,11 +11,11 @@ module FinchAPI
11
11
 
12
12
  # @!attribute connection_status
13
13
  #
14
- # @return [Symbol, FinchAPI::ConnectionStatusType, nil]
14
+ # @return [Symbol, FinchAPI::Models::ConnectionStatusType, nil]
15
15
  optional :connection_status, enum: -> { FinchAPI::ConnectionStatusType }
16
16
 
17
17
  # @!method initialize(connection_status: nil, request_options: {})
18
- # @param connection_status [Symbol, FinchAPI::ConnectionStatusType]
18
+ # @param connection_status [Symbol, FinchAPI::Models::ConnectionStatusType]
19
19
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
20
20
  end
21
21
  end
@@ -12,7 +12,7 @@ module FinchAPI
12
12
  # Array of individuals to create. Takes all combined fields from `/individual` and
13
13
  # `/employment` endpoints. All fields are optional.
14
14
  #
15
- # @return [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body>, nil]
15
+ # @return [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body>, nil]
16
16
  optional :body,
17
17
  -> {
18
18
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::DirectoryCreateParams::Body]
@@ -22,7 +22,7 @@ module FinchAPI
22
22
  # Some parameter documentations has been truncated, see
23
23
  # {FinchAPI::Models::Sandbox::DirectoryCreateParams} for more details.
24
24
  #
25
- # @param body [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body>] Array of individuals to create. Takes all combined fields from `/individual` and
25
+ # @param body [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body>] Array of individuals to create. Takes all combined fields from `/individual` and
26
26
  #
27
27
  # @param request_options [FinchAPI::RequestOptions, Hash{Symbol=>Object}]
28
28
 
@@ -38,16 +38,17 @@ module FinchAPI
38
38
  # employer in the system. Custom fields are not currently supported for assisted
39
39
  # connections.
40
40
  #
41
- # @return [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body::CustomField>, nil]
41
+ # @return [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::CustomField>, nil]
42
42
  optional :custom_fields,
43
43
  -> {
44
44
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::DirectoryCreateParams::Body::CustomField]
45
- }
45
+ },
46
+ nil?: true
46
47
 
47
48
  # @!attribute department
48
49
  # The department object.
49
50
  #
50
- # @return [FinchAPI::Sandbox::DirectoryCreateParams::Body::Department, nil]
51
+ # @return [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Department, nil]
51
52
  optional :department, -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Department }, nil?: true
52
53
 
53
54
  # @!attribute dob
@@ -57,7 +58,7 @@ module FinchAPI
57
58
 
58
59
  # @!attribute emails
59
60
  #
60
- # @return [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body::Email>, nil]
61
+ # @return [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Email>, nil]
61
62
  optional :emails,
62
63
  -> {
63
64
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::DirectoryCreateParams::Body::Email]
@@ -67,13 +68,14 @@ module FinchAPI
67
68
  # @!attribute employment
68
69
  # The employment object.
69
70
  #
70
- # @return [FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment, nil]
71
+ # @return [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment, nil]
71
72
  optional :employment, -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment }, nil?: true
72
73
 
73
74
  # @!attribute employment_status
74
- # The detailed employment status of the individual.
75
+ # The detailed employment status of the individual. Available options: `active`,
76
+ # `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
75
77
  #
76
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::EmploymentStatus, nil]
78
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::EmploymentStatus, nil]
77
79
  optional :employment_status,
78
80
  enum: -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::EmploymentStatus },
79
81
  nil?: true
@@ -94,7 +96,7 @@ module FinchAPI
94
96
  # @!attribute ethnicity
95
97
  # The EEOC-defined ethnicity of the individual.
96
98
  #
97
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Ethnicity, nil]
99
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Ethnicity, nil]
98
100
  optional :ethnicity,
99
101
  enum: -> {
100
102
  FinchAPI::Sandbox::DirectoryCreateParams::Body::Ethnicity
@@ -110,7 +112,7 @@ module FinchAPI
110
112
  # @!attribute gender
111
113
  # The gender of the individual.
112
114
  #
113
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Gender, nil]
115
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Gender, nil]
114
116
  optional :gender, enum: -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Gender }, nil?: true
115
117
 
116
118
  # @!attribute income
@@ -118,13 +120,13 @@ module FinchAPI
118
120
  # annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
119
121
  # depending on what information the provider returns.
120
122
  #
121
- # @return [FinchAPI::Income, nil]
123
+ # @return [FinchAPI::Models::Income, nil]
122
124
  optional :income, -> { FinchAPI::Income }, nil?: true
123
125
 
124
126
  # @!attribute income_history
125
127
  # The array of income history.
126
128
  #
127
- # @return [Array<FinchAPI::Income, nil>, nil]
129
+ # @return [Array<FinchAPI::Models::Income, nil>, nil]
128
130
  optional :income_history,
129
131
  -> { FinchAPI::Internal::Type::ArrayOf[FinchAPI::Income, nil?: true] },
130
132
  nil?: true
@@ -148,13 +150,13 @@ module FinchAPI
148
150
 
149
151
  # @!attribute location
150
152
  #
151
- # @return [FinchAPI::Location, nil]
153
+ # @return [FinchAPI::Models::Location, nil]
152
154
  optional :location, -> { FinchAPI::Location }, nil?: true
153
155
 
154
156
  # @!attribute manager
155
157
  # The manager object representing the manager of the individual within the org.
156
158
  #
157
- # @return [FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager, nil]
159
+ # @return [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Manager, nil]
158
160
  optional :manager, -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager }, nil?: true
159
161
 
160
162
  # @!attribute middle_name
@@ -165,7 +167,7 @@ module FinchAPI
165
167
 
166
168
  # @!attribute phone_numbers
167
169
  #
168
- # @return [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber, nil>, nil]
170
+ # @return [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::PhoneNumber, nil>, nil]
169
171
  optional :phone_numbers,
170
172
  -> {
171
173
  FinchAPI::Internal::Type::ArrayOf[FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber,
@@ -181,14 +183,14 @@ module FinchAPI
181
183
 
182
184
  # @!attribute residence
183
185
  #
184
- # @return [FinchAPI::Location, nil]
186
+ # @return [FinchAPI::Models::Location, nil]
185
187
  optional :residence, -> { FinchAPI::Location }, nil?: true
186
188
 
187
189
  # @!attribute source_id
188
190
  # The source system's unique employment identifier for this individual
189
191
  #
190
192
  # @return [String, nil]
191
- optional :source_id, String
193
+ optional :source_id, String, nil?: true
192
194
 
193
195
  # @!attribute ssn
194
196
  # Social Security Number of the individual. This field is only available with the
@@ -212,35 +214,35 @@ module FinchAPI
212
214
 
213
215
  # @!method initialize(class_code: nil, custom_fields: nil, department: nil, dob: nil, emails: nil, employment: nil, employment_status: nil, encrypted_ssn: nil, end_date: nil, ethnicity: nil, first_name: nil, gender: nil, income: nil, income_history: nil, is_active: nil, last_name: nil, latest_rehire_date: nil, location: nil, manager: nil, middle_name: nil, phone_numbers: nil, preferred_name: nil, residence: nil, source_id: nil, ssn: nil, start_date: nil, title: nil)
214
216
  # Some parameter documentations has been truncated, see
215
- # {FinchAPI::Sandbox::DirectoryCreateParams::Body} for more details.
217
+ # {FinchAPI::Models::Sandbox::DirectoryCreateParams::Body} for more details.
216
218
  #
217
219
  # @param class_code [String, nil] Worker's compensation classification code for this employee
218
220
  #
219
- # @param custom_fields [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body::CustomField>] Custom fields for the individual. These are fields which are defined by the empl
221
+ # @param custom_fields [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::CustomField>, nil] Custom fields for the individual. These are fields which are defined by the empl
220
222
  #
221
- # @param department [FinchAPI::Sandbox::DirectoryCreateParams::Body::Department, nil] The department object.
223
+ # @param department [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Department, nil] The department object.
222
224
  #
223
225
  # @param dob [String, nil]
224
226
  #
225
- # @param emails [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body::Email>, nil]
227
+ # @param emails [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Email>, nil]
226
228
  #
227
- # @param employment [FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment, nil] The employment object.
229
+ # @param employment [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment, nil] The employment object.
228
230
  #
229
- # @param employment_status [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::EmploymentStatus, nil] The detailed employment status of the individual.
231
+ # @param employment_status [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::EmploymentStatus, nil] The detailed employment status of the individual. Available options: `active`, `
230
232
  #
231
233
  # @param encrypted_ssn [String, nil] Social Security Number of the individual in **encrypted** format. This field is
232
234
  #
233
235
  # @param end_date [String, nil]
234
236
  #
235
- # @param ethnicity [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Ethnicity, nil] The EEOC-defined ethnicity of the individual.
237
+ # @param ethnicity [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Ethnicity, nil] The EEOC-defined ethnicity of the individual.
236
238
  #
237
239
  # @param first_name [String, nil] The legal first name of the individual.
238
240
  #
239
- # @param gender [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Gender, nil] The gender of the individual.
241
+ # @param gender [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Gender, nil] The gender of the individual.
240
242
  #
241
- # @param income [FinchAPI::Income, nil] The employee's income as reported by the provider. This may not always be annual
243
+ # @param income [FinchAPI::Models::Income, nil] The employee's income as reported by the provider. This may not always be annual
242
244
  #
243
- # @param income_history [Array<FinchAPI::Income, nil>, nil] The array of income history.
245
+ # @param income_history [Array<FinchAPI::Models::Income, nil>, nil] The array of income history.
244
246
  #
245
247
  # @param is_active [Boolean, nil] `true` if the individual an an active employee or contractor at the company.
246
248
  #
@@ -248,19 +250,19 @@ module FinchAPI
248
250
  #
249
251
  # @param latest_rehire_date [String, nil]
250
252
  #
251
- # @param location [FinchAPI::Location, nil]
253
+ # @param location [FinchAPI::Models::Location, nil]
252
254
  #
253
- # @param manager [FinchAPI::Sandbox::DirectoryCreateParams::Body::Manager, nil] The manager object representing the manager of the individual within the org.
255
+ # @param manager [FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Manager, nil] The manager object representing the manager of the individual within the org.
254
256
  #
255
257
  # @param middle_name [String, nil] The legal middle name of the individual.
256
258
  #
257
- # @param phone_numbers [Array<FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber, nil>, nil]
259
+ # @param phone_numbers [Array<FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::PhoneNumber, nil>, nil]
258
260
  #
259
261
  # @param preferred_name [String, nil] The preferred name of the individual.
260
262
  #
261
- # @param residence [FinchAPI::Location, nil]
263
+ # @param residence [FinchAPI::Models::Location, nil]
262
264
  #
263
- # @param source_id [String] The source system's unique employment identifier for this individual
265
+ # @param source_id [String, nil] The source system's unique employment identifier for this individual
264
266
  #
265
267
  # @param ssn [String, nil] Social Security Number of the individual. This field is only available with the
266
268
  #
@@ -284,7 +286,7 @@ module FinchAPI
284
286
  # @param value [Object]
285
287
  end
286
288
 
287
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body#department
289
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#department
288
290
  class Department < FinchAPI::Internal::Type::BaseModel
289
291
  # @!attribute name
290
292
  # The name of the department associated with the individual.
@@ -306,7 +308,7 @@ module FinchAPI
306
308
 
307
309
  # @!attribute type
308
310
  #
309
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Email::Type, nil]
311
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Email::Type, nil]
310
312
  optional :type,
311
313
  enum: -> {
312
314
  FinchAPI::Sandbox::DirectoryCreateParams::Body::Email::Type
@@ -315,9 +317,9 @@ module FinchAPI
315
317
 
316
318
  # @!method initialize(data: nil, type: nil)
317
319
  # @param data [String]
318
- # @param type [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Email::Type, nil]
320
+ # @param type [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Email::Type, nil]
319
321
 
320
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body::Email#type
322
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Email#type
321
323
  module Type
322
324
  extend FinchAPI::Internal::Type::Enum
323
325
 
@@ -329,13 +331,13 @@ module FinchAPI
329
331
  end
330
332
  end
331
333
 
332
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body#employment
334
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#employment
333
335
  class Employment < FinchAPI::Internal::Type::BaseModel
334
336
  # @!attribute subtype
335
337
  # The secondary employment type of the individual. Options: `full_time`,
336
338
  # `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
337
339
  #
338
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment::Subtype, nil]
340
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment::Subtype, nil]
339
341
  optional :subtype,
340
342
  enum: -> { FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment::Subtype },
341
343
  nil?: true
@@ -343,7 +345,7 @@ module FinchAPI
343
345
  # @!attribute type
344
346
  # The main employment type of the individual.
345
347
  #
346
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment::Type, nil]
348
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment::Type, nil]
347
349
  optional :type,
348
350
  enum: -> {
349
351
  FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment::Type
@@ -352,18 +354,19 @@ module FinchAPI
352
354
 
353
355
  # @!method initialize(subtype: nil, type: nil)
354
356
  # Some parameter documentations has been truncated, see
355
- # {FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment} for more details.
357
+ # {FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment} for more
358
+ # details.
356
359
  #
357
360
  # The employment object.
358
361
  #
359
- # @param subtype [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment::Subtype, nil] The secondary employment type of the individual. Options: `full_time`, `part_ti
362
+ # @param subtype [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment::Subtype, nil] The secondary employment type of the individual. Options: `full_time`, `part_tim
360
363
  #
361
- # @param type [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment::Type, nil] The main employment type of the individual.
364
+ # @param type [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment::Type, nil] The main employment type of the individual.
362
365
 
363
366
  # The secondary employment type of the individual. Options: `full_time`,
364
367
  # `part_time`, `intern`, `temp`, `seasonal` and `individual_contractor`.
365
368
  #
366
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment#subtype
369
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment#subtype
367
370
  module Subtype
368
371
  extend FinchAPI::Internal::Type::Enum
369
372
 
@@ -380,7 +383,7 @@ module FinchAPI
380
383
 
381
384
  # The main employment type of the individual.
382
385
  #
383
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body::Employment#type
386
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::Employment#type
384
387
  module Type
385
388
  extend FinchAPI::Internal::Type::Enum
386
389
 
@@ -392,9 +395,10 @@ module FinchAPI
392
395
  end
393
396
  end
394
397
 
395
- # The detailed employment status of the individual.
398
+ # The detailed employment status of the individual. Available options: `active`,
399
+ # `deceased`, `leave`, `onboarding`, `prehire`, `retired`, `terminated`.
396
400
  #
397
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body#employment_status
401
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#employment_status
398
402
  module EmploymentStatus
399
403
  extend FinchAPI::Internal::Type::Enum
400
404
 
@@ -412,7 +416,7 @@ module FinchAPI
412
416
 
413
417
  # The EEOC-defined ethnicity of the individual.
414
418
  #
415
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body#ethnicity
419
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#ethnicity
416
420
  module Ethnicity
417
421
  extend FinchAPI::Internal::Type::Enum
418
422
 
@@ -431,7 +435,7 @@ module FinchAPI
431
435
 
432
436
  # The gender of the individual.
433
437
  #
434
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body#gender
438
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#gender
435
439
  module Gender
436
440
  extend FinchAPI::Internal::Type::Enum
437
441
 
@@ -444,7 +448,7 @@ module FinchAPI
444
448
  # @return [Array<Symbol>]
445
449
  end
446
450
 
447
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body#manager
451
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body#manager
448
452
  class Manager < FinchAPI::Internal::Type::BaseModel
449
453
  # @!attribute id
450
454
  # A stable Finch `id` (UUID v4) for an individual in the company.
@@ -466,7 +470,7 @@ module FinchAPI
466
470
 
467
471
  # @!attribute type
468
472
  #
469
- # @return [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber::Type, nil]
473
+ # @return [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::PhoneNumber::Type, nil]
470
474
  optional :type,
471
475
  enum: -> {
472
476
  FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber::Type
@@ -475,9 +479,9 @@ module FinchAPI
475
479
 
476
480
  # @!method initialize(data: nil, type: nil)
477
481
  # @param data [String, nil]
478
- # @param type [Symbol, FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber::Type, nil]
482
+ # @param type [Symbol, FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::PhoneNumber::Type, nil]
479
483
 
480
- # @see FinchAPI::Sandbox::DirectoryCreateParams::Body::PhoneNumber#type
484
+ # @see FinchAPI::Models::Sandbox::DirectoryCreateParams::Body::PhoneNumber#type
481
485
  module Type
482
486
  extend FinchAPI::Internal::Type::Enum
483
487