finch-api 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.13

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 (1031) hide show
  1. checksums.yaml +4 -4
  2. data/.ignore +2 -0
  3. data/CHANGELOG.md +315 -0
  4. data/README.md +86 -26
  5. data/SECURITY.md +27 -0
  6. data/lib/finch_api/client.rb +142 -0
  7. data/lib/finch_api/errors.rb +192 -0
  8. data/lib/finch_api/file_part.rb +55 -0
  9. data/lib/finch_api/internal/individuals_page.rb +93 -0
  10. data/lib/finch_api/internal/page.rb +93 -0
  11. data/lib/finch_api/internal/responses_page.rb +76 -0
  12. data/lib/finch_api/internal/single_page.rb +73 -0
  13. data/lib/finch_api/internal/transport/base_client.rb +483 -0
  14. data/lib/finch_api/internal/transport/pooled_net_requester.rb +193 -0
  15. data/lib/finch_api/internal/type/array_of.rb +154 -0
  16. data/lib/finch_api/internal/type/base_model.rb +445 -0
  17. data/lib/finch_api/internal/type/base_page.rb +55 -0
  18. data/lib/finch_api/internal/type/boolean.rb +63 -0
  19. data/lib/finch_api/internal/type/converter.rb +274 -0
  20. data/lib/finch_api/internal/type/enum.rb +132 -0
  21. data/lib/finch_api/internal/type/file_input.rb +96 -0
  22. data/lib/finch_api/internal/type/hash_of.rb +174 -0
  23. data/lib/finch_api/internal/type/request_parameters.rb +48 -0
  24. data/lib/finch_api/internal/type/union.rb +235 -0
  25. data/lib/finch_api/internal/type/unknown.rb +67 -0
  26. data/lib/finch_api/internal/util.rb +790 -0
  27. data/lib/finch_api/internal.rb +11 -0
  28. data/lib/finch_api/models/access_token_create_params.rb +38 -0
  29. data/lib/finch_api/models/account_disconnect_params.rb +14 -0
  30. data/lib/finch_api/models/account_introspect_params.rb +14 -0
  31. data/lib/finch_api/models/account_update_event.rb +1161 -0
  32. data/lib/finch_api/models/base_webhook_event.rb +44 -0
  33. data/lib/finch_api/models/company_event.rb +30 -0
  34. data/lib/finch_api/models/connect/session_new_params.rb +146 -0
  35. data/lib/finch_api/models/connect/session_new_response.rb +27 -0
  36. data/lib/finch_api/models/connect/session_reauthenticate_params.rb +74 -0
  37. data/lib/finch_api/models/connect/session_reauthenticate_response.rb +27 -0
  38. data/lib/finch_api/models/connection_status_type.rb +19 -0
  39. data/lib/finch_api/models/create_access_token_response.rb +135 -0
  40. data/lib/finch_api/models/directory_event.rb +43 -0
  41. data/lib/finch_api/models/disconnect_response.rb +17 -0
  42. data/lib/finch_api/models/employment_event.rb +43 -0
  43. data/lib/finch_api/models/hris/benefit_contribution.rb +39 -0
  44. data/lib/finch_api/models/hris/benefit_create_params.rb +101 -0
  45. data/lib/finch_api/models/hris/benefit_features_and_operations.rb +142 -0
  46. data/lib/finch_api/models/hris/benefit_frequency.rb +19 -0
  47. data/lib/finch_api/models/hris/benefit_list_params.rb +16 -0
  48. data/lib/finch_api/models/hris/benefit_list_supported_benefits_params.rb +16 -0
  49. data/lib/finch_api/models/hris/benefit_list_supported_benefits_response.rb +114 -0
  50. data/lib/finch_api/models/hris/benefit_retrieve_params.rb +16 -0
  51. data/lib/finch_api/models/hris/benefit_type.rb +35 -0
  52. data/lib/finch_api/models/hris/benefit_update_params.rb +24 -0
  53. data/lib/finch_api/models/hris/benefits/enrolled_individual_benefit_response.rb +20 -0
  54. data/lib/finch_api/models/hris/benefits/individual_benefit.rb +97 -0
  55. data/lib/finch_api/models/hris/benefits/individual_enroll_many_params.rb +193 -0
  56. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_params.rb +18 -0
  57. data/lib/finch_api/models/hris/benefits/individual_enrolled_ids_response.rb +28 -0
  58. data/lib/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +32 -0
  59. data/lib/finch_api/models/hris/benefits/individual_unenroll_many_params.rb +26 -0
  60. data/lib/finch_api/models/hris/benefits/unenrolled_individual_benefit_response.rb +20 -0
  61. data/lib/finch_api/models/hris/benefits_support.rb +86 -0
  62. data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_params.rb +131 -0
  63. data/lib/finch_api/models/hris/company/pay_statement_item/rule_create_response.rb +161 -0
  64. data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rb +20 -0
  65. data/lib/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rb +169 -0
  66. data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_params.rb +20 -0
  67. data/lib/finch_api/models/hris/company/pay_statement_item/rule_list_response.rb +161 -0
  68. data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_params.rb +26 -0
  69. data/lib/finch_api/models/hris/company/pay_statement_item/rule_update_response.rb +161 -0
  70. data/lib/finch_api/models/hris/company/pay_statement_item_list_params.rb +80 -0
  71. data/lib/finch_api/models/hris/company/pay_statement_item_list_response.rb +102 -0
  72. data/lib/finch_api/models/hris/company.rb +241 -0
  73. data/lib/finch_api/models/hris/company_benefit.rb +98 -0
  74. data/lib/finch_api/models/hris/company_retrieve_params.rb +16 -0
  75. data/lib/finch_api/models/hris/create_company_benefits_response.rb +26 -0
  76. data/lib/finch_api/models/hris/directory_list_individuals_params.rb +32 -0
  77. data/lib/finch_api/models/hris/directory_list_params.rb +32 -0
  78. data/lib/finch_api/models/hris/document_list_params.rb +66 -0
  79. data/lib/finch_api/models/hris/document_list_response.rb +24 -0
  80. data/lib/finch_api/models/hris/document_response.rb +70 -0
  81. data/lib/finch_api/models/hris/document_retreive_params.rb +16 -0
  82. data/lib/finch_api/models/hris/document_retreive_response.rb +26 -0
  83. data/lib/finch_api/models/hris/employment_data.rb +305 -0
  84. data/lib/finch_api/models/hris/employment_data_response.rb +33 -0
  85. data/lib/finch_api/models/hris/employment_retrieve_many_params.rb +43 -0
  86. data/lib/finch_api/models/hris/individual.rb +253 -0
  87. data/lib/finch_api/models/hris/individual_in_directory.rb +95 -0
  88. data/lib/finch_api/models/hris/individual_response.rb +30 -0
  89. data/lib/finch_api/models/hris/individual_retrieve_many_params.rb +49 -0
  90. data/lib/finch_api/models/hris/pay_statement.rb +483 -0
  91. data/lib/finch_api/models/hris/pay_statement_response.rb +30 -0
  92. data/lib/finch_api/models/hris/pay_statement_response_body.rb +25 -0
  93. data/lib/finch_api/models/hris/pay_statement_retrieve_many_params.rb +52 -0
  94. data/lib/finch_api/models/hris/payment.rb +138 -0
  95. data/lib/finch_api/models/hris/payment_list_params.rb +39 -0
  96. data/lib/finch_api/models/hris/support_per_benefit_type.rb +23 -0
  97. data/lib/finch_api/models/hris/supported_benefit.rb +113 -0
  98. data/lib/finch_api/models/hris/update_company_benefit_response.rb +26 -0
  99. data/lib/finch_api/models/hris/w42005.rb +122 -0
  100. data/lib/finch_api/models/hris/w42020.rb +139 -0
  101. data/lib/finch_api/models/income.rb +70 -0
  102. data/lib/finch_api/models/individual_event.rb +43 -0
  103. data/lib/finch_api/models/introspection.rb +287 -0
  104. data/lib/finch_api/models/job_completion_event.rb +54 -0
  105. data/lib/finch_api/models/jobs/automated_async_job.rb +133 -0
  106. data/lib/finch_api/models/jobs/automated_create_params.rb +52 -0
  107. data/lib/finch_api/models/jobs/automated_create_response.rb +43 -0
  108. data/lib/finch_api/models/jobs/automated_list_params.rb +32 -0
  109. data/lib/finch_api/models/jobs/automated_list_response.rb +76 -0
  110. data/lib/finch_api/models/jobs/automated_retrieve_params.rb +16 -0
  111. data/lib/finch_api/models/jobs/manual_async_job.rb +46 -0
  112. data/lib/finch_api/models/jobs/manual_retrieve_params.rb +16 -0
  113. data/lib/finch_api/models/location.rb +70 -0
  114. data/lib/finch_api/models/money.rb +23 -0
  115. data/lib/finch_api/models/operation_support.rb +24 -0
  116. data/lib/finch_api/models/operation_support_matrix.rb +67 -0
  117. data/lib/finch_api/models/paging.rb +24 -0
  118. data/lib/finch_api/models/pay_statement_event.rb +51 -0
  119. data/lib/finch_api/models/payment_event.rb +51 -0
  120. data/lib/finch_api/models/payroll/pay_group_list_params.rb +28 -0
  121. data/lib/finch_api/models/payroll/pay_group_list_response.rb +53 -0
  122. data/lib/finch_api/models/payroll/pay_group_retrieve_params.rb +16 -0
  123. data/lib/finch_api/models/payroll/pay_group_retrieve_response.rb +60 -0
  124. data/lib/finch_api/models/provider.rb +1203 -0
  125. data/lib/finch_api/models/provider_list_params.rb +14 -0
  126. data/lib/finch_api/models/request_forwarding_forward_params.rb +69 -0
  127. data/lib/finch_api/models/request_forwarding_forward_response.rb +112 -0
  128. data/lib/finch_api/models/sandbox/company_update_params.rb +241 -0
  129. data/lib/finch_api/models/sandbox/company_update_response.rb +237 -0
  130. data/lib/finch_api/models/sandbox/connection_create_params.rb +65 -0
  131. data/lib/finch_api/models/sandbox/connection_create_response.rb +89 -0
  132. data/lib/finch_api/models/sandbox/connections/account_create_params.rb +66 -0
  133. data/lib/finch_api/models/sandbox/connections/account_create_response.rb +84 -0
  134. data/lib/finch_api/models/sandbox/connections/account_update_params.rb +24 -0
  135. data/lib/finch_api/models/sandbox/connections/account_update_response.rb +77 -0
  136. data/lib/finch_api/models/sandbox/directory_create_params.rb +489 -0
  137. data/lib/finch_api/models/sandbox/directory_create_response.rb +10 -0
  138. data/lib/finch_api/models/sandbox/employment_update_params.rb +290 -0
  139. data/lib/finch_api/models/sandbox/employment_update_response.rb +298 -0
  140. data/lib/finch_api/models/sandbox/individual_update_params.rb +208 -0
  141. data/lib/finch_api/models/sandbox/individual_update_response.rb +217 -0
  142. data/lib/finch_api/models/sandbox/job_create_params.rb +34 -0
  143. data/lib/finch_api/models/sandbox/job_create_response.rb +43 -0
  144. data/lib/finch_api/models/sandbox/jobs/configuration_retrieve_params.rb +18 -0
  145. data/lib/finch_api/models/sandbox/jobs/configuration_retrieve_response.rb +13 -0
  146. data/lib/finch_api/models/sandbox/jobs/configuration_update_params.rb +18 -0
  147. data/lib/finch_api/models/sandbox/jobs/sandbox_job_configuration.rb +50 -0
  148. data/lib/finch_api/models/sandbox/payment_create_params.rb +527 -0
  149. data/lib/finch_api/models/sandbox/payment_create_response.rb +27 -0
  150. data/lib/finch_api/models/webhook_event.rb +30 -0
  151. data/lib/finch_api/request_options.rb +73 -0
  152. data/lib/finch_api/resources/access_tokens.rb +38 -0
  153. data/lib/finch_api/resources/account.rb +50 -0
  154. data/lib/finch_api/resources/connect/sessions.rb +90 -0
  155. data/lib/finch_api/resources/connect.rb +18 -0
  156. data/lib/finch_api/resources/hris/benefits/individuals.rb +119 -0
  157. data/lib/finch_api/resources/hris/benefits.rb +134 -0
  158. data/lib/finch_api/resources/hris/company/pay_statement_item/rules.rb +120 -0
  159. data/lib/finch_api/resources/hris/company/pay_statement_item.rb +61 -0
  160. data/lib/finch_api/resources/hris/company.rb +38 -0
  161. data/lib/finch_api/resources/hris/directory.rb +46 -0
  162. data/lib/finch_api/resources/hris/documents.rb +71 -0
  163. data/lib/finch_api/resources/hris/employments.rb +39 -0
  164. data/lib/finch_api/resources/hris/individuals.rb +39 -0
  165. data/lib/finch_api/resources/hris/pay_statements.rb +42 -0
  166. data/lib/finch_api/resources/hris/payments.rb +46 -0
  167. data/lib/finch_api/resources/hris.rb +46 -0
  168. data/lib/finch_api/resources/jobs/automated.rb +98 -0
  169. data/lib/finch_api/resources/jobs/manual.rb +36 -0
  170. data/lib/finch_api/resources/jobs.rb +22 -0
  171. data/lib/finch_api/resources/payroll/pay_groups.rb +58 -0
  172. data/lib/finch_api/resources/payroll.rb +18 -0
  173. data/lib/finch_api/resources/providers.rb +33 -0
  174. data/lib/finch_api/resources/request_forwarding.rb +55 -0
  175. data/lib/finch_api/resources/sandbox/company.rb +56 -0
  176. data/lib/finch_api/resources/sandbox/connections/accounts.rb +72 -0
  177. data/lib/finch_api/resources/sandbox/connections.rb +52 -0
  178. data/lib/finch_api/resources/sandbox/directory.rb +42 -0
  179. data/lib/finch_api/resources/sandbox/employment.rb +79 -0
  180. data/lib/finch_api/resources/sandbox/individual.rb +67 -0
  181. data/lib/finch_api/resources/sandbox/jobs/configuration.rb +58 -0
  182. data/lib/finch_api/resources/sandbox/jobs.rb +42 -0
  183. data/lib/finch_api/resources/sandbox/payment.rb +39 -0
  184. data/lib/finch_api/resources/sandbox.rb +42 -0
  185. data/lib/finch_api/resources/webhooks.rb +14 -0
  186. data/lib/finch_api/version.rb +5 -0
  187. data/lib/finch_api.rb +210 -0
  188. data/manifest.yaml +1 -0
  189. data/rbi/finch_api/client.rbi +94 -0
  190. data/rbi/finch_api/errors.rbi +143 -0
  191. data/rbi/finch_api/file_part.rbi +34 -0
  192. data/rbi/finch_api/internal/individuals_page.rbi +21 -0
  193. data/rbi/finch_api/internal/page.rbi +21 -0
  194. data/rbi/finch_api/internal/responses_page.rbi +18 -0
  195. data/rbi/finch_api/internal/single_page.rbi +24 -0
  196. data/rbi/finch_api/internal/transport/base_client.rbi +213 -0
  197. data/rbi/finch_api/internal/transport/pooled_net_requester.rbi +60 -0
  198. data/rbi/finch_api/internal/type/array_of.rbi +88 -0
  199. data/rbi/finch_api/internal/type/base_model.rbi +219 -0
  200. data/rbi/finch_api/internal/type/base_page.rbi +38 -0
  201. data/rbi/finch_api/internal/type/boolean.rbi +48 -0
  202. data/rbi/finch_api/internal/type/converter.rbi +120 -0
  203. data/rbi/finch_api/internal/type/enum.rbi +64 -0
  204. data/rbi/finch_api/internal/type/file_input.rbi +50 -0
  205. data/rbi/finch_api/internal/type/hash_of.rbi +88 -0
  206. data/rbi/finch_api/internal/type/request_parameters.rbi +21 -0
  207. data/rbi/finch_api/internal/type/union.rbi +75 -0
  208. data/rbi/finch_api/internal/type/unknown.rbi +40 -0
  209. data/rbi/finch_api/internal/util.rbi +299 -0
  210. data/rbi/finch_api/internal.rbi +11 -0
  211. data/rbi/finch_api/models/access_token_create_params.rbi +57 -0
  212. data/rbi/finch_api/models/account_disconnect_params.rbi +19 -0
  213. data/rbi/finch_api/models/account_introspect_params.rbi +19 -0
  214. data/rbi/finch_api/models/account_update_event.rbi +2316 -0
  215. data/rbi/finch_api/models/base_webhook_event.rbi +40 -0
  216. data/rbi/finch_api/models/company_event.rbi +48 -0
  217. data/rbi/finch_api/models/connect/session_new_params.rbi +182 -0
  218. data/rbi/finch_api/models/connect/session_new_response.rbi +27 -0
  219. data/rbi/finch_api/models/connect/session_reauthenticate_params.rbi +95 -0
  220. data/rbi/finch_api/models/connect/session_reauthenticate_response.rbi +27 -0
  221. data/rbi/finch_api/models/connection_status_type.rbi +23 -0
  222. data/rbi/finch_api/models/create_access_token_response.rbi +151 -0
  223. data/rbi/finch_api/models/directory_event.rbi +73 -0
  224. data/rbi/finch_api/models/disconnect_response.rbi +19 -0
  225. data/rbi/finch_api/models/employment_event.rbi +73 -0
  226. data/rbi/finch_api/models/hris/benefit_contribution.rbi +52 -0
  227. data/rbi/finch_api/models/hris/benefit_create_params.rbi +159 -0
  228. data/rbi/finch_api/models/hris/benefit_features_and_operations.rbi +293 -0
  229. data/rbi/finch_api/models/hris/benefit_frequency.rbi +22 -0
  230. data/rbi/finch_api/models/hris/benefit_list_params.rbi +21 -0
  231. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_params.rbi +21 -0
  232. data/rbi/finch_api/models/hris/benefit_list_supported_benefits_response.rbi +209 -0
  233. data/rbi/finch_api/models/hris/benefit_retrieve_params.rbi +21 -0
  234. data/rbi/finch_api/models/hris/benefit_type.rbi +38 -0
  235. data/rbi/finch_api/models/hris/benefit_update_params.rbi +37 -0
  236. data/rbi/finch_api/models/hris/benefits/enrolled_individual_benefit_response.rbi +20 -0
  237. data/rbi/finch_api/models/hris/benefits/individual_benefit.rbi +158 -0
  238. data/rbi/finch_api/models/hris/benefits/individual_enroll_many_params.rbi +433 -0
  239. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbi +23 -0
  240. data/rbi/finch_api/models/hris/benefits/individual_enrolled_ids_response.rbi +27 -0
  241. data/rbi/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +38 -0
  242. data/rbi/finch_api/models/hris/benefits/individual_unenroll_many_params.rbi +38 -0
  243. data/rbi/finch_api/models/hris/benefits/unenrolled_individual_benefit_response.rbi +20 -0
  244. data/rbi/finch_api/models/hris/benefits_support.rbi +195 -0
  245. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbi +249 -0
  246. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbi +287 -0
  247. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbi +25 -0
  248. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbi +298 -0
  249. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbi +25 -0
  250. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbi +287 -0
  251. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbi +36 -0
  252. data/rbi/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbi +287 -0
  253. data/rbi/finch_api/models/hris/company/pay_statement_item_list_params.rbi +132 -0
  254. data/rbi/finch_api/models/hris/company/pay_statement_item_list_response.rbi +158 -0
  255. data/rbi/finch_api/models/hris/company.rbi +303 -0
  256. data/rbi/finch_api/models/hris/company_benefit.rbi +146 -0
  257. data/rbi/finch_api/models/hris/company_retrieve_params.rbi +21 -0
  258. data/rbi/finch_api/models/hris/create_company_benefits_response.rbi +25 -0
  259. data/rbi/finch_api/models/hris/directory_list_individuals_params.rbi +44 -0
  260. data/rbi/finch_api/models/hris/directory_list_params.rbi +44 -0
  261. data/rbi/finch_api/models/hris/document_list_params.rbi +92 -0
  262. data/rbi/finch_api/models/hris/document_list_response.rbi +33 -0
  263. data/rbi/finch_api/models/hris/document_response.rbi +92 -0
  264. data/rbi/finch_api/models/hris/document_retreive_params.rbi +21 -0
  265. data/rbi/finch_api/models/hris/document_retreive_response.rbi +16 -0
  266. data/rbi/finch_api/models/hris/employment_data.rbi +365 -0
  267. data/rbi/finch_api/models/hris/employment_data_response.rbi +45 -0
  268. data/rbi/finch_api/models/hris/employment_retrieve_many_params.rbi +57 -0
  269. data/rbi/finch_api/models/hris/individual.rbi +317 -0
  270. data/rbi/finch_api/models/hris/individual_in_directory.rbi +127 -0
  271. data/rbi/finch_api/models/hris/individual_response.rbi +48 -0
  272. data/rbi/finch_api/models/hris/individual_retrieve_many_params.rbi +88 -0
  273. data/rbi/finch_api/models/hris/pay_statement.rbi +675 -0
  274. data/rbi/finch_api/models/hris/pay_statement_response.rbi +43 -0
  275. data/rbi/finch_api/models/hris/pay_statement_response_body.rbi +45 -0
  276. data/rbi/finch_api/models/hris/pay_statement_retrieve_many_params.rbi +71 -0
  277. data/rbi/finch_api/models/hris/payment.rbi +168 -0
  278. data/rbi/finch_api/models/hris/payment_list_params.rbi +44 -0
  279. data/rbi/finch_api/models/hris/support_per_benefit_type.rbi +46 -0
  280. data/rbi/finch_api/models/hris/supported_benefit.rbi +145 -0
  281. data/rbi/finch_api/models/hris/update_company_benefit_response.rbi +25 -0
  282. data/rbi/finch_api/models/hris/w42005.rbi +168 -0
  283. data/rbi/finch_api/models/hris/w42020.rbi +182 -0
  284. data/rbi/finch_api/models/income.rbi +82 -0
  285. data/rbi/finch_api/models/individual_event.rbi +73 -0
  286. data/rbi/finch_api/models/introspection.rbi +362 -0
  287. data/rbi/finch_api/models/job_completion_event.rbi +82 -0
  288. data/rbi/finch_api/models/jobs/automated_async_job.rbi +162 -0
  289. data/rbi/finch_api/models/jobs/automated_create_params.rbi +79 -0
  290. data/rbi/finch_api/models/jobs/automated_create_response.rbi +50 -0
  291. data/rbi/finch_api/models/jobs/automated_list_params.rbi +44 -0
  292. data/rbi/finch_api/models/jobs/automated_list_response.rbi +129 -0
  293. data/rbi/finch_api/models/jobs/automated_retrieve_params.rbi +21 -0
  294. data/rbi/finch_api/models/jobs/manual_async_job.rbi +60 -0
  295. data/rbi/finch_api/models/jobs/manual_retrieve_params.rbi +21 -0
  296. data/rbi/finch_api/models/location.rbi +83 -0
  297. data/rbi/finch_api/models/money.rbi +26 -0
  298. data/rbi/finch_api/models/operation_support.rbi +28 -0
  299. data/rbi/finch_api/models/operation_support_matrix.rbi +115 -0
  300. data/rbi/finch_api/models/paging.rbi +28 -0
  301. data/rbi/finch_api/models/pay_statement_event.rbi +82 -0
  302. data/rbi/finch_api/models/payment_event.rbi +73 -0
  303. data/rbi/finch_api/models/payroll/pay_group_list_params.rbi +46 -0
  304. data/rbi/finch_api/models/payroll/pay_group_list_response.rbi +86 -0
  305. data/rbi/finch_api/models/payroll/pay_group_retrieve_params.rbi +21 -0
  306. data/rbi/finch_api/models/payroll/pay_group_retrieve_response.rbi +84 -0
  307. data/rbi/finch_api/models/provider.rbi +2250 -0
  308. data/rbi/finch_api/models/provider_list_params.rbi +19 -0
  309. data/rbi/finch_api/models/request_forwarding_forward_params.rbi +83 -0
  310. data/rbi/finch_api/models/request_forwarding_forward_response.rbi +143 -0
  311. data/rbi/finch_api/models/sandbox/company_update_params.rbi +327 -0
  312. data/rbi/finch_api/models/sandbox/company_update_response.rbi +327 -0
  313. data/rbi/finch_api/models/sandbox/connection_create_params.rbi +100 -0
  314. data/rbi/finch_api/models/sandbox/connection_create_response.rbi +107 -0
  315. data/rbi/finch_api/models/sandbox/connections/account_create_params.rbi +115 -0
  316. data/rbi/finch_api/models/sandbox/connections/account_create_response.rbi +114 -0
  317. data/rbi/finch_api/models/sandbox/connections/account_update_params.rbi +40 -0
  318. data/rbi/finch_api/models/sandbox/connections/account_update_response.rbi +111 -0
  319. data/rbi/finch_api/models/sandbox/directory_create_params.rbi +688 -0
  320. data/rbi/finch_api/models/sandbox/directory_create_response.rbi +13 -0
  321. data/rbi/finch_api/models/sandbox/employment_update_params.rbi +391 -0
  322. data/rbi/finch_api/models/sandbox/employment_update_response.rbi +402 -0
  323. data/rbi/finch_api/models/sandbox/individual_update_params.rbi +281 -0
  324. data/rbi/finch_api/models/sandbox/individual_update_response.rbi +291 -0
  325. data/rbi/finch_api/models/sandbox/job_create_params.rbi +49 -0
  326. data/rbi/finch_api/models/sandbox/job_create_response.rbi +50 -0
  327. data/rbi/finch_api/models/sandbox/jobs/configuration_retrieve_params.rbi +23 -0
  328. data/rbi/finch_api/models/sandbox/jobs/configuration_retrieve_response.rbi +15 -0
  329. data/rbi/finch_api/models/sandbox/jobs/configuration_update_params.rbi +23 -0
  330. data/rbi/finch_api/models/sandbox/jobs/sandbox_job_configuration.rbi +82 -0
  331. data/rbi/finch_api/models/sandbox/payment_create_params.rbi +921 -0
  332. data/rbi/finch_api/models/sandbox/payment_create_response.rbi +27 -0
  333. data/rbi/finch_api/models/webhook_event.rbi +17 -0
  334. data/rbi/finch_api/request_options.rbi +48 -0
  335. data/rbi/finch_api/resources/access_tokens.rbi +24 -0
  336. data/rbi/finch_api/resources/account.rbi +19 -0
  337. data/rbi/finch_api/resources/connect/sessions.rbi +66 -0
  338. data/rbi/finch_api/resources/connect.rbi +14 -0
  339. data/rbi/finch_api/resources/hris/benefits/individuals.rbi +72 -0
  340. data/rbi/finch_api/resources/hris/benefits.rbi +75 -0
  341. data/rbi/finch_api/resources/hris/company/pay_statement_item/rules.rbi +80 -0
  342. data/rbi/finch_api/resources/hris/company/pay_statement_item.rbi +48 -0
  343. data/rbi/finch_api/resources/hris/company.rbi +20 -0
  344. data/rbi/finch_api/resources/hris/directory.rbi +25 -0
  345. data/rbi/finch_api/resources/hris/documents.rbi +49 -0
  346. data/rbi/finch_api/resources/hris/employments.rbi +26 -0
  347. data/rbi/finch_api/resources/hris/individuals.rbi +26 -0
  348. data/rbi/finch_api/resources/hris/pay_statements.rbi +29 -0
  349. data/rbi/finch_api/resources/hris/payments.rbi +27 -0
  350. data/rbi/finch_api/resources/hris.rbi +35 -0
  351. data/rbi/finch_api/resources/jobs/automated.rbi +62 -0
  352. data/rbi/finch_api/resources/jobs/manual.rbi +21 -0
  353. data/rbi/finch_api/resources/jobs.rbi +17 -0
  354. data/rbi/finch_api/resources/payroll/pay_groups.rbi +31 -0
  355. data/rbi/finch_api/resources/payroll.rbi +14 -0
  356. data/rbi/finch_api/resources/providers.rbi +18 -0
  357. data/rbi/finch_api/resources/request_forwarding.rbi +46 -0
  358. data/rbi/finch_api/resources/sandbox/company.rbi +51 -0
  359. data/rbi/finch_api/resources/sandbox/connections/accounts.rbi +47 -0
  360. data/rbi/finch_api/resources/sandbox/connections.rbi +38 -0
  361. data/rbi/finch_api/resources/sandbox/directory.rbi +27 -0
  362. data/rbi/finch_api/resources/sandbox/employment.rbi +83 -0
  363. data/rbi/finch_api/resources/sandbox/individual.rbi +70 -0
  364. data/rbi/finch_api/resources/sandbox/jobs/configuration.rbi +33 -0
  365. data/rbi/finch_api/resources/sandbox/jobs.rbi +29 -0
  366. data/rbi/finch_api/resources/sandbox/payment.rbi +25 -0
  367. data/rbi/finch_api/resources/sandbox.rbi +32 -0
  368. data/rbi/finch_api/resources/webhooks.rbi +11 -0
  369. data/rbi/finch_api/version.rbi +5 -0
  370. data/sig/finch_api/client.rbs +54 -0
  371. data/sig/finch_api/errors.rbs +101 -0
  372. data/sig/finch_api/file_part.rbs +21 -0
  373. data/sig/finch_api/internal/individuals_page.rbs +13 -0
  374. data/sig/finch_api/internal/page.rbs +13 -0
  375. data/sig/finch_api/internal/responses_page.rbs +11 -0
  376. data/sig/finch_api/internal/single_page.rbs +15 -0
  377. data/sig/finch_api/internal/transport/base_client.rbs +116 -0
  378. data/sig/finch_api/internal/transport/pooled_net_requester.rbs +41 -0
  379. data/sig/finch_api/internal/type/array_of.rbs +45 -0
  380. data/sig/finch_api/internal/type/base_model.rbs +94 -0
  381. data/sig/finch_api/internal/type/base_page.rbs +24 -0
  382. data/sig/finch_api/internal/type/boolean.rbs +23 -0
  383. data/sig/finch_api/internal/type/converter.rbs +54 -0
  384. data/sig/finch_api/internal/type/enum.rbs +29 -0
  385. data/sig/finch_api/internal/type/file_input.rbs +23 -0
  386. data/sig/finch_api/internal/type/hash_of.rbs +45 -0
  387. data/sig/finch_api/internal/type/request_parameters.rbs +15 -0
  388. data/sig/finch_api/internal/type/union.rbs +49 -0
  389. data/sig/finch_api/internal/type/unknown.rbs +23 -0
  390. data/sig/finch_api/internal/util.rbs +158 -0
  391. data/sig/finch_api/internal.rbs +5 -0
  392. data/sig/finch_api/models/access_token_create_params.rbs +41 -0
  393. data/sig/finch_api/models/account_disconnect_params.rbs +15 -0
  394. data/sig/finch_api/models/account_introspect_params.rbs +15 -0
  395. data/sig/finch_api/models/account_update_event.rbs +1291 -0
  396. data/sig/finch_api/models/base_webhook_event.rbs +24 -0
  397. data/sig/finch_api/models/company_event.rbs +38 -0
  398. data/sig/finch_api/models/connect/session_new_params.rbs +129 -0
  399. data/sig/finch_api/models/connect/session_new_response.rbs +17 -0
  400. data/sig/finch_api/models/connect/session_reauthenticate_params.rbs +66 -0
  401. data/sig/finch_api/models/connect/session_reauthenticate_response.rbs +18 -0
  402. data/sig/finch_api/models/connection_status_type.rbs +24 -0
  403. data/sig/finch_api/models/create_access_token_response.rbs +79 -0
  404. data/sig/finch_api/models/directory_event.rbs +55 -0
  405. data/sig/finch_api/models/disconnect_response.rbs +13 -0
  406. data/sig/finch_api/models/employment_event.rbs +55 -0
  407. data/sig/finch_api/models/hris/benefit_contribution.rbs +35 -0
  408. data/sig/finch_api/models/hris/benefit_create_params.rbs +92 -0
  409. data/sig/finch_api/models/hris/benefit_features_and_operations.rbs +108 -0
  410. data/sig/finch_api/models/hris/benefit_frequency.rbs +17 -0
  411. data/sig/finch_api/models/hris/benefit_list_params.rbs +17 -0
  412. data/sig/finch_api/models/hris/benefit_list_supported_benefits_params.rbs +17 -0
  413. data/sig/finch_api/models/hris/benefit_list_supported_benefits_response.rbs +81 -0
  414. data/sig/finch_api/models/hris/benefit_retrieve_params.rbs +17 -0
  415. data/sig/finch_api/models/hris/benefit_type.rbs +52 -0
  416. data/sig/finch_api/models/hris/benefit_update_params.rbs +24 -0
  417. data/sig/finch_api/models/hris/benefits/enrolled_individual_benefit_response.rbs +17 -0
  418. data/sig/finch_api/models/hris/benefits/individual_benefit.rbs +82 -0
  419. data/sig/finch_api/models/hris/benefits/individual_enroll_many_params.rbs +190 -0
  420. data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_params.rbs +19 -0
  421. data/sig/finch_api/models/hris/benefits/individual_enrolled_ids_response.rbs +23 -0
  422. data/sig/finch_api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +27 -0
  423. data/sig/finch_api/models/hris/benefits/individual_unenroll_many_params.rbs +27 -0
  424. data/sig/finch_api/models/hris/benefits/unenrolled_individual_benefit_response.rbs +17 -0
  425. data/sig/finch_api/models/hris/benefits_support.rbs +64 -0
  426. data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_params.rbs +120 -0
  427. data/sig/finch_api/models/hris/company/pay_statement_item/rule_create_response.rbs +139 -0
  428. data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_params.rbs +21 -0
  429. data/sig/finch_api/models/hris/company/pay_statement_item/rule_delete_response.rbs +145 -0
  430. data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_params.rbs +21 -0
  431. data/sig/finch_api/models/hris/company/pay_statement_item/rule_list_response.rbs +139 -0
  432. data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_params.rbs +29 -0
  433. data/sig/finch_api/models/hris/company/pay_statement_item/rule_update_response.rbs +139 -0
  434. data/sig/finch_api/models/hris/company/pay_statement_item_list_params.rbs +69 -0
  435. data/sig/finch_api/models/hris/company/pay_statement_item_list_response.rbs +81 -0
  436. data/sig/finch_api/models/hris/company.rbs +177 -0
  437. data/sig/finch_api/models/hris/company_benefit.rbs +89 -0
  438. data/sig/finch_api/models/hris/company_retrieve_params.rbs +17 -0
  439. data/sig/finch_api/models/hris/create_company_benefits_response.rbs +18 -0
  440. data/sig/finch_api/models/hris/directory_list_individuals_params.rbs +30 -0
  441. data/sig/finch_api/models/hris/directory_list_params.rbs +30 -0
  442. data/sig/finch_api/models/hris/document_list_params.rbs +58 -0
  443. data/sig/finch_api/models/hris/document_list_response.rbs +24 -0
  444. data/sig/finch_api/models/hris/document_response.rbs +55 -0
  445. data/sig/finch_api/models/hris/document_retreive_params.rbs +17 -0
  446. data/sig/finch_api/models/hris/document_retreive_response.rbs +14 -0
  447. data/sig/finch_api/models/hris/employment_data.rbs +210 -0
  448. data/sig/finch_api/models/hris/employment_data_response.rbs +36 -0
  449. data/sig/finch_api/models/hris/employment_retrieve_many_params.rbs +35 -0
  450. data/sig/finch_api/models/hris/individual.rbs +200 -0
  451. data/sig/finch_api/models/hris/individual_in_directory.rbs +64 -0
  452. data/sig/finch_api/models/hris/individual_response.rbs +28 -0
  453. data/sig/finch_api/models/hris/individual_retrieve_many_params.rbs +57 -0
  454. data/sig/finch_api/models/hris/pay_statement.rbs +389 -0
  455. data/sig/finch_api/models/hris/pay_statement_response.rbs +36 -0
  456. data/sig/finch_api/models/hris/pay_statement_response_body.rbs +30 -0
  457. data/sig/finch_api/models/hris/pay_statement_retrieve_many_params.rbs +47 -0
  458. data/sig/finch_api/models/hris/payment.rbs +105 -0
  459. data/sig/finch_api/models/hris/payment_list_params.rbs +26 -0
  460. data/sig/finch_api/models/hris/support_per_benefit_type.rbs +32 -0
  461. data/sig/finch_api/models/hris/supported_benefit.rbs +81 -0
  462. data/sig/finch_api/models/hris/update_company_benefit_response.rbs +18 -0
  463. data/sig/finch_api/models/hris/w42005.rbs +107 -0
  464. data/sig/finch_api/models/hris/w42020.rbs +106 -0
  465. data/sig/finch_api/models/income.rbs +57 -0
  466. data/sig/finch_api/models/individual_event.rbs +55 -0
  467. data/sig/finch_api/models/introspection.rbs +206 -0
  468. data/sig/finch_api/models/job_completion_event.rbs +63 -0
  469. data/sig/finch_api/models/jobs/automated_async_job.rbs +96 -0
  470. data/sig/finch_api/models/jobs/automated_create_params.rbs +49 -0
  471. data/sig/finch_api/models/jobs/automated_create_response.rbs +32 -0
  472. data/sig/finch_api/models/jobs/automated_list_params.rbs +30 -0
  473. data/sig/finch_api/models/jobs/automated_list_response.rbs +82 -0
  474. data/sig/finch_api/models/jobs/automated_retrieve_params.rbs +17 -0
  475. data/sig/finch_api/models/jobs/manual_async_job.rbs +41 -0
  476. data/sig/finch_api/models/jobs/manual_retrieve_params.rbs +17 -0
  477. data/sig/finch_api/models/location.rbs +46 -0
  478. data/sig/finch_api/models/money.rbs +17 -0
  479. data/sig/finch_api/models/operation_support.rbs +20 -0
  480. data/sig/finch_api/models/operation_support_matrix.rbs +46 -0
  481. data/sig/finch_api/models/paging.rbs +17 -0
  482. data/sig/finch_api/models/pay_statement_event.rbs +61 -0
  483. data/sig/finch_api/models/payment_event.rbs +55 -0
  484. data/sig/finch_api/models/payroll/pay_group_list_params.rbs +30 -0
  485. data/sig/finch_api/models/payroll/pay_group_list_response.rbs +63 -0
  486. data/sig/finch_api/models/payroll/pay_group_retrieve_params.rbs +17 -0
  487. data/sig/finch_api/models/payroll/pay_group_retrieve_response.rbs +59 -0
  488. data/sig/finch_api/models/provider.rbs +1308 -0
  489. data/sig/finch_api/models/provider_list_params.rbs +15 -0
  490. data/sig/finch_api/models/request_forwarding_forward_params.rbs +39 -0
  491. data/sig/finch_api/models/request_forwarding_forward_response.rbs +61 -0
  492. data/sig/finch_api/models/sandbox/company_update_params.rbs +178 -0
  493. data/sig/finch_api/models/sandbox/company_update_response.rbs +173 -0
  494. data/sig/finch_api/models/sandbox/connection_create_params.rbs +58 -0
  495. data/sig/finch_api/models/sandbox/connection_create_response.rbs +63 -0
  496. data/sig/finch_api/models/sandbox/connections/account_create_params.rbs +59 -0
  497. data/sig/finch_api/models/sandbox/connections/account_create_response.rbs +60 -0
  498. data/sig/finch_api/models/sandbox/connections/account_update_params.rbs +29 -0
  499. data/sig/finch_api/models/sandbox/connections/account_update_response.rbs +58 -0
  500. data/sig/finch_api/models/sandbox/directory_create_params.rbs +364 -0
  501. data/sig/finch_api/models/sandbox/directory_create_response.rbs +9 -0
  502. data/sig/finch_api/models/sandbox/employment_update_params.rbs +209 -0
  503. data/sig/finch_api/models/sandbox/employment_update_response.rbs +210 -0
  504. data/sig/finch_api/models/sandbox/individual_update_params.rbs +169 -0
  505. data/sig/finch_api/models/sandbox/individual_update_response.rbs +170 -0
  506. data/sig/finch_api/models/sandbox/job_create_params.rbs +33 -0
  507. data/sig/finch_api/models/sandbox/job_create_response.rbs +32 -0
  508. data/sig/finch_api/models/sandbox/jobs/configuration_retrieve_params.rbs +19 -0
  509. data/sig/finch_api/models/sandbox/jobs/configuration_retrieve_response.rbs +12 -0
  510. data/sig/finch_api/models/sandbox/jobs/configuration_update_params.rbs +19 -0
  511. data/sig/finch_api/models/sandbox/jobs/sandbox_job_configuration.rbs +50 -0
  512. data/sig/finch_api/models/sandbox/payment_create_params.rbs +425 -0
  513. data/sig/finch_api/models/sandbox/payment_create_response.rbs +17 -0
  514. data/sig/finch_api/models/webhook_event.rbs +19 -0
  515. data/sig/finch_api/request_options.rbs +34 -0
  516. data/sig/finch_api/resources/hris/benefits/individuals.rbs +34 -0
  517. data/sig/finch_api/resources/hris/benefits.rbs +38 -0
  518. data/sig/finch_api/resources/hris/company/pay_statement_item/rules.rbs +37 -0
  519. data/sig/finch_api/resources/hris/company/pay_statement_item.rbs +22 -0
  520. data/sig/finch_api/resources/hris/company.rbs +15 -0
  521. data/sig/finch_api/resources/hris/directory.rbs +17 -0
  522. data/sig/finch_api/resources/hris/employments.rbs +14 -0
  523. data/sig/finch_api/resources/hris/individuals.rbs +15 -0
  524. data/sig/finch_api/resources/hris/pay_statements.rbs +14 -0
  525. data/sig/finch_api/resources/hris/payments.rbs +15 -0
  526. data/sig/finch_api/resources/payroll/pay_groups.rbs +20 -0
  527. data/sig/finch_api/resources/providers.rbs +11 -0
  528. data/sig/finch_api/version.rbs +3 -0
  529. metadata +552 -504
  530. data/lib/finch-api/client.rb +0 -141
  531. data/lib/finch-api/errors.rb +0 -183
  532. data/lib/finch-api/individuals_page.rb +0 -92
  533. data/lib/finch-api/models/access_token_create_params.rb +0 -54
  534. data/lib/finch-api/models/account_disconnect_params.rb +0 -18
  535. data/lib/finch-api/models/account_introspect_params.rb +0 -18
  536. data/lib/finch-api/models/account_update_event.rb +0 -1953
  537. data/lib/finch-api/models/base_webhook_event.rb +0 -41
  538. data/lib/finch-api/models/company_event.rb +0 -41
  539. data/lib/finch-api/models/connect/session_new_params.rb +0 -160
  540. data/lib/finch-api/models/connect/session_new_response.rb +0 -29
  541. data/lib/finch-api/models/connect/session_reauthenticate_params.rb +0 -71
  542. data/lib/finch-api/models/connect/session_reauthenticate_response.rb +0 -29
  543. data/lib/finch-api/models/connection_status_type.rb +0 -22
  544. data/lib/finch-api/models/create_access_token_response.rb +0 -139
  545. data/lib/finch-api/models/directory_event.rb +0 -66
  546. data/lib/finch-api/models/disconnect_response.rb +0 -20
  547. data/lib/finch-api/models/employment_event.rb +0 -66
  548. data/lib/finch-api/models/hris/benefit_contribution.rb +0 -43
  549. data/lib/finch-api/models/hris/benefit_create_params.rb +0 -46
  550. data/lib/finch-api/models/hris/benefit_features_and_operations.rb +0 -169
  551. data/lib/finch-api/models/hris/benefit_frequency.rb +0 -21
  552. data/lib/finch-api/models/hris/benefit_list_params.rb +0 -20
  553. data/lib/finch-api/models/hris/benefit_list_supported_benefits_params.rb +0 -20
  554. data/lib/finch-api/models/hris/benefit_retrieve_params.rb +0 -20
  555. data/lib/finch-api/models/hris/benefit_type.rb +0 -38
  556. data/lib/finch-api/models/hris/benefit_update_params.rb +0 -31
  557. data/lib/finch-api/models/hris/benefits/enrolled_individual.rb +0 -93
  558. data/lib/finch-api/models/hris/benefits/individual_benefit.rb +0 -116
  559. data/lib/finch-api/models/hris/benefits/individual_enroll_many_params.rb +0 -237
  560. data/lib/finch-api/models/hris/benefits/individual_enrolled_ids_params.rb +0 -22
  561. data/lib/finch-api/models/hris/benefits/individual_enrolled_ids_response.rb +0 -29
  562. data/lib/finch-api/models/hris/benefits/individual_retrieve_many_benefits_params.rb +0 -34
  563. data/lib/finch-api/models/hris/benefits/individual_unenroll_many_params.rb +0 -33
  564. data/lib/finch-api/models/hris/benefits/unenrolled_individual.rb +0 -77
  565. data/lib/finch-api/models/hris/benefits_support.rb +0 -106
  566. data/lib/finch-api/models/hris/company.rb +0 -247
  567. data/lib/finch-api/models/hris/company_benefit.rb +0 -40
  568. data/lib/finch-api/models/hris/company_retrieve_params.rb +0 -20
  569. data/lib/finch-api/models/hris/create_company_benefits_response.rb +0 -21
  570. data/lib/finch-api/models/hris/directory_list_individuals_params.rb +0 -42
  571. data/lib/finch-api/models/hris/directory_list_params.rb +0 -42
  572. data/lib/finch-api/models/hris/document_list_params.rb +0 -79
  573. data/lib/finch-api/models/hris/document_list_response.rb +0 -27
  574. data/lib/finch-api/models/hris/document_response.rb +0 -78
  575. data/lib/finch-api/models/hris/document_retreive_params.rb +0 -20
  576. data/lib/finch-api/models/hris/document_retreive_response.rb +0 -25
  577. data/lib/finch-api/models/hris/employment_data.rb +0 -331
  578. data/lib/finch-api/models/hris/employment_data_response.rb +0 -45
  579. data/lib/finch-api/models/hris/employment_retrieve_many_params.rb +0 -45
  580. data/lib/finch-api/models/hris/individual.rb +0 -236
  581. data/lib/finch-api/models/hris/individual_in_directory.rb +0 -117
  582. data/lib/finch-api/models/hris/individual_response.rb +0 -45
  583. data/lib/finch-api/models/hris/individual_retrieve_many_params.rb +0 -73
  584. data/lib/finch-api/models/hris/pay_statement.rb +0 -529
  585. data/lib/finch-api/models/hris/pay_statement_response.rb +0 -45
  586. data/lib/finch-api/models/hris/pay_statement_response_body.rb +0 -36
  587. data/lib/finch-api/models/hris/pay_statement_retrieve_many_params.rb +0 -65
  588. data/lib/finch-api/models/hris/payment.rb +0 -156
  589. data/lib/finch-api/models/hris/payment_list_params.rb +0 -36
  590. data/lib/finch-api/models/hris/support_per_benefit_type.rb +0 -35
  591. data/lib/finch-api/models/hris/supported_benefit.rb +0 -136
  592. data/lib/finch-api/models/hris/update_company_benefit_response.rb +0 -21
  593. data/lib/finch-api/models/hris/w42005.rb +0 -151
  594. data/lib/finch-api/models/hris/w42020.rb +0 -159
  595. data/lib/finch-api/models/income.rb +0 -68
  596. data/lib/finch-api/models/individual_event.rb +0 -66
  597. data/lib/finch-api/models/introspection.rb +0 -312
  598. data/lib/finch-api/models/job_completion_event.rb +0 -72
  599. data/lib/finch-api/models/jobs/automated_async_job.rb +0 -133
  600. data/lib/finch-api/models/jobs/automated_create_params.rb +0 -61
  601. data/lib/finch-api/models/jobs/automated_create_response.rb +0 -43
  602. data/lib/finch-api/models/jobs/automated_list_params.rb +0 -42
  603. data/lib/finch-api/models/jobs/automated_list_response.rb +0 -100
  604. data/lib/finch-api/models/jobs/automated_retrieve_params.rb +0 -20
  605. data/lib/finch-api/models/jobs/manual_async_job.rb +0 -49
  606. data/lib/finch-api/models/jobs/manual_retrieve_params.rb +0 -20
  607. data/lib/finch-api/models/location.rb +0 -79
  608. data/lib/finch-api/models/money.rb +0 -30
  609. data/lib/finch-api/models/operation_support.rb +0 -27
  610. data/lib/finch-api/models/operation_support_matrix.rb +0 -81
  611. data/lib/finch-api/models/paging.rb +0 -35
  612. data/lib/finch-api/models/pay_statement_event.rb +0 -77
  613. data/lib/finch-api/models/payment_event.rb +0 -69
  614. data/lib/finch-api/models/payroll/pay_group_list_params.rb +0 -40
  615. data/lib/finch-api/models/payroll/pay_group_list_response.rb +0 -69
  616. data/lib/finch-api/models/payroll/pay_group_retrieve_params.rb +0 -20
  617. data/lib/finch-api/models/payroll/pay_group_retrieve_response.rb +0 -63
  618. data/lib/finch-api/models/provider.rb +0 -2022
  619. data/lib/finch-api/models/provider_list_params.rb +0 -18
  620. data/lib/finch-api/models/request_forwarding_forward_params.rb +0 -60
  621. data/lib/finch-api/models/request_forwarding_forward_response.rb +0 -97
  622. data/lib/finch-api/models/sandbox/company_update_params.rb +0 -251
  623. data/lib/finch-api/models/sandbox/company_update_response.rb +0 -233
  624. data/lib/finch-api/models/sandbox/connection_create_params.rb +0 -76
  625. data/lib/finch-api/models/sandbox/connection_create_response.rb +0 -99
  626. data/lib/finch-api/models/sandbox/connections/account_create_params.rb +0 -73
  627. data/lib/finch-api/models/sandbox/connections/account_create_response.rb +0 -79
  628. data/lib/finch-api/models/sandbox/connections/account_update_params.rb +0 -32
  629. data/lib/finch-api/models/sandbox/connections/account_update_response.rb +0 -77
  630. data/lib/finch-api/models/sandbox/directory_create_params.rb +0 -535
  631. data/lib/finch-api/models/sandbox/directory_create_response.rb +0 -9
  632. data/lib/finch-api/models/sandbox/employment_update_params.rb +0 -323
  633. data/lib/finch-api/models/sandbox/employment_update_response.rb +0 -329
  634. data/lib/finch-api/models/sandbox/individual_update_params.rb +0 -234
  635. data/lib/finch-api/models/sandbox/individual_update_response.rb +0 -242
  636. data/lib/finch-api/models/sandbox/job_create_params.rb +0 -40
  637. data/lib/finch-api/models/sandbox/job_create_response.rb +0 -43
  638. data/lib/finch-api/models/sandbox/jobs/configuration_retrieve_params.rb +0 -22
  639. data/lib/finch-api/models/sandbox/jobs/configuration_retrieve_response.rb +0 -12
  640. data/lib/finch-api/models/sandbox/jobs/configuration_update_params.rb +0 -22
  641. data/lib/finch-api/models/sandbox/jobs/sandbox_job_configuration.rb +0 -57
  642. data/lib/finch-api/models/sandbox/payment_create_params.rb +0 -588
  643. data/lib/finch-api/models/sandbox/payment_create_response.rb +0 -29
  644. data/lib/finch-api/models/webhook_event.rb +0 -31
  645. data/lib/finch-api/page.rb +0 -92
  646. data/lib/finch-api/request_options.rb +0 -75
  647. data/lib/finch-api/resources/access_tokens.rb +0 -38
  648. data/lib/finch-api/resources/account.rb +0 -44
  649. data/lib/finch-api/resources/connect/sessions.rb +0 -78
  650. data/lib/finch-api/resources/connect.rb +0 -16
  651. data/lib/finch-api/resources/hris/benefits/individuals.rb +0 -108
  652. data/lib/finch-api/resources/hris/benefits.rb +0 -119
  653. data/lib/finch-api/resources/hris/company.rb +0 -30
  654. data/lib/finch-api/resources/hris/directory.rb +0 -42
  655. data/lib/finch-api/resources/hris/documents.rb +0 -62
  656. data/lib/finch-api/resources/hris/employments.rb +0 -35
  657. data/lib/finch-api/resources/hris/individuals.rb +0 -37
  658. data/lib/finch-api/resources/hris/pay_statements.rb +0 -38
  659. data/lib/finch-api/resources/hris/payments.rb +0 -39
  660. data/lib/finch-api/resources/hris.rb +0 -44
  661. data/lib/finch-api/resources/jobs/automated.rb +0 -91
  662. data/lib/finch-api/resources/jobs/manual.rb +0 -33
  663. data/lib/finch-api/resources/jobs.rb +0 -20
  664. data/lib/finch-api/resources/payroll/pay_groups.rb +0 -55
  665. data/lib/finch-api/resources/payroll.rb +0 -16
  666. data/lib/finch-api/resources/providers.rb +0 -29
  667. data/lib/finch-api/resources/request_forwarding.rb +0 -50
  668. data/lib/finch-api/resources/sandbox/company.rb +0 -48
  669. data/lib/finch-api/resources/sandbox/connections/accounts.rb +0 -64
  670. data/lib/finch-api/resources/sandbox/connections.rb +0 -46
  671. data/lib/finch-api/resources/sandbox/directory.rb +0 -35
  672. data/lib/finch-api/resources/sandbox/employment.rb +0 -74
  673. data/lib/finch-api/resources/sandbox/individual.rb +0 -63
  674. data/lib/finch-api/resources/sandbox/jobs/configuration.rb +0 -54
  675. data/lib/finch-api/resources/sandbox/jobs.rb +0 -38
  676. data/lib/finch-api/resources/sandbox/payment.rb +0 -38
  677. data/lib/finch-api/resources/sandbox.rb +0 -40
  678. data/lib/finch-api/resources/webhooks.rb +0 -12
  679. data/lib/finch-api/responses_page.rb +0 -77
  680. data/lib/finch-api/single_page.rb +0 -74
  681. data/lib/finch-api/transport/base_client.rb +0 -459
  682. data/lib/finch-api/transport/pooled_net_requester.rb +0 -182
  683. data/lib/finch-api/type/array_of.rb +0 -110
  684. data/lib/finch-api/type/base_model.rb +0 -355
  685. data/lib/finch-api/type/base_page.rb +0 -61
  686. data/lib/finch-api/type/boolean_model.rb +0 -52
  687. data/lib/finch-api/type/converter.rb +0 -211
  688. data/lib/finch-api/type/enum.rb +0 -105
  689. data/lib/finch-api/type/hash_of.rb +0 -136
  690. data/lib/finch-api/type/request_parameters.rb +0 -38
  691. data/lib/finch-api/type/union.rb +0 -204
  692. data/lib/finch-api/type/unknown.rb +0 -56
  693. data/lib/finch-api/type.rb +0 -23
  694. data/lib/finch-api/util.rb +0 -726
  695. data/lib/finch-api/version.rb +0 -5
  696. data/lib/finch-api.rb +0 -203
  697. data/rbi/lib/finch-api/client.rbi +0 -97
  698. data/rbi/lib/finch-api/errors.rbi +0 -144
  699. data/rbi/lib/finch-api/individuals_page.rbi +0 -19
  700. data/rbi/lib/finch-api/models/access_token_create_params.rbi +0 -59
  701. data/rbi/lib/finch-api/models/account_disconnect_params.rbi +0 -25
  702. data/rbi/lib/finch-api/models/account_introspect_params.rbi +0 -25
  703. data/rbi/lib/finch-api/models/account_update_event.rbi +0 -2367
  704. data/rbi/lib/finch-api/models/base_webhook_event.rbi +0 -33
  705. data/rbi/lib/finch-api/models/company_event.rbi +0 -51
  706. data/rbi/lib/finch-api/models/connect/session_new_params.rbi +0 -189
  707. data/rbi/lib/finch-api/models/connect/session_new_response.rbi +0 -25
  708. data/rbi/lib/finch-api/models/connect/session_reauthenticate_params.rbi +0 -85
  709. data/rbi/lib/finch-api/models/connect/session_reauthenticate_response.rbi +0 -25
  710. data/rbi/lib/finch-api/models/connection_status_type.rbi +0 -24
  711. data/rbi/lib/finch-api/models/create_access_token_response.rbi +0 -142
  712. data/rbi/lib/finch-api/models/directory_event.rbi +0 -76
  713. data/rbi/lib/finch-api/models/disconnect_response.rbi +0 -19
  714. data/rbi/lib/finch-api/models/employment_event.rbi +0 -76
  715. data/rbi/lib/finch-api/models/hris/benefit_contribution.rbi +0 -52
  716. data/rbi/lib/finch-api/models/hris/benefit_create_params.rbi +0 -54
  717. data/rbi/lib/finch-api/models/hris/benefit_features_and_operations.rbi +0 -303
  718. data/rbi/lib/finch-api/models/hris/benefit_frequency.rbi +0 -22
  719. data/rbi/lib/finch-api/models/hris/benefit_list_params.rbi +0 -27
  720. data/rbi/lib/finch-api/models/hris/benefit_list_supported_benefits_params.rbi +0 -27
  721. data/rbi/lib/finch-api/models/hris/benefit_retrieve_params.rbi +0 -27
  722. data/rbi/lib/finch-api/models/hris/benefit_type.rbi +0 -39
  723. data/rbi/lib/finch-api/models/hris/benefit_update_params.rbi +0 -33
  724. data/rbi/lib/finch-api/models/hris/benefits/enrolled_individual.rbi +0 -109
  725. data/rbi/lib/finch-api/models/hris/benefits/individual_benefit.rbi +0 -164
  726. data/rbi/lib/finch-api/models/hris/benefits/individual_enroll_many_params.rbi +0 -426
  727. data/rbi/lib/finch-api/models/hris/benefits/individual_enrolled_ids_params.rbi +0 -29
  728. data/rbi/lib/finch-api/models/hris/benefits/individual_enrolled_ids_response.rbi +0 -25
  729. data/rbi/lib/finch-api/models/hris/benefits/individual_retrieve_many_benefits_params.rbi +0 -39
  730. data/rbi/lib/finch-api/models/hris/benefits/individual_unenroll_many_params.rbi +0 -37
  731. data/rbi/lib/finch-api/models/hris/benefits/unenrolled_individual.rbi +0 -86
  732. data/rbi/lib/finch-api/models/hris/benefits_support.rbi +0 -198
  733. data/rbi/lib/finch-api/models/hris/company.rbi +0 -286
  734. data/rbi/lib/finch-api/models/hris/company_benefit.rbi +0 -48
  735. data/rbi/lib/finch-api/models/hris/company_retrieve_params.rbi +0 -27
  736. data/rbi/lib/finch-api/models/hris/create_company_benefits_response.rbi +0 -20
  737. data/rbi/lib/finch-api/models/hris/directory_list_individuals_params.rbi +0 -41
  738. data/rbi/lib/finch-api/models/hris/directory_list_params.rbi +0 -41
  739. data/rbi/lib/finch-api/models/hris/document_list_params.rbi +0 -84
  740. data/rbi/lib/finch-api/models/hris/document_list_response.rbi +0 -35
  741. data/rbi/lib/finch-api/models/hris/document_response.rbi +0 -83
  742. data/rbi/lib/finch-api/models/hris/document_retreive_params.rbi +0 -27
  743. data/rbi/lib/finch-api/models/hris/document_retreive_response.rbi +0 -17
  744. data/rbi/lib/finch-api/models/hris/employment_data.rbi +0 -351
  745. data/rbi/lib/finch-api/models/hris/employment_data_response.rbi +0 -42
  746. data/rbi/lib/finch-api/models/hris/employment_retrieve_many_params.rbi +0 -54
  747. data/rbi/lib/finch-api/models/hris/individual.rbi +0 -256
  748. data/rbi/lib/finch-api/models/hris/individual_in_directory.rbi +0 -121
  749. data/rbi/lib/finch-api/models/hris/individual_response.rbi +0 -42
  750. data/rbi/lib/finch-api/models/hris/individual_retrieve_many_params.rbi +0 -90
  751. data/rbi/lib/finch-api/models/hris/pay_statement.rbi +0 -640
  752. data/rbi/lib/finch-api/models/hris/pay_statement_response.rbi +0 -45
  753. data/rbi/lib/finch-api/models/hris/pay_statement_response_body.rbi +0 -41
  754. data/rbi/lib/finch-api/models/hris/pay_statement_retrieve_many_params.rbi +0 -66
  755. data/rbi/lib/finch-api/models/hris/payment.rbi +0 -167
  756. data/rbi/lib/finch-api/models/hris/payment_list_params.rbi +0 -39
  757. data/rbi/lib/finch-api/models/hris/support_per_benefit_type.rbi +0 -43
  758. data/rbi/lib/finch-api/models/hris/supported_benefit.rbi +0 -159
  759. data/rbi/lib/finch-api/models/hris/update_company_benefit_response.rbi +0 -20
  760. data/rbi/lib/finch-api/models/hris/w42005.rbi +0 -166
  761. data/rbi/lib/finch-api/models/hris/w42020.rbi +0 -175
  762. data/rbi/lib/finch-api/models/income.rbi +0 -76
  763. data/rbi/lib/finch-api/models/individual_event.rbi +0 -76
  764. data/rbi/lib/finch-api/models/introspection.rbi +0 -327
  765. data/rbi/lib/finch-api/models/job_completion_event.rbi +0 -83
  766. data/rbi/lib/finch-api/models/jobs/automated_async_job.rbi +0 -146
  767. data/rbi/lib/finch-api/models/jobs/automated_create_params.rbi +0 -76
  768. data/rbi/lib/finch-api/models/jobs/automated_create_response.rbi +0 -44
  769. data/rbi/lib/finch-api/models/jobs/automated_list_params.rbi +0 -41
  770. data/rbi/lib/finch-api/models/jobs/automated_list_response.rbi +0 -126
  771. data/rbi/lib/finch-api/models/jobs/automated_retrieve_params.rbi +0 -27
  772. data/rbi/lib/finch-api/models/jobs/manual_async_job.rbi +0 -59
  773. data/rbi/lib/finch-api/models/jobs/manual_retrieve_params.rbi +0 -27
  774. data/rbi/lib/finch-api/models/location.rbi +0 -71
  775. data/rbi/lib/finch-api/models/money.rbi +0 -25
  776. data/rbi/lib/finch-api/models/operation_support.rbi +0 -29
  777. data/rbi/lib/finch-api/models/operation_support_matrix.rbi +0 -85
  778. data/rbi/lib/finch-api/models/paging.rbi +0 -29
  779. data/rbi/lib/finch-api/models/pay_statement_event.rbi +0 -83
  780. data/rbi/lib/finch-api/models/payment_event.rbi +0 -74
  781. data/rbi/lib/finch-api/models/payroll/pay_group_list_params.rbi +0 -48
  782. data/rbi/lib/finch-api/models/payroll/pay_group_list_response.rbi +0 -84
  783. data/rbi/lib/finch-api/models/payroll/pay_group_retrieve_params.rbi +0 -27
  784. data/rbi/lib/finch-api/models/payroll/pay_group_retrieve_response.rbi +0 -81
  785. data/rbi/lib/finch-api/models/provider.rbi +0 -2278
  786. data/rbi/lib/finch-api/models/provider_list_params.rbi +0 -25
  787. data/rbi/lib/finch-api/models/request_forwarding_forward_params.rbi +0 -67
  788. data/rbi/lib/finch-api/models/request_forwarding_forward_response.rbi +0 -119
  789. data/rbi/lib/finch-api/models/sandbox/company_update_params.rbi +0 -314
  790. data/rbi/lib/finch-api/models/sandbox/company_update_response.rbi +0 -301
  791. data/rbi/lib/finch-api/models/sandbox/connection_create_params.rbi +0 -95
  792. data/rbi/lib/finch-api/models/sandbox/connection_create_response.rbi +0 -108
  793. data/rbi/lib/finch-api/models/sandbox/connections/account_create_params.rbi +0 -116
  794. data/rbi/lib/finch-api/models/sandbox/connections/account_create_response.rbi +0 -112
  795. data/rbi/lib/finch-api/models/sandbox/connections/account_update_params.rbi +0 -42
  796. data/rbi/lib/finch-api/models/sandbox/connections/account_update_response.rbi +0 -110
  797. data/rbi/lib/finch-api/models/sandbox/directory_create_params.rbi +0 -674
  798. data/rbi/lib/finch-api/models/sandbox/directory_create_response.rbi +0 -9
  799. data/rbi/lib/finch-api/models/sandbox/employment_update_params.rbi +0 -373
  800. data/rbi/lib/finch-api/models/sandbox/employment_update_response.rbi +0 -379
  801. data/rbi/lib/finch-api/models/sandbox/individual_update_params.rbi +0 -279
  802. data/rbi/lib/finch-api/models/sandbox/individual_update_response.rbi +0 -292
  803. data/rbi/lib/finch-api/models/sandbox/job_create_params.rbi +0 -49
  804. data/rbi/lib/finch-api/models/sandbox/job_create_response.rbi +0 -44
  805. data/rbi/lib/finch-api/models/sandbox/jobs/configuration_retrieve_params.rbi +0 -29
  806. data/rbi/lib/finch-api/models/sandbox/jobs/configuration_retrieve_response.rbi +0 -15
  807. data/rbi/lib/finch-api/models/sandbox/jobs/configuration_update_params.rbi +0 -29
  808. data/rbi/lib/finch-api/models/sandbox/jobs/sandbox_job_configuration.rbi +0 -88
  809. data/rbi/lib/finch-api/models/sandbox/payment_create_params.rbi +0 -892
  810. data/rbi/lib/finch-api/models/sandbox/payment_create_response.rbi +0 -25
  811. data/rbi/lib/finch-api/models/webhook_event.rbi +0 -18
  812. data/rbi/lib/finch-api/page.rbi +0 -19
  813. data/rbi/lib/finch-api/request_options.rbi +0 -48
  814. data/rbi/lib/finch-api/resources/access_tokens.rbi +0 -25
  815. data/rbi/lib/finch-api/resources/account.rbi +0 -27
  816. data/rbi/lib/finch-api/resources/connect/sessions.rbi +0 -70
  817. data/rbi/lib/finch-api/resources/connect.rbi +0 -14
  818. data/rbi/lib/finch-api/resources/hris/benefits/individuals.rbi +0 -81
  819. data/rbi/lib/finch-api/resources/hris/benefits.rbi +0 -83
  820. data/rbi/lib/finch-api/resources/hris/company.rbi +0 -21
  821. data/rbi/lib/finch-api/resources/hris/directory.rbi +0 -31
  822. data/rbi/lib/finch-api/resources/hris/documents.rbi +0 -56
  823. data/rbi/lib/finch-api/resources/hris/employments.rbi +0 -28
  824. data/rbi/lib/finch-api/resources/hris/individuals.rbi +0 -25
  825. data/rbi/lib/finch-api/resources/hris/pay_statements.rbi +0 -31
  826. data/rbi/lib/finch-api/resources/hris/payments.rbi +0 -33
  827. data/rbi/lib/finch-api/resources/hris.rbi +0 -35
  828. data/rbi/lib/finch-api/resources/jobs/automated.rbi +0 -74
  829. data/rbi/lib/finch-api/resources/jobs/manual.rbi +0 -25
  830. data/rbi/lib/finch-api/resources/jobs.rbi +0 -17
  831. data/rbi/lib/finch-api/resources/payroll/pay_groups.rbi +0 -36
  832. data/rbi/lib/finch-api/resources/payroll.rbi +0 -14
  833. data/rbi/lib/finch-api/resources/providers.rbi +0 -19
  834. data/rbi/lib/finch-api/resources/request_forwarding.rbi +0 -48
  835. data/rbi/lib/finch-api/resources/sandbox/company.rbi +0 -52
  836. data/rbi/lib/finch-api/resources/sandbox/connections/accounts.rbi +0 -50
  837. data/rbi/lib/finch-api/resources/sandbox/connections.rbi +0 -40
  838. data/rbi/lib/finch-api/resources/sandbox/directory.rbi +0 -29
  839. data/rbi/lib/finch-api/resources/sandbox/employment.rbi +0 -81
  840. data/rbi/lib/finch-api/resources/sandbox/individual.rbi +0 -68
  841. data/rbi/lib/finch-api/resources/sandbox/jobs/configuration.rbi +0 -35
  842. data/rbi/lib/finch-api/resources/sandbox/jobs.rbi +0 -31
  843. data/rbi/lib/finch-api/resources/sandbox/payment.rbi +0 -26
  844. data/rbi/lib/finch-api/resources/sandbox.rbi +0 -32
  845. data/rbi/lib/finch-api/resources/webhooks.rbi +0 -11
  846. data/rbi/lib/finch-api/responses_page.rbi +0 -16
  847. data/rbi/lib/finch-api/single_page.rbi +0 -25
  848. data/rbi/lib/finch-api/transport/base_client.rbi +0 -204
  849. data/rbi/lib/finch-api/transport/pooled_net_requester.rbi +0 -64
  850. data/rbi/lib/finch-api/type/array_of.rbi +0 -82
  851. data/rbi/lib/finch-api/type/base_model.rbi +0 -191
  852. data/rbi/lib/finch-api/type/base_page.rbi +0 -38
  853. data/rbi/lib/finch-api/type/boolean_model.rbi +0 -41
  854. data/rbi/lib/finch-api/type/converter.rbi +0 -101
  855. data/rbi/lib/finch-api/type/enum.rbi +0 -58
  856. data/rbi/lib/finch-api/type/hash_of.rbi +0 -86
  857. data/rbi/lib/finch-api/type/request_parameters.rbi +0 -20
  858. data/rbi/lib/finch-api/type/union.rbi +0 -66
  859. data/rbi/lib/finch-api/type/unknown.rbi +0 -37
  860. data/rbi/lib/finch-api/type.rbi +0 -23
  861. data/rbi/lib/finch-api/util.rbi +0 -280
  862. data/rbi/lib/finch-api/version.rbi +0 -5
  863. data/sig/finch-api/client.rbs +0 -54
  864. data/sig/finch-api/errors.rbs +0 -99
  865. data/sig/finch-api/individuals_page.rbs +0 -11
  866. data/sig/finch-api/models/access_token_create_params.rbs +0 -41
  867. data/sig/finch-api/models/account_disconnect_params.rbs +0 -14
  868. data/sig/finch-api/models/account_introspect_params.rbs +0 -14
  869. data/sig/finch-api/models/account_update_event.rbs +0 -1291
  870. data/sig/finch-api/models/base_webhook_event.rbs +0 -24
  871. data/sig/finch-api/models/company_event.rbs +0 -38
  872. data/sig/finch-api/models/connect/session_new_params.rbs +0 -125
  873. data/sig/finch-api/models/connect/session_new_response.rbs +0 -17
  874. data/sig/finch-api/models/connect/session_reauthenticate_params.rbs +0 -62
  875. data/sig/finch-api/models/connect/session_reauthenticate_response.rbs +0 -18
  876. data/sig/finch-api/models/connection_status_type.rbs +0 -24
  877. data/sig/finch-api/models/create_access_token_response.rbs +0 -79
  878. data/sig/finch-api/models/directory_event.rbs +0 -55
  879. data/sig/finch-api/models/disconnect_response.rbs +0 -13
  880. data/sig/finch-api/models/employment_event.rbs +0 -55
  881. data/sig/finch-api/models/hris/benefit_contribution.rbs +0 -35
  882. data/sig/finch-api/models/hris/benefit_create_params.rbs +0 -35
  883. data/sig/finch-api/models/hris/benefit_features_and_operations.rbs +0 -108
  884. data/sig/finch-api/models/hris/benefit_frequency.rbs +0 -17
  885. data/sig/finch-api/models/hris/benefit_list_params.rbs +0 -16
  886. data/sig/finch-api/models/hris/benefit_list_supported_benefits_params.rbs +0 -17
  887. data/sig/finch-api/models/hris/benefit_retrieve_params.rbs +0 -16
  888. data/sig/finch-api/models/hris/benefit_type.rbs +0 -52
  889. data/sig/finch-api/models/hris/benefit_update_params.rbs +0 -24
  890. data/sig/finch-api/models/hris/benefits/enrolled_individual.rbs +0 -71
  891. data/sig/finch-api/models/hris/benefits/individual_benefit.rbs +0 -82
  892. data/sig/finch-api/models/hris/benefits/individual_enroll_many_params.rbs +0 -184
  893. data/sig/finch-api/models/hris/benefits/individual_enrolled_ids_params.rbs +0 -19
  894. data/sig/finch-api/models/hris/benefits/individual_enrolled_ids_response.rbs +0 -23
  895. data/sig/finch-api/models/hris/benefits/individual_retrieve_many_benefits_params.rbs +0 -26
  896. data/sig/finch-api/models/hris/benefits/individual_unenroll_many_params.rbs +0 -26
  897. data/sig/finch-api/models/hris/benefits/unenrolled_individual.rbs +0 -56
  898. data/sig/finch-api/models/hris/benefits_support.rbs +0 -64
  899. data/sig/finch-api/models/hris/company.rbs +0 -177
  900. data/sig/finch-api/models/hris/company_benefit.rbs +0 -32
  901. data/sig/finch-api/models/hris/company_retrieve_params.rbs +0 -16
  902. data/sig/finch-api/models/hris/create_company_benefits_response.rbs +0 -15
  903. data/sig/finch-api/models/hris/directory_list_individuals_params.rbs +0 -29
  904. data/sig/finch-api/models/hris/directory_list_params.rbs +0 -29
  905. data/sig/finch-api/models/hris/document_list_params.rbs +0 -58
  906. data/sig/finch-api/models/hris/document_list_response.rbs +0 -24
  907. data/sig/finch-api/models/hris/document_response.rbs +0 -55
  908. data/sig/finch-api/models/hris/document_retreive_params.rbs +0 -16
  909. data/sig/finch-api/models/hris/document_retreive_response.rbs +0 -14
  910. data/sig/finch-api/models/hris/employment_data.rbs +0 -210
  911. data/sig/finch-api/models/hris/employment_data_response.rbs +0 -36
  912. data/sig/finch-api/models/hris/employment_retrieve_many_params.rbs +0 -35
  913. data/sig/finch-api/models/hris/individual.rbs +0 -170
  914. data/sig/finch-api/models/hris/individual_in_directory.rbs +0 -68
  915. data/sig/finch-api/models/hris/individual_response.rbs +0 -36
  916. data/sig/finch-api/models/hris/individual_retrieve_many_params.rbs +0 -57
  917. data/sig/finch-api/models/hris/pay_statement.rbs +0 -389
  918. data/sig/finch-api/models/hris/pay_statement_response.rbs +0 -36
  919. data/sig/finch-api/models/hris/pay_statement_response_body.rbs +0 -30
  920. data/sig/finch-api/models/hris/pay_statement_retrieve_many_params.rbs +0 -47
  921. data/sig/finch-api/models/hris/payment.rbs +0 -105
  922. data/sig/finch-api/models/hris/payment_list_params.rbs +0 -25
  923. data/sig/finch-api/models/hris/support_per_benefit_type.rbs +0 -32
  924. data/sig/finch-api/models/hris/supported_benefit.rbs +0 -85
  925. data/sig/finch-api/models/hris/update_company_benefit_response.rbs +0 -15
  926. data/sig/finch-api/models/hris/w42005.rbs +0 -107
  927. data/sig/finch-api/models/hris/w42020.rbs +0 -106
  928. data/sig/finch-api/models/income.rbs +0 -57
  929. data/sig/finch-api/models/individual_event.rbs +0 -55
  930. data/sig/finch-api/models/introspection.rbs +0 -202
  931. data/sig/finch-api/models/job_completion_event.rbs +0 -63
  932. data/sig/finch-api/models/jobs/automated_async_job.rbs +0 -96
  933. data/sig/finch-api/models/jobs/automated_create_params.rbs +0 -49
  934. data/sig/finch-api/models/jobs/automated_create_response.rbs +0 -32
  935. data/sig/finch-api/models/jobs/automated_list_params.rbs +0 -29
  936. data/sig/finch-api/models/jobs/automated_list_response.rbs +0 -82
  937. data/sig/finch-api/models/jobs/automated_retrieve_params.rbs +0 -16
  938. data/sig/finch-api/models/jobs/manual_async_job.rbs +0 -41
  939. data/sig/finch-api/models/jobs/manual_retrieve_params.rbs +0 -16
  940. data/sig/finch-api/models/location.rbs +0 -46
  941. data/sig/finch-api/models/money.rbs +0 -17
  942. data/sig/finch-api/models/operation_support.rbs +0 -20
  943. data/sig/finch-api/models/operation_support_matrix.rbs +0 -46
  944. data/sig/finch-api/models/paging.rbs +0 -19
  945. data/sig/finch-api/models/pay_statement_event.rbs +0 -61
  946. data/sig/finch-api/models/payment_event.rbs +0 -55
  947. data/sig/finch-api/models/payroll/pay_group_list_params.rbs +0 -30
  948. data/sig/finch-api/models/payroll/pay_group_list_response.rbs +0 -63
  949. data/sig/finch-api/models/payroll/pay_group_retrieve_params.rbs +0 -16
  950. data/sig/finch-api/models/payroll/pay_group_retrieve_response.rbs +0 -59
  951. data/sig/finch-api/models/provider.rbs +0 -1308
  952. data/sig/finch-api/models/provider_list_params.rbs +0 -14
  953. data/sig/finch-api/models/request_forwarding_forward_params.rbs +0 -39
  954. data/sig/finch-api/models/request_forwarding_forward_response.rbs +0 -61
  955. data/sig/finch-api/models/sandbox/company_update_params.rbs +0 -178
  956. data/sig/finch-api/models/sandbox/company_update_response.rbs +0 -173
  957. data/sig/finch-api/models/sandbox/connection_create_params.rbs +0 -58
  958. data/sig/finch-api/models/sandbox/connection_create_response.rbs +0 -63
  959. data/sig/finch-api/models/sandbox/connections/account_create_params.rbs +0 -59
  960. data/sig/finch-api/models/sandbox/connections/account_create_response.rbs +0 -60
  961. data/sig/finch-api/models/sandbox/connections/account_update_params.rbs +0 -29
  962. data/sig/finch-api/models/sandbox/connections/account_update_response.rbs +0 -58
  963. data/sig/finch-api/models/sandbox/directory_create_params.rbs +0 -364
  964. data/sig/finch-api/models/sandbox/directory_create_response.rbs +0 -9
  965. data/sig/finch-api/models/sandbox/employment_update_params.rbs +0 -209
  966. data/sig/finch-api/models/sandbox/employment_update_response.rbs +0 -210
  967. data/sig/finch-api/models/sandbox/individual_update_params.rbs +0 -169
  968. data/sig/finch-api/models/sandbox/individual_update_response.rbs +0 -170
  969. data/sig/finch-api/models/sandbox/job_create_params.rbs +0 -33
  970. data/sig/finch-api/models/sandbox/job_create_response.rbs +0 -32
  971. data/sig/finch-api/models/sandbox/jobs/configuration_retrieve_params.rbs +0 -18
  972. data/sig/finch-api/models/sandbox/jobs/configuration_retrieve_response.rbs +0 -12
  973. data/sig/finch-api/models/sandbox/jobs/configuration_update_params.rbs +0 -18
  974. data/sig/finch-api/models/sandbox/jobs/sandbox_job_configuration.rbs +0 -50
  975. data/sig/finch-api/models/sandbox/payment_create_params.rbs +0 -425
  976. data/sig/finch-api/models/sandbox/payment_create_response.rbs +0 -17
  977. data/sig/finch-api/models/webhook_event.rbs +0 -19
  978. data/sig/finch-api/page.rbs +0 -11
  979. data/sig/finch-api/request_options.rbs +0 -34
  980. data/sig/finch-api/resources/hris/benefits/individuals.rbs +0 -34
  981. data/sig/finch-api/resources/hris/benefits.rbs +0 -37
  982. data/sig/finch-api/resources/hris/company.rbs +0 -13
  983. data/sig/finch-api/resources/hris/directory.rbs +0 -17
  984. data/sig/finch-api/resources/hris/employments.rbs +0 -14
  985. data/sig/finch-api/resources/hris/individuals.rbs +0 -15
  986. data/sig/finch-api/resources/hris/pay_statements.rbs +0 -14
  987. data/sig/finch-api/resources/hris/payments.rbs +0 -15
  988. data/sig/finch-api/resources/payroll/pay_groups.rbs +0 -20
  989. data/sig/finch-api/resources/providers.rbs +0 -11
  990. data/sig/finch-api/responses_page.rbs +0 -9
  991. data/sig/finch-api/single_page.rbs +0 -13
  992. data/sig/finch-api/transport/base_client.rbs +0 -110
  993. data/sig/finch-api/transport/pooled_net_requester.rbs +0 -39
  994. data/sig/finch-api/type/array_of.rbs +0 -36
  995. data/sig/finch-api/type/base_model.rbs +0 -73
  996. data/sig/finch-api/type/base_page.rbs +0 -22
  997. data/sig/finch-api/type/boolean_model.rbs +0 -18
  998. data/sig/finch-api/type/converter.rbs +0 -36
  999. data/sig/finch-api/type/enum.rbs +0 -22
  1000. data/sig/finch-api/type/hash_of.rbs +0 -36
  1001. data/sig/finch-api/type/request_parameters.rbs +0 -13
  1002. data/sig/finch-api/type/union.rbs +0 -37
  1003. data/sig/finch-api/type/unknown.rbs +0 -18
  1004. data/sig/finch-api/type.rbs +0 -22
  1005. data/sig/finch-api/util.rbs +0 -134
  1006. data/sig/finch-api/version.rbs +0 -3
  1007. /data/lib/{finch-api → finch_api}/models/hris/benfit_contribution.rb +0 -0
  1008. /data/rbi/{lib/finch-api → finch_api}/models/hris/benfit_contribution.rbi +0 -0
  1009. /data/sig/{finch-api → finch_api}/models/hris/benfit_contribution.rbs +0 -0
  1010. /data/sig/{finch-api → finch_api}/resources/access_tokens.rbs +0 -0
  1011. /data/sig/{finch-api → finch_api}/resources/account.rbs +0 -0
  1012. /data/sig/{finch-api → finch_api}/resources/connect/sessions.rbs +0 -0
  1013. /data/sig/{finch-api → finch_api}/resources/connect.rbs +0 -0
  1014. /data/sig/{finch-api → finch_api}/resources/hris/documents.rbs +0 -0
  1015. /data/sig/{finch-api → finch_api}/resources/hris.rbs +0 -0
  1016. /data/sig/{finch-api → finch_api}/resources/jobs/automated.rbs +0 -0
  1017. /data/sig/{finch-api → finch_api}/resources/jobs/manual.rbs +0 -0
  1018. /data/sig/{finch-api → finch_api}/resources/jobs.rbs +0 -0
  1019. /data/sig/{finch-api → finch_api}/resources/payroll.rbs +0 -0
  1020. /data/sig/{finch-api → finch_api}/resources/request_forwarding.rbs +0 -0
  1021. /data/sig/{finch-api → finch_api}/resources/sandbox/company.rbs +0 -0
  1022. /data/sig/{finch-api → finch_api}/resources/sandbox/connections/accounts.rbs +0 -0
  1023. /data/sig/{finch-api → finch_api}/resources/sandbox/connections.rbs +0 -0
  1024. /data/sig/{finch-api → finch_api}/resources/sandbox/directory.rbs +0 -0
  1025. /data/sig/{finch-api → finch_api}/resources/sandbox/employment.rbs +0 -0
  1026. /data/sig/{finch-api → finch_api}/resources/sandbox/individual.rbs +0 -0
  1027. /data/sig/{finch-api → finch_api}/resources/sandbox/jobs/configuration.rbs +0 -0
  1028. /data/sig/{finch-api → finch_api}/resources/sandbox/jobs.rbs +0 -0
  1029. /data/sig/{finch-api → finch_api}/resources/sandbox/payment.rbs +0 -0
  1030. /data/sig/{finch-api → finch_api}/resources/sandbox.rbs +0 -0
  1031. /data/sig/{finch-api → finch_api}/resources/webhooks.rbs +0 -0
@@ -0,0 +1,142 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinchAPI
4
+ class Client < FinchAPI::Internal::Transport::BaseClient
5
+ # Default max number of retries to attempt after a failed retryable request.
6
+ DEFAULT_MAX_RETRIES = 2
7
+
8
+ # Default per-request timeout.
9
+ DEFAULT_TIMEOUT_IN_SECONDS = 60.0
10
+
11
+ # Default initial retry delay in seconds.
12
+ # Overall delay is calculated using exponential backoff + jitter.
13
+ DEFAULT_INITIAL_RETRY_DELAY = 0.5
14
+
15
+ # Default max retry delay in seconds.
16
+ DEFAULT_MAX_RETRY_DELAY = 8.0
17
+
18
+ # @return [String, nil]
19
+ attr_reader :access_token
20
+
21
+ # @return [String, nil]
22
+ attr_reader :client_id
23
+
24
+ # @return [String, nil]
25
+ attr_reader :client_secret
26
+
27
+ # @return [FinchAPI::Resources::AccessTokens]
28
+ attr_reader :access_tokens
29
+
30
+ # @return [FinchAPI::Resources::HRIS]
31
+ attr_reader :hris
32
+
33
+ # @return [FinchAPI::Resources::Providers]
34
+ attr_reader :providers
35
+
36
+ # @return [FinchAPI::Resources::Account]
37
+ attr_reader :account
38
+
39
+ # @return [FinchAPI::Resources::Webhooks]
40
+ attr_reader :webhooks
41
+
42
+ # @return [FinchAPI::Resources::RequestForwarding]
43
+ attr_reader :request_forwarding
44
+
45
+ # @return [FinchAPI::Resources::Jobs]
46
+ attr_reader :jobs
47
+
48
+ # @return [FinchAPI::Resources::Sandbox]
49
+ attr_reader :sandbox
50
+
51
+ # @return [FinchAPI::Resources::Payroll]
52
+ attr_reader :payroll
53
+
54
+ # @return [FinchAPI::Resources::Connect]
55
+ attr_reader :connect
56
+
57
+ # @api private
58
+ #
59
+ # @return [Hash{String=>String}]
60
+ private def auth_headers
61
+ {**bearer_auth, **basic_auth}
62
+ end
63
+
64
+ # @api private
65
+ #
66
+ # @return [Hash{String=>String}]
67
+ private def bearer_auth
68
+ return {} if @access_token.nil?
69
+
70
+ {"authorization" => "Bearer #{@access_token}"}
71
+ end
72
+
73
+ # @api private
74
+ #
75
+ # @return [Hash{String=>String}]
76
+ private def basic_auth
77
+ return {} if @client_id.nil? || @client_secret.nil?
78
+
79
+ base64_credentials = ["#{@client_id}:#{@client_secret}"].pack("m0")
80
+ {"authorization" => "Basic #{base64_credentials}"}
81
+ end
82
+
83
+ # Creates and returns a new client for interacting with the API.
84
+ #
85
+ # @param client_id [String, nil] Defaults to `ENV["FINCH_CLIENT_ID"]`
86
+ #
87
+ # @param client_secret [String, nil] Defaults to `ENV["FINCH_CLIENT_SECRET"]`
88
+ #
89
+ # @param access_token [String, nil]
90
+ #
91
+ # @param base_url [String, nil] Override the default base URL for the API, e.g.,
92
+ # `"https://api.example.com/v2/"`. Defaults to `ENV["FINCH_BASE_URL"]`
93
+ #
94
+ # @param max_retries [Integer] Max number of retries to attempt after a failed retryable request.
95
+ #
96
+ # @param timeout [Float]
97
+ #
98
+ # @param initial_retry_delay [Float]
99
+ #
100
+ # @param max_retry_delay [Float]
101
+ def initialize(
102
+ client_id: ENV["FINCH_CLIENT_ID"],
103
+ client_secret: ENV["FINCH_CLIENT_SECRET"],
104
+ access_token: nil,
105
+ base_url: ENV["FINCH_BASE_URL"],
106
+ max_retries: FinchAPI::Client::DEFAULT_MAX_RETRIES,
107
+ timeout: FinchAPI::Client::DEFAULT_TIMEOUT_IN_SECONDS,
108
+ initial_retry_delay: FinchAPI::Client::DEFAULT_INITIAL_RETRY_DELAY,
109
+ max_retry_delay: FinchAPI::Client::DEFAULT_MAX_RETRY_DELAY
110
+ )
111
+ base_url ||= "https://api.tryfinch.com"
112
+
113
+ headers = {
114
+ "finch-api-version" => "2020-09-17"
115
+ }
116
+
117
+ @client_id = client_id&.to_s
118
+ @client_secret = client_secret&.to_s
119
+ @access_token = access_token&.to_s
120
+
121
+ super(
122
+ base_url: base_url,
123
+ timeout: timeout,
124
+ max_retries: max_retries,
125
+ initial_retry_delay: initial_retry_delay,
126
+ max_retry_delay: max_retry_delay,
127
+ headers: headers
128
+ )
129
+
130
+ @access_tokens = FinchAPI::Resources::AccessTokens.new(client: self)
131
+ @hris = FinchAPI::Resources::HRIS.new(client: self)
132
+ @providers = FinchAPI::Resources::Providers.new(client: self)
133
+ @account = FinchAPI::Resources::Account.new(client: self)
134
+ @webhooks = FinchAPI::Resources::Webhooks.new(client: self)
135
+ @request_forwarding = FinchAPI::Resources::RequestForwarding.new(client: self)
136
+ @jobs = FinchAPI::Resources::Jobs.new(client: self)
137
+ @sandbox = FinchAPI::Resources::Sandbox.new(client: self)
138
+ @payroll = FinchAPI::Resources::Payroll.new(client: self)
139
+ @connect = FinchAPI::Resources::Connect.new(client: self)
140
+ end
141
+ end
142
+ end
@@ -0,0 +1,192 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinchAPI
4
+ module Errors
5
+ class Error < StandardError
6
+ # @!attribute cause
7
+ #
8
+ # @return [StandardError, nil]
9
+ end
10
+
11
+ class ConversionError < FinchAPI::Errors::Error
12
+ end
13
+
14
+ class APIError < FinchAPI::Errors::Error
15
+ # @return [URI::Generic]
16
+ attr_accessor :url
17
+
18
+ # @return [Integer, nil]
19
+ attr_accessor :status
20
+
21
+ # @return [Object, nil]
22
+ attr_accessor :body
23
+
24
+ # @api private
25
+ #
26
+ # @param url [URI::Generic]
27
+ # @param status [Integer, nil]
28
+ # @param body [Object, nil]
29
+ # @param request [nil]
30
+ # @param response [nil]
31
+ # @param message [String, nil]
32
+ def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil)
33
+ @url = url
34
+ @status = status
35
+ @body = body
36
+ @request = request
37
+ @response = response
38
+ super(message)
39
+ end
40
+ end
41
+
42
+ class APIConnectionError < FinchAPI::Errors::APIError
43
+ # @!attribute status
44
+ #
45
+ # @return [nil]
46
+
47
+ # @!attribute body
48
+ #
49
+ # @return [nil]
50
+
51
+ # @api private
52
+ #
53
+ # @param url [URI::Generic]
54
+ # @param status [nil]
55
+ # @param body [nil]
56
+ # @param request [nil]
57
+ # @param response [nil]
58
+ # @param message [String, nil]
59
+ def initialize(
60
+ url:,
61
+ status: nil,
62
+ body: nil,
63
+ request: nil,
64
+ response: nil,
65
+ message: "Connection error."
66
+ )
67
+ super
68
+ end
69
+ end
70
+
71
+ class APITimeoutError < FinchAPI::Errors::APIConnectionError
72
+ # @api private
73
+ #
74
+ # @param url [URI::Generic]
75
+ # @param status [nil]
76
+ # @param body [nil]
77
+ # @param request [nil]
78
+ # @param response [nil]
79
+ # @param message [String, nil]
80
+ def initialize(
81
+ url:,
82
+ status: nil,
83
+ body: nil,
84
+ request: nil,
85
+ response: nil,
86
+ message: "Request timed out."
87
+ )
88
+ super
89
+ end
90
+ end
91
+
92
+ class APIStatusError < FinchAPI::Errors::APIError
93
+ # @api private
94
+ #
95
+ # @param url [URI::Generic]
96
+ # @param status [Integer]
97
+ # @param body [Object, nil]
98
+ # @param request [nil]
99
+ # @param response [nil]
100
+ # @param message [String, nil]
101
+ #
102
+ # @return [FinchAPI::Errors::APIStatusError]
103
+ def self.for(url:, status:, body:, request:, response:, message: nil)
104
+ kwargs = {
105
+ url: url,
106
+ status: status,
107
+ body: body,
108
+ request: request,
109
+ response: response,
110
+ message: message
111
+ }
112
+
113
+ case status
114
+ in 400
115
+ FinchAPI::Errors::BadRequestError.new(**kwargs)
116
+ in 401
117
+ FinchAPI::Errors::AuthenticationError.new(**kwargs)
118
+ in 403
119
+ FinchAPI::Errors::PermissionDeniedError.new(**kwargs)
120
+ in 404
121
+ FinchAPI::Errors::NotFoundError.new(**kwargs)
122
+ in 409
123
+ FinchAPI::Errors::ConflictError.new(**kwargs)
124
+ in 422
125
+ FinchAPI::Errors::UnprocessableEntityError.new(**kwargs)
126
+ in 429
127
+ FinchAPI::Errors::RateLimitError.new(**kwargs)
128
+ in (500..)
129
+ FinchAPI::Errors::InternalServerError.new(**kwargs)
130
+ else
131
+ FinchAPI::Errors::APIStatusError.new(**kwargs)
132
+ end
133
+ end
134
+
135
+ # @!parse
136
+ # # @return [Integer]
137
+ # attr_accessor :status
138
+
139
+ # @api private
140
+ #
141
+ # @param url [URI::Generic]
142
+ # @param status [Integer]
143
+ # @param body [Object, nil]
144
+ # @param request [nil]
145
+ # @param response [nil]
146
+ # @param message [String, nil]
147
+ def initialize(url:, status:, body:, request:, response:, message: nil)
148
+ message ||= {url: url.to_s, status: status, body: body}
149
+ super(
150
+ url: url,
151
+ status: status,
152
+ body: body,
153
+ request: request,
154
+ response: response,
155
+ message: message&.to_s
156
+ )
157
+ end
158
+ end
159
+
160
+ class BadRequestError < FinchAPI::Errors::APIStatusError
161
+ HTTP_STATUS = 400
162
+ end
163
+
164
+ class AuthenticationError < FinchAPI::Errors::APIStatusError
165
+ HTTP_STATUS = 401
166
+ end
167
+
168
+ class PermissionDeniedError < FinchAPI::Errors::APIStatusError
169
+ HTTP_STATUS = 403
170
+ end
171
+
172
+ class NotFoundError < FinchAPI::Errors::APIStatusError
173
+ HTTP_STATUS = 404
174
+ end
175
+
176
+ class ConflictError < FinchAPI::Errors::APIStatusError
177
+ HTTP_STATUS = 409
178
+ end
179
+
180
+ class UnprocessableEntityError < FinchAPI::Errors::APIStatusError
181
+ HTTP_STATUS = 422
182
+ end
183
+
184
+ class RateLimitError < FinchAPI::Errors::APIStatusError
185
+ HTTP_STATUS = 429
186
+ end
187
+
188
+ class InternalServerError < FinchAPI::Errors::APIStatusError
189
+ HTTP_STATUS = (500..)
190
+ end
191
+ end
192
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinchAPI
4
+ class FilePart
5
+ # @return [Pathname, StringIO, IO, String]
6
+ attr_reader :content
7
+
8
+ # @return [String, nil]
9
+ attr_reader :content_type
10
+
11
+ # @return [String, nil]
12
+ attr_reader :filename
13
+
14
+ # @api private
15
+ #
16
+ # @return [String]
17
+ private def read
18
+ case content
19
+ in Pathname
20
+ content.read(binmode: true)
21
+ in StringIO
22
+ content.string
23
+ in IO
24
+ content.read
25
+ in String
26
+ content
27
+ end
28
+ end
29
+
30
+ # @param a [Object]
31
+ #
32
+ # @return [String]
33
+ def to_json(*a) = read.to_json(*a)
34
+
35
+ # @param a [Object]
36
+ #
37
+ # @return [String]
38
+ def to_yaml(*a) = read.to_yaml(*a)
39
+
40
+ # @param content [Pathname, StringIO, IO, String]
41
+ # @param filename [String, nil]
42
+ # @param content_type [String, nil]
43
+ def initialize(content, filename: nil, content_type: nil)
44
+ @content = content
45
+ @filename =
46
+ case content
47
+ in Pathname
48
+ filename.nil? ? content.basename.to_path : File.basename(filename)
49
+ else
50
+ filename.nil? ? nil : File.basename(filename)
51
+ end
52
+ @content_type = content_type
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,93 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinchAPI
4
+ module Internal
5
+ # @generic Elem
6
+ #
7
+ # @example
8
+ # if individuals_page.has_next?
9
+ # individuals_page = individuals_page.next_page
10
+ # end
11
+ #
12
+ # @example
13
+ # individuals_page.auto_paging_each do |directory|
14
+ # puts(directory)
15
+ # end
16
+ class IndividualsPage
17
+ include FinchAPI::Internal::Type::BasePage
18
+
19
+ # @return [Array<generic<Elem>>, nil]
20
+ attr_accessor :individuals
21
+
22
+ # @return [FinchAPI::Models::Paging]
23
+ attr_accessor :paging
24
+
25
+ # @return [Boolean]
26
+ def next_page?
27
+ paging&.offset.to_i + individuals.to_a.size < paging&.count.to_i
28
+ end
29
+
30
+ # @raise [FinchAPI::HTTP::Error]
31
+ # @return [self]
32
+ def next_page
33
+ unless next_page?
34
+ message = "No more pages available. Please check #next_page? before calling ##{__method__}"
35
+ raise RuntimeError.new(message)
36
+ end
37
+
38
+ req = FinchAPI::Internal::Util.deep_merge(
39
+ @req,
40
+ {query: {offset: paging&.offset.to_i + individuals.to_a.size}}
41
+ )
42
+ @client.request(req)
43
+ end
44
+
45
+ # @param blk [Proc]
46
+ #
47
+ # @yieldparam [generic<Elem>]
48
+ def auto_paging_each(&blk)
49
+ unless block_given?
50
+ raise ArgumentError.new("A block must be given to ##{__method__}")
51
+ end
52
+
53
+ page = self
54
+ loop do
55
+ page.individuals&.each(&blk)
56
+
57
+ break unless page.next_page?
58
+ page = page.next_page
59
+ end
60
+ end
61
+
62
+ # @api private
63
+ #
64
+ # @param client [FinchAPI::Internal::Transport::BaseClient]
65
+ # @param req [Hash{Symbol=>Object}]
66
+ # @param headers [Hash{String=>String}, Net::HTTPHeader]
67
+ # @param page_data [Hash{Symbol=>Object}]
68
+ def initialize(client:, req:, headers:, page_data:)
69
+ super
70
+
71
+ case page_data
72
+ in {individuals: Array | nil => individuals}
73
+ @individuals = individuals&.map { FinchAPI::Internal::Type::Converter.coerce(@model, _1) }
74
+ else
75
+ end
76
+ case page_data
77
+ in {paging: Hash | nil => paging}
78
+ @paging = FinchAPI::Internal::Type::Converter.coerce(FinchAPI::Models::Paging, paging)
79
+ else
80
+ end
81
+ end
82
+
83
+ # @api private
84
+ #
85
+ # @return [String]
86
+ def inspect
87
+ model = FinchAPI::Internal::Type::Converter.inspect(@model, depth: 1)
88
+
89
+ "#<#{self.class}[#{model}]:0x#{object_id.to_s(16)}>"
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,93 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinchAPI
4
+ module Internal
5
+ # @generic Elem
6
+ #
7
+ # @example
8
+ # if page.has_next?
9
+ # page = page.next_page
10
+ # end
11
+ #
12
+ # @example
13
+ # page.auto_paging_each do |item|
14
+ # puts(item)
15
+ # end
16
+ class Page
17
+ include FinchAPI::Internal::Type::BasePage
18
+
19
+ # @return [Array<generic<Elem>>, nil]
20
+ attr_accessor :data
21
+
22
+ # @return [FinchAPI::Models::Paging]
23
+ attr_accessor :paging
24
+
25
+ # @return [Boolean]
26
+ def next_page?
27
+ paging&.offset.to_i + data.to_a.size < paging&.count.to_i
28
+ end
29
+
30
+ # @raise [FinchAPI::HTTP::Error]
31
+ # @return [self]
32
+ def next_page
33
+ unless next_page?
34
+ message = "No more pages available. Please check #next_page? before calling ##{__method__}"
35
+ raise RuntimeError.new(message)
36
+ end
37
+
38
+ req = FinchAPI::Internal::Util.deep_merge(
39
+ @req,
40
+ {query: {offset: paging&.offset.to_i + data.to_a.size}}
41
+ )
42
+ @client.request(req)
43
+ end
44
+
45
+ # @param blk [Proc]
46
+ #
47
+ # @yieldparam [generic<Elem>]
48
+ def auto_paging_each(&blk)
49
+ unless block_given?
50
+ raise ArgumentError.new("A block must be given to ##{__method__}")
51
+ end
52
+
53
+ page = self
54
+ loop do
55
+ page.data&.each(&blk)
56
+
57
+ break unless page.next_page?
58
+ page = page.next_page
59
+ end
60
+ end
61
+
62
+ # @api private
63
+ #
64
+ # @param client [FinchAPI::Internal::Transport::BaseClient]
65
+ # @param req [Hash{Symbol=>Object}]
66
+ # @param headers [Hash{String=>String}, Net::HTTPHeader]
67
+ # @param page_data [Hash{Symbol=>Object}]
68
+ def initialize(client:, req:, headers:, page_data:)
69
+ super
70
+
71
+ case page_data
72
+ in {data: Array | nil => data}
73
+ @data = data&.map { FinchAPI::Internal::Type::Converter.coerce(@model, _1) }
74
+ else
75
+ end
76
+ case page_data
77
+ in {paging: Hash | nil => paging}
78
+ @paging = FinchAPI::Internal::Type::Converter.coerce(FinchAPI::Models::Paging, paging)
79
+ else
80
+ end
81
+ end
82
+
83
+ # @api private
84
+ #
85
+ # @return [String]
86
+ def inspect
87
+ model = FinchAPI::Internal::Type::Converter.inspect(@model, depth: 1)
88
+
89
+ "#<#{self.class}[#{model}]:0x#{object_id.to_s(16)}>"
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ module FinchAPI
4
+ module Internal
5
+ # @generic Elem
6
+ #
7
+ # @example
8
+ # if responses_page.has_next?
9
+ # responses_page = responses_page.next_page
10
+ # end
11
+ #
12
+ # @example
13
+ # responses_page.auto_paging_each do |pay_statement_item|
14
+ # puts(pay_statement_item)
15
+ # end
16
+ class ResponsesPage
17
+ include FinchAPI::Internal::Type::BasePage
18
+
19
+ # @return [Array<generic<Elem>>, nil]
20
+ attr_accessor :responses
21
+
22
+ # @return [Boolean]
23
+ def next_page?
24
+ false
25
+ end
26
+
27
+ # @raise [FinchAPI::HTTP::Error]
28
+ # @return [self]
29
+ def next_page
30
+ RuntimeError.new("No more pages available.")
31
+ end
32
+
33
+ # @param blk [Proc]
34
+ #
35
+ # @yieldparam [generic<Elem>]
36
+ def auto_paging_each(&blk)
37
+ unless block_given?
38
+ raise ArgumentError.new("A block must be given to ##{__method__}")
39
+ end
40
+
41
+ page = self
42
+ loop do
43
+ page.responses&.each(&blk)
44
+
45
+ break unless page.next_page?
46
+ page = page.next_page
47
+ end
48
+ end
49
+
50
+ # @api private
51
+ #
52
+ # @param client [FinchAPI::Internal::Transport::BaseClient]
53
+ # @param req [Hash{Symbol=>Object}]
54
+ # @param headers [Hash{String=>String}, Net::HTTPHeader]
55
+ # @param page_data [Array<Object>]
56
+ def initialize(client:, req:, headers:, page_data:)
57
+ super
58
+
59
+ case page_data
60
+ in {responses: Array | nil => responses}
61
+ @responses = responses&.map { FinchAPI::Internal::Type::Converter.coerce(@model, _1) }
62
+ else
63
+ end
64
+ end
65
+
66
+ # @api private
67
+ #
68
+ # @return [String]
69
+ def inspect
70
+ model = FinchAPI::Internal::Type::Converter.inspect(@model, depth: 1)
71
+
72
+ "#<#{self.class}[#{model}]:0x#{object_id.to_s(16)}>"
73
+ end
74
+ end
75
+ end
76
+ end